Software: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.12 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g. PHP/5.2.4-2ubuntu5.12 uname -a: Linux forum.circlefusion.com 2.6.24-19-server #1 SMP Wed Jun 18 15:18:00 UTC 2008 i686 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /home/doku/axrepos/ax/pgadmin/ drwxr-xr-x |
Viewing file: indexes.js (1.8 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | // Globals // /* * Multiple Selection lists in HTML Document */ var tableColumnList; var indexColumnList; /* * Two Array vars */ var indexColumns, tableColumns; function buttonPressed(object) { if (object.name == "add") { from = tableColumnList; to = indexColumnList; } else { to = tableColumnList; from = indexColumnList; } var selectedOptions = getSelectedOptions(from); for (i = 0; i < selectedOptions.length; i++) { option = new Option(selectedOptions[i].text); addToArray(to, option); removeFromArray(from, selectedOptions[i].index); } } function doSelectAll() { for(var x = 0; x < indexColumnList.options.length; x++){ indexColumnList.options[x].selected = true; } } function init() { tableColumnList = document.formIndex.TableColumnList; indexColumnList = document.getElementById("IndexColumnList"); indexColumns = indexColumnList.options; tableColumns = tableColumnList.options; } function getSelectedOptions(obj) { var selectedOptions = new Array(); for (i = 0; i < obj.options.length; i++) { if (obj.options[i].selected) { selectedOptions.push(obj.options[i]); } } return selectedOptions; } function removeFromArray(obj, index) { obj.remove(index); } function addToArray(obj, item) { obj.options[obj.options.length] = item; } |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0063 ]-- |