Changeset 11780 for trunk/www/db_po/get_date.php
- Timestamp:
- 08/05/11 12:07:30 (13 years ago)
- File:
-
- 1 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");
Note:
See TracChangeset
for help on using the changeset viewer.