<?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/jquery.min.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><a href="member/index.php?file=user&action=editphoto">上传头像</a></li>
<li><a href="member/index.php?file=user&action=edit">修改基本资料</a></li>
<li><a href="member/index.php?file=user&action=editpsw">密码安全修改</a></li>
<li class="active"><a href="#">商家黄页</a></li>
</ul>
</div>
<div class="display">
<form action="" method="post" name="myform" >
<input type="hidden" name="file" value="<?php echo $file;?>"> 
<input type="hidden" name="action" value="requestconvert">
<table width="100%">
<tr><td align="left">您当前的会员类型为：<strong><?php echo $modelname;?></strong>，该类型不能开通黄页！你可以申请转型为
<?php echo $modelselect;?>
</td></tr>
<tr><td align="center" height="30"><input type="button" value="申请转型" name="dosubmit" onClick="this.form.submit();" class="input_sub" />
		&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="取消开通" name="doreset" onclick="history.back();" class="input_sub" /></td></tr>&nbsp;&nbsp;&nbsp;&nbsp;
</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>