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

📄 index.php

📁 极限网络智能办公系统 Office Automation V3.0官方100%源代码.
💻 PHP
字号:
<?
include_once("inc/auth.php");
?>

<html>
<head>
<title>Internet 邮件管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<script>
function delete_mailbox(EMAIL)
{
 msg='确认要删除该邮箱么?所有存储的邮件都将被删除!';
 if(window.confirm(msg))
 {
  URL="webmail_delete.php?EMAIL=" + EMAIL;
  window.location=URL;
 }
}

</script>

</head>
<body class="bodycolor" topmargin="5">

<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/notify_new.gif" align="absmiddle"><span class="big3"> 新建邮件账户</span><br>
    </td>
  </tr>
</table>

<div align="center">
  <input type="button"  value="新建邮件账户" class="BigButton" onClick="location='webmail_edit.php';" title="新建邮件账户,并进行配置">
</div>

<br>

<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
 <tr>
   <td background="/images/dian1.gif" width="100%"></td>
 </tr>
</table>

<?
 $connection=OpenConnection();
 $CUR_TIME=date("Y-m-d H:i:s",time());

 $query = "SELECT count(*) from WEBMAIL where USER_ID='$LOGIN_USER_ID'";
 $cursor= exequery($connection,$query);
 $BOX_COUNT=0;
 if($ROW=mysql_fetch_array($cursor))
    $BOX_COUNT=$ROW[0];

 if($BOX_COUNT==0)
 {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/notify_open.gif" align="absmiddle"><span class="big3"> 邮件账户列表</span><br>
    </td>
  </tr>
</table>
<br>
<?
   Message("","无已创建的邮件账户");
   exit;
 }

?>

<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/notify_open.gif" align="absmiddle"><span class="big3"> 邮件账户列表</span><br>
    </td>
    <td valign="bottom" class="small1">共<span class="big4">&nbsp;<?=$BOX_COUNT?></span>&nbsp;个账户
    </td>
    </tr>
</table>

<br>
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center">
  <tr class="TableHeader">
      <td nowrap align="center">电子邮件地址</td>
      <td nowrap align="center">操作</td>
    </tr>

<?
 $query = "SELECT * from WEBMAIL where USER_ID='$LOGIN_USER_ID'";
 $cursor= exequery($connection,$query);

 while($ROW=mysql_fetch_array($cursor))
 {
    $EMAIL=$ROW["EMAIL"];
?>
    <tr class="TableData">
      <td align="center"><a href="login.php?EMAIL=<?=$EMAIL?>"><?=$EMAIL?></a></td>
      <td nowrap align="center">
          <a href="webmail_edit.php?EMAIL=<?=$EMAIL?>">配置</a>&nbsp;&nbsp;
          <a href="javascript:delete_mailbox('<?=$EMAIL?>');">删除</a>
      </td>      
    </tr>
<?
 }
?>

</table>
</body>

</html>

⌨️ 快捷键说明

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