noalyss Version-9
ajax_plugin_detail.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * NOALYSS is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * NOALYSS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with NOALYSS; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21// Copyright Author Dany De Bontridder danydb@aevalys.eu
22
23/**
24 * @file
25 * @brief add, modify or delete plugin
26 *
27 */
28if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
29$msg=($new==1)?_("Nouvelle extension"):_("Modification"). " ".$me_menu->value;
31?>
32<form method="POST" id="plugin_detail_frm" onsubmit="return confirm_box('plugin_detail_frm','<?php echo _("Vous confirmez");?>')">
33<table>
34 <tr>
35 <TD><?php echo _("Label");?></td>
36 <td><?php echo $me_menu->input();?></td>
37 </tr>
38 <tr>
39 <TD><?php echo _("Code");?></td>
40 <td><?php echo $me_code->input();?></td>
41 </tr>
42 <tr>
43 <TD><?php echo _("Description");?></td>
44 <td><?php echo $me_description->input();?></td>
45 </tr>
46 <tr>
47 <TD><?php echo _("Fichier");?></td>
48 <td><?php echo $me_file->input();?></td>
49 </tr>
50</table>
51 <?php
52 if ($new ==1 )
53 {
54 echo HtmlInput::hidden('save_plugin',1);
55 echo HtmlInput::submit("save_plugin_sbt",_("Ajouter ce plugin"));
56 } else {
57 $delete=new ICheckBox('delete_pl');
58 echo "<p>"._("Voulez-vous effacer ce plugin ?")." ".$delete->input()."</p>";
59 echo HtmlInput::hidden('mod_plugin',1);
60 echo HtmlInput::submit("mod_plugin_sbt",_("Modifier ce plugin"));
61
62 }
63 ?>
64</form>
tr($p_string, $p_extra='')
Definition: ac_common.php:88
td($p_string='', $p_extra='')
surround the string with td
Definition: ac_common.php:83
static hidden($p_name, $p_value, $p_id="")
static title_box($p_name, $p_div, $p_mod="close", $p_js="", $p_draggable="n", $p_enlarge='n')
Title for boxes, you can customize the symbol thanks symbol with the mode "custom".
static submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
Html Input.
$all table