Browse Source

菜单优化

tags/6.3.2
叙述、别离 10 months ago
parent
commit
d6199ebdfc
3 changed files with 12 additions and 11 deletions
  1. +1
    -1
      src/admin/catalog_do.php
  2. +6
    -3
      src/admin/templets/index.htm
  3. +5
    -7
      src/system/typelink/typeunit.class.admin.php

+ 1
- 1
src/admin/catalog_do.php View File

@@ -156,7 +156,7 @@ else if ($dopost == "GetSunListsMenu") {
PutCookie('lastCid', $cid, 3600 * 24, "/"); PutCookie('lastCid', $cid, 3600 * 24, "/");
$tu = new TypeUnit(); $tu = new TypeUnit();
$tu->dsql = $dsql; $tu->dsql = $dsql;
$tu->LogicListAllSunType($cid, " ");
$tu->LogicListAllSunType($cid, "");
$tu->Close(); $tu->Close();
} }
//合并栏目 //合并栏目


+ 6
- 3
src/admin/templets/index.htm View File

@@ -45,9 +45,12 @@
</form> </form>
</li> </li>
</ul> </ul>
<div class="user pr-3 d-none d-lg-block">
<a href="sys_admin_user_edit.php?id=<?php echo $cuserLogin->getUserID();?>&dopost=edit" target="main"><img src="<?php echo $cuserLogin->getUserFace();?>"><?php echo $cuserLogin->getUserName();?></a>
<a href="exit.php" class="ml-3">退了</a>
<div class="d-none d-lg-block">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="javascript:document.getElementById('main').contentWindow.location.reload(true);"><i class="fa fa-refresh" title="刷新页面"></i></a></li>
<li class="nav-item"><a class="nav-link user" href="sys_admin_user_edit.php?id=<?php echo $cuserLogin->getUserID();?>&dopost=edit" target="main"><img src="<?php echo $cuserLogin->getUserFace();?>"><?php echo $cuserLogin->getUserName();?></a></li>
<li class="nav-item"><a class="nav-link" href="exit.php"><i class="fa fa-power-off" title="退了"></i></a></li>
</ul>
</div> </div>
</nav> </nav>
</header> </header>


+ 5
- 7
src/system/typelink/typeunit.class.admin.php View File

@@ -176,9 +176,7 @@ tpl;
echo "<div id='suns".$id."'>"; echo "<div id='suns".$id."'>";
$lastid = GetCookie('lastCid'); $lastid = GetCookie('lastCid');
if ($channel == $id || $lastid == $id || isset($GLOBALS['exallct']) || $cfg_admin_channel == 'array') { if ($channel == $id || $lastid == $id || isset($GLOBALS['exallct']) || $cfg_admin_channel == 'array') {
//echo "<table>";
$this->LogicListAllSunType($id, " ");
//echo "</table>";
$this->LogicListAllSunType($id, "─");
} }
echo "</div>"; echo "</div>";
$i++; $i++;
@@ -223,7 +221,7 @@ tpl;
echo <<<tpl echo <<<tpl
<div class='d-flex justify-content-between mb-3'> <div class='d-flex justify-content-between mb-3'>
<div class='left'> <div class='left'>
{$step}
<span>└{$step}</span>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span> <span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>
<span class='btn btn-success btn-sm'>列表</span> <span class='btn btn-success btn-sm'>列表</span>
{$nss} {$nss}
@@ -247,7 +245,7 @@ tpl;
echo <<<tpl echo <<<tpl
<div class='d-flex justify-content-between mb-3'> <div class='d-flex justify-content-between mb-3'>
<div class='left'> <div class='left'>
{$step}
<span>└{$step}</span>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span> <span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>
<span class='btn btn-warning btn-sm'>封面</span> <span class='btn btn-warning btn-sm'>封面</span>
{$nss} {$nss}
@@ -270,7 +268,7 @@ tpl;
echo <<<tpl echo <<<tpl
<div class='d-flex justify-content-between mb-3'> <div class='d-flex justify-content-between mb-3'>
<div class='left'> <div class='left'>
{$step}
<span>└{$step}</span>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span> <span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>
<span class='btn btn-primary btn-sm'>外部</span> <span class='btn btn-primary btn-sm'>外部</span>
{$nss} {$nss}
@@ -288,7 +286,7 @@ echo <<<tpl
tpl; tpl;
} }
echo "<div id='suns".$id."' style='".(isset($GLOBALS['exallct'])? "" : "display:none")."'>"; echo "<div id='suns".$id."' style='".(isset($GLOBALS['exallct'])? "" : "display:none")."'>";
$this->LogicListAllSunType($id, $step." ");
$this->LogicListAllSunType($id, $step."──");
echo "</div>"; echo "</div>";
} }
} }


Loading…
Cancel
Save