<?php
/****************************************************************************************
SMI (Services Maintenance Interventions) est une gestion libre de maintenance et de SAV

Version 0.9.9

Copyright (C) 2006-2009  Sylvain FATOME
This program is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation; 
either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program
(in the directory docs); 
if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
Boston, MA  02110-1301, USA.

Contact : galawa@free.fr

Web : http://smitst.homelinux.com
****************************************************************************************/


// Vérification des tentatives de hack
$pos=strpos($_SERVER['PHP_SELF'],"inc.php");
if ($pos===FALSE)
	$ok_inc=TRUE;
else
	$ok_inc=FALSE;
if ($ok_inc==FALSE) header("Location: ../index.php");

include_once("../inc/func.inc.php");
Archivelog(@$_SESSION["code_log"]);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>SMI - <?PHP echo $title_esp_prive; ?> : Cr&eacute;ation r&eacute;pertoire</title>

<!-- Feuille de style pour les affichages courants -->
<link href="../css/smi.css" rel="stylesheet" type="text/css">

<!-- Feuille de style & Script pour le menu -->

<script language="JavaScript" src="../jscript/coolmenus/coolmenus4.js"></script>

<!-- Scripts Javascript pour fenêtres -->
<script language="JavaScript" src="../jscript/fen.js"></script>

<!-- Scripts Javascript pour contrôle de formulaire -->
<script	type="text/javascript" src="../jscript/vform/vform.js"></script>

<script language="javascript">
<!--
var tab1_champ=new Array(
	"nom:ndir ; format:txt ; req:Y ; txt:Répertoire à créer ; lmx:20 ; stok:frmok ; stbad:frmbad",
	"nom:desc ; format:txt ; req:Y ; txt:Nom complet ; lmx:100 ; stok:frmok ; stbad:frmbad",
	"nom:detail ; format:txt ; req:N ; txt:<?PHP echo html_entity_decode($txt_chp_lib); ?> ; stok:frmok ; stbad:frmbad");
//-->
</script>

<!-- Scripts Javascript divers -->
<script language="JavaScript" src="../jscript/divers.js"></script>

</head>

<body onLoad="metFocus()">
<p align="center"> <span class="titrepage">CREATION REPERTOIRE</span></p>
<br />
<br />
<br />
<!--- Formulaire de création des répertoires -->
<form action="mdir_enr.php" method="POST" enctype="multipart/form-data" name="mkdir" id="mkdir"  onSubmit="javascript:; return (VForm(this,tab1_champ,'','<?PHP echo $_SESSION["lng"]; ?>'));">
<input name="dir" type="hidden" id="dir" value="<?PHP echo @$_GET['dir'] ?>">
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td nowrap class="rubfrm" align="right" class="annot_std_gras" valign="middle" id="f_ndir">
	Nom du r&eacute;pertoire &agrave; cr&eacute;er : 
	</td>
	<td nowrap valign="middle">
	<input style="margin-left:5px;" type="text" name="ndir" size="20"  onChange="javascript:this.value=this.value.toLowerCase();"> 
	<br />
	<span class="annot_petit_it">(Sera converti en minuscules, espaces remplac&eacute;s par des &quot;&mdash;&quot;)</span>
	</td>
</tr>
<tr>
	<td nowrap class="rubfrm" align="right" valign="middle" id="f_desc">
	Nom complet : 
	</td>
	<td nowrap valign="middle">
	<input style="margin-left:5px;" type="text" name="desc" size="50"> 
	</td>
</tr>
<tr>
	<td nowrap class="rubfrm" align="right" valign="top" id="f_detail">Descriptif : </td>
	<td nowrap align="left">
	<textarea style="margin-left:5px;" name="detail" rows="10" id="detail"><?PHP echo $fic_detail; ?></textarea>
	</td>
</tr>						
</table>
<p align="center">
<input name="create" type="submit" class="bton_std" id="create" value="<?PHP echo $but_envoyer; ?>">
<input name="init" type="reset" class="bton_std" id="init" value="<?PHP echo $but_reinit; ?>">
<input name="annul" type="button" class="bton_std" id="annul" value="<?PHP echo $but_quit; ?>" onclick="javascript:; self.close('fscomp');">
</p>
</form>
<!--- Fin du Formulaire de création de répertoire -->
</body>
</html>
