173 lines
6.1 KiB
Smarty
173 lines
6.1 KiB
Smarty
{include file='admin_header.tpl'}
|
|
|
|
<script src="../include/ckeditor/ckeditor.js"></script>
|
|
|
|
<script type="text/javascript" src="../include/ckeditor/ckfinder/ckfinder.js"></script>
|
|
|
|
<h2>{lang_print id=11010401}</h2>
|
|
|
|
{lang_print id=11010402}
|
|
|
|
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
{if $is_error != 0}
|
|
|
|
<div class='error'><img src='../images/error.gif' border='0' class='icon'> {$error_message}</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
<table cellpadding='0' cellspacing='0' width='95%'>
|
|
|
|
<tr><form action='admin_viewpages_add1.php' method='POST'>
|
|
|
|
<td class='header'>{lang_print id=11010405}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='setting1'>
|
|
|
|
{lang_print id=11010406}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='setting2'>
|
|
|
|
<input type='text' class='text' name='page_name' value='{$page_info.page_name}' size='40' maxlength='50'>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='setting1'>
|
|
|
|
{lang_print id=11010821}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='setting2'>
|
|
|
|
<textarea name='page_desc' cols='60' rows='3'>{$page_info.page_desc}</textarea>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='setting2'>
|
|
|
|
{lang_print id=11010807}
|
|
|
|
<select name='page_pagecat_id'>
|
|
|
|
<option value="0"></option>
|
|
|
|
{foreach from=$cats item=cat}
|
|
|
|
<option value="{$cat.cat_id}" style='font-weight: bold' {if $page_info.page_pagecat_id == $cat.cat_id} selected='selected' {/if}>{lang_print id=$cat.cat_title}</option>
|
|
|
|
{if !empty($cat.subcats)}
|
|
|
|
{foreach from=$cat.subcats item=subcat}
|
|
|
|
<option value="{$subcat.subcat_id}" {if $page_info.page_pagecat_id == $subcat.subcat_id} selected='selected' {/if}>    »     {lang_print id=$subcat.subcat_title}</option>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class='setting2'>
|
|
|
|
{lang_print id=11010407}
|
|
|
|
<br>
|
|
|
|
<input type='radio' name='page_type' id='page_type_1' value='1'{if $page_info.page_type == 1} CHECKED{/if}><label for='page_type_1'>{lang_print id=11010408}</label><br>
|
|
|
|
<input type='radio' name='page_type' id='page_type_0' value='0'{if $page_info.page_type == 0} CHECKED{/if}><label for='page_type_0'>{lang_print id=11010409}</label><br>
|
|
|
|
<input type='radio' name='page_type' id='page_type_2' value='2'{if $page_info.page_type == 2} CHECKED{/if}><label for='page_type_2'>{lang_print id=11010420}</label><br>
|
|
|
|
|
|
|
|
|
|
|
|
<select name='page_levels[]' multiple='1' size='5'>
|
|
|
|
{foreach from=$levels item=level}
|
|
|
|
<option value='{$level->level_id}' {if $level->checked}selected='selected'{/if}>{$level->level_name}</option>
|
|
|
|
{/foreach}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<br />-- AND --<br/>
|
|
|
|
<input type="checkbox" name="subnet_check" id="subnet_check" {if count($page_subnets)}checked='checked'{/if}/><label for="subnet_check">{lang_print id=11010825}</label><br/>
|
|
|
|
|
|
|
|
<select name="page_subnets[]" multiple='1' size='5'>
|
|
|
|
{foreach from=$subnets item=subnet}
|
|
|
|
<option value='{$subnet.subnet_id}' {if in_array($subnet.subnet_id, $page_subnets)}selected='selected'{/if}>{lang_print id=$subnet.subnet_name}</option>
|
|
|
|
{/foreach}
|
|
|
|
</select>
|
|
|
|
<div class="form_desc">{lang_print id=11010829}</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='setting2'>
|
|
|
|
{lang_print id=11010410}
|
|
|
|
<br>
|
|
|
|
<input type='radio' name='page_status' id='page_status_1' value='1'{if $page_info.page_status == 1} CHECKED{/if}><label for='page_status_1'>{lang_print id=11010411}</label><br>
|
|
|
|
<input type='radio' name='page_status' id='page_status_0' value='0'{if $page_info.page_status == 0} CHECKED{/if}><label for='page_status_0'>{lang_print id=11010412}</label><br>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='header'>{lang_print id=11010413}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='setting1'>
|
|
|
|
{lang_print id=11010826}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='setting2'>
|
|
|
|
<input type="checkbox" name="page_include_header" id="page_include_header" value="1" {if $page_info.page_include_header}checked='checked'{/if} /><label for="page_include_header">{lang_print id=11010827}</label>
|
|
|
|
<br />
|
|
|
|
<input type="checkbox" name="page_include_footer" id="page_include_footer" value="1" {if $page_info.page_include_footer}checked='checked'{/if} /><label for="page_include_footer">{lang_print id=11010828}</label>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='setting1'>
|
|
|
|
{lang_print id=11010414}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='setting2'>
|
|
|
|
{if $editmode == 'editor'}
|
|
|
|
<textarea name='page_content' rows='40' class='template'>{$page_info.page_content}</textarea>
|
|
|
|
{literal}
|
|
|
|
<script>
|
|
|
|
//CKFinder.setupCKEditor( );
|
|
|
|
// This call can be placed at any point after the
|
|
|
|
// <textarea>, or inside a <head><script> in a
|
|
|
|
// window.onload event handler.
|
|
|
|
|
|
|
|
// Replace the <textarea id="editor"> with an CKEditor
|
|
|
|
// instance, using default configurations.
|
|
|
|
var editor = CKEDITOR.replace( 'page_content' ,{
|
|
|
|
filebrowserBrowseUrl : '../include/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',
|
|
|
|
//filebrowserUploadUrl : '../include/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',
|
|
|
|
filebrowserImageBrowseUrl : '../include/filemanager/dialog.php?type=1&editor=ckeditor&fldr='
|
|
|
|
});
|
|
|
|
//CKFinder.setupCKEditor( editor, '../include/ckeditor/ckfinder/' );
|
|
|
|
|
|
|
|
</script>{/literal}
|
|
|
|
|
|
|
|
{else}
|
|
|
|
|
|
|
|
<textarea name='page_content' rows='40' class='template'>{$page_info.page_content}</textarea>
|
|
|
|
|
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class='header'>{lang_print id=11010418}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='setting1'>
|
|
|
|
{lang_print id=11010419}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='setting2'>
|
|
|
|
<input type='text' class='text' name='page_script' value='{$page_info.page_script}' size='100'>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class='form2'>
|
|
|
|
<table cellpadding='0' cellspacing='0'>
|
|
|
|
<tr>
|
|
|
|
<td><input type='submit' class='button' value='{lang_print id=11010403}'> </td>
|
|
|
|
<input type='hidden' name='task' value='dosave'>
|
|
|
|
<input type='hidden' name='editmode' value='{$editmode}'>
|
|
|
|
</form>
|
|
|
|
<form action='admin_viewpages.php' method='POST'>
|
|
|
|
<td><input type='submit' class='button' value='{lang_print id=11010404}'></td>
|
|
|
|
</tr>
|
|
|
|
</form>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{include file='admin_footer.tpl'} |