1 |
fraynaud |
88 |
<?php |
2 |
|
|
// $Id: edition_p.php,v 1.8 2009-12-15 09:26:19 jbastide Exp $ |
3 |
|
|
require_once "../obj/utils.class.php"; |
4 |
|
|
/** |
5 |
|
|
* Classe utils () |
6 |
|
|
*/ |
7 |
|
|
$f = new utils(NULL, "edition", _("edition depot"), "ico_edition.png", "edition"); |
8 |
|
|
$f->addHTMLHeadJs(array("../js/script.js")); |
9 |
|
|
// FORM |
10 |
|
|
echo "<form name='f1' id='f1'>"; |
11 |
|
|
echo _("Date debut")." "._("depot"); |
12 |
|
|
echo "<input type='text' name='datedebut' id=\"datedebut\" value=\"".date('d/m/Y').""; |
13 |
|
|
echo "\" size=\"15\" class=\"champFormulaire datepicker\" onchange='fdate(this)' onkeyup=\"\" onclick=\"\" />"; |
14 |
|
|
echo _("Date fin")." "._("depot"); |
15 |
|
|
echo "<input type='text' name='datefin' id=\"datefin\" value=\"".date('d/m/Y').""; |
16 |
|
|
echo "\" size=\"15\" class=\"champFormulaire datepicker\" onchange='fdate(this)' onkeyup=\"\" onclick=\"\" />"; |
17 |
|
|
// nature |
18 |
|
|
echo _("nature"); |
19 |
|
|
$sql="select * from nature"; |
20 |
|
|
$res = $f -> db -> query($sql); |
21 |
|
|
echo "<select name='nature' SIZE='1'>"; |
22 |
|
|
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)) |
23 |
|
|
if($row["nature"] !="T") |
24 |
|
|
echo "<option value='".$row["nature"]."'>".$row["libelle"]."</option>"; |
25 |
|
|
echo "</select>"; |
26 |
|
|
echo "<br><br><br><img src='../img/ico_rep.png' align='middle' hspace='15' border='0'><a class='lien' href='javascript:dossierdepot()'>"._("repertoire dossier depose")."</a> ("._("choix date et nature").")<br>"; |
27 |
|
|
echo "<br><img src='../img/ico_dossier.png' align='middle' hspace='15' border='0'><a class='lien' href='javascript:dossierads()'>"._("registre des ads")."</a> ("._("choix date").")<br>"; |
28 |
|
|
echo "</form>"; |
29 |
|
|
?> |