Code cleaning : remove Fic_Attr , replace by Attr_Def_SQL
This commit is contained in:
parent
4b913f1e88
commit
07fedf5178
10 changed files with 68 additions and 189 deletions
|
|
@ -65,14 +65,14 @@ if ($action=="enable_search")
|
|||
}
|
||||
else
|
||||
{
|
||||
$obj=new Fiche_Attr($cn);
|
||||
$obj=new Attr_Def_SQL($cn);
|
||||
$mtable=new Card_Attribut_MTable($obj);
|
||||
$mtable->add_json_param("op", "card");
|
||||
$mtable->add_json_param("op2", "attribute");
|
||||
$mtable->set_callback("ajax_misc.php");
|
||||
$mtable->set_object_name($http->request("ctl"));
|
||||
$ad_id=$http->request("p_id");
|
||||
$mtable->get_table()->set_parameter("id", $ad_id);
|
||||
$mtable->get_table()->setp("ad_id", $ad_id);
|
||||
switch ($action)
|
||||
{
|
||||
case "input":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue