Ignore:
Timestamp:
07/26/11 10:51:38 (13 years ago)
Author:
Daniela Dorner
Message:
added various new features (min, max, user, show/hide of columns, ...) and changed layout
File:
1 edited

Legend:

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

    r11505 r11599  
    4141    if (strcmp($_GET["fMode"], "edit")==0)
    4242        printf("select key: <br>\n");
     43//    else
     44//        printf("select key: \n");
     45
     46    if (strcmp($_GET["fMode"], "view")==0)//reload tables in case of mode 'view'
     47        printf("<select style='width:200px' 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"]);
    4349    else
    44         printf("select key: \n");
    45     printf("<select style='width:200px' id='key' size='%s' onchange=\"get_values(1,'%s',this.value,'%s')\"class='Width'>\n",
    46            $_GET["fSelectSize"], $_GET["fProgram"], $_GET["fMode"]);
     50        printf("<select style='width:200px' id='key' size='%s' onchange=\"get_values(1,'%s',this.value,'%s')\" class='Width'>\n",
     51               $_GET["fSelectSize"], $_GET["fProgram"], $_GET["fMode"]);
     52
    4753    if (!empty($_GET["fKey"]) && strcmp("all", $_GET["fKey"])==0)
    4854        printf("<option value='all' selected> --- all keys --- </option>\n");
     
    5460        else
    5561            printf("<option value='%s'>%s </option>\n", $row0[0], $row0[0]);
    56     printf("</select>\n<br>\n");
     62    printf("</select>\n");
    5763    if (strcmp($_GET["fMode"], "edit")==0)
    58         printf("<button onClick='addRow(2,\"%s\",\"\",\"\",\"\",\"\");' id='addrowkey' style='display:inline'>Add Key</button>\n", $_GET["fProgram"]);
     64        printf("<br>\n<button onClick='addRow(2,\"%s\",\"\",\"\",\"\",\"\",\"\",\"\");' id='addrowkey' style='display:inline'>Add Key</button>\n", $_GET["fProgram"]);
    5965    mysql_free_result($result0);
    6066
Note: See TracChangeset for help on using the changeset viewer.