mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 07:09:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1772 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fbbad5e79e
commit
898eb99469
26 changed files with 214 additions and 135 deletions
|
|
@ -413,7 +413,7 @@
|
|||
return $output;
|
||||
}
|
||||
|
||||
$oDocumentController = &getController('document');
|
||||
$oDocumentController = &getAdminController('document');
|
||||
$output = $oDocumentController->deleteCategory($args->category_srl);
|
||||
if(!$output->toBool()) {
|
||||
$oDB->rollback();
|
||||
|
|
|
|||
|
|
@ -35,11 +35,12 @@
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
<!--@if($category_info->name)-->
|
||||
<ul class="buttonLeft">
|
||||
<!--@if($category_info->name)-->
|
||||
<li><a href="#" onclick="doDeleteCategory('{$category_srl->category_srl}');return false" class="buttonTypeA"><img src="../../admin/tpl/images/blank.gif" alt="" class="leftCap" />{$lang->cmd_delete}<img src="../../admin/tpl/images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
<!--@end-->
|
||||
<li><a href="#" onclick="hideCategoryInfo();return false" class="buttonTypeA"><img src="../../admin/tpl/images/blank.gif" alt="" class="leftCap" />{$lang->cmd_close}<img src="../../admin/tpl/images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
</ul>
|
||||
<!--@end-->
|
||||
|
||||
<ul class="buttonRight">
|
||||
<li><span class="buttonTypeA"><img src="../../admin/tpl/images/blank.gif" alt="" class="leftCap" /><img src="../../admin/tpl/images/iconCreate.gif" width="8" height="4" alt="" class="icon" /><input type="submit" value="{$lang->cmd_save}" /><img src="../../admin/tpl/images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
|
|
|
|||
|
|
@ -21,21 +21,18 @@
|
|||
<input type="hidden" name="xml_file" value="{$category_info->xml_file}" />
|
||||
|
||||
<div id="category_list">
|
||||
<table style="table-layout:fixed;">
|
||||
<tr valign="top">
|
||||
<td>
|
||||
<div id="zone_category"></div>
|
||||
<p><input type="checkbox" class="checkbox" id="category_enable_move" /> <label for="category_enable_move">{$lang->cmd_enable_move_category}</label></p>
|
||||
<div id="zone_category"></div>
|
||||
<p><input type="checkbox" class="checkbox" id="category_enable_move" onclick="hideCategoryInfo()" /> <label for="category_enable_move">{$lang->cmd_enable_move_category}</label></p>
|
||||
|
||||
<ul class="buttonLeft">
|
||||
<li><a href="#" onclick="doInsertCategory(0);return false;" class="buttonTypeA"><img src="../../admin/tpl/images/blank.gif" alt="" class="leftCap" />{$lang->cmd_insert}<img src="../../admin/tpl/images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
<li><a href="#" onclick="openAllTreeMenu('category');return false;" class="buttonTypeA"><img src="../../admin/tpl/images/blank.gif" alt="" class="leftCap" />{$lang->cmd_open_all}<img src="../../admin/tpl/images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
<li><a href="#" onclick="closeAllTreeMenu('category');return false;" class="buttonTypeA"><img src="../../admin/tpl/images/blank.gif" alt="" class="leftCap" />{$lang->cmd_close_all}<img src="../../admin/tpl/images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
<li><a href="#" onclick="doReloadTreeCategory('{$module_info->module_srl}');return false;" class="buttonTypeA"><img src="../../admin/tpl/images/blank.gif" alt="" class="leftCap" />{$lang->cmd_remake_cache}<img src="../../admin/tpl/images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="buttonLeft">
|
||||
<li><a href="#" onclick="doInsertCategory(0);return false;" class="buttonTypeA"><img src="../../admin/tpl/images/blank.gif" alt="" class="leftCap" />{$lang->cmd_insert}<img src="../../admin/tpl/images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
</ul>
|
||||
|
||||
<ul class="buttonRight">
|
||||
<li><a href="#" onclick="openAllTreeMenu('category');return false;" class="buttonTypeA"><img src="../../admin/tpl/images/blank.gif" alt="" class="leftCap" />{$lang->cmd_open_all}<img src="../../admin/tpl/images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
<li><a href="#" onclick="closeAllTreeMenu('category');return false;" class="buttonTypeA"><img src="../../admin/tpl/images/blank.gif" alt="" class="leftCap" />{$lang->cmd_close_all}<img src="../../admin/tpl/images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
<li><a href="#" onclick="doReloadTreeCategory('{$module_info->module_srl}');return false;" class="buttonTypeA"><img src="../../admin/tpl/images/blank.gif" alt="" class="leftCap" />{$lang->cmd_remake_cache}<img src="../../admin/tpl/images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="category_info"></div>
|
||||
|
|
|
|||
|
|
@ -154,11 +154,34 @@ function doGetCategoryInfo(category_id, obj) {
|
|||
}
|
||||
|
||||
/* 서버로부터 받아온 카테고리 정보를 출력 */
|
||||
xAddEventListener(document,'mousedown',checkMousePosition);
|
||||
var _xPos = 0;
|
||||
var _yPos = 0;
|
||||
function checkMousePosition(e) {
|
||||
var evt = new xEvent(e);
|
||||
_xPos = evt.pageX;
|
||||
_yPos = evt.pageY;
|
||||
}
|
||||
|
||||
function hideCategoryInfo() {
|
||||
var obj = xGetElementById('category_info');
|
||||
obj.style.display = "none";
|
||||
}
|
||||
|
||||
function completeGetCategoryTplInfo(ret_obj, response_tags) {
|
||||
var obj = xGetElementById('category_info');
|
||||
var tpl = ret_obj['tpl'];
|
||||
xInnerHtml("category_info", tpl);
|
||||
xInnerHtml(obj, tpl);
|
||||
obj.style.display = 'block';
|
||||
|
||||
var fo_obj = xGetElementById("fo_category");
|
||||
fo_obj.category_name.focus();
|
||||
|
||||
var x = _xPos + 50;
|
||||
var y = _yPos - xHeight(obj)/2+ xScrollTop();
|
||||
xLeft(obj, x);
|
||||
xTop(obj, y);
|
||||
xRemoveEventListener(document,'mousedown',checkMousePosition);
|
||||
}
|
||||
|
||||
/* 카테고리 아이템 입력후 */
|
||||
|
|
@ -172,8 +195,9 @@ function completeInsertCategory(ret_obj) {
|
|||
|
||||
loadTreeMenu(xml_file, 'category', 'zone_category', category_title, '',doGetCategoryInfo, category_srl, doMoveTree);
|
||||
|
||||
if(!category_srl) xInnerHtml("category_info", "");
|
||||
else {
|
||||
if(!category_srl) {
|
||||
xInnerHtml("category_info", "");
|
||||
} else {
|
||||
var params = {node_srl:category_srl, parent_srl:parent_srl}
|
||||
doGetCategoryInfo(null, params)
|
||||
}
|
||||
|
|
@ -230,6 +254,9 @@ function completeDeleteCategory(ret_obj) {
|
|||
alert(ret_obj['message']);
|
||||
|
||||
loadTreeMenu(xml_file, 'category', 'zone_category', category_title, '', doGetCategoryInfo, category_srl, doMoveTree);
|
||||
xInnerHtml("category_info", "");
|
||||
|
||||
var obj = xGetElementById('category_info');
|
||||
xInnerHtml(obj, "");
|
||||
obj.style.display = 'none';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue