Esempio n. 1
0
<?php

$startyear = isset($o->rp('row')->startyear) ? $o->rp('row')->startyear : false;
$dates = steamform_helper::create_dates((int) $startyear);
$cval = $o->rp('cval');
echo form::dropdown($o->rp('name') . '_day', $dates['days'], date("d", strtotime($cval)));
echo form::dropdown($o->rp('name') . '_month', $dates['months'], date("m", strtotime($cval)));
echo form::dropdown($o->rp('name') . '_year', $dates['years'], date("Y", strtotime($cval)));
echo $o->get_error($o->rp('name'));
Esempio n. 2
0
<?php

$dates = steamform_helper::create_dates(1930);
$cval = $o->rp('cval');
echo form::dropdown($o->rp('name') . '_day', $dates['days'], date("d", strtotime($cval)));
echo form::dropdown($o->rp('name') . '_month', $dates['months'], date("m", strtotime($cval)));
echo form::dropdown($o->rp('name') . '_year', $dates['dobyears'], date("Y", strtotime($cval)));
echo $o->get_error($o->rp('name'));