2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2010-10-27 22:53:37 +00:00
parent d9bc203c59
commit 996c6ceaff
7 changed files with 42 additions and 39 deletions

View File

@@ -625,6 +625,7 @@ EXCLUDE = ../../mssql \
../../htdocs/includes/adodbtime \
../../htdocs/includes/artichow \
../../htdocs/includes/barcode \
../../htdocs/includes/ckeditor \
../../htdocs/includes/efc_xfss \
../../htdocs/includes/fckeditor \
../../htdocs/includes/fpdf \

View File

@@ -78,7 +78,7 @@ print "Makepack langs version $VERSION\n";
print "Enter language code to package (en_US, fr_FR, ...) : ";
$PROJECT=<STDIN>;
chomp($PROJECT);
# \todo Autodetect version
# TODO Autodetect version
# Ask and set version $MAJOR and $MINOR
print "Enter value for version: ";
$PROJVERSION=<STDIN>;

View File

@@ -78,7 +78,7 @@ print "Makepack theme version $VERSION\n";
print "Enter name of theme to package: ";
$PROJECT=<STDIN>;
chomp($PROJECT);
# \todo Autodetect version
# TODO Autodetect version
# Ask and set version $MAJOR and $MINOR
print "Enter value for version: ";
$PROJVERSION=<STDIN>;

View File

@@ -25,19 +25,18 @@
* et la classe mere de numerotation des bons de livraisons
* \version $Id$
*/
require_once(DOL_DOCUMENT_ROOT.'/lib/pdf.lib.php');
require_once(DOL_DOCUMENT_ROOT.'/includes/fpdf/fpdfi/fpdi_protection.php');
/**
* \class methode_expedition
* \brief Classe mere des methodes expeditions
* \class ModeleShippingMethod
* \brief Parent class for shipping method classes
*/
class methode_expedition
class ModeleShippingMethod
{
function methode_expedition($db=0)
function ModeleShippingMethod($db=0)
{
$this->db = $db;
$this->name = "NOT DEFINED";
@@ -46,8 +45,8 @@ class methode_expedition
/**
* \brief Return list of active generation modules
* \param $db Database handler
* Return list of active generation modules
* @param $db Database handler
*/
function liste_modeles($db)
{

View File

@@ -16,29 +16,30 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
/**
* \file htdocs/includes/modules/expedition/methode_expedition_colsui.modules.php
* \ingroup expedition
* \version $Id$
*/
include_once "methode_expedition.modules.php";
Class methode_expedition_colsui extends methode_expedition
class methode_expedition_colsui extends ModeleShippingMethod
{
function methode_expedition_colsui($db=0)
{
$this->db = $db;
$this->id = 3; // Do not change this value
$this->code = "COLSUI"; // Do not change this value
$this->name = "Colissimo Suivi";
$this->description = "Colissimo Suivi";
}
function methode_expedition_colsui($db=0)
{
$this->db = $db;
$this->id = 3; // Do not change this value
$this->code = "COLSUI"; // Do not change this value
$this->name = "Colissimo Suivi";
$this->description = "Colissimo Suivi";
}
Function provider_url_status($tracking_number)
{
return sprintf("http://www.coliposte.net/particulier/suivi_particulier.jsp?colispart=%s",$tracking_number);
}
function provider_url_status($tracking_number)
{
return sprintf("http://www.coliposte.net/particulier/suivi_particulier.jsp?colispart=%s",$tracking_number);
}
}
?>

View File

@@ -15,14 +15,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
/**
* \file htdocs/includes/modules/expedition/methode_expedition_enl.modules.php
* \ingroup expedition
* \version $Id$
*/
include_once "methode_expedition.modules.php";
Class methode_expedition_enl extends methode_expedition
class methode_expedition_enl extends ModeleShippingMethod
{
function methode_expedition_enl($db=0)
@@ -34,11 +35,11 @@ Class methode_expedition_enl extends methode_expedition
$this->code = "ENL";
$this->description = $langs->trans("Enlevement");
}
Function provider_url_status($tracking_number)
{
return '';
}
{
return '';
}
}
?>

View File

@@ -15,31 +15,32 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
/**
* \file htdocs/includes/modules/expedition/methode_expedition_trans.modules.php
* \ingroup expedition
* \version $Id$
*/
include_once "methode_expedition.modules.php";
Class methode_expedition_trans extends methode_expedition
class methode_expedition_trans extends ModeleShippingMethod
{
function methode_expedition_trans($db=0)
{
global $langs;
$this->db = $db;
$this->id = 2; // Ne pas changer cette valeur
$this->code = "TRANS";
$this->name = "Transporteur";
$this->description = $langs->trans("GenericTransport");
}
Function provider_url_status($tracking_number)
{
return '';
}
{
return '';
}
}
?>