Ignore:
Timestamp:
11/07/11 12:27:42 (13 years ago)
Author:
Daniela Dorner
Message:
removed variable selectsize from functions and set size of select box depending on fMode
File:
1 edited

Legend:

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

    r12448 r12449  
    1111    if (empty($_GET["fKey"]))
    1212        $_GET["fKey"]="";
    13     if (empty($_GET["fSelectSize"]))
    14         $_GET["fSelectSize"]="10";
    1513    if (empty($_GET["fMode"]))
    1614        $_GET["fMode"]="view";
     
    4543
    4644    if (strcmp($_GET["fMode"], "view")==0)//reload tables in case of mode 'view'
    47         printf("<select style='width:300px' id='key' size='%s' onchange='get_values(1,\"%s\",this.value,\"%s\");get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' class='Width'>\n",
    48                $_GET["fSelectSize"], $_GET["fProgram"], $_GET["fMode"]);
     45        printf("<select style='width:300px' id='key' size='1' onchange='get_values(1,\"%s\",this.value,\"%s\");get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' class='Width'>\n",
     46               $_GET["fProgram"], $_GET["fMode"]);
    4947    else
    50         printf("<select style='width:300px' id='key' size='%s' onchange=\"get_values(1,'%s',this.value,'%s')\" class='Width'>\n",
    51                $_GET["fSelectSize"], $_GET["fProgram"], $_GET["fMode"]);
     48        printf("<select style='width:300px' id='key' size='20' onchange=\"get_values(1,'%s',this.value,'%s')\" class='Width'>\n",
     49               $_GET["fProgram"], $_GET["fMode"]);
    5250
    5351    if (!empty($_GET["fKey"]) && strcmp("all", $_GET["fKey"])==0)
Note: See TracChangeset for help on using the changeset viewer.