source: pmb4.2/trunk/fuentes/pmb/save_notice_pos.php @ 815

Last change on this file since 815 was 815, checked in by jrpelegrina, 4 years ago

Initial release of pmb 4.2

  • Property svn:executable set to *
File size: 1.1 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: save_notice_pos.php,v 1.7 2015-04-03 11:16:23 jpermanne Exp $
6
7$base_path=".";
8$base_noheader=1;
9$base_nobody=1;
10
11
12$base_auth = "ADMINISTRATION_AUTH"; 
13require_once("includes/init.inc.php");
14
15if (!$grille_typdoc) $grille_typdoc='a' ;
16if (!$grille_niveau_biblio) $grille_niveau_biblio='m' ;
17
18$requete = "delete from grilles where grille_niveau_biblio='$grille_niveau_biblio' and grille_typdoc='$grille_typdoc' ".($grille_location?"and grille_localisation='$grille_location' ":"");
19$res = pmb_mysql_query($requete, $dbh) or die("Big problem: <br />".pmb_mysql_error()."<br />$requete");
20$requete = "insert into grilles set grille_niveau_biblio='$grille_niveau_biblio', grille_typdoc='$grille_typdoc', ".($grille_location?"grille_localisation='$grille_location', ":"")."descr_format='".$datas."' ";
21$res = pmb_mysql_query($requete, $dbh) or die("Big problem: <br />".pmb_mysql_error()."<br />$requete");
22echo "OK";
Note: See TracBrowser for help on using the repository browser.