📄 jsmodify.asp
字号:
<!--#include file = include.asp-->
<!--#include file = JSSave.asp-->
<!--#include file = CheckPurview.asp-->
<%
if request.form("operation")="Modify" then
Call MoJs
end if
if request.querystring("ID")="" then response.redirect"JSManage.asp"
set rs=Server.CreateObject("adodb.recordset")
sql="select * from JS where id="&request.querystring("ID")
rs.open sql,conn,1,1
if rs("type")="文字商务信息" then
WordNews=""
else
WordNews="none"
end if
if rs("type")="图片商务信息" then
PhotoNews=""
else
PhotoNews="none"
end if
%>
<body background="images/BLogo.gif">
<form name="form1" method="POST" action="">
<p> </p>
<table style="border-left: 1px solid #A4CEE4;border-top: 1px solid #A4CEE4;border-bottom: 1px solid #A4CEE4; border-right: 1px solid #A4CEE4" width="384" border="0" cellpadding="0" align="center" cellspacing="1" bgcolor="#96C5DE">
<tr>
<td colspan=6><!--#include file = topMenu.htm--></td>
</tr>
<tr>
<td height="25" bgcolor="#a4cee4" colspan="2" align="center" valign="middle"><b>修改JS列表</b></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" valign="middle" width="131" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>JS中文名称:</td>
<td width="243" valign="middle" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type="text" name="JSNameCN" value=<%=rs("JSNameCN")%> class=InputStyle Disabled>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" valign="middle" width="131" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>JS英文名称:</td>
<td width="243" valign="middle" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type="text" name="JSNameEN" value=<%=rs("JSNameEN")%> Class=InputStyle Disabled>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" valign="middle" width="131" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>JS类型:
</td>
<td width="243" valign="middle" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input id=WordNews type="radio" name="Type" value="文字商务信息" <% if rs("Type")="文字商务信息" then response.write"checked"%> onclick="return CheckType()" class=InputStyle Disabled>
文字商务信息
<input id=PhotoNews type="radio" name="Type" value="图片商务信息" <% if rs("Type")="图片商务信息" then response.write("checked") %> onclick="return CheckType()" class=InputStyle Disabled>
图片商务信息 </td>
</tr>
<tr bgcolor="#FFFFFF" align="center">
<td height="27" valign="middle" colspan="2" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#4397c5" id=WordNews style="DISPLAY:<%=WordNews%>">
<tr bgcolor="#FFFFFF">
<td width="35%">商务信息调用数量</td>
<td width="65%">
<input type="text" name="IndexCount1" size="5" value=<%=rs("IndexCount")%>>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="35%">商务信息标题导航图标</td>
<td width="65%">
<input type="text" name="NewsTP1" size="20" value="<%=rs("NewsTP")%>">
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#4397c5" id=PhotoNews style="DISPLAY: <%=PhotoNews%>">
<tr bgcolor="#FFFFFF">
<td width="35%">商务信息调用数量</td>
<td width="65%">
<input type="text" name="IndexCount" size="5" value=<%=rs("IndexCount")%>>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="35%" height="23">样式</td>
<td width="65%" height="23">
<input id=CSS1 type="radio" name="PhotoCSS" value="CSS1" onclick="return CheckCSS()" <% if rs("PhotoCSS")="CSS1" then response.write("checked"):CSS1="":else: CSS1="none":end if %> class=InputStyle Disabled>
样式一
<input id=CSS2 type="radio" name="PhotoCSS" value="CSS2" onclick="return CheckCSS()" <% if rs("PhotoCSS")="CSS2" then response.write("checked"):CSS2="":else: CSS2="none":end if %> class=InputStyle Disabled>
样式二
<input id=CSS3 type="radio" name="PhotoCSS" value="CSS3" onclick="return CheckCSS()" <% if rs("PhotoCSS")="CSS3" then response.write("checked"):CSS3="":else: CSS3="none":end if %> class=InputStyle Disabled>
样式三</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="35%">图片高度</td>
<td width="65%">
<input type="text" name="PicHi" size="5" value=<%=rs("PicHi")%>>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="35%">图片宽度</td>
<td width="65%">
<input type="text" name="PicWi" size="5" value=<%=rs("PicWi")%>>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="35%">商务信息标题导航图标</td>
<td width="65%">
<input type="text" name="NewsTP" size="20" value="<%=rs("NewsTP")%>">
</td>
</tr>
<tr bgcolor="#FFFFFF" ID=Depict style="DISPLAY: <%=CSS2%> ">
<td width="35%">商务信息描述文字数量</td>
<td width="65%">
<input type="text" name="Depict" size="5" value=<%=rs("depict")%>>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" height="23">
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" id=CSS1 style="DISPLAY: <%=CSS1%>">
<tr align="center">
<td><a href="images/type1.gif" alt="sdfsdf" target="_blank"><img src="images/type1.gif" width="335" height="38" border="0" alt="样式一 图片高度:80 图片宽度:80" ></a></td>
</tr>
</table>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" id=CSS2 style="DISPLAY: <%=CSS2%> ">
<tr align="center">
<td height="2"><a href="images/type2.gif" target="_blank"><img src="images/type2.gif" width="330" height="309" border="0" alt="样式二 图片高度:80 图片宽度:80"></a></td>
</tr>
</table>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" id=CSS3 style="DISPLAY: <%=CSS3%> ">
<tr align="center">
<td height="163"><a href="images/type3.gif" target="_blank"><img src="images/type3.gif" width="120" height="348" border="0" alt="样式三 图片高度:80 图片宽度:80"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#FFFFFF" align="center">
<td height="51" valign="middle" colspan="2" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type="Hidden" name="operation" value="Modify">
<input type="Hidden" name="ID" value="<%=request.querystring("ID")%>">
<input type="Hidden" name="Type" value="<%=rs("Type")%>">
<input type="submit" name="Submit" value=" 修 改 JS " onclick="return modify()">
</td>
</tr>
</table>
</form>
<script>
function CheckType(){
if (document.form1.WordNews.checked == true){
WordNews.style.display = "";
}else{
WordNews.style.display = "none";
}
if (document.form1.PhotoNews.checked == true) {
PhotoNews.style.display = "";
}else{
PhotoNews.style.display = "none";
}
}
function CheckCSS(){
if (document.form1.CSS1.checked == true) {
CSS1.style.display = "";
}else{
CSS1.style.display = "none";
}
if (document.form1.CSS2.checked == true) {
CSS2.style.display = "";
}else{
CSS2.style.display = "none";
}
if (document.form1.CSS3.checked == true) {
CSS3.style.display = "";
}else{
CSS3.style.display = "none";
}
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -