<!--#include file="../inc/function.asp"-->
<%
if request.QueryString("action")="submit" then
Chkhttp()

	n_title=server.HTMLEncode(request.Form("n_title"))
	n_name=server.HTMLEncode(request.Form("n_name"))
	n_contact=server.HTMLEncode(request.Form("n_contact"))
	n_num=server.HTMLEncode(request.Form("n_num"))
	n_ip=server.HTMLEncode(request.Form("n_ip"))
	n_period=request.Form("n_period")
	n_date=request.Form("n_date")
	n_url=request.Form("n_url")

	
	if n_title="" then
	p3t ErrMsg("请输入网吧名称")
	elseif n_name="" then
	p3t ErrMsg("请输入法人代表")
	elseif n_contact="" then
	p3t ErrMsg("请输入联系方式")
	elseif n_num="" then
	p3t ErrMsg("请输入网吧机器台数")
	elseif n_ip="" then
	p3t ErrMsg("请输入网吧IP")
	elseif n_period="" then
	p3t ErrMsg("请选择合作期限")
	end if

        datee=formatdatetime(now,2)
	set rs=server.CreateObject("adodb.recordset")
	rs.open "select * from p3t_netbar",conn,1,3
	rs.addnew
	rs("n_title")=n_title
	rs("n_name")=n_name
	rs("n_contact")=n_contact
	rs("n_num")=n_num
	rs("n_ip")=n_ip
	rs("n_period")=n_period
	rs("n_date")=datee
	rs("n_url")=n_url
	rs.update
	rs.close
	set rs=nothing


	p3t "<script>alert('您的申请提交成功！我们会在24小时内与您联系！');parent.location.href='?';</script>"
	p3t_end

end if
getConfig()
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF;font-weight: 900}
.STYLE2 {color: #FFFFFF}
-->
</style>
<head>
<title>网吧合作申请 - 个人门户</title>
<link href="css/i.css" rel="stylesheet" type="text/css" />
<link href="css/s.css" rel="stylesheet" type="text/css" />
<style>
.cfnews-c .input { padding:2px; line-height:14px; vertical-align:middle;}
</style>
</head>
<body>
<div id="t-wrap">
	<div id="top">
		<div id="top-l"><a href="../">个人门户</a>&gt;&gt;<a>网吧合作申请</a></div>
		<div id="top-r"><a id="path-jianyi" href='../about/sk/' target="_blank">给栏目提建议</a></div>
	</div>
</div>
<ul id=banner>
	<li id=logo><a href='../' title='个人门户'></a></li>
	<li id=search>
		<form method="get" target="_blank" action="search.asp">
			<div id="search-ipt"><em class="s-lbg"></em><input name="keyword" id="keyword" autocomplete="off" /><input type="submit" id="s-btn" value="搜 索" /><em class="s-rbg"></em></div>
		</form>
	</li>
</ul>
<div id=main >
<TABLE width=100% border="0" cellPadding=2 cellSpacing=1 class="tableBorder">

<div class=cfnews>
<h2>已参与的网吧信息</h2>
</div>
<br>

      <tr>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE1">网吧名称</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE1">法人代表</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE1">联系方式</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE1">机器台数</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE1">合作期限</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE1">IP地址</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE1">提交时间</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE1">浏览次数</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE1">主页地址</span></div></td>
      </tr>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from p3t_netbar order by n_id desc"
rs.open sql,conn,1,1
if rs.eof then 
p3t "<tr><td class=""center"" colspan=""10"">暂无信息</td></tr>"
else
PageSize=10
NowPage=Request.QueryString("Page")
If NowPage="" Then:NowPage=1:Else:NowPage=Int(NowPage):End If
rs.PageSize=PageSize
rs.AbsolutePage=NowPage
i=0:PageList=0
'分页
pages=getPages(rs,NowPage,PageSize,PageList,"?")
do while not rs.eof
%>
      <tr>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE2">
*<% =right(rs("n_title"), 3) %>
</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE2">
*<% =right(rs("n_name"), 1) %>
</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE2">
<% =left(rs("n_contact"), 5) %>****
</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE2"> 
<%=rs("n_num")%>
</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE2">
<%=rs("n_period")%>
</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE2">
*<% =right(rs("n_ip"), 9) %>
</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE2">
<%=rs("n_date")%>
</span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE2"><%=rs("n_view")%></span></div></td>
<td bgcolor="#4681AC" width="150"><div align="center"><span class="STYLE2"><%=rs("n_url")%></span></div></td>
      </tr>
<%
i=i+1
if i=PageSize Then Exit Do
rs.movenext
LOOP
end if
rs.close
set rs=nothing
%>
</table>
	<%if w_netbar_isopen=1 then%>
<div class="pager"><%=pages%></div>
<div class=cfnews>
	<h2>网吧合作申请</h2>
	<div class=cfnews-c>
		<div class="tit">
				<td colspan="2"><%=w_netbar_content%></td>
</div>
		<form name="netbarForm" action="?action=submit" method="post" target="main">
		<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
			<tr>
				<td width="100">网吧名称:</td>
				<td><input type="text" name="n_title" class="input" size="20" /> <a class="gg"> 网吧或企业名字</a></td>
			</tr>
			<tr>
				<td>法人代表:</td>
				<td><input type="text" name="n_name" class="input" size="20" /> <a class="gg">联系人</a></td>
			</tr>
			<tr>
				<td>联系方式:</td>
				<td><input type="text" name="n_contact" class="input" size="20" /> <a class="gg">联系电话或QQ</a></td>
			</tr>
			<tr>
				<td>网吧机器台数:</td>
				<td><input type="text" name="n_num" class="input" size="10" /> 台</td>
			</tr>
			<tr>
				<td>网吧IP:</td>
				<td><input type="text" name="n_ip" class="input" size="30" /> <a class="gg">必须填写正确的IP</a></td>

			</tr>
			<tr>
				<td>主页地址:</td>
				<td><input type="text" name="n_url" class="input" size="30" /> <a class="gg">比如http://www.58119.com/114la.html</a></td>

			</tr>
			<tr>
				<td>合作期限:</td>
				<td>
				<label><input type="radio" name="n_period" value="一季度" />一季度</label> &nbsp;
				<label><input type="radio" name="n_period" value="半年" />半年</label> &nbsp;
				<label><input type="radio" name="n_period" value="一年" />一年</label>
				</td>
			</tr>
			<tr>
				<td height="50"></td>
				<td><input type="submit" value="提交申请" class="input"></td>
			</tr>
		</table>
		</form>
	</div>
        <%Else%>

<h2>
</h2>
<BR>
<BR>
<div id=dad>
很抱歉，网吧联盟申请暂时关闭，请关注我们的公告信息！或直接联系QQ：64022464
</div>
	<%end if%>
<div id=foot><a id=home href="../"><span></span>返回首页</a></div>
</div>
</body>
</html>
