<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%
ColumnName="":Tablename="HX_PersonalPDA":action=request("action")
if action="saveinfo" then
Orderby=" where WS_PersonalName='"&request("pname")&"' and WS_Userid="&LoginUid
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
if rs.recordcount>0 then
  HX_GoBack "此人已添加",""
else
  rs.addnew:rs("WS_Personalname")=request("pname"):rs("WS_Personalsex")=request("sex"):rs("WS_Personalrelation")=request("relation"):rs("WS_Personalcompany")=request("company"):rs("WS_Personalduty")=request("duty"):rs("WS_Personaltel")=request("tel"):rs("WS_PersonalMobile")=request("Mobile"):rs("WS_Personaloicq")=request("oicq"):rs("WS_Personaladdress")=request("address"):rs("WS_Personalemail")=request("email"):rs("WS_Personalbrief")=request("brief"):rs("WS_Userid")=LoginUid:rs.update
  response.write "<script>window.opener.location.reload();if(!confirm('是否继续添加？')) window.close();else location.href='PersonalAddPDA.asp';</script>"
  response.end
end if
end if
response.Write "<head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>添加个人信息</title><link rel=stylesheet type=text/css href='../HXinclude/HX_Css.css'><script src='../HXinclude/HX_Function.js'></script></head><body topmargin='10' leftmargin='0' bottommargin='10'><table width='520'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#613c25'><tr><td colspan='2' bgcolor=FFFBE8><table width='100%'  border='0' cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>个人通迅录</font></td></tr></table><table width='100%'  border='0' cellspacing='1' cellpadding='4' bgcolor=FFFBE8><form name='form1' method='post' action='?action=saveinfo' onSubmit='return PersonalPDA(this)'><tr bgcolor='#FFFBE8'><td width='73' height='20' valign='middle'> 姓　　名</td><td width='96' height='20' valign='middle'><input type='text' name='Pname' maxlength='20' size='12'><font color=red> *</font></td><td width='41' height='20' valign='middle'>性 别</td><td width='114' height='20' valign='middle'><select name='sex'><option value='男' selected>男</option><option value='女'>女</option></select></td><td width='41' height='20' valign='middle'>关 系</td><td width='98' height='20' valign='middle'><select name='relation'><option value='家人'>家人</option><option value='朋友' selected>朋友</option><option value='同事'>同事</option><option value='领导'>领导</option><option value='其他'>其他</option></select></td></tr><tr bgcolor='#FFFBE8'><td width='73' height='20'>联系电话</td><td width='96' height='20'><input type='text' name='tel' maxlength='20' size='12' style='ime-mode:disabled'></td><td width='41' height='20'>手 机</td><td width='114' height='20'><input type='text' name='Mobile' maxlength='20' size='12' style='ime-mode:disabled'></td><td width='41' height='20'>Oicq</td><td width='98' height='20'><input type='text' name='oicq' maxlength='20' size='12' style='ime-mode:disabled'></td></tr><tr><td width='73' height='20' bgcolor='#FFFBE8'>所在公司&nbsp;</td><td height='20' colspan='3' bgcolor='#FFFBE8'><input type='text' name='company' maxlength='20' size='40'></td><td width='41' height='20' bgcolor='#FFFBE8'>职 务</td><td width='98' height='20' bgcolor='#FFFBE8'><input type='text' name='duty' maxlength='20' size='12'></td></tr><tr><td width='73' height='20' bgcolor='#FFFBE8'>联系地址</td><td height='20' colspan='3' bgcolor='#FFFBE8'><input type='text' name='address' maxlength='80' size='40'></td><td width='41' height='20' bgcolor='#FFFBE8'>E_Mail</td><td width='98' height='20' bgcolor='#FFFBE8'><input type='text' name='email' maxlength='20' size='12' style='ime-mode:disabled'></td></tr><tr><td width='73' height='20' bgcolor='#FFFBE8'>备　　注</td><td height='20' colspan='5' bgcolor='#FFFBE8'><textarea name='brief' cols='70' rows='6' class='bgline'></textarea></td></tr><tr><td height='20' bgcolor='#FFFBE8'>&nbsp;</td><td height='20' colspan='5' bgcolor='#FFFBE8'><input type='submit' name='Submit' value=' 添 加 '> <input type='button' name='Submit' value=' 关 闭 ' onclick='window.close();'></td></tr></form></table></td></tr></table>"%>