33 lines
558 B
PHP
33 lines
558 B
PHP
<?php
|
|
|
|
include_once( realpath( dirname( __FILE__ ) ) . "/../../../../fonctions/authplugins.php" );
|
|
|
|
autorisation("colissimoexpert");
|
|
|
|
$id = lireParam( 'id' , 'int' , 'GET' );
|
|
|
|
$actionValide = true;
|
|
|
|
// Suppression
|
|
if ( $actionValide ) {
|
|
|
|
$sql = "
|
|
DELETE FROM
|
|
tarifcolissimoexpert
|
|
WHERE
|
|
id = " . $id . "
|
|
";
|
|
|
|
$cnx = new Cnx();
|
|
|
|
$resultat = mysql_query( $sql , $cnx->link );
|
|
|
|
if ( $resultat ) {
|
|
|
|
$messages[] = array(
|
|
'classe' => 'valide' ,
|
|
'message' => "Suppression réalisée avec succès."
|
|
);
|
|
}
|
|
}
|
|
|