<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<title><?php echo $title;?></title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<style>
.napisdiv {left:10;top:0;width:150;height:100;position:absolute;z-index:3}
.mbb { margin-bottom:3px; border:1px dashed #cdcdcd; }
.mbline { border-top:1px solid #eeeeee; border-bottom:1px solid #eeeeee }
button {margin-left:6px; border: 1px solid; border-color: #D9EDC0; background: #F9FCEF; height: 20px; line-height: 20px; cursor: pointer; }
</style>
<script language='javascript' src='area.js'></script>
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language='javascript' src='main.js'></script>
</head>
<body leftmargin='0' topmargin='0'>
<div align="center">
<?php  include(dirname(__FILE__)."/head.htm"); ?>

<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="160" height="216" valign="top"><?php include(dirname(__FILE__)."/menu.php");?>
    </td>
    <td width="10">&nbsp;</td>
    <td  valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" style="margin-bottom:5px;">
      <tr align="right" bgcolor="#ffffff">
        <div class="manage_company_right_title" style="margin-top:10px;">
                	<ul><li><?php echo $title;?>：</li></ul>
                </div>
      </tr>
    </table>
	<form name="form" method="post">
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D9EDC0" style="text-indent:10px;">
          <tr height="24">
            <td width="5%" height="30" align="center" bgcolor="#F9FCEF">&nbsp;</td>
            <td width="47%" align="left" bgcolor="#F9FCEF" style="text-indent:10px;">标题</td>
            <td width="25%" align="left" bgcolor="#F9FCEF"><?=$touser?></td>
            <td width="25%" align="left" bgcolor="#F9FCEF">时间</td>
          </tr>
          <?php
          $Messages = $dbpage->GetDataList();
          while($val = $Messages->GetArray('dm')) {
          ?>
          <tr height="24">
            <td height="30" align="left" bgcolor="#F0F0F0"><input type="checkbox" name="delete[]" value="<?=$val['pmid']?>" /></td>
            <td height="26" align="left" bgcolor="#F9F9F9" style="text-indent:10px;"><a href="pm.php?action=view&id=<?=$val['pmid']?>" target="_blank"><?php if($val['new']) echo "<b style='font-weight:bold; color:#454545;'>";?><?php echo $val['subject']?><?php if($val['new']) echo "</b>";?></a></td>
            <td height="26" align="left" bgcolor="#F0F0F0"><a href="index.php?id=<?php echo $val['msgfromid']?>" target="_blank"><?php echo $val['msgfrom']?></a></td>
            <td height="26" align="left" bgcolor="#F9F9F9"><?php echo date('y-m-d h:i:s',$val['dateline']);?></td>
          </tr>
          <?php
          }?>
          <tr height="24">
          <td height="26" colspan="4" valign="middle" bgcolor="#F9FCEF"><input class="checkbox" type="checkbox" id="chkall" name="chkall" onClick="checkall(this.form)" /> 全选 <button type="submit" name="pmsend" value="true">删除</button> <?php echo $dbpage->GetPageList(7);?></td>
          </tr>
      </table>
      </form>
      </td>
  </tr>
</table>
<?php 
include(dirname(__FILE__)."/foot.htm");
?>
</div>
<script type="text/javascript">
function checkall(form, prefix, checkall) {
	var checkall = checkall ? checkall : 'chkall';
	for(var i = 0; i < form.elements.length; i++) {
		var e = form.elements[i];
		if(e.name && e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) {
			e.checked = form.elements[checkall].checked;
		}
	}
}
</script>
</body>
</html>