<?php /* Smarty version 2.6.25, created on 2012-07-15 10:50:54
         compiled from inplace_editart.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'inplace_editart.tpl', 28, false),array('modifier', 'escape', 'inplace_editart.tpl', 64, false),array('modifier', 'trim', 'inplace_editart.tpl', 64, false),array('function', 'html_options', 'inplace_editart.tpl', 35, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/formtool/formtool.js"></script>
    <script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/protoaculous.1.8.1.min.js"></script>
    <script src="<?php echo @DOC_ROOT; ?>
/javascripts/jquery-1.3.2.min.js"></script>
    
    <script type="text/javascript">
    <?php echo 'jQuery.noConflict();'; ?>

    </script>
    <script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/categ_selection/categ_selection.js"></script>
    <script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/tiny_mce/tiny_mce.js"></script>     
    
        <link rel="stylesheet" type="text/css" href="<?php echo @DOC_ROOT; ?>
/templates/<?php echo @USE_TEMPLATE; ?>
/style/main.css" />   
</head>
<body style="background: #ffffff;">
    <form action="<?php echo @DOC_ROOT; ?>
/inplace_editart.php" id="submit_form" method="post">
        <h3 style="color: red"><?php echo $this->_tpl_vars['error_message']; ?>
</h3>
        <table>
            <tr>
                <td colspan="2" style="text-align: center; font-weight: bold;">Edit Article</td>
            </tr>
            <tr>
                <td>Title</td>
                <td><input type="text" name="TITLE" value="<?php echo $this->_tpl_vars['article']['TITLE']; ?>
"/></td>
            </tr>
            <?php if (count($this->_tpl_vars['categs']) > 0): ?>
            <tr>
                <td>Category</td>
                <td>
                                                
                  <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['categs'],'selected' => $this->_tpl_vars['article']['CATEGORY_ID'],'name' => 'CATEGORY_ID'), $this);?>

               
                
                </td>
            </tr>
            <?php endif; ?>
            <tr>
                <td>Short Description</td>
                <td><textarea name="DESCRIPTION" rows="10" cols="40"><?php echo $this->_tpl_vars['article']['DESCRIPTION']; ?>
</textarea></td>
            </tr>
            <tr>
                <td>Article</td>
                <td>
                    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "rte.tpl", 'smarty_include_vars' => array('NAME' => 'ARTICLE','VALUE' => $this->_tpl_vars['article']['ARTICLE'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                    
                </td>
            </tr>
            <?php if (@REQUIRE_REGISTERED_USER_ARTICLE): ?>
            <tr>
                <td>Assign Owner</td>
                <td class="smallDesc">
                    <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['ActiveUsersList'],'selected' => $this->_tpl_vars['article']['OWNER_ID'],'name' => 'OWNER_ID','id' => 'OWNER_ID'), $this);?>

                    <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; ?>
            <tr>
                <td>Owner Name</td>
                <td>
                    <input type="text" id="OWNER_NAME" name="OWNER_NAME" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['article']['OWNER_NAME'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" maxlength="<?php echo @USER_NAME_MAX_LENGTH; ?>
" class="text" />
                </td>
            </tr>
            <tr>
                <td>Owner Email</td>
                <td>
                    <input type="text" id="OWNER_EMAIL" name="OWNER_EMAIL" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['article']['OWNER_EMAIL'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" maxlength="255" class="text" />
                </td>
            </tr>
            <tr>
                <td>Type Of Article</td>
                <td>
                    <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['types'],'selected' => $this->_tpl_vars['article']['ARTICLE_TYPE'],'name' => 'ARTICLE_TYPE','id' => 'ARTICLE_TYPE'), $this);?>

                </td>
            </tr>
            <tr>
                <td>Status</td>
                <td>
                    <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['stats'],'selected' => $this->_tpl_vars['article']['STATUS'],'name' => 'STATUS','id' => 'STATUS'), $this);?>

                </td>
            </tr>
            <?php if (@ENABLE_USER_META_TAGS_ARTICLE == 1): ?>
            <tr>
                <td>META Keywords</td>
                <td>
                    <input type="text" id="META_KEYWORDS" name="META_KEYWORDS" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['article']['META_KEYWORDS'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" class="text" />
                    <p class="msg notice info">Separate keywords by comma.</p>
                </td>
            </tr>
            <tr>
                <td>META Description</td>
                <td>
                    <textarea id="META_DESCRIPTION" name="META_DESCRIPTION" rows="3" cols="30" class="text"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['article']['META_DESCRIPTION'])) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</textarea>
                </td>
            </tr>
            <?php endif; ?>
            <?php if ($this->_tpl_vars['is_admin'] == 1): ?>
				<tr>
		         <td>Release Date:</td>
		         <td>
		           <input id="RELEASE_DATE" type="text" name="RELEASE_DATE" value="<?php echo $this->_tpl_vars['article']['RELEASE_DATE']; ?>
" 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 endif; ?>
           <tr>
               <td colspan="2"> <input type="submit" name="save" value="Save" class="btn" /></td>
           </tr>
        </table>
        <input type="hidden" name="action" value="submit" />
        <input type="hidden" name="ID" value="<?php echo $this->_tpl_vars['article']['ID']; ?>
" />
		<input type="hidden" name="formSubmitted" value="1" />
    </form>
</body>
</html>