<%--
  Copyright 2003 Sun Microsystems, Inc. All rights reserved
  Use is subject to license terms.

  Tags in the form

    <jato:text name="propertypicktype.label.
    <jato:text name="generic.

  are localized via the ssoadapteradminmsgs properties file


 --%><%

%><%@page info="PropertyPickType" language="java"%><%
%><%@taglib uri="/WEB-INF/jato.tld" prefix="jato"%><%
%><%@taglib uri="/WEB-INF/console.tld" prefix="console"%><%

%><jato:useViewBean
    className="com.sun.ssoadapter.admin.PropertyPickTypeViewBean"><%
%>
<html>
<head>
  <title><jato:text name="propertypicktype.label.pagetitle" /></title>
  <link rel="stylesheet" href="../console/css/adminstyle.css">
  <link rel="stylesheet" href="../ps/css/psadminstyle.css">
  <script language="javascript" src="../console/js/consolecomp.js"></script>
</head>
<script language="javascript">
function shiftBetween(from, to, allp) { //shifts from one box to another
  var fbox = document.forms[0].elements[from];
  var tbox = document.forms[0].elements[to];
  if (fbox.length > 1 && (fbox.selectedIndex != -1 | allp == 1))  {
    deselectAll(tbox);
    sbv = tbox.options[tbox.length-1].value;
    sbt = tbox.options[tbox.length-1].text;
    i=0;
    do {
      if (fbox.options[i].selected | allp == 1) {
      iotext = fbox.options[i].text;
      iovalue = fbox.options[i].value;
      didx = tbox.length;
      fbox.options[i] = null;
      tbox.options[didx] = new Option (sbt, sbv, false, false);
      tbox.options[didx-1] = new Option (iotext, iovalue, false, true);
      tbox.options[didx].selected = false;    // ns4 bug
      tbox.options[didx-1].selected = true;   // ns6 bug
      } else {
        if (allp == 0) { i++ };
      }
    }
    while (fbox.options[i].value != "__________________________________");
    if (is_nav4 == 1 && is_sun == 1) {  // ns4sol usability issue with multi-select boxes
      deselectAll(tbox);               // only select the last-moved item
      tbox.options[tbox.length -2]. selected = true;
    }
    fbox.options[0].selected = false; // deselects spaceer in from box
  }
}

function deselectAll(box)  { // deselects all items in list
  for(i=0; i<box.options.length; i++) {
    box.options[i].selected = false;
  }
}

//<!--
    // convert all characters to lowercase to simplify testing
    var agt=navigator.userAgent.toLowerCase();

    // *** BROWSER VERSION ***
    var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);

    var is_nav  = ((agt.indexOf('mozilla')!=-1));
    var is_nav4 = (is_nav && (is_major == 4));
    var is_sun   = (agt.indexOf("sunos")!=-1);
//--> end hide JavaScript

</script>
<script language="javascript">
  pageLoaded = 0;
  parent.headerFrame.helpDocURL = '<jato:text name="helpDocURL"/>';
  parent.headerFrame.helpPage   = '<jato:text name="helpAnchorTag"/>';
</script>





<body bgcolor="#ffffff"
      leftMargin=0
      rightMargin=0
      topMargin=0
      marginheight="0"
      marginwidth="0">

<!-- page header -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr class="breadcrumb-row">
    <td nowrap><div class="breadcrumb-text">
        <img alt="" border="0" height="1" width="2" src="../console/images/spacer.gif">
          <jato:text name="propertypicktype.label.servicetitle"/>
          <jato:text name="propertypicktype.label.pageheader"/> </div>
    </td>
  </tr>
</table>

<console:form name="PropertyPickType" onSubmit="javascript:selectAll()">
  <jato:hidden name="HiddenTemplateName"/>
  <jato:hidden name="HiddenPropertyType"/>
  <jato:hidden name="HiddenPropertyName"/>
  <jato:hidden name="HiddenOriginalConfigTemplate"/>

  <!-- set 10 pixel right margin for everything below -->
  <div class="sub-body-margin">
  <br>
<!-- Begin table containing configuration template properties (7 columns) -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
    <!-- configuration template -->
    <td width="1%"><img alt="" border="0" height="1" width="10" src="../console/images/spacer.gif"></td>
    <td width="1%"><div class="properties-normal-text">
        <jato:text name="propertypicktype.label.configname"/> </div></td>
    <td width="1%"><img alt="" border="0" height="1" width="20" src="../console/images/spacer.gif"></td>
    <td nowrap align="left" width="97%"><jato:text name="ConfigTemplateName"/></td>
</tr>
<tr>
    <!-- spacer -->
    <td nowrap colspan="6"><img alt="" border="0" height="10" width="1"
        src="../console/images/spacer.gif"></td>
</tr>
<tr>
    <!-- configuration properties -->
    <td>&nbsp;</td>
    <td colspan=3>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td nowrap><div class="properties-level1-label-text">
            <jato:text name="propertypicktype.label.propertymgmttitle"/></div></td>

        <td valign="bottom" width="99%">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td valign="bottom"
                class="properties-separator"><img
                src="../console/images/spacer.gif"
                width="1" height="1" alt=""></td>
        </tr>
        </table>
        </td>
    </tr>
    </table>
    </td>
</tr>
<tr>
    <!-- spacer -->
    <td nowrap colspan="6"><img alt="" border="0" height="10" width="1"
        src="../console/images/spacer.gif"></td>
</tr>
</table>


  <!-- table containing save and cancel Buttons -->
  <table border="0" cellpadding="0" cellspacing="0" width="100%">

    <!-- spacer row -->
    <tr>
      <td nowrap colspan="3"><img alt="" border="0" height="10" width="1" src="../console/images/spacer.gif"></td>
    </tr>

    <tr>
      <td width="1"><img alt="" border="0" height="1" width="10" src="../console/images/spacer.gif"></td>
      <td nowrap>&nbsp;</td>
      <td align="right">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td>
            <console:button name="ButtonSave" />
            </td>
            <td width="1"><img alt="" border="0" height="1" width="5"
              src="../console/images/spacer.gif"></td>
            <td><console:button name="ButtonCancel" /> </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <!-- end table containing save and cancel Buttons -->
  <!-- start table containg default box, arrows, and merge select boxes -->
  <table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td nowrap colspan="3"><img alt="" border="0" height="10" width="1" src="../console/images/spacer.gif"></td>
  </tr>

  <tr>
    <td width="35%">
      <jato:text name="propertypicktype.label.defaultlist"/><br>
    </td>
    <td width="30%">
      <img alt="" border="0" height="10" width="1" src="../console/images/spacer.gif">
    </td>
    <td width="35%">
      <jato:text name="propertypicktype.label.mergelist"/><br>
    </td>
  </tr>
  <tr>
    <td width="35%">
      <jato:listbox name="DefaultProperty" size="15" multiple="true" elementId="PropertyPickType.DefaultProperty"/>
    </td>
    <script language="javascript">
      addToSelBeforeSubmitArray('PropertyPickType', 'PropertyPickType.DefaultProperty');
    </script>
    <td  width="30%">
    <div class="button-link-enabled-text">
    <a class="button-link" href='javascript:shiftBetween("PropertyPickType.DefaultProperty", "PropertyPickType.MergeProperty", 0)'>
    <img src="../ps/images/add.gif" border="0" width="18" height="12" alt="">
    <jato:text name="propertypicktype.button.makemerge"/>&nbsp;</a>
    </div>
    <br><br>
    <div class="button-link-enabled-text">
    <a class="button-link" href='javascript:shiftBetween("PropertyPickType.MergeProperty", "PropertyPickType.DefaultProperty", 0)'>
    <img src="../ps/images/remove.gif" border="0" width="18" height="12" alt="">
    <jato:text name="propertypicktype.button.makedefault"/>&nbsp;</a>
    </div>
    </td>
    <td width="35%">
      <jato:listbox name="MergeProperty" size="15" multiple="true" elementId="PropertyPickType.MergeProperty"/>
    </td>
    <script language="javascript">
      addToSelBeforeSubmitArray('PropertyPickType', 'PropertyPickType.MergeProperty');
    </script>
  </tr>
  </table>
  <!-- end table containg default and merge select boxes -->
  <!-- table containing save and cancel Buttons -->
  <table border="0" cellpadding="0" cellspacing="0" width="100%">

    <!-- spacer row -->
    <tr>
      <td nowrap colspan="3"><img alt="" border="0" height="10" width="1" src="../console/images/spacer.gif"></td>
    </tr>

    <tr>
      <td width="1"><img alt="" border="0" height="1" width="10"
          src="../console/images/spacer.gif"></td>
      <td nowrap>&nbsp;</td>
      <td align="right">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><console:button name="ButtonSave" /></td>
            <td width="1"><img alt="" border="0" height="1" width="5"
              src="../console/images/spacer.gif"></td>
            <td><console:button name="ButtonCancel" /> </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <!-- end table containing save and cancel Buttons -->

<!-- end 10 pixel right margin -->
</div>

</console:form>

</body>
<script language="javascript">
pageLoaded = 1;
</script>
</html>
</jato:useViewBean>
