0000191: Prévision : ajout de catégorie
This commit is contained in:
parent
a9acbcdc47
commit
ad0faa7a8c
2 changed files with 3 additions and 6 deletions
|
|
@ -221,7 +221,7 @@ class Anticipation
|
|||
for ($i=0;$i<MAX_CAT;$i++)
|
||||
{
|
||||
/* category name */
|
||||
$name_name=(isset($array[$i]['fc_id']))?'fr_cat'.$array[$i]['fc_id']:'fr_cat_new_'.$i;
|
||||
$name_name=(isset($array[$i]['fc_id']))?'fr_cat'.$array[$i]['fc_id']:'fr_cat_new'.$i;
|
||||
$name=new IText($name_name);
|
||||
$name->value=(isset ($array[$i]['fc_desc']))?$array[$i]['fc_desc']:'';
|
||||
$aCat[$i]['name']=$name->input();
|
||||
|
|
|
|||
|
|
@ -23,10 +23,7 @@
|
|||
/*!\file
|
||||
* \brief display, add, delete and modify forecast
|
||||
*/
|
||||
/*echo js_include('scripts.js');
|
||||
echo js_include('prototype.js');
|
||||
echo js_include('forecast.js');
|
||||
*/
|
||||
|
||||
require_once 'class_anticipation.php';
|
||||
|
||||
$sa=(isset($_REQUEST['sa']))?$_REQUEST['sa']:'';
|
||||
|
|
@ -85,7 +82,7 @@ if ( isset($_POST['mod_cat_save']))
|
|||
if (strlen(trim($_POST['fr_cat_new'.$i])) != 0 )
|
||||
{
|
||||
$c=new Forecast_Cat($cn);
|
||||
$c->set_parameter('order',$_POST['fr_order_new'.$i]);
|
||||
$c->set_parameter('order',$_POST['fc_order_new'.$i]);
|
||||
$c->set_parameter('desc',$_POST['fr_cat_new'.$i]);
|
||||
$c->set_parameter('forecast',$_POST['f_id']);
|
||||
$c->save();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue