noalyss Version-9
anticipation-input_title.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19
20// Copyright Author Dany De Bontridder danydb@aevalys.eu
21
22/**
23 * @file
24 * @brief Display a form for the title of a forecast
25 *
26 */
27$forecast_sql = new Forecast_SQL($this->cn, $this->forecast_id);
28$fc_name = new IText("f_name", $forecast_sql->getp("f_name"));
29$fc_name->id="fc_name";
30$is_start = new ISelect("p_start");
31$is_start->value = $this->cn->make_array("select p_id,p_start from parm_periode order by p_start");
32$is_end = new ISelect("p_end");
33$is_end->value = $this->cn->make_array("select p_id,p_end from parm_periode order by p_end");
34
35$is_start->selected = $forecast_sql->getp("f_start_date");
36$is_end->selected = $forecast_sql->getp("f_end_date");
37$is_start->id=uniqid("sel");
38$is_end->id=uniqid("sel");
39
40
44
45$ip_name->add_json_param("op", "forecast");
46$ip_start->add_json_param("op", "forecast");
47$ip_end->add_json_param("op", "forecast");
48
49$ip_name->add_json_param("gDossier", Dossier::id());
50$ip_start->add_json_param("gDossier", Dossier::id());
51$ip_end->add_json_param("gDossier", Dossier::id());
52
53$ip_name->add_json_param("f_id", $this->forecast_id);
54$ip_start->add_json_param("f_id", $this->forecast_id);
55$ip_end->add_json_param("f_id", $this->forecast_id);
56
57$ip_name->set_callback("ajax_misc.php");
58$ip_start->set_callback("ajax_misc.php");
59$ip_end->set_callback("ajax_misc.php");
60
61?>
62<h1>
63 <?php
64 echo $ip_name->input();
65 ?>
66</h1>
67<div class="form-group">
68
69<label for="p_start" class="form-group"><?= _("Début") ?></label>
70<?= $ip_start->input(); ?>
71<label for="p_end" class="form-group"><?= _("Fin") ?></label>
72<?= $ip_end->input() ?>
73
74</div>
h1($p_string, $p_class="")
Definition: ac_common.php:72
$ret label
$input_from cn
Definition: balance.inc.php:66
static id()
return the 'gDossier' value after a check
ORM abstract of the table public.forecast.
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
Html Input.
Definition: itext.class.php:30
Inplace_edit class for ajax update of HtmlInput object.