<?php
$file= (isset($_GET['file']))? $_GET['file'] : '';
$n=NewFct('extract_nom_dater_evoluer',$file,"");
$p="<p>%1\$s</p>";
$format_ajax="<script type='text/javascript'> upload_ajax('%1\$s','%2\$s','%3\$s','%4\$s'); </script>";
## POUR INFO
##<div id="structure">
##	<div id="conteneur" />
//  Couche JS Non intrusif pour oblige a enregistrer la pags si click ailleurs que dans element centraux form
array_push($js_lib, "add_click_onload"); array_push($function_js_init, "add_click_onload('menu','navi');");
 ?>
	<div id="gauche">
		<div id="block_sommaire_gauche">
			 <h2><?php echo DOCUMENTS_EXISTANT ?></h2>
			 <div id="navi">
			 <?php 	print ajax_noscript ('navi','include/inc/liste_navi.inc','liste_navi'," '','".ADD_PATH_ADMIN.REP_DATA."bak/','edit_revision.php','', true", "true"); ?>
		 	</div>
		</div>
	</div>
	<div id="article">
		<div id="menu_inter" class="menu5"></div>
		<div id="contenu_article">
			<div class="i_box">
					<h1><?php echo FORMULAIRE_DE_MODIFICATION_DE_PAGE; ?></h1>
			</div>
			<div class="a_box">
			<?php if (!isset($_GET['file'])) {
				printf ($p, AFF_NOT_FILE_SELECTED );

				print "<p><nobr>".tep_links('', 'edit_revision.php?conf=supp_rev_tot','',VIDER_REP_REVISIONS, false,'', '',ajax_action_spe ('include/inc/advRmDir.inc','advRmDir', "\'".ADD_PATH_ADMIN.REP_DATA."bak/\'", "Revision suppprimés", "supp_rev_tot").Toolip(VIDER_REP_REVISIONS_D))."<p id='supp_rev_tot'>".SIZE .recursive_calcul(ADD_PATH_ADMIN.REP_DATA."bak/",true)." Ko</p></nobr></p>\n";

				print "<p><nobr>".tep_links('', 'edit_revision.php?conf=supp_rev_dbl','',VIDER_REP_DBL_REVISIONS, false,'', '',ajax_action_spe ('include/lib/lib.edit.php','delete_dbl_revisions', "\'".ADD_PATH_ADMIN.REP_DATA."bak/\'", "Doublon des Révision suppprimés", "supp_rev_dbl").Toolip(VIDER_REP_DBL_REVISIONS_D))."<p id='supp_rev_dbl'>".SIZE .recursive_calcul(ADD_PATH_ADMIN.REP_DATA."bak/",true)." Ko</p></nobr></p>\n";
			      }
			 if (isset($_GET['file'])) printf($format_ajax,'contenu_article','include/inc/edit_file_mini.inc','edit_file_mini'," \'edit_revision.php\',\'".$_GET['file']."\',\'false\',\'\' ");
			 if ( (!empty($_POST['preview'])) OR (!empty($_POST['confirm'])) ){
				$name=eregi_replace("(.*/){0,5}","",$_GET['file']);
				$ch=eregi_replace("$name","",$_GET['file']);
				if($_PX_config['debug']) print "<br />name :$ch"."$name";
				 Newfct('op_files',$name,$ch,"ADD",$_POST['message'],"" );
			}
			?>
			</div>
		</div>
	</div> <!-- Fin de articles -->
</div>