diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php
index 48f9a089747..77ac39628e3 100644
--- a/htdocs/adherents/class/adherent.class.php
+++ b/htdocs/adherents/class/adherent.class.php
@@ -116,9 +116,8 @@ class Adherent extends CommonObject
/**
- * Constructor
- *
- * @param DoliDB $DB Database handler
+ * Adherent
+ * @param DB base de donnees
*/
function Adherent($DB)
{
diff --git a/htdocs/adherents/class/adherent_type.class.php b/htdocs/adherents/class/adherent_type.class.php
index 3793be3b38d..782949a2f92 100644
--- a/htdocs/adherents/class/adherent_type.class.php
+++ b/htdocs/adherents/class/adherent_type.class.php
@@ -49,9 +49,8 @@ class AdherentType extends CommonObject
/**
- * Constructor
- *
- * @param DoliDB $DB Database handler
+ * \brief AdherentType
+ * \param DB handler acces base de donnees
*/
function AdherentType($DB)
{
@@ -195,7 +194,6 @@ class AdherentType extends CommonObject
/**
* Return list of members' type
- *
* @return array List of types of members
*/
function liste_array()
@@ -235,12 +233,11 @@ class AdherentType extends CommonObject
/**
- * Renvoie nom clicable (avec eventuellement le picto)
- *
- * @param withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
- * @param maxlen length max libelle
- * @param option Page lien
- * @return string Chaine avec URL
+ * \brief Renvoie nom clicable (avec eventuellement le picto)
+ * \param withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
+ * \param maxlen length max libelle
+ * \param option Page lien
+ * \return string Chaine avec URL
*/
function getNomUrl($withpicto=0,$maxlen=0)
{
@@ -263,7 +260,6 @@ class AdherentType extends CommonObject
/**
* getMailOnValid
- *
* @return Return mail model
*/
function getMailOnValid()
@@ -282,7 +278,6 @@ class AdherentType extends CommonObject
/**
* getMailOnSubscription
- *
* @return Return mail model
*/
function getMailOnSubscription()
@@ -301,7 +296,6 @@ class AdherentType extends CommonObject
/**
* getMailOnResiliate
- *
* @return Return mail model
*/
function getMailOnResiliate()
diff --git a/htdocs/adherents/class/adherentstats.class.php b/htdocs/adherents/class/adherentstats.class.php
index 5ea122c80d3..6ad16b59fdb 100755
--- a/htdocs/adherents/class/adherentstats.class.php
+++ b/htdocs/adherents/class/adherentstats.class.php
@@ -45,12 +45,12 @@ class AdherentStats extends Stats
/**
- * Constructor
+ * Constructor
*
- * @param DoliDB $DB Database handler
- * @param int $socid Id third party
- * @param int $userid Id user for filter
- * @return AdherentStats
+ * @param $DB Database handler
+ * @param $socid Id third party
+ * @param $userid Id user for filter
+ * @return AdherentStats
*/
function AdherentStats($DB, $socid=0, $userid=0)
{
diff --git a/htdocs/adherents/class/cotisation.class.php b/htdocs/adherents/class/cotisation.class.php
index 75c7749e465..7ce4ca1d80d 100644
--- a/htdocs/adherents/class/cotisation.class.php
+++ b/htdocs/adherents/class/cotisation.class.php
@@ -49,9 +49,8 @@ class Cotisation extends CommonObject
/**
- * Constructor
- *
- * @param DoliDB $DB Database handler
+ * \brief Constructor
+ * \param DB Handler base de donnees
*/
function Cotisation($DB)
{
@@ -60,10 +59,9 @@ class Cotisation extends CommonObject
/**
- * Fonction qui permet de creer la cotisation
- *
- * @param userid userid de celui qui insere
- * @return int <0 si KO, Id cotisation cree si OK
+ * \brief Fonction qui permet de creer la cotisation
+ * \param userid userid de celui qui insere
+ * \return int <0 si KO, Id cotisation cree si OK
*/
function create($userid)
{
@@ -97,10 +95,9 @@ class Cotisation extends CommonObject
/**
- * Fonction qui permet de recuperer une cotisation
- *
- * @param rowid Id cotisation
- * @return int <0 si KO, =0 si OK mais non trouve, >0 si OK
+ * \brief Fonction qui permet de recuperer une cotisation
+ * \param rowid Id cotisation
+ * \return int <0 si KO, =0 si OK mais non trouve, >0 si OK
*/
function fetch($rowid)
{
@@ -147,11 +144,10 @@ class Cotisation extends CommonObject
/**
- * Met a jour en base la cotisation
- *
- * @param user Objet user qui met a jour
- * @param notrigger 0=Desactive les triggers
- * @param int <0 if KO, >0 if OK
+ * \brief Met a jour en base la cotisation
+ * \param user Objet user qui met a jour
+ * \param notrigger 0=Desactive les triggers
+ * \param int <0 if KO, >0 if OK
*/
function update($user,$notrigger=0)
{
@@ -188,10 +184,9 @@ class Cotisation extends CommonObject
}
/**
- * Delete a subscription
- *
- * @param rowid Id cotisation
- * @return int <0 si KO, 0 si OK mais non trouve, >0 si OK
+ * \brief Delete a subscription
+ * \param rowid Id cotisation
+ * \return int <0 si KO, 0 si OK mais non trouve, >0 si OK
*/
function delete($user)
{
@@ -255,10 +250,9 @@ class Cotisation extends CommonObject
/**
- * Renvoie nom clicable (avec eventuellement le picto)
- *
- * @param withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
- * @return string Chaine avec URL
+ * \brief Renvoie nom clicable (avec eventuellement le picto)
+ * \param withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
+ * \return string Chaine avec URL
*/
function getNomUrl($withpicto=0)
{
@@ -280,9 +274,8 @@ class Cotisation extends CommonObject
/**
- * Charge les informations d'ordre info dans l'objet cotisation
- *
- * @param id Id adhesion a charger
+ * \brief Charge les informations d'ordre info dans l'objet cotisation
+ * \param id Id adhesion a charger
*/
function info($id)
{
diff --git a/htdocs/adherents/stats/geo.php b/htdocs/adherents/stats/geo.php
index 5ac68ded510..fc7e09f60b6 100755
--- a/htdocs/adherents/stats/geo.php
+++ b/htdocs/adherents/stats/geo.php
@@ -168,7 +168,7 @@ dol_fiche_head($head, $tab, $langs->trans("Statistics"), 0, 'user');
// Print title
-if ($mode && ! count($data))
+if ($mode && ! sizeof($data))
{
print $langs->trans("NoValidatedMemberYet").'
';
print '
';
@@ -202,7 +202,7 @@ if ($mode == 'memberbycountry')
print "function drawMap() {\n\tvar data = new google.visualization.DataTable();\n";
// Get the total number of rows
- print "\tdata.addRows(".count($data).");\n";
+ print "\tdata.addRows(".sizeof($data).");\n";
print "\tdata.addColumn('string', 'Country');\n";
print "\tdata.addColumn('number', 'Number');\n";
diff --git a/htdocs/admin/notification.php b/htdocs/admin/notification.php
index 58617e87df4..150122461e7 100644
--- a/htdocs/admin/notification.php
+++ b/htdocs/admin/notification.php
@@ -27,7 +27,6 @@ require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
require_once(DOL_DOCUMENT_ROOT."/includes/triggers/interface_modNotification_Notification.class.php");
$langs->load("admin");
-$langs->load("mails");
// Security check
if (!$user->admin)
@@ -64,7 +63,7 @@ print_fiche_titre($langs->trans("NotificationSetup"),$linkback,'setup');
print $langs->trans("NotificationsDesc").'
';
-dol_htmloutput_mesg($mesg);
+if ($mesg) print $mesg.'
';
print '
';
+ print '
';
- dol_htmloutput_mesg($mesg);
- // List of active notifications
- print_fiche_titre($langs->trans("ListOfActiveNotifications"),'','');
- $var=true;
+ // List of active notifications
+ print_fiche_titre($langs->trans("ListOfActiveNotifications"),'','');
+ $var=true;
- // Line with titles
- print '';
- print '';
- print_liste_field_titre($langs->trans("Contact"),"fiche.php","c.name",'',$param,'"width="45%"',$sortfield,$sortorder);
- print_liste_field_titre($langs->trans("Action"),"fiche.php","a.titre",'',$param,'"width="35%"',$sortfield,$sortorder);
+ // Line with titles
+ print '';
+ print '';
+ print_liste_field_titre($langs->trans("Contact"),"fiche.php","c.name",'',$param,'"width="45%"',$sortfield,$sortorder);
+ print_liste_field_titre($langs->trans("Action"),"fiche.php","a.titre",'',$param,'"width="35%"',$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Type"),"fiche.php","",'',$param,'"width="10%"',$sortfield,$sortorder);
- print_liste_field_titre('','','');
- print '
';
+ print_liste_field_titre('','','');
+ print '';
- // List of notifications for contacts
- $sql = "SELECT n.rowid, n.type,";
- $sql.= " a.code, a.label,";
+ // List of notifications for contacts
+ $sql = "SELECT n.rowid, n.type,";
+ $sql.= " a.code, a.label,";
$sql.= " c.rowid as contactid, c.name, c.firstname, c.email";
- $sql.= " FROM ".MAIN_DB_PREFIX."c_action_trigger as a,";
- $sql.= " ".MAIN_DB_PREFIX."notify_def as n,";
- $sql.= " ".MAIN_DB_PREFIX."socpeople c";
- $sql.= " WHERE a.rowid = n.fk_action";
- $sql.= " AND c.rowid = n.fk_contact";
- $sql.= " AND c.fk_soc = ".$object->id;
+ $sql.= " FROM ".MAIN_DB_PREFIX."c_action_trigger as a,";
+ $sql.= " ".MAIN_DB_PREFIX."notify_def as n,";
+ $sql.= " ".MAIN_DB_PREFIX."socpeople c";
+ $sql.= " WHERE a.rowid = n.fk_action";
+ $sql.= " AND c.rowid = n.fk_contact";
+ $sql.= " AND c.fk_soc = ".$soc->id;
- $resql=$db->query($sql);
- if ($resql)
- {
- $num = $db->num_rows($resql);
- $i = 0;
+ $resql=$db->query($sql);
+ if ($resql)
+ {
+ $num = $db->num_rows($resql);
+ $i = 0;
- $contactstatic=new Contact($db);
+ $contactstatic=new Contact($db);
- while ($i < $num)
- {
- $var = !$var;
+ while ($i < $num)
+ {
+ $var = !$var;
- $obj = $db->fetch_object($resql);
+ $obj = $db->fetch_object($resql);
- $contactstatic->id=$obj->contactid;
- $contactstatic->name=$obj->name;
- $contactstatic->firstname=$obj->firstname;
- print '| '.$contactstatic->getNomUrl(1);
- if ($obj->type == 'email')
- {
- if (isValidEmail($obj->email))
- {
- print ' <'.$obj->email.'>';
- }
- else
- {
- $langs->load("errors");
- print ' '.img_warning().' '.$langs->trans("ErrorBadEMail",$obj->email);
- }
- }
- print ' | ';
- print '';
- $label=($langs->trans("Notify_".$obj->code)!="Notify_".$obj->code?$langs->trans("Notify_".$obj->code):$obj->label);
- print $label;
- print ' | ';
+ $contactstatic->id=$obj->contactid;
+ $contactstatic->name=$obj->name;
+ $contactstatic->firstname=$obj->firstname;
+ print '
| '.$contactstatic->getNomUrl(1);
+ if ($obj->type == 'email')
+ {
+ if (isValidEmail($obj->email))
+ {
+ print ' <'.$obj->email.'>';
+ }
+ else
+ {
+ $langs->load("errors");
+ print ' '.img_warning().' '.$langs->trans("ErrorBadEMail",$obj->email);
+ }
+ }
+ print ' | ';
+ print '';
+ $label=($langs->trans("Notify_".$obj->code)!="Notify_".$obj->code?$langs->trans("Notify_".$obj->code):$obj->label);
+ print $label;
+ print ' | ';
print '';
if ($obj->type == 'email') print $langs->trans("Email");
if ($obj->type == 'sms') print $langs->trans("SMS");
print ' | ';
print ''.img_delete().' | ';
- print '
';
- $i++;
- }
- $db->free($resql);
- }
- else
- {
- dol_print_error($db);
- }
+ print '';
+ $i++;
+ }
+ $db->free($resql);
+ }
+ else
+ {
+ dol_print_error($db);
+ }
- print '
';
- print '
';
+ print '
';
+ print '
';
- // List of notifications done
- print_fiche_titre($langs->trans("ListOfNotificationsDone"),'','');
- $var=true;
+ // List of notifications done
+ print_fiche_titre($langs->trans("ListOfNotificationsDone"),'','');
+ $var=true;
- // Line with titles
- print '';
- print '';
- print_liste_field_titre($langs->trans("Contact"),"fiche.php","c.name",'',$param,'',$sortfield,$sortorder);
- print_liste_field_titre($langs->trans("Action"),"fiche.php","a.titre",'',$param,'',$sortfield,$sortorder);
- print_liste_field_titre($langs->trans("Date"),"fiche.php","a.daten",'',$param,'align="right"',$sortfield,$sortorder);
- print '
';
+ // Line with titles
+ print '';
+ print '';
+ print_liste_field_titre($langs->trans("Contact"),"fiche.php","c.name",'',"&socid=$socid",'',$sortfield,$sortorder);
+ print_liste_field_titre($langs->trans("Action"),"fiche.php","a.titre",'',"&socid=$socid",'',$sortfield,$sortorder);
+ print_liste_field_titre($langs->trans("Date"),"fiche.php","a.titre",'',"&socid=$socid",'align="right"',$sortfield,$sortorder);
+ print '
';
- // List
- $sql = "SELECT n.rowid, n.daten, n.email, n.objet_type, n.objet_id,";
- $sql.= " c.rowid as id, c.name, c.firstname, c.email,";
- $sql.= " a.code, a.label";
- $sql.= " FROM ".MAIN_DB_PREFIX."c_action_trigger as a,";
- $sql.= " ".MAIN_DB_PREFIX."notify as n, ";
+ // List
+ $sql = "SELECT n.rowid, n.daten, n.email, n.objet_type, n.objet_id,";
+ $sql.= " c.rowid as id, c.name, c.firstname, c.email,";
+ $sql.= " a.code, a.label";
+ $sql.= " FROM ".MAIN_DB_PREFIX."c_action_trigger as a,";
+ $sql.= " ".MAIN_DB_PREFIX."notify as n, ";
$sql.= " ".MAIN_DB_PREFIX."socpeople as c";
$sql.= " WHERE a.rowid = n.fk_action";
$sql.= " AND c.rowid = n.fk_contact";
- $sql.= " AND c.fk_soc = ".$object->id;
+ $sql.= " AND c.fk_soc = ".$soc->id;
- $resql=$db->query($sql);
- if ($resql)
- {
- $num = $db->num_rows($resql);
- $i = 0;
+ $resql=$db->query($sql);
+ if ($resql)
+ {
+ $num = $db->num_rows($resql);
+ $i = 0;
- $contactstatic=new Contact($db);
+ $contactstatic=new Contact($db);
- while ($i < $num)
- {
- $var = !$var;
+ while ($i < $num)
+ {
+ $var = !$var;
- $obj = $db->fetch_object($resql);
+ $obj = $db->fetch_object($resql);
- $contactstatic->id=$obj->id;
- $contactstatic->name=$obj->name;
- $contactstatic->firstname=$obj->firstname;
- print '| '.$contactstatic->getNomUrl(1);
- print $obj->email?' <'.$obj->email.'>':$langs->trans("NoMail");
- print ' | ';
- print '';
- $label=($langs->trans("Notify_".$obj->code)!="Notify_".$obj->code?$langs->trans("Notify_".$obj->code):$obj->label);
- print $label;
- print ' | ';
- // TODO Add link to object here
- // print
- print''.dol_print_date($db->jdate($obj->daten), 'dayhour').' | ';
- print '
';
- $i++;
- }
- $db->free($resql);
- }
- else
- {
- dol_print_error($db);
- }
+ $contactstatic->id=$obj->id;
+ $contactstatic->name=$obj->name;
+ $contactstatic->firstname=$obj->firstname;
+ print '| '.$contactstatic->getNomUrl(1);
+ print $obj->email?' <'.$obj->email.'>':$langs->trans("NoMail");
+ print ' | ';
+ print '';
+ $label=($langs->trans("Notify_".$obj->code)!="Notify_".$obj->code?$langs->trans("Notify_".$obj->code):$obj->label);
+ print $label;
+ print ' | ';
+ // TODO Add link to object here
+ // print
+ print''.dol_print_date($db->jdate($obj->daten), 'dayhour').' | ';
+ print '
';
+ $i++;
+ }
+ $db->free($resql);
+ }
+ else
+ {
+ dol_print_error($db);
+ }
- print '
';
+ print '
';
}
-else dol_print_error('','RecordNotFound');
$db->close();
diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php
index fb0d19d721c..b5ad431ea80 100644
--- a/htdocs/theme/auguria/style.css.php
+++ b/htdocs/theme/auguria/style.css.php
@@ -1248,7 +1248,6 @@ th.liste_titre, td.liste_titre
font-weight: normal;
/* border-bottom: 1px solid #FDFFFF; */
white-space: nowrap;
- text-align: ;
}
th.liste_titre_sel, td.liste_titre_sel
{
@@ -1261,7 +1260,6 @@ th.liste_titre_sel, td.liste_titre_sel
/* text-decoration: underline; */
/* border-bottom: 1px solid #FDFFFF; */
white-space: nowrap;
- text-align: ;
}
input.liste_titre {
background: transparent;
diff --git a/htdocs/theme/bureau2crea/style.css.php b/htdocs/theme/bureau2crea/style.css.php
index 7312b757d11..404fee28c28 100644
--- a/htdocs/theme/bureau2crea/style.css.php
+++ b/htdocs/theme/bureau2crea/style.css.php
@@ -1439,7 +1439,6 @@ th.liste_titre, td.liste_titre
white-space: nowrap;
background-image: none;
background: none;
- text-align: ;
}
/*tr.liste_titre select.flat {
@@ -1455,8 +1454,7 @@ tr.liste_titre input.button {
/*margin: 30px 10px 10px 0px;*/
}
-th.liste_titre_sel, td.liste_titre_sel
-{
+td.liste_titre_sel {
background: #505050;
background-repeat: repeat-x;
color: #FFFFFF;
@@ -1465,7 +1463,6 @@ th.liste_titre_sel, td.liste_titre_sel
/* text-decoration: underline; */
/* border-bottom: 1px solid #FDFFFF; */
white-space: nowrap;
- text-align: ;
}
input.liste_titre {
diff --git a/htdocs/theme/cameleo/style.css.php b/htdocs/theme/cameleo/style.css.php
index 42f43efc8c8..6a8e369979c 100644
--- a/htdocs/theme/cameleo/style.css.php
+++ b/htdocs/theme/cameleo/style.css.php
@@ -1355,7 +1355,6 @@ th.liste_titre, td.liste_titre
padding-left: 6px;
padding-right: 6px;
/*vertical-align: text-top;*/
- text-align: ;
}
th.liste_titre_sel, td.liste_titre_sel
{
@@ -1363,7 +1362,6 @@ th.liste_titre_sel, td.liste_titre_sel
color: #A51B00;
font-weight: bold;
white-space: nowrap;
- text-align: ;
}
input.liste_titre {
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index 58e2ced4c1e..ba4b2f855d4 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -1266,7 +1266,6 @@ th.liste_titre, td.liste_titre
font-weight: normal;
border-bottom: 1px solid #FDFFFF;
white-space: nowrap;
- text-align: ;
}
th.liste_titre_sel, td.liste_titre_sel
{
@@ -1278,7 +1277,6 @@ th.liste_titre_sel, td.liste_titre_sel
font-weight: normal;
border-bottom: 1px solid #FDFFFF;
white-space: nowrap;
- text-align: ;
}
input.liste_titre {
background: #7699A9;
diff --git a/htdocs/theme/phones/smartphone/theme/default/default.css.php b/htdocs/theme/phones/smartphone/theme/default/default.css.php
index 4145de0a326..89048687034 100644
--- a/htdocs/theme/phones/smartphone/theme/default/default.css.php
+++ b/htdocs/theme/phones/smartphone/theme/default/default.css.php
@@ -316,37 +316,33 @@ padding: 0px 0px;
-tr.liste_titre
-{
- height: 24px;
- background: -moz-linear-gradient(center top , #81A8CE, #5E87B0) repeat scroll 0 0 #5E87B0;
- border: 1px solid #456F9A;
- color: #FFFFFF;
- font-family: ;
- /* border-bottom: 1px solid #FDFFFF; */
- white-space: nowrap;
+tr.liste_titre {
+height: 24px;
+background: -moz-linear-gradient(center top , #81A8CE, #5E87B0) repeat scroll 0 0 #5E87B0;
+border: 1px solid #456F9A;
+color: #FFFFFF;
+font-family: ;
+/* border-bottom: 1px solid #FDFFFF; */
+white-space: nowrap;
}
-th.liste_titre, td.liste_titre
-{
- background: -moz-linear-gradient(center top , #81A8CE, #5E87B0) repeat scroll 0 0 #5E87B0;
- border: 1px solid #456F9A;
- color: #FFFFFF;
- font-family: ;
- font-weight: normal;
- /* border-bottom: 1px solid #FDFFFF; */
- white-space: nowrap;
- text-align: ;
+td.liste_titre {
+background: -moz-linear-gradient(center top , #81A8CE, #5E87B0) repeat scroll 0 0 #5E87B0;
+border: 1px solid #456F9A;
+color: #FFFFFF;
+font-family: ;
+font-weight: normal;
+/* border-bottom: 1px solid #FDFFFF; */
+white-space: nowrap;
}
-th.liste_titre_sel, td.liste_titre_sel
+td.liste_titre_sel
{
- background: -moz-linear-gradient(center top , #81A8CE, #5E87B0) repeat scroll 0 0 #5E87B0;
- color: #FFFFFF;
- font-family: ;
- font-weight: normal;
- /* text-decoration: underline; */
- /* border-bottom: 1px solid #FDFFFF; */
- white-space: nowrap;
- text-align: ;
+background: -moz-linear-gradient(center top , #81A8CE, #5E87B0) repeat scroll 0 0 #5E87B0;
+color: #FFFFFF;
+font-family: ;
+font-weight: normal;
+/* text-decoration: underline; */
+/* border-bottom: 1px solid #FDFFFF; */
+white-space: nowrap;
}
input.liste_titre {
background: transparent;