Index: trunk/www/db_po/get_progs.php
===================================================================
--- trunk/www/db_po/get_progs.php	(revision 11501)
+++ trunk/www/db_po/get_progs.php	(revision 11599)
@@ -33,8 +33,14 @@
     if (strcmp($_GET["fMode"], "edit")==0)
         printf("select program: <br>\n");
+//    else
+//        printf("select program: \n");
+
+    if (strcmp($_GET["fMode"], "view")==0)//reload tables in case of mode 'view'
+        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",
+               $_GET["fSelectSize"], $_GET["fSelectSize"], $_GET["fMode"]);
     else
-        printf("select program: \n");
-    printf("<select style='width: 120px' id='prog' size='%s' onchange=\"get_keys(this.value,'','%s','%s')\" class='Width'>\n",
-           $_GET["fSelectSize"], $_GET["fSelectSize"], $_GET["fMode"]);
+        printf("<select style='width: 120px' id='prog' size='%s' onchange=\"get_keys(this.value,'','%s','%s')\" class='Width'>\n",
+               $_GET["fSelectSize"], $_GET["fSelectSize"], $_GET["fMode"]);
+
     if (!empty($_GET["fProgram"]) && strcmp("all", $_GET["fProgram"])==0)
         printf("<option value='all' selected> --- all programs --- </option>\n");
@@ -46,7 +52,7 @@
         else
             printf("<option value='%s'>%s </option>\n", $row0[0], $row0[0]);
-    printf("</select>\n<br>\n");
+    printf("</select>\n");
     if (strcmp($_GET["fMode"], "edit")==0)
-        printf("<button onClick='addRow(1,\"\",\"\",\"\",\"\",\"\");' id='addrowprog' style='display:inline'>Add Prg/Key</button>\n");
+        printf("<br>\n<button onClick='addRow(1,\"\",\"\",\"\",\"\",\"\",\"\",\"\");' id='addrowprog' style='display:inline'>Add Prg/Key</button>\n");
     mysql_free_result($result0);
 
