<?php
function edit_file_mini($destination,$file,$visiter=false,$dest_public='',$get=''){
      tep_form ("$destination",'',$get."&file=".$file,"post","POST",true," onsubmit='return checkForm(this)'" ) ?>
	<h2><?php echo EDITION_DU_FICHIER ?><strong><?php echo $file ?></strong></h2>
	<ul class="bouton_nav gest_file" >
		<li><span><?php print  "<a href='".$destination."' alt='".ANNULER."'>".ANNULER."</a>"; ?></span></li>
		<li><span><input id="btform_se" class="btform" type="submit" name="confirm" value="<?php print SUBMIT_ENVOYER ?>"/></span></li>
		<li><span><input id="btform_sr" class="btform" type="reset" fichier="" le="" value="<?php print SUBMIT_RESET ?>"/></span></li>
		<?php if($visiter=='visite') print "<li><a href='".URL_DU_SITE."edit.php?".$dest_public.".html' title=''>".VISITER_CET_ARTICLE."</a></li>";?>
	</ul>

	<br /><br /><br />
	<p><textarea name="message" rows="35"  class="bb_area" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" style="width:95%"><?php readfile($file); ?></textarea></p>
	<br />
	<p><?php tep_bts_form('','','SE','SR','','','',false);?></p>
	</form>
	<?php
}
?>