示例#1
0
}
/**
 * @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%">
     <p class="notice">
        <?php 
echo _("Vous pouvez utiliser ceci comme des étiquettes pour marquer des documents ou \n         comme des dossiers pour rassembler des documents. Un document peut appartenir\n         à plusieurs dossiers ou avoir plusieurs étiquettes.");
?>
     </p>
    <?php 
示例#2
0
// 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;
        }
    } else {
        alert(_('Doublon'));