* along with NOALYSS; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Copyright Author Dany De Bontridder danydb@aevalys.eu if (!defined('ALLOWED')) { die('Appel direct ne sont pas permis'); } /** * @file * @brief Manage the tags * */ require_once NOALYSS_INCLUDE . '/class_tag.php'; require_once NOALYSS_INCLUDE . '/class_tool_uos.php'; $tag = new Tag($cn); $uos = new Tool_Uos('tag'); if (isset($_POST['save_tag_sb'])) { if (!isset($_POST['remove'])) { try { $uos->check(); $tag->save($_POST); $uos->save(); } catch (Exception $e) { alert("déjà sauvé"); } } else { $tag->remove($_POST); } } ?> <div style="margin-left:10%;width:80%">
} /*******************************************************************************************/ // Save order of the attributes /*******************************************************************************************/ if ($action == 'save_line') { $fiche_def = new Fiche_Def($cn, $_REQUEST['fd_id']); $fiche_def->save_order($_POST); echo $fiche_def->input_detail(); echo $retour; return; } /*******************************************************************************************/ // Save a new category of card /*******************************************************************************************/ if (isset($_POST['add_modele'])) { $single = new Tool_Uos("dup"); if ($single->get_count() == 0) { $single->save(); $fiche_def = new Fiche_Def($cn); /** * Check if we have all needed information */ if ($fiche_def->Add($_POST) == 0) { echo $fiche_def->input_detail(); echo $retour; return; } else { $fiche_def->input_new(); echo $retour; return; }
function input_new() { $single = new Tool_Uos("dup"); echo '<form method="post" style="display:inline">'; echo $single->hidden(); echo HtmlInput::hidden("p_action", "fiche"); echo dossier::hidden(); echo $this->input(); // CreateCategory($cn,$search); echo HtmlInput::submit("add_modele", _("Sauve")); echo '</FORM>'; }
<?php //This file is part of NOALYSS and is under GPL //see licence.txt echo Dossier::hidden(); echo HtmlInput::hidden('t_id', $data->t_id); echo HtmlInput::hidden('ac', $_REQUEST['ac']); $uos = new Tool_Uos('tag'); echo $uos->hidden(); $t_tag = new IText('t_tag', $data->t_tag); $t_description = new ITextarea('t_description', $data->t_description); $t_description->style = ' class="itextarea" style="height:5em;vertical-align: top;"'; ?> <p> <?php echo _("Etiquette (tag)"); ?> : <?php echo $t_tag->input(); ?> </p> <p> <?php echo _("Description"); ?> : <?php echo $t_description->input(); ?> </p> <?php // If exist you can remove it