<?php /* Smarty version 2.6.25, created on 2012-07-19 11:00:14
         compiled from DefaultAdmin/article_edit.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'cat', 'DefaultAdmin/article_edit.tpl', 4, false),array('modifier', 'escape', 'DefaultAdmin/article_edit.tpl', 12, false),array('modifier', 'trim', 'DefaultAdmin/article_edit.tpl', 43, false),array('function', 'formtool_count_chars', 'DefaultAdmin/article_edit.tpl', 57, false),array('function', 'html_options', 'DefaultAdmin/article_edit.tpl', 71, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "messages.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=@ADMIN_TEMPLATE)) ? $this->_run_mod_handler('cat', true, $_tmp, "/validation.tpl") : smarty_modifier_cat($_tmp, "/validation.tpl")), 'smarty_include_vars' => array('form_id' => 'edit_article_form','validators' => $this->_tpl_vars['validators'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php echo ''; ?><?php if (( isset ( $this->_tpl_vars['error'] ) && $this->_tpl_vars['error'] > 0 ) || ! empty ( $this->_tpl_vars['sql_error'] )): ?><?php echo '<div class="error block"><h2>Error</h2><p>An error occured while saving.</p>'; ?><?php if (! empty ( $this->_tpl_vars['errorMsg'] )): ?><?php echo '<p>'; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['errorMsg'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?><?php echo '</p>'; ?><?php endif; ?><?php echo ''; ?><?php if (! empty ( $this->_tpl_vars['sql_error'] )): ?><?php echo '<p>The database server returned the following message:</p><p>'; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['sql_error'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?><?php echo '</p>'; ?><?php endif; ?><?php echo '</div>'; ?><?php endif; ?><?php echo ''; ?><?php if ($this->_tpl_vars['posted']): ?><?php echo '<div class="success block">Article saved.</div>'; ?><?php endif; ?><?php echo '<div class="block"><form method="post" action="" id="edit_article_form" name="edit_article_form""><table class="formPage"><thead><tr><th colspan="2">Edit Article</th></tr></thead><tbody><tr><td class="label required"><label for="TITLE">Title:</label></td><td class="smallDesc"><input type="text" id="TITLE" name="TITLE" value="'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '" maxlength="'; ?><?php echo @TITLE_MAX_LENGTH; ?><?php echo '" class="text" />'; ?><?php if ($this->_tpl_vars['SEO_URL'] != ''): ?><?php echo '<a class="admin_action" href="'; ?><?php if (! @ENABLE_REWRITE): ?><?php echo ''; ?><?php echo @DOC_ROOT; ?><?php echo '/article.php?id='; ?><?php echo $this->_tpl_vars['ID']; ?><?php echo ''; ?><?php else: ?><?php echo ''; ?><?php echo @DOC_ROOT; ?><?php echo '/'; ?><?php echo $this->_tpl_vars['SEO_URL']; ?><?php echo ''; ?><?php endif; ?><?php echo '" title="Preview Article on the Front End" target="_blank"><img src="'; ?><?php echo @TEMPLATE_ROOT; ?><?php echo '/images/outbox.png"/></a>'; ?><?php endif; ?><?php echo '</td></tr><tr><td class="label required"><label for="DESCRIPTION">Short Description:</label></td><td class="smallDesc"><textarea id="DESCRIPTION" name="DESCRIPTION" rows="6" cols="50" class="text" '; ?><?php echo smarty_function_formtool_count_chars(array('name' => 'DESCRIPTION','limit' => @DESCRIPTION_MAX_LENGTH,'alert' => true), $this);?><?php echo '>'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['DESCRIPTION'])) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?><?php echo '</textarea><p class="limitDesc">Limit: <input type="text" name="DESCRIPTION_limit" class="limit_field" readonly="readonly" value="'; ?><?php echo $this->_tpl_vars['DescriptionLimit']; ?><?php echo '" /></p></td></tr><tr><td class="label"><label for="ARTICLE">Article:</label></td><td class="smallDesc">'; ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=@ADMIN_TEMPLATE)) ? $this->_run_mod_handler('cat', true, $_tmp, "/rte.tpl") : smarty_modifier_cat($_tmp, "/rte.tpl")), 'smarty_include_vars' => array('NAME' => 'ARTICLE','VALUE' => $this->_tpl_vars['ARTICLE'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><?php echo '</td></tr>'; ?><?php if (@REQUIRE_REGISTERED_USER_ARTICLE): ?><?php echo '<tr><td class="label"><label for="OWNER_ID">Assign Owner:</label></td><td class="smallDesc">'; ?><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['ActiveUsersList'],'selected' => $this->_tpl_vars['OWNER_ID'],'name' => 'OWNER_ID','id' => 'OWNER_ID'), $this);?><?php echo '<p class="msg notice info">Use with care!! Selected user details will overwrite link owner name, email address and id!!</p></td></tr>'; ?><?php endif; ?><?php echo '<tr><td class="label"><label for="OWNER_NAME">Owner Name:</label></td><td class="smallDesc"><input type="text" id="OWNER_NAME" name="OWNER_NAME" value="'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['OWNER_NAME'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '" maxlength="'; ?><?php echo @USER_NAME_MAX_LENGTH; ?><?php echo '" class="text" /></td></tr><tr><td class="label"><label for="OWNER_EMAIL">Owner Email:</label></td><td class="smallDesc"><input type="text" id="OWNER_EMAIL" name="OWNER_EMAIL" value="'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['OWNER_EMAIL'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '" maxlength="255" class="text" /></td></tr><tr><td class="label required"><label for="OWNER_EMAIL_CONFIRMED">Owner Email Confirmed:</label></td><td class="smallDesc">'; ?><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['econfirm'],'selected' => $this->_tpl_vars['OWNER_EMAIL_CONFIRMED'],'name' => 'OWNER_EMAIL_CONFIRMED','id' => 'OWNER_EMAIL_CONFIRMED'), $this);?><?php echo '</td></tr><tr><td class="label required"><label for="CATEGORY_ID">Category:</label></td><td class="smallDesc">'; ?><?php echo ''; ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=@ADMIN_TEMPLATE)) ? $this->_run_mod_handler('cat', true, $_tmp, "/admin_category_select.tpl") : smarty_modifier_cat($_tmp, "/admin_category_select.tpl")), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><?php echo '</td></tr><tr><td class="label required"><label for="ARTICLE_TYPE">Type Of Article:</label></td><td class="smallDesc">'; ?><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['types'],'selected' => $this->_tpl_vars['ARTICLE_TYPE'],'name' => 'ARTICLE_TYPE','id' => 'ARTICLE_TYPE'), $this);?><?php echo '</td></tr><tr><td class="label required"><label for="STATUS">Status:</label></td><td class="smallDesc">'; ?><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['stats'],'selected' => $this->_tpl_vars['STATUS'],'name' => 'STATUS','id' => 'STATUS'), $this);?><?php echo '</td></tr><tr><td class="label"><label for="RELEASE_DATE">Release Date:</label></td><td class="smallDesc"><input id="RELEASE_DATE" type="text" name="RELEASE_DATE" value="'; ?><?php if ($this->_tpl_vars['def_rel_date'] != '' && $this->_tpl_vars['RELEASE_DATE'] == ''): ?><?php echo ''; ?><?php echo $this->_tpl_vars['def_rel_date']; ?><?php echo ''; ?><?php else: ?><?php echo ''; ?><?php echo $this->_tpl_vars['RELEASE_DATE']; ?><?php echo ''; ?><?php endif; ?><?php echo '" class="text"/><a href=""style="display: block; float: left; margin-left: 5px; margin-top: 1px;"onclick="window.open(\'../date_cal.html\',\'calendar\',\'toolbar=no,titlebar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,dependent=no,width=220,height=220\');return false;"><img src="../images/date_btn.gif" border="0"></a></td></tr>'; ?><?php if (@ENABLE_USER_META_TAGS_ARTICLE == 1): ?><?php echo '<tr class="thead"><th colspan="2">META tags</th></tr><tr class="thead"><td colspan="2" class="info notice">Define custom META tags for detail pages. Leave blank to use default tags defined for your directory.</td></tr><tr><td class="label"><label for="META_KEYWORDS">META Keywords:</label></td><td class="smallDesc"><input type="text" id="META_KEYWORDS" name="META_KEYWORDS" value="'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['META_KEYWORDS'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '" class="text" /><p class="msg notice info">Separate keywords by comma.</p></td></tr><tr><td class="label"><label for="META_DESCRIPTION">META Description:</label></td><td class="smallDesc"><textarea id="META_DESCRIPTION" name="META_DESCRIPTION" rows="3" cols="30" class="text" '; ?><?php echo smarty_function_formtool_count_chars(array('name' => 'META_DESCRIPTION','limit' => @META_DESCRIPTION_MAX_LENGTH,'alert' => true), $this);?><?php echo '>'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['META_DESCRIPTION'])) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?><?php echo '</textarea><p class="limitDesc">Limit: <input type="text" name="META_DESCRIPTION_limit" class="limit_field" readonly="readonly" value="'; ?><?php echo $this->_tpl_vars['MetaDescriptionLimit']; ?><?php echo '" /></p></td></tr>'; ?><?php endif; ?><?php echo '</tbody><tfoot><tr><td><input type="reset" id="reset-link-submit" name="reset" value="Reset" alt="Reset form" title="Reset form" class="button" /></td><td><input type="submit" id="send-link-submit" name="save" value="Save" alt="Save form" title="Save link" class="button" /></td></tr></tfoot></table><input type="hidden" name="id" value="'; ?><?php echo $this->_tpl_vars['ID']; ?><?php echo '" /><input type="hidden" name="formSubmitted" value="1" /><input type="hidden" name="submit_session" value="'; ?><?php echo $this->_tpl_vars['submit_session']; ?><?php echo '" /></form></div>'; ?>
