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

📄 other_manage.asp

📁 后台目录:qwbAdmin/Login.asp 登陆用户名:admin 登陆密码:admin
💻 ASP
📖 第 1 页 / 共 2 页
字号:
						OM_Temp_IsLock="正常"
					Case 1
						OM_Temp_IsLock="<font color=""red"">锁定</font>"
				End Select 
				If obj_OM_OP_Rs("G_URL")="" or Isnull(obj_OM_OP_Rs("G_URL")) then
					OM_Temp_Url="-"
				Else
					OM_Temp_Url=obj_OM_OP_Rs("G_URL")
				End If
				If obj_OM_OP_Rs("G_Email")="" or Isnull(obj_OM_OP_Rs("G_Email")) Then
					OM_Temp_Email="-"
				Else
					OM_Temp_Email=obj_OM_OP_Rs("G_Email")
				End If
%>
    <td class="hback" align="center" height="20"><%=OM_Temp_Name%></td>
    <td class="hback" align="center"><%=OM_Temp_Type%></td>
    <td class="hback" align="center"><%=OM_Temp_Url%></td>
    <td class="hback" align="center"><%=OM_Temp_Email%></td>
    <td class="hback" align="center"><%=OM_Temp_IsLock%></td>
    <td class="hback" align="center"><a href="javascript:Update('<%=obj_OM_OP_Rs("GID")%>');">修改</a> | <a href="javascript:DelOne('<%=obj_OM_OP_Rs("GID")%>');">删除</a> | <a href="javascript:Lock('<%=obj_OM_OP_Rs("GID")%>');">锁定</a> | <a href="javascript:UnLock('<%=obj_OM_OP_Rs("GID")%>');">解锁</a>  |<input type="checkbox" value="<%=obj_OM_OP_Rs("GID")%>" name="Che_OPType"></td>
  </tr>
<%		
				obj_OM_OP_Rs.MoveNext
				If obj_OM_OP_Rs.Eof or obj_OM_OP_Rs.Bof Then Exit For
			Next
			Response.Write "<tr><td class=""hback"" colspan=""6"" align=""left"">"&fPageCount(obj_OM_OP_Rs,int_showNumberLink_,str_nonLinkColor_,toF_,toP10_,toP1_,toN1_,toN10_,toL_,showMorePageGo_Type_,cPageNo)&"&nbsp;&nbsp;<input type=""button"" value="" 批量锁定 "" name=""But_P_Lock"" onclick=""javascript:P_Lock();"">&nbsp;<input type=""button"" value="" 批量解锁 "" name=""But_P_UnLock"" onclick=""javascript:P_UnLock();"">&nbsp;<input type=""button"" value="" 批量删除 "" name=""But_P_Del"" onclick=""javascript:P_Del();"">&nbsp;全选<input type=""checkbox"" name=""Che_OPType"" onclick=""CheckAll();"" value=""-1""></td></tr>"
		Else
			Response.write"<table width=""98%"" border=0 align=center cellpadding=2 cellspacing=1 class=table><tr><td>当前没有内容!</td></tr></table>"
		End If
		obj_OM_OP_Rs.Close
		Set obj_OM_OP_Rs=Nothing
	End If
	Response.write "<script language=""javascript"">document.all.OM_ShowList.style.display=""none"";</script>"

%>
</form> 
</table>
</div>
<script language="javascript" type="text/javascript" src="../../FS_Inc/wz_tooltip.js"></script>
</body>
</html>
<script language="javascript">
function SelectTableShow(ShowType)
{
	switch(ShowType)
		{
			case 0://显示常规管理首页
				document.all.OM_ShowList.style.display="";
				document.all.OM_AddNew.style.display="none";
				break;				
			case 1://显示常规管理添加页
				document.all.OM_ShowList.style.display="none";
				document.all.OM_AddNew.style.display="";
				break;
			case 2://显示常规管理修改页
				break;
			//case 3://显示删除提示对话框
			//	if(confirm('你将删除所有信息!\n你确定删除吗?'))location='?OM_OP=S_DelAll';
			//	break;	
			case 4://显示列表信息
				<%
					If obj_OM_OP_Rs_EofFlag=True Then
				%>
				document.all.OM_ShowList.style.display="";
				<%
					Else
				%>
				document.all.OM_ShowList.style.display="none";
				<%
					End If
				%>
				document.all.OM_AddNew.style.display="none";
				break;							
		}
}
function SelectOpType(OpType)
{

	switch(parseInt(OpType))
		{
			case 0://默认全部不显示
				document.all.Tr_Url.style.display="none";
				document.all.Tr_Title.style.display="none";
				document.all.Tr_Email.style.display="none";
				document.all.Tr_Explanation.style.display="none";
				document.all.Tr_SubMit.style.display="none";
				break;
			case 1://关键字
				document.all.Tr_Url.style.display="none";
				document.all.Tr_Title.style.display="";
				document.all.Tr_Email.style.display="none";
				document.all.Tr_Explanation.style.display="";
				document.all.Tr_SubMit.style.display="";
				break;
			case 2://来源
				document.all.Tr_Url.style.display="";
				document.all.Tr_Title.style.display="";
				document.all.Tr_Email.style.display="none";
				document.all.Tr_Explanation.style.display="";
				document.all.Tr_SubMit.style.display="";
				break;
			case 3://作者
				document.all.Tr_Url.style.display="none";
				document.all.Tr_Title.style.display="";
				document.all.Tr_Email.style.display="";
				document.all.Tr_Explanation.style.display="";
				document.all.Tr_SubMit.style.display="";
				document.form_OM_AddNew.Sel_Type.value="3";
				break;	
			case 4://内部连接
				document.all.Tr_Url.style.display="";
				document.all.Tr_Title.style.display="";
				document.all.Tr_Email.style.display="none";
				document.all.Tr_Explanation.style.display="";
				document.all.Tr_SubMit.style.display="";
				break;	
		}
}
function Check_Type()
{
	if (document.form_OM_AddNew.Sel_Type.value=="0") 
		{
			alert("请选择类型!");
			document.form_OM_AddNew.Sel_Type.focus();
			return false;
		}
	if	(document.form_OM_AddNew.Txt_Name.value=="")
		{
			alert("请添加标题!");
			document.form_OM_AddNew.Txt_Name.focus();
			return false;
		}
	if (document.form_OM_AddNew.Sel_Type.value=="3"&&document.form_OM_AddNew.Txt_Email.value=="")
		{
			alert("请输入电子邮件地址!");
			document.form_OM_AddNew.Txt_Email.focus();
			return false;	
		}
	if( document.form_OM_AddNew.Sel_Type.value=="3"&&document.form_OM_AddNew.Txt_Email.value.length<6 || document.form_OM_AddNew.Sel_Type.value=="3"&&document.form_OM_AddNew.Txt_Email.value.length>36 || document.form_OM_AddNew.Sel_Type.value=="3"&&!validateEmail() ) 
		{
		      alert("\请您输入正确的邮箱地址 !");
		     document.form_OM_AddNew.Txt_Email.focus();
		     return false;	
	    }
	return true
}
//检查电子邮件格式
function validateEmail(){
	var re=/^[\w-]+(\.*[\w-]+)*@([0-9a-z]+[0-9a-z-]*[0-9a-z]+\.)+[a-z]{2,3}$/i;
	if(re.test(document.form_OM_AddNew.Txt_Email.value))
		return true;
	else
		return false;
}
function CheckAll()
{
	var checkBoxArray=document.all("Che_OPType")
	if(checkBoxArray[checkBoxArray.length-1].checked)
	{
		for(var i=0;i<checkBoxArray.length-1;i++)
		{
			checkBoxArray[i].checked=true;
			
		}
	}else
	{
		for(var i=0;i<checkBoxArray.length-1;i++)
		{
			checkBoxArray[i].checked=false;
		}
	}
}
function P_Lock()
{
	document.form_OM_OP.Hi_OP_Type.value="P_Lock";
	document.form_OM_OP.action='?OM_OP=OM_ShowList&OM_OP_P=P&ShowList=<%=Request.QueryString("Showlist")%>';
	document.form_OM_OP.submit();
}
function P_UnLock()
{
	document.form_OM_OP.Hi_OP_Type.value="P_UnLock";
	document.form_OM_OP.action='?OM_OP=OM_ShowList&OM_OP_P=P&ShowList=<%=Request.QueryString("Showlist")%>';
	document.form_OM_OP.submit();
}
function P_Del()
{
	if(confirm('此操作将删除选中的内容?\n你确定删除吗?'))
	{
		document.form_OM_OP.Hi_OP_Type.value="P_Del";
		document.form_OM_OP.action='?OM_OP=OM_ShowList&OM_OP_P=P&ShowList=<%=Request.QueryString("Showlist")%>';
		document.form_OM_OP.submit();
	}
}
function DelAll()
{
	if(confirm('将删除所有内容!\n你确定删除吗?'))
	{
		location='?OM_OP=S_DelAll';
	}
}
function Lock(GID)
{
	location='?OM_OP=OM_ShowList&ID='+GID+'&Action=Lock&Page=<%=Request.QueryString("Page")%>&ShowList=<%=Request.QueryString("ShowList")%>';
}
function UnLock(GID)
{
	location='?OM_OP=OM_ShowList&ID='+GID+'&Action=UnLock&Page=<%=Request.QueryString("Page")%>&ShowList=<%=Request.QueryString("ShowList")%>';
}
function Update(GID)
{
	location='?OM_OP=AddNew&ID='+GID+'&Action=Update&Page=<%=Request.QueryString("Page")%>&ShowList=<%=Request.QueryString("ShowList")%>';
}
function DelOne(GID)
{
	if (confirm('确定要删除该记录吗?'))
	{
		location='?OM_OP=OM_ShowList&ID='+GID+'&Action=DelOne&Page=<%=Request.QueryString("Page")%>&ShowList=<%=Request.QueryString("ShowList")%>';
	}
}
function KeyWord()
{
	location="other_manage.asp?OM_OP=OM_ShowList&ShowList=Keyword";
}
function Source()
{
	location="other_manage.asp?OM_OP=OM_ShowList&ShowList=Source";
}
function ZouZe()
{
	location='other_manage.asp?OM_OP=OM_ShowList&ShowList=ZouZe';
}
function LinkUrl()
{
	location='other_manage.asp?OM_OP=OM_ShowList&ShowList=LinkUrl';
}
function AddOne()
{
	location='other_manage.asp?OM_OP=AddNew';
}
function Sy()
{
	location='other_manage.asp?OM_OP=OM_ShowList';
}
</script>
<%
If OM_OP="" Then
	Response.write"<script language=""javascript"">SelectTableShow(0);</script>"
Else
	OM_OP=Cstr(OM_OP)
	Select Case OM_OP
		Case "AddNew"
			Response.write"<script language=""javascript"">SelectTableShow(1);</script>"
		Case "Update"
			Response.write"<script language=""javascript"">SelectTableShow(2);</script>"
		Case "DelAll"
			Response.write"<script language=""javascript"">SelectTableShow(3);</script>"
		Case "OM_ShowList"
			Response.write"<script language=""javascript"">SelectTableShow(4);</script>"
		Case else
			Response.write"<script language=""javascript"">SelectTableShow(0);</script>"
	End Select
End IF

If OM_OP_Up_Type=4 Then Response.write "<script language=""javascript"">SelectOpType(4);</script>" 
If OM_OP_Up_Type=1 Then Response.write "<script language=""javascript"">SelectOpType(1);</script>"
If OM_OP_Up_Type=2 Then Response.write "<script language=""javascript"">SelectOpType(2);</script>"
If OM_OP_Up_Type=3 Then Response.write "<script language=""javascript"">SelectOpType(3);</script>"
Set Conn=Nothing
%><!-- Powered by: FoosunCMS4.0系列,Company:Foosun Inc. -->

⌨️ 快捷键说明

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