📄 pubinfo.asp
字号:
<!--#include file="isValidUser.asp"-->
<%
if session("userID")="" then
%>
<!--#include file="top.asp"-->
<%
else
%>
<!--#include file="top1.asp"-->
<%
end if
%>
<style>
<!--
a:link.nav {COLOR: #ffffff;TEXT-DECORATION: none}
.navbg {filter : progid:DXImageTransform.Microsoft.DropShadow(color=#ffffff,offX=1,offY=1,positives=true);}
.navbg1 {filter : progid:DXImageTransform.Microsoft.DropShadow(color=#6C2C00,offX=1,offY=1,positives=true);}
a:link.nav1 {COLOR: #434343;TEXT-DECORATION: none}
.toptext {color: #555555;filter:dropshadow(color=#ffffff,offx=1,offy=1,positive=1);}
-->
</style>
<script language="JavaScript">
function isvaliddata(){
if (frmInfo.GAMENAME.value=="" || frmInfo.GAMEAREA.selectedIndex==0){
alert("对不起,游戏名称和区服必须选择!");
return false;
}
else if (frmInfo.sltType1.selectedIndex==0){
alert("对不起,交易类别必须选择!");
frmInfo.sltType1.focus();
return false;
}
else if (frmInfo.infoType.selectedIndex==0){
alert("对不起,信息分类必须选择!");
frmInfo.infoType.focus();
return false;
}
else if (frmInfo.txtTitle.value==""){
alert("对不起,交易标题不能为空!");
frmInfo.txtTitle.focus();
return false;
}
else if (frmInfo.txtMemo.value==""){
alert("对不起,交易描述不能为空!");
frmInfo.txtMemo.focus();
return false;
}
else if (frmInfo.txtPrice.value=="" || fucCheckNUM(frmInfo.txtPrice.value)==0){
alert("对不起,价格为空或不是数字!");
frmInfo.txtPrice.focus();
return false;
}
else if (frmInfo.rdoPic.value==1 && frmInfo.file.value==""){
alert("对不起,请提供上传图片!");
frmInfo.file.click();
return false;
}
else{
frmInfo.action="action2.asp";
frmInfo.submit();
}
//frmInfo.sltType1.disabled=false;
//frmInfo.sltType1.selectedIndex=0;
}
//函数名:fucCheckNUM
//功能介绍:检查是否为数字
function fucCheckNUM(NUM)
{
var i,j,strTemp;
strTemp="0123456789";
if ( NUM.length== 0)
return 0
for (i=0;i<NUM.length;i++)
{
j=strTemp.indexOf(NUM.charAt(i));
if (j==-1)
{
//说明有字符不是数字
return 0;
}
}
//说明是数字
return 1;
}
function chkform(){
//frmInfo.rdoPic.value
if (frmInfo.rdoPic.value==1 && frmInfo.file.value==""){
window.alert("未选择图片");
frmInfo.file.click();
return false;
}
else{
frmInfo.action="action2.asp";
//frmInfo.submit();
}
}
</script>
<body style="text-align: center">
<%
'-------------------------限制没有提供完整资料的不让发布信息
dim tmpdata1,tmpdata2
set conn2=server.createobject("adodb.connection")
'connstr="Driver={Microsoft Access Driver (*.mdb)}; DBQ ="&Server.MapPath("db/game.asp")
connstr="provider=microsoft.jet.oledb.4.0;data source="&Server.MapPath("db/game.asp")
conn2.open connstr
set tmprs2=server.createobject("adodb.recordset")
sql="select * from userinfo where ID="&cint(session("userID"))
tmprs2.open sql,conn2,3,1
if isnull(tmprs2("contact")) then
tmpdata1=""
else
tmpdata1=tmprs2("contact")
end if
if isnull(tmprs2("phone")) then
tmpdata2=""
else
tmpdata2=tmprs2("phone")
end if
tmprs2.close
set tmprs2=nothing
set conn2=nothing
if tmpdata1="" then
response.write "<script language=javascript>window.alert('对不起,你的个人资料填写不完整\n点确定完善您的资料!!!');window.location='manage.asp';</script>"
'response.write tmpdata1&"-"&tmpdata2
response.end
end if
%>
<table border="0" width="100%" cellspacing="0" cellpadding="0" background="images/bg1.jpg" height="100%">
<tr>
<td valign=top>
<table border="0" width="900" cellspacing="0" cellpadding="0">
<tr>
<td width="900" colspan="3" height="7"></td>
</tr>
<tr>
<td width="65"> </td>
<td width="778" height="50">
<table border="0" width="778" cellspacing="0" cellpadding="0">
<tr>
<td width="9">
<img border="0" src="images/2vv2_r7_c2.gif" width="9" height="50"></td>
<td width="759" background="images/2vv2_r7_c4.gif">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%">
<%
call getGameName2
for i=0 to 20
if i=0 then response.write "<tr height=21>"
response.write "<td align='center'valign=bottom class=top><a href='search.asp?key="&tmpArr1(i)&"'>"&formatGameName(tmpArr2(i))&"</a> |</td>"
if i mod 11 =10 and i>0 then response.write "</tr><tr height=22>"
next
response.write "<td align='center' valign=bottom class=top><a href='search.asp?key=all'>全 部...</a></td>"
%>
</table>
</td>
<td width="10">
<img border="0" src="images/2vv2_r7_c31.gif" width="10" height="50"></td>
</tr>
</table>
</td>
<td width="57"> </td>
</tr>
<tr>
<td width="65"></td>
<td width="778" height="7"></td>
<td width="57"></td>
</tr>
<tr>
<td width="65"> </td>
<td width="778">
<div align="center">
<table border="0" width="770" cellspacing="0" cellpadding="0">
<tr>
<td background="images/2_r1_c2.gif" width="22">
<img border="0" src="images/2_r1_c1.gif" width="22" height="33"></td>
<td background="images/2_r1_c2.gif" width="724" valign=bottom>
<table border="0" cellspacing="0" cellpadding="0" height="28">
<tr>
<td class=navbg>艾维游戏交易平台---管理中心</td>
</tr>
</table>
</td>
<td background="images/2_r1_c2.gif" width="24">
<img border="0" src="images/2_r1_c3.gif" width="24" height="33"></td>
</tr>
<tr>
<td background="images/2_r2_c1.gif" width="770" colspan="3" height="30">
<div align="center">
<table border="0" width="96%" cellspacing="0" cellpadding="0">
<tr >
<td width="748" class=top>
<b><%=session("username")%>欢迎光临:</b> 艾维游戏交易平台将真诚为您提供最完善的服务! 本站QQ客服:
648081898</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td width="770" colspan="3" valign=top>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -