summaryrefslogtreecommitdiff
path: root/utils/forms.php
diff options
context:
space:
mode:
authordeva <deva>2009-04-13 10:02:21 +0000
committerdeva <deva>2009-04-13 10:02:21 +0000
commit7c460e093563325279e2b122e0670f4f685b65f3 (patch)
tree5be54aa65c97110f3b64c347438af4801c7e755b /utils/forms.php
parent9be2a7a340ff28510533c503227b56ff7522f064 (diff)
Changed som minor things in time box.
Diffstat (limited to 'utils/forms.php')
-rw-r--r--utils/forms.php14
1 files changed, 3 insertions, 11 deletions
diff --git a/utils/forms.php b/utils/forms.php
index 4383d0a..c7971dc 100644
--- a/utils/forms.php
+++ b/utils/forms.php
@@ -68,17 +68,9 @@ function datetimeedit($label, $name, $timestamp = 0)
<div class="input">
<div class="label"><?php echo $label; ?></div>
<div class="widget">
- <input style="width: 40px;" name="<?php echo "vars[".$name."_year]"; ?>" value="<?php echo $year; ?>"/>
- /
- <input style="width: 20px;" name="<?php echo "vars[".$name."_month]"; ?>" value="<?php echo $month; ?>"/>
- /
- <input style="width: 20px;" name="<?php echo "vars[".$name."_day]"; ?>" value="<?php echo $day; ?>"/>
+ <input style="width: 40px;" name="<?php echo "vars[".$name."_year]"; ?>" value="<?php echo $year; ?>"/>/<input style="width: 20px;" name="<?php echo "vars[".$name."_month]"; ?>" value="<?php echo $month; ?>"/>/<input style="width: 20px;" name="<?php echo "vars[".$name."_day]"; ?>" value="<?php echo $day; ?>"/>
-
- <input style="width: 20px;" name="<?php echo "vars[".$name."_hour]"; ?>" value="<?php echo $hour; ?>"/>
- :
- <input style="width: 20px;" name="<?php echo "vars[".$name."_minute]"; ?>" value="<?php echo $minute; ?>"/>
- :
- <input style="width: 20px;" name="<?php echo "vars[".$name."_second]"; ?>" value="<?php echo $second; ?>"/>
+ <input style="width: 20px;" name="<?php echo "vars[".$name."_hour]"; ?>" value="<?php echo $hour; ?>"/>:<input style="width: 20px;" name="<?php echo "vars[".$name."_minute]"; ?>" value="<?php echo $minute; ?>"/>:<input style="width: 20px;" name="<?php echo "vars[".$name."_second]"; ?>" value="<?php echo $second; ?>"/>
</div>
</div>
<?php
@@ -92,7 +84,7 @@ function totimestamp($t, $name)
sprintf("%02d", $t[$name."_minute"]).":".
sprintf("%02d", $t[$name."_second"]);
- echo $timestring;
+ //echo $timestring;
return strtotime($timestring);
}