示例#1
0
        $res = mysql_query($rqt);
        $statut_defaut = mysql_result($res, 0);
        //on remplit le select avec la liste des statuts
        $tmpString = str_replace("!!liste_statuts!!", do_liste_statut($statut_defaut), $tmpString);
        echo $tmpString;
        break;
    case "recep":
        //on valide les receptions
        $obj_transfert->enregistre_reception($liste_transfert, $statut_reception, $section_reception, $info);
        $motif = $info[0]["motif"];
        //on affiche l'ecran principal
        $action = "";
        break;
}
if ($action == "") {
    $tmpString = do_cb_expl($msg[transferts_circ_menu_titre] . " > " . $msg[transferts_circ_menu_reception], $msg[661], $msg[transferts_circ_reception_exemplaire], "./circ.php?categ=trans&sub=" . $sub . "&f_source=" . $f_source . "&nb_per_page=" . $nb_per_page, 0, "recep");
    //on récupere l'id du statut par défaut du site de l'utilisateur
    $rqt = "SELECT transfert_statut_defaut FROM docs_location " . "INNER JOIN users ON idlocation=deflt_docs_location " . "WHERE userid=" . $PMBuserid;
    $res = mysql_query($rqt);
    $statut_defaut = mysql_result($res, 0);
    //on remplit le select avec la liste des statuts
    $tmpString = str_replace("!!liste_statuts!!", do_liste_statut($statut_defaut), $tmpString);
    $liste_sel = "<option value=0>" . $msg["transferts_circ_reception_meme_section"] . "</option>" . do_liste_section(0);
    //on remplit le select avec la liste des sections
    $tmpString = str_replace("!!liste_sections!!", $liste_sel, $tmpString);
    echo $tmpString;
    if ($form_cb_expl != "") {
        //enregistrement de la reception
        $res_rcp = $obj_transfert->enregistre_reception_cb($form_cb_expl, $statut_reception, $section_reception, $info);
        $motif = $info[0]["motif"];
        if ($res_rcp == false) {
示例#2
0
function get_cb_expl($title, $message, $title_form, $form_action, $check = 0, $type_form = "")
{
    print do_cb_expl($title, $message, $title_form, $form_action, $check, $type_form = "");
}
示例#3
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: reset.inc.php,v 1.10 2015-04-16 11:39:22 jpermanne Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
require_once "{$include_path}/expl_info.inc.php";
// Titre de la fenêtre
echo window_title($database_window_title . $msg[transferts_circ_menu_reset] . $msg[1003] . $msg[1001]);
//creation de l'objet transfert
$obj_transfert = new transfert();
$form = do_cb_expl($msg[transferts_circ_menu_titre] . " > " . $msg[transferts_circ_menu_reset], $msg[661], $msg[transferts_circ_reset_exemplaire], "./circ.php?categ=trans&sub=" . $sub, 0);
if (!$f_ex_location) {
    $f_ex_location = $deflt_docs_location;
}
if (!$f_ex_statut) {
    $f_ex_statut = $deflt_docs_statut;
}
$form_suite = "\n\t<div class='row'>\n\t\t<label class='f_ex_location' for='form_cb_expl'>{$msg['298']}</label>\n\t</div>\n\t<div class='row'>\n\t\t" . gen_liste("select distinct idlocation, location_libelle from docs_location order by location_libelle", "idlocation", "location_libelle", 'f_ex_location', "calcule_section(this);", $f_ex_location, "", "", "", "", 0) . "\n\t</div>\n\t<script type='text/javascript'>\n\tfunction calcule_section(selectBox) {\n\t\tfor (i=0; i<selectBox.options.length; i++) {\n\t\t\tid=selectBox.options[i].value;\n\t\t    list=document.getElementById(\"docloc_section\"+id);\n\t\t    list.style.display=\"none\";\n\t\t}\n\t\n\t\tid=selectBox.options[selectBox.selectedIndex].value;\n\t\tlist=document.getElementById(\"docloc_section\"+id);\n\t\tlist.style.display=\"block\";\n\t}\n\t</script>\n\t<div class='row'>\n\t\t<label class='etiquette' for='f_ex_section'>{$msg['295']}</label>\n\t</div>\n\t<div class='row'>";
$expl = new exemplaire();
$form_suite .= $expl->do_selector();
$form_suite .= "\t</div>\n\t<div class='row'>\n\t\t<label class='etiquette' for='f_ex_statut'>{$msg['297']}</label>\n\t</div>\r\n\t<div class='row'>\r\n\t\t" . do_selector('docs_statut', 'f_ex_statut', $f_ex_statut) . "\r\n\t</div>";
$form = str_replace('<!-- !!suite!! -->', $form_suite, $form);
print $form;
//si cb
if ($form_cb_expl != "") {
    $formlocid = "f_ex_section" . $f_ex_location;
    $expl_section = ${$formlocid};