Guest User

Untitled

a guest
May 21st, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. print "<br><br><br><b>Date Range Selector</b><br><br>\n";
  2. print "<table border=1 cellspacing=0 bgcolor=\"#c0c0c0\"><tr bgcolor=\"#000000\"><th><font color=\"#ffffff\">Most Recent:</font></th><th><font color=\"#ffffff\">Oldest</color></th></tr>\n";
  3. print "<tr><td><select name=mostrecent>\n";
  4. for ($i=0;$i <$#theDates+1;$i++) {
  5. $thisDates = substr(@theDates[$i],0,4)."-".substr(@theDates[$i],4,2)."-".substr(@theDates[$i],6,2)." ".substr(@theDates[$i],8,2).":".substr(@theDates[$i],10,2).":".substr(@theDates[$i],12,2);
  6. print "<option>$thisDates\n";
  7. }
  8. print "</select></td>";
  9. print "<td><select name=oldest>\n";
  10. for ($i=0;$i <$#theDates+1;$i++) {
  11. $thisDates = substr(@theDates[$i],0,4)."-".substr(@theDates[$i],4,2)."-".substr(@theDates[$i],6,2)." ".substr(@theDates[$i],8,2).":".substr(@theDates[$i],10,2).":".substr(@theDates[$i],12,2);
  12. print "<option ";
  13. if ($i == 7) {
  14. print "selected";
  15. }
  16. print ">$thisDates\n";
  17. }
  18. print "</select></td></tr>";
  19. print "</table>";
Add Comment
Please, Sign In to add comment