Merge branch 'master' of github.com:gnuboard/g4s

This commit is contained in:
chicpro
2013-01-31 18:23:32 +09:00
4 changed files with 20 additions and 206 deletions

View File

@ -3,7 +3,7 @@
/* 초기화 */
html {overflow-y:scroll}
body {margin:0;padding:0;background:#f7f7f2;font-size:0.75em;font-family:"dotum"}
html, body, h1, h2, h3, h4, h5, h6, form, fieldset, img {margin:0;padding:0;border:0}
html, h1, h2, h3, h4, h5, h6, form, fieldset, img {margin:0;padding:0;border:0}
h1, h2, h3, h4, h5, h6 {font-size:1em;font-family:"dotum"}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block}
header ul, nav ul, footer ul {margin:0;padding:0;list-style:none}

View File

@ -4,8 +4,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
$begin_time = get_microtime();
if (!isset($g4['title']))
$g4_head_title = $g4['title']; // 상태바에 표시될 제목
if (!isset($g4['title'])) {
$g4['title'] = $config['cf_title'];
$g4_head_title = $g4['title'];
}
else
$g4_head_title .= " : ".$config['cf_title'];
// 현재 접속자
//$lo_location = get_text($g4[title]);
@ -35,7 +40,7 @@ else $g4_css = "default";
<meta charset="utf-8">
<? if (G4_IS_MOBILE) {?><meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"><? } ?>
<!-- <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> -->
<title><?=$g4['title']?></title>
<title><?=$g4_head_title?></title>
<? if (isset($administrator)) { ?>
<link rel="stylesheet" href="<?=G4_CSS_URL?>/adm.css?=<?=date("md")?>">
<? } else { ?>

View File

@ -16,7 +16,6 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
$comment_id = $list[$i]['wr_id'];
$cmt_depth = ""; // 댓글단계
$cmt_depth = strlen($list[$i]['wr_comment_reply']) * 20;
if (strstr($list[$i]['wr_option'], "secret")) echo '비밀글';
$str = $list[$i]['content'];
if (strstr($list[$i]['wr_option'], "secret"))
$str = $str;
@ -38,7 +37,10 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
</header>
<!-- 댓글 출력 -->
<p><?=$str?></p>
<p>
<? if (strstr($list[$i]['wr_option'], "secret")) echo "<img src=\"\" alt=\"비밀글\"><br>";?>
<?=$str?>
</p>
<span id="edit_<?=$comment_id?>"></span><!-- 수정 -->
<span id="reply_<?=$comment_id?>"></span><!-- 답변 -->

209
test.php
View File

@ -1,205 +1,12 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ko">
<head>
<title>Create a Custom Select Box with jQuery - Onextrapixel</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<style type='text/css'>
/*
Author : Onextrapixel
URL: http://www.onextrapixel.com
*/
<head>
<meta charset="utf-8">
<title>테스트</title>
</head>
<body>
* {
border:none;
margin:0;
padding:0;
}
<a href="#" title="타이틀"><img src="http://www.sir.co.kr/img/ad/rw_designmall.png" alt=""></a>
body {
color:#000;
font:12.35px "Lucida Grande", Arial, Georgia, Verdana, sans-serif;
}
a:link, a:visited {
color:#000;
text-decoration:none;
}
h1 {
font-size:20px;
margin-bottom:20px;
}
h2 {
font-size:15px;
margin-bottom:20px;
}
p {
margin:10px 0;
}
#wrap {
margin:0 auto;
width:900px;
}
#header {
margin-bottom:50px;
}
#header a {
color:#0054A6;
}
#header a:hover {
text-decoration:underline;
}
div.selectBox
{
position:relative;
display:inline-block;
cursor:default;
text-align:left;
line-height:30px;
clear:both;
color:#888;
}
span.selected
{
width:167px;
text-indent:20px;
border:1px solid #ccc;
border-right:none;
border-top-left-radius:5px;
border-bottom-left-radius:5px;
background:#f6f6f6;
overflow:hidden;
}
span.selectArrow
{
width:30px;
border:1px solid #60abf8;
border-top-right-radius:5px;
border-bottom-right-radius:5px;
text-align:center;
font-size:20px;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
background:#4096ee;
}
span.selectArrow,span.selected
{
position:relative;
float:left;
height:30px;
z-index:1;
}
div.selectOptions
{
position:absolute;
top:28px;
left:0;
width:198px;
border:1px solid #ccc;
border-bottom-right-radius:5px;
border-bottom-left-radius:5px;
overflow:hidden;
background:#f6f6f6;
padding-top:2px;
display:none;
}
span.selectOption
{
display:block;
width:80%;
line-height:20px;
padding:5px 10%;
}
span.selectOption:hover
{
color:#f6f6f6;
background:#4096ee;
}
</style>
<script type='text/javascript' src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
</head>
<body>
<script type='text/javascript'><!--
$(document).ready(function() {
enableSelectBoxes();
});
function enableSelectBoxes(){
$('div.selectBox').each(function(){
$(this).children('span.selected').html($(this).children('div.selectOptions').children('span.selectOption:first').html());
$(this).attr('value',$(this).children('div.selectOptions').children('span.selectOption:first').attr('value'));
$(this).children('span.selected,span.selectArrow').click(function(){
if($(this).parent().children('div.selectOptions').css('display') == 'none'){
$(this).parent().children('div.selectOptions').css('display','block');
}
else
{
$(this).parent().children('div.selectOptions').css('display','none');
}
});
$(this).find('span.selectOption').click(function(){
$(this).parent().css('display','none');
$(this).closest('div.selectBox').attr('value',$(this).attr('value'));
$(this).parent().siblings('span.selected').html($(this).html());
});
});
}//-->
</script>
<div id="wrap">
<div id="head">
<h1><a href="/"><img src="http://www.onextrapixel.com/examples/files/logo.png" alt="Onextrapixel Homepage" /></a></h1>
<div class="demoads">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-5606861741839360";
/* OXPDemoTop728x90 */
google_ad_slot = "2475031167";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
</div>
<div id="header">
<h1>Create a Custom Select Box with jQuery</h1>
<a href="http://www.onextrapixel.com/2012/06/20/create-a-custom-select-box-with-jquery">Back to tutorial</a>
</div>
<div class='selectBox'>
<span class='selected'></span>
<span class='selectArrow'>&#9660</span>
<div class="selectOptions" >
<span class="selectOption" value="Option 1">Option 1</span>
<span class="selectOption" value="Option 2">Option 2</span>
<span class="selectOption" value="Option 3">Option 3</span>
</div>
</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-8453623-1");
pageTracker._trackPageview();
} catch(err) {}
</script> </body>
</body>
</html>