Changeset 12449 for trunk/www/db_po/get_progs.php
- Timestamp:
- 11/07/11 12:27:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/db_po/get_progs.php
r12444 r12449 6 6 if (empty($_GET["fProgram"])) 7 7 $_GET["fProgram"]=""; 8 if (empty($_GET["fSelectSize"]))9 $_GET["fSelectSize"]="20";10 8 if (empty($_GET["fMode"])) 11 9 $_GET["fMode"]="view"; … … 33 31 if (strcmp($_GET["fMode"], "edit")==0) 34 32 printf("select program: <br>\n"); 35 // else36 // printf("select program: \n");37 33 38 if (strcmp($_GET["fMode"], "view")==0)//reload tables in case of mode 'view' 39 printf("<select style='width: 150px' id='prog' size='%s' onchange='get_keys(this.value,\"\",\"%s\",\"%s\");get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' class='Width'>\n", 40 $_GET["fSelectSize"], $_GET["fSelectSize"], $_GET["fMode"]); 34 if (strcmp($_GET["fMode"], "view")==0) 35 printf("<select style='width: 150px' id='prog' size='1' onchange='get_keys(this.value,\"\",\"%s\");get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' class='Width'>\n", $_GET["fMode"]); 41 36 else 42 printf("<select style='width: 150px' id='prog' size='%s' onchange=\"get_keys(this.value,'','%s','%s');get_values(1,this.value,'all');\" class='Width'>\n", 43 $_GET["fSelectSize"], 20, $_GET["fMode"]);//select size can be removed when fMode is used instead and only the two cases are needed 37 printf("<select style='width: 150px' id='prog' size='10' onchange=\"get_keys(this.value,'','%s');get_values(1,this.value,'all');\" class='Width'>\n", $_GET["fMode"]); 44 38 45 39 if (!empty($_GET["fProgram"]) && strcmp("all", $_GET["fProgram"])==0)
Note:
See TracChangeset
for help on using the changeset viewer.