<td colspan="2" class="new"><span class="red">��������-���ջ���:</span></td>
      </tr>
      <tr>
        <td class="new"><form action=?m=2&sm=1& method=post target=_blank>
	<input type=hidden name=flag value=8>
	<select name="m" class="sele02" id="m">
	  <option value="1" selected>��</option>
	  <?php 
echo selectStepOptions(array('start' => 1, 'end' => 12), $this);
?>

	</select>
	<select name="d" class="sele02" id="d">
	  <option value="1" selected>��</option>
	  <?php 
echo selectStepOptions(array('start' => 1, 'end' => 31), $this);
?>

	</select>
	 
 
	<select name=flag1 class="sele01" id="flag1">
	  <option value="������">������</option>
	  <option value="���ջ�">���ջ�</option>
	</select>
 
	<input name="" type="submit" value="��ѯ" class="bot01"   /></p>
 </form></td>
      </tr>      <tr>
        <td colspan="2" class="new"><span class="red">���̷���:</span></td>
      </tr>  <tr>
?>
</select>月
        
        <select name="d" size="1"><?php 
echo selectStepOptions(array('start' => 1, 'end' => 31, 'selected' => $this->_tpl_vars['ri1'], 'default' => $this->_tpl_vars['_thisDay']), $this);
?>
</select>日
        
        <select size="1" name="hh"> <?php 
echo selectStepOptions(array('start' => 0, 'end' => 23, 'selected' => $this->_tpl_vars['hh1']), $this);
?>
 </select>点
        
        <select size="1" name="fen"><option value="0">未知</option>
		<?php 
echo selectStepOptions(array('start' => 0, 'end' => 59, 'selected' => $this->_tpl_vars['mm1']), $this);
?>

		</select>分
       </TD>
      </tr>  <tr>
        <TD class=new style="PADDING-BOTTOM: 8px" vAlign=top><strong>姓名:</strong>
          <input onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" name="name" type="text" value="<?php 
echo $this->_tpl_vars['xing'];
echo $this->_tpl_vars['ming'];
?>
" />
          &nbsp;
          <select size="1" name="b">
<option value="男" <?php 
if ($this->_tpl_vars['xingbie'] == "男") {
      <TD vAlign=top class=new style="PADDING-BOTTOM: 8px;width:100%">黄历查询:<select name="yy" size="1" id="yy" style="font-size: 9pt">
          >
          <?php 
echo selectStepOptions(array('start' => $this->_tpl_vars['_thisYear'], 'end' => 2020, 'selected' => $this->_tpl_vars['_thisYear']), $this);
?>

        </select>年
<select name="mm" size="1" id="mm" style="font-size: 9pt">
  <?php 
echo selectStepOptions(array('start' => 1, 'end' => 12, 'selected' => $this->_tpl_vars['_thisMonth']), $this);
?>

</select>月
<select name="dd" size="1" id="dd" style="font-size: 9pt">
  <?php 
echo selectStepOptions(array('start' => 1, 'end' => 31, 'selected' => $this->_tpl_vars['_thisDay']), $this);
?>

</select>日 <input type="submit" name="Submit" value="查询">        </TD></form>
    </tr>
    <tr>
       <form name="form1" method="post" action="?m=6&sm=6">
         <TD vAlign=top class=new style="PADDING-BOTTOM: 8px">选日子:<select name="upto" >
                <option value="3">3天以内</option>
                <option value="7">一周以内</option>
                <option value="30">一月以内</option>
                <option value="90">三月以内</option>
                <option value="180">半年内</option>
                <option value="365">今年内</option>
            </select>
            <select name="weekday" >
      </select>年
      <select size="1" name="yue" style="font-size: 9pt">           
        <?php 
echo selectStepOptions(array('start' => 1, 'end' => 12, 'selected' => $this->_tpl_vars['_thisMonth']), $this);
?>
            
      </select>月
   <select size="1" name="ri" style="font-size: 9pt">         
        <?php 
echo selectStepOptions(array('start' => 1, 'end' => 31, 'selected' => $this->_tpl_vars['_thisDay']), $this);
?>
          
    </select>日
      <select size="1" name="hh" style="font-size: 9pt">
      <?php 
echo selectStepOptions(array('start' => 0, 'end' => 23), $this);
?>
  
      </select>点
      <input type="submit" name="btnAdd" value="测算"></td>
    </tr><tr bgcolor="#EFF8FE">
  <td class="new" colspan="2" valign="middle"><div align="center"><A href='#' style='cursor:hand;' onclick="window.open('wannianli.htm','cidunongli','left=160,top=100,width=700,height=400,scrollbars=no,resizable=no,status=no')" title="如果您只知道生日的公历日期,不要紧,请点这里去查询农历日期">[<font color=red>查询农历生日</font>]</a></div></td>
</tr>
<?php 
if ($_REQUEST['nn']) {
    ?>

<tr bgcolor="#EFF8FE">
<td class="new" colspan="2" valign="middle">
<br><br>&nbsp;预测结果如下:<br><br>&nbsp;你的财运属<font size='6' color=red>『<?php 
    echo $this->_tpl_vars['content'];
      ><?php 
    echo selectStepOptions(array('start' => 1, 'end' => 12), $this);
    ?>

     </select>月 &nbsp;<input name="sub" type="submit" value="开始推算">
   </td></form>
    </tr> <tr>
    <td colspan="2" class="ttd"><font color="#0000ff">*我要查询适合怀孕的月份:</font>
   </td>
    </tr><form name="theform" method="post" action="">
<input type="hidden" name="act" value="ok" />
<input type="hidden" name="cs" value="2" /><tr>
    <td colspan="2" class="new">我的芳名叫:<input name="mqname" type="text">&nbsp;,今年芳龄(虚岁)是:<select name="nn" size="1" style="font-size: 9pt">
      >
      <?php 
    echo selectStepOptions(array('start' => 18, 'end' => 45, 'selected' => 22), $this);
    ?>

     </select>&nbsp;,我计划生个:<select name="snsn" size="1" style="font-size: 9pt">
       <option value="男">小王子</option>
       <option value="女">小公主</option>

     </select>
     &nbsp;
     <input name="sub" type="submit" value="开始推算">
   </td></form>
    </tr><?php 
}
?>
</tbody>
</table>