<?php
	!defined('DIRCMS_MEMBER') && exit('Access Denied!');
?>
<!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>会员中心 - Powered by DirCMS</title>
<base href="<?php echo $DIRCMS['site_url'];?>" />
<link href="member/template/images/style.css" rel="stylesheet" type="text/css" />
<script src="images/js/common.js"></script>
</head>
<body>
<div id="warp">
<div id="header">
<div id="logo">
<h1><a href="member">会员中心</a></h1>
</div>
<div class="menu"><a href="<?php echo $DIRCMS['site_url'];?>" target="_blank">网站主页</a> | <a href="post/">我要投稿</a> | <a href="wap/">WAP</a> | <a href="space/index.php?id=<?php echo $_userid?>" target="_blank">我的空间</a> | <a href="member/index.php?file=login&action=logout">退出</a></div>
<div id="nav">
<ul class="clearfix">
<li class="first"><a href="space/index.php?id=<?php echo $_userid?>" target="_blank">我的空间</a></li>
<li class="home"><a href="member/index.php">管理首页</a></li>
<?php if(!$module['msg']['disabled']){?><li class="li"><a href="member/index.php?file=msg&action=inbox">短消息</a></li><?php }?>
<?php if(!$module['content']['disabled']){?><li><a href="member/index.php?file=content&action=manage">信息管理</a></li><?php }?>
<?php if(!$module['collection']['disabled']){?><li class="li"><a href="member/index.php?file=user&action=collect">收藏夹</a></li><?php }?>
<li class="li"><a href="space/index.php?id=<?php echo $_userid?>"> &nbsp;&nbsp;&nbsp;我的空间</a></li>
<li><a href="<?php echo $DIRCMS['site_url'];?>">网站首页</a></li>
</ul>
</div>
</div>
<div class="container clearfix">
<div id="sidebar">
<div class="box">
<?php if(!$module['info']['disabled']){?>
<h2 class="title">我的资料</h2>
<div class="menu">
<ul>
<li><img src="member/template/images/profile.gif" /><a href="member/index.php?file=user&action=editphoto">修改头像</a></li>
<li><img src="member/template/images/edit.gif" /><a href="member/index.php?file=user&action=edit">修改资料</a><em><a href="member/index.php?file=user&action=editpsw">修改密码</a></em></li>
</ul>
</div>
<?php }?>
<?php if(!$module['content']['disabled']){?>
<h2 class="title">信息管理</h2>
<div class="menu">
<ul>
<?php foreach($leftmenu as $_r){?>
	<li><img src="member/template/images/list.gif" /><a href="member/index.php?file=content&action=manage&catid=<?php echo $_r['id'];?>"><?php echo $_r['categoryname'];?></a><em><a href="member/index.php?file=content&action=add&catid=<?php echo $_r['id'];?>">发布</a></em></li>
<?php }?>
</ul>
</div>
<?php }?>
<?php if(!$module['yp']['disabled']){?>
<?php if(in_array($_gradeid,$usepriv) || $_groupid==1){?>
<h2 class="title">商家黄页</h2>
<div class="menu">
<ul>
	<li><img src="member/template/images/list.gif" /><a href="member/index.php?file=user&action=space">商家信息</a><em><a href="member/index.php?file=user&action=space_edit">设置</a></em></li>
	<?php if($_iscompmayed){?>
	<?php if(in_array($_gradeid,$newspriv) || $_groupid==1){?> 
	<li><img src="member/template/images/list.gif" /><a href="member/index.php?file=co_content&action=news_manage">商家新闻</a><em><a href="member/index.php?file=co_content&action=news_add">发布</a></em></li>
	<?php }?>
	<?php if(in_array($_gradeid,$productpriv) || $_groupid==1){?>
	<li><img src="member/template/images/list.gif" /><a href="member/index.php?file=co_content&action=product_manage">产品管理</a><em><a href="member/index.php?file=co_content&action=product_add">发布</a></em></li>
	<?php }?>
	<?php if(in_array($_gradeid,$couponpriv) || $_groupid==1){?>
	<li><img src="member/template/images/list.gif" /><a href="member/index.php?file=co_content&action=coupon_manage">优惠动态</a><em><a href="member/index.php?file=co_content&action=coupon_add">发布</a></em></li>
	<?php }?>
	<li><img src="member/template/images/list.gif" /><a href="member/index.php?file=co_guestbook&action=manage">留言管理</a><em><a href="member/index.php?file=co_guestbook&action=manage&ispassed=0">审核</a></em></li>
	<?php }?>
</ul>
</div>
<?php }?>
<?php }?>
<?php if(!$module['pay']['disabled']){?>
<h2 class="title">支付中心</h2>
<div class="menu">
<ul>
<li><img src="member/template/images/poll.gif" /><a href="member/index.php?file=account&action=payonline">在线充值</a></li>
<li><img src="member/template/images/money.gif" /><a href="member/index.php?file=account&action=paybycard">点卡充值</a></li>
<li><img src="member/template/images/card.gif" /><a href="member/index.php?file=account&action=buypoint">购买点数</a></li>
<li><img src="member/template/images/cart.gif" /><a href="member/index.php?file=account&action=paylog" target="_blank">充值记录</a></li>
<?php if(!$module['order']['disabled']){?>
<li><img src="member/template/images/event.gif" /><a href="member/index.php?file=account&action=buylog">交易记录</a></li>
<li><img src="member/template/images/record.gif" /><a href="member/index.php?file=order&action=manage">订单管理</a></li>
<?php }?>
</ul>
</div>
<?php }?>
<div class="menu">
<ul>
<li><img src="member/template/images/out.gif" /><a href="member/index.php?file=login&action=logout">退出登陆</a></li>
</ul>
</div>
</div>
</div>


<div id="content">
<div id="here">
<h2 class="title">短消息管理</h2>
</div>
<div class="tabs_header">
<ul class="tabs clearfix">
<li class="active"><a href="member/index.php?file=msg&action=inbox">收件箱</a></li>
<li><a href="member/index.php?file=msg&action=outbox">发件箱</a></li>
<li><a href="member/index.php?file=msg&action=send">发送信息</a></li>
</ul>
</div>
<div class="display">
<script>
function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.name != 'chkall')
       e.checked = form.chkall.checked;
    }
  }
</script>
<form action="" method="post" id="listmsg"  name="myform">
<input type="hidden" name="do_submit" value="1" />
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_title">
<tbody>
<tr>
<td class="select">选中</td>
<td class="infotitle">标题</td>
<td class="sender">发送者</td>
<td class="time">发送时间</td>
</tr>
</tbody>
</table>

<?php if(is_array($result))foreach($result as $val){?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_list">
<tbody>
<tr>
<td class="select"><input type="checkbox" name="id[]" value="<?php echo $val['id'];?>" /></td>
<td class="infotitle"><a href="member/index.php?file=<?php echo $file;?>&action=read&id=<?php echo $val['id'];?>"><?php echo $val['status']?'':'<font style="font-weight:bold;color:#999999">';?><?php echo $val['subject'];?><?php echo $val['status']?'':'</font>';?></a></td>
<td class="sender"><?php echo $val['send_from_user'];?></td>
<td class="time"><?php echo date('Y-m-d H:i:s',$val['message_time']);?></td>
</tr>
</tbody>
</table>
<?php }?>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_title">
<tbody>
<tr>
<td class="select"><input type="checkbox" name="chkall" value="on" onclick="CheckAll(this.form)" class="noborder" /></td>
<td class="infotitle"><INPUT class="input_sub" id="button1" type="button" value="批量删除" onClick="if(confirm('确定进行删除操作吗？')){this.form.action='member/index.php?file=<?php echo $file;?>&action=delete';this.form.submit();}" name="dodelete">  灰色粗体代表未阅读信息。</td><td><div align="right">
</div></td>
</tr>
<tr>
<td colspan="3"><?php echo $pages;?></td>
</tr>
</tbody>
</table>
</form>
</div>
</div>



</div>
<div id="footer">
<p><a href="<?php echo $DIRCMS['site_url'];?>" target="_blank">Site Home</a> - <a href="<?php echo $DIRCMS['site_url'];?>about/connectus.html" target="_blank">联系我们</a> - <?php echo $DIRCMS['icpno'];?></p>
<p>Powered by <strong><a href="http://www.dircms.net/" target="_blank">DirCMS</a></strong> &copy; 2009-<?php echo date('Y');?>&nbsp;
Dircms Inc.</p>
</div>
</div>
</body>
</html>