192 lines
6.0 KiB
Smarty
192 lines
6.0 KiB
Smarty
{include file='admin_header.tpl'}
|
|
<script type="text/javascript" src="../include/fckeditor/fckeditor.js"></script>
|
|
<script src="../include/ckeditor/ckeditor.js"></script>
|
|
<script type="text/javascript" src="../include/ckeditor/ckfinder/ckfinder.js"></script>
|
|
<h2>{lang_print id=11010501}</h2>
|
|
{lang_print id=11010502}
|
|
<br>{ldelim}$url->url_create('page', '{$page_info.page_key}'){rdelim}
|
|
<br>{ldelim}$url->url_create('page', '{$page_info.page_id}'){rdelim}
|
|
<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_edit.php' method='POST'>
|
|
<td class='header'>{lang_print id=11010505}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='setting1'>
|
|
{lang_print id=11010506}
|
|
</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=11010517}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='setting2'>
|
|
<input type='text' class='text' name='page_key' value='{$page_info.page_key}' 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=11010507}
|
|
<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=11010508}</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=11010509}</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=11010520}</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>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='setting2'>
|
|
{lang_print id=11010510}
|
|
<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=11010511}</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=11010512}</label><br>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='header'>{lang_print id=11010513}</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=11010514}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='setting2'>
|
|
|
|
{if $editmode == 'editor'}
|
|
|
|
<label for="editor1">
|
|
Editor 1:
|
|
</label>
|
|
<textarea cols="80" id="page_content" name="page_content" rows="10">{$page_info.page_content_editor}</textarea>
|
|
|
|
|
|
<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' );
|
|
CKFinder.setupCKEditor( editor, '../include/ckeditor/ckfinder/' );
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{else}
|
|
|
|
<textarea name='page_content' rows='40' class='template'>{$page_info.page_content}</textarea>
|
|
|
|
{/if}
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class='header'>{lang_print id=11010518}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='setting1'>
|
|
{lang_print id=11010519}
|
|
</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=11010503}'> </td>
|
|
<input type='hidden' name='task' value='dosave'>
|
|
<input type='hidden' name='page_id' value='{$page_info.page_id}'>
|
|
<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=11010504}'></td>
|
|
</tr>
|
|
</form>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
{include file='admin_footer.tpl'} |