Location: PHPKode > projects > PHP CMS Generator > phpcmsgenerator-0.3.2/phpcmsgenerator/templates/dateSelects.tpl
<select name="{{$field}}Month">
        <?
        for($i=1;$i<=12;++$i) {
          ?><option <?
          if($i == $editData->{{$field}}Month)
            echo 'SELECTED ';
          ?>value="<?= $i ?>"><?= date('F',mktime(0,0,0,$i,2,0)) ?>
          <?
        }
        ?>
        </select>
        <select name="{{$field}}Day">
        <?
        for($i=1;$i<=31;++$i) {
          ?><option <?
          if($i == $editData->{{$field}}Day)
            echo 'SELECTED ';
          ?>value="<?= $i ?>"><?= $i ?>
          <?
        }
        ?>
        </select>
        <select name="{{$field}}Year">
        <?
        for($i=date('Y');$i<=date('Y')+5;++$i) {
          ?><option <?
          if($i == $editData->{{$field}}Year)
            echo 'SELECTED ';
          ?>value="<?= $i ?>"><?= $i ?>
          <?
        }
        ?>
</select>
Return current item: PHP CMS Generator