<?php
/*
Copyright (C) 2008 by oscim   Project lossim  [ 15.09.2009, 09:17:59] @oscim
// kate: replace-trailing-space-save true; space-indent on; indent-width 2; mixedindent off; indent-mode cstyle; word-wrap-marker-color #41C2A4
ENCODE UTF-8
*/

if($action =='edit') tep_form (_FILENAME_MODIFIER_UN_FICHIER,'',"file=".$file.'&amp;action=edit',"post","POST",true," onsubmit='return checkForm(this)'" );
else tep_form (_FILENAME_MODIFIER_UN_FICHIER,'',"file=".$post['file'].'&amp;action=edit',"post","POST",true," onsubmit='return checkForm(this)'" );

?>
<div id="menu_inter" class="menu1">
    <p class="bottom" style="text-align:right;">
      <?php if ($action =='edit') :?>
        <?php tep_links('link_add_frere',_FILENAME_MODIFIER_UN_FICHIER.'?file_rep='.$path_rep.$the_post['lang'].'/'.$the_post['rub'].'&amp;action=new',ADD_PAGE,ADD_PAGE, true,'', '',"   style=\"margin-right:20px;\" ",2);?>
      <?php endif; ?>

      <input type="submit"   name='confirm' value="<?php print SUBMIT_COMIT ?>" onclick="montre('onload');" />

      <?php if ($action =='edit') :?>
        <a href='<?php print $post['link_public'] ?>' ><?php print VISITER_CET_ARTICLE ?></a>
        <?php  print '<a href="admin.php"   title="'.FERMER_POST.'" >'.FERMER_POST.'</a>'; ?>
        <?php tep_links('btsupp',_FILENAME_MODIFIER_UN_FICHIER."?file=$file&amp;action=del",BT_SUPP,BT_SUPP, true,'', '',' style="color:red; margin-left:20px;"',2); ?>
      <?php else: ?>
        <?php  print '<a href="admin.php"   title="'.ABANDONNER_POST.'" >'.ABANDONNER_POST.'</a>'; ?>
      <?php endif; ?>
    </p>
</div>



<div id="article">

  <div id="contenu_article" style="float:left;">
    <!-- DEBUT ARTICLE -->
    <div class="a_box">
      <?php if ($action =='edit') :?>
        <h2><?php echo FORMULAIRE_DE_MODIFICATION_DE_PAGE ?></h2>
      <?php else: ?>
        <h2><?php echo FORMULAIRE_DE_CREATION_DE_PAGE ?></h2>
      <?php endif; ?>
        <br style="clear:both"/>
        <?php print php_f_hidden('ext',(tep_not_null($the_post['ext']) ? $the_post['ext'] : 'xml') ) . php_f_hidden('file_orginal',$file); ?>
        <?php $cstr->_call('aff_articles','draw_block_content',$post,$the_post,' class="block_post info " '); ?>

        <br style="clear:both"/>

        <!--RAPPEL UPLOAD + RETOUR-->
        <p id="bt_rappel" style="width:92%"><input type="submit"   name='confirm' value="<?php print SUBMIT_COMIT ?>" onclick="montre('onload');" /><input type="submit"   name='confirm_close' value="<?php print SUBMIT_COMIT_AND_CLOSE ?>" onclick="montre('onload');" />
        <br /><br />
        </div>
        <!-- Couche JS Non intrusif pour oblige a enregistrer la pags si click ailleurs que dans element centraux form  -->
        <?php /*array_push($js_lib, "alerte_modif"); array_push($function_js_init, "alerte_modif();");*/?>

    </div>
  </div> <!-- Fin de articles -->
  <div id="gauche">
    <div class="a_box">
      <?php $cache = new HDAcache( 3600 ,'col-left-'._USER_PERSO__LOGIN , 86400 );
      if (! $cache->start_cache() ) : ?>
        <h3 style="margin:0;position: relative; top:-5px;">Attributs</h3>
        <div id="block_etat_info" class="col ">
          <?php $cstr->_call('aff_articles','draw_block_etat',$post,$the_post, ' class="info " '); ?>
        </div>

        <h3  style="margin:0;position: relative; top:-5px;">Options</h3>
          <?php print $cstr->_call('aff_articles','c_options','les_options_des_articles',$post); ?>
        </div>
      <?php  $cache->end_cache(); endif; ?>
    </div>
</div>
</form>

<?php //echo print_r($cstr); ?>