=".$counter; if ($_GET["fStatusDate"]!="") $query0.=" AND (fValidFrom < '".$_GET["fStatusDate"]."' OR fValidFrom like '".$_GET["fStatusDate"]."%') "; } $query0.=" ORDER BY MyIndex "; $result0=mysql_query($query0, $db_id); if ($_GET["fGetValCase"]==1) { printf("\n"); printf("\n"); printf("\n", $_GET["fProgram"], $_GET["fKey"], $key1, $key2, $type, $min, $max, $descr); } //checkboxes to show/hide part of the table if ($_GET["fGetValCase"]==1)//show only in edit mode { printf("Show:\n"); printf("indices\n"); printf("validsince\n"); printf("user\n"); } if ($_GET["fGetValCase"]==1)//show only in edit mode $generalshowhide=''; else $generalshowhide='none'; printf("
Idx/Orig/Ctr | \n",$_GET["fGetValCase"], $generalshowhide); //printf("Valid since | \n", $_GET["fGetValCase"], $generalshowhide); printf(" \n",$_GET["fGetValCase"]); printf(" \n", $_GET["fGetValCase"]); printf("Program | \n"); //printf("Key | \n"); printf("Key1 | \n"); printf("Key2 | \n"); printf("Value | \n"); printf("Type | \n"); printf("Min | \n", $_GET["fGetValCase"], $generalshowhide); printf("Max | \n", $_GET["fGetValCase"], $generalshowhide); printf("Description | \n", $_GET["fGetValCase"], $generalshowhide); if ($_GET["fGetValCase"]==1)//show only in edit mode printf("Action | \n"); //printf("User | \n", $_GET["fGetValCase"], $generalshowhide); printf(" \n", $_GET["fGetValCase"], $generalshowhide); printf("|||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
%s / %s / %s | \n", // $_GET["fGetValCase"], $generalshowhide, $row0[0], $row0[12], $row0[6], $_GET["fGetValCase"], $row0[0], $row0[12]); printf(" \n", $_GET["fGetValCase"], $row0[0], $row0[12], $row0[6], $_GET["fGetValCase"], $row0[0], $row0[12]); //valid from //if (strcmp('1970-01-01 00:00:00', $row0[1])==0) // printf("%s | \n", $_GET["fGetValCase"], $generalshowhide, $row0[0], $row0[1]); //else // printf("%s | \n", $_GET["fGetValCase"], $generalshowhide, $row0[1]); if (strcmp('1970-01-01 00:00:00', $row0[1])==0) printf(" \n", $_GET["fGetValCase"], $row0[0], $row0[1]); else printf(" \n", $_GET["fGetValCase"], $row0[1]); //program printf("%s | \n", $row0[0], $row0[2]); //keys //printf("%s | \n", $row0[0], $row0[3]); printf("%s | \n", $row0[0], $row0[10]); printf("%s | \n", $row0[0], $row0[11]); //value // string -> align left // rest -> align right if (strcmp('string', $row0[7])==0) printf("%s | \n", $row0[0], $row0[4]); else printf("%s | \n", $row0[0], $row0[4]); //type printf("%s | \n", $row0[0], $row0[7]); //min printf("%s | \n", $_GET["fGetValCase"], $generalshowhide, $row0[0], $row0[8]); //max printf("%s | \n", $_GET["fGetValCase"], $generalshowhide, $row0[0], $row0[9]); //descripton printf("%s | \n", $_GET["fGetValCase"], $generalshowhide, $row0[0], $row0[5]); //action if ($_GET["fGetValCase"]==1)//show only in edit mode { if ($row0[6]==$counter) { printf("\n", $row0[0]); printf("\n", $row0[0]); printf("\n", $_GET["fProgram"], $_GET["fKey"], $key1, $key2, $type, $min, $max, $descr); //missing here descr(, key1, key2, val?) // in po.js: add descr, key1, key2, min, max in AddRow printf(" | \n"); } else printf("\n", $row0[0]); } //user //printf(" | %s | \n", $_GET["fGetValCase"], $generalshowhide, $row0[0], $row0[13]); printf(" \n", $_GET["fGetValCase"], $row0[0], $row0[13]); printf("