| @@ -95,8 +95,8 @@ if (isset($dopost) && $dopost == 'getone') { | |||||
| $ccd = $row['cc'] + $ccd; | $ccd = $row['cc'] + $ccd; | ||||
| $msg = "<table width='100%' align='center' cellpadding='3' cellspacing='1'> | $msg = "<table width='100%' align='center' cellpadding='3' cellspacing='1'> | ||||
| <tr align='center' bgcolor='#F8FCF1'> | <tr align='center' bgcolor='#F8FCF1'> | ||||
| <td width='18%' height='26'>管理员::统计信息</td> | |||||
| <td width='18%'>全部(文档|点击)</td> | |||||
| <td width='18%' height='26'>管理员</td> | |||||
| <td width='18%'>文档与点击</td> | |||||
| <td width='16%'>季度</td> | <td width='16%'>季度</td> | ||||
| <td width='16%'>当月</td> | <td width='16%'>当月</td> | ||||
| <td width='16%'>近七天</td> | <td width='16%'>近七天</td> | ||||
| @@ -110,7 +110,7 @@ if (isset($dopost) && $dopost == 'getone') { | |||||
| <td>{$ddw} | {$ccw}</td> | <td>{$ddw} | {$ccw}</td> | ||||
| <td>{$ddd} | {$ccd}</td> | <td>{$ddd} | {$ccd}</td> | ||||
| </tr> | </tr> | ||||
| </table><br style='clear:both'/>\r\n"; | |||||
| </table>"; | |||||
| AjaxHead(); | AjaxHead(); | ||||
| echo $msg; | echo $msg; | ||||
| exit(); | exit(); | ||||
| @@ -9,93 +9,83 @@ | |||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <table width="98%" cellpadding="2" cellspacing="1" align="center" class="table maintable mt-3 mb-3"> | |||||
| <form name='form1' action='sys_group_add.php' method='post'> | |||||
| <input type='hidden' name='dopost' value='save'> | |||||
| <tr> | |||||
| <td height="26" background="../static/web/img/tbg.gif" align="left" style="padding-left:10px"><a href='sys_group.php'>系统用户组管理</a> > 增加用户组</td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td align="center"> | |||||
| <table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
| <tr> | |||||
| <td width="9%" height="26">组名称:</td> | |||||
| <td width="91%" style="text-align:left"> <input name="groupname" type="text" id="groupname"> | |||||
| </td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td width="9%" height="26">级别值:</td> | |||||
| <td width="91%" style="text-align:left"> <input name="rankid" type="text" id="rankid" size="6"> | |||||
| (数字,系统已占用的级别值: | |||||
| <?php | |||||
| $dsql->SetQuery("Select `rank` From `#@__admintype`"); | |||||
| $dsql->Execute(); | |||||
| while($row = $dsql->GetObject()) echo '<span style=\'color:#e74d58\'>'.$row->rank.'</span>'; | |||||
| ?> | |||||
| ,级别值必须小于10,超过或等于10所有权限设置将无效(超级管理员),如果10个组不能完全满足您的要求,允许使用小数)</td> | |||||
| </tr> | |||||
| <?php | |||||
| $start = 0; | |||||
| $k = 0; | |||||
| $gouplists = file(dirname(__FILE__).'/../inc/grouplist.txt'); | |||||
| foreach($gouplists as $line) | |||||
| { | |||||
| $line = trim($line); | |||||
| if($line=="") continue; | |||||
| if(preg_match("#^>>#", $line)) | |||||
| { | |||||
| if($start>0) echo "</td></tr>"; | |||||
| $start++; | |||||
| $lhead = " | |||||
| <tr> | |||||
| <td height='26' colspan='2' bgcolor='#F9FAF3' style='text-align:left;line-height:22px'>{$start}、".str_replace('>>','',$line)."</td></tr> | |||||
| <tr><td height='26' colspan='2' style='text-align:left;line-height:22px'> | |||||
| "; | |||||
| echo $lhead; | |||||
| } | |||||
| else if(preg_match("#^>#", $line)) | |||||
| { | |||||
| $ls = explode('>',$line); | |||||
| $tag = $ls[1]; | |||||
| $tagname = str_replace('[br]', '<br>', $ls[2]); | |||||
| if(!preg_match("#<br \/>#", $tagname) ) $tagname .= "<span>($tag)</span>"; | |||||
| else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname); | |||||
| echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'> $tagname</label>"; | |||||
| $k++; | |||||
| } | |||||
| } | |||||
| $start++; | |||||
| ?> | |||||
| </td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td height='26' colspan='2' bgcolor='#F9FAF3' style="text-align:left"><?php echo $start?>、插件权限</td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td height='26' colspan='2' style='text-align:left'> | |||||
| <table width="98%" cellpadding="2" cellspacing="1" align="center" class="table maintable mt-3 mb-3"> | |||||
| <form name='form1' action='sys_group_add.php' method='post'> | |||||
| <input type='hidden' name='dopost' value='save'> | |||||
| <tr> | |||||
| <td height="26" background="../static/web/img/tbg.gif" align="left" style="padding-left:10px"><a href='sys_group.php'>系统用户组管理</a> > 增加用户组</td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td align="center"> | |||||
| <table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
| <tr> | |||||
| <td width="10%" height="26">组名称:</td> | |||||
| <td width="90%" style="text-align:left"><input name="groupname" type="text" id="groupname"></td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td width="10%" height="26">级别值:</td> | |||||
| <td width="90%" style="text-align:left"><input name="rankid" type="text" id="rankid" size="6">(数字,系统已占用的级别值: | |||||
| <?php $dsql->SetQuery("Select `rank` From `#@__admintype`");$dsql->Execute();while($row = $dsql->GetObject()) echo '<span style=\'color:#e74d58\'>'.$row->rank.'</span>'; ?>,级别值必须小于10,超过或等于10所有权限设置将无效(超级管理员),如果10个组不能完全满足您的要求,允许使用小数)</td> | |||||
| </tr> | |||||
| <?php | <?php | ||||
| $l = 0; | |||||
| $dsql->SetQuery('Select plusname From #@__plus'); | |||||
| $dsql->Execute(); | |||||
| while($row=$dsql->GetObject()){ | |||||
| echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='plus_{$row->plusname}'> {$row->plusname}</label>"; | |||||
| $k++; | |||||
| $l++; | |||||
| if($l%6==0) echo "<br>"; | |||||
| } | |||||
| ?> | |||||
| </td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td colspan="2" align="center" class="py-3"> | |||||
| <button type="submit" class="btn btn-success btn-sm" onClick="DoSubmit('gettag')" class="coolbg np">保存</button> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| </td> | |||||
| </tr> | |||||
| $start = 0; | |||||
| $k = 0; | |||||
| $gouplists = file(dirname(__FILE__).'/../inc/grouplist.txt'); | |||||
| foreach($gouplists as $line) | |||||
| { | |||||
| $line = trim($line); | |||||
| if($line=="") continue; | |||||
| if(preg_match("#^>>#", $line)) | |||||
| { | |||||
| if($start>0) echo "</td></tr>"; | |||||
| $start++; | |||||
| $lhead = " | |||||
| <tr> | |||||
| <td height='26' colspan='2'>{$start}、".str_replace('>>','',$line)."</td></tr> | |||||
| <tr><td height='26' colspan='2'> | |||||
| "; | |||||
| echo $lhead; | |||||
| } | |||||
| else if(preg_match("#^>#", $line)) | |||||
| { | |||||
| $ls = explode('>',$line); | |||||
| $tag = $ls[1]; | |||||
| $tagname = str_replace('[br]', '<br>', $ls[2]); | |||||
| if(!preg_match("#<br \/>#", $tagname) ) $tagname .= "<span>($tag)</span>"; | |||||
| else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname); | |||||
| echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'> $tagname</label>"; | |||||
| $k++; | |||||
| } | |||||
| } | |||||
| $start++; | |||||
| ?> | |||||
| <tr> | |||||
| <td height="26" colspan="2"><?php echo $start?>、插件权限</td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td height="26" colspan="2"> | |||||
| <?php | |||||
| $l = 0; | |||||
| $dsql->SetQuery('Select plusname From #@__plus'); | |||||
| $dsql->Execute(); | |||||
| while($row=$dsql->GetObject()){ | |||||
| echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='plus_{$row->plusname}'> {$row->plusname}</label>"; | |||||
| $k++; | |||||
| $l++; | |||||
| if($l%6==0) echo "<br>"; | |||||
| } | |||||
| ?> | |||||
| </td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td colspan="2" align="center" class="py-3"> | |||||
| <button type="submit" class="btn btn-success btn-sm" onClick="DoSubmit('gettag')" class="coolbg np">保存</button> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| </td> | |||||
| </tr> | |||||
| </form> | </form> | ||||
| </table> | |||||
| </table> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -20,76 +20,73 @@ | |||||
| <td align="center"> | <td align="center"> | ||||
| <table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless"> | <table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless"> | ||||
| <tr> | <tr> | ||||
| <td width="9%" height="26">组名称:</td> | |||||
| <td width="91%" style="text-align:left"><input name="typename" type="text" id="typename" value="<?php echo $groupSet['typename']?>" style="width:260px"> | |||||
| </td> | |||||
| <td width="10%" height="26">组名称:</td> | |||||
| <td width="90%"><input name="typename" type="text" id="typename" value="<?php echo $groupSet['typename']?>" style="width:260px"></td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td width="9%" height="26">级别值:</td> | |||||
| <td width="91%" style="text-align:left"> | |||||
| <td width="10%" height="26">级别值:</td> | |||||
| <td width="90%"> | |||||
| <input name="rank" type="hidden" id="rank" value="<?php echo $groupSet['rank']?>"> | <input name="rank" type="hidden" id="rank" value="<?php echo $groupSet['rank']?>"> | ||||
| <?php echo $groupSet['rank']?> | <?php echo $groupSet['rank']?> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <?php | <?php | ||||
| $start = 0; | |||||
| $k = 0; | |||||
| $gouplists = file(DEDEADMIN.'/inc/grouplist.txt'); | |||||
| foreach($gouplists as $line) | |||||
| { | |||||
| $line = trim($line); | |||||
| if($line=="") continue; | |||||
| if(preg_match("#^>>#", $line)) | |||||
| { | |||||
| if($start>0) echo "</td></tr>"; | |||||
| $start++; | |||||
| $lhead = " | |||||
| <tr> | |||||
| <td height='26' colspan='2' bgcolor='#F9FAF3' style='text-align:left'>{$start}、".str_replace('>>','',$line)."</td></tr> | |||||
| <tr><td height='26' colspan='2' style='text-align:left'> | |||||
| "; | |||||
| echo $lhead; | |||||
| } | |||||
| else if(preg_match("#^>#", $line)) | |||||
| { | |||||
| $ls = explode('>',$line); | |||||
| $tag = $ls[1]; | |||||
| $tagname = str_replace('[br]','<br>',$ls[2]); | |||||
| if(!preg_match("#<br>#", $tagname) ) $tagname .= "<span>($tag)</span>"; | |||||
| else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname); | |||||
| echo "<label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'".CRank($tag)."> $tagname</label>"; | |||||
| $k++; | |||||
| } | |||||
| } | |||||
| $start++; | |||||
| ?> | |||||
| </td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td height='26' colspan='2' bgcolor='#F9FAF3' style="text-align:left"><?php echo $start?>、插件权限</td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td height='26' colspan='2' style="text-align:left"> | |||||
| <?php | |||||
| $l = 0; | |||||
| $dsql->SetQuery('SELECT plusname FROM #@__plus'); | |||||
| $dsql->Execute(); | |||||
| while($row=$dsql->GetObject()){ | |||||
| echo " <label></label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='plus_{$row->plusname}'".CRank("plus_{$row->plusname}")."> {$row->plusname}</label>"; | |||||
| $k++; | |||||
| $l++; | |||||
| if($l % 6 == 0) echo "<br>"; | |||||
| } | |||||
| ?> | |||||
| $start = 0; | |||||
| $k = 0; | |||||
| $gouplists = file(DEDEADMIN.'/inc/grouplist.txt'); | |||||
| foreach($gouplists as $line) | |||||
| { | |||||
| $line = trim($line); | |||||
| if($line=="") continue; | |||||
| if(preg_match("#^>>#", $line)) | |||||
| { | |||||
| if($start>0) echo "</td></tr>"; | |||||
| $start++; | |||||
| $lhead = " | |||||
| <tr> | |||||
| <td height='26' colspan='2'>{$start}、".str_replace('>>','',$line)."</td></tr> | |||||
| <tr><td height='26' colspan='2'> | |||||
| "; | |||||
| echo $lhead; | |||||
| } | |||||
| else if(preg_match("#^>#", $line)) | |||||
| { | |||||
| $ls = explode('>',$line); | |||||
| $tag = $ls[1]; | |||||
| $tagname = str_replace('[br]','<br>',$ls[2]); | |||||
| if(!preg_match("#<br>#", $tagname) ) $tagname .= "<span>($tag)</span>"; | |||||
| else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname); | |||||
| echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'".CRank($tag)."> $tagname</label> "; | |||||
| $k++; | |||||
| } | |||||
| } | |||||
| $start++; | |||||
| ?> | |||||
| <tr> | |||||
| <td height="26" colspan="2"><?php echo $start?>、插件权限</td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td height="26" colspan="2"> | |||||
| <?php | |||||
| $l = 0; | |||||
| $dsql->SetQuery('SELECT plusname FROM #@__plus'); | |||||
| $dsql->Execute(); | |||||
| while($row=$dsql->GetObject()){ | |||||
| echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='plus_{$row->plusname}'".CRank("plus_{$row->plusname}")."> {$row->plusname}</label> "; | |||||
| $k++; | |||||
| $l++; | |||||
| if($l % 6 == 0) echo "<br>"; | |||||
| } | |||||
| ?> | |||||
| </td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td colspan="2" align="center" class="py-3"><button type="submit" class="btn btn-success btn-sm" class="coolbg np">保存</button></td> | |||||
| </tr> | |||||
| </table> | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | |||||
| <td colspan="2" align="center" class="py-3"><button type="submit" class="btn btn-success btn-sm" class="coolbg np">保存</button></td> | |||||
| </tr> | |||||
| </table> | |||||
| </td> | |||||
| </tr> | |||||
| </form> | |||||
| </form> | |||||
| </table> | </table> | ||||
| </center> | </center> | ||||
| </body> | </body> | ||||
| @@ -17,52 +17,50 @@ | |||||
| {dede:include filename='header.htm'/} | {dede:include filename='header.htm'/} | ||||
| {dede:include filename='navbar.htm'/} | {dede:include filename='navbar.htm'/} | ||||
| <main class="container mt-3"> | <main class="container mt-3"> | ||||
| <div class="index-main"> | |||||
| <div class="col-12"> | |||||
| <div class="row"> | |||||
| <div class="col-12 col-lg-8 litpics mb-3"> | |||||
| <div class="row"> | |||||
| <div id="carouselIndex" class="carousel slide" data-ride="carousel"> | |||||
| <ol class="carousel-indicators"> | |||||
| {dede:arclist channelid='1' flag='f' row='6'} | |||||
| <li data-target="#carouselIndex" data-slide-to="[field:global.autoindex function='trim(IndexSub(@me,1))'/]" class="[field:global.autoindex function='IndexActive(@me)'/]"></li> | |||||
| {/dede:arclist} | |||||
| </ol> | |||||
| <div class="carousel-inner"> | |||||
| {dede:arclist channelid='1' flag='f' row='6'} | |||||
| <div class="carousel-item[field:global.autoindex function='IndexActive(@me)'/]"> | |||||
| <a href="[field:arcurl/]" title="[field:fulltitle/]"><img src="[field:litpic/]" class="mr-3" alt="[field:fulltitle/]"></a> | |||||
| </div> | |||||
| {/dede:arclist} | |||||
| <div class="col-12"> | |||||
| <div class="row"> | |||||
| <div class="col-12 col-lg-8 litpics mb-3"> | |||||
| <div class="row"> | |||||
| <div id="carouselIndex" class="col-12 carousel slide" data-ride="carousel"> | |||||
| <ol class="carousel-indicators"> | |||||
| {dede:arclist channelid='1' flag='f' row='6'} | |||||
| <li data-target="#carouselIndex" data-slide-to="[field:global.autoindex function='trim(IndexSub(@me,1))'/]" class="[field:global.autoindex function='IndexActive(@me)'/]"></li> | |||||
| {/dede:arclist} | |||||
| </ol> | |||||
| <div class="carousel-inner"> | |||||
| {dede:arclist channelid='1' flag='f' row='6'} | |||||
| <div class="carousel-item[field:global.autoindex function='IndexActive(@me)'/]"> | |||||
| <a href="[field:arcurl/]" title="[field:fulltitle/]"><img src="[field:litpic/]" class="mr-3" alt="[field:fulltitle/]"></a> | |||||
| </div> | </div> | ||||
| <a class="carousel-control-prev" href="#carouselIndex" role="button" data-slide="prev"> | |||||
| <span class="carousel-control-prev-icon"></span> | |||||
| <span class="sr-only">上一个</span> | |||||
| </a> | |||||
| <a class="carousel-control-next" href="#carouselIndex" role="button" data-slide="next"> | |||||
| <span class="carousel-control-next-icon"></span> | |||||
| <span class="sr-only">下一个</span> | |||||
| </a> | |||||
| {/dede:arclist} | |||||
| </div> | </div> | ||||
| <a class="carousel-control-prev" href="#carouselIndex" role="button" data-slide="prev"> | |||||
| <span class="carousel-control-prev-icon"></span> | |||||
| <span class="sr-only">上一个</span> | |||||
| </a> | |||||
| <a class="carousel-control-next" href="#carouselIndex" role="button" data-slide="next"> | |||||
| <span class="carousel-control-next-icon"></span> | |||||
| <span class="sr-only">下一个</span> | |||||
| </a> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div class="col-12 col-lg-4 toutiao mb-3 mb-md-3"> | |||||
| <div class="row"> | |||||
| <div class="card ddcard-normal"> | |||||
| <div class="card-header"> | |||||
| <div class="row"> | |||||
| <div class="col-8 caption"><span>推荐头条</span></div> | |||||
| </div> | |||||
| </div> | |||||
| <div class="col-12 col-lg-4 toutiao mb-3 mb-md-3"> | |||||
| <div class="row"> | |||||
| <div class="col-12 card ddcard-normal"> | |||||
| <div class="card-header"> | |||||
| <div class="row"> | |||||
| <div class="col-8 caption"><span>推荐头条</span></div> | |||||
| </div> | </div> | ||||
| <ul class="list-group list-group-flush"> | |||||
| {dede:arclist flag='h' titlelen='100' row='7' orderby='pubdate'} | |||||
| <li> | |||||
| <i class="fa fa-bookmark-o"></i> | |||||
| <a title="[field:fulltitle/]" href="[field:arcurl/]">[field:title/]</a> | |||||
| </li> | |||||
| {/dede:arclist} | |||||
| </ul> | |||||
| </div> | </div> | ||||
| <ul class="list-group list-group-flush"> | |||||
| {dede:arclist flag='h' titlelen='100' row='7' orderby='pubdate'} | |||||
| <li> | |||||
| <i class="fa fa-bookmark-o"></i> | |||||
| <a title="[field:fulltitle/]" href="[field:arcurl/]">[field:title/]</a> | |||||
| </li> | |||||
| {/dede:arclist} | |||||
| </ul> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||