📄 ggao_upd.asp
字号:
<!-- #include file="../inc_config.asp" -->
<!-- #include file="LoginCk.asp" -->
<%
Call PopCheck(14)
GGao_ID = Request("GGao_ID")
Set GGData = Conn.Query("EfangGGao","GGao_ID=" & GGao_ID)
if GGData.BOF or GGData.EOF then ShowErMsg("对不起,公告不存在!")
If Cmd="Upd" then
GGao_Title = Request("GGao_Title")
GGao_Enable = Request("GGao_Enable")
GGao_STime = Request("GGao_STime")
GGao_NRong = Request("GGao_NRong")
EfsValue= EfsValue & "GGao_Title='" & GGao_Title & "',"
EfsValue= EfsValue & "GGao_Enable=" & GGao_Enable & ","
EfsValue= EfsValue & "GGao_STime='" & GGao_STime & "',"
EfsValue= EfsValue & "GGao_NRong='" & GGao_NRong & "'"
call Conn.Update("EfangGGao",EfsValue,"GGao_ID=" & GGao_ID)
Call ShowErMsgGo("修改成功!","?GGao_ID=" & GGao_ID)
Elseif Cmd = "Del" then
call Conn.Delete("EfangGGao","GGao_ID=" & GGao_ID)
WriteLog "删除公告 - " & GGData("GGao_Title")
Call ShowErMsgGo("公告已经成功删除!","GGao.asp")
End if
%>
<html>
<head>
<title>修改公告</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link id="style_sheet" href="css/save.css" type="text/css" rel="stylesheet">
<script language="JavaScript">style_sheet.href = parent.parent.style_sheet.href;</script>
<%=Efs_Cfg_PHeader%>
<style type="text/css">
<!--
.unnamed1 {
color: #FF0000;
font-weight: bold;
}
-->
</style>
<script language="JavaScript" src="../inc_DateSelect.js" type="text/JavaScript"></script>
</head>
<script language="JavaScript" src="js/common_Efang.js"></script>
<body class="NormalPage">
<form id="form_help" action="help_content.asp" method="get" target="working_area">
<input name="help_topic" type="hidden" value="公告管理">
</form>
<form action="?Cmd=Upd" method="POST" name="EForm" id="EForm">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="headerToolBar" valign="middle" nowrap style="width:100%; height:22px;"><table cellpadding="0" cellspacing="0" class="HeaderPageControl">
<tr>
<td align="left" valign="middle" nowrap height="20">系统设置>> 系统参数设置 >> <b></b><b>公告管理</b></td>
<td align="center" valign="middle" nowrap width="10" height="20"></td>
<td align="right" valign="middle" width="100%" nowrap height="20"></td>
<td align="center" valign="middle" nowrap width="10" height="20"></td>
<td align="right" valign="middle" width="60" nowrap height="20"><img id="id_back" alt="返回上一页" onclick="JavaScript:history.back()" onmouseover="JavaScript:this.src=imgBackUp.src" onmouseout="JavaScript:this.src=imgBackDown.src" src="images/toolbar_back.gif" border="0" style="cursor:hand;width:22px; height:20px;"><img id="id_refresh" alt="刷新" onclick="JavaScript:fn_Refresh()" onmouseover="JavaScript:this.src=imgRefreshUp.src" onmouseout="JavaScript:this.src=imgRefreshDown.src" src="images/toolbar_refresh.gif" border="0" style="cursor:hand;width:22px; height:20px;"></td>
<td align="right" valign="middle" width="25" nowrap height="20"><img id="id_locate" alt="帮助" onclick="JavaScript:fn_ShowHelp()" onmouseover="JavaScript:this.src=imgHelpUp.src" onmouseout="JavaScript:this.src=imgHelpDown.src" src="images/toolbar_help.gif" border="0" style="cursor:hand;width:22px; height:20px;"></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top">
<div id="viewPanel" style="visibility:visible; position:absolute; overflow:auto;">
<br>
<br>
<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0" class="datalist">
<tr>
<td class="DataGroup" valign="top">
<table width="100%" border="0" align="center" cellPadding="0" cellSpacing="0" class="datalist">
<tr>
<td width="19%" height="28" align="right">公告标题:</td>
<td width="81%"> <input name="GGao_Title" type="text" class="InputOne" id="GGao_Title" value="<%=GGData("GGao_Title")%>" size="30" maxlength="20">
<input name="GGao_ID" type="hidden" id="GGao_ID" value="<%=GGao_ID%>">
<font color="#FF0000"> </font> </td>
</tr>
<tr>
<td height="28" align="right">是否显示:</td>
<td> <select name="GGao_Enable">
<option value="True">显示</option>
<option value="False">不显示</option>
</select>
<script language="JavaScript" type="text/JavaScript">
EForm.GGao_Enable.value = "<%=GGData("GGao_Enable")%>";
</script> </td>
</tr>
<tr>
<td height="28" align="right">显示时间:</td>
<td> <input name="GGao_STime" type="text" class="InputOne" id="GGao_STime" onfocus="setday(this)" value="<%=GGData("GGao_STime")%>" size="20" maxlength="15">
(客户看到的时间)</td>
</tr>
<tr>
<td height="28" align="right">创建时间:</td>
<td><%=GGData("GGao_CTime")%></td>
</tr>
<tr>
<td width="19%" height="28" align="right">公告内容:</td>
<td width="81%"> <textarea name="GGao_NRong" cols="60" rows="10" wrap="VIRTUAL" class="input"><%=GGData("GGao_NRong")%></textarea> </td>
</tr>
<tr align="center">
<td colspan="2" height="33"> <input type="submit" name="B1" value=" 修 改 " class="ButtonOne">
<input class=ButtonOne name=delete type=button value=" 删 除 " onClick="if(!confirm('确认要删除此公告吗?')){return false;}else{document.location='?Cmd=Del&GGao_ID=<%=GGao_ID%>';}"> </td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
</table>
</form>
<%Set GGData = Nothing%>
<% Call ExitEnd(False) %>
</body>
<script language="JavaScript">
<!--
document.parentWindow.onresize = fn_RejustViewPanel ;
fn_RejustViewPanel ( ) ;
//alert ( document.body.clientWidth + ":" + viewPanel.clientWidth ) ;
//-->
</script>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -