Files
le-matelot/client/plugins/colissimoexpert/colissimoexpert_admin.php
2020-01-27 08:56:08 +01:00

97 lines
1.3 KiB
PHP

<?php
include_once( realpath( dirname( __FILE__ ) ) . "/../../../fonctions/authplugins.php" );
autorisation("colissimoexpert");
include_once( realpath( dirname( __FILE__ ) ) . "/Tarifcolissimoexpert.class.php" );
include_once( realpath( dirname( __FILE__ ) ) . "/Colissimoexpert.class.php" );
$messages = array();
$idZoneActuel = 1;
if ( isset ( $_REQUEST['zone'] ) ) {
$idZoneActuel = intval( $_REQUEST['zone'] );
}
if ( isset( $_REQUEST['action'] ) ) {
switch ( $_REQUEST['action'] ) {
case "ajouter_tarif":
include_once( realpath( dirname( __FILE__ ) ) . "/actions/ajouter_tarif.php" );
break;
case "editer_tarif":
include_once( realpath( dirname( __FILE__ ) ) . "/actions/editer_tarif.php" );
break;
case "supprimer_tarif":
include_once( realpath( dirname( __FILE__ ) ) . "/actions/supprimer_tarif.php" );
break;
case "editer_tarifmax":
include_once( realpath( dirname( __FILE__ ) ) . "/actions/editer_tarifmax.php" );
break;
default:
break;
}
}
$vue = ( isset( $_REQUEST['vue'] ) ) ? $_REQUEST['vue'] : 'tarifs' ;
switch ( $vue ){
case "tarif":
include_once( realpath( dirname( __FILE__ ) ) . "/vues/tarif.php" );
break;
default:
include_once( realpath( dirname( __FILE__ ) ) . "/vues/tarifs.php" );
break;
}