사용자: 설문조사스킨 질문과 선택항목 사이 여백 조정

This commit is contained in:
whitedot
2013-02-21 11:48:25 +09:00
5 changed files with 37 additions and 4 deletions

View File

@ -18,7 +18,7 @@ if(is_file($filepath)) {
$height = $size[1];
$fileurl = G4_DATA_URL.'/file/'.$bo_table.'/'.$filename;
$img = '<img src="'.$fileurl.'" alt="" width="'.$width.'" height="'.$height.'" class="draggable" style="position:relative;top:0;left:0">';
$img = '<img src="'.$fileurl.'" alt="" width="'.$width.'" height="'.$height.'" class="draggable" style="position:relative;top:0;left:0;cursor:move;">';
} else {
alert_close('파일이 존재하지 않습니다.');
}

View File

@ -305,7 +305,7 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#334356;color:#f
#poll header {position:relative;padding:25px 14px 0}
#poll h2 {position:absolute;top:0px;right:14px;margin:0;padding:0 5px;height:25px;background:#76a5a8;color:#fff;font-weight:bold;line-height:2.2em}
#poll header .btn_admin {margin-top:5px;width:158px;text-align:center}
#poll header p {padding:5px 0 10px}
#poll header p {padding:5px 0 0}
#poll ul {margin:0 0 10px;padding:5px 14px;list-style:none}
#poll li {padding:3px 0}
#poll footer {padding:0 14px 14px}

View File

@ -108,6 +108,23 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
</a>
</li>
<? } ?>
<? // 색상대비 on/off
$cr_path = g4_path();
if($contrast_use == 'on') {
$cr_uri = $cr_path['curr_url'].'?contrast=off';
} else {
$cr_uri = $cr_path['curr_url'].'?contrast=on';
}
if($_SERVER['QUERY_STRING']) {
$query_string = preg_replace("/contrast=(on|off)&?/", "", $_SERVER['QUERY_STRING']);
if($query_string)
$cr_uri .= '&amp;'.$query_string;
}
unset($cr_path);
?>
<li>
<a href="<?=$cr_uri;?>">색상대비</a>
</li>
</ul>
</div>

View File

@ -28,6 +28,14 @@ header("Expires: 0"); // rfc2616 - Section 14.21
header("Pragma: no-cache"); // HTTP/1.0
*/
// 색상대비
if($_GET['contrast'] == 'on') {
set_session('ss_contrast_use', 'on');
} else if($_GET['contrast'] == 'off') {
set_session('ss_contrast_use', 'off');
}
$contrast_use = get_session('ss_contrast_use');
$g4_css = "";
if (G4_IS_MOBILE) $g4_css = "mobile";
else $g4_css = "default";
@ -40,9 +48,15 @@ else $g4_css = "default";
<!-- <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> -->
<title><?=$g4_head_title?></title>
<? if (isset($administrator)) { ?>
<link rel="stylesheet" href="<?=G4_CSS_URL?>/adm.css?=<?=date("md")?>">
<link rel="stylesheet" href="<?=G4_CSS_URL?>/admin.css?=<?=date("md")?>">
<? if($contrast_use == 'on') { ?>
<link rel="stylesheet" href="<?=G4_CSS_URL?>/admin_cr.css?=<?=date("md")?>">
<? } ?>
<? } else { ?>
<link rel="stylesheet" href="<?=G4_CSS_URL?>/<?=$g4_css?>.css?=<?=date("md")?>">
<? if($contrast_use == 'on') { ?>
<link rel="stylesheet" href="<?=G4_CSS_URL?>/<?=$g4_css?>_cr.css?=<?=date("md")?>">
<? } ?>
<?}?>
<!--[if lte IE 8]>
<script src="<?=G4_JS_URL?>/html5.js"></script>
@ -67,8 +81,10 @@ var g4_is_ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
<script src="<?=G4_JS_URL?>/jquery-1.8.3.min.js"></script>
<script src="<?=G4_JS_URL?>/common.js"></script>
<script src="<?=G4_JS_URL?>/wrest.js"></script>
<? if(G4_IS_MOBILE) { ?>
<script>
document.cookie = "device_width=" + screen.width;
</script>
<? } ?>
</head>
<body>

View File

@ -14,7 +14,7 @@ $(function() {
$td_name.each(function() {
$(this).css("z-index", count);
$(this).css("position", "relative");
count--;
count = count - 1;
});
});
</script>