source: pmb4.1/trunk/fuentes/pmb/catalog/suggestions/make_sug.inc.php @ 478

Last change on this file since 478 was 478, checked in by mabarracus, 4 years ago

copy trusty code 4.1

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1<?php
2// +-------------------------------------------------+
3// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
4// +-------------------------------------------------+
5// $Id: make_sug.inc.php,v 1.13 2010-01-07 16:10:41 kantin Exp $
6
7if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) die("no access");
8
9//URL de retour du form de création/modification de suggestion
10$back_url="onClick=\"document.location='./catalog.php?'\"";
11
12if($id_notice && ($action=='modif')) $back_url= " onClick=\"history.go(-1);\" ";
13// page de switch création suggestion
14require_once($base_path.'/acquisition/suggestions/func_suggestions.inc.php');
15require_once($class_path.'/suggestions_map.class.php');
16
17if ($acquisition_sugg_display) {
18        require_once($base_path.'/acquisition/suggestions/'.$acquisition_sugg_display);
19} else {
20        require_once($base_path.'/acquisition/suggestions/suggestions_display.inc.php');
21}
22
23$sug_map = new suggestions_map();
24
25//Traitement des actions
26print "<h1>".htmlentities($msg['acquisition_sug_do'],ENT_QUOTES, $charset)."</h1>";
27
28switch($action) {
29        case 'modif':
30                $update_action = "./catalog.php?categ=sug&action=update&id_bibli=".$id_bibli."&id_sug=".$id_sug."&id_notice=$id_notice";
31                show_form_sug($update_action);
32                break;
33       
34        case 'update' :
35                update_sug();
36                $back_url = "document.location='./catalog.php?'";
37                print "<script type='text/javascript'>alert('".$msg['acquisition_sugg_ok']."');$back_url</script>";
38                break;
39
40}
Note: See TracBrowser for help on using the repository browser.