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

📄 photo_msg_edit.asp

📁 不是我做的一个留言板
💻 ASP
字号:
<!--#include file="conn.asp" -->
<!--#include file="session.asp" -->
<!--#include file="../templet/top.asp" -->
<!--#include file="../function/function.asp" -->
<!--#include file="../templet/mon.asp" -->
<!--#include file="../js/vbjava.asp" -->
<%
formPath="upload"
id=request.QueryString("id")
up=request.QueryString("up")
photoid=request.QueryString("photoid")
set photo_rs=server.CreateObject("adodb.recordset")
sql="select * from photo where photoid="&photoid
set photo_rs=conn.execute(sql)

' -----------------------------------------------------------------

call mon(y)
        RESPONSE.WRITE "<table width=100% border=1 bgColor='"&td_bg_color&"' bgborder='"&td_bor&"'>"
        RESPONSE.WRITE "<tr><td  height=50 background="&web_background&"/top_foot_img/bg4.gif>"
        RESPONSE.WRITE "『<font color='#ff0000'>"&left(trim(photo_rs("phototitle")),6)&"...</font>』<br>"
        RESPONSE.WRITE LEFT(Trim(photo_rs("photocomment")),10)
        RESPONSE.WRITE "</td></tr><tr><td bgColor=ffffff align=center> <br>"
%>

<table border="0" cellPadding="0" cellSpacing="0" height="90" width="130">
  <tr>
    <td align="middle" width="130">
      <table bgColor="#cccccc" border="0" cellPadding="0" cellSpacing="1" height="90" width="130">
        <tbody>
          <tr>
            <td bgColor="#ffffff">
              <table align="center" bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="1" height="80" width="110">
                <tbody>
                  <tr>
                    <td align=center>

<img src="<%=photopath%>/<%=photo_rs("photoname")%>" border="0" onload="javascript:DrawImage(this);" >


                   </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
<%
        RESPONSE.WRITE "</td><td align=middle vAlign=bottom width=17>"
        RESPONSE.WRITE "<img border=0 src="&img_path&"/cool.gif width=10 height=70>"
        RESPONSE.WRITE "</td></tr></table><br>"
        RESPONSE.WRITE L_CLASS_UPUSER&":"&trim(photo_rs("photouser"))
        RESPONSE.WRITE "<br>"&trim(photo_rs("phototime"))
	RESPONSE.WRITE mon_foot&"</table>"





' --------------------------------------------------------------------------------------
msg_user=photo_rs("photouser")
photo_rs.close
if msg_user=session_cookie_name or session_cookie_group>2 then
 sql="select * from photo_msg where id="&id
	
set rs=conn.execute(sql)
     
      
	end if
%>


<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript"><!--
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.photo_text.value == "")
  {
    alert("<%=L_PHOTO_MSG001%>");
    theForm.photo_text.focus();
    return (false);
  }

  if (theForm.photo_text.value.length > 200)
  {
    alert("<%=L_PHOTO_MSG002%>");
    theForm.photo_text.focus();
    return (false);
  }
  return (true);
}
//--></script>
<!--webbot BOT="GeneratedScript" endspan -->
<form action="photo_msg_edit2.asp" method="post" onsubmit="return FrontPage_Form1_Validator(this)" name="FrontPage_Form1">






<table border="1" cellpadding="2" bordercolor="#000000">
                                <tr> 
 <td align=center>
                                  <%=L_CLASSi_pMsgEDIT%>:<br>
 <!--webbot bot="Validation"
                                B-Value-Required="TRUE" I-Maximum-Length="200"
                                -->

                                <TEXTAREA  name=photo_text rows=8 cols=40 style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'">
                                         <%=rs("photo_text")%>
                                   </TEXTAREA>
                                  </td>
                                     <td rowspan="2" width="209">
                                   <%msg_text="photo_text"%>
                              <!--#include file="../templet/msg_mon.asp" -->
                                     </td> 
</tr>
                                    </table>  </td>









  </tr>
<tr>
<td align=center>

 <input name="id" type="hidden" id="id" value="<%=rs("id")%>">
                                       <input name="photoid" type="hidden" value="<%=photoid%>">
                                       <input name="msg_user" type="hidden" value="<%=rs("msg_user")%>">
                                      <input name="method" type="hidden" id="method" value="submit">
                                      <input type="submit" name="Submit" value="<%=L_CLASSi_pMsgEDIT2%>" style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'"></form>
</td></tr>

                           

<!--#include file="../templet/foot.asp" -->


⌨️ 快捷键说明

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