⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit_info.asp

📁 北方供求 V3.3 Sql 版 §V3.3更新功能 1、首页(自动生成静态
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="Common/inc_usercheck.asp"-->
<!--#include file="Common/Inc_DatConn.asp"-->
<!--#include file="Common/Inc_Config.asp"-->
<!--#include file="Common/Inc_Function.asp"-->
<%
'┌─  风云ASP在线  ────────────────────────┐
'│                                                                 │
'│  作者:赵振波.	http://www.fyasp.com	    				    │
'│                                                                 │
'│   Q Q:176189168  										   	    │
'│                                                                 │
'│ Email:fy96@163.com                                             │
'│                                                                 │
'│ 程序定做,系统开发,网站制作,提供高质量的网络产品、技术和服务!│
'│                                                                 │
'│【版权声明】                                                     │
'│                                                                 │
'│     本程序版权归坐看风云所有,未经授权擅自修改、复制或散布本程序│
'│                                                                 │
'│的部分或全部,将承受严厉的民事和刑事处罚,对已知的违反者将给予法 │
'│                                                                 │
'│律范围内的全面制裁。对非法使用此程序所造成的一切后果本人概不负责!│
'│                                                                 │
'└───────────────────  http://www.fyasp.com ──┘
%>
<html>
<head>
<title><% = strSiteName%></title><%
set rss=server.createobject("adodb.recordset")
sqls = "select * from SmallClass order by sj desc"
rss.open sqls,conn,1,1
%>
<script language = "JavaScript">
var onecount;
subcat = new Array();
        <%
        count = 0
        do while not rss.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rss("id"))%>","<%=trim(rss("dl"))%>","<%= trim(rss("smallclassname"))%>");
        <%
        count = count + 1
        rss.movenext
        loop
        rss.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.editinfo.SmallClassName.length = 1; 
    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.editinfo.SmallClassName.options[document.editinfo.SmallClassName.length] = new Option(subcat[i][2], subcat[i][0]);
            }        
        }
    }    

</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta content="交友, 征友, 速配, 约会, 聊天, 征婚, 婚介, 爱情, 友情, 友谊, 朋友, 伙伴, 情人, 伴侣, 同性, 异性, 女人, 男士, 女士, 男孩, 女孩, 帅哥, 美女, 单身, 独身, 性感, 浪漫, 激情, 手机交友, 手机, 短信, 彩信, 铃声, 图片, 照片, 靓照, 贴图, 语音, 视频, 搜索, 文章, 商城" name="KEYWORDS">
<link href="Common/Style.css" type="text/css" rel="stylesheet">
</head>
<meta http-equiv="Content-Language" content="zh-cn">
<script language="javascript" src="fyfile/ResExplore.js"></script>
<script language="JavaScript">
//资源管理器所在的具体目录
ResourceExplorePath="fyfile/ResourceExplore.asp";
/*
参数说明:
自定义函数(返回的资源记录ID,资源名题,原始文件名称,最后更新时间) 
*/
function bbimg(Id,fTitle,fName,fDate)
{
	//请在下面添加你的代码
	editinfo.pic.value="fyfile/OpenFile01.asp?pID="+Id;
}
</script>
<!-- 结束 -->
<script language="JavaScript">
/*
当操用户选择"资源管理器中的文件项目后便激发默认的返回函数:OnResWinReturn()"
参数说明:
OnResWinRecurn(返回的资源记录ID,资源名题,原始文件名称,最后更新时间) 
*/
function OnResWinReturn(Id,fTitle,fName,fDate)
{
//请在下面添加你的代码
alert("你选择的文件信息如下:\n资源ID:"+Id+"\n资源标题:"+fTitle+"\n资源文件名:"+fName+"\n资源更新时间:"+fDate);
}
</script>
<script language="javascript">
//检查email的合法性
function checkemail(inputstr){
	if(inputstr.indexOf('@') != -1 && inputstr.indexOf('.')!= -1)
		return true;
	else 
   		return false;	
}
//检验表单的合法性
function editinfoForm() {
	if (document.editinfo.sheng.value == "0") {
		alert("\请选择信息面向的地区!");
		document.editinfo.InfoAdd.focus();
	}
	else if (document.editinfo.Topic.value == "") {
		alert("\请填写信息主题!");
		document.editinfo.Topic.focus();
	}
	else if (document.editinfo.Content.value == "") {
		alert("\请填写信息内容!");
		document.editinfo.Content.focus();
	}
	else if (document.editinfo.ContactMan.value == "") {
		alert("\请填写联系人!");
		document.editinfo.ContactMan.focus();
	}
	else if (document.editinfo.Tel.value == "") {
		alert("\请填写联系电话!");
		document.editinfo.Tel.focus();
	}
		else if (document.editinfo.Email.value == "") {
		alert("\请填写联系 E-Mail!");
		document.editinfo.Email.focus();
	}
	else if (document.editinfo.Email.value == "" || !checkemail(document.editinfo.Email.value)) {
		alert("\E-Mail 填写错误,请填写有效的信箱,如 username@163.com !");
		document.editinfo.Email.focus();
	}
	else {
        return true;
    }
    return false;
}
</script>
<body topmargin="3" leftmargin="0">
			<%
			Dim inff
			Dim rsd
			Dim sql

			inff=changechr(Request("Id"))
			set rsd = Server.CreateObject("ADODB.Recordset")
						sql = "Select * From Dat_Information Where infoKey = "&inff
						rsd.Open sql,Conn,1,1
							if rsd.eof and rsd.bof  then 
		response.write "<script>alert('对不起,该信息并不存在,请返回!');window.close();</Script>"
		response.end
	else
if rsd("MemberKey")=Session("intMemberKey") then%>
<div align="center">
  <center>
  <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#CCCCCC" width="475" height="64">
    <form action="save_info.asp" name="editinfo" method="POST" OnSubmit="return editinfoForm()">
      <input type="hidden" name="id" size="15" value="<%=inff%>" maxlength="40">
      <tr>
      <td width="80" height="25" align="right">
      选择分类:</td>
      <td width="273" height="25" align="left"><%
		set rsb=server.createobject("adodb.recordset")
        sqlb = "select * from BigClass order by sj desc"
        rsb.open sqlb,conn,1,1
		if rsb.eof and rsb.bof then
			response.write "请先添加栏目。"
		else
		%>
						<select name="BigClassName" onChange="changelocation(document.editinfo.BigClassName.options[document.editinfo.BigClassName.selectedIndex].value)" size="1">
      <%
		    do while not rsb.eof
		    dim selclass
		    selclass=cstr(rsb("id"))
			%>
                      <option <%if rsd("dl") =selclass then Response.Write "selected" end if%> value="<%=trim(rsb("id"))%>"><%=trim(rsb("BigClassName"))%></option>
                      <%
		        rsb.movenext
    	    loop
		end if
        rsb.close
			%>
                    </select> <select name="SmallClassName">
                      <option value="" selected>不指定小类</option>
                      <%
           set rsss=server.createobject("adodb.recordset")
			sqlss="select * from SmallClass where dl='"&rsd("dl")&"' order by sj desc"
			rsss.open sqlss,conn,1,1
			if not(rsss.eof and rsss.bof) then
				do while not rsss.eof
				xlid=rsss("id")
				%>
                      <option <%if rsd("xl") =cstr(xlid) then Response.Write "selected" end if%> value="<%=rsss("id")%>"><%=rsss("SmallClassName")%></option>
                      <%
			    	rsss.movenext
				loop
			end if
	        rsss.close
			%>
</td>
    </tr>
    <tr>
      <td width="80" height="25" align="right">
      面向地区:</td>
      <td width="273" height="25" align="left">
      <%
set rs=server.createobject("adodb.recordset")

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -