<?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" />
</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">
<?php foreach($leftmenu as $_r){?>
	<li <?php echo $_r['id']==$channelid || (isset($_category)&&$_category['channelid']==$_r['id'])?'class="active"':'';?>><a href="member/index.php?file=content&action=manage&catid=<?php echo $_r['id'];?>"><?php echo $_r['categoryname'];?></a></li>
<?php }?>
</ul>
<div id="search_user">
<form action="member/?" method="get" name="search">
<input type="hidden" name="file" value="<?php echo $file;?>"> 
<input type="hidden" name="action" value="<?php echo $action;?>">
<?php if($channelid){?><input type="button" style="font-size:12px" name="Submit" value="发布<?php echo $_c['channelname'];?>" onclick="self.location.href='index.php?file=content&action=add&channelid=<?php echo $channelid;?>';" /><?php }?>
<input name="k" type="text" value="<?php echo isset($k)?htmlspecialchars(stripslashes($k)):'';?>" class="input_text" style="width:100px" />
<input type="submit" name="Submit2" value="搜 索" class="input_sub" />
</form>
</div>
</div>
<div class="display">
<div class="infolist">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_title">
<tr>
<td class="infotitle">标题</td>
<td class="class">所属栏目</td>
<td class="click">点击</td>
<td class="time">发布时间</td>
<td class="pl">评论</td>
<td class="checked">审核</td>
<td class="">操作</td>
</tr>
</table>


<?php if(is_array($result))foreach($result as $val){?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_list">
<tr>
<td class="infotitle"><a href="<?php echo $DIRCMS['site_url'].$val['url'];?>" target="_blank"><font <?php echo $val['style']?'style="'.$val['style'].'"':'style="font-size:12px"';?>><?php echo htmlspecialchars($val['title']);?></font></A> &nbsp;<?php echo $val['thumb']?'<font color="#ff0000">图</font>':'';?>&nbsp;<?php echo $val['posid']?'<font color="#00ff00">荐</font>':'';?></td>
<td class="class"><a href="member/index.php?file=<?php echo $file;?>&action=<?php echo $action;?>&field=catid&fieldvalue=<?php echo $val['catid'];?>"><?php echo $val['catname'];?></a></td>
<td class="click"><?php echo $val['clicks'];?></td>
<td class="time"><?php echo date('Y-m-d',$val['inputtime']);?></td>
<td class="pl"><?php echo $val['comments'];?></td>
<td class="checked"><?php echo $val['status']=='1'?'√':'<font color="#FF3300">×</font>';?></td>
<td class=""><a href="member/index.php?file=<?php echo $file;?>&action=edit&catid=<?php echo $val['catid'];?>&id=<?php echo $val['id'];?>">编辑</a> | <?php if(!$val['status']){?><a href="member/index.php?file=<?php echo $file;?>&action=delete&id=<?php echo $val['id'];?>">删除</a><?php }else{?><a href="member/index.php?file=<?php echo $file;?>&action=top&id=<?php echo $val['id'];?>" onclick="if(confirm('置顶该信息会扣除您<?php echo TOPPOINT;?>个积分,您当前的积分为:<?php echo $_point;?>\n\n确认继续?')){return true;}else{return false;}">置顶</a><?php }?></td>
</tr>
</table>
<?php }?>


<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_title">
<tr>
<td><?php echo $pages;?></td>
</tr>
</table>
</div>
</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>