<!--#include file="conn.asp"-->
<!--#include file="inc/function.asp"-->
<!--#include file="inc/getuc.asp"-->
<html>
<head>
<title>三才分析，三才吉凶,三才算命,三才配置，三才五格---便民查询网-www.99fad.cn</title>
<META name=keywords content="三才分析，三才吉凶,三才算命,三才配置，三才五格">
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<style type="text/css">
<!--
BODY{
scrollbar-face-color: #d4d0c8;
scrollbar-highlight-color:#D4D0C8 ;
scrollbar-shadow-color:#d6d6d6 ;
scrollbar-3dlight-color:#e6e6e6 ;
scrollbar-arrow-color:#006699  ;
scrollbar-track-color:#dfdfdf ;
scrollbar-darkshadow-color: #808080; 
}
A:link {font-family:"Verdana",  "宋体"; COLOR: #000000;  font-size: 12px;  TEXT-DECORATION: none }
A:visited {font-family: "Verdana", "宋体";	COLOR: #000000; FONT-SIZE:12px; TEXT-DECORATION: none }
A:active {font-family: "Verdana", "宋体"; COLOR: #000099; FONT-SIZE: 12px; TEXT-DECORATION: none }
A:hover {font-family: "Verdana", "宋体"; COLOR: #dd0000>; FONT-SIZE: 12px; TEXT-DECORATION: underline }
.smallTxt{FONT-SIZE: 11px; FONT-FAMILY: "Tahoma","Arial","sans-serif"}
.style3 {FONT-SIZE: 14px; FONT-FAMILY: "Tahoma","Arial","sans-serif"; }
-->
</style>
</head>
<body>
<%
if xing<>"" then
%>
<%
'处理用户信息
dim tiange,dige,renge1,renge2,renge
tiange=0
dige=0
renge1=0
renge2=0
renge=0
'姓
dim xing1,xing2,bihua1,bihua2
bihua1=0
bihua2=0
xing1=mid(xing,1,1)
bihua1=getnum(xing1)
tiange=bihua1+1
renge1=bihua1
if mid(xing,2,1) <> "" then
xing2=mid(xing,2,1)
bihua2=getnum(xing2)
tiange=bihua1+bihua2
renge1=bihua2 
end if
'名
dim ming1,ming2,bihua3,bihua4
bihua3=0
bihua4=0
ming1=mid(ming,1,1)
bihua3=getnum(ming1)
dige=bihua3+1
renge2=bihua3
if mid(ming,2,1) <> "" then
ming2=mid(ming,2,1)
bihua4=getnum(ming2)
dige=bihua3+bihua4
end if
%>
<%
'计算三才
renge=renge1+renge2
dim sancai
sancai=getsancai(tiange,renge,dige)
%>
<%
on error resume next
'三才吉凶
dim sqlsancai,sancaicontent
sqlsancai="select content from sancai where title='"&sancai&"'"
set rssancai=conn.execute(sqlsancai)
if not (rssancai.bof and rssancai.eof) then
sancaicontent=rssancai("content")
end if
%>
<%
'输出
If Err Then
response.Write "三才吉凶查询内容出错!"
err.Clear
Response.End
End If
%>
<table width="100%" height="95%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#C0DBEF">
<tr bgcolor="#EFF8FE">
<td height="50" align="center"><span class="style3"><%="<font color='#cc6600'>"&xing&ming&"</font>"&","%>您的三才为：&nbsp;<%="<font color=#ff6600>"&sancai&"</font>"%>。释义如下：</span></td>
</tr>
<tr bgcolor="#EFF8FE">
  <td bgcolor="#EFF8FE"><span class="style3">
<%="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&sancaicontent%>
</span></td>
</tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>
<%else%>
<table width="100%" height="95%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#C0DBEF">
<tr bgcolor="#EFF8FE">
<td height="50" align="center" class="smallTxt">对不起，要测算请返回输入您的用户数据!<a href="youinfo.asp"><font color="#FF0000">点击这里</font></a></td>
</tr>
<tr bgcolor="#EFF8FE">
  <td bgcolor="#EFF8FE"><span class="style3">所谓三才<br><br>即天才、人才、地才，它们分别是天格、人格、地格数字的个位 数。<br>天、地、人三才数理共计10个数，如果个位数是0，则按10计算。<br>以数理来划分五行。<br>五行之间的关系是：木、火、土、金、水相临相生，相隔相克。<br>这样，根据数理与五行之间的内在联系，推算出来的配置关系即为三才配置。
<br>从中观察三才配置的凶吉，可以判断把握您的综合运势，预测您的事业成功 率以及身体状况。 
</span></td>
</tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>
<%end if%>