소스 검색

菜单优化

tags/6.3.2
叙述、别离 10 달 전
부모
커밋
d6199ebdfc
3개의 변경된 파일12개의 추가작업 그리고 11개의 파일을 삭제
  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 파일 보기

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


+ 6
- 3
src/admin/templets/index.htm 파일 보기

@@ -45,9 +45,12 @@
</form>
</li>
</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>
</nav>
</header>


+ 5
- 7
src/system/typelink/typeunit.class.admin.php 파일 보기

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


불러오는 중...
취소
저장