mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 20:29:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1816 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
996fc97b7e
commit
c62c515195
8 changed files with 72 additions and 60 deletions
|
|
@ -56,7 +56,7 @@
|
|||
<script type="text/javascript" src="../js/xml_handler.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="../css/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="./css/popup.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../modules/admin/tpl/css/admin.css" type="text/css" />
|
||||
<link rel="stylesheet" href="./css/calendar.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
|
|
@ -82,39 +82,41 @@
|
|||
</head>
|
||||
<body>
|
||||
|
||||
<div id="popup_content" class="calendar_box">
|
||||
<div class="calendar_title">
|
||||
<form action="./calendar.php" method="get">
|
||||
<input type="hidden" name="fo_id" value="<?=$fo_id?>"/>
|
||||
<input type="hidden" name="callback_func" value="<?=$callback_func?>"/>
|
||||
<div id="popHeadder">
|
||||
<h1>Calendar</h1>
|
||||
</div>
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
|
||||
<tr>
|
||||
<td width="40">
|
||||
<a href="#" onclick="location.href='./calendar.php?fo_id=<?=$fo_id?>&year=<?=$year?>&month=<?=$month?>&method=prev_year&callback_func=<?=$callback_func?>';return false;"><img src="./images/icon_pprev.gif" border="0" alt="prev year" /></a>
|
||||
<a href="#" onclick="location.href='./calendar.php?fo_id=<?=$fo_id?>&year=<?=$year?>&month=<?=$month?>&method=prev_month&callback_func=<?=$callback_func?>';return false;"><img src="./images/icon_prev.gif" border="0" alt="prev month" /></a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input type="text" name="year" value="<?=$year?>" class="calendar_input_year" maxlength="4" />-<input type="text" name="month" value="<?=$month?>" maxlength="2" class="calendar_input_month" /></td>
|
||||
<td><input type="image" src="./images/calendar.gif" class="calendar_btn" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="40">
|
||||
<a href="#" onclick="location.href='./calendar.php?fo_id=<?=$fo_id?>&year=<?=$year?>&month=<?=$month?>&method=next_month&callback_func=<?=$callback_func?>';return false;"><img src="./images/icon_nnext.gif" border="0" alt="next month" /></a>
|
||||
<a href="#" onclick="location.href='./calendar.php?fo_id=<?=$fo_id?>&year=<?=$year?>&month=<?=$month?>&method=next_year&callback_func=<?=$callback_func?>';return false;"><img src="./images/icon_next.gif" border="0" alt="next year" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<form action="./calendar.php" method="get">
|
||||
<input type="hidden" name="fo_id" value="<?=$fo_id?>"/>
|
||||
<input type="hidden" name="callback_func" value="<?=$callback_func?>"/>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div id="popBody">
|
||||
|
||||
<div class="calendar">
|
||||
<div class="yymm">
|
||||
<div class="yy">
|
||||
<a href="./calendar.php?fo_id=<?=$fo_id?>&year=<?=$year?>&month=<?=$month?>&method=prev_year&callback_func=<?=$callback_func?>" class="left"><img src="../img/buttonLeft2.gif" alt="prev" width="11" height="11" /></a><?=$year?><a href="./calendar.php?fo_id=<?=$fo_id?>&year=<?=$year?>&month=<?=$month?>&method=next_year&callback_func=<?=$callback_func?>" class="right"><img src="../img/buttonRight2.gif" alt="next" width="11" height="11" /></a>
|
||||
</div>
|
||||
<div class="mm">
|
||||
<p><?=date("M", mktime(0,0,0,$month,1,$year))?></p>
|
||||
<a href="./calendar.php?fo_id=<?=$fo_id?>&year=<?=$year?>&month=<?=$month?>&method=prev_month&callback_func=<?=$callback_func?>" class="left"><img src="../img/buttonLeft2.gif" alt="prev" width="11" height="11" /></a><span><?=$month?></span><a href="./calendar.php?fo_id=<?=$fo_id?>&year=<?=$year?>&month=<?=$month?>&method=next_month&callback_func=<?=$callback_func?>" class="right"><img src="../img/buttonRight2.gif" alt="next" width="11" height="11" /></a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="go">
|
||||
<input type="text" class="inputTypeY" value="<?=$year?>" />
|
||||
<input type="text" class="inputTypeM" value="<?=$month?>" />
|
||||
<input name="" type="image" src="../img/buttonGo.gif" alt="Go" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table cellspacing="0" class="dd">
|
||||
|
||||
<div class="calendar_list">
|
||||
<?php
|
||||
for($i=0;$i<5;$i++) {
|
||||
for($i=0;$i<6;$i++) {
|
||||
?>
|
||||
<tr class="<?if($i==0){?>first<?}elseif($i==5){?>last<?}?>">
|
||||
<?php
|
||||
for($j=0;$j<7;$j++) {
|
||||
$m = $month;
|
||||
$y = $year;
|
||||
|
|
@ -143,25 +145,36 @@
|
|||
}
|
||||
}
|
||||
|
||||
if($j==0) $class_name = "sunday";
|
||||
elseif($j==6) $class_name = "saturday";
|
||||
if($j==0) $class_name = "sun";
|
||||
else $class_name= "";
|
||||
|
||||
$date = date("Y. m. d", mktime(0,0,0,$m, $day, $y));
|
||||
$date_str = date("Ymd", mktime(0,0,0,$m, $day, $y));
|
||||
|
||||
|
||||
if(date("Ymd")==$date_str) $sel_class = "today";
|
||||
else $sel_class = "";
|
||||
?>
|
||||
<div class="calendar_cell <?=$sel_class?> <?=$class_name?>" onclick="selectDate('<?=$date?>','<?=$date_str?>','<?=$callback_func?>');return false;"><div><?=$day?></div></div>
|
||||
<td class="<?=$class_name?>">
|
||||
<?if(date("Ymd")==$date_str){?><strong><?}?>
|
||||
<?if($day){?><a href="#" onclick="selectDate('<?=$date?>','<?=$date_str?>','<?=$callback_func?>');return false;"><?=$day?></a><?}else{?> <?}?>
|
||||
<?if(date("Ymd")==$date_str){?></strong><?}?>
|
||||
</td>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<div id="popFooter">
|
||||
<span class="close"><a href="#" onclick="window.close();" class="buttonTypeA"><img src="../img/blank.gif" alt="" class="leftCap" />close<img src="../img/blank.gif" alt="" class="rightCap" /></a></span>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
xAddEventListener(window,'load', setFixedPopupSize);
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
@charset "utf-8";
|
||||
|
||||
body {
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
border-width:0px;
|
||||
border-style:none;
|
||||
}
|
||||
|
|
@ -66,16 +66,16 @@ h4 .view { color:#158692; padding-right:.6em; font:bold .9em Tahoma; background:
|
|||
.buttonTypeA { display:block; cursor:pointer; background:url(../images/buttonTypeACenter.gif) repeat-x left center; line-height:100%; overflow:visible; color:#3f4040; margin:0 1px; white-space:nowrap;}
|
||||
.buttonTypeA:hover { text-decoration:none;}
|
||||
.buttonTypeA img { vertical-align:middle;}
|
||||
.buttonTypeA input { border:none; cursor:pointer; background:url(../images/white/buttonTypeACenter.gif) repeat-x left center; line-height:100%; overflow:visible; color:#3f4040; margin:0 1px; white-space:nowrap;border:0px; _position:relative; _top:3px;}
|
||||
.buttonTypeA .leftCap { width:2px; height:24px; background:url(../images/buttonTypeALeft.gif) no-repeat; margin:0 .3em 0 0; position:relative; left:-1px;}
|
||||
.buttonTypeA input { border:none; cursor:pointer; background:url(../images/white/buttonTypeACenter.gif) repeat-x left center; line-height:100%; overflow:visible; color:#3f4040; margin:0 1px; white-space:nowrap;border:0px; }
|
||||
.buttonTypeA .leftCap { width:2px; height:24px; background:url(../images/buttonTypeALeft.gif) no-repeat; margin:0 .3em 0 0; left:-1px;}
|
||||
.buttonTypeA .rightCap { width:2px; height:24px; background:url(../images/buttonTypeARight.gif) no-repeat; margin:0 -1px 0 .4em;}
|
||||
.buttonTypeA .icon { margin:0 .4em 0 .2em;}
|
||||
|
||||
.buttonTypeB { display:block; cursor:pointer; background:url(../images/buttonTypeBCenter.gif) repeat-x left center; line-height:100%; overflow:visible; color:#3f4040; margin:0 1px; font-size:.9em; white-space:nowrap;}
|
||||
.buttonTypeB:hover { text-decoration:none;}
|
||||
.buttonTypeB img { vertical-align:middle;}
|
||||
.buttonTypeB input { border:none; cursor:pointer; background:url(../images/white/buttonTypeBCenter.gif) repeat-x left center; line-height:100%; overflow:visible; color:#3f4040; margin:0 1px; white-space:nowrap;border:0px; _position:relative; _top:4px;}
|
||||
.buttonTypeB .leftCap { width:2px; height:21px; background:url(../images/buttonTypeBLeft.gif) no-repeat; margin:0 .3em 0 0; position:relative; left:-1px;}
|
||||
.buttonTypeB input { border:none; cursor:pointer; background:url(../images/white/buttonTypeBCenter.gif) repeat-x left center; line-height:100%; overflow:visible; color:#3f4040; margin:0 1px; white-space:nowrap;border:0px; }
|
||||
.buttonTypeB .leftCap { width:2px; height:21px; background:url(../images/buttonTypeBLeft.gif) no-repeat; margin:0 .3em 0 0; left:-1px;}
|
||||
.buttonTypeB .rightCap { width:2px; height:21px; background:url(../images/buttonTypeBRight.gif) no-repeat; margin:0 -1px 0 .4em;}
|
||||
.buttonTypeB .icon { margin:0 .2em;}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,14 +14,14 @@ function doDeleteShortCut(selected_module) {
|
|||
// footer를 화면 크기에 맞춰 설정
|
||||
xAddEventListener(window, 'load', fixAdminLayoutFooter);
|
||||
xAddEventListener(window, 'resize', fixAdminLayoutFooter);
|
||||
function fixAdminLayoutFooter() {
|
||||
var headerHeight = xHeight(xGetElementById('header'));
|
||||
var bodyHeight = xHeight(xGetElementById('cBody'));
|
||||
var footerHeight = xHeight(xGetElementById('footer'));
|
||||
function fixAdminLayoutFooter(height) {
|
||||
var headerHeight = xHeight('header');
|
||||
var bodyHeight = xHeight('cBody');
|
||||
var footerHeight = xHeight('footer');
|
||||
var clientHeight = xClientHeight();
|
||||
var newHeight = clientHeight - footerHeight - headerHeight + 71 + 38;
|
||||
if(typeof(editor_height)!='undefined') newHeight += editor_height;
|
||||
|
||||
if(newHeight<bodyHeight) newHeight = bodyHeight;
|
||||
xHeight(xGetElementById('cBody'), newHeight);
|
||||
if(typeof(height)=='number') newHeight += height;
|
||||
xHeight('cBody', newHeight);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
<!--%import("css/editor.css")-->
|
||||
<!--%import("./lang")-->
|
||||
<!-- 에디터 활성화 -->
|
||||
<script type="text/javascript">
|
||||
var editor_height = '{$editor_path}';
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
var editor_height = '{$editor_height}';
|
||||
var editor_path = "{$editor_path}";
|
||||
editorInit("{$upload_target_srl}", {$enable_resizable}, {$editor_height});
|
||||
</script>
|
||||
//]]></script>
|
||||
|
||||
<!-- 자동저장용 폼 -->
|
||||
<!--@if($enable_autosave)-->
|
||||
|
|
|
|||
|
|
@ -106,6 +106,8 @@ function editorStart(upload_target_srl, resizable, height) {
|
|||
|
||||
// 팝업 윈도우일 경우 드래그바 숨김
|
||||
if(resizable == false) xGetElementById("editor_drag_bar_"+upload_target_srl).style.display = "none";
|
||||
|
||||
if(typeof(fixAdminLayoutFooter)=='function') fixAdminLayoutFooter(height);
|
||||
}
|
||||
|
||||
// 여러개의 편집기를 예상하여 전역 배열 변수에 form, iframe의 정보를 넣음
|
||||
|
|
@ -556,7 +558,7 @@ function editorChangeHeader(obj,srl) {
|
|||
/**
|
||||
* iframe 세로 크기 조절 드래그 관련
|
||||
**/
|
||||
var editorDragObj = {isDrag:false, y:0, obj:null, id:'', det:0}
|
||||
var editorDragObj = {isDrag:false, y:0, obj:null, id:'', det:0, source_height:0}
|
||||
xAddEventListener(document, 'mousedown', editorDragStart);
|
||||
xAddEventListener(document, 'mouseup', editorDragStop);
|
||||
function editorDragStart(evt) {
|
||||
|
|
@ -571,6 +573,8 @@ function editorDragStart(evt) {
|
|||
editorDragObj.y = e.pageY;
|
||||
editorDragObj.obj = e.target;
|
||||
editorDragObj.id = id.substr('editor_drag_bar_'.length);
|
||||
var iframe_obj = editorGetIFrame(editorDragObj.id);
|
||||
editorDragObj.source_height = xHeight(iframe_obj);
|
||||
|
||||
xAddEventListener(document, 'mousemove', editorDragMove, false);
|
||||
xAddEventListener(editorDragObj.obj, 'mousemove', editorDragMove, false);
|
||||
|
|
@ -596,6 +600,9 @@ function editorDragStop(evt) {
|
|||
xRemoveEventListener(document, 'mousemove', editorDragMove, false);
|
||||
xRemoveEventListener(editorDragObj.obj, 'mousemove', editorDragMove, false);
|
||||
|
||||
var iframe_obj = editorGetIFrame(editorDragObj.id);
|
||||
if(typeof(fixAdminLayoutFooter)=='function') fixAdminLayoutFooter(xHeight(iframe_obj)-editorDragObj.source_height);
|
||||
|
||||
editorDragObj.isDrag = false;
|
||||
editorDragObj.y = 0;
|
||||
editorDragObj.obj = null;
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@
|
|||
#pageManage .buttonTypeA { display:block; cursor:pointer; background:url(../images/buttonTypeACenter.gif) repeat-x left center; line-height:100%; overflow:visible; color:#3f4040; margin:0 1px; white-space:nowrap;border:0px;}
|
||||
#pageManage .buttonTypeA:hover { text-decoration:none;}
|
||||
#pageManage .buttonTypeA img { vertical-align:middle;}
|
||||
#pageManage .buttonTypeA .leftCap { width:2px; height:24px; background:url(../images/buttonTypeALeft.gif) no-repeat; margin:0 .3em 0 0; position:relative; left:-1px;}
|
||||
#pageManage .buttonTypeA .leftCap { width:2px; height:24px; background:url(../images/buttonTypeALeft.gif) no-repeat; margin:0 .3em 0 0; left:-1px;}
|
||||
#pageManage .buttonTypeA .rightCap { width:2px; height:24px; background:url(../images/buttonTypeARight.gif) no-repeat; margin:0 -1px 0 .4em;}
|
||||
#pageManage .buttonTypeA .icon { margin:0 .2em;}
|
||||
|
|
|
|||
|
|
@ -72,12 +72,12 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row" colspan="2">{$editor}</td>
|
||||
<td colspan="2">{$editor}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="buttonRight">
|
||||
<span class="buttonTypeA"><img src="../../admin/tpl/images/blank.gif" alt="" class="leftCap" /><img src="../../admin/tpl/images/iconCreate.gif" alt="" width="8" height="4" class="icon" /><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /><img src="../../admin/tpl/images/blank.gif" alt="" class="rightCap" /></span>
|
||||
<span class="buttonTypeA"><img src="../../admin/tpl/images/blank.gif" alt="" class="leftCap" /><img src="../../admin/tpl/images/iconCreate.gif" alt="" width="8" height="4" class="icon" /><input type="submit" value="{$lang->cmd_save}" accesskey="s" /><img src="../../admin/tpl/images/blank.gif" alt="" class="rightCap" /></span>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue