mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-05 11:32:12 +09:00
통합 피드에 포함 여부 선택 관리자 페이지에서 편리하게 할 수 있도록 관리자 페이지에 버튼 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6955 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a5a1f44a18
commit
c5bd982447
4 changed files with 46 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module>
|
||||
<grants />
|
||||
<permissions />
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
<action name="dispRssAdminIndex" type="view" index="true" standalone="true" admin_index="true" />
|
||||
<action name="rss" type="view" standalone="true" />
|
||||
<action name="atom" type="view" standalone="true" />
|
||||
<action name="procRssAdminToggleActivate" type="controller" standalone="true" />
|
||||
<action name="procRssAdminInsertConfig" type="controller" standalone="true" />
|
||||
<action name="procRssAdminInsertModuleConfig" type="controller" standalone="true" />
|
||||
</actions>
|
||||
|
|
|
|||
|
|
@ -114,6 +114,30 @@
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Feed 전체 포함/미포함 체인지
|
||||
**/
|
||||
function procRssAdminToggleActivate() {
|
||||
$oRssModel = &getModel('rss');
|
||||
|
||||
// mid값을 받아옴
|
||||
$module_srl = Context::get('module_srl');
|
||||
if($module_srl) {
|
||||
$config = $oRssModel->getRssModuleConfig($module_srl);
|
||||
if($config->open_total_feed == 'T_N') {
|
||||
$this->setRssModuleConfig($module_srl, $config->open_rss, 'T_Y', $config->feed_description, $config->feed_copyright);
|
||||
$this->add("open_total_feed", 'T_Y');
|
||||
}
|
||||
else {
|
||||
$this->setRssModuleConfig($module_srl, $config->open_rss, 'T_N', $config->feed_description, $config->feed_copyright);
|
||||
$this->add("open_total_feed", 'T_N');
|
||||
}
|
||||
}
|
||||
|
||||
$this->add("module_srl", $module_srl);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief RSS모듈의 전체 Feed 설정용 함수
|
||||
**/
|
||||
|
|
|
|||
17
modules/rss/tpl/js/rss.js
Normal file
17
modules/rss/tpl/js/rss.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
function doToggleRss(module_srl) {
|
||||
var params = new Array();
|
||||
params['module_srl'] = module_srl;
|
||||
|
||||
var response_tags = new Array('error','message','module_srl','open_total_feed');
|
||||
exec_xml('rss','procRssAdminToggleActivate',params, doChangeIcon ,response_tags );
|
||||
}
|
||||
|
||||
function doChangeIcon(ret_obj, response_tags) {
|
||||
var obj = document.getElementById('dotogglerss_'+ret_obj['module_srl']);
|
||||
if(ret_obj['open_total_feed'] == 'T_N') {
|
||||
obj.className = "buttonSet buttonDisable";
|
||||
} else {
|
||||
obj.className = "buttonSet buttonActive";
|
||||
}
|
||||
}
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
<!--%import("js/rss.js")-->
|
||||
<h3 class="xeAdmin">{$lang->total_feed} <span class="gray">{$lang->cmd_management}</span></h3>
|
||||
|
||||
<!--%import("filter/insert_rss_config.xml")-->
|
||||
|
|
@ -69,11 +70,11 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!--@foreach($feed_config as $config)-->
|
||||
<!--@foreach($feed_config as $module_srl => $config)-->
|
||||
<tr>
|
||||
<th>{$config['mid']}</th>
|
||||
<td>{$lang->open_rss_types[$config['open_feed']]}</td>
|
||||
<td><!--@if($config['open_total_feed'] == 'T_N')-->{$lang->notuse}<!--@else-->{$lang->use}<!--@end--></td>
|
||||
<td><a id="dotogglerss_{$module_srl}" onclick="doToggleRss('{$module_srl}')" <!--@if($config['open_total_feed'] == 'T_N')-->class="buttonSet buttonDisable"><span>{$lang->notuse}<!--@else-->class="buttonSet buttonActive"><span>{$lang->use}<!--@end--></span></a></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</tbody>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue