function aff_choix_quoi_export($action = "", $action_cancel = "", $titre_form = "", $bouton_valider = "") { global $cart_choix_quoi_exporter; global $catalog; global $base_path; $cart_choix_quoi_exporter = str_replace('!!action!!', $action, $cart_choix_quoi_exporter); $cart_choix_quoi_exporter = str_replace('!!action_cancel!!', $action_cancel, $cart_choix_quoi_exporter); $cart_choix_quoi_exporter = str_replace('!!titre_form!!', $titre_form, $cart_choix_quoi_exporter); $cart_choix_quoi_exporter = str_replace('!!bouton_valider!!', $bouton_valider, $cart_choix_quoi_exporter); //Lecture des différents exports possibles $catalog = array(); $n_typ_total = 0; if (file_exists("{$base_path}/admin/convert/imports/catalog_subst.xml")) { $fic_catal = "{$base_path}/admin/convert/imports/catalog_subst.xml"; } else { $fic_catal = "{$base_path}/admin/convert/imports/catalog.xml"; } _parser_($fic_catal, array("ITEM" => "_item_"), "CATALOG"); //Création de la liste des types d'import $export_type = "<select name=\"export_type\" id=\"export_type\">\n"; for ($i = 0; $i < count($catalog); $i++) { $export_type .= "<option value=\"" . $catalog[$i][INDEX] . "\">" . $catalog[$i][NAME] . "</option>\n"; } $export_type .= "</select>"; $cart_choix_quoi_exporter = str_replace("!!export_type!!", $export_type, $cart_choix_quoi_exporter); $param = new export_param(EXP_DEFAULT_GESTION); $cart_choix_quoi_exporter = str_replace("!!form_param!!", $param->check_default_param(), $cart_choix_quoi_exporter); return $cart_choix_quoi_exporter; }
function show_form($type = "pro") { global $msg, $charset; global $dsi_bannette_form; global $dsi_bannette_form_abo, $dsi_bannette_form_selvars; global $nom_prenom_abo; global $dsi_bannette_notices_template, $PMBuserid; global $form_cb, $id_classement; global $page, $nbr_lignes, $nb_per_page; if ($type == "abo") { $dsi_bannette_form = $dsi_bannette_form_abo; } if ($this->id_bannette) { $link_pagination = ""; if ($page > 1) { $link_pagination .= "&page=" . $page . "&nbr_lignes=" . $nbr_lignes . "&nb_per_page=" . $nb_per_page; } $action = "./dsi.php?categ=bannettes&sub={$type}&id_bannette={$this->id_bannette}&suite=update&id_classement={$id_classement}&form_cb={$form_cb}{$link_pagination}"; $link_duplicate = "<input type='button' class='bouton' value='" . $msg['bannette_duplicate_bouton'] . "' onclick='document.location=\"./dsi.php?categ=bannettes&sub={$type}&id_bannette={$this->id_bannette}&suite=duplicate&id_classement={$id_classement}&form_cb={$form_cb}{$link_pagination}\"' />"; $link_annul = "<input type='button' class='bouton' value='{$msg['76']}' onClick=\"document.location='./dsi.php?categ=bannettes&sub={$type}&id_bannette=&suite=search&id_classement={$id_classement}&form_cb={$form_cb}{$link_pagination}';\" />"; $button_delete = "<input type='button' class='bouton' value='{$msg['63']}' onClick=\"confirm_delete();\">"; $libelle = $msg['dsi_ban_form_modif']; } else { $action = "./dsi.php?categ=bannettes&sub={$type}&id_bannette=0&suite=update"; $link_duplicate = ""; $link_annul = "<input type='button' class='bouton' value='{$msg['76']}' onClick=\"history.go(-1);\" />"; $libelle = $msg['dsi_ban_form_creat']; $button_delete = ""; $this->notice_tpl = $dsi_bannette_notices_template; } $bannette_tpl_list = bannette_tpl::gen_tpl_select("bannette_tpl_num", $this->bannette_tpl_num); $dsi_bannette_form = str_replace('!!libelle!!', $libelle, $dsi_bannette_form); $dsi_bannette_form = str_replace('!!type!!', $type, $dsi_bannette_form); $dsi_bannette_form = str_replace('!!id_bannette!!', $this->id_bannette, $dsi_bannette_form); $dsi_bannette_form = str_replace('!!action!!', $action, $dsi_bannette_form); $dsi_bannette_form = str_replace('!!link_duplicate!!', $link_duplicate, $dsi_bannette_form); $dsi_bannette_form = str_replace('!!link_annul!!', $link_annul, $dsi_bannette_form); $dsi_bannette_form = str_replace('!!nom_bannette!!', htmlentities($this->nom_bannette, ENT_QUOTES, $charset), $dsi_bannette_form); if ($type == "pro") { $dsi_bannette_form = str_replace('!!num_classement!!', show_classement_utilise('BAN', $this->num_classement, 0), $dsi_bannette_form); } else { $dsi_bannette_form = str_replace('!!num_classement!!', "<input type=hidden name=num_classement value=0 />", $dsi_bannette_form); } global $id_empr; $dsi_bannette_form = str_replace('!!id_empr!!', $id_empr, $dsi_bannette_form); $dsi_bannette_form = str_replace('!!comment_gestion!!', htmlentities($this->comment_gestion, ENT_QUOTES, $charset), $dsi_bannette_form); $dsi_bannette_form = str_replace('!!comment_public!!', htmlentities($this->comment_public, ENT_QUOTES, $charset), $dsi_bannette_form); $dsi_bannette_form = str_replace('!!bannette_tpl_list!!', $bannette_tpl_list, $dsi_bannette_form); $dsi_bannette_form = str_replace('!!entete_mail!!', htmlentities($this->entete_mail, ENT_QUOTES, $charset), $dsi_bannette_form); $dsi_bannette_form = str_replace('!!piedpage_mail!!', htmlentities($this->piedpage_mail, ENT_QUOTES, $charset), $dsi_bannette_form); $dsi_bannette_form = str_replace('!!date_last_remplissage!!', htmlentities($this->aff_date_last_remplissage, ENT_QUOTES, $charset), $dsi_bannette_form); $date_clic = "onClick=\"openPopUp('./select.php?what=calendrier&caller=saisie_bannette&date_caller=" . substr(preg_replace('/-/', '', $this->date_last_envoi), 0, 8) . "¶m1=form_date_last_envoi¶m2=form_aff_date_last_envoi&auto_submit=NO&date_anterieure=YES', 'date_last_envoi', 250, 300, -2, -2, 'toolbar=no, dependent=yes, resizable=yes')\" "; $date_last_envoi = "\n\t\t\t\t\t<input type='hidden' name='form_date_last_envoi' value='" . str_replace(' ', '', str_replace('-', '', str_replace(':', '', $this->date_last_envoi))) . "' />\n\t\t\t\t\t<input class='bouton' type='button' name='form_aff_date_last_envoi' value='" . $this->aff_date_last_envoi . "' " . $date_clic . " />"; $dsi_bannette_form = str_replace('!!date_last_envoi!!', $date_last_envoi, $dsi_bannette_form); $dsi_bannette_form = str_replace('!!archive_number!!', $this->archive_number, $dsi_bannette_form); if ($type == "pro") { $dsi_bannette_form = str_replace('!!proprio_bannette!!', htmlentities($msg['dsi_ban_no_proprio'], ENT_QUOTES, $charset), $dsi_bannette_form); } else { $dsi_bannette_form = str_replace('!!proprio_bannette!!', htmlentities($nom_prenom_abo, ENT_QUOTES, $charset), $dsi_bannette_form); } if ($this->bannette_auto) { $dsi_bannette_form = str_replace('!!bannette_auto!!', "checked", $dsi_bannette_form); } else { $dsi_bannette_form = str_replace('!!bannette_auto!!', "", $dsi_bannette_form); } $dsi_bannette_form = str_replace('!!periodicite!!', htmlentities($this->periodicite, ENT_QUOTES, $charset), $dsi_bannette_form); if ($this->diffusion_email) { $dsi_bannette_form = str_replace('!!diffusion_email!!', "checked='checked'", $dsi_bannette_form); } else { $dsi_bannette_form = str_replace('!!diffusion_email!!', "", $dsi_bannette_form); } $dsi_bannette_form = str_replace('!!nb_notices_diff!!', htmlentities($this->nb_notices_diff, ENT_QUOTES, $charset), $dsi_bannette_form); $dsi_bannette_form = str_replace('!!notice_tpl!!', notice_tpl_gen::gen_tpl_select("notice_tpl", $this->notice_tpl), $dsi_bannette_form); if ($this->statut_not_account) { $dsi_bannette_form = str_replace('!!statut_not_account!!', "checked", $dsi_bannette_form); } else { $dsi_bannette_form = str_replace('!!statut_not_account!!', "", $dsi_bannette_form); } // group_type, group_pperso, group_facettes if ($this->group_type) { $dsi_bannette_form = str_replace('!!checked_group_facette!!', " checked='checked' ", $dsi_bannette_form); $dsi_bannette_form = str_replace('!!checked_group_pperso!!', "", $dsi_bannette_form); } else { $dsi_bannette_form = str_replace('!!checked_group_facette!!', "", $dsi_bannette_form); $dsi_bannette_form = str_replace('!!checked_group_pperso!!', " checked='checked' ", $dsi_bannette_form); } $liste_p_perso = $this->p_perso->gen_liste_field("group_pperso", $this->group_pperso, $msg["dsi_ban_form_regroupe_pperso_no"]); $dsi_bannette_form = str_replace('!!pperso_group!!', $liste_p_perso, $dsi_bannette_form); $dsi_bannette_form = str_replace('!!facette_group!!', $this->gen_facette_selection(), $dsi_bannette_form); if ($this->display_notice_in_every_group) { $dsi_bannette_form = str_replace("!!display_notice_in_every_group!!", "checked", $dsi_bannette_form); } else { $dsi_bannette_form = str_replace("!!display_notice_in_every_group!!", "", $dsi_bannette_form); } if ($type == "pro") { $requete = "SELECT id_categ_empr, libelle FROM empr_categ ORDER BY libelle "; $onchange = "res=confirm('" . htmlentities($msg['dsi_ban_confirm_modif_categ'], ENT_QUOTES, $charset) . "'); if (res) this.form.majautocateg.value=1; else this.form.majautocateg.value=0;"; $categ_lect_aff = gen_liste($requete, "id_categ_empr", "libelle", "categorie_lecteurs", $onchange, $this->categorie_lecteurs, 0, $msg['dsi_ban_aucune_categ'], 0, $msg['dsi_ban_aucune_categ'], 0); $dsi_bannette_form = str_replace('!!categorie_lecteurs!!', $categ_lect_aff, $dsi_bannette_form); $requete = "SELECT id_groupe, libelle_groupe FROM groupe ORDER BY libelle_groupe "; $onchange = "res=confirm('" . htmlentities($msg['dsi_ban_confirm_modif_groupe'], ENT_QUOTES, $charset) . "'); if (res) this.form.majautogroupe.value=1; else this.form.majautogroupe.value=0;"; $groupe_lect_aff = gen_liste($requete, "id_groupe", "libelle_groupe", "groupe_lecteurs", $onchange, $this->groupe_lecteurs, 0, $msg['dsi_ban_aucun_groupe'], 0, $msg['dsi_ban_aucun_groupe'], 0); $dsi_bannette_form = str_replace('!!groupe_lecteurs!!', $groupe_lect_aff, $dsi_bannette_form); } else { $dsi_bannette_form = str_replace('!!categorie_lecteurs!!', "<input type=hidden name=categorie_lecteurs value=0 />", $dsi_bannette_form); $dsi_bannette_form = str_replace('!!groupe_lecteurs!!', "<input type=hidden name=groupe_lecteurs value=0 />", $dsi_bannette_form); } $dsi_bannette_form = str_replace('!!desc_fields!!', $this->build_sel_descriptor(), $dsi_bannette_form); $requete = "SELECT idcaddie, name FROM caddie where type='NOTI' "; if ($PMBuserid != 1) { $requete .= " and (autorisations='{$PMBuserid}' or autorisations like '{$PMBuserid} %' or autorisations like '% {$PMBuserid} %' or autorisations like '% {$PMBuserid}') "; } $requete .= " ORDER BY name "; $panier_bann_aff = gen_liste($requete, "idcaddie", "name", "num_panier", "", $this->num_panier, 0, $msg['dsi_panier_aucun'], 0, $msg['dsi_panier_aucun'], 0); $dsi_bannette_form = str_replace('!!num_panier!!', $panier_bann_aff, $dsi_bannette_form); switch ($this->limite_type) { case "D": $selectn = ""; $selecti = ""; $selectd = " SELECTED "; break; case "I": $selectn = ""; $selectd = ""; $selecti = " SELECTED "; break; default: case "": $selecti = ""; $selectd = ""; $selectn = " SELECTED "; break; } $limite_type = "<select name='limite_type' id='limite_type'>\n\t\t\t\t\t\t<option value='' {$selectn}>" . $msg['dsi_ban_non_cumul'] . "</option>\n\t\t\t\t\t\t<option value='D' {$selectd}>" . $msg['dsi_ban_cumul_jours'] . "</option>\n\t\t\t\t\t\t<option value='I' {$selecti}>" . $msg['dsi_ban_cumul_notice'] . "</option>\n\t\t\t\t\t\t</select>"; $dsi_bannette_form = str_replace('!!limite_type!!', $limite_type, $dsi_bannette_form); $dsi_bannette_form = str_replace('!!limite_nombre!!', $this->limite_nombre, $dsi_bannette_form); // update_type: se baser sur la date de création ou la date de mise à jour des notices ? switch ($this->update_type) { case "C": $selectu = ""; $selectc = " SELECTED "; break; case "U": $selectc = ""; $selectu = " SELECTED "; break; default: case "": $selectu = ""; $selectc = " SELECTED "; break; } $update_type = "<select name='update_type' id='update_type'>\n\t\t\t\t\t\t<option value='C' {$selectc}>" . $msg['dsi_ban_update_type_c'] . "</option>\n\t\t\t\t\t\t<option value='U' {$selectu}>" . $msg['dsi_ban_update_type_u'] . "</option>\n\t\t\t\t\t\t</select>"; $dsi_bannette_form = str_replace('!!update_type!!', $update_type, $dsi_bannette_form); $exp = start_export::get_exports(); $liste_exports = "<select name='typeexport' onchange=\"if(this.selectedIndex==0) document.getElementById('liste_parametre').style.display='none'; else document.getElementById('liste_parametre').style.display=''; \">"; if (!$this->typeexport) { $liste_exports .= "<option value='' selected>" . $msg['dsi_ban_noexport'] . "</option>"; } else { $liste_exports .= "<option value=''>" . $msg['dsi_ban_noexport'] . "</option>"; } for ($i = 0; $i < count($exp); $i++) { if ($this->typeexport == $exp[$i]["PATH"]) { $liste_exports .= "<option value='" . $exp[$i]["PATH"] . "' selected>" . $exp[$i]["NAME"] . "</option>"; } else { $liste_exports .= "<option value='" . $exp[$i]["PATH"] . "' >" . $exp[$i]["NAME"] . "</option>"; } } $liste_exports .= "</select>"; $dsi_bannette_form = str_replace('!!typeexport!!', $liste_exports, $dsi_bannette_form); $dsi_bannette_form = str_replace('!!prefixe_fichier!!', $this->prefixe_fichier, $dsi_bannette_form); if ($this->bannette_opac_accueil) { $bannette_opac_accueil_check = " checked "; } else { $bannette_opac_accueil_check = ""; } $dsi_bannette_form = str_replace('!!bannette_opac_accueil_check!!', $bannette_opac_accueil_check, $dsi_bannette_form); if ($this->document_generate) { $dsi_bannette_form = str_replace('!!document_generate!!', "checked=checked", $dsi_bannette_form); } else { $dsi_bannette_form = str_replace('!!document_generate!!', "", $dsi_bannette_form); } $dsi_bannette_form = str_replace('!!document_notice_tpl!!', notice_tpl_gen::gen_tpl_select("document_notice_tpl", $this->document_notice_tpl), $dsi_bannette_form); if ($this->document_insert_docnum) { $dsi_bannette_form = str_replace('!!document_insert_docnum!!', "checked=checked", $dsi_bannette_form); } else { $dsi_bannette_form = str_replace('!!document_insert_docnum!!', "", $dsi_bannette_form); } if ($this->document_group) { $dsi_bannette_form = str_replace('!!document_group!!', "checked=checked", $dsi_bannette_form); } else { $dsi_bannette_form = str_replace('!!document_group!!', "", $dsi_bannette_form); } if ($this->document_add_summary) { $dsi_bannette_form = str_replace('!!document_add_summary!!', "checked=checked", $dsi_bannette_form); } else { $dsi_bannette_form = str_replace('!!document_add_summary!!', "", $dsi_bannette_form); } $dsi_bannette_form = str_replace('!!delete!!', $button_delete, $dsi_bannette_form); // afin de revenir où on était : $form_cb, le critère de recherche $dsi_bannette_form = str_replace('!!form_cb!!', $form_cb, $dsi_bannette_form); if ($this->param_export) { $param = new export_param(EXP_DSI_CONTEXT, $this->param_export); } else { $param = new export_param(EXP_DEFAULT_GESTION); } if (!$this->typeexport) { $dsi_bannette_form = str_replace('!!display_liste_param!!', 'display:none', $dsi_bannette_form); } else { $dsi_bannette_form = str_replace('!!display_liste_param!!', '', $dsi_bannette_form); } $dsi_bannette_form = str_replace('!!form_param!!', $param->check_default_param(), $dsi_bannette_form); //ajout champs emprunteur $dsi_bannette_form = str_replace('!!info_empr!!', $dsi_bannette_form_selvars, $dsi_bannette_form); print $dsi_bannette_form; }
$requete = "select idtyp_doc, concat(tdoc_libelle) as lib from docs_type, exemplaires, lenders where idtyp_doc=expl_typdoc and expl_owner={$id_lender} and (idlender=tdoc_owner or tdoc_owner=0) group by expl_typdoc"; $typ_doc_lists .= "<div id=\"dtypdoc{$id_lender}\" style=\"display:none\">"; $typ_doc_lists .= gen_liste($requete, "idtyp_doc", "lib", "typdoc" . $id_lender . "[]", "", "", "", "", "", "", 1); $typ_doc_lists .= "</div>"; } //Tous les types $requete = "select idtyp_doc, concat(tdoc_libelle) as lib from docs_type order by lib"; $typ_doc_lists .= "<div id=\"dtypdocx\" style=\"display:block\">"; $typ_doc_lists .= gen_liste($requete, "idtyp_doc", "lib", "typdocx[]", "", "", "", "", "", "", 1); $typ_doc_lists .= "</div>"; $form = str_replace("!!typ_doc_lists!!", $typ_doc_lists, $form); //Status $requete = "select idlender, lender_libelle from lenders"; $resultat = mysql_query($requete); while (list($id_lender, $lender_libelle) = mysql_fetch_row($resultat)) { //Récupération des codes exemplaires du propriétaire ayant le statut $requete = "select idstatut, concat(statut_libelle) as lib from docs_statut, exemplaires, lenders where idstatut=expl_statut and expl_owner={$id_lender} and (idlender=statusdoc_owner or statusdoc_owner=0) group by expl_statut"; $statut_lists .= "<div id=\"dstatut{$id_lender}\" style=\"display:none\">"; $statut_lists .= gen_liste($requete, "idstatut", "lib", "statut" . $id_lender . "[]", "", "", "", "", "", "", 1); $statut_lists .= "</div>"; } //Tous les status $requete = "select idstatut, concat(statut_libelle) as lib from docs_statut order by lib"; $statut_lists .= "<div id=\"dstatutx\" style=\"display:block\">"; $statut_lists .= gen_liste($requete, "idstatut", "lib", "statutx[]", "", "", "", "", "", "", 1); $statut_lists .= "</div>"; $form = str_replace("!!statut_lists!!", $statut_lists, $form); $param = new export_param(EXP_DEFAULT_GESTION); $form = str_replace("!!form_param!!", $param->check_default_param(), $form); echo pmb_bidi($form); print "</body></html>";
function get_config_form() { global $charset, $dbh; $result = parent::get_config_form(); //Repository Name $result .= '<div class="row"><label class="etiquette" for="repo_name">' . $this->msg["repository_name"] . '</label><br />'; $result .= '<input id="repo_name" name="repo_name" type="text" value="' . htmlentities($this->repository_name, ENT_QUOTES, $charset) . '" class="saisie-80em" /></div>'; //Admin Email $result .= '<div class="row"><label class="etiquette" for="admin_email">' . $this->msg["admin_email"] . '</label><br />'; $result .= '<input id="admin_email" name="admin_email" type="text" value="' . htmlentities($this->admin_email, ENT_QUOTES, $charset) . '" class="saisie-80em" /></div>'; //repositoryIdentifier $result .= '<div class="row"><label class="etiquette" for="repositoryIdentifier">' . $this->msg["repositoryIdentifier"] . '</label><br />'; $result .= '<input id="repositoryIdentifier" name="repositoryIdentifier" type="text" value="' . htmlentities($this->repositoryIdentifier, ENT_QUOTES, $charset) . '" class="saisie-80em" /></div>'; //baseURL $disable_baseurl_fields = $this->id ? "" : "DISABLED"; $default_base_url = curPageBaseURL(); $default_base_url = substr($default_base_url, 0, strrpos($default_base_url, '/') + 1); $default_base_url .= 'ws/connector_out.php?source_id=' . $this->id; if (!$this->baseURL) { $basee = $default_base_url; } else { $basee = $this->baseURL; } $result .= '<div class="row"><label class="etiquette" for="baseURL">' . $this->msg["baseURL"] . '</label><br />'; if (!$this->id) { $result .= $this->msg['baseURL_sourceadd'] . '<br />'; } $result .= '<input ' . $disable_baseurl_fields . ' id="baseURL" name="baseURL" type="text" value="' . htmlentities($basee, ENT_QUOTES, $charset) . '" class="saisie-80em" />'; if ($this->id) { $result .= '<input ' . $disable_baseurl_fields . ' type="button" value="' . $this->msg["baseURL_default"] . '" class="bouton" onclick="document.getElementById(\'baseURL\').value=\'' . htmlentities($default_base_url, ENT_QUOTES, $charset) . '\'" />'; } $result .= '</div>'; //Included sets $included_sets = '<select MULTIPLE name="included_sets[]">'; $included_sets .= '<option value="">' . htmlentities($this->msg["set_none"], ENT_QUOTES, $charset) . '</option>'; $sets = new connector_out_sets(); foreach ($sets->sets as &$aset) { if (!in_array($aset->type, $this->allowed_set_types)) { continue; } $included_sets .= '<option ' . (in_array($aset->id, $this->included_sets) ? 'selected' : '') . ' value="' . $aset->id . '">' . htmlentities($aset->caption, ENT_QUOTES, $charset) . '</option>'; } $included_sets .= '</select>'; $result .= '<div class="row"><label class="etiquette" for="included_sets">' . $this->msg["included_sets"] . '</label><br />'; $result .= $included_sets; $result .= '</div>'; //Nombre de résultats par requete $result .= '<div class="row"><label class="etiquette" for="chunksize">' . $this->msg["chunksize"] . '</label><br />'; $result .= '<input id="chunksize" name="chunksize" type="text" value="' . htmlentities($this->chunksize, ENT_QUOTES, $charset) . '" class="saisie-40em" /></div>'; //Nombre de résultats par requete $result .= '<div class="row"><label class="etiquette">' . $this->msg["builtin_formats"] . '</label><br />'; $result .= 'Dublin Core, PMB XML Unimarc</div>'; //Formats de conversion admin/convert autorisé $admin_convert_catalog = external_services_converter_notices::get_export_possibilities(); $admin_convert_select = '<select id="allowed_admin_convert_paths" multiple name="allowed_admin_convert_paths[]">'; foreach ($admin_convert_catalog as $aconversion) { $admin_convert_select .= '<option ' . (in_array($aconversion["path"], $this->allowed_admin_convert_paths) ? 'selected' : '') . ' value="' . $aconversion["path"] . '">' . htmlentities($aconversion["caption"], ENT_QUOTES, $charset) . '</option>'; } $admin_convert_select .= '</select>'; $result .= '<div class="row"><label class="etiquette" for="allowed_admin_convert_paths">' . $this->msg["allowed_admin_convert_paths"] . '</label><br />'; $result .= $admin_convert_select; $result .= '</div>'; //feuille XSLT personnalisée $result .= "<div class='row'><label for='feuille_xslt'>" . $this->msg['feuille_xslt'] . "</label><br />"; $result .= "<input type='file' name='feuille_xslt'/>"; if ($this->config['feuille_xslt']) { $result .= "<div class='row'><br /> <i>" . htmlentities($this->config['feuille_xslt_name'], ENT_QUOTES, $charset) . "</i> <input type='checkbox' name='suppr_feuille_xslt' value='1' /> " . $this->msg['suppr_feuille_xslt'] . "</div>"; } $result .= "</div><div class='row'> </div>"; //Token life duration $result .= '<div class="row"><label class="etiquette" for="token_lifeduration">' . $this->msg["token_lifeduration"] . '</label><br />'; $result .= '<input id="token_lifeduration" name="token_lifeduration" type="text" value="' . htmlentities($this->token_lifeduration, ENT_QUOTES, $charset) . '" class="saisie-40em" /></div>'; //Allow GZIP Compression $result .= '<div class=row><input id="allow_gzip_compression" ' . ($this->allow_gzip_compression ? 'checked' : '') . ' name="allow_gzip_compression" type="checkbox" />' . '<label class="etiquette" for="allow_gzip_compression">' . $this->msg["allow_gzip_compression"] . '</label><br />'; $result .= '</div>'; //Cache complete records $result .= '<div class="row"><input onchange="document.getElementById(\'cache_complete_records_seconds\').disabled = !document.getElementById(\'cache_complete_records\').checked;" id="cache_complete_records" ' . ($this->cache_complete_records ? 'checked' : '') . ' name="cache_complete_records" type="checkbox" />' . '<label class="etiquette" for="cache_complete_records">' . $this->msg["cache_complete_records"] . '</label><br />'; $result .= '</div>'; //Record cache duration (seconds) $result .= '<blockquote><div class="row"><label class="etiquette" for="cache_complete_records_seconds">' . $this->msg["cache_complete_records_seconds"] . '</label><br />'; $result .= '<input ' . ($this->cache_complete_records ? '' : 'disabled') . ' id="cache_complete_records_seconds" name="cache_complete_records_seconds" type="text" value="' . htmlentities($this->cache_complete_records_seconds, ENT_QUOTES, $charset) . '" class="saisie-40em" /></div></blockquote><br />'; //Link Status to deletion $result .= '<div class="row"><input onchange="document.getElementById(\'linked_status_to_deletion\').disabled = !document.getElementById(\'link_status_to_deletion\').checked;" id="link_status_to_deletion" ' . ($this->link_status_to_deletion ? 'checked' : '') . ' name="link_status_to_deletion" type="checkbox" />' . '<label class="etiquette" for="link_status_to_deletion">' . $this->msg["link_status_to_deletion"] . '</label><br />'; $result .= '</div>'; //Linked Status to deletion $notice_statut_select = '<select ' . ($this->link_status_to_deletion ? '' : 'disabled') . ' id="linked_status_to_deletion" name="linked_status_to_deletion">'; $sql = "SELECT id_notice_statut, gestion_libelle FROM notice_statut"; $res = pmb_mysql_query($sql, $dbh); while ($row = pmb_mysql_fetch_assoc($res)) { $notice_statut_select .= '<option ' . ($this->linked_status_to_deletion == $row["id_notice_statut"] ? "selected" : '') . ' value="' . $row["id_notice_statut"] . '">' . htmlentities($row["gestion_libelle"], ENT_QUOTES, $charset) . '</option>'; } $notice_statut_select .= '</select>'; $result .= '<blockquote><div class="row"><label class="etiquette" for="linked_status_to_deletion">' . $this->msg["linked_status_to_deletion"] . '</label><br />'; $result .= $notice_statut_select; $result .= '</div></blockquote><br/>'; // Deletion management $result .= '<div class="row"><label class="etiquette">' . $this->msg['deletion_management'] . ' ' . $this->msg['if_none_status_to_deletion'] . '</label><br/>'; $result .= '<input type="radio" id="deletion_management_none" value="0" name="deletion_management" onChange="document.getElementById(\'deletion_management_transient_duration\').disabled = !document.getElementById(\'deletion_management_transient\').checked" ' . ($this->deletion_management == 0 ? 'checked' : '') . '/> <label class="etiquette" for="deletion_management_none">' . $this->msg['deletion_management_none'] . '</label> '; $result .= '<input type="radio" id="deletion_management_transient" value="1" name="deletion_management" onChange="document.getElementById(\'deletion_management_transient_duration\').disabled = !document.getElementById(\'deletion_management_transient\').checked" ' . ($this->deletion_management == 1 ? 'checked' : '') . '/> <label class="etiquette" for="deletion_management_transient">' . $this->msg['deletion_management_transient'] . '</label>, '; $result .= '<label class="etiquette" for="deletion_management_transient_duration">' . $this->msg['deletion_management_transient_duration'] . '</label> <input ' . ($this->deletion_management != 1 ? 'disabled' : '') . ' type="text" id="deletion_management_transient_duration" value="' . htmlentities($this->deletion_management_transient_duration, ENT_QUOTES, $charset) . '" name="deletion_management_transient_duration"/> '; $result .= '<input type="radio" id="deletion_management_persistent" value="2" name="deletion_management" onChange="document.getElementById(\'deletion_management_transient_duration\').disabled = !document.getElementById(\'deletion_management_transient\').checked" ' . ($this->deletion_management == 2 ? 'checked' : '') . '/> <label class="etiquette" for="deletion_management_persistent">' . $this->msg['deletion_management_persistent'] . '</label> '; $result .= '<div><br/>'; //Include items $result .= '<div class="row"><input id="include_items" ' . ($this->include_items ? 'checked=checked' : '') . ' name="include_items" type="checkbox" />' . '<label class="etiquette" for="include_items">' . $this->msg["include_items"] . '</label><br />'; $result .= '</div>'; //Include links global $include_path, $class_path, $msg, $form_param, $include_links; require_once $class_path . '/export_param.class.php'; $include_links = $this->include_links; $e_param = new export_param(EXP_OAI_CONTEXT); $result .= $e_param->check_default_param(); return $result; }
die("no access"); } require_once "{$include_path}/templates/export_param.tpl.php"; require_once $class_path . "/export_param.class.php"; switch ($act) { case 'update': if ($sub == 'paramopac') { $export_param_context = new export_param(EXP_GLOBAL_CONTEXT); $export_param_context->get_parametres(EXP_DEFAULT_OPAC); $export_param_context->update(); $export_param_context->check_default_param(); } elseif ($sub == 'paramgestion') { $export_param_context = new export_param(EXP_GLOBAL_CONTEXT); $export_param_context->get_parametres(EXP_DEFAULT_GESTION); $export_param_context->update(); $export_param_context->check_default_param(); } $act = ''; break; default: if ($sub == 'paramopac') { $export_param_opac = new export_param(EXP_DEFAULT_OPAC); $export_param_opac->check_default_param(); } else { $export_param_gestion = new export_param(EXP_DEFAULT_GESTION); $export_param_gestion->check_default_param(); } break; } $form_entete_param = str_replace('!!form_param!!', $form_param, $form_entete_param); print $form_entete_param;