Changeset 11780 for trunk/www/db_po
- Timestamp:
- 08/05/11 12:07:30 (13 years ago)
- Location:
- trunk/www/db_po
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/db_po/get_date.php
r11599 r11780 37 37 $identifier1=""; 38 38 $identifier2="Y"; 39 $datename="YYYY"; 39 40 $newdatename="month"; 40 41 if (strcmp($_GET["fDateValue"],"empty")==0) … … 47 48 $identifier1="%Y"; 48 49 $identifier2="m"; 50 $datename="MM"; 49 51 $newdatename="day"; 50 52 } … … 53 55 $identifier1="%Y-%m"; 54 56 $identifier2="d"; 57 $datename="DD"; 55 58 $newdatename="hour"; 56 59 } … … 59 62 $identifier1="%Y-%m-%d"; 60 63 $identifier2="H"; 64 $datename="hh"; 61 65 $newdatename="min"; 62 66 } … … 65 69 $identifier1="%Y-%m-%d %H"; 66 70 $identifier2="i"; 71 $datename="mm"; 67 72 $newdatename="sec"; 68 73 } … … 71 76 $identifier1="%Y-%m-%d %H:%i"; 72 77 $identifier2="s"; 78 $datename="ss"; 73 79 $newdatename=""; 74 80 } … … 95 101 $_GET["fDateName"], $_GET["fIdx"], $newdatename, $_GET["fIdx"]); 96 102 if (strcmp($_GET["fDateValue"],"empty")!=0) 97 printf("<option value='empty'>%s</option>\n", $ _GET["fDateName"]);103 printf("<option value='empty'>%s</option>\n", $datename); 98 104 else 99 105 printf("<option value='empty'>-</option>\n"); -
trunk/www/db_po/po.js
r11771 r11780 830 830 { 831 831 document.getElementById('datepulldown'+idx).style.display = "none"; 832 document.getElementById('dateinput'+idx).style.display = " ";832 document.getElementById('dateinput'+idx).style.display = "inline"; 833 833 set_statusdate(idx, get_statusdate(idx, 'pulldown')); 834 834 } … … 836 836 function ShowDatePulldown(idx) 837 837 { 838 document.getElementById('datepulldown'+idx).style.display = " ";838 document.getElementById('datepulldown'+idx).style.display = "inline"; 839 839 document.getElementById('dateinput'+idx).style.display = "none"; 840 840 set_statusdate(idx, get_statusdate(idx, 'textinput')); -
trunk/www/db_po/view_po.php
r11600 r11780 51 51 printf("<td bgcolor='#DCDCFF'>Date: \n"); 52 52 //buttons to show next/prev timestamp 53 printf("<button onClick='get_timestamp(%s, \"prev\");get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' id='prevtimestamp%s' style='display:inline'>Prev Time Stamp</button>\n", $i, $i); 53 54 printf("<button onClick='get_timestamp(%s, \"next\");get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' id='nexttimestamp%s' style='display:inline'>Next Time Stamp</button>\n", $i, $i); 54 printf("<button onClick='get_timestamp(%s, \"prev\");get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' id='prevtimestamp%s' style='display:inline'>Prev Time Stamp</button>\n", $i, $i); 55 //reset date button 56 printf("<button onClick='reset_dates(\"year\", \"empty\", \"empty\", %d);get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' id='resetdate%d' style='display:inline'>Reset Date</button>\n", $i, $i); 55 57 //input field 56 58 printf("<br>\n", $i); 57 59 printf("<div id='dateinput%d' style='display:none'>(YYYY-MM-DD hh:mm:ss) \n", $i); 58 printf("<input id=\"statusdate%d\" type=\"text\" size=\"19\" maxlength=\"19\"> <br>\n", $i);60 printf("<input id=\"statusdate%d\" type=\"text\" size=\"19\" maxlength=\"19\">\n", $i); 59 61 printf("</div>\n"); 60 62 … … 64 66 printf("<div id='yearselect%d' style='display:inline'>\n", $i); 65 67 printf("<select id='year%d' onchange=\"get_dates('month', this.value, this.value, %d, 'yes')\">\n", $i, $i); 66 printf("<option value='empty'> year</option>\n");68 printf("<option value='empty'>YYYY</option>\n"); 67 69 while ($row0 = mysql_fetch_row($result0)) 68 70 { … … 71 73 } 72 74 printf("</select></div>\n"); 75 73 76 //select for months 74 77 printf("<div id='monthselect%d' style='display:inline'>\n", $i); 75 78 printf("<select id='month%d' onchange=\"get_dates('day', this.value, 'empty', %d, 'yes')\">\n", $i, $i); 76 printf("<option value='empty'> month</option>\n");79 printf("<option value='empty'>MM</option>\n"); 77 80 printf("</select>\n"); 78 81 printf("</div>\n"); … … 80 83 printf("<div id='dayselect%d' style='display:inline'>\n", $i); 81 84 printf("<select id='day%d' onchange=\"get_dates('hour', this.value, 'empty', %d, 'yes')\">\n", $i, $i); 82 printf("<option value='empty'> day</option>\n");85 printf("<option value='empty'>DD</option>\n"); 83 86 printf("</select>\n"); 84 87 printf("</div>\n"); … … 86 89 printf("<div id='hourselect%d' style='display:inline'>\n", $i); 87 90 printf("<select id='hour%d' onchange=\"get_dates('min', this.value, 'empty', %d, 'yes')\">\n", $i, $i); 88 printf("<option value='empty'>h our</option>\n");91 printf("<option value='empty'>hh</option>\n"); 89 92 printf("</select>\n"); 90 93 printf("</div>\n"); … … 92 95 printf("<div id='minselect%d' style='display:inline'>\n", $i); 93 96 printf("<select id='min%d' onchange=\"get_dates('sec', this.value, 'empty', %d, 'yes')\">\n", $i, $i); 94 printf("<option value='empty'>m in</option>\n");97 printf("<option value='empty'>mm</option>\n"); 95 98 printf("</select>\n"); 96 99 printf("</div>\n"); … … 98 101 printf("<div id='secselect%d' style='display:inline'>\n", $i); 99 102 printf("<select id='sec%d'>\n", $i, $i); 100 printf("<option value='empty'>s ec</option>\n");103 printf("<option value='empty'>ss</option>\n"); 101 104 printf("</select>\n"); 102 105 printf("</div>\n"); 103 //buttton to show next timestamp 104 //printf("<button onClick='get_timestamp(%s, \"next\");get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' id='nexttimestamp%s' style='display:inline'>Next Time Stamp</button>\n", $i, $i); 105 //printf("<button onClick='get_timestamp(%s, \"prev\");get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' id='prevtimestamp%s' style='display:inline'>Prev Time Stamp</button>\n", $i, $i); 106 106 107 printf("</div>\n"); 107 108 printf("<br>\n"); … … 151 152 //list of POs 152 153 printf("<tr>\n"); 153 printf("<td bgcolor='#BEFFBE' colspan='2' ><div id='valuefield2'></div></td>\n");154 printf("<td bgcolor='#BEBEFF' colspan='2' ><div id='valuefield3'></div></td>\n");154 printf("<td bgcolor='#BEFFBE' colspan='2' valign='top'><div id='valuefield2'></div></td>\n"); 155 printf("<td bgcolor='#BEBEFF' colspan='2' valign='top'><div id='valuefield3'></div></td>\n"); 155 156 printf("</tr>\n"); 156 157
Note:
See TracChangeset
for help on using the changeset viewer.