issue 49 add opage module and article type

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8491 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2011-06-15 10:27:19 +00:00
parent f9b695f734
commit 3c313f80a9
31 changed files with 859 additions and 56 deletions

View file

@ -1,10 +1,30 @@
<!--%import("filter/insert_page.xml")-->
<!--%import("filter/insert_outside.xml")-->
<!--#include("header.html")-->
<form action="./" method="post" onsubmit="return procFilter(this, insert_page)" enctype="multipart/form-data">
<form id="fo_insert_page" action="./" method="post" onsubmit="return procFilter(this, insert_page)" enctype="multipart/form-data">
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_srl}" />
<table cellspacing="0" class="rowTable topGap">
<!--@if($module_srl)-->
<tr class="row2">
<th scope="row"><div>{$lang->page_type}</div></th>
<td></td>
</tr>
<!--@else-->
<tr class="row2">
<th scope="row"><div>{$lang->page_type}</div></th>
<td colspan="3">
<select name="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>
</td>
</tr>
<!--@end-->
<!--@if($logged_info->is_admin!='Y')-->
<input type="hidden" name="mid" value="{$module_info->mid}" />
<!--@else-->
@ -67,13 +87,49 @@
<p>{$lang->about_layout}</p>
</td>
</tr>
<tr>
<tr class="optionnalData widgetType outsideType">
<th scope="row"><div>{$lang->page_caching_interval}</div></th>
<td colspan="3">
<input type="text" name="page_caching_interval" value="{(int)$module_info->caching_interval}" class="inputTypeText w40" /> {$lang->unit_min}
<p>{$lang->about_page_caching_interval}</p>
</td>
</tr>
<tr class="row2 optionnalData articleType">
<th scope="row"><div>{$lang->skin}</div></th>
<td>
<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"><div>{$lang->mobile_skin}</div></th>
<td>
<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>
<tr class="row2 optionnalData outsideType">
<th scope="row"><div>{$lang->opage_path}</div></th>
<td colspan="3">
<input type="text" name="opage_path" value="{htmlspecialchars($module_info->path)}" class="inputTypeText w400" />
<p>{$lang->about_opage_path}<b>{realpath("./")}</b></p>
</td>
</tr>
<tr class="row optionnalData outsideType">
<th scope="row"><div>{$lang->opage_mobile_path}</div></th>
<td colspan="3">
<input type="text" name="opage_mpath" value="{htmlspecialchars($module_info->mpath)}" class="inputTypeText w400" />
<p>{$lang->about_opage_mobile_path}<b>{realpath("./")}</b></p>
</td>
</tr>
<tr class="row2">
<th colspan="4" class="button">
<span class="button black strong"><input type="submit" value="{$lang->cmd_save}" accesskey="s" /></span>
@ -82,3 +138,17 @@
</table>
</form>
<script type="text/javascript">
(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>