UI refactoring module rss config

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11970 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-10-30 08:58:22 +00:00
parent 33fd510c57
commit 96798e29b0

View file

@ -1,47 +1,46 @@
<form ruleset="insertRssModuleConfig" action="./" method="post"> <section class="section">
<input type="hidden" name="module" value="rss" /> <h1>{$lang->open_rss}</h1>
<input type="hidden" name="act" value="procRssAdminInsertModuleConfig" /> <p class="x_help-block">{$lang->about_open_rss}</p>
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
<input type="hidden" name="target_module_srl" value="{$rss_config->module_srl?$rss_config->module_srl:$module_srls}" /> <form ruleset="insertRssModuleConfig" action="./" method="post" class="x_form-horizontal">
<input type="hidden" name="module" value="rss" />
<h3>{$lang->open_rss}</h3> <input type="hidden" name="act" value="procRssAdminInsertModuleConfig" />
<p>{$lang->about_open_rss}</p> <input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
<table class="x_table x_table-striped x_table-hover"> <input type="hidden" name="target_module_srl" value="{$rss_config->module_srl?$rss_config->module_srl:$module_srls}" />
<tr>
<th scope="row"><label for="open_rss">{$lang->open_rss}</label></th> <div class="x_control-group">
<td class="text"> <label for="open_rss" class="x_control-label">{$lang->open_rss}</label>
<div class="x_controls">
<select name="open_rss" id="open_rss"> <select name="open_rss" id="open_rss">
<!--@foreach($lang->open_rss_types as $key=>$val)--> <option loop="$lang->open_rss_types => $key, $val" value="{$key}" selected="selected"|cond="(!$rss_config->open_rss && $key == 'N') || ($rss_config->open_rss == $key)">{$val}</option>
<option value="{$key}" <!--@if(!$rss_config->open_rss && $key=='N')-->selected="selected"<!--@elseif($rss_config->open_rss==$key)-->selected="selected"<!--@end-->>{$val}</option>
<!--@end-->
</select> </select>
</td> </div>
</tr> </div>
<tr> <div class="x_control-group">
<th scope="row"><label for="open_total_feed">{$lang->open_feed_to_total}</label></th> <label for="open_total_feed" class="x_control-label">{$lang->open_feed_to_total}</label>
<td class="text"> <div class="x_controls">
<select name="open_total_feed" id="open_total_feed"> <select name="open_total_feed" id="open_total_feed">
<option value="N" <!--@if(!$rss_config->open_total_feed || $rss_config->open_total_feed == 'N')-->selected="selected"<!--@end-->>{$lang->use}</option> <option value="N" <!--@if(!$rss_config->open_total_feed || $rss_config->open_total_feed == 'N')-->selected="selected"<!--@end-->>{$lang->use}</option>
<option value="T_N" <!--@if($rss_config->open_total_feed == 'T_N')-->selected="selected"<!--@end-->>{$lang->notuse}</option> <option value="T_N" <!--@if($rss_config->open_total_feed == 'T_N')-->selected="selected"<!--@end-->>{$lang->notuse}</option>
</select> </select>
</td> </div>
</tr> </div>
<tr> <div class="x_control-group">
<th scope="row"><label for="feed_description">{$lang->description}</label></th> <label for="feed_description" class="x_control-label">{$lang->description}</label>
<td class="text"> <div class="x_controls">
<textarea name="feed_description" id="feed_description" rows="8" cols="42">{$rss_config->feed_description}</textarea> <textarea name="feed_description" id="feed_description" rows="8" cols="42">{htmlspecialchars($rss_config->feed_description)}</textarea>
<p class="desc">{$lang->about_feed_description}</p> <span class="x_help-block">{$lang->about_feed_description}</span>
</td> </div>
</tr> </div>
<tr> <div class="x_control-group">
<th scope="row"><label for="feed_copyright">{$lang->feed_copyright}</label></th> <label for="feed_copyright" class="x_control-label">{$lang->feed_copyright}</label>
<td class="text"> <div class="x_controls">
<input type="text" name="feed_copyright" id="feed_copyright" value="{htmlspecialchars($rss_config->feed_copyright)}" /> <textarea name="feed_copyright" id="feed_copyright" rows="8" cols="42">{htmlspecialchars($rss_config->feed_copyright)}</textarea>
<p class="desc">{$lang->about_feed_copyright}</p> <span class="x_help-block">{$lang->about_feed_copyright}</span>
</td> </div>
</tr> </div>
</table> <div class="btnArea">
<div class="btnArea"> <button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
<span class="btn"><input type="submit" value="{$lang->cmd_save}"/></span> </div>
</div> </form>
</form> </section>