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

📄 msgbox.htm

📁 read8v20读吧.net书网 v2.0,自己珍藏的原代码,今天上传部分来给大家一起交流哈!
💻 HTM
字号:
<TABLE class=border2 cellSpacing=0 cellPadding=0 width=760 align=center 
border=0>  
  <TR>
    <TD class=tdbg_leftall vAlign=top align=left width=1 rowSpan=2>&nbsp; </TD>
	<TD>
	<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY><form name='frmlogin' method='post' action='loginout.php'>
  <TR>
    <TD width="68%" height=18>
	<!-- IF member_priv -->
	{LoginBar}
	<!-- ELSE -->
	{L_Uname}:<input type=text size=10 maxlength=20 name="username">&nbsp;&nbsp;{L_Pwd}:<input type=password size=10 maxlength=30 name="password"><input type="checkbox" name="usecookie" value="true">{L_Keeptime}<input type="hidden" name="action" value="login"><input type=submit value="{L_Login}" name="submit">&nbsp;<input type=button value="{L_Reg}" name="btnreg" OnClick="javascript:document.location='register.php'">
	<!-- ENDIF -->
	</TD></TR></form></TBODY></TABLE><HR noShade SIZE=1 color="#CCCCCC">
      <TABLE cellSpacing=1 cellPadding=3 width="98%" align=center bgColor=#D4D2F8 
      border=0>
        
        <TR bgColor=#cccccc>
          <TD colSpan=5>{L_Welcometoyour}{C_whichbox},{C_USERNAME}</TD></TR>
        <TR bgColor=#ebf3e6>
          <TD vAlign=center align=middle colSpan=5><A 
            href="msginbox.php"><IMG height=40 
            alt={L_Inbox} src="{G_style_template}/images/msginbox.gif" width=50 
            border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;<A 
            href="msgoutbox.php"><IMG height=40 
            alt={L_Outbox} src="{G_style_template}/images/msgoutbox.gif" width=50 
            border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;<A 
            href="msgnew.php"><IMG height=40 
            alt={L_Sendmsg} src="{G_style_template}/images/msgnew.gif" width=50 
            border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;<A 
            href="msgfriends.php"><IMG height=40 
            alt={L_Friendlist} src="{G_style_template}/images/msgfriend.gif" width=50 
        border=0></A></TD></TR>


<!-- IF theaction=="inboxread" -->
  <tr bgcolor="#EBEEDB" > 
    <td colspan=2><a href="userinfo.php?id={C_fromuser}" target="_blank">{C_username}</a> : {C_msgtime}</td>
  </tr>
  <tr bgcolor="#ebf3e6" > 
    <td width="100" align="center">{L_Topic}</td><td width="600">{C_title}</td>
  </tr>
  <tr bgcolor="#EBEEDB" > 
    <td width="100" align="center">{L_Content}</td><td width="600">{C_content}</td>
  </tr>
  <tr bgcolor="#a0c484" > 
    <td colspan="5" align=center>
	<INPUT TYPE="button" value="{L_Back}" onclick="history.back()">&nbsp;
	<INPUT TYPE="button" value="{L_Reply}" onclick="location.href='msgnew.php?touser={C_username}'">&nbsp;
	<INPUT TYPE="button" value="{L_Delete}" onclick="location.href='msginbox.php?action=del&id={C_id}'"></td>
  </tr>

<!-- ELSEIF theaction=="outboxread" -->
  <tr bgcolor="#EBEEDB" > 
    <td colspan=2><a href="userinfo.php?id={C_touser}" target="_blank">{C_username}</a> : {C_msgtime}-------{L_Receiver}<!-- IF C_isread -->{L_Readed}<!-- ELSE --><FONT color=red>{L_Unread}</FONT><!-- ENDIF --></td>
  </tr>
  <tr bgcolor="#ebf3e6" > 
    <td width="100" align="center">{L_Topic}</td><td width="600">{C_title}</td>
  </tr>
  <tr bgcolor="#EBEEDB" > 
    <td width="100" align="center">{L_Content}</td><td width="600">{C_content}</td>
  </tr>
  <tr bgcolor="#a0c484" > 
    <td colspan="5" align=center>
	<INPUT TYPE="button" value="{L_Back}" onclick="history.back()"></td>
  </tr>

<!-- ELSEIF theaction=="msgfriends" -->
  <tr bgcolor="#EBEEDB" > 
  <form name="frmaddfriends" method="post" action="msgfriends.php?action=add">
    <td colspan=5>{L_Uname}: <input type=text size=20 maxlength=20 name="username">&nbsp;&nbsp;
        <input type=submit value="{L_Add}{L_Friend}" name="submit"></td></form>
  </tr>
  <tr bgcolor="#ebf3e6" > 
    <td width="278"><strong>{L_Friend}</strong>({C_mfnum})</td>
    <td width="152"><strong>{L_Sendmsg}</strong></td>
    <td width="148"><strong>{L_Delete}{L_Friend}</strong></td>
  </tr>
  <!-- BEGIN Msgfriendblock -->
  <tr bgcolor="#EBEEDB" > 
    <td width="278"><a href="userinfo.php?uname={C_msgfriends_i}" target="_blank">{C_msgfriends_i}</a></td>
    <td width="152"><a href="msgnew.php?touser={C_msgfriends_i}">{L_Sendmsg}</a></td>
    <td width="148"><a href="msgfriends.php?action=del&username={C_msgfriends_i}">{L_Delete}</a></td>
  </tr>
  <!-- END Msgfriendblock -->
  <tr bgcolor="#a0c484" > 
    <td colspan="5" align=center></td>
  </tr>

<!-- ELSEIF theaction=="sendmsg" -->
<script language=JavaScript>
function validate(theform) {
	if (theform.touser.value=="") 
	{
		alert("{L_Noreceiver}");
		return false; 
	}
	
	if (theform.title.value=="" || theform.content.value=="") 
	{
		alert("{L_Notopicorcontent}");
		return false; 
	}

	if (theform.title.value.length>40) 
	{
		alert("{L_Topicoverflow}");
		return false; 
	}

	if (theform.content.value.length>1000) 
	{
		alert("{L_Contentoverflow}");
		return false; 
	}
	return true;
}

function friendsls()
{
	var tmpfriends = document.frmmsgnew.friendslist.options[document.frmmsgnew.friendslist.selectedIndex].value;
	document.frmmsgnew.touser.value = tmpfriends;
}	
</script>
 <br>
 <form name="frmmsgnew" method="post" action="msgnew.php?action=post" onSubmit="return validate(this)">
  <tr bgcolor="#EBEEDB" > 
    <td width="100" align="center" colspan=2></td></tr>
  <tr bgcolor="#ebf3e6" > 
      <td><strong>{L_Receiver}: </strong></td>
      <td>
		<input type="text" size="20" maxlength="20" name="touser"  value='{C_touser}'>
		<strong>&nbsp;&nbsp;{L_Friendlist}: </strong> 
		<select name='friendslist' onChange='javascript:friendsls()' >
		<option value=''>--{L_Friendlist}--</option>
		<!-- BEGIN Msgfriendblock -->
		<option value='{C_msgfriends_i}' {C_selected}>{C_msgfriends_i}</option>
		<!-- END Msgfriendblock --></tr>
  <tr bgcolor="#EBEEDB" > 
      <td><strong>{L_Topic}: </strong></td>
      <td><input type="text" size="50" maxlength="50" name="title"></td></tr>
  <tr bgcolor="#a0c484" > 
      <td width="158"><strong>{L_Content}: </strong></td>
      <td width="427"><textarea name="content" rows="6" cols="50"></textarea></td></tr>
  <tr bgcolor="#a0c484" > 
    <td colspan="5" align=center>
	<input type=submit value="{L_Ensure}" name="submit">
               
          <input type=reset value="{L_Reset}" name="reset"></td></tr></form>



<!-- ELSEIF theaction=="msgboxlist" -->
        <TR align=middle bgColor=#ebeedb>
          <TD width=80><STRONG>{L_Author}</STRONG></TD>
          <TD width=242><STRONG>{L_Topic}</STRONG></TD>
          <TD width=120><STRONG>{L_Date}</STRONG></TD>
          <TD width=54><STRONG>{L_Readmark}</STRONG></TD>
          <TD width=67><STRONG><!-- IF C_boxkind=="msginbox" --><A href="msginbox.php?action=delall">{L_Clearout}{L_Inbox}</A><!-- ELSE -->**<!-- ENDIF --></STRONG></TD></TR>
		<!-- BEGIN Bookcaselistblock -->
        <TR bgColor=#ebf3e6 align=center>
          <TD><A href='userinfo.php?id={C_fromuser}' target=_blank>{C_username}</A></TD>
          <TD><A href='<!-- IF C_boxkind=="msginbox" -->msginbox<!-- ELSE -->msgoutbox<!-- ENDIF -->.php?action=read&id={C_msgid}'>{C_title}</A></TD>
          <TD>{C_msgtime}</TD>
          <TD>
		  <!-- IF C_isread -->{L_Readed}<!-- ELSE --><FONT color=red>{L_Unread}</FONT><!-- ENDIF --></TD>
          <TD><!-- IF C_boxkind=="msginbox" --><a href="msgnew.php?touser={C_username}">{L_Reply}</a>&nbsp;&nbsp;<a href="msginbox.php?action=del&id={C_msgid}">{L_Delete}</a><!-- ELSE -->**<!-- ENDIF --></TD></TR>
		<!-- END Bookcaselistblock -->
        <TR bgColor=#cccccc><form name="frmforum" method="post" action="{C_boxkind}.php">
          <TD align=middle colSpan=5>{C_pagelink}</TD></form></TR>
<!-- ENDIF -->

		  
		  </TABLE></TD>
    <TD vAlign=top width=1>
      </TD></TR></TABLE>

⌨️ 快捷键说明

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