summaryrefslogtreecommitdiff
path: root/utils/forms.php
diff options
context:
space:
mode:
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);
}