国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
4.2KB

  1. <?php
  2. $dsql->Execute('addmod', "SELECT id,nid,typename,useraddcon,usermancon,issend,issystem,usertype,isshow FROM `#@__channeltype`");
  3. $channels = array();
  4. while ($channel = $dsql->GetArray('addmod')) {
  5. $channels[$channel['id']] = $channel;
  6. }
  7. ?>
  8. <div class="col-md-3 m-pb-2">
  9. <ul class="list-group list-group-flush shadow-sm rounded">
  10. <li class="list-group-item justify-content-between align-items-center <?php echo (isset($_menu_home) && $_menu_home===true)? ' active' : '';?>"><a href="<?php echo $cfg_memberurl;?>/">会员面板</a></li>
  11. <li class="list-group-item justify-content-between align-items-center">
  12. <div data-toggle="collapse" data-target="#collapseMessage">消息管理<span class="badge badge-warning badge-pill ml-2"><?php echo $pms['nums'];?></span><span class="fa fa-angle-down ml-2"></span></div>
  13. <div id="collapseMessage" class="mt-3 collapse<?php echo (isset($_menu_pmex) && $_menu_pmex===true)? ' show' : '';?>">
  14. <ul class="list-group list-group-flush">
  15. <li class="list-group-item justify-content-between align-items-center rounded <?php if (isset($_menu_pmstate) && $_menu_pmstate === 0) echo 'active';?>"><a href="<?php echo $cfg_memberurl;?>/pm.php?folder=inbox">全部</a></li>
  16. <li class="list-group-item justify-content-between align-items-center rounded <?php if (isset($_menu_pmstate) && $_menu_pmstate === 1) echo 'active';?>"><a href="<?php echo $cfg_memberurl;?>/pm.php?folder=inbox&state=1">已读</a></li>
  17. <li class="list-group-item justify-content-between align-items-center rounded <?php if (isset($_menu_pmstate) && $_menu_pmstate === -1) echo 'active';?>"><a href="<?php echo $cfg_memberurl;?>/pm.php?folder=inbox&state=-1">未读</a></li>
  18. </ul>
  19. </div>
  20. </li>
  21. <li class="list-group-item justify-content-between align-items-center">
  22. <div data-toggle="collapse" data-target="#collapseArchives">我的文档<span class="fa fa-angle-down ml-2"></span>
  23. </div>
  24. <div id="collapseArchives" class="collapse mt-3<?php echo (isset($_menu_conex) && $_menu_conex===true)? ' show' : '';?>">
  25. <ul class="list-group list-group-flush">
  26. <?php foreach($channels as $chid => $channel) {?>
  27. <?php if(!in_array($chid,$enabledChannels)) continue;?>
  28. <?php $channel['usermancon'] = empty($channel['usermancon'])? "content_list.php" : $channel['usermancon'];?>
  29. <?php if ($channel['issend'] == 1) {?>
  30. <li class="list-group-item justify-content-between align-items-center rounded <?php if (isset($_menu_conex) && $channelid == $channel['id']) echo 'active';?>">
  31. <a href="<?php echo $cfg_memberurl;?>/<?php echo $channel['usermancon'];?>?channelid=<?php echo $channel['id'];?>"><?php echo $channel['typename'];?></a>
  32. </li>
  33. <?php }?>
  34. <?php }?>
  35. </ul>
  36. </div>
  37. </li>
  38. <li class="list-group-item justify-content-between align-items-center <?php echo (isset($_menu_stow) && $_menu_stow===true)? ' active' : '';?>"><a href="<?php echo $cfg_memberurl;?>/mystow.php">我的收藏</a></li>
  39. <li class="list-group-item justify-content-between align-items-center <?php echo (isset($_menu_buy) && $_menu_buy===true)? ' active' : '';?>"><a href="<?php echo $cfg_memberurl;?>/buy.php">积分钱包</a></li>
  40. <li class="list-group-item justify-content-between align-items-center">
  41. <div data-toggle="collapse" data-target="#collapseOrder">订单详情<span class="fa fa-angle-down ml-2"></span></div>
  42. <div id="collapseOrder" class="collapse mt-3<?php echo (isset($_menu_order) && $_menu_order===true)? ' show' : '';?>">
  43. <ul class="list-group list-group-flush">
  44. <li class="list-group-item justify-content-between align-items-center rounded <?php if (isset($_menu_orderstate) && $_menu_orderstate === 0) echo 'active';?>"><a href="<?php echo $cfg_memberurl;?>/mypay.php">购买文档</a></li>
  45. <li class="list-group-item justify-content-between align-items-center rounded <?php if (isset($_menu_orderstate) && $_menu_orderstate === 2) echo 'active';?>"><a href="<?php echo $cfg_memberurl;?>/operation.php">金币订单</a></li>
  46. </ul>
  47. </div>
  48. </li>
  49. <li class="list-group-item justify-content-between align-items-center <?php if (isset($_menu_edtitem) && $_menu_edtitem === 'base') echo 'active';?>"><a href="<?php echo $cfg_memberurl;?>/edit_baseinfo.php">资料修改</a></li>
  50. </ul>
  51. </div>