mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
issue 2450 [Admin UI Refactoring] Content > RSS
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11532 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0df35a4b6d
commit
1d21e994c0
6 changed files with 59 additions and 117 deletions
|
|
@ -6,7 +6,6 @@
|
||||||
<action name="dispRssAdminIndex" type="view" index="true" standalone="true" admin_index="true" menu_name="rss" menu_index="true" />
|
<action name="dispRssAdminIndex" type="view" index="true" standalone="true" admin_index="true" menu_name="rss" menu_index="true" />
|
||||||
<action name="rss" type="view" standalone="true" />
|
<action name="rss" type="view" standalone="true" />
|
||||||
<action name="atom" 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" ruleset="insertRssConfig" />
|
<action name="procRssAdminInsertConfig" type="controller" standalone="true" ruleset="insertRssConfig" />
|
||||||
<action name="procRssAdminInsertModuleConfig" type="controller" standalone="true" ruleset="insertRssModuleConfig" />
|
<action name="procRssAdminInsertModuleConfig" type="controller" standalone="true" ruleset="insertRssModuleConfig" />
|
||||||
</actions>
|
</actions>
|
||||||
|
|
|
||||||
|
|
@ -119,31 +119,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* All Feeds with or without change
|
|
||||||
*
|
|
||||||
* @return Object
|
|
||||||
**/
|
|
||||||
function procRssAdminToggleActivate() {
|
|
||||||
$oRssModel = &getModel('rss');
|
|
||||||
// Get mid value
|
|
||||||
$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);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A funciton to configure all Feeds of the RSS module
|
* A funciton to configure all Feeds of the RSS module
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
<filter name="insert_rss_config" module="rss" act="procRssAdminInsertConfig" confirm_msg_code="confirm_submit">
|
|
||||||
<form />
|
|
||||||
<response>
|
|
||||||
<tag name="error" />
|
|
||||||
<tag name="message" />
|
|
||||||
</response>
|
|
||||||
</filter>
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
<filter name="insert_rss_module_config" module="rss" act="procRssAdminInsertModuleConfig" confirm_msg_code="confirm_submit">
|
|
||||||
<form />
|
|
||||||
<response>
|
|
||||||
<tag name="error" />
|
|
||||||
<tag name="message" />
|
|
||||||
</response>
|
|
||||||
</filter>
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
|
|
||||||
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,64 +1,65 @@
|
||||||
<load target="js/rss.js" usecdn="true" />
|
|
||||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||||
</div>
|
</div>
|
||||||
<h1 class="h1">RSS</h1>
|
<div class="x_page-header">
|
||||||
<form ruleset="insertRssConfig" id="fo_layout" action="./" method="post" enctype="multipart/form-data" class="form">
|
<h1>RSS</h1>
|
||||||
<input type="hidden" name="module" value="rss" />
|
</div>
|
||||||
<input type="hidden" name="act" value="procRssAdminInsertConfig" />
|
<section class="section">
|
||||||
<h2 class="h2">{$lang->total_feed} {$lang->cmd_management}</h2>
|
<h1>{$lang->total_feed} {$lang->cmd_management}</h1>
|
||||||
<ul>
|
<form ruleset="insertRssConfig" action="./" method="post" enctype="multipart/form-data" class="x_form-horizontal">
|
||||||
<li>
|
<input type="hidden" name="module" value="rss" />
|
||||||
<p class="q">{$lang->total_feed}</p>
|
<input type="hidden" name="act" value="procRssAdminInsertConfig" />
|
||||||
<p class="a">
|
<div class="x_control-group">
|
||||||
<input type="radio" name="use_total_feed" value="Y" id="use_total_feed_yes" <!--@if(!$total_config->use_total_feed || $total_config->use_total_feed == 'Y')-->checked="checked"<!--@end--> /> <label for="use_total_feed_yes">{$lang->use}(<a href="{getFullSiteUrl()}rss">{getFullSiteUrl()}rss</a>)</label>
|
<label for="">{$lang->total_feed}</label>
|
||||||
<input type="radio" name="use_total_feed" value="N" id="use_total_feed_no" <!--@if($total_config->use_total_feed == 'N')-->checked="checked"<!--@end--> /> <label for="use_total_feed_no">{$lang->notuse}</label>
|
<label class="x_inline">
|
||||||
</p>
|
<input type="radio" name="use_total_feed" value="Y" id="use_total_feed_yes" checked="checked"|cond="!$total_config->use_total_feed || $total_config->use_total_feed == 'Y'" />{$lang->use}(<a href="{getFullSiteUrl()}rss">{getFullSiteUrl()}rss</a>)
|
||||||
</li>
|
</label>
|
||||||
<li>
|
<label class="x_inline">
|
||||||
<p class="q"><label for="feed_title">{$lang->title}</label></p>
|
<input type="radio" name="use_total_feed" value="N" id="use_total_feed_no" checked="checked"|cond="$total_config->use_total_feed == 'N'" />{$lang->notuse}
|
||||||
<p class="a"><input type="text" name="feed_title" value="{htmlspecialchars($total_config->feed_title)}" id="feed_title" /></p>
|
</label>
|
||||||
</li>
|
</div>
|
||||||
<li>
|
<div class="x_control-group">
|
||||||
<p class="q"><label for="feed_description">{$lang->description}</label></p>
|
<label for="feed_title">{$lang->title}</label>
|
||||||
<p class="a"><textarea name="feed_description" id="feed_description" rows="8" cols="42">{$total_config->feed_description}</textarea></p>
|
<input type="text" name="feed_title" value="{htmlspecialchars($total_config->feed_title)}" id="feed_title" />
|
||||||
</li>
|
</div>
|
||||||
<li>
|
<div class="x_control-group">
|
||||||
<p class="q"><label for="image">{$lang->feed_image}</label></p>
|
<label for="feed_description">{$lang->description}</label>
|
||||||
|
<textarea name="feed_description" id="feed_description" rows="8" cols="42">{$total_config->feed_description}</textarea>
|
||||||
|
</div>
|
||||||
|
<div class="x_control-group">
|
||||||
|
<label for="image">{$lang->feed_image}</label>
|
||||||
<!--@if($total_config->image)-->
|
<!--@if($total_config->image)-->
|
||||||
<p class="a">
|
|
||||||
<img src="../../../{$total_config->image}" alt="image" />
|
<img src="../../../{$total_config->image}" alt="image" />
|
||||||
<input type="checkbox" name="del_image" value="Y" id="del_image" />
|
<input type="checkbox" name="del_image" value="Y" id="del_image" />
|
||||||
<label for="del_image">{$lang->cmd_delete}</label>
|
<label for="del_image">{$lang->cmd_delete}</label>
|
||||||
</p>
|
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
<p class="a"><input type="file" name="image" value="" id="image" /></p>
|
<p class="a"><input type="file" name="image" value="" id="image" /></p>
|
||||||
</li>
|
</div>
|
||||||
<li>
|
<div class="x_control-group">
|
||||||
<p class="q"><label for="feed_copyright">{$lang->feed_copyright}</label></p>
|
<label for="feed_copyright">{$lang->feed_copyright}</label>
|
||||||
<p class="a"><input type="text" name="feed_copyright" value="{htmlspecialchars($total_config->feed_copyright)}" id="feed_copyright" /></p>
|
<input type="text" name="feed_copyright" value="{htmlspecialchars($total_config->feed_copyright)}" id="feed_copyright" />
|
||||||
</li>
|
</div>
|
||||||
<li>
|
<div class="x_control-group">
|
||||||
<p class="q"><label for="feed_document_count">{$lang->feed_document_count}</label></p>
|
<label for="feed_document_count">{$lang->feed_document_count}</label>
|
||||||
<p class="a"><input type="text" name="feed_document_count" value="{$total_config->feed_document_count}" id="feed_document_count" /></p>
|
<input type="text" name="feed_document_count" value="{$total_config->feed_document_count}" id="feed_document_count" />
|
||||||
</li>
|
</div>
|
||||||
</ul>
|
<div class="x_clearfix">
|
||||||
<div class="btnArea">
|
<div class="x_pull-right">
|
||||||
<span class="btn small"><input type="submit" value="{$lang->cmd_save}" /></span>
|
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</div>
|
||||||
<h2 class="h2">{$lang->feed} {$lang->cmd_management}</h2>
|
</form>
|
||||||
<div class="table form">
|
</section>
|
||||||
<table width="100%" border="1" cellspacing="0">
|
<section class="section">
|
||||||
|
<h1>{$lang->feed} {$lang->cmd_management}</h1>
|
||||||
|
<table class="x_table x_table-striped x_table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">{$lang->mid}</th>
|
<th>{$lang->mid}</th>
|
||||||
<th scope="col" class="title">{$lang->description}</th>
|
<th>{$lang->description}</th>
|
||||||
<th scope="col">{$lang->open_rss}</th>
|
<th>{$lang->open_rss}</th>
|
||||||
<th scope="col">
|
<th>{$lang->open_feed_to_total}</th>
|
||||||
<label for="feed_integration">{$lang->open_feed_to_total}</label>
|
<th style="width:50px">{$lang->cmd_save}</th>
|
||||||
</th>
|
|
||||||
<th scope="col">{$lang->cmd_save}</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
@ -67,24 +68,22 @@
|
||||||
<input type="hidden" name="act" value="procRssAdminInsertModuleConfig" />
|
<input type="hidden" name="act" value="procRssAdminInsertModuleConfig" />
|
||||||
<input type="hidden" name="success_return_url" value="{getUrl('', 'module', $module, 'act', 'dispRssAdminIndex')}" />
|
<input type="hidden" name="success_return_url" value="{getUrl('', 'module', $module, 'act', 'dispRssAdminIndex')}" />
|
||||||
<input type="hidden" name="target_module_srl" value="{$key}" />
|
<input type="hidden" name="target_module_srl" value="{$key}" />
|
||||||
<th scope="row" class="nowr">
|
<th>
|
||||||
<!--@if($value['url'])--><a href="{$value['url']}" target="_blank"><!--@endif-->{$value['mid']}<!--@if($value['url'])--></a><!--@endif-->
|
<!--@if($value['url'])--><a href="{$value['url']}" target="_blank"><!--@endif-->{$value['mid']}<!--@if($value['url'])--></a><!--@endif-->
|
||||||
</th>
|
</th>
|
||||||
<td class="title">{$value['feed_description']}</td>
|
<td class="title">{$value['feed_description']}</td>
|
||||||
<td class="nowr">
|
<td>
|
||||||
<!--@foreach($lang->open_rss_types as $key2=>$value2)-->
|
<!--@foreach($lang->open_rss_types as $key2=>$value2)-->
|
||||||
<input type="radio" name="open_rss" value="{$key2}" id="feed_open_{$key2}" <!--@if($key2 == $value['open_feed'])-->checked="checked"<!--@end--> /><label for="feed_open_{$key2}">{$value2}</label>
|
<label class="x_inline"><input type="radio" name="open_rss" value="{$key2}" id="feed_open_{$key2}" <!--@if($key2 == $value['open_feed'])-->checked="checked"<!--@end--> />{$value2}</label>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
</td>
|
</td>
|
||||||
<td class="nowr">
|
<td>
|
||||||
<input type="radio" name="open_total_feed" value="N" id="open_total_feed_N" <!--@if($value['open_total_feed'] == 'N')-->checked="checked"<!--@end--> />
|
<label class="x_inline"><input type="radio" name="open_total_feed" value="N" id="open_total_feed_N" <!--@if($value['open_total_feed'] == 'N')-->checked="checked"<!--@end--> />{$lang->use}</label>
|
||||||
<label for="open_total_feed_N">{$lang->use}</label>
|
<label class="x_inline"><input type="radio" name="open_total_feed" value="T_N" id="open_total_feed_T_N" <!--@if($value['open_total_feed'] == 'T_N')-->checked="checked"<!--@end--> />{$lang->notuse}</label>
|
||||||
<input type="radio" name="open_total_feed" value="T_N" id="open_total_feed_T_N" <!--@if($value['open_total_feed'] == 'T_N')-->checked="checked"<!--@end--> />
|
|
||||||
<label for="open_total_feed_T_N">{$lang->notuse}</label>
|
|
||||||
</td>
|
</td>
|
||||||
<td class="nowr"><input type="submit" value="{$lang->cmd_save}" class="text" /></td>
|
<td><button type="submit" class="x_btn x_btn-link">{$lang->cmd_save}</button></td>
|
||||||
</form>
|
</form>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</section>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue