⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.asp

📁 具有计划、任务、通告、公文、员工档案、等网络办公功能
💻 ASP
字号:
<%response.expires=0%>
<%Response.Buffer=true%>
<!-- #include file="../conn_lr.asp"-->
<!-- #include file="../css.asp"-->
<%
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
session("id")=request.cookies("oabusyname")
if oabusyusername="" then 
	response.write("<script language=""javascript"">")
	response.write("window.top.location.href='../../default.asp';")
	response.write("</script>")
	response.end
end if
%>


<html>

<head>

<title>显示信息</title>

<meta http-equiv=Content-Type content="text/html; charset=gb2312">

<!-- #Include File=../inc/css.asp -->
<%
	'on error resume next
	
	dim Number,opFlag,title,image,vt,vtx,temp
	
	Number=cint(request("Number"))
	opFlag=request("opFlag")

	Set rs = Server.CreateObject("ADODB.Recordset")
	
	if opFlag="cmdAddNew" then
		title="发表新帖"
		vt=""
		vtx=""
	else
		rs.Open "select * from newbbs where id=" & request("id"),Session("conn"),1,3
		rs.move number
		title="回复帖子"
		vt=request("vtitle")
		temp=instr(vt,">")
		vt="回复:" & mid(vt,temp+1)
		vtx=request("vtext")
	end if
	
	image="../images/offiche.gif"
	opFlag="cmdAddNew"
%>

<style>
.css0 {<%=Session("vinputtext")%> ;border:0;}
</style>

<link rel="stylesheet" href="../editor/editor.asp" type="text/css">

<script language=JavaScript>

function ds(sstr)
{
	 var dstr="";
	 
	 for (i=0;i<sstr.length;i++)
	 {
		if (sstr.charAt(i)!=' ') dstr+=sstr.charAt(i);
	 }
	 return dstr;
}

function getit()
{
	var aa;
	aa=Composition.document.body.innerHTML;
	document.submitinput.vtext.value=aa;
	rphtml('vtitle');
	if (MM_validateForm('vtitle','','R','vtext','','R'))document.submitinput.submit();
}

function writeit()
{
	Composition.document.body.innerHTML=document.t.texta.value;
	document.submitinput.vtitle.focus()
}

</script>

</head>

<body  leftmargin="0" topmargin="0"  onLoad="javascript:InitDocument();writeit();">



<form  name="submitinput" action="save.asp?opFlag=<%=opFlag%>&id=<%=request("id")%>" method="post" >
    <!-- #include file="../inc/title.asp" -->
    <table border="0" class=vtext cellspacing="1" width="95%" align="center" bgcolor="<%=Session("vtablebordercolor")%>">
        <tr bgcolor=""> 
            <td align="right" bgcolor="<%=Session("vtabletitlebackcolor")%>" width="80">帖子标题:</td>
            <td align="left" bgcolor="<%=Session("vcolcolor")%>" width=""> 
                <input type="text" name="vtitle" size="90" class=css0 id="帖子标题" style="width:100%;" value="<%=vt%>" maxlength="50" onKeyDown=gonext("Composition")>
            </td>
        </tr>
        <tr bgcolor=""> 
            <td align="right" bgcolor="<%=Session("vtabletitlebackcolor")%>" width="80">表情:</td>
            <td align="left" bgcolor="<%=Session("vcolcolor")%>" width=""> 
                <input type="radio" name="radiobutton" value="notice1" checked>
                <img src="../images/notice1.gif" width="16" height="16"> 
                <input type="radio" name="radiobutton" value="note1">
                <img src="../images/note1.gif" width="15" height="15"> 
                <input type="radio" name="radiobutton" value="agree">
                <img src="../images/agree.gif" width="15" height="15"> 
                <input type="radio" name="radiobutton" value="warning">
                <img src="../images/warning.gif" width="15" height="15"> 
                <input type="radio" name="radiobutton" value="smiles">
                <img src="../images/smiles.gif" width="15" height="15"> 
                <input type="radio" name="radiobutton" value="sad">
                <img src="../images/sad.gif" width="15" height="15"> 
                <input type="radio" name="radiobutton" value="question">
                <img src="../images/question.gif" width="15" height="15"> </td>
        </tr>
        <tr bgcolor=""> 
            <td align="right" bgcolor="<%=Session("vtabletitlebackcolor")%>" width="80">发言人:</td>
            <td align="left" bgcolor="<%=Session("vcolcolor")%>" width=""> 
                <input type="text" name="vname"  readonly size="60" class="css0" id="发言人" value="<%=Session("id")%>">
            </td>
        </tr>
        <tr bgcolor=""> 
            <td align="left" bgcolor="<%=Session("vtabletitlebackcolor")%>" colspan="2"> 
                <!-- #include file="../editor/edit.html" -->
            </td>
        </tr>
    </table>
    <p align=center> 
        <input type="hidden" name="vtext" size="70" class="css0" id="帖子内容" >
        <input type="hidden" name="vhits" size="70" class="css0"  value=0>
        <input type="hidden" name="vre" size="70" class="css0"  value=0>
		
        <input type="hidden" name="vtime" size="25" class="css0" id="发言时间" value="<%=nowdate%>">      
              
        <button class=vinputbutton  style="height=24"  onClick=getit()><img src="../images/save.gif" align="absmiddle">&nbsp;保存</button>&nbsp;      
        <button class=vinputbutton name="Submit6" style="height=24"  onClick=javascript:history.go(-2);><img src="../images/back.gif" align="absmiddle">&nbsp;返回</button>      
    </p>      
</form>      
<form name=t style="display:none">      
    <textarea name=texta style="visibility: hidden" rows=1 cols=1><%=vtx%></textarea>      
</form>      
      
</body>      
      
</html>      

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -