//算命算
function sm_sub(){
global $session;
$content="";
$content .= '姓:<input type="text" name="xing" emptyok="false" value=""/>';
$content .= '名:<input type="text" name="ming" value=""/><br/>';
$content .= "性别:<select name=\"sex\" title=\"sex\" value=\"\">";
$content .= "<option value='男'>男</option>";
$content .= "<option value='女'>女</option>";
$content .='</select>';
$content .= "血型:<select name=\"blood\" title=\"blood\" value=\"\">";
foreach (array('A','B','O','AB') as $key => $val){
$content .= "<option value='{$val}'>{$val}</option>";
}
$content .='</select><br/>';
$content .='请输入公历生日:<br/>';
$content .= '年:<input type="year" name="year" value=""/>';
$content .= '月:<input type="month" name="month" value=""/>';
$content .= '日:<input type="day" name="day" value=""/>';
$content .= '点:<input type="hour" name="hour" value=""/>';
$content .= '分:<input type="min" name="min" value=""/>';
$content .= '<anchor title="">'."启动算命器";
$content .= "<go method='post' href='index.php?type=smsub&session=$session'>";
$content .= '<postfield name="xing" value="$xing"/>';
$content .= '<postfield name="ming" value="$ming"/>';
$content .= '<postfield name="sex" value="$sex"/>';
$content .= '<postfield name="blood" value="$blood"/>';
$content .= '<postfield name="year" value="$year"/>';
$content .= '<postfield name="month" value="$month"/>';
$content .= '<postfield name="day" value="$day"/>';
$content .= '<postfield name="hour" value="$hour"/>';
$content .= '<postfield name="min" value="$min"/>';
$content .= "</go></anchor>";
$content .= "<br/>";
return $content;
}
//身份证算
function sfz_sub(){
global $session;
$content="";
$content .= '<input type="text" name="sfzSub" value="" maxlength="18"/>';
$content .= '<anchor title="">'."马上算";
$content .= "<go method='post' href='index.php?type=sfzsub&session=$session'>";
$content .= '<postfield name="sfzSub" value="$sfzSub"/>';
$content .= "</go></anchor>";
$content .= "<br/>";
return $content;
}