📄 sysbook.asp
字号:
<!--#include file="../../../Inc/Const.asp" -->
<!--#include file="../../../Inc/Cls_DB.asp" -->
<!--#include file="../../../Inc/Function.asp" -->
<!--#include file="../../../Inc/Cls_User.asp" -->
<%
'==============================================================================
'软件名称:FoosunShop System Form FoosunCMS
'当前版本:Foosun Content Manager System 3.0 系列
'最新更新:2004.12
'==============================================================================
'商业注册联系:028-85098980-601,602 技术支持:028-85098980-605、607,客户支持:608
'产品咨询QQ:159410,394226379,125114015,655071
'技术支持:所有程序使用问题,请提问到bbs.foosun.net我们将及时回答您
'程序开发:风讯开发组 & 风讯插件开发组
'论坛支持:风讯在线论坛(http://bbs.foosun.net)
'官方网站:www.Foosun.net 演示站点:test.cooin.com
'网站建设专区:www.cooin.com
'==============================================================================
'免费版本请在新闻首页保留版权信息,并做上本站LOGO友情连接
'==============================================================================
Dim DBC,Conn,UserConn,sRootDir
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
DBC.ConnStr = "DBQ=" + Server.MapPath(UserDBConnectStr) + ";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
Set UserConn = DBC.OpenConnection()
Set DBC = Nothing
%>
<!--#include file="../../../Inc/Session.asp" -->
<!--#include file="../../../Inc/CheckPopedom.asp" -->
<%
if Not JudgePopedomTF(Session("Name"),"P070700") then Call ReturnError1()
Dim Fs_User
Set Fs_User = New Cls_User
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>FoosunCMS Shop 1.0.0930</title>
</head>
<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>
<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.ReadBook();','查看','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.EditContent();",'修改','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.DelContent();",'删除','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('seperator','','');
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 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 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 ClickBook()
{
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++;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -