관리자: 리디자인 5, gnb 작업 중
This commit is contained in:
@ -18,23 +18,18 @@ function print_menu2($key, $no)
|
||||
{
|
||||
global $menu, $auth_menu, $is_admin, $auth, $g4;
|
||||
|
||||
$str = "<ul>";
|
||||
$str2 = "";
|
||||
$str = "<noscript>";
|
||||
$str .= "<ul>";
|
||||
for($i=1; $i<count($menu[$key]); $i++)
|
||||
{
|
||||
if ($is_admin != 'super' && (!array_key_exists($menu[$key][$i][0],$auth) || !strstr($auth[$menu[$key][$i][0]], 'r')))
|
||||
continue;
|
||||
|
||||
// if ($no == 2) $str .= " <img src='{$g4['admin_path']}/img/icon.gif' align=absmiddle> ";
|
||||
$str2 .= '<li class="gnb_2depth"><a href="'.$menu[$key][$i][2].'">'.$menu[$key][$i][1].'</a></li>';
|
||||
$str .= '<li class="gnb_2depth"><a href="'.$menu[$key][$i][2].'">'.$menu[$key][$i][1].'</a></li>';
|
||||
|
||||
$auth_menu[$menu[$key][$i][0]] = $menu[$key][$i][1];
|
||||
}
|
||||
$str .= $str2;
|
||||
$str .= "</ul>";
|
||||
$str .= "<noscript class=\"gnb_nojs\">";
|
||||
$str .= "<ul>";
|
||||
$str .= $str2;
|
||||
$str .= "</ul>";
|
||||
$str .= "</noscript>";
|
||||
|
||||
|
||||
29
test.php
29
test.php
@ -1,14 +1,25 @@
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>ie6 테스트</title>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
a {display:block;position:relative;margin:100px;width:50px;height:50px;background:#ddd}
|
||||
a span {position:absolute;top:0;left:0;width:50px;height:50px;background:#000}
|
||||
</style>
|
||||
<title>1</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="#"><span></span>i can see your halo</a>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php
|
||||
$str = "내용물";
|
||||
|
||||
|
||||
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();
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user