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

@ -7,7 +7,7 @@
<div class="x_page-header" cond="$module_info->mid">
<h1>
{$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>
</div>
<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="module_srl" value="{$module_srl}" />
<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">
<label class="x_control-label" for="page_name">{$lang->mid}</label>
<div class="x_controls">
@ -16,158 +20,117 @@
<p>{$lang->about_mid}</p>
</div>
</div>
</form>
</section>
<form>
<table class="x_table x_table-striped x_table-hover">
<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>
<!--@foreach($module_category as $key => $val)-->
<option value="{$key}" <!--@if($module_info->module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
</select>
<p>{$lang->about_module_category}</p>
</td>
</tr>
<tr>
<th scope="row">{$lang->browser_title}</th>
<td class="text">
<input type="text" name="browser_title" value="{htmlspecialchars($module_info->browser_title)}" class="lang_code" />
</td>
</tr>
<tr>
<th scope="row">{$lang->layout}</th>
<td class="text">
<select name="layout_srl">
<option value="0">{$lang->notuse}</option>
<!--@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>
<!--@end-->
</select>
<p>{$lang->about_layout}</p>
</td>
</tr>
<tr>
<th scope="row">{$lang->mobile_view}</th>
<td class="text">
<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>
</td>
</tr>
<tr>
<th scope="row">{$lang->mobile_layout}</th>
<td class="text">
<select name="mlayout_srl">
<option value="0">{$lang->notuse}</option>
<!--@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>
<!--@end-->
</select>
<p>{$lang->about_layout}</p>
</td>
</tr>
<!--@if($module_info->page_type != 'ARTICLE')-->
<tr>
<th scope="row">{$lang->page_caching_interval}</th>
<td class="text">
<input type="text" name="page_caching_interval" value="{(int)$module_info->page_caching_interval}" /> {$lang->unit_min}
<p>{$lang->about_page_caching_interval}</p>
</td>
</tr>
<!--@end-->
<!--@if($module_info->page_type == 'OUTSIDE')-->
<tr>
<th scope="row">{$lang->opage_path}</th>
<td class="text">
<input type="text" name="path" value="{htmlspecialchars($module_info->path)}" />
<p>{$lang->about_opage_path}<b>{realpath("./")}</b></p>
</td>
</tr>
<tr class="row">
<th scope="row">{$lang->opage_mobile_path}</th>
<td class="text">
<input type="text" name="mpath" value="{htmlspecialchars($module_info->mpath)}" />
<p>{$lang->about_opage_mobile_path}<b>{realpath("./")}</b></p>
</td>
</tr>
<!--@end-->
<!--@if($module_info->page_type == 'ARTICLE')-->
<tr>
<th scope="row">{$lang->skin_fix}</th>
<td class="text">
<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>
</td>
</tr>
<tr>
<th scope="row">{$lang->skin}</th>
<td class="text">
<select name="skin">
<!--@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>
<!--@end-->
</select>
<p>{$lang->about_skin}</p>
</td>
</tr>
<tr class="optionnalData articleType">
<th scope="row">{$lang->mobile_skin}</th>
<td class="text">
<select name="mskin">
<!--@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>
<!--@end-->
</select>
<p>{$lang->about_skin}</p>
</td>
</tr>
<!--@end-->
</table>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_save}" /></span>
<!--@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>
<!--@end-->
<!--@if($module=="admin")-->
<span class="btn"><a href="{getUrl('act','dispPageAdminContent','module_srl','')}">{$lang->cmd_list}</a></span>
<!--@end-->
<div class="x_control-group">
<label class="x_control-label" for="module_category_srl">{$lang->module_category}</label>
<div class="x_controls">
<select name="module_category_srl" id="module_category_srl">
<option value="0">{$lang->notuse}</option>
<!--@foreach($module_category as $key => $val)-->
<option value="{$key}" <!--@if($module_info->module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
</select>
<p>{$lang->about_module_category}</p>
</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 class="x_control-group">
<label class="x_control-label" for="browser_title">{$lang->browser_title}</label>
<div class="x_controls">
<input type="text" name="browser_title" id="browser_title" value="{htmlspecialchars($module_info->browser_title)}" class="lang_code" />
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="layout_srl">{$lang->layout}</label>
<div class="x_controls">
<select name="layout_srl" id="layout_srl">
<option value="0">{$lang->notuse}</option>
<!--@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>
<!--@end-->
</select>
<p>{$lang->about_layout}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="use_mobile">{$lang->mobile_view}</label>
<div class="x_controls">
<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>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="mlayout_srl">{$lang->mobile_layout}</label>
<div class="x_controls">
<select name="mlayout_srl" id="mlayout_srl">
<option value="0">{$lang->notuse}</option>
<!--@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>
<!--@end-->
</select>
<p>{$lang->about_layout}</p>
</div>
</div>
<div class="x_control-group" cond="$module_info->page_type != 'ARTICLE'">
<label class="x_control-label" for="page_caching_interval">{$lang->page_caching_interval}</label>
<div class="x_controls">
<input type="text" name="page_caching_interval" id="page_caching_interval" value="{(int)$module_info->page_caching_interval}" /> {$lang->unit_min}
<p>{$lang->about_page_caching_interval}</p>
</div>
</div>
<div class="x_control-group" cond="$module_info->page_type == 'OUTSIDE'">
<label class="x_control-label" for="path">{$lang->opage_path}</label>
<div class="x_controls">
<input type="text" name="path" id="path" value="{htmlspecialchars($module_info->path)}" />
<p>{$lang->about_opage_path}<b>{realpath("./")}</b></p>
</div>
</div>
<div class="x_control-group" cond="$module_info->page_type == 'OUTSIDE'">
<label class="x_control-label" for="mpath">{$lang->opage_mobile_path}</label>
<div class="x_controls">
<input type="text" name="mpath" id="mpath" value="{htmlspecialchars($module_info->mpath)}" />
<p>{$lang->about_opage_mobile_path}<b>{realpath("./")}</b></p>
</div>
</div>
<!--@if($module_info->page_type == 'ARTICLE')-->
<div class="x_control-group">
<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" checked="checked"|cond="$module_info->is_skin_fix == 'Y'" />
<p>{$lang->about_skin_fix}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="skin">{$lang->skin}</label>
<div class="x_controls">
<select name="skin" id="skin">
<!--@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>
<!--@end-->
</select>
<p>{$lang->about_skin}</p>
</div>
</div>
<div class="x_control-group" class="optionnalData articleType">
<label class="x_control-label" for="mskin">{$lang->mobile_skin}</label>
<div class="x_controls">
<select name="mskin">
<!--@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>
<!--@end-->
</select>
<p>{$lang->about_skin}</p>
</div>
</div>
<!--@end-->
<div class="x_clearfix btnArea">
<div class="x_pull-right">
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
<!--@if($module_info->page_type != 'OUTSIDE')-->
<a href="{getUrl('','module','page','act','dispPageAdminContentModify','module_srl',$module_info->module_srl)}" class="x_btn">{$lang->cmd_page_modify}...</a>
<!--@end-->
<!--@if($module=="admin")-->
<a href="{getUrl('act','dispPageAdminContent','module_srl','')}" class="x_btn">{$lang->cmd_list}</a>
<!--@end-->
</div>
</div>
</form>
</section>

View file

@ -51,8 +51,7 @@
<div class="x_control-group">
<label class="x_control-label" for="browser_title">{$lang->browser_title}</label>
<div class="x_controls">
<input type="text" name="browser_title" id="browser_title" value="{$module_info->browser_title}" id="browser_title"/>
<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>
<input type="text" name="browser_title" id="browser_title" value="{$module_info->browser_title}" class="lang_code"/>
<p>{$lang->about_browser_title}</p>
</div>
</div>
@ -94,6 +93,13 @@
<p>{$lang->about_page_caching_interval}</p>
</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">
<label class="x_control-label" for="skin">{$lang->skin}</label>
<div class="x_controls">
@ -132,7 +138,7 @@
</div>
<div class="x_clearfix btnArea">
<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>
</form>