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_progs.php

    r11501 r11599  
    3333    if (strcmp($_GET["fMode"], "edit")==0)
    3434        printf("select program: <br>\n");
     35//    else
     36//        printf("select program: \n");
     37
     38    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",
     40               $_GET["fSelectSize"], $_GET["fSelectSize"], $_GET["fMode"]);
    3541    else
    36         printf("select program: \n");
    37     printf("<select style='width: 120px' id='prog' size='%s' onchange=\"get_keys(this.value,'','%s','%s')\" class='Width'>\n",
    38            $_GET["fSelectSize"], $_GET["fSelectSize"], $_GET["fMode"]);
     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"]);
     44
    3945    if (!empty($_GET["fProgram"]) && strcmp("all", $_GET["fProgram"])==0)
    4046        printf("<option value='all' selected> --- all programs --- </option>\n");
     
    4652        else
    4753            printf("<option value='%s'>%s </option>\n", $row0[0], $row0[0]);
    48     printf("</select>\n<br>\n");
     54    printf("</select>\n");
    4955    if (strcmp($_GET["fMode"], "edit")==0)
    50         printf("<button onClick='addRow(1,\"\",\"\",\"\",\"\",\"\");' id='addrowprog' style='display:inline'>Add Prg/Key</button>\n");
     56        printf("<br>\n<button onClick='addRow(1,\"\",\"\",\"\",\"\",\"\",\"\",\"\");' id='addrowprog' style='display:inline'>Add Prg/Key</button>\n");
    5157    mysql_free_result($result0);
    5258
Note: See TracChangeset for help on using the changeset viewer.