rhymix/modules/page/tpl/page_insert.html

158 lines
6.4 KiB
HTML

<!--%import("filter/insert_outside.xml")-->
<!--#include("header.html")-->
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<section class="section">
<form ruleset="insertPage" action="./" method="post" enctype="multipart/form-data" class="x_form-horizontal">
<input type="hidden" name="module" value="page" />
<input type="hidden" name="act" value="procPageAdminInsert" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_srl}" />
<div class="x_control-group">
<label class="x_control-label" for="page_type">{$lang->page_type}</label>
<div class="x_controls" class="text">
<!--@if(!$module_srl)-->
<select name="page_type" id="page_type">
<option value="">{$lang->click_choice}</option>
<option value="WIDGET">{$lang->page_type_name['WIDGET']}</option>
<option value="ARTICLE">{$lang->page_type_name['ARTICLE']}</option>
<option value="OUTSIDE">{$lang->page_type_name['OUTSIDE']}</option>
</select>
<p>{$lang->about_page_type}</p>
<!--@end-->
</div>
</div>
<!--@if($logged_info->is_admin!='Y')-->
<input type="hidden" name="page_name" value="{$module_info->mid}" />
<!--@else-->
<div class="x_control-group">
<label class="x_control-label" for="page_name">{$lang->mid}</label>
<div class="x_controls">
<input type="text" name="page_name" id="page_name" value="{$module_info->mid}" />
<p>{$lang->about_mid}</p>
</div>
</div>
<!--@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>
<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}" class="lang_code"/>
<p>{$lang->about_browser_title}</p>
</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 optionnalData widgetType outsideType">
<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->caching_interval}" /> {$lang->unit_min}
<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">
<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 optionnalData articleType">
<label class="x_control-label" for="mskin">{$lang->mobile_skin}</label>
<div class="x_controls">
<select name="mskin" id="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>
<div class="x_control-group row optionnalData outsideType">
<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 row optionnalData outsideType">
<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>
<div class="x_clearfix btnArea">
<div class="x_pull-right">
<button class="x_btn x_btn-primary x_btn-large" type="submit">{$lang->cmd_make}</button>
</div>
</div>
</form>
</section>
<script>
(function($){
$('.optionnalData').hide();
$('select[name=page_type]').change(function(){
$('.optionnalData').hide();
var select = $('select[name=page_type] :selected').val();
if(select != ""){
$('.'+select.toLowerCase()+'Type').show();
}
});
})(jQuery);
</script>