Issue 2634: [xe-maserati] UI Refactoring installed module > page module

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11929 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
chschy 2012-10-29 02:04:33 +00:00
parent c70fd3a24f
commit a03b607ce9
6 changed files with 277 additions and 297 deletions

View file

@ -5,7 +5,7 @@
<input type="hidden" name="module" value="editor" /> <input type="hidden" name="module" value="editor" />
<input type="hidden" name="target_module_srl" value="{$module_info->module_srl?$module_info->module_srl:$module_srls}" /> <input type="hidden" name="target_module_srl" value="{$module_info->module_srl?$module_info->module_srl:$module_srls}" />
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" /> <input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
<h3 class="h3">{$lang->editor}</h3> <h1>{$lang->editor}</h1>
<table class="x_table x_table-striped x_table-hover"> <table class="x_table x_table-striped x_table-hover">
<thead> <thead>
<tr> <tr>
@ -111,12 +111,12 @@
<tr> <tr>
<td> <td>
<!--@foreach($group_list as $k => $v)--> <!--@foreach($group_list as $k => $v)-->
<input type="checkbox" name="enable_html_grant[]" value="{$k}" id="enable_html_{$k}" <!--@if(in_array($k, $editor_config->enable_html_grant))-->checked="checked"<!--@end-->/> <label for="enable_html_{$k}">{$v->title}</label> <label for="enable_html_{$k}" class="x_inline"><input type="checkbox" name="enable_html_grant[]" value="{$k}" id="enable_html_{$k}" <!--@if(in_array($k, $editor_config->enable_html_grant))-->checked="checked"<!--@end-->/> {$v->title}</label>
<!--@end--> <!--@end-->
</td> </td>
<td> <td>
<!--@foreach($group_list as $k => $v)--> <!--@foreach($group_list as $k => $v)-->
<input type="checkbox" name="enable_comment_html_grant[]" value="{$k}" id="enable_comment_html_{$k}" <!--@if(in_array($k, $editor_config->enable_comment_html_grant))-->checked="checked"<!--@end-->/> <label for="enable_comment_html_{$k}">{$v->title}</label> <label for="enable_comment_html_{$k}" class="x_inline"><input type="checkbox" name="enable_comment_html_grant[]" value="{$k}" id="enable_comment_html_{$k}" <!--@if(in_array($k, $editor_config->enable_comment_html_grant))-->checked="checked"<!--@end-->/> {$v->title}</label>
<!--@end--> <!--@end-->
</td> </td>
</tr> </tr>
@ -127,12 +127,12 @@
<tr> <tr>
<td> <td>
<!--@foreach($group_list as $k => $v)--> <!--@foreach($group_list as $k => $v)-->
<input type="checkbox" name="upload_file_grant[]" value="{$k}" id="fileupload_{$k}" <!--@if(in_array($k, $editor_config->upload_file_grant))-->checked="checked"<!--@end-->/> <label for="fileupload_{$k}">{$v->title}</label> <label for="fileupload_{$k}" class="x_inline"><input type="checkbox" name="upload_file_grant[]" value="{$k}" id="fileupload_{$k}" <!--@if(in_array($k, $editor_config->upload_file_grant))-->checked="checked"<!--@end-->/> {$v->title}</label>
<!--@end--> <!--@end-->
</td> </td>
<td> <td>
<!--@foreach($group_list as $k => $v)--> <!--@foreach($group_list as $k => $v)-->
<input type="checkbox" name="comment_upload_file_grant[]" value="{$k}" id="comment_fileupload_{$k}" <!--@if(in_array($k, $editor_config->comment_upload_file_grant))-->checked="checked"<!--@end-->/> <label for="comment_fileupload_{$k}">{$v->title}</label> <label for="comment_fileupload_{$k}" class="x_inline"><input type="checkbox" name="comment_upload_file_grant[]" value="{$k}" id="comment_fileupload_{$k}" <!--@if(in_array($k, $editor_config->comment_upload_file_grant))-->checked="checked"<!--@end-->/> {$v->title}</label>
<!--@end--> <!--@end-->
</td> </td>
</tr> </tr>
@ -143,12 +143,12 @@
<tr> <tr>
<td> <td>
<!--@foreach($group_list as $k => $v)--> <!--@foreach($group_list as $k => $v)-->
<input type="checkbox" name="enable_default_component_grant[]" value="{$k}" id="default_componen_{$k}" <!--@if(in_array($k, $editor_config->enable_default_component_grant))-->checked="checked"<!--@end-->/> <label for="default_componen_{$k}">{$v->title}</label> <label for="default_componen_{$k}" class="x_inline"><input type="checkbox" name="enable_default_component_grant[]" value="{$k}" id="default_componen_{$k}" <!--@if(in_array($k, $editor_config->enable_default_component_grant))-->checked="checked"<!--@end-->/> {$v->title}</label>
<!--@end--> <!--@end-->
</td> </td>
<td> <td>
<!--@foreach($group_list as $k => $v)--> <!--@foreach($group_list as $k => $v)-->
<input type="checkbox" name="enable_comment_default_component_grant[]" value="{$k}" id="comment_default_component_{$k}" <!--@if(in_array($k, $editor_config->enable_comment_default_component_grant))-->checked="checked"<!--@end-->/> <label for="comment_default_component_{$k}">{$v->title}</label> <label for="comment_default_component_{$k}" class="x_inline"><input type="checkbox" name="enable_comment_default_component_grant[]" value="{$k}" id="comment_default_component_{$k}" <!--@if(in_array($k, $editor_config->enable_comment_default_component_grant))-->checked="checked"<!--@end-->/> {$v->title}</label>
<!--@end--> <!--@end-->
</td> </td>
</tr> </tr>
@ -159,18 +159,20 @@
<tr> <tr>
<td> <td>
<!--@foreach($group_list as $k => $v)--> <!--@foreach($group_list as $k => $v)-->
<input type="checkbox" name="enable_component_grant[]" value="{$k}" id="componen_{$k}" <!--@if(in_array($k, $editor_config->enable_component_grant))-->checked="checked"<!--@end-->/> <label for="componen_{$k}">{$v->title}</label> <label for="componen_{$k}" class="x_inline"><input type="checkbox" name="enable_component_grant[]" value="{$k}" id="componen_{$k}" <!--@if(in_array($k, $editor_config->enable_component_grant))-->checked="checked"<!--@end-->/> {$v->title}</label>
<!--@end--> <!--@end-->
</td> </td>
<td> <td>
<!--@foreach($group_list as $k => $v)--> <!--@foreach($group_list as $k => $v)-->
<input type="checkbox" name="enable_comment_component_grant[]" value="{$k}" id="comment_component_{$k}" <!--@if(in_array($k, $editor_config->enable_comment_component_grant))-->checked="checked"<!--@end-->/> <label for="comment_component_{$k}">{$v->title}</label> <label for="comment_component_{$k}" class="x_inline"><input type="checkbox" name="enable_comment_component_grant[]" value="{$k}" id="comment_component_{$k}" <!--@if(in_array($k, $editor_config->enable_comment_component_grant))-->checked="checked"<!--@end-->/> {$v->title}</label>
<!--@end--> <!--@end-->
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div class="btnArea"> <div class="x_clearfix btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_save}"/></span> <div class="x_pull-right">
<button class="x_btn x_btn-primary" type="submit">{$lang->cmd_save}</button>
</div>
</div> </div>
</form> </form>

View file

@ -9,18 +9,17 @@
<input type="hidden" name="module_srl" value="{$module_srl}" /> <input type="hidden" name="module_srl" value="{$module_srl}" />
<input type="hidden" name="admin_member" value="<!--@foreach($admin_member as $key => $val)--><!--@if($member_config->identifier == 'email_address')-->{$val->email_address},<!--@else-->{$val->user_id},<!--@end--><!--@end-->" /> <input type="hidden" name="admin_member" value="<!--@foreach($admin_member as $key => $val)--><!--@if($member_config->identifier == 'email_address')-->{$val->email_address},<!--@else-->{$val->user_id},<!--@end--><!--@end-->" />
<h2 class="h2">{$lang->module_admin}</h2> <h1>{$lang->module_admin}</h1>
<p>{$lang->about_admin_id}</p> <p>{$lang->about_admin_id}</p>
<ul> <div class="x_control-group">
<li> <label class="x_control-label">
<p class="q">
<!--@if($member_config->identifier == 'email_address')--> <!--@if($member_config->identifier == 'email_address')-->
{$lang->admin_email_address} {$lang->admin_email_address}
<!--@else--> <!--@else-->
{$lang->admin_id} {$lang->admin_id}
<!--@end--> <!--@end-->
</p> </label>
<p class="a"> <div class="x_controls">
<select name="_admin_member" multiple="multiple" size="{count($admin_member)?count($admin_member):1}" style="width:290px"> <select name="_admin_member" multiple="multiple" size="{count($admin_member)?count($admin_member):1}" style="width:290px">
<!--@foreach($admin_member as $key => $val)--> <!--@foreach($admin_member as $key => $val)-->
<option value="<!--@if($member_config->identifier=='email_address')-->{$val->email_address}<!--@else-->{$val->user_id}<!--@end-->">{$val->nick_name} (<!--@if($member_config->identifier=='email_address')-->{$val->email_address}<!--@else-->{$val->user_id}<!--@end-->)</option> <option value="<!--@if($member_config->identifier=='email_address')-->{$val->email_address}<!--@else-->{$val->user_id}<!--@end-->">{$val->nick_name} (<!--@if($member_config->identifier=='email_address')-->{$val->email_address}<!--@else-->{$val->user_id}<!--@end-->)</option>
@ -30,10 +29,9 @@
<input type="text" name="admin_id" /> <input type="text" name="admin_id" />
<span class="btn"><button type="button" onclick="doInsertAdmin()">{$lang->cmd_insert}</button></span> <span class="btn"><button type="button" onclick="doInsertAdmin()">{$lang->cmd_insert}</button></span>
<span class="btn"><button type="button" onclick="doDeleteAdmin()">{$lang->cmd_delete}</button></span> <span class="btn"><button type="button" onclick="doDeleteAdmin()">{$lang->cmd_delete}</button></span>
</p> </div>
</li> </div>
</ul> <h1>{$lang->permission_setting}</h1>
<h2 class="h2">{$lang->permission_setting}</h2>
<p>{$lang->about_grant_deatil}</p> <p>{$lang->about_grant_deatil}</p>
<table class="x_table x_table-striped x_table-hover"> <table class="x_table x_table-striped x_table-hover">
<thead> <thead>
@ -65,7 +63,9 @@
<!--@end--> <!--@end-->
</tbody> </tbody>
</table> </table>
<div class="btnArea"> <div class="x_clearfix btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_save}" /></span> <div class="x_pull-right">
<button class="x_btn x_btn-primary" type="submit">{$lang->cmd_save}</button>
</div>
</div> </div>
</form> </form>

View file

@ -2,7 +2,8 @@
<p>{$XE_VALIDATOR_MESSAGE}</p> <p>{$XE_VALIDATOR_MESSAGE}</p>
</div> </div>
<form action="./" method="post" enctype="multipart/form-data"> <section class="section">
<form action="./" method="post" enctype="multipart/form-data" class="x_form-horizontal">
<input type="hidden" name="module" value="module" /> <input type="hidden" name="module" value="module" />
<input type="hidden" name="vid" value="{$vid}" /> <input type="hidden" name="vid" value="{$vid}" />
<input type="hidden" name="mid" value="{$mid}" /> <input type="hidden" name="mid" value="{$mid}" />
@ -10,17 +11,20 @@
<input type="hidden" name="_mode" value="{$mode}" /> <input type="hidden" name="_mode" value="{$mode}" />
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" /> <input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
<input type="hidden" name="page" value="{$page}" /> <input type="hidden" name="page" value="{$page}" />
<h1>{$lang->skin_default_info}</h1>
<h2 class="h2">{$lang->skin_default_info}</h2> <div class="x_control-group">
<label class="x_control-label">
<ul> {$lang->skin}
<li> </label>
<p class="q">{$lang->skin}</p> <div class="x_controls">
<p class="a">{$skin_info->title}</p> {$skin_info->title}
</li> </div>
<li> </div>
<p class="q">{$lang->skin_author}</p> <div class="x_control-group">
<p class="a"> <label class="x_control-label">
{$lang->skin_author}
</label>
<div class="x_controls">
<block loop="$skin_info->author=>$author"> <block loop="$skin_info->author=>$author">
{$author->name} {$author->name}
<block cond="$author->homepage || $author->email_address"> <block cond="$author->homepage || $author->email_address">
@ -29,32 +33,41 @@
<a href="mailto:{$author->email_address}" cond="$author->email_address">{$author->email_address}</a>) <a href="mailto:{$author->email_address}" cond="$author->email_address">{$author->email_address}</a>)
</block><br /> </block><br />
</block> </block>
</p> </div>
</li> </div>
<li cond="$skin_info->homepage"> <div class="x_control-group" cond="$skin_info->homepage">
<p class="q">{$lang->homepage}</p> <label class="x_control-label">{$lang->homepage}
<p class="a"><a href="{$skin_info->homepage}" onclick="window.open(this.href);return false;">{$skin_info->homepage}</a></p> </label>
</li> <div class="x_controls">
<li> <a href="{$skin_info->homepage}" onclick="window.open(this.href);return false;">{$skin_info->homepage}</a>
<p class="q">{$lang->date}</p> </div>
<p class="a">{zdate($skin_info->date, 'Y-m-d')}</p> </div>
</li> <div class="x_control-group">
<li cond="$skin_info->license || $skin_info->license_link"> <label class="x_control-label">{$lang->date}
<p class="q">{$lang->skin_license}</p> </label>
<p class="a">{nl2br(trim($skin_info->license))}</p> <div class="x_controls">{zdate($skin_info->date, 'Y-m-d')}
</div>
</div>
<div class="x_control-group" cond="$skin_info->license || $skin_info->license_link">
<label class="x_control-label">{$lang->skin_license}
</label>
<div class="x_controls">
{nl2br(trim($skin_info->license))}
<p cond="$skin_info->license_link"><a href="{$skin_info->license_link}" onclick="window.close(); return false;">{$skin_info->license_link}</a></p> <p cond="$skin_info->license_link"><a href="{$skin_info->license_link}" onclick="window.close(); return false;">{$skin_info->license_link}</a></p>
</li> </div>
<li cond="$skin_info->description"> </div>
<p class="q">{$lang->description}</p> <div class="x_control-group" cond="$skin_info->description">
<p class="a">{nl2br(trim($skin_info->description))}</p> <label class="x_control-label">{$lang->description}
</li> </label>
</ul> <div class="x_controls">{nl2br(trim($skin_info->description))}
</div>
</div>
<h2 class="h2">{$lang->extra_vars}</h2> <h1>{$lang->extra_vars}</h1>
<ul> <div class="x_control-group" cond="$skin_info->colorset" class="colorset">
<li cond="$skin_info->colorset" class="colorset"> <label class="x_control-label">{$lang->colorset}
<p class="q">{$lang->colorset}</p> </label>
<div class="a"> <div class="x_controls">
<block loop="$skin_info->colorset => $key, $val"> <block loop="$skin_info->colorset => $key, $val">
<!--@if($val->screenshot)--> <!--@if($val->screenshot)-->
{@ $_img_info = getImageSize($val->screenshot); $_height = $_img_info[1]+40; $_width = $_img_info[0]+20; $_talign = "center"; } {@ $_img_info = getImageSize($val->screenshot); $_height = $_img_info[1]+40; $_width = $_img_info[0]+20; $_talign = "center"; }
@ -62,8 +75,8 @@
{@ $_width = 200; $_height = 20; $_talign = "left"; } {@ $_width = 200; $_height = 20; $_talign = "left"; }
<!--@end--> <!--@end-->
<div style="display:inline-block;text-align:{$_talign};margin-bottom:1em;width:{$_width}px;height:{$_height}px;margin-right:10px;"> <div style="display:inline-block;text-align:{$_talign};margin-bottom:1em;width:{$_width}px;height:{$_height}px;margin-right:10px;">
<input type="radio" name="colorset" value="{$val->name}" id="colorset_{$key}" checked="checked"|cond="$skin_vars['colorset']->value==$val->name" /> <label for="colorset_{$key}"><input type="radio" name="colorset" value="{$val->name}" id="colorset_{$key}" checked="checked"|cond="$skin_vars['colorset']->value==$val->name" />
<label for="colorset_{$key}">{$val->title}</label> {$val->title}</label>
<block cond="$val->screenshot"> <block cond="$val->screenshot">
<br /> <br />
<img src="../../../{$val->screenshot}" alt="{$val->title}" style="border:1px solid #888888;padding:2px;margin:2px;"/> <img src="../../../{$val->screenshot}" alt="{$val->title}" style="border:1px solid #888888;padding:2px;margin:2px;"/>
@ -71,59 +84,55 @@
</div> </div>
</block> </block>
</div> </div>
</li> </div>
<block loop="$skin_info->extra_vars => $key, $val"> <block loop="$skin_info->extra_vars => $key, $val">
<block cond="$val->group && ((!$group) || $group != $val->group)"> <block cond="$val->group && ((!$group) || $group != $val->group)">
{@$group = $val->group} {@$group = $val->group}
</ul> <h1>{$group}</h1>
<h2 class="h2">{$group}</h2>
<ul>
</block> </block>
<li>
<p class="q">{$val->title}</p> <div class="x_control-group">
<p cond="$val->type == 'text'" class="a"> <label class="x_control-label">{$val->title}</label>
<div class="x_controls" cond="$val->type == 'text'">
{@$use_multilang = true} {@$use_multilang = true}
<input type="text" name="{$val->name}" value="<!--@if(strpos($val->value, '$user_lang->') === false)-->{$val->value}<!--@else-->{htmlspecialchars($val->value)}<!--@end-->" class="lang_code" /> <input type="text" name="{$val->name}" value="<!--@if(strpos($val->value, '$user_lang->') === false)-->{$val->value}<!--@else-->{htmlspecialchars($val->value)}<!--@end-->" class="lang_code" />
</p> </div>
<div cond="$val->type == 'textarea'" class="a"> <div class="x_controls" cond="$val->type == 'textarea'">
{@$use_multilang_textarea = true} {@$use_multilang_textarea = true}
<textarea rows="8" cols="42" name="{$val->name}" value="<!--@if(strpos($val->value, '$user_lang->') === false)-->{$val->value}<!--@else-->{htmlspecialchars($val->value)}<!--@end-->" class="lang_code"></textarea> <textarea rows="8" cols="42" name="{$val->name}" value="<!--@if(strpos($val->value, '$user_lang->') === false)-->{$val->value}<!--@else-->{htmlspecialchars($val->value)}<!--@end-->" class="lang_code"></textarea>
</div> </div>
<p cond="$val->type == 'select'" class="a"> <div class="x_controls" cond="$val->type == 'select'">
<select name="{$val->name}"> <select name="{$val->name}">
<option loop="$val->options => $k, $v" value="{$v->value}" selected="selected"|cond="$v->value == $val->value">{$v->title}</option> <option loop="$val->options => $k, $v" value="{$v->value}" selected="selected"|cond="$v->value == $val->value">{$v->title}</option>
</select> </select>
</p> </div>
<p cond="$val->type == 'checkbox'" class="a"> <div class="x_controls" cond="$val->type == 'checkbox'">
<span loop="$val->options => $k, $v"> <label loop="$val->options => $k, $v" for="ch_{$key}_{$k}" class="x_inline"><input type="checkbox" name="{$val->name}[]" value="{$v->value}" id="ch_{$key}_{$k}" checked="checked"|cond="@in_array($v->value, $val->value)" class="checkbox" />
<input type="checkbox" name="{$val->name}[]" value="{$v->value}" id="ch_{$key}_{$k}" checked="checked"|cond="@in_array($v->value, $val->value)" class="checkbox" /> {$v->title}</label>
<label for="ch_{$key}_{$k}">{$v->title}</label> </div>
</span> <div class="x_controls" cond="$val->type == 'radio'">
</p> <label for="ch_{$key}_{$k}" loop="$val->options => $k, $v" class="x_inline"><input type="radio" name="{$val->name}" value="{$v->value}" id="ch_{$key}_{$k}" checked="checked"|cond="$v->value==$val->value" />{$v->title}</label>
<p cond="$val->type == 'radio'" class="a"> </div>
<span loop="$val->options => $k, $v"> <div class="x_controls" cond="$val->type == 'image'">
<input type="radio" name="{$val->name}" value="{$v->value}" id="ch_{$key}_{$k}" checked="checked"|cond="$v->value==$val->value" />
<label for="ch_{$key}_{$k}">{$v->title}</label>
</span>
</p>
<div cond="$val->type == 'image'" class="a">
<div cond="$val->value"> <div cond="$val->value">
<img src="{$val->value}" /><br /> <img src="{$val->value}" /><br />
<input type="checkbox" name="del_{$val->name}" value="Y" id="del_{$val->name}" class="checkbox" /> <label for="del_{$val->name}"><input type="checkbox" name="del_{$val->name}" value="Y" id="del_{$val->name}" class="checkbox" />
<label for="del_{$val->name}">{$lang->cmd_delete}</label> {$lang->cmd_delete}</label>
</div> </div>
<input type="file" name="{$val->name}" value="" /> <input type="file" name="{$val->name}" value="" />
</div> </div>
<div class="x_controls" cond="$val->description" class="desc">
<p cond="$val->description" class="desc">{nl2br(trim($val->description))}</p> {nl2br(trim($val->description))}
</li> </div>
</div>
</block> </block>
</ul> <div class="x_clearfix btnArea">
<div class="btnArea"> <div class="x_pull-right">
<span class="btn"><input type="submit" value="{$lang->cmd_registration}" /></span> <button class="x_btn x_btn-primary" type="submit">{$lang->cmd_registration}</button>
</div>
</div> </div>
</form> </form>
</section>
<include target="../../module/tpl/include.multilang.html" /> <include target="../../module/tpl/include.multilang.html" />
<include target="../../module/tpl/include.multilang.textarea.html" /> <include target="../../module/tpl/include.multilang.textarea.html" />

View file

@ -7,7 +7,7 @@
<div class="x_page-header" cond="$module_info->mid"> <div class="x_page-header" cond="$module_info->mid">
<h1> <h1>
{$module_info->mid}<block cond="$module_info->is_default=='Y'">({$lang->is_default})</block> {$module_info->mid}<block cond="$module_info->is_default=='Y'">({$lang->is_default})</block>
|<a href="{getSiteUrl($module_info->domain,'','mid',$module_info->mid)}">{$lang->view}</a> <span style="font-weight:normal"> | <a href="{getSiteUrl($module_info->domain,'','mid',$module_info->mid)}" target="_blank">{$lang->view}</a></span>
</h1> </h1>
</div> </div>
<ul class="x_nav x_nav-tabs" cond="$act != 'dispPageAdminDelete'"> <ul class="x_nav x_nav-tabs" cond="$act != 'dispPageAdminDelete'">

View file

@ -9,6 +9,10 @@
<input type="hidden" name="page" value="{$page}" /> <input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_srl}" /> <input type="hidden" name="module_srl" value="{$module_srl}" />
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" /> <input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
<div class="x_control-group">
<label class="x_control-label">{$lang->page_type}</label>
<div class="x_controls">{$lang->page_type_name[$module_info->page_type]}</div>
</div>
<div class="x_control-group"> <div class="x_control-group">
<label class="x_control-label" for="page_name">{$lang->mid}</label> <label class="x_control-label" for="page_name">{$lang->mid}</label>
<div class="x_controls"> <div class="x_controls">
@ -16,158 +20,117 @@
<p>{$lang->about_mid}</p> <p>{$lang->about_mid}</p>
</div> </div>
</div> </div>
</form> <div class="x_control-group">
</section> <label class="x_control-label" for="module_category_srl">{$lang->module_category}</label>
<form> <div class="x_controls">
<table class="x_table x_table-striped x_table-hover"> <select name="module_category_srl" id="module_category_srl">
<tr>
<th scope="row">{$lang->page_type}</th>
<td class="text">
{$lang->page_type_name[$module_info->page_type]}
</td>
</tr>
<tr>
<th scope="row">{$lang->mid}</th>
<td class="text">
<input type="text" name="page_name" value="{$module_info->mid}" />
<p>{$lang->about_mid}</p>
</td>
</tr>
<tr>
<th scope="row">{$lang->module_category}</th>
<td class="text">
<select name="module_category_srl">
<option value="0">{$lang->notuse}</option> <option value="0">{$lang->notuse}</option>
<!--@foreach($module_category as $key => $val)--> <!--@foreach($module_category as $key => $val)-->
<option value="{$key}" <!--@if($module_info->module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option> <option value="{$key}" <!--@if($module_info->module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end--> <!--@end-->
</select> </select>
<p>{$lang->about_module_category}</p> <p>{$lang->about_module_category}</p>
</td> </div>
</tr> </div>
<tr> <div class="x_control-group">
<th scope="row">{$lang->browser_title}</th> <label class="x_control-label" for="browser_title">{$lang->browser_title}</label>
<td class="text"> <div class="x_controls">
<input type="text" name="browser_title" value="{htmlspecialchars($module_info->browser_title)}" class="lang_code" /> <input type="text" name="browser_title" id="browser_title" value="{htmlspecialchars($module_info->browser_title)}" class="lang_code" />
</td> </div>
</tr> </div>
<tr> <div class="x_control-group">
<th scope="row">{$lang->layout}</th> <label class="x_control-label" for="layout_srl">{$lang->layout}</label>
<td class="text"> <div class="x_controls">
<select name="layout_srl"> <select name="layout_srl" id="layout_srl">
<option value="0">{$lang->notuse}</option> <option value="0">{$lang->notuse}</option>
<!--@foreach($layout_list as $key => $val)--> <!--@foreach($layout_list as $key => $val)-->
<option value="{$val->layout_srl}" <!--@if($module_info->layout_srl==$val->layout_srl)-->selected="selected"<!--@end-->>{$val->title} ({$val->layout})</option> <option value="{$val->layout_srl}" <!--@if($module_info->layout_srl==$val->layout_srl)-->selected="selected"<!--@end-->>{$val->title} ({$val->layout})</option>
<!--@end--> <!--@end-->
</select> </select>
<p>{$lang->about_layout}</p> <p>{$lang->about_layout}</p>
</td> </div>
</tr> </div>
<tr> <div class="x_control-group">
<th scope="row">{$lang->mobile_view}</th> <label class="x_control-label" for="use_mobile">{$lang->mobile_view}</label>
<td class="text"> <div class="x_controls">
<input type="checkbox" name="use_mobile" id="use_mobile" value="Y" <!--@if($module_info->use_mobile == "Y")-->checked="checked"<!--@end--> /> <input type="checkbox" name="use_mobile" id="use_mobile" value="Y" <!--@if($module_info->use_mobile == "Y")-->checked="checked"<!--@end--> />
<label for="use_mobile">{$lang->about_mobile_view}</label> <label for="use_mobile">{$lang->about_mobile_view}</label>
</td> </div>
</tr> </div>
<tr> <div class="x_control-group">
<th scope="row">{$lang->mobile_layout}</th> <label class="x_control-label" for="mlayout_srl">{$lang->mobile_layout}</label>
<td class="text"> <div class="x_controls">
<select name="mlayout_srl"> <select name="mlayout_srl" id="mlayout_srl">
<option value="0">{$lang->notuse}</option> <option value="0">{$lang->notuse}</option>
<!--@foreach($mlayout_list as $key => $val)--> <!--@foreach($mlayout_list as $key => $val)-->
<option value="{$val->layout_srl}" <!--@if($module_info->mlayout_srl==$val->layout_srl)-->selected="selected"<!--@end-->>{$val->title} ({$val->layout})</option> <option value="{$val->layout_srl}" <!--@if($module_info->mlayout_srl==$val->layout_srl)-->selected="selected"<!--@end-->>{$val->title} ({$val->layout})</option>
<!--@end--> <!--@end-->
</select> </select>
<p>{$lang->about_layout}</p> <p>{$lang->about_layout}</p>
</td> </div>
</tr> </div>
<!--@if($module_info->page_type != 'ARTICLE')--> <div class="x_control-group" cond="$module_info->page_type != 'ARTICLE'">
<tr> <label class="x_control-label" for="page_caching_interval">{$lang->page_caching_interval}</label>
<th scope="row">{$lang->page_caching_interval}</th> <div class="x_controls">
<td class="text"> <input type="text" name="page_caching_interval" id="page_caching_interval" value="{(int)$module_info->page_caching_interval}" /> {$lang->unit_min}
<input type="text" name="page_caching_interval" value="{(int)$module_info->page_caching_interval}" /> {$lang->unit_min}
<p>{$lang->about_page_caching_interval}</p> <p>{$lang->about_page_caching_interval}</p>
</td> </div>
</tr> </div>
<!--@end--> <div class="x_control-group" cond="$module_info->page_type == 'OUTSIDE'">
<!--@if($module_info->page_type == 'OUTSIDE')--> <label class="x_control-label" for="path">{$lang->opage_path}</label>
<tr> <div class="x_controls">
<th scope="row">{$lang->opage_path}</th> <input type="text" name="path" id="path" value="{htmlspecialchars($module_info->path)}" />
<td class="text">
<input type="text" name="path" value="{htmlspecialchars($module_info->path)}" />
<p>{$lang->about_opage_path}<b>{realpath("./")}</b></p> <p>{$lang->about_opage_path}<b>{realpath("./")}</b></p>
</td> </div>
</tr> </div>
<tr class="row"> <div class="x_control-group" cond="$module_info->page_type == 'OUTSIDE'">
<th scope="row">{$lang->opage_mobile_path}</th> <label class="x_control-label" for="mpath">{$lang->opage_mobile_path}</label>
<td class="text"> <div class="x_controls">
<input type="text" name="mpath" value="{htmlspecialchars($module_info->mpath)}" /> <input type="text" name="mpath" id="mpath" value="{htmlspecialchars($module_info->mpath)}" />
<p>{$lang->about_opage_mobile_path}<b>{realpath("./")}</b></p> <p>{$lang->about_opage_mobile_path}<b>{realpath("./")}</b></p>
</td> </div>
</tr> </div>
<!--@end-->
<!--@if($module_info->page_type == 'ARTICLE')--> <!--@if($module_info->page_type == 'ARTICLE')-->
<tr> <div class="x_control-group">
<th scope="row">{$lang->skin_fix}</th> <label class="x_control-label" for="is_skin_fix">{$lang->skin_fix}</label>
<td class="text"> <div class="x_controls">
<input type="checkbox" name="is_skin_fix" id="is_skin_fix" value="Y" checked="checked"|cond="$module_info->is_skin_fix == 'Y'" /> <input type="checkbox" name="is_skin_fix" id="is_skin_fix" value="Y" checked="checked"|cond="$module_info->is_skin_fix == 'Y'" />
<p>{$lang->about_skin_fix}</p> <p>{$lang->about_skin_fix}</p>
</td> </div>
</tr> </div>
<tr> <div class="x_control-group">
<th scope="row">{$lang->skin}</th> <label class="x_control-label" for="skin">{$lang->skin}</label>
<td class="text"> <div class="x_controls">
<select name="skin"> <select name="skin" id="skin">
<!--@foreach($skin_list as $key=>$val)--> <!--@foreach($skin_list as $key=>$val)-->
<option value="{$key}" <!--@if($module_info->skin==$key ||(!$module_info->skin && $key=='default'))-->selected="selected"<!--@end-->>{$val->title}</option> <option value="{$key}" <!--@if($module_info->skin==$key ||(!$module_info->skin && $key=='default'))-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end--> <!--@end-->
</select> </select>
<p>{$lang->about_skin}</p> <p>{$lang->about_skin}</p>
</td> </div>
</tr> </div>
<tr class="optionnalData articleType"> <div class="x_control-group" class="optionnalData articleType">
<th scope="row">{$lang->mobile_skin}</th> <label class="x_control-label" for="mskin">{$lang->mobile_skin}</label>
<td class="text"> <div class="x_controls">
<select name="mskin"> <select name="mskin">
<!--@foreach($mskin_list as $key=>$val)--> <!--@foreach($mskin_list as $key=>$val)-->
<option value="{$key}" <!--@if($module_info->mskin==$key ||(!$module_info->mskin && $key=='default'))-->selected="selected"<!--@end-->>{$val->title}</option> <option value="{$key}" <!--@if($module_info->mskin==$key ||(!$module_info->mskin && $key=='default'))-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end--> <!--@end-->
</select> </select>
<p>{$lang->about_skin}</p> <p>{$lang->about_skin}</p>
</td> </div>
</tr> </div>
<!--@end--> <!--@end-->
</table> <div class="x_clearfix btnArea">
<div class="btnArea"> <div class="x_pull-right">
<span class="btn"><input type="submit" value="{$lang->cmd_save}" /></span> <button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
<!--@if($module_info->page_type != 'OUTSIDE')--> <!--@if($module_info->page_type != 'OUTSIDE')-->
<span class="btn"><a href="{getUrl('','module','page','act','dispPageAdminContentModify','module_srl',$module_info->module_srl)}" target="_blank">{$lang->cmd_page_modify}...</a></span> <a href="{getUrl('','module','page','act','dispPageAdminContentModify','module_srl',$module_info->module_srl)}" class="x_btn">{$lang->cmd_page_modify}...</a>
<!--@end--> <!--@end-->
<!--@if($module=="admin")--> <!--@if($module=="admin")-->
<span class="btn"><a href="{getUrl('act','dispPageAdminContent','module_srl','')}">{$lang->cmd_list}</a></span> <a href="{getUrl('act','dispPageAdminContent','module_srl','')}" class="x_btn">{$lang->cmd_list}</a>
<!--@end--> <!--@end-->
</div> </div>
<!-- Multilingual -->
<div id="langEdit" class="langEdit tgContent">
<ul class="langList"></ul>
<div class="langInput">
<h2>{$lang->cmd_multilingual} <strong>{$lang->cmd_modify}...</strong> | <a href="#langEdit">{$lang->cmd_insert}</a></h2>
<ul>
{@
/* move current language to the top */
$a = array($lang_type=>$lang_supported[$lang_type]);
unset($lang_supported[$lang_type]);
$lang_supported = array_merge($a, $lang_supported);
}
<li loop="$lang_supported=>$code,$name" class="{$code}"><label for="{$code}_var1">{$name}</label> <input type="text" value="" id="{$code}_var1" /></li>
</ul>
<div class="action">
<div class="btnArea">
<span class="btn small"><input type="submit" value="{$lang->use}|{$lang->use_after_save}" /></span>
</div>
<p><a href="{getUrl('act','dispModuleAdminLangcode')}">{$lang->multilingual_manager}</a></p>
</div>
</div>
</div> </div>
</form> </form>
</section>

View file

@ -51,8 +51,7 @@
<div class="x_control-group"> <div class="x_control-group">
<label class="x_control-label" for="browser_title">{$lang->browser_title}</label> <label class="x_control-label" for="browser_title">{$lang->browser_title}</label>
<div class="x_controls"> <div class="x_controls">
<input type="text" name="browser_title" id="browser_title" value="{$module_info->browser_title}" id="browser_title"/> <input type="text" name="browser_title" id="browser_title" value="{$module_info->browser_title}" class="lang_code"/>
<a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','browser_title')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
<p>{$lang->about_browser_title}</p> <p>{$lang->about_browser_title}</p>
</div> </div>
</div> </div>
@ -94,6 +93,13 @@
<p>{$lang->about_page_caching_interval}</p> <p>{$lang->about_page_caching_interval}</p>
</div> </div>
</div> </div>
<div class="x_control-group optionnalData articleType">
<label class="x_control-label" for="is_skin_fix">{$lang->skin_fix}</label>
<div class="x_controls">
<input type="checkbox" name="is_skin_fix" id="is_skin_fix" value="Y" />
<p>{$lang->about_skin_fix}</p>
</div>
</div>
<div class="x_control-group optionnalData articleType"> <div class="x_control-group optionnalData articleType">
<label class="x_control-label" for="skin">{$lang->skin}</label> <label class="x_control-label" for="skin">{$lang->skin}</label>
<div class="x_controls"> <div class="x_controls">
@ -132,7 +138,7 @@
</div> </div>
<div class="x_clearfix btnArea"> <div class="x_clearfix btnArea">
<div class="x_pull-right"> <div class="x_pull-right">
<button class="x_btn x_btn-primary x_btn-large" type="submit">{$lang->cmd_delete}</button> <button class="x_btn x_btn-primary x_btn-large" type="submit">{$lang->cmd_make}</button>
</div> </div>
</div> </div>
</form> </form>