source: pmb4.1/trunk/fuentes/pmb/catalog/serials/analysis/ana_explnum_delete.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.6 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: ana_explnum_delete.inc.php,v 1.9 2009-07-03 09:35:43 kantin Exp $
6
7if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) die("no access");
8
9// suppression d'un exemplaire de bulletinage
10echo str_replace('!!page_title!!', $msg[4000].$msg[1003].$msg[explnum_doc_associe], $serial_header);
11
12//verification des droits de modification notice
13$acces_m=1;
14if ($gestion_acces_active==1 && $gestion_acces_user_notice==1) {
15        require_once("$class_path/acces.class.php");
16        $ac= new acces();
17        $dom_1= $ac->setDomain(1);
18        $acces_j = $dom_1->getJoin($PMBuserid,8,'bulletin_notice');
19        $q = "select count(1) from bulletins $acces_j where bulletin_id=".$bul_id;
20        $r = mysql_query($q, $dbh);
21        if(mysql_result($r,0,0)==0) {
22                $acces_m=0;
23        }
24}
25
26if ($acces_m==0) {
27
28                error_message('', htmlentities($dom_1->getComment('mod_depo_error'), ENT_QUOTES, $charset), 1, '');
29
30} else {       
31        print "<div class=\"row\"><div class=\"msg-perio\">".$msg['catalog_notices_suppression']."</div></div>";
32       
33        $expl = new explnum($explnum_id);
34        $expl->delete();
35       
36        $id_form = md5(microtime());
37        $retour = "./catalog.php?categ=serials&sub=view&sub=bulletinage&action=view&bul_id=$bul_id";
38        print "
39                <form class='form-$current_module' name=\"dummy\" method=\"post\" action=\"$retour\" style=\"display:none\">
40                        <input type=\"hidden\" name=\"id_form\" value=\"$id_form\">
41                </form>
42        <script type=\"text/javascript\">document.dummy.submit();</script>
43        ";
44}
45
46?>
Note: See TracBrowser for help on using the repository browser.