Qual: Doxygen

This commit is contained in:
Laurent Destailleur 2013-08-22 16:49:23 +02:00
parent c1dae58055
commit 9da5f7f47a
29 changed files with 156 additions and 125 deletions

View File

@ -17,14 +17,13 @@
*/ */
/** /**
* \file htdocs/contact/canvas/actions_adherentcard_common.class.php * \file htdocs/adherents/canvas/actions_adherentcard_common.class.php
* \ingroup thirdparty * \ingroup adherent
* \brief Fichier de la classe Adherent card controller (common) * \brief Fichier de la classe Adherent card controller (common)
*/ */
/** /**
* \class ActionsAdherentCardCommon * Class to maage members using default canvas
* \brief Classe permettant la gestion des adherents par defaut
*/ */
abstract class ActionsAdherentCardCommon abstract class ActionsAdherentCardCommon
{ {

View File

@ -16,16 +16,16 @@
*/ */
/** /**
* \file htdocs/core/boxes/box_intervention.php * \file htdocs/core/boxes/box_ficheinter.php
* \ingroup ficheinter * \ingroup ficheinter
* \brief Module de generation de l'affichage de la box ficheinter * \brief Box to show last interventions
*/ */
include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php'; include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
/** /**
* Class to manage the box to show last contracts * Class to manage the box to show last interventions
*/ */
class box_ficheinter extends ModeleBoxes class box_ficheinter extends ModeleBoxes
{ {

View File

@ -28,7 +28,7 @@ class dolprintIPP
{ {
var $host; var $host;
var $port; var $port;
var $userid; var $userid; /* user login */
var $user; var $user;
var $password; var $password;
var $error; var $error;
@ -72,7 +72,7 @@ class dolprintIPP
$ipp->setHost($this->host); $ipp->setHost($this->host);
$ipp->setPort($this->port); $ipp->setPort($this->port);
$ipp->setUserName($this->userid); $ipp->setUserName($this->userid);
//$ipp->setAuthentication($this->user,$this->password); if (! empty($this->user)) $ipp->setAuthentication($this->user,$this->password);
$ipp->getPrinters(); $ipp->getPrinters();
return $ipp->available_printers; return $ipp->available_printers;
} }
@ -95,7 +95,7 @@ class dolprintIPP
$ipp->setPort($this->port); $ipp->setPort($this->port);
$ipp->setJobName($file,true); $ipp->setJobName($file,true);
$ipp->setUserName($this->userid); $ipp->setUserName($this->userid);
//$ipp->setAuthentication($this->user,$this->password); if (! empty($this->user)) $ipp->setAuthentication($this->user,$this->password);
// select printer uri for module order, propal,... // select printer uri for module order, propal,...
$sql = 'SELECT rowid,printer_uri,copy FROM '.MAIN_DB_PREFIX.'printer_ipp WHERE module="'.$module.'"'; $sql = 'SELECT rowid,printer_uri,copy FROM '.MAIN_DB_PREFIX.'printer_ipp WHERE module="'.$module.'"';
$result = $this->db->query($sql); $result = $this->db->query($sql);
@ -133,6 +133,7 @@ class dolprintIPP
$ipp->setHost($this->host); $ipp->setHost($this->host);
$ipp->setPort($this->port); $ipp->setPort($this->port);
$ipp->setUserName($this->userid); $ipp->setUserName($this->userid);
if (! empty($this->user)) $ipp->setAuthentication($this->user,$this->password);
// select printer uri for module order, propal,... // select printer uri for module order, propal,...
$sql = 'SELECT rowid,printer_uri,printer_name FROM '.MAIN_DB_PREFIX.'printer_ipp WHERE module="'.$module.'"'; $sql = 'SELECT rowid,printer_uri,printer_name FROM '.MAIN_DB_PREFIX.'printer_ipp WHERE module="'.$module.'"';
$result = $this->db->query($sql); $result = $this->db->query($sql);
@ -194,6 +195,7 @@ class dolprintIPP
$ipp->setHost($this->host); $ipp->setHost($this->host);
$ipp->setPort($this->port); $ipp->setPort($this->port);
$ipp->setUserName($this->userid); $ipp->setUserName($this->userid);
if (! empty($this->user)) $ipp->setAuthentication($this->user,$this->password);
$ipp->setPrinterURI($uri); $ipp->setPrinterURI($uri);
$ipp->getPrinterAttributes(); $ipp->getPrinterAttributes();
return $ipp->printer_attributes; return $ipp->printer_attributes;

View File

@ -1,30 +1,30 @@
<?php <?php
/* /*
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro> * Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/** /**
* \file cron/class/html.formcron.class.php * \file core/class/html.formcron.class.php
* \brief Fichier de la classe des fonctions predefinie de composants html cron * \brief Fichier de la classe des fonctions predefinie de composants html cron
*/ */
/** /**
* Class to manage building of HTML components * Class to manage building of HTML components
*/ */
class FormCron extends Form class FormCron extends Form
{ {
var $db; var $db;

View File

@ -17,7 +17,7 @@
*/ */
/** /**
* \file cron/lib/cron.lib.php * \file core/lib/cron.lib.php
* \brief Function for module cron * \brief Function for module cron
* \ingroup cron * \ingroup cron
*/ */

View File

@ -140,8 +140,8 @@ function getParentCompanyTimeZoneString()
* Return parent company timezone int. * Return parent company timezone int.
* If $conf->global->MAIN_NEW_DATE is set, we use new behaviour: All convertions take care of dayling saving time. * If $conf->global->MAIN_NEW_DATE is set, we use new behaviour: All convertions take care of dayling saving time.
* *
* @param string $refdate Reference date for timezone (timezone differs on winter and summer) * @param string $refgmtdate Reference date for timezone (timezone differs on winter and summer)
* @return int An offset in hour (+1 for Europe/Paris on winter and +2 for Europe/Paris on summer) * @return int An offset in hour (+1 for Europe/Paris on winter and +2 for Europe/Paris on summer)
* *
function getParentCompanyTimeZoneInt($refgmtdate='now') function getParentCompanyTimeZoneInt($refgmtdate='now')
{ {

View File

@ -3684,8 +3684,8 @@ function make_substitutions($chaine,$substitutionarray)
* @param array &$substitutionarray Array substitution old value => new value value * @param array &$substitutionarray Array substitution old value => new value value
* @param Translate $outputlangs If we want substitution from special constants, we provide a language * @param Translate $outputlangs If we want substitution from special constants, we provide a language
* @param Object $object If we want substitution from special constants, we provide data in a source object * @param Object $object If we want substitution from special constants, we provide data in a source object
* @param Object/array $parameters Add more parameters (useful to pass product lines) * @param Mixed $parameters Add more parameters (useful to pass product lines)
* @param string $callfunc What is the name of the custom function that will be called? (default: completesubstitutionarray) * @param string $callfunc What is the name of the custom function that will be called? (default: completesubstitutionarray)
* @return void * @return void
* @see make_substitutions * @see make_substitutions
*/ */

View File

@ -283,14 +283,14 @@ function _unval($val)
} }
/** /**
* convert a string from one UTF-16 char to one UTF-8 char * Convert a string from one UTF-16 char to one UTF-8 char
* *
* Normally should be handled by mb_convert_encoding, but * Normally should be handled by mb_convert_encoding, but
* provides a slower PHP-only method for installations * provides a slower PHP-only method for installations
* that lack the multibye string extension. * that lack the multibye string extension.
* *
* @param string $utf16 UTF-16 character * @param string $utf16 UTF-16 character
* @return string UTF-8 character * @return string UTF-8 character
*/ */
function utf162utf8($utf16) function utf162utf8($utf16)
{ {
@ -326,14 +326,14 @@ function utf162utf8($utf16)
} }
/** /**
* convert a string from one UTF-8 char to one UTF-16 char * Convert a string from one UTF-8 char to one UTF-16 char
* *
* Normally should be handled by mb_convert_encoding, but * Normally should be handled by mb_convert_encoding, but
* provides a slower PHP-only method for installations * provides a slower PHP-only method for installations
* that lack the multibye string extension. * that lack the multibye string extension.
* *
* @param string $utf8 UTF-8 character * @param string $utf8 UTF-8 character
* @return string UTF-16 character * @return string UTF-16 character
*/ */
function utf82utf16($utf8) function utf82utf16($utf8)
{ {

View File

@ -1,31 +1,31 @@
<?php <?php
/* Copyright (C) 2006-2011 Laurent Destailleur <eldy@users.sourceforge.net> /* Copyright (C) 2006-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org> * Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com> * Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
* Copyright (C) 2010-2012 Regis Houssin <regis.houssin@capnetworks.com> * Copyright (C) 2010-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es> * Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2012 Christophe Battarel <christophe.battarel@altairis.fr> * Copyright (C) 2012 Christophe Battarel <christophe.battarel@altairis.fr>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or * the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
* or see http://www.gnu.org/ * or see http://www.gnu.org/
*/ */
/** /**
* \file htdocs/core/lib/pdf.lib.php * \file htdocs/core/lib/pdf.lib.php
* \brief Set of functions used for PDF generation * \brief Set of functions used for PDF generation
* \ingroup core * \ingroup core
*/ */
/** /**
@ -72,7 +72,7 @@ function pdf_getFormat($outputlangs='')
* @param string $format Array(width,height). Keep empty to use default setup. * @param string $format Array(width,height). Keep empty to use default setup.
* @param string $metric Unit of format ('mm') * @param string $metric Unit of format ('mm')
* @param string $pagetype 'P' or 'l' * @param string $pagetype 'P' or 'l'
* @return TPDF PDF object * @return TPDF PDF object
*/ */
function pdf_getInstance($format='',$metric='mm',$pagetype='P') function pdf_getInstance($format='',$metric='mm',$pagetype='P')
{ {
@ -182,18 +182,18 @@ function pdf_getInstance($format='',$metric='mm',$pagetype='P')
/** /**
* writeHTMLCell * writeHTMLCell
* *
* @param unknown_type $w Width * @param int $w Width
* @param unknown_type $h Height * @param int $h Height
* @param unknown_type $x X * @param int $x X
* @param unknown_type $y Y * @param int $y Y
* @param unknown_type $html Html * @param string $html Html
* @param unknown_type $border Border * @param int $border Border
* @param unknown_type $ln Ln * @param int $ln Ln
* @param unknown_type $fill Fill * @param boolean $fill Fill
* @param unknown_type $reseth Reseth * @param boolean $reseth Reseth
* @param unknown_type $align Align * @param string $align Align
* @param unknown_type $autopadding Autopadding * @param boolean $autopadding Autopadding
* @return void * @return void
*/ */
public function writeHTMLCell($w, $h, $x, $y, $html = '', $border = 0, $ln = 0, $fill = false, $reseth = true, $align = '', $autopadding = true) public function writeHTMLCell($w, $h, $x, $y, $html = '', $border = 0, $ln = 0, $fill = false, $reseth = true, $align = '', $autopadding = true)
{ {

View File

@ -19,7 +19,7 @@
/** /**
* \defgroup cron Module cron * \defgroup cron Module cron
* \brief cron module descriptor. * \brief cron module descriptor.
* \file cron/core/modules/modCron.class.php * \file htdocs/core/modules/modCron.class.php
* \ingroup cron * \ingroup cron
* \brief Description and activation file for module Jobs * \brief Description and activation file for module Jobs
*/ */

View File

@ -23,7 +23,7 @@
/** /**
* \defgroup holiday Module holiday * \defgroup holiday Module holiday
* \brief Module de gestion des congés * \brief Module de gestion des congés
* \file htdocs/includes/modules/modHoliday.class.php * \file htdocs/core/modules/modHoliday.class.php
* \ingroup holiday * \ingroup holiday
* \brief Description and activation file for module holiday * \brief Description and activation file for module holiday
*/ */

View File

@ -17,7 +17,7 @@
/** \defgroup margin Module margin /** \defgroup margin Module margin
* \brief Module to manage margins * \brief Module to manage margins
* \file htdocs/includes/modules/modMargin.class.php * \file htdocs/core/modules/modMargin.class.php
* \ingroup margin * \ingroup margin
* \brief Description and activation file for module Margin * \brief Description and activation file for module Margin
*/ */

View File

@ -21,7 +21,7 @@
*/ */
/** /**
* \file htdocs/opensurvey/core/modules/modOpenSurvey.class.php * \file htdocs/core/modules/modOpenSurvey.class.php
* \ingroup opensurvey * \ingroup opensurvey
* \brief Description and activation file for module OpenSurvey * \brief Description and activation file for module OpenSurvey
*/ */

View File

@ -19,7 +19,7 @@
*/ */
/** /**
* \file htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php * \file htdocs/core/modules/project/pdf/doc_generic_project_odt.modules.php
* \ingroup project * \ingroup project
* \brief File of class to build ODT documents for third parties * \brief File of class to build ODT documents for third parties
*/ */

View File

@ -99,7 +99,7 @@ class mod_task_simple extends ModeleNumRefTask
* Return next value * Return next value
* *
* @param Societe $objsoc Object third party * @param Societe $objsoc Object third party
* @param Task $Task Object Task * @param Task $task Object Task
* @return string Value if OK, 0 if KO * @return string Value if OK, 0 if KO
*/ */
function getNextValue($objsoc,$task) function getNextValue($objsoc,$task)

View File

@ -19,7 +19,7 @@
*/ */
/** /**
* \file htdocs/core/modules/supplier_order/mod_facture_fournisseur_cactus.php * \file htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
* \ingroup supplier invoice * \ingroup supplier invoice
* \brief File containing the Cactus Class of numbering models of suppliers invoices references * \brief File containing the Cactus Class of numbering models of suppliers invoices references
*/ */

View File

@ -18,7 +18,7 @@
*/ */
/** /**
* \file cron/card.php * \file htdocs/cron/card.php
* \ingroup cron * \ingroup cron
* \brief Cron Jobs Card * \brief Cron Jobs Card
*/ */

View File

@ -16,8 +16,8 @@
*/ */
/** /**
* \file /cron/cron/info.php * \file htdocs/cron/info.php
* \brief Page fiche d'une operation * \brief Page of info of a cron job
*/ */
require '../main.inc.php'; require '../main.inc.php';

View File

@ -18,7 +18,7 @@
*/ */
/** /**
* \file cron/cron/list.php * \file htdocs/cron/cron/list.php
* \ingroup cron * \ingroup cron
* \brief Lists Jobs * \brief Lists Jobs
*/ */

View File

@ -16,7 +16,7 @@
*/ */
/** /**
* \file htdocs/ecm/ajax/ecmdatabases.php * \file htdocs/ecm/ajax/ecmdatabase.php
* \brief File to build ecm database * \brief File to build ecm database
*/ */

View File

@ -1,28 +1,28 @@
<?php <?php
/* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com> * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2011-2013 Juanjo Menent <jmenent@2byte.es> * Copyright (C) 2011-2013 Juanjo Menent <jmenent@2byte.es>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or * the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/** /**
* \file htdocs/fichinter/class/fichinter.class.php * \file htdocs/fichinter/class/fichinter.class.php
* \ingroup ficheinter * \ingroup ficheinter
* \brief Fichier de la classe des gestion des fiches interventions * \brief Fichier de la classe des gestion des fiches interventions
*/ */
require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php'; require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
@ -62,7 +62,7 @@ class Fichinter extends CommonObject
* Constructor * Constructor
* *
* @param DoliDB $db Database handler * @param DoliDB $db Database handler
*/ */
function __construct($db) function __construct($db)
{ {
$this->db = $db; $this->db = $db;
@ -829,36 +829,37 @@ class Fichinter extends CommonObject
/** /**
* Define the label of the contract * Link intervention to a contract
* *
* @param User $user Object user who modify * @param User $user Object user who modify
* @param int $contractid Description * @param int $contractid Description
* @return int <0 if ko, >0 if ok * @return int <0 if ko, >0 if ok
*/ */
function set_contrat($user, $contratid) function set_contrat($user, $contractid)
{ {
global $conf; global $conf;
if ($user->rights->ficheinter->creer) if ($user->rights->ficheinter->creer)
{ {
$sql = "UPDATE ".MAIN_DB_PREFIX."fichinter "; $sql = "UPDATE ".MAIN_DB_PREFIX."fichinter ";
$sql.= " SET fk_contrat = '".$contratid."'"; $sql.= " SET fk_contrat = '".$contractid."'";
$sql.= " WHERE rowid = ".$this->id; $sql.= " WHERE rowid = ".$this->id;
$sql.= " AND entity = ".$conf->entity; $sql.= " AND entity = ".$conf->entity;
//$sql.= " AND fk_statut = 0";
dol_syslog("sql=".$sql);
if ($this->db->query($sql)) if ($this->db->query($sql))
{ {
$this->fk_contrat = $contratid; $this->fk_contrat = $contractid;
return 1; return 1;
} }
else else
{ {
$this->error=$this->db->error(); $this->error=$this->db->error();
dol_syslog("Fichinter::set_contrat Erreur SQL"); dol_syslog($this->error, LOG_ERR);
return -1; return -1;
} }
} }
return -2;
} }
/** /**

View File

@ -16,7 +16,7 @@
*/ */
/** /**
* \file htdocs/opensurvey/admin_studs_preview.php * \file htdocs/opensurvey/adminstuds_preview.php
* \ingroup opensurvey * \ingroup opensurvey
* \brief Page to preview votes of a survey * \brief Page to preview votes of a survey
*/ */

View File

@ -16,8 +16,8 @@
*/ */
/** /**
* \file dev/skeletons/opensurveysondage.class.php * \file htdocs/opensurvey/class/opensurveysondage.class.php
* \ingroup mymodule othermodule1 othermodule2 * \ingroup opensurvey
* \brief This file is an example for a CRUD class file (Create/Read/Update/Delete) * \brief This file is an example for a CRUD class file (Create/Read/Update/Delete)
* Initialy built by build_class_from_table on 2013-03-10 00:32 * Initialy built by build_class_from_table on 2013-03-10 00:32
*/ */

View File

@ -16,7 +16,7 @@
*/ */
/** /**
* \file htdocs/opensurvey/fonction.php * \file htdocs/opensurvey/fonctions.php
* \ingroup opensurvey * \ingroup opensurvey
* \brief Functions for module * \brief Functions for module
*/ */

View File

@ -17,7 +17,7 @@
/** /**
* \file htdocs/printipp/admin/printipp.php * \file htdocs/printipp/admin/printipp.php
* \ingroup core * \ingroup printipp
* \brief Page to setup printipp module * \brief Page to setup printipp module
*/ */
@ -41,6 +41,7 @@ if (!$mode) $mode='config';
/* /*
* Action * Action
*/ */
if ($action == 'setvalue' && $user->admin) if ($action == 'setvalue' && $user->admin)
{ {
$db->begin(); $db->begin();
@ -87,7 +88,7 @@ print $langs->trans("PrintIPPDesc")."<br>\n";
print '<br>'; print '<br>';
if ($mode=='config'&& $user->admin) if ($mode == 'config' && $user->admin)
{ {
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'?mode=config">'; print '<form method="post" action="'.$_SERVER["PHP_SELF"].'?mode=config">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
@ -162,7 +163,7 @@ if ($mode=='config'&& $user->admin)
print '</form>'; print '</form>';
} }
if ($mode=='test'&& $user->admin) if ($mode == 'test' && $user->admin)
{ {
print '<table class="nobordernopadding" width="100%">'; print '<table class="nobordernopadding" width="100%">';
$printer = new dolPrintIPP($db,$conf->global->PRINTIPP_HOST,$conf->global->PRINTIPP_PORT,$user->login,$conf->global->PRINTIPP_USER,$conf->global->PRINTIPP_PASSWORD); $printer = new dolPrintIPP($db,$conf->global->PRINTIPP_HOST,$conf->global->PRINTIPP_PORT,$user->login,$conf->global->PRINTIPP_USER,$conf->global->PRINTIPP_PASSWORD);
@ -180,9 +181,10 @@ if ($mode=='test'&& $user->admin)
print '<td>Media</td>'; print '<td>Media</td>';
print '<td>Supported</td>'; print '<td>Supported</td>';
print "</tr>\n"; print "</tr>\n";
$list = $printer->getlist_available_printers(); $list = $printer->getlist_available_printers();
$var = True; $var = true;
foreach ($list as $value ) foreach ($list as $value)
{ {
$var=!$var; $var=!$var;
$printer_det = $printer->get_printer_detail($value); $printer_det = $printer->get_printer_detail($value);
@ -208,5 +210,6 @@ if ($mode=='test'&& $user->admin)
dol_fiche_end(); dol_fiche_end();
llxFooter(); llxFooter();
$db->close(); $db->close();
?> ?>

View File

@ -17,12 +17,19 @@
*/ */
/** /**
* \file htdocs/product/stock/replenishment.lib.php * \file htdocs/product/stock/lib/replenishment.lib.php
* \ingroup produit * \ingroup produit
* \brief Contains functions used in replenish.php and replenishorders.php * \brief Contains functions used in replenish.php and replenishorders.php
*/ */
require_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.commande.class.php'; require_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.commande.class.php';
/**
* dispatched
*
* @param int $order_id Id of order
* @return boolean
*/
function dispatched($order_id) function dispatched($order_id)
{ {
global $db; global $db;
@ -32,7 +39,8 @@ function dispatched($order_id)
$resql = $db->query($sql); $resql = $db->query($sql);
$dispatched = array(); $dispatched = array();
$ordered = array(); $ordered = array();
if($resql && $db->num_rows($resql)) { if($resql && $db->num_rows($resql))
{
while($res = $db->fetch_object($resql)) while($res = $db->fetch_object($resql))
$dispatched[] = $res; $dispatched[] = $res;
} }
@ -47,6 +55,11 @@ function dispatched($order_id)
return $dispatched == $ordered; return $dispatched == $ordered;
} }
/**
* dispatchedOrders
*
* @return Ambigous <string, multitype:NULL >
*/
function dispatchedOrders() function dispatchedOrders()
{ {
global $db; global $db;
@ -69,6 +82,12 @@ function dispatchedOrders()
return $res; return $res;
} }
/**
* ordered
*
* @param int $product_id Product id
* @return void
*/
function ordered($product_id) function ordered($product_id)
{ {
global $db, $langs, $conf; global $db, $langs, $conf;
@ -104,6 +123,12 @@ function ordered($product_id)
} }
} }
/**
* getProducts
*
* @param int $order_id Order id
* @return void
*/
function getProducts($order_id) function getProducts($order_id)
{ {
global $db; global $db;

View File

@ -18,7 +18,7 @@
*/ */
/** /**
* \file cron/public/cron/cron_run_jobs.php * \file htdocs/public/cron/cron_run_jobs.php
* \ingroup cron * \ingroup cron
* \brief Execute pendings jobs * \brief Execute pendings jobs
*/ */

View File

@ -1810,6 +1810,7 @@ tr.liste_total td, form.liste_total div {
border: 0px; border: 0px;
margin-bottom: 1px; margin-bottom: 1px;
color: #202020; color: #202020;
min-height: 18px; /* seems to not be used */
} }
.pair:hover { .pair:hover {

View File

@ -19,7 +19,7 @@
*/ */
/** /**
* \file cron/script/cron/cron_run_jobs.php * \file scripts/cron/cron_run_jobs.php
* \ingroup cron * \ingroup cron
* \brief Execute pendings jobs * \brief Execute pendings jobs
*/ */