Location: PHPKode > projects > LDAPted > ldapted/templates/std/controls/Switchlist/default_edit.tpl
<!-- NAME: switchlist_default_edit.tpl -->
<table>
  <tr>
    <td colspan="3">
      {$ATTRIBLABEL} :
    </td>
  </tr>
  <tr>
    <td>
      <!-- Selection must be declared as mutiple to allow php to read them -->
      <select SIZE="{$SIZE}" NAME="{$ATTRIBNAME}[]" STYLE="width: {$WIDTH}pt" multiple>
        {html_options values=$VALUES output=$VALUES}
      </select>
    </td>
    <td>
      <table>
        <tr>
          <td>
            <button type="button" ONCLICK="list_switch_edit_moveEntry('{$ATTRIBNAME}','{$ATTRIBNAME}_selection')"><img src="images/right.png"></button>
          </td>
        </tr>
        <tr>
          <td>
            <button type="button" ONCLICK="list_switch_edit_moveEntry('{$ATTRIBNAME}_selection','{$ATTRIBNAME}')"><img src="images/left.png"></button>
          </td>
        </tr>
      </table>
    </td>
    <td>
      <select SIZE="{$SIZE}" NAME="{$ATTRIBNAME}_selection[]" STYLE="width: {$WIDTH}pt" multiple>
        {html_options values=$OPTIONS output=$OPTIONS}
      </select>
    </td>
  </tr>
</table>
<!-- END: switchlist_default_edit.tpl -->
Return current item: LDAPted