30if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
33echo
'<div class="content">';
37if ( isset(
$_POST[
'save_plugin']))
39 extract(
$_POST, EXTR_SKIP);
42 $plugin->me_menu=$me_menu;
43 $plugin->me_file=$me_file;
44 $plugin->me_description=$me_description;
45 $plugin->me_parameter=
'plugin_code='.$me_code;
46 $plugin->insert_plugin();
51if (isset(
$_POST[
'mod_plugin']))
53 extract (
$_POST, EXTR_SKIP);
55 $plugin->me_code=strtoupper(
$me_code);
56 $plugin->me_menu=$me_menu;
57 $plugin->me_file=$me_file;
58 $plugin->me_description=$me_description;
59 $plugin->me_parameter=
'plugin_code='.strtoupper(
$me_code);
60 if ( !isset ($delete_pl))
62 $plugin->update_plugin();
66 $plugin->remove_plugin();
72if ( isset(
$_POST[
'create_menu'])|| isset(
$_POST[
'modify_menu']))
74 extract(
$_POST, EXTR_SKIP);
76 $menu_ref->me_code=strtoupper(
$me_code);
77 $menu_ref->me_menu=$me_menu;
78 $menu_ref->me_file=$me_file;
79 $menu_ref->me_description=$me_description;
80 $menu_ref->me_parameter=$me_parameter;
81 $menu_ref->me_url=$me_url;
82 $menu_ref->me_javascript=$me_javascript;
83 $menu_ref->me_type=
'ME';
84 $check=$menu_ref->verify();
87 if (isset(
$_POST[
'create_menu']))
93 if ($menu_ref->verify() == 0)
106$table->add(_(
'Code'),
$url,
"order by me_code asc",
"order by me_code desc",
"codea",
"coded");
107$table->add(_(
'Menu'),
$url,
"order by me_menu asc",
"order by me_menu desc",
"menua",
"menud");
108$table->add(_(
'Description'),
$url,
"order by me_description asc",
"order by me_description desc",
"desa",
"desd");
109$table->add(_(
'Type'),
$url,
"order by me_type asc",
"order by me_type desc",
"ta",
"td");
110$table->add(_(
'Fichier'),
$url,
"order by me_file asc",
"order by me_file desc",
"fa",
"fd");
111$table->add(_(
'URL'),
$url,
"order by me_url asc",
"order by me_url desc",
"urla",
"urld");
112$table->add(_(
'Paramètre'),
$url,
"order by me_parametere asc",
"order by me_parameter desc",
"paa",
"pad");
113$table->add(_(
'Javascript'),
$url,
"order by me_javascript asc",
"order by me_javascript desc",
"jsa",
"jsd");
123 array(
"value"=>
'',
"label"=>_(
"Tout")),
124 array(
"value"=>
'ME',
"label"=>_(
"Menu")),
125 array(
"value"=>
'PR',
"label"=>_(
"Impression")),
126 array(
"value"=>
'PL',
"label"=>_(
"Extension / Plugin")),
127 array(
"value"=>
'SP',
"label"=>_(
"Valeurs spéciales"))
138<fieldset><legend><?php echo _(
'Recherche')?></legend>
148echo
HtmlInput::button(
"Add_plugin", _(
"Ajout d'un plugin"),
"onclick=add_plugin($gDossier)");
149echo
HtmlInput::button(
"Add_menu", _(
"Ajout d'un menu"),
"onclick=create_menu($gDossier)");
151echo
'<table class="result" id="menu_tb">';
153echo
'<th>'.$table->get_header(0).
'</th>';
154echo
'<th>'.$table->get_header(1).
'</th>';
155echo
'<th>'.$table->get_header(2).
'</th>';
156echo
'<th>'.$table->get_header(3).Icon_Action::infobulle(33).
'</th>';
157echo
'<th>'.$table->get_header(4).
'</th>';
158echo
'<th>'.$table->get_header(5).
'</th>';
159echo
'<th>'.$table->get_header(6).
'</th>';
160echo
'<th>'.$table->get_header(7).
'</th>';
167 switch (
$row->me_type)
170 $js = sprintf(
'<A class="line" href="javascript:void(0)" onclick="mod_plugin(\'%s\',\'%s\')">%s</A>',
$gDossier,
$row->me_code,
$row->me_code);
173 $js = sprintf(
'<A class="line" href="javascript:void(0)" onclick="modify_menu(\'%s\',\'%s\')">%s</A>',
$gDossier,
$row->me_code,
$row->me_code);
178 $me_description=(
$row->me_description===
null)?
"":_(
$row->me_description);
179 $me_menu=(
$row->me_menu===
null)?
"":_(
$row->me_menu);
183 echo
td(
h($me_description));
187 echo
td(
h(
$row->me_parameter));
188 echo
td(
h(
$row->me_javascript));
td($p_string='', $p_extra='')
surround the string with td
h( $row[ 'oa_description'])
static num_row($ret)
wrapper for the function pg_num_rows
static id()
return the 'gDossier' value after a check
manage the extension, it involves the table extension
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
Description of class_syn_sort_table.
if( $delta< 0) elseif( $delta==0)