26 lines
597 B
PHP
26 lines
597 B
PHP
<?php
|
|
|
|
include_once( realpath( dirname( __FILE__ ) ) . "/../../../../fonctions/authplugins.php" );
|
|
|
|
autorisation("colissimoexpert");
|
|
|
|
$tarif = lireParam( 'tarif' , 'float' , 'POST' );
|
|
$zone = lireParam( 'zone' , 'int' , 'POST' );
|
|
|
|
$actionValide = true;
|
|
|
|
// Edition
|
|
if ( $actionValide ) {
|
|
|
|
$objColissimoExpert = new Colissimoexpert();
|
|
$objColissimoExpert->majTarifMax( $tarif , $zone );
|
|
|
|
if ( $objColissimoExpert->getTarifMax() == $tarif ) {
|
|
|
|
$messages[] = array(
|
|
'classe' => 'valide' ,
|
|
'message' => "Tarif Max Mis à jour réalisée avec succès."
|
|
);
|
|
}
|
|
}
|
|
|