📄 productlist.asp
字号:
<% Option Explicit %>
<!--#include file="../../../Inc/NosqlHack.asp" -->
<!--#include file="../../../Inc/Cls_DB.asp" -->
<!--#include file="../../../Inc/Const.asp" -->
<!--#include file="../../../Inc/Function.asp" -->
<%
'==============================================================================
'软件名称:风讯网站信息管理系统
'当前版本:Foosun Content Manager System(FoosunCMS V3.2SP1)
'最新更新:2006.50
'==============================================================================
'Copyright (C) 2002-2004 Foosun.Net All rights reserved.
'商业注册联系:028-85098980-601,项目开发:028-85098980-606、609,客户支持:608
'产品咨询QQ:394226379,159410,125114015
'技术支持QQ:315485710,66252421
'项目开发QQ:415637671,655071
'程序开发:四川风讯科技发展有限公司(Foosun Inc.)
'Email:service@Foosun.cn
'MSN:skoolls@hotmail.com
'论坛支持:风讯在线论坛(http://bbs.foosun.net)
'官方网站:www.Foosun.cn 演示站点:test.cooin.com
'网站通系列(智能快速建站系列):www.ewebs.cn
'==============================================================================
'免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接
'风讯公司保留此程序的法律追究权利
'如需进行2次开发,必须经过风讯公司书面允许。否则将追究法律责任
'==============================================================================
Dim DBC,Conn
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
Set DBC = Nothing
%>
<!--#include file="../../../Inc/Session.asp" -->
<!--#include file="../../../Inc/CheckPopedom.asp" -->
<%
if CInt(GetConfig(20)) = 0 then
Response.Write("<script>alert(""Sorry!商城未开放,将转到新闻列表!!!\n\n请在栏目修改中设置转向页面!!"&CopyRight&""");location=""NewsList.asp?ClassID="&Request("ClassID")&""";</script>")
Response.End
End if
if Not JudgePopedomTF(Session("Name"),"" & Request("ClassID") & "") then Call ReturnError1()
if Not JudgePopedomTF(Session("Name"),"P010800") then
Response.Write "你没有查看商品列表的权限"
Response.end
End If
Dim ClassID
ClassID = Request("ClassID")
If Request("Action")="Check" then
Conn.execute("Update FS_Shop_Products Set Islock=0 where id in("&Request("ID")&")")
'2006-4-27 取消锁定成功,呵呵。。。
Response.Write("<script>alert(""审核成功!"&CopyRight&""");location=""ProductList.asp?ClassID="&Request("ClassID")&""";</script>")
Response.end
ElseIf Request("Action")="Lock" then
Conn.execute("Update FS_Shop_Products Set Islock=1 where id in("&Request("ID")&")")
Response.Write("<script>alert(""锁定成功!"&CopyRight&""");location=""ProductList.asp?ClassID="&Request("ClassID")&""";</script>")
Response.end
End if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>内容窗口</title>
<style type="text/css">
<!--
.SearchBtnStyle {
border: 1px solid #000000;
}
.menu {
position:absolute;
background: menu;
border-top: 1px solid buttonhighlight;
border-left: 1px solid buttonhighlight;
border-bottom: 2px solid buttonshadow;
border-right: 2px solid buttonshadow;
padding: 2px;
font: menu;
cursor:default;
font-size:9pt;
width:90pt;
visibility: hidden;
z-index: 2;
overflow: visible;
}
.menushow {
position:absolute;
visibility:visible;
background:#EFEFEF;
border-top: 1px solid #000000;
border-left: 1px solid #000000;
border-bottom: 1px solid #000000;
border-right: 1px solid #000000;
padding:0px;
font: 9pt "menu";
cursor:default;
width:50pt;
}
-->
</style>
</head>
<link href="../../../CSS/FS_css.css" rel="stylesheet">
<script language="JavaScript" src="../../SysJS/PublicJS.js"></script>
<script language="JavaScript" src="../../SysJS/ContentMenu.js"></script>
<script language="JavaScript">
var ContentMenuArray=new Array();
var ListObjArray=new Array();
var DocumentReadyTF=false;
var ClassID='<% = ClassID %>';
function document.onreadystatechange()
{
if (DocumentReadyTF) return;
InitialContentListContentMenu();
DocumentReadyTF=true;
}
function InitialContentListContentMenu()
{
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('parent.RefreshProducts();','生成','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.EditContent();",'修改','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('parent.PreviewNews();','预览','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.DelContent();",'删除','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('seperator','','');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('parent.Audit(true);','审核','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('parent.Audit(false);','锁定','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('seperator','','');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('parent.ReViewManage();','评论管理','');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('parent.RefreshList();','刷新','');
IntialListObjArray();
}
function RefreshList()
{
location.href=location.href;
}
function ContentMenuFunction(ExeFunction,Description,EnabledStr)
{
this.ExeFunction=ExeFunction;
this.Description=Description;
this.EnabledStr=EnabledStr;
}
function ContentMenuShowEvent()
{
ChangeContentMenuStatus();
}
function ChangeContentMenuStatus()
{
var EventObjInArray=false,SelectContent='',DisabledContentMenuStr='';
for (var i=0;i<ListObjArray.length;i++)
{
if (event.srcElement==ListObjArray[i].Obj)
{
if (ListObjArray[i].Selected==true) EventObjInArray=true;
break;
}
}
for (var i=0;i<ListObjArray.length;i++)
{
if (event.srcElement==ListObjArray[i].Obj)
{
ListObjArray[i].Obj.className='TempletSelectItem';
ListObjArray[i].Selected=true;
if (SelectContent=='') SelectContent=ListObjArray[i].Obj.ContentID;
else SelectContent=SelectContent+'***'+ListObjArray[i].Obj.ContentID;
}
else
{
if (!EventObjInArray)
{
ListObjArray[i].Obj.className='TempletItem';
ListObjArray[i].Selected=false;
}
else
{
if (ListObjArray[i].Selected==true)
{
if (SelectContent=='') SelectContent=ListObjArray[i].Obj.ContentID;
else SelectContent=SelectContent+'***'+ListObjArray[i].Obj.ContentID;
}
}
}
}
if (SelectContent=='') DisabledContentMenuStr=',修改,删除,生成,预览,审核,锁定,';
else
{
if (SelectContent.indexOf('***')==-1) DisabledContentMenuStr='';
else DisabledContentMenuStr=',修改,'
}
// if ((top.MainInfo.SourceNews=='')&&(top.MainInfo.SourceProduct=='')) DisabledContentMenuStr=DisabledContentMenuStr+',粘贴,';
for (var i=0;i<ContentMenuArray.length;i++)
{
if (DisabledContentMenuStr.indexOf(ContentMenuArray[i].Description)!=-1) ContentMenuArray[i].EnabledStr='disabled';
else ContentMenuArray[i].EnabledStr='';
}
}
function ChangePageNO(NO,SearchStr)
{
var LocationStr=window.location.href;
var SearchLocation=LocationStr.lastIndexOf(SearchStr);
if (SearchLocation!=-1)
{
var TempSearchLocation=LocationStr.indexOf('&',SearchLocation);
if (TempSearchLocation!=-1)
{
LocationStr=LocationStr.slice(0,SearchLocation)+SearchStr+'='+NO+window.location.href.slice(TempSearchLocation);
}
else LocationStr=LocationStr.slice(0,SearchLocation)+SearchStr+'='+NO;
}
else
{
if (LocationStr.lastIndexOf('?')!=-1) LocationStr=LocationStr+'&'+SearchStr+'='+NO;
else LocationStr=LocationStr+'?'+SearchStr+'='+NO;
}
window.location=LocationStr;
}
function ShowSearchArea()
{
OpenWindow('Frame.asp?FileName=ContentSearch.asp&PageTitle=搜索',400,170,window);
}
function AddLocationStr(LocationStr,Value,SearchStr)
{
var SearchLocation=LocationStr.lastIndexOf(SearchStr);
if (SearchLocation!=-1)
{
var TempSearchLocation=LocationStr.indexOf('&',SearchLocation);
if (TempSearchLocation!=-1)
{
var TempLocationStr=LocationStr.slice(TempSearchLocation)
LocationStr=LocationStr.slice(0,SearchLocation)+SearchStr+'='+Value+TempLocationStr;
}
else LocationStr=LocationStr.slice(0,SearchLocation)+SearchStr+'='+Value;
}
else
{
if (LocationStr.lastIndexOf('?')!=-1) LocationStr=LocationStr+'&'+SearchStr+'='+Value;
else LocationStr=LocationStr+'?'+SearchStr+'='+Value;
}
return LocationStr;
}
function SearchSubmit(FormObj)
{
var LocationStr=window.location.href;
LocationStr=AddLocationStr(LocationStr,FormObj.SearchScope.value,'SearchScope');
LocationStr=AddLocationStr(LocationStr,FormObj.SearchType.value,'SearchType');
LocationStr=AddLocationStr(LocationStr,FormObj.SearchContent.value,'SearchContent');
LocationStr=AddLocationStr(LocationStr,FormObj.SearchBeginTime.value,'SearchBeginTime');
LocationStr=AddLocationStr(LocationStr,FormObj.SearchEndTime.value,'SearchEndTime');
window.location=LocationStr;
}
function auditcontent()
{
var LocationStr=window.location.href;
LocationStr = LocationStr.replace(/&Audit=IsAuditTF/g,"").replace(/&Audit=NoAuditTF/g,"");
LocationStr=LocationStr+"&Audit=IsAuditTF"
window.location=LocationStr;
}
function noauditcontent()
{
var LocationStr=window.location.href;
LocationStr = LocationStr.replace(/&Audit=IsAuditTF/g,"").replace(/&Audit=NoAuditTF/g,"");
LocationStr=LocationStr+"&Audit=NoAuditTF"
window.location=LocationStr;
}
function CancelSearch()
{
var LocationStr=window.location.href;
LocationStr=AddLocationStr(LocationStr,'','SearchScope');
LocationStr=AddLocationStr(LocationStr,'','SearchType');
LocationStr=AddLocationStr(LocationStr,'','SearchContent');
LocationStr=AddLocationStr(LocationStr,'','SearchBeginTime');
LocationStr=AddLocationStr(LocationStr,'','SearchEndTime');
window.location=LocationStr;
}
function ClickNewsOrProduct()
{
var el=event.srcElement;
var i=0;
if ((event.ctrlKey==true)||(event.shiftKey==true))
{
if (event.ctrlKey==true)
{
for (i=0;i<ListObjArray.length;i++)
{
if (el==ListObjArray[i].Obj)
{
if (ListObjArray[i].Selected==false)
{
ListObjArray[i].Obj.className='TempletSelectItem';
ListObjArray[i].Selected=true;
}
else
{
ListObjArray[i].Obj.className='TempletItem';
ListObjArray[i].Selected=false;
}
}
}
}
if (event.shiftKey==true)
{
var MaxIndex=0,ObjInArray=false,EndIndex=0,ElIndex=-1;
for (i=0;i<ListObjArray.length;i++)
{
if (ListObjArray[i].Selected==true)
{
if (ListObjArray[i].Index>=MaxIndex) MaxIndex=ListObjArray[i].Index;
}
if (el==ListObjArray[i].Obj)
{
ObjInArray=true;
ElIndex=i;
EndIndex=ListObjArray[i].Index;
}
}
if (ElIndex>MaxIndex)
{
if (MaxIndex>0)
for (i=MaxIndex-1;i<EndIndex;i++)
{
ListObjArray[i].Obj.className='TempletSelectItem';
ListObjArray[i].Selected=true;
}
else
{
ListObjArray[ElIndex].Obj.className='TempletSelectItem';
ListObjArray[ElIndex].Selected=true;
}
}
else
{
if (ObjInArray)
{
for (i=EndIndex;i<MaxIndex-1;i++)
{
ListObjArray[i].Obj.className='TempletSelectItem';
ListObjArray[i].Selected=true;
}
if (ElIndex>=0)
{
ListObjArray[ElIndex].Obj.className='TempletSelectItem';
ListObjArray[ElIndex].Selected=true;
}
}
}
}
}
else
{
for (i=0;i<ListObjArray.length;i++)
{
if (el==ListObjArray[i].Obj)
{
ListObjArray[i].Obj.className='TempletSelectItem';
ListObjArray[i].Selected=true;
}
else
{
ListObjArray[i].Obj.className='TempletItem';
ListObjArray[i].Selected=false;
}
}
}
}
function IntialListObjArray()
{
var CurrObj=null,j=1;
for (var i=0;i<document.all.length;i++)
{
CurrObj=document.all(i);
if (CurrObj.ContentID!=null)
{
ListObjArray[ListObjArray.length]=new NewsOrProductObj(CurrObj,j,false);
j++;
}
}
}
function NewsOrProductObj(Obj,Index,Selected)
{
this.Obj=Obj;
this.Index=Index;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -