17523934 * modules/a* ~ d* x.js 교체

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5164 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2008-12-23 03:24:06 +00:00
parent 635d54bf6f
commit 75c211f98e
28 changed files with 83 additions and 142 deletions

View file

@ -74,7 +74,7 @@
</div>
<script type="text/javascript">
xAddEventListener(window,'load',function() { doGetCategoryFromModule(xGetElementById('target_module')); } );
jQuery(function() { doGetCategoryFromModule(jQuery('#target_module').get(0)); } );
</script>
</form>

View file

@ -27,7 +27,7 @@
</thead>
<tbody>
<!--@foreach($document_list as $no => $oDocument)-->
<tr class="row{$cycle_idx}">
<tr>
<td class="number center">{$no}</td>
<td class="center"><input type="checkbox" name="cart" value="{$oDocument->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($oDocument->isCarted())-->checked="checked"<!--@end-->/></td>
<td>
@ -48,7 +48,7 @@
<td class="date center nowrap">{$oDocument->getRegdate("Y-m-d")}</td>
</tr>
<!--@end-->
<tr class="row2">
<tr>
<td colspan="8" class="right">
<a href="#" onclick="doCancelDeclare();return false;" class="button"><span>{$lang->cmd_cancel_declare}</span></a>
<a href="{getUrl('','module','document','act','dispDocumentAdminManageDocument')}" onclick="popopen(this.href,'manageDocument'); return false;" class="button"><span>{$lang->cmd_manage_document}</span></a>

View file

@ -3,7 +3,7 @@
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
<table cellspacing="0" class="adminTable">
<tr class="row2">
<tr>
<th scope="col"><div>{$lang->thumbnail_type}</div></th>
</tr>
<tr>
@ -12,13 +12,13 @@
<input type="radio" name="thumbnail_type" value="ratio" <!--@if($config->thumbnail_type == 'ratio')-->checked="checked"<!--@end-->/> {$lang->thumbnail_ratio}
</td>
</tr>
<tr class="row2">
<tr>
<td class="right"><span class="button"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span></td>
</tr>
</table>
<table cellspacing="0" class="adminTable">
<tr class="row2">
<tr>
<td class="right"><span class="button"><input type="button" value="{$lang->cmd_delete_all_thumbnail}" onclick="doDeleteAllThumbnail(); return false;"/></span></td>
</tr>
</table>

View file

@ -36,7 +36,7 @@
</thead>
<tbody>
<!--@foreach($document_list as $no => $oDocument)-->
<tr class="row{$cycle_idx}">
<tr>
<td class="number center" rowspan="2">{$no}</td>
<td colspan="2"><!--@if($oDocument->get('module_srl')!=$oDocument->get('member_srl'))--><a href="{getUrl('','mid',$module_list[$oDocument->get('module_srl')]->mid)}" onclick="window.open(this.href);return false">{htmlspecialchars($module_list[$oDocument->get('module_srl')]->browser_title)}</a><!--@else-->-<!--@end--></td>
<td class="nowrap"><span class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</span></td>

View file

@ -1,12 +1,3 @@
function doCheckAll(bToggle) {
var fo_obj = xGetElementById('fo_list');
if(typeof(bToggle) == "undefined") bToggle = false;
for(var i=0;i<fo_obj.length;i++) {
if(fo_obj[i].name == 'cart'){
if( !fo_obj[i].checked || !bToggle) fo_obj[i].checked = true; else fo_obj[i].checked = false;
}
}
}
/**
* @brief 모든 생성된 썸네일 삭제하는 액션 호출
@ -22,7 +13,7 @@ function completeDeleteAllThumbnail(ret_obj) {
/* 선택된 글의 삭제 또는 이동 */
function doManageDocument(type) {
var fo_obj = xGetElementById("fo_management");
var fo_obj = jQuery("#fo_management").get(0);
fo_obj.type.value = type;
procFilter(fo_obj, manage_checked_document);
@ -50,7 +41,7 @@ function doGetCategoryFromModule(obj) {
}
function completeGetCategoryFromModules(ret_obj, response_tags) {
var obj = xGetElementById('target_category');
var obj = jQuery('#target_category').get(0);
var length = obj.options.length;
for(var i=0;i<length;i++) obj.remove(0);
@ -78,15 +69,11 @@ function completeGetCategoryFromModules(ret_obj, response_tags) {
}
function doCancelDeclare() {
var fo_obj = xGetElementById('fo_list');
var document_srl = new Array();
if(fo_obj.cart.length) {
for(var i=0;i<fo_obj.cart.length;i++) {
if(fo_obj.cart[i].checked) document_srl[document_srl.length] = fo_obj.cart[i].value;
}
} else {
if(fo_obj.cart.checked) document_srl[document_srl.length] = fo_obj.cart.value;
}
jQuery('#fo_list input[name=cart]:checked').each(function() {
document_srl[document_srl.length] = jQuery(this).val();
});
if(document_srl.length<1) return;
var params = new Array();

View file

@ -19,5 +19,5 @@
</div>
<script type="text/javascript">//<![CDATA[
xAddEventListener(window,'load',function() { window.print(); } );
jQuery(window).load(function() { window.print(); } );
//]]></script>