1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
| <?php
require("fonctions.php");
if (isset($_SESSION['password_ag']))
{
}
else
{
header("Location: index.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<title>Intranet PCM</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="fr" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="DC.Language" scheme="RFC3066" content="fr" />
<link rel="stylesheet" href="style.css" type="text/css" media="screen" title="Normal" />
<!--<script language="javascript" src="fonctions_javascript.js" type="text/javascript"></script> -->
<script language="javascript" type="text/javascript">
function validation()
{
var objet = document.formulaire.objet.value;
if(document.formulaire.objet.value == "")
{
alert ('veuillez entrer votre objet');
document.formulaire.objet.focus();
return false;
}
if(document.formulaire.demandeur.value == "")
{
alert ('veuillez entrer votre demandeur');
document.formulaire.demandeur.focus();
return false;
}
else {return true;}
}
</script>
</head>
<body>
<?php
require("menuhorizontal.php");
?>
<div id="connexion">
<?php
require("blocsession.php");
?>
</div>
<?php
require("menuvertical.php");
?>
<div id="contenu">
<h2>Création d'un dossier d'affaire</h2>
<form class="f" name="formulaire" method="post" action="enr_da2.php" onsubmit="return validation();">
<p>Thème * :</p>
<?php liste_d("num_th, nom_th","theme","existe_th=1","theme",'num_th','nom_th');?>
<p>Chargé daffaire * :</p>
<?php liste_d("num_ag, nom_ag, prenom_ag","agent","existe_ag=1 and statut_ag='statut'","charge_affaire",'num_ag','nom_ag');?>
<p>Secrétaire * :</p>
<?php liste_d("num_ag, nom_ag, prenom_ag","agent","existe_ag=1 and statut_ag='secretaire'","secretaire",'num_ag','nom_ag');?>
<p>Programme :</p>
<input type="text" name="programme" size="15" maxlength="15"/>
<p>Objet * (200 caractères maximum) :</p>
<textarea name="objet" cols="68" rows="4" /></textarea>
<p>Demandeur * :</p>
<input type="text" name="demandeur" size="80" maxlength="80"/>
<p>Adresse :</p>
<input type="text" name="adresse" size="100" maxlength="100"/>
<p>Code postal :</p>
<input type="text" name="code_postal" size="10" maxlength="11"/>
<p>Ville :</p>
<input type="text" name="ville" size="80" maxlength="80"/>
<p>Pays :</p>
<input type="text" name="pays" size="60" maxlength="60"/>
<p>Date du délai :</p>
<?php enr_date("delai_jour","delai_mois","delai_annee") ?>
<p>Remarque (150 caractères maximum) :</p>
<textarea name="remarque" cols="58" rows="4" /></textarea>
<p>Tarif :</p>
<input type="text" name="tarif" size="8" maxlength="8" value="0"> </input>
<br><br>
<input type="submit" name="validation" value="Valider"/>
<input type="reset" value="Annuler" />
</form>
</div>
</body>
</html> |
Partager