Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * select options for a list of time, values in seconds, first hour is separated into 1/4 hours, rest in 1/2
- */
- <?
- for($i=0;$i<4;$i++){?>
- <option <?=($status->countdown==$i?"selected":"")?> value="<?=($i*15)*60?>">00:<?=str_pad($i*15,2,0)?></option>
- <?}
- ?>
- <?
- for($i=4;$i<27;$i++){?>
- <option <?=($status->countdown==$i?"selected":"")?> value="<?=(($i-2)*30)*60?>"><?=str_pad(round(($i-3)/2),2,0,STR_PAD_LEFT)?>:<?=($i%2==0?"00":"30")?></option>
- <?}
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement