<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>浏览详细信息</title>
<!--#include file="conn.asp"-->
<!--#include file="check.asp"-->
<!--#include file="../inc/char.asp"-->
<!--#include file="../inc/setup.asp"-->
<!--#include file="../inc/sql.asp"-->
<%
	end if
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/public.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body bgcolor="#ffffff" text="#000000" oncontextmenu=self.event.returnValue=false bottommargin="0" topmargin="0" rightmargin="0" leftmargin="0">
 <table width="477" border="0" align="center" cellspacing="1" cellpadding="0">
    <tr> 
      <td class="tab_03" height="30"><img src="../images/pn_16.gif" width="19" height="13" align="absmiddle"><b>详细咨询报名信息</b></td>
    </tr>
    <tr><td height="1"></td></tr>
</table>
<%
	id=ReplaceBadChar(int(Trim(Request.QueryString("id"))))
	tid=ReplaceBadChar(int(Request.Cookies("admin_train_id")))
	conn.Execute("update train_join set zhuangtai=1 where id="&id&" and tid="&tid&"")
	Set rs = Server.CreateObject("ADODB.Recordset")
	sql="select * from train_join where id="&id&" and tid="&tid&""
	rs.open sql,conn,1,1
	if rs.eof then
		response.write"<SCRIPT language=JavaScript>alert('对不起，非法操作！');"
		response.write"javascript:window.close();</SCRIPT>"
		response.end
	else
%>
  <table width="477" border="0" align="center" cellspacing="1" cellpadding="5" bgcolor="E6E6E6">
    <tr bgcolor="#FFFFFF"> 
      <td width="64" height="21" align="center" bgcolor="#EfEfEf"><b>类型</b></td>
      <td width="390"><% if rs("ttype")=0 then Response.Write("报名") else Response.Write("咨询")%></td>
    </tr>
    
    <tr bgcolor="#FFFFFF"> 
      <td height="25" align="center" bgcolor="#efefef"><b>姓名</b></td>
      <td><%= rs("tname") %></td>
    </tr>
    
    <tr bgcolor="#FFFFFF"> 
      <td height="25" align="center" valign="top" bgcolor="#efefef" ><b>电话</b></td>
      <td><%= rs("phone") %></td>
    </tr>
    
    <tr bgcolor="#FFFFFF"> 
      <td height="25" align="center" valign="top" bgcolor="#efefef" ><b>邮件</b></td>
      <td><%= rs("email") %> </td>
    </tr>
	
    <tr bgcolor="#FFFFFF"> 
      <td height="25" align="center" valign="top" bgcolor="#efefef" ><b>地址</b></td>
      <td><%= rs("address") %></td>
    </tr>
	
    <tr bgcolor="#FFFFFF"> 
      <td height="25" align="center" valign="top" bgcolor="#efefef" ><b>邮编</b></td>
      <td><%= rs("code") %></td>
    </tr>
	
    <tr bgcolor="#FFFFFF"> 
      <td height="147" align="center" valign="top" bgcolor="#efefef" ><b>备注</b></td>
      <td valign="top"><%= rs("notice") %></td>
    </tr>
    
</table>
<%
	end if
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
%>
</form>
</body>
</html>