📄 product_info.asp
字号:
end if
rs2.Close
title="段落"&sortnum
else
sqltext="select * from "+tablename+" where keyno="&keyno
rs.Open sqltext,cn,1,1
if not rs.EOF then
sortnum=rs("sortnum")
content=trim(rs("content"))
title=trim(rs("title"))
flag=rs("flag")
picalign=trim(rs("picalign"))
end if
rs.Close
end if
%>
<tr bgcolor=898989><td colspan=2 height=20><font class=t2>具体内容</font></td></tr>
<tr><td width=560>
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
<tr><td width=70 class=td1 align=right height=5></td>
<td class=td2></td></tr>
<tr><td width=70 class=td1 align=right>序号:</td>
<td class=td2><INPUT type="text" value="<%=sortnum%>" name=sortnum maxlength=10 size=6>
</td></tr>
<tr><td class=td1 align=right>段落标题:</td>
<td class=td2>
<input type="text" value="<%=title%>" name=title maxlength=60 size=36><font color=ff4500>*</font>
</td></tr>
<!--tr><td class=td1 align=right>图片位置:</td>
<td class=td2>
<input type=radio name=picalign value="left" <%if picalign="left" then Response.Write("checked")%>>左对齐
<input type=radio name=picalign value="center" <%if picalign="center" then Response.Write("checked")%>>居中
<input type=radio name=picalign value="right" <%if picalign="right" then Response.Write("checked")%>>右对齐
</td></tr-->
<!--tr><td class=td1 align=right>标题显示:</td>
<td class=td2>
<input type=radio name=flag value="0" <%if flag="0" then Response.Write("checked")%>>不显示
<input type=radio name=flag value="1" <%if flag="1" then Response.Write("checked")%>>显示
<font color=ff4500>注:只有图片居中显示时才能显示标题</font>
</td></tr-->
<tr><td colspan=2>
<img src="../admin/images/bold.gif" onclick="format('bold')" style="cursor:hand;" title="粗体">
<img src="../admin/images/italicize.gif" onclick="format('italic')" style="cursor:hand;" title="斜体">
<img src="../admin/images/underline.gif" onclick="format('underline')" style="cursor:hand;" title="下划线">
<img src="../admin/images/center.gif" onclick="format('center')" style="cursor:hand;" title="居中">
<img src="../admin/images/right.gif" onclick="format('right')" style="cursor:hand;" title="右对齐">
<img src="../admin/images/space.gif" onclick="format('space')" style="cursor:hand;" title="空格">
<img src="../admin/images/url.gif" onclick="format('url')" style="cursor:hand;" title="超链接。如<a href='http://www.ibw.com.cn' target=_blank>网新科技</a>">
<img src="../admin/images/email.gif" onclick="format('email')" style="cursor:hand;" title="邮件。如<a href='mailto:xu256@sina.com'>xu256@sina.com</a>">
<img src="../admin/images/image.gif" onclick="format('image')" style="cursor:hand;" title="图片。如<img src='http://www.ourgo.com/815.jpg'>">
<select name=font onchange="formatfont(this.options[this.selectedIndex].value)">
<option value="宋体" selected>宋体
<option value="楷体_gb2312">楷体GB2312
<option value="黑体">黑体
<option value="隶书">隶书
<option value="Arial">Arial
<option value="Arial Black">Arial Black
<option value="Impact">Impact
<option value="Tahoma">Tahoma
<option value="Times New Roman">Times New Roman
<option value="Verdana">Verdana
</select>
<select name=fontsize style="width:50px" onchange="formatsize(this.options[this.selectedIndex].value)">
<option value="6">一号
<option value="5">二号
<option value="4">三号
<option value="3">四号
<option value="2"selected>五号
</select>
<select name=color style="width:70px" onchange="formatcolor(this.options[this.selectedIndex].value)">
<option style="background-color:000000;color=000000" value="000000">000000
<option style="background-color:ffffff;color=ffffff" value="ffffff">ffffff
<option style="background-color:808080;color=808080" value="808080">808080
<option style="background-color:c0c0c0;color=c0c0c0" value="c0c0c0">c0c0c0
<option style="background-color:ff0000;color=ff0000" value="ff0000">ff0000
<option style="background-color:008000;color=008000" value="008000">008000
<option style="background-color:0000ff;color=0000ff" value="0000ff">0000ff
<option style="background-color:ffff00;color=ffff00" value="ffff00">ffff00
<option style="background-color:800080;color=800080" value="800080">800080
<option style="background-color:808000;color=808000" value="808000">808000
<option style="background-color:00ffff;color=00ffff" value="00ffff">00ffff
<option style="background-color:00ff00;color=00ff00" value="00ff00">00ff00
<option style="background-color:800000;color=800000" value="800000">800000
<option style="background-color:008080;color=008080" value="008080">008080
<option style="background-color:ff00ff;color=ff00ff" value="ff00ff">ff00ff
<option style="background-color:006400;color=006400" value="006400">006400
<option style="background-color:1e90ff;color=1e90ff" value="1e90ff">1e90ff
<option style="background-color:20b2aa;color=20b2aa" value="20b2aa">20b2aa
<option style="background-color:2e8b57;color=2e8b57" value="2e8b57">2e8b57
<option style="background-color:48d1cc;color=48d1cc" value="48d1cc">48d1cc
<option style="background-color:4169e1;color=4169e1" value="4169e1">4169e1
<option style="background-color:4682b4;color=4682b4" value="4682b4">4682b4
<option style="background-color:483d8b;color=483d8b" value="483d8b">483d8b
<option style="background-color:8b008b;color=8b008b" value="8b008b">8b008b
<option style="background-color:8b4513;color=8b4513" value="8b4513">8b4513
<option style="background-color:d3d3d3;color=d3d3d3" value="d3d3d3">d3d3d3
<option style="background-color:d8bfd8;color=d8bfd8" value="d8bfd8">d8bfd8
<option style="background-color:deb887;color=deb887" value="deb887">deb887
<option style="background-color:e6e6fa;color=e6e6fa" value="e6e6fa">e6e6fa
<option style="background-color:e9967a;color=e9967a" value="e9967a">e9967a
<option style="background-color:eee8aa;color=eee8aa" value="eee8aa">eee8aa
<option style="background-color:f08080;color=f08080" value="f08080">f08080
<option style="background-color:f5deb3;color=f5deb3" value="f5deb3">f5deb3
<option style="background-color:ff1493;color=ff1493" value="ff1493">ff1493
<option style="background-color:ff4500;color=ff4500" value="ff4500">ff4500
<option style="background-color:ffd700;color=ffd700" value="ffd700">ffd700
<option style="background-color:fffacd;color=fffacd" value="fffacd">fffacd
<option style="background-color:ffebcd;color=ffebcd" value="ffebcd">ffebcd
</select>
</td></tr>
<tr><td width=70 align=right>详细内容:</td>
<td><textarea rows=6 cols=62 name=content style="font-family:宋体" ><%=content%></textarea></td>
</tr>
<tr><td class=td2 bgcolor=ffffff ></td><td class=td2 bgcolor=ffffff align=left><br>
<input type="submit" name="submit" value="确认提交">
<input type=button value='内容预览' name=Button onclick=gopreview() style="">
</td></tr>
</table>
</td>
<td> </td>
</tr>
<script language=Javascript>editform.title.focus()</script>
</form>
</table>
<form name=preview method=post action="../admin/content_view.asp" target=winview>
<input type=hidden name=viewtitle value=""><input type=hidden name=viewbody value="">
</form>
<%end if%>
</body>
</html>
<!-- #include file="sysfunc.inc.asp" -->
<script language="Javascript">
function checkall(form)
{
for (var i=0;i<form.elements.length;i++)
{
var obj = form.elements[i];
var objname=obj.name;
if(objname.substring(0,9)=="checksele")
{
obj.checked=form.seleall.checked
}
}
}
function delmsg(form)
{
var flag=false;
var i,rectot,obj1
rectot=form.rectot.value;
for(i=1;i<=rectot;i++)
{
obj1=eval("form.checksele"+i);
if (obj1.checked) flag=true;
}
if (flag){
if (confirm('确认删除选择的记录吗?')==true) form.submit();
}else alert("请先选择要删除的记录!");
}
function checkform(form)
{
var flag=true;
if(form("title").value==""){alert("请输入图片标题!");form("title").focus();return false;}
return flag;
}
function format(flag)
{
switch(flag){
case "bold":
begintxt="<b>";
endtxt="</b>";
break;
case "italic":
begintxt="<i>";
endtxt="</i>";
break;
case "underline":
begintxt="<u>";
endtxt="</u>";
break;
case "center":
begintxt="<center>";
endtxt="</center>";
break;
case "right":
begintxt="<div align=right>";
endtxt="</div>";
break;
case "space":
begintxt=" ";
endtxt="";
break;
case "url":
begintxt="<a href='http://' target=_blank>";
endtxt="</a>";
break;
case "email":
begintxt="<a href='mailto:'>";
endtxt="</a>";
break;
case "image":
begintxt="<img src=''>";
endtxt="";
break;
}
dealcontent()
}
function formatcolor(newvalue)
{
begintxt="<font color="+newvalue+">"
endtxt="</font>";
dealcontent()
}
function formatfont(newvalue)
{
begintxt="<font face="+newvalue+">"
endtxt="</font>";
dealcontent()
}
function formatsize(newvalue)
{
begintxt="<font size="+newvalue+">"
endtxt="</font>";
dealcontent()
}
function dealcontent()
{
if ((document.selection)&&(document.selection.type == "Text"))
{
var range = document.selection.createRange();
var ch_text=range.text;
range.text = begintxt + ch_text + endtxt;
}
else
{
document.editform.content.value=begintxt+document.editform.content.value+endtxt;
document.editform.content.focus();
}
}
function gopreview()
{
document.preview.viewtitle.value=document.editform.title.value;
document.preview.viewbody.value=document.editform.content.value;
window.open('../admin/content_view.asp', 'winview', 'scrollbars=yes,width=500,height=400');
document.preview.submit()
}
function editimage(keyno)
{
var str
str="../admin/pic_upload.asp?keyno="+keyno+"&tablename=product_info&keyword=keyno&strflag=0"
window.open(str,"mywin","toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no,scrollbars=yes,width=550,height=400,left=120,top=70")
}
function editimage2(keyno)
{
var str
str="../admin/pic_upload.asp?keyno="+keyno+"&tablename=product_info&keyword=keyno&strflag=0&flagfield=picflag2&code=product_info2"
window.open(str,"mywin","toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no,scrollbars=yes,width=550,height=400,left=120,top=70")
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -