%%CB^CB5^CB53A0C5%%article_save.tpl.php 12.8 KB
<?php /* Smarty version 2.6.16, created on 2015-07-10 17:10:20
         compiled from article_save.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'article_save.tpl', 9, false),array('modifier', 'stripslashes', 'article_save.tpl', 34, false),array('modifier', 'escape', 'article_save.tpl', 34, false),)), $this); ?>
<form action="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&save" method="post" enctype="multipart/form-data">
            <table class="boxText" cellpadding="2" cellspacing="1" width="100%">
              <tbody>
<tr><td><b>velosipedy.extremstyle.ua:</b></td></tr>
<tr><td><input type="checkbox" name="velo" value="1" <?php if ($this->_tpl_vars['article']['velo'] == 1): ?>checked<?php endif; ?> /></td></tr>
			  
			  <tr>
<td>
                    <b>Äàòà:</b> <input class="input_form" value="<?php echo ((is_array($_tmp=@$_POST['date'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['article']['date']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['article']['date'])); ?>
" name="date" id="date" style="width: 70px;" type="text">
                    

                    <img src="<?php echo @URL; ?>
img/calendar.gif" id="frd_trg" style="cursor: pointer;" title="Date selector">
 <?php echo '
<script type="text/javascript">
  Calendar.setup(
    {
      inputField  : "date",         // ID of the input field
      ifFormat    : "%Y-%m-%d",    // the date format
      button      : "frd_trg"
    }
  );
</script>
'; ?>

</td>
</tr>

              <tr class="v14">
                <td align="left" width="150"><b>Çàãëàâèå
                    <font class="red10" color="#ff0000">*</font></b>&nbsp;</td>

              </tr>
              <tr class="v14">
                <td class="v10" nowrap="nowrap">
                    <input class="input_form" value="<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['title'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['article']['title']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['article']['title'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" size="120" name="title" type="text">
              </td>
              </tr>
              <tr class="v14">
                <td align="left" width="150"><b>Çàãëàâèå ukr</b>&nbsp;</td>

              </tr>
              <tr class="v14">
                <td class="v10" nowrap="nowrap">
                    <input class="input_form" value="<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['title_ukr'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['article']['title_ukr']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['article']['title_ukr'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" size="120" name="title_ukr" type="text">
              </td>
              </tr>
                            <tr class="v14">
                <td align="left" valign="top"><b>Îïèñàíèå: <font class="red10" color="#ff0000">*</font></b>&nbsp;</td>
                </tr>
              <tr class="v14">
                <td>

                    <textarea name="text" cols="90" rows="30"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['text'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['article']['text']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['article']['text'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</textarea>

                    </td>

              </tr>
                            <tr class="v14">
                <td align="left" valign="top"><b>Îïèñàíèå ukr: </b>&nbsp;</td>
                </tr>
              <tr class="v14">
                <td>

                    <textarea name="text_ukr" cols="90" rows="30"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['text_ukr'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['article']['text_ukr']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['article']['text_ukr'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</textarea>

                    </td>

              </tr>			  
                   <tr class="v14">
                <td align="left"><b>Èçîáðàæåíèÿ (jpg,gif,png):</b>&nbsp;</td>
                </tr>
              <tr class="v14">
                <td>

                    <input class="input_form" value="<?php echo $_POST['pic']; ?>
" name="pic" size="120" type="file">
                    <br />
                    <font color="red">Óäàëèòü èçîáðàæåíèÿ</font> - <input type="checkbox" name="delete_pic" value="1">
                    </td>
              </tr>
                   <tr class="v14">
                <td align="left"><b>Ôîí (jpg,gif,png):</b>&nbsp;</td>
                </tr>
              <tr class="v14">
                <td>

                    <input class="input_form" value="<?php echo $_POST['picbg']; ?>
" name="picbg" size="120" type="file">
                    <br />
                    <font color="red">Óäàëèòü èçîáðàæåíèÿ</font> - <input type="checkbox" name="delete_picbg" value="1">
                    </td>
              </tr>		
				<tr><td>
					Ôîí height:
				<input type="text" class="input_form" size="10" name="fonheight" value="<?php echo $this->_tpl_vars['article']['fonheight']; ?>
" /></td>
				</tr>			  
              <tr class="v14">
                <td align="left"><b>Íîìåðà ðóáðèê:</b></td>
              </tr>
              <tr class="v14">
                <td class="v10" nowrap="nowrap">
<div style="overflow: scroll;width:220px;height:400px;">
   <div id="check_box"><table cellpadding="4" cellspacing="1" bgcolor="#94887A" width="200">
<?php $this->assign('checkbox_akcii', ((is_array($_tmp=@$_POST['rubrics'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['article']['rubrics_checked']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['article']['rubrics_checked'])));  unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['rubrics']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
<tr bgcolor="#F2FEFA"><td <?php if ($this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['parent_id'] == 0): ?>style="font-weight:bold;"<?php endif; ?>><?php if ($this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['parent_id'] > 0): ?>&nbsp;&nbsp;&nbsp;<?php endif; ?><input type="checkbox" name="rubrics[]" id="ch<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['parent_id']; ?>
_<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
" onClick="check('ch<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
_');" value="<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
" <?php if (count ( $this->_tpl_vars['checkbox_akcii'] )):  unset($this->_sections['r']);
$this->_sections['r']['name'] = 'r';
$this->_sections['r']['loop'] = is_array($_loop=$this->_tpl_vars['checkbox_akcii']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['r']['show'] = true;
$this->_sections['r']['max'] = $this->_sections['r']['loop'];
$this->_sections['r']['step'] = 1;
$this->_sections['r']['start'] = $this->_sections['r']['step'] > 0 ? 0 : $this->_sections['r']['loop']-1;
if ($this->_sections['r']['show']) {
    $this->_sections['r']['total'] = $this->_sections['r']['loop'];
    if ($this->_sections['r']['total'] == 0)
        $this->_sections['r']['show'] = false;
} else
    $this->_sections['r']['total'] = 0;
if ($this->_sections['r']['show']):

            for ($this->_sections['r']['index'] = $this->_sections['r']['start'], $this->_sections['r']['iteration'] = 1;
                 $this->_sections['r']['iteration'] <= $this->_sections['r']['total'];
                 $this->_sections['r']['index'] += $this->_sections['r']['step'], $this->_sections['r']['iteration']++):
$this->_sections['r']['rownum'] = $this->_sections['r']['iteration'];
$this->_sections['r']['index_prev'] = $this->_sections['r']['index'] - $this->_sections['r']['step'];
$this->_sections['r']['index_next'] = $this->_sections['r']['index'] + $this->_sections['r']['step'];
$this->_sections['r']['first']      = ($this->_sections['r']['iteration'] == 1);
$this->_sections['r']['last']       = ($this->_sections['r']['iteration'] == $this->_sections['r']['total']);
 if ($this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id'] == $this->_tpl_vars['checkbox_akcii'][$this->_sections['r']['index']]): ?>checked<?php endif;  endfor; endif;  else:  endif; ?> /><?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['name']; ?>
</td></tr>
<?php endfor; endif; ?>
</table></div>
</div>
              </td>
              </tr>
  <tr bgcolor="#959595"><td><font color="#ffffff"><b>META</b></font></td></tr>
  <tr><td><b>title:</b></td></tr>
  <tr><td><input type=text name="meta_title" value="<?php echo $this->_tpl_vars['article']['meta_title']; ?>
" class="input_form" size="120"></td></tr>
  <tr><td><b>title ukr:</b></td></tr>
  <tr><td><input type=text name="meta_title_ukr" value="<?php echo $this->_tpl_vars['article']['meta_title_ukr']; ?>
" class="input_form" size="120"></td></tr>

  <tr><td><b>description:</b></td></tr>
  <tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['article']['meta_description']; ?>
" name="meta_description" size="120"></td></tr>
  <tr><td><b>description ukr:</b></td></tr>
  <tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['article']['meta_description_ukr']; ?>
" name="meta_description_ukr" size="120"></td></tr>

  <tr><td><b>keywords:</b></td></tr>
  <tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['article']['meta_keywords']; ?>
" name="meta_keywords" size="120"></td></tr>
  <tr><td><b>keywords ukr:</b></td></tr>
  <tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['article']['meta_keywords_ukr']; ?>
" name="meta_keywords_ukr" size="120"></td></tr>

  <tr><td><b>about:</b></td></tr>
  <tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['article']['meta_about']; ?>
" name="meta_about" size="120"></td></tr>
  <tr><td><b>about ukr:</b></td></tr>
  <tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['article']['meta_about_ukr']; ?>
" name="meta_about_ukr" size="120"></td></tr>

              <tr class="v14">

                <td align="center"><p>
                    </p><p>
                      <input name="save" type="hidden">
                      <input name="update_id" type="hidden" value="<?php echo ((is_array($_tmp=@$_POST['update_id'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['article']['id']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['article']['id'])); ?>
">
                      <input class="submit_blue" value="Ñîõðàíèòü" type="submit">
                      </p></td>
              </tr>
            </tbody></table>
          </form>