<?php 
}
?>
              </optgroup>
            </select>			</td>
        </tr>
        <tr>
          <td align="right">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>	
        <tr>
          <td align="right">Month * </td>
          <td>&nbsp;</td>
          <td><?php 
$monthChoices = EJHSJournalForm::getMonthFormChoices();
?>
            <select name="month" id="month">
              <optgroup style="font-size:11px; width:100px; ">
              <option value="" > Select Month  </option>
              <?php 
foreach ($monthChoices as $key => $value) {
    ?>
              <option value="<?php 
    echo $key;
    ?>
" <?php 
    if ($key == $month) {
        ?>
 selected="selected" <?php 
    }
示例#2
0
              <option value="<?php 
    echo $key;
    ?>
"> <?php 
    echo $value;
    ?>
 </option>
              <?php 
}
?>
              </optgroup>
            </select>		</td>
        <td width="39%">		
		Number: 
		<?php 
$numberChoices = EJHSJournalForm::getNumberFormChoices();
?>
            <select name="num" id="num">
              <optgroup style="font-size:11px; width:100px; ">
              <option value="" > Select Number </option>
              <?php 
foreach ($numberChoices as $key => $value) {
    ?>
              <option value="<?php 
    echo $key;
    ?>
" > <?php 
    echo $value;
    ?>
 </option>
              <?php