관리자: 리디자인 6, 인덱스 정리 및 gnb 작업 중
This commit is contained in:
@ -18,7 +18,6 @@ function print_menu2($key, $no)
|
||||
{
|
||||
global $menu, $auth_menu, $is_admin, $auth, $g4;
|
||||
|
||||
$str = "<noscript>";
|
||||
$str .= "<ul>";
|
||||
for($i=1; $i<count($menu[$key]); $i++)
|
||||
{
|
||||
@ -31,7 +30,6 @@ function print_menu2($key, $no)
|
||||
$auth_menu[$menu[$key][$i][0]] = $menu[$key][$i][1];
|
||||
}
|
||||
$str .= "</ul>";
|
||||
$str .= "</noscript>";
|
||||
|
||||
return $str;
|
||||
}
|
||||
@ -79,7 +77,7 @@ function textarea_size(fld, size)
|
||||
|
||||
<div id="logo"><a href="<?=G4_ADMIN_URL?>"><img src="<?=G4_ADMIN_URL?>/img/logo.jpg" alt="관리자 메인으로"></a></div>
|
||||
|
||||
<div id="home_link">
|
||||
<div id="snb">
|
||||
<ul>
|
||||
<li><a href="<?=G4_ADMIN_URL?>/member_form.php?w=u&mb_id=<?=$member['mb_id']?>">관리자정보수정</a></li>
|
||||
<li><a href="<?=G4_URL?>/">홈페이지</a></li>
|
||||
@ -89,8 +87,8 @@ function textarea_size(fld, size)
|
||||
|
||||
<nav id="gnb">
|
||||
<h2>관리자 주메뉴</h2>
|
||||
<ul>
|
||||
<?
|
||||
$gnb_str = "<ul>";
|
||||
foreach($amenu as $key=>$value) {
|
||||
$href1 = $href2 = '';
|
||||
if ($menu['menu'.$key][0][2]) {
|
||||
@ -99,18 +97,22 @@ function textarea_size(fld, size)
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
$current_class = "";
|
||||
if (isset($sub_menu) && (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2)))
|
||||
$current_class = " gnb_1depth_on";
|
||||
echo "<li class=\"gnb_1depth".$current_class."\">";
|
||||
echo $href1 . $menu['menu'.$key][0][1] . $href2;
|
||||
echo print_menu1('menu'.$key, 1);
|
||||
echo "</li>";
|
||||
if ($current_class || !$admin_index) $current_class = ""; // 클래스 반복부여 방지
|
||||
//$current_class = "";
|
||||
//if (isset($sub_menu) && (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2)))
|
||||
// $current_class = " gnb_1depth_on";
|
||||
$gnb_str .= "<li class=\"gnb_1depth".$current_class."\">";
|
||||
$gnb_str .= $href1 . $menu['menu'.$key][0][1] . $href2;
|
||||
$gnb_str .= print_menu1('menu'.$key, 1);
|
||||
$gnb_str .= "</li>";
|
||||
//if ($current_class || !$admin_index) $current_class = ""; // 클래스 반복부여 방지
|
||||
}
|
||||
|
||||
$gnb_str .= "</ul>"
|
||||
?>
|
||||
</ul>
|
||||
<?=$gnb_str?>
|
||||
|
||||
<noscript class="gnb_nojs">
|
||||
<?=$gnb_str?>
|
||||
</noscript>
|
||||
</nav>
|
||||
|
||||
<div id="current_loc">
|
||||
|
||||
@ -117,6 +117,10 @@ $colspan = 12;
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_ft">
|
||||
<a href="./member_list.php">회원 전체보기</a>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<?
|
||||
@ -210,6 +214,10 @@ $colspan = 5;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_ft">
|
||||
<a href="../bbs/new.php">최근게시물 더보기</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?
|
||||
@ -290,6 +298,9 @@ $colspan = 7;
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_ft">
|
||||
<a href="./point_list.php">포인트내역 전체보기</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?
|
||||
|
||||
29
css/adm.css
29
css/adm.css
@ -31,15 +31,16 @@ h1 {margin-bottom:20px;color:#333;font-size:1.5em;font-family:"dotum";letter-spa
|
||||
#hd h1,
|
||||
#hd h2 {margin:0;padding:0;width:0;height:0;border:0;overflow:hidden}
|
||||
#hd_wrap {position:relative;margin:0 auto;width:1000px}
|
||||
#logo {padding-top:16px;height:54px;text-align:center}
|
||||
#logo {padding-top:15px;height:55px}
|
||||
|
||||
#home_link {z-index:2;position:absolute;top:70px;right:0;height:35px;zoom:1}
|
||||
#home_link:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#home_link ul {float:right;margin-right:20px;zoom:1}
|
||||
#home_link ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#home_link li {float:left;margin-left:10px}
|
||||
#home_link a {color:#e0e0e0;text-decoration:none;line-height:2.95em}
|
||||
#snb {z-index:2;position:absolute;top:17px;right:0;height:35px;zoom:1}
|
||||
#snb:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#snb ul {float:right;margin-right:20px;zoom:1}
|
||||
#snb ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#snb li {float:left;margin-left:10px}
|
||||
#snb a {color:#e0e0e0;text-decoration:none;line-height:2.95em}
|
||||
|
||||
/* js 있을 때 */
|
||||
#gnb {}
|
||||
#gnb ul {zoom:1}
|
||||
#gnb ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
@ -83,20 +84,24 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
|
||||
.btn_confirm {margin-bottom:20px;text-align:center}
|
||||
.btn_confirm button {padding:0 15px;height:30px;border:0;background:#74868b;color:#fff;line-height:2.2em;vertical-align:middle}
|
||||
.btn_confirm button:focus {padding:0 15px;height:30px;background:#555;color:#fff;line-height:2.2em;vertical-align:middle}
|
||||
.btn_confirm a {display:inline-block;padding:0 15px;height:30px;background:#74868b;color:#fff;text-decoration:none;line-height:2.1em;vertical-align:middle}
|
||||
.btn_confirm a {display:inline-block;padding:0 15px;height:30px;background:#74868b;color:#fff;text-decoration:none;line-height:2.5em;vertical-align:middle}
|
||||
.btn_confirm a:focus {background:#555}
|
||||
.btn_submit {padding:0 15px;height:30px;border:0;background:#ff3061;color:#fff;line-height:2.2em;vertical-align:middle}
|
||||
.btn_submit:focus {padding:0 15px;height:30px;border:0;background:#555;color:#fff;line-height:2.2em;vertical-align:middle}
|
||||
.btn_submit {padding:0 15px;height:30px;border:0;background:#ff3061;color:#fff;line-height:2.5em;vertical-align:middle}
|
||||
.btn_submit:focus {padding:0 15px;height:30px;border:0;background:#555;color:#fff;line-height:2.5em;vertical-align:middle}
|
||||
|
||||
.btn_list input,
|
||||
.btn_list button {padding:0 15px;height:30px;background:#74868b;color:#fff;line-height:2.2em;vertical-align:middle}
|
||||
.btn_list input:focus,
|
||||
.btn_list button:focus {padding:0 15px;height:30px;background:#555;color:#fff;line-height:2.2em;vertical-align:middle}
|
||||
.btn_list a {display:inline-block;padding:0 15px;height:28px;background:#74868b;color:#fff;text-decoration:none;line-height:2.1em;vertical-align:middle}
|
||||
.btn_list a {display:inline-block;padding:0 15px;height:28px;background:#74868b;color:#fff;text-decoration:none;line-height:2.4em;vertical-align:middle}
|
||||
.btn_list a:focus {background:#555}
|
||||
|
||||
.btn_ft {text-align:right}
|
||||
.btn_ft a {display:inline-block;padding:0 15px;height:28px;background:#74868b;color:#fff;text-decoration:none;line-height:2.4em;vertical-align:middle}
|
||||
.btn_ft a:focus {background:#555}
|
||||
|
||||
#btn_add {margin-bottom:10px;text-align:center}
|
||||
#btn_add a {display:inline-block;padding:0 15px;height:30px;border:0;background:#ff3061;color:#fff;text-decoration:none;line-height:2.2em;vertical-align:middle}
|
||||
#btn_add a {display:inline-block;padding:0 15px;height:30px;border:0;background:#ff3061;color:#fff;text-decoration:none;line-height:2.5em;vertical-align:middle}
|
||||
|
||||
/* 폼 */
|
||||
label {vertical-align:middle}
|
||||
|
||||
42
test.php
42
test.php
@ -2,24 +2,30 @@
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>1</title>
|
||||
<script src="./js/jquery-1.8.3.min.js"></script>
|
||||
<style>
|
||||
.nos {position:relative;padding:100px}
|
||||
.test {position:relative}
|
||||
.test li {float:left}
|
||||
</style>
|
||||
<script>
|
||||
$("head").append("<link>");
|
||||
css = $("head").children(":last");
|
||||
css.attr({
|
||||
rel: "stylesheet",
|
||||
type: "text/css",
|
||||
href: "./css/test.css"
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
$str = "내용물";
|
||||
<div class="nos">
|
||||
<ul class="test">
|
||||
<li>테스트</li>
|
||||
<li>테스트2</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
if (isset($_GET['width'])) {
|
||||
echo $str;
|
||||
echo "<noscript>".$str."</noscript>";
|
||||
} else {
|
||||
echo "<script>\n";
|
||||
echo "location.href=\"${_SERVER['SCRIPT_NAME']}?${_SERVER['QUERY_STRING']}"
|
||||
. "width=\" + screen.width;\n";
|
||||
echo "</script>\n";
|
||||
echo "<noscript>";
|
||||
echo $str;
|
||||
echo "</noscript>";
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user