css 및 js 호출순서 조정기능 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5785 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2009-03-06 05:33:56 +00:00
parent 4f380d9c48
commit 61851f1dfe
2149 changed files with 109090 additions and 18689 deletions

View file

@ -12,7 +12,7 @@
<description xml:lang="zh-TW">當有新評論時,此模組會告知。</description>
<version>0.2.1</version>
<date>2008-07-31</date>
<category>accessory</category>
<category>interlock</category>
<author email_address="haneul0318@gmail.com" link="http://seungyeop.kr">
<name xml:lang="ko">haneul</name>

View file

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<module>
<grants />
<permissions />
<actions>
<action name="dispCommentNotifyAdminIndex" type="view" standalone="true" admin_index="true" />
<action name="procCommentNotifyAdminDeleteChild" type="controller" standalone="true" />
<action name="procCommentNotifyAdminDeleteParent" type="controller" standalone="true" />
<action name="procCommentNotifyAdminDeleteChecked" type="controller" standalone="true" />
<action name="procDoNotify" type="controller" standalone="true" />
<action name="dispCommentNotifyAdminIndex" type="view" standalone="true" admin_index="true" />
<action name="procCommentNotifyAdminDeleteChild" type="controller" standalone="true" />
<action name="procCommentNotifyAdminDeleteParent" type="controller" standalone="true" />
<action name="procCommentNotifyAdminDeleteChecked" type="controller" standalone="true" />
<action name="procDoNotify" type="controller" standalone="true" />
</actions>
</module>

View file

@ -1,4 +1,9 @@
<?php
/**
* @file modules/tccommentnotify/lang/zh-CN.lang.php
* @author haneul <haneul0318@gmail.com> 翻译guny
* @brief 评论通告模块简体中文语言包
**/
$lang->commentnotify = '评论通告';
$lang->msg_checked_comment_is_deleted = '已删除%d个通告。';
$lang->cmd_delete_checked_comment = '删除所选';

View file

@ -17,10 +17,10 @@
function moduleInstall() {
// action forward에 등록 (관리자 모드에서 사용하기 위함)
$oModuleController = &getController('module');
$oModuleController->insertActionForward('tccommentnotify', 'view', 'dispCommentNotifyAdminIndex');
// notify를 위한 트리거 추가
$oModuleController->insertTrigger('comment.insertComment', 'tccommentnotify', 'controller', 'triggerInsertComment', 'after');
$oModuleController->insertActionForward('tccommentnotify', 'view', 'dispCommentNotifyAdminIndex');
return new Object();
}
@ -30,10 +30,9 @@
**/
function checkUpdate() {
$oModuleModel = &getModel('module');
if(!$oModuleModel->getTrigger('comment.insertComment', 'tccommentnotify', 'controller', 'triggerInsertComment', 'after'))
{
return true;
}
if(!$oModuleModel->getTrigger('comment.insertComment', 'tccommentnotify', 'controller', 'triggerInsertComment', 'after')) return true;
if(!$oModuleModel->getActionForward('dispCommentNotifyAdminIndex')) return true;
return false;
}
@ -44,10 +43,10 @@
function moduleUpdate() {
$oModuleModel = &getModel('module');
$oModuleController = &getController('module');
if(!$oModuleModel->getTrigger('comment.insertComment', 'tccommentnotify', 'controller', 'triggerInsertComment', 'after'))
{
if(!$oModuleModel->getTrigger('comment.insertComment', 'tccommentnotify', 'controller', 'triggerInsertComment', 'after'))
$oModuleController->insertTrigger('comment.insertComment', 'tccommentnotify', 'controller', 'triggerInsertComment', 'after');
}
if(!$oModuleModel->getActionForward('dispCommentNotifyAdminIndex'))
$oModuleController->insertActionForward('tccommentnotify', 'view', 'dispCommentNotifyAdminIndex');
return new Object(0, 'success_updated');
}

View file

@ -97,10 +97,8 @@
{
foreach($output->data as $data)
{
debugPrint("start");
$this->deleteFromQueue($data->comment_srl);
$this->sendCommentNotify($data->comment_srl);
debugPrint("end");
}
}
FileHandler::removeFile($lockFilePath);
@ -139,11 +137,6 @@
return executeQuery("tccommentnotify.insertQueue", $args);
}
function procTestSendComment()
{
$this->sendCommentNotify(16775);
}
function sendCommentNotify($comment_srl)
{
set_include_path("./libs/PEAR");
@ -262,11 +255,8 @@
$oReq->addPostData('r2_body', strip_tags($oChild->get('content')));
debugPrint($target);
$oReq->sendRequest(false);
debugPrint("ok");
$code = $oReq->getResponseCode();
debugPrint($code);
return $code;
}

View file

@ -4,16 +4,12 @@
<!--%import("filter/delete_parent.xml")-->
<!--%import("filter/delete_checked.xml")-->
<!-- 정보 -->
<div class="summary topGap">
<strong>Total</strong> <em>{number_format($total_count)}</em>, Page <strong>{number_format($page)}</strong>/{number_format($total_page)}
</div>
<form id="fo_list" action="./" method="get" onsubmit="return procFilter(this, delete_checked)">
<input type="hidden" name="page" value="{$page}" />
<!-- 목록 -->
<table cellspacing="0" class="adminTable">
<table cellspacing="0" class="rowTable">
<caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
<thead>
<tr>
<th scope="col"><div><input type="checkbox" onclick="XE.checkboxToggleAll(); return false;" /></div></th>
@ -32,8 +28,8 @@
<td class="nowrap date center">{zdate($parent->written, "Y/m/d")}</td>
<td class="nowrap"><a href="{$parent->siteurl}" onclick="window.open(this.href);return false;">{$parent->title?$parent->title:"[No title]"}</a></td>
<td class="nowrap">{$parent->name}</td>
<td><a href="{$parent->entryurl}" onclick="window.open(this.href);return false;">{$parent->entrytitle}</a> <a href="{$parent->commenturl}" onclick="window.open(this.href);return false;">{$parent->comment}</a></td>
<td class="delete"><a href="#" onclick="deleteParent('{$parent->notified_srl}');">{$lang->cmd_delete}</a></td>
<td class="content"><a href="{$parent->entryurl}" onclick="window.open(this.href);return false;">{$parent->entrytitle}</a> <a href="{$parent->commenturl}" onclick="window.open(this.href);return false;">{$parent->comment}</a></td>
<td><a href="#" onclick="deleteParent('{$parent->notified_srl}');" title="{$lang->cmd_delete}" class="buttonSet buttonDelete"><span>{$lang->cmd_delete}</span></a></td>
</tr>
<!--@foreach($val->children as $child)-->
<tr>
@ -42,7 +38,7 @@
<td class="nowrap"><a href="{$parent->siteurl}" onclick="window.open(this.href);return false;">{$parent->title?$parent->title:"[No title]"}</a></td>
<td class="nowrap">{$child->name}</td>
<td><img src="images/iconReplyArrow.gif" /> <a href="{$child->url}" onclick="window.open(this.href);return false;">{$child->comment}</a></td>
<td class="delete"><a href="#" onclick="deleteChild('{$child->notified_srl}');">{$lang->cmd_delete}</a></td>
<td><a href="#" onclick="deleteChild('{$child->notified_srl}');" class="buttonSet buttonDelete"><span>{$lang->cmd_delete}</span></a></td>
</tr>
<!--@end-->

View file

@ -1,3 +1,3 @@
<!--%import("css/commentnotify.css")-->
<h3>{$lang->commentnotify} <span class="gray">{$lang->cmd_management}</span></h3>
<h3 class="xeAdmin">{$lang->commentnotify} <span class="gray">{$lang->cmd_management}</span></h3>