git-svn-id: http://xe-core.googlecode.com/svn/trunk@1824 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-28 08:23:08 +00:00
parent 8ad57b7d7d
commit 6828ca9389
4 changed files with 54 additions and 36 deletions

View file

@ -39,13 +39,13 @@
$document_srl_list = array_keys($flag_list);
$oDocumentController = &getController('document');
$document_srl_count = count($document_srl_list);
if($type == 'move') {
$oDocumentAdminController = &getAdminController('document');
if(!$module_srl) return new Object(-1, 'fail_to_move');
else {
$output = $oDocumentController->moveDocumentModule($document_srl_list, $module_srl, $this->module_srl);
$output = $oDocumentAdminController->moveDocumentModule($document_srl_list, $module_srl, $this->module_srl);
if(!$output->toBool()) return new Object(-1, 'fail_to_move');
$msg_code = 'success_moved';
$_SESSION['document_management'][$this->module_srl] = null;
@ -54,6 +54,7 @@
} elseif($type =='delete') {
$oDB = &DB::getInstance();
$oDB->begin();
$oDocumentController = &getController('document');
for($i=0;$i<$document_srl_count;$i++) {
$document_srl = $document_srl_list[$i];
$output = $oDocumentController->deleteDocument($document_srl, true);

View file

@ -11,6 +11,7 @@
$lang->cmd_board_list = '게시판 목록';
$lang->cmd_module_config = '게시판 공통 설정';
$lang->cmd_view_info = '게시판 정보';
$lang->move_target_module = "이동 대상 모듈";
$lang->about_board = "게시판을 생성하고 관리할 수 있는 게시판 모듈입니다.\n생성하신 후 목록에서 모듈이름을 선택하시면 자세한 설정이 가능합니다.\n게시판의 모듈이름은 접속 url이 되므로 신중하게 입력해주세요. (ex : http://도메인/zb/?mid=모듈이름)";
?>

View file

@ -1,35 +1,47 @@
<!--%import("filter/manage_checked_document.xml")-->
<!--%import("js/board_admin.js")-->
<div style="width:400px">
<div>{$lang->cmd_manage_document}</div>
<!--@if(!count($document_list))-->
<div>{$lang->msg_no_checked_document}</div>
<!--@else-->
<form action="./" method="get" id="fo_management">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="type" value="" />
<div>{$lang->checked_count} : {count($document_list)}</div>
<div><a href="#" onclick="doManageDocument('delete');return false;">{$lang->cmd_delete}</a></div>
<!--@if(count($board_list)>1)-->
<div>
<select name="target_board">
<!--@foreach($board_list as $key => $val)-->
<!--@if($module_srl != $val->module_srl)-->
<option value="{$val->module_srl}">{$val->browser_title} ({$val->mid})</option>
<!--@end-->
<!--@end-->
</select>
<a href="#" onclick="doManageDocument('move');return false;">{$lang->cmd_move}</a>
</div>
<!--@end-->
</form>
<!--@end-->
<div><a href="#" onclick="window.close(); return false;">{$lang->cmd_close}</a></div>
<div id="popHeadder">
<h1>{$lang->cmd_manage_document}</h1>
</div>
<form action="./" method="get" id="fo_management">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="type" value="" />
<div id="popBody">
<table cellspacing="0" class="tableType5">
<col width="150" />
<col />
<tr>
<th scope="row"><label for="textfield1">{$lang->checked_count}</label></th>
<td>{count($document_list)}</td>
</tr>
<!--@if(count($document_list) && count($board_list)>1)-->
<tr>
<th scope="row">{$lang->move_target_module}</th>
<td>
<select name="target_board">
<!--@foreach($board_list as $key => $val)-->
<!--@if($module_srl != $val->module_srl)-->
<option value="{$val->module_srl}">{$val->browser_title} ({$val->mid})</option>
<!--@end-->
<!--@end-->
</select>
</td>
</tr>
<!--@end-->
</table>
</div>
<div id="popFooter">
<ul class="buttonRight nospace">
<!--@if(count($document_list))-->
<li><a href="#" onclick="doManageDocument('move');return false;" class="buttonTypeA"><img src="../../admin/tpl/images/blank.gif" alt="" class="leftCap" />{$lang->cmd_move}<img src="../../admin/tpl/images/blank.gif" alt="" class="rightCap" /></a></li>
<li><a href="#" onclick="doManageDocument('delete');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><span class="buttonTypeA"><a href="#" onclick="window.close(); 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></span></li>
</ul>
</div>
</form>

View file

@ -103,12 +103,16 @@ function doFillWidgetVars() {
node.value = val;
break;
case "checkbox" :
var val = selected_node.getAttribute(name);
var val = selected_node.getAttribute(name).split(',');
if(fo_obj[name].length) {
for(var i=0;i<fo_obj[name].length;i++) {
var v = fo_obj[name][i].value;
//if(val.indexOf(v)!=-1) fo_obj[name][i].checked="true";
if(val == v) fo_obj[name][i].checked="true";
for(var j=0;j<val.length;j++) {
if(v == val[j]) {
fo_obj[name][i].checked="true";
break;
}
}
}
} else {
if(fo_obj[name].value == val) fo_obj[name].checked ="true";