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

📄 read_msg.php

📁 通达OA部分源代码
💻 PHP
字号:
<?
include "logincheck.php";
include_once "myconnect.php";
include_once "date_time_format.php";

function main()
{

$rs11_query=mysql_query("Select *,UNIX_TIMESTAMP(sb_onstamp) as t from sbbleads_messages  where sb_id=" . $_REQUEST["mid"] );

$rs11=mysql_fetch_array($rs11_query);

 if ($_SESSION["sbbleads_userid"]==$rs11["sb_tid"])
	{
 	  $sql="update sbbleads_messages set sb_msg_read='Yes'  where sb_id=" . $_REQUEST["mid"] ;
	  mysql_query($sql);
	}

$rs0_query=mysql_query("Select * from sbbleads_members  where sb_id=" . $_REQUEST["id"] );

$rs0=mysql_fetch_array($rs0_query);
?>
<script language="JavaScript">

function addcontact(id)
{
window.open("addcontact_popup.php?username=" + id,"ContactUser","top=5,left=30,toolbars=no,maximize=yes,resize=yes,width=550,height=50,location=no,directories=no,scrollbars=yes");
return false;
}
function blockcontact(id)
{
window.open("addblock_popup.php?username=" + id,"ContactUser","top=5,left=30,toolbars=no,maximize=yes,resize=yes,width=550,height=50,location=no,directories=no,scrollbars=yes");
return false;
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" dwcopytype="CopyTableRow">
  <tr> 
    <TD colspan="3" align="center" valign="top"><table width="90%" border="0" cellspacing="0" cellpadding="0" class="onepxtable">
              <tr class="titlestyle"> 
                <td height="25">&nbsp;Read Message</td>
              </tr>
        <tr>
          <td><table width="100%" border="0" cellspacing="5" cellpadding="2" align="center">
              <tr> 
                <td width="40%" height="25" align="right" class="innertablestyle"> 
                  <div align="right" class="innertablestyle"> <b><font class='normal'>Subject</font></b></div></td>
                <td width="6" height="25">&nbsp;</td>
                <td width="452" height="25"><font class='normal'><?php echo $rs11["sb_subject"] ?></font></td>
              </tr>
              <tr> 
                <td width="40%" height="25" align="right" class="innertablestyle"> 
                  <div align="right" class="innertablestyle"> <b><font class='normal'>Date</font></b></div></td>
                <td width="6" height="25">&nbsp;</td>
                <td width="452" height="25"><font class='normal'><?php   
echo sb_date($rs11["t"]); ?></font></td>
              </tr>
              <tr> 
                <td width="40%"  align="right" valign="top" class="innertablestyle"> 
                  <div align="right" > <b><font class='normal'>Message</font></b></div></td>
                <td width="6" height="25">&nbsp;</td>
                <td width="452" height="25"><font class='normal'><?php echo  nl2br( $rs11["sb_message"]); ?></font></td>
              </tr>
              <form name="form2" method="post" action="">
                <tr> 
                  <td width="40%" height="25" align="right" class="innertablestyle"> 
                    <div align="right" class="innertablestyle"> <b><font class='normal'>From</font></b></div></td>
                  <td width="6" height="25">&nbsp;</td>
                  <td height="25"><font class='normal'><font color="#FF0000"><strong><?php echo $rs0["sb_username"] ?></strong></font> 
                    -</font> <input type="button" name="Submit4" value="Add User" onClick="return addcontact('<?php echo $rs0["sb_username"];?>');"> 
                    <input type="button" name="Submit42" value="Block User" onClick="return blockcontact('<?php echo $rs0["sb_username"];?>');"> 
                  </td>
                </tr>
              </form>
              <tr> 
                <form name="form1" method="post" action="replyuser.php">
                  <td width="40%" height="25" align="right" class="innertablestyle"> 
                    <div align="right" class="innertablestyle"> </div></td>
                  <td width="6" height="25">&nbsp;</td>
                  <td height="25"> <p> 
                      <input type="hidden" name="tid" value="<? echo $rs0["sb_id"];?>">
                      <input type="hidden" name="mid" value="<? echo $rs11["sb_id"];?>">
                      <input type="submit" name="Submit" value="Reply">
                    </p></td>
                </form>
              </tr>
            </table></td>
        </tr>
      </table>
      
    </TD>
  </tr>
  <tr> 
    <TD colspan="3" valign="top">&nbsp; </TD>
  </tr>
  <tr> 
    <TD></TD>
  </tr>
  <tr> 
    <td colspan="4">&nbsp;</td>
  </tr>
</table>
 <?
}// end main
include "template1.php";
?> 

⌨️ 快捷键说明

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