Changeset 12444 for trunk/www


Ignore:
Timestamp:
11/07/11 12:01:14 (13 years ago)
Author:
Daniela Dorner
Message:
updated size of select box; direct load of po list with click on program for edit mode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/db_po/get_progs.php

    r11990 r12444  
    77        $_GET["fProgram"]="";
    88    if (empty($_GET["fSelectSize"]))
    9         $_GET["fSelectSize"]="10";
     9        $_GET["fSelectSize"]="20";
    1010    if (empty($_GET["fMode"]))
    1111        $_GET["fMode"]="view";
     
    3737
    3838    if (strcmp($_GET["fMode"], "view")==0)//reload tables in case of mode 'view'
    39         printf("<select style='width: 120px' 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",
     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",
    4040               $_GET["fSelectSize"], $_GET["fSelectSize"], $_GET["fMode"]);
    4141    else
    42         printf("<select style='width: 120px' id='prog' size='%s' onchange=\"get_keys(this.value,'','%s','%s')\" class='Width'>\n",
    43                $_GET["fSelectSize"], $_GET["fSelectSize"], $_GET["fMode"]);
     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
    4444
    4545    if (!empty($_GET["fProgram"]) && strcmp("all", $_GET["fProgram"])==0)
Note: See TracChangeset for help on using the changeset viewer.