1 |
<?php |
2 |
// $Id: edition_d.php,v 1.4 2009-12-15 09:26:19 jbastide Exp $ |
3 |
/** |
4 |
* Fichiers requis |
5 |
*/ |
6 |
require_once "../obj/utils.class.php"; |
7 |
/** |
8 |
* Classe utils () |
9 |
*/ |
10 |
$f = new utils(NULL, "edition_d", _("edition decision"), "ico_edition.png", "edition"); |
11 |
$f->addHTMLHeadJs(array("../js/script.js")); |
12 |
// FORM |
13 |
echo "<form name='f1' id='f1'>"; |
14 |
echo _("Date debut")." "._("decision"); |
15 |
echo " <input type='text' name='datedebut' id=\"datedebut\" value=\"".date('d/m/Y').""; |
16 |
echo "\" size=\"15\" class=\"champFormulaire datepicker\" onchange='fdate(this)' onkeyup=\"\" onclick=\"\" /> "; |
17 |
echo _("Date fin")." "._("decision"); |
18 |
echo " <input type='text' name='datefin' id=\"datefin\" value=\"".date('d/m/Y').""; |
19 |
echo "\" size=\"15\" class=\"champFormulaire datepicker\" onchange='fdate(this)' onkeyup=\"\" onclick=\"\" /> "; |
20 |
// nature |
21 |
echo _("nature")." "; |
22 |
$sql="select * from ".DB_PREFIXE."nature"; |
23 |
$res = $f -> db -> query($sql); |
24 |
echo "<select name='nature' SIZE='1'>"; |
25 |
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)) |
26 |
if($row["nature"] !="T") |
27 |
echo "<option value='".$row["nature"]."'>".$row["libelle"]."</option>"; |
28 |
echo "</select>"; |
29 |
echo "<br><br>". |
30 |
" <a class='lien' href='javascript:dossierads_d()'><span class=\"om-icon om-icon-16 om-icon-fix pdf-16\" title=\""._("Edition")."\">"._("Edition")."</span> ". |
31 |
_("registre_ads")."</a><br>"; |
32 |
echo "</form>"; |
33 |
?> |