All phone number now show the clicktodial link if module is enabled
This commit is contained in:
parent
fdec1d036a
commit
3808913480
@ -18,6 +18,7 @@ For users:
|
||||
- Can set umask file permissions on Unix/Linux/BSD systems.
|
||||
- Miscelanous bug fixes.
|
||||
- A lot of other enhancements to increase productivity.
|
||||
- All phone numbers show the clicktodial link if module is enabled.
|
||||
|
||||
For translators:
|
||||
- The errors language file contains only error or warning messages with
|
||||
|
||||
@ -70,14 +70,15 @@ $var=true;
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Name").'</td>';
|
||||
print '<td>'.$langs->trans("Value").'</td><td>'.$langs->trans("Desc").'</td>';
|
||||
print '<td>'.$langs->trans("Value").'</td><td>'.$langs->trans("Description").'</td>';
|
||||
print "</tr>\n";
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'><td>';
|
||||
print $langs->trans("URL").'</td><td>';
|
||||
print '<input size="32" type="text" name="url" value="'.$conf->global->CLICKTODIAL_URL.'">';
|
||||
print '<input size="48" type="text" name="url" value="'.$conf->global->CLICKTODIAL_URL.'">';
|
||||
print '</td><td>';
|
||||
print $langs->trans("ClickToDialUrlDesc");
|
||||
print $langs->trans("ClickToDialUrlDesc").'<br>';
|
||||
print $langs->trans("Example").': http://myphoneserver/mypage?login=%3$s&password=%4$s&caller=%2$s&called=%1$s';
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td colspan="3" align="center"><input type="submit" class="button" value="'.$langs->trans("Modify").'"></td></tr>';
|
||||
|
||||
@ -172,12 +172,12 @@ if ($_GET["socid"])
|
||||
print '<tr><td>'.$langs->trans('Country').'</td><td colspan="3">'.$soc->pays.'</td></tr>';
|
||||
}
|
||||
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel,$soc->pays_code).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax,$soc->pays_code).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel,$soc->pays_code,0,$soc->id).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax,$soc->pays_code,0,$soc->id).'</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans("Web")."</td><td colspan=\"3\"><a href=\"http://$soc->url\" target=\"_blank\">".$soc->url."</a> </td></tr>";
|
||||
|
||||
// Assujeti <EFBFBD> TVA ou pas
|
||||
// Assujeti a TVA ou pas
|
||||
print '<tr>';
|
||||
print '<td nowrap="nowrap">'.$langs->trans('VATIsUsed').'</td><td colspan="3">';
|
||||
print yn($soc->tva_assuj);
|
||||
|
||||
@ -161,7 +161,7 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create')
|
||||
if ($user->rights->societe->creer)
|
||||
{
|
||||
/*
|
||||
* Fiche adresse de livraison en mode création
|
||||
* Fiche adresse de livraison en mode cr<EFBFBD>ation
|
||||
*/
|
||||
|
||||
$livraison = new AdresseLivraison($db);
|
||||
@ -362,7 +362,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit')
|
||||
else
|
||||
{
|
||||
/*
|
||||
* Fiche société en mode visu
|
||||
* Fiche soci<EFBFBD>t<EFBFBD> en mode visu
|
||||
*/
|
||||
$livraison = new AdresseLivraison($db);
|
||||
$result=$livraison->fetch($socid);
|
||||
@ -413,9 +413,9 @@ else
|
||||
|
||||
print '<tr><td>'.$langs->trans('Country').'</td><td colspan="3">'.$livraison->lignes[$i]->pays.'</td>';
|
||||
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($livraison->lignes[$i]->tel).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($livraison->lignes[$i]->tel,$livraison->lignes[$i]->pays_code,0,$livraison->socid).'</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($livraison->lignes[$i]->fax).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($livraison->lignes[$i]->fax,$livraison->lignes[$i]->pays_code,0,$livraison->socid).'</td></tr>';
|
||||
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2003 Éric Seigne <erics@rycks.com>
|
||||
* Copyright (C) 2003 <EFBFBD>ric Seigne <erics@rycks.com>
|
||||
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -125,10 +125,10 @@ if ($socid) {
|
||||
|
||||
$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($limit+1, $offset);
|
||||
|
||||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
$resql = $db->query($sql);
|
||||
if ($resql)
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
$num = $db->num_rows($resql);
|
||||
|
||||
print_barre_liste($langs->trans("ListOfContacts").($label?" (".$label.")":""),$page, $_SERVER["PHP_SELF"], "&type=$type",$sortfield,$sortorder,"",$num);
|
||||
|
||||
@ -155,7 +155,7 @@ if ($result)
|
||||
$i = 0;
|
||||
while ($i < min($num,$limit))
|
||||
{
|
||||
$obj = $db->fetch_object();
|
||||
$obj = $db->fetch_object($resql);
|
||||
|
||||
$var=!$var;
|
||||
|
||||
@ -169,13 +169,13 @@ if ($result)
|
||||
|
||||
print '<td><a href="action/fiche.php?action=create&actioncode=AC_EMAIL&contactid='.$obj->cidp.'&socid='.$obj->rowid.'">'.$obj->email.'</a> </td>';
|
||||
|
||||
print '<td><a href="action/fiche.php?action=create&actioncode=AC_TEL&contactid='.$obj->cidp.'&socid='.$obj->rowid.'">'.dolibarr_print_phone($obj->phone).'</a> </td>';
|
||||
print '<td>'.dolibarr_print_phone($obj->phone,$obj->pays_code,$obj->cidp,$obj->rowid).' </td>';
|
||||
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
}
|
||||
print "</table></p>";
|
||||
$db->free();
|
||||
print "</table></p>";
|
||||
$db->free($resql);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -184,5 +184,5 @@ else
|
||||
|
||||
$db->close();
|
||||
|
||||
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
||||
llxFooter('$Date$ - $Revision$');
|
||||
?>
|
||||
|
||||
@ -189,10 +189,10 @@ if ($socid > 0)
|
||||
print '</td></tr>';
|
||||
|
||||
// Phone
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($objsoc->tel,$objsoc->pays_code).'</td>';
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($objsoc->tel,$objsoc->pays_code,0,$objsoc->id).'</td>';
|
||||
|
||||
// Fax
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($objsoc->fax,$objsoc->pays_code).'</td></tr>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($objsoc->fax,$objsoc->pays_code,0,$objsoc->id).'</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans("Web")."</td><td colspan=\"3\"><a href=\"http://$objsoc->url\" target=\"_blank\">".$objsoc->url."</a> </td></tr>";
|
||||
|
||||
|
||||
@ -107,7 +107,7 @@ if ($socid > 0)
|
||||
else print $societe->pays;
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans("Phone").'</td><td>'.dolibarr_print_phone($societe->tel,$societe->pays_code).'</td><td>Fax</td><td>'.dolibarr_print_phone($societe->fax,$societe->pays_code).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans("Phone").'</td><td>'.dolibarr_print_phone($societe->tel,$societe->pays_code,0,$societe->id).'</td><td>Fax</td><td>'.dolibarr_print_phone($societe->fax,$societe->pays_code).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans("Web")."</td><td colspan=\"3\"><a href=\"http://$societe->url\">$societe->url</a></td></tr>";
|
||||
|
||||
if ($societe->rubrique)
|
||||
|
||||
@ -140,10 +140,10 @@ if ($socid > 0)
|
||||
else print $societe->pays;
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans("Phone").'</td><td>'.dolibarr_print_phone($societe->tel,$societe->pays_code).' </td><td>'.$langs->trans("Fax").'</td><td>'.dolibarr_print_phone($societe->fax,$societe->pays_code).' </td></tr>';
|
||||
print '<tr><td>'.$langs->trans("Phone").'</td><td>'.dolibarr_print_phone($societe->tel,$societe->pays_code,0,$societe->id).'</td><td>'.$langs->trans("Fax").'</td><td>'.dolibarr_print_phone($societe->fax,$societe->pays_code,0,$societe->id).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans("Web")."</td><td colspan=\"3\"><a href=\"http://$societe->url\" target=\"_blank\">$societe->url</a> </td></tr>";
|
||||
|
||||
// Assujeti <EFBFBD> TVA ou pas
|
||||
// Assujeti a TVA ou pas
|
||||
print '<tr>';
|
||||
print '<td nowrap="nowrap">'.$langs->trans('VATIsUsed').'</td><td colspan="3">';
|
||||
print yn($societe->tva_assuj);
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
/**
|
||||
* \file htdocs/contact/fiche.php
|
||||
* \ingroup societe
|
||||
* \brief Onglet général d'un contact
|
||||
* \brief Onglet g<EFBFBD>n<EFBFBD>ral d'un contact
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
@ -268,7 +268,7 @@ if ($user->rights->societe->contact->creer)
|
||||
// Company
|
||||
if ($socid)
|
||||
{
|
||||
// On remplit avec le numéro de la société par défaut
|
||||
// On remplit avec le num<EFBFBD>ro de la soci<63>t<EFBFBD> par d<>faut
|
||||
if (strlen(trim($contact->phone_pro)) == 0)
|
||||
{
|
||||
$contact->phone_pro = $objsoc->tel;
|
||||
@ -526,11 +526,11 @@ if ($_GET["id"] && $_GET["action"] != 'edit')
|
||||
print $contact->pays;
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans("PhonePro").'</td><td>'.dolibarr_print_phone($contact->phone_pro,$objsoc->pays_code).'</td>';
|
||||
print '<td>'.$langs->trans("PhonePerso").'</td><td>'.dolibarr_print_phone($contact->phone_perso,$objsoc->pays_code).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans("PhonePro").'</td><td>'.dolibarr_print_phone($contact->phone_pro,$contact->pays_code,$contact->id,$contact->socid).'</td>';
|
||||
print '<td>'.$langs->trans("PhonePerso").'</td><td>'.dolibarr_print_phone($contact->phone_perso,$contact->pays_code,$contact->id,$contact->socid).'</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans("PhoneMobile").'</td><td>'.dolibarr_print_phone($contact->phone_mobile,$objsoc->pays_code).'</td>';
|
||||
print '<td>'.$langs->trans("Fax").'</td><td>'.dolibarr_print_phone($contact->fax,$objsoc->pays_code).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans("PhoneMobile").'</td><td>'.dolibarr_print_phone($contact->phone_mobile,$contact->pays_code,$contact->id,$contact->socid).'</td>';
|
||||
print '<td>'.$langs->trans("Fax").'</td><td>'.dolibarr_print_phone($contact->fax,$contact->pays_code,$contact->id,$contact->socid).'</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans("EMail").'</td><td>';
|
||||
if ($contact->email && ! ValidEmail($contact->email))
|
||||
|
||||
@ -107,8 +107,10 @@ $form=new Form($db);
|
||||
$sql = "SELECT s.rowid as socid, s.nom,";
|
||||
$sql.= " p.rowid as cidp, p.name, p.firstname, p.email,";
|
||||
$sql.= " p.phone, p.phone_mobile, p.fax, p.fk_pays, p.priv,";
|
||||
$sql.= " ".$db->pdate("p.tms")." as tms";
|
||||
$sql.= " ".$db->pdate("p.tms")." as tms,";
|
||||
$sql.= " cp.code as pays_code";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."socpeople as p";
|
||||
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_pays as cp ON cp.rowid = p.fk_pays";
|
||||
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON s.rowid = p.fk_soc";
|
||||
if (!$user->rights->societe->client->voir && !$socid) $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe_commerciaux as sc ON s.rowid = sc.fk_soc";
|
||||
$sql.= " WHERE 1=1 ";
|
||||
@ -312,17 +314,14 @@ if ($result)
|
||||
|
||||
// Phone
|
||||
print '<td>';
|
||||
if ($conf->agenda->enabled && $user->rights->agenda->myactions->create)
|
||||
print '<a href="'.DOL_URL_ROOT.'/comm/action/fiche.php?action=create&backtopage=1&actioncode=AC_TEL&contactid='.$obj->cidp.'&socid='.$obj->socid.'">'.dolibarr_print_phone($obj->phone,$obj->pays_code).'</a>';
|
||||
else
|
||||
print dolibarr_print_phone($obj->phone,$obj->pays_code);
|
||||
print dolibarr_print_phone($obj->phone,$obj->pays_code,$obj->cidp,$obj->socid);
|
||||
print '</td>';
|
||||
|
||||
if ($_GET["view"] == 'phone')
|
||||
{
|
||||
print '<td>'.dolibarr_print_phone($obj->phone_mobile,$obj->fk_pays).' </td>';
|
||||
print '<td>'.dolibarr_print_phone($obj->phone_mobile,$obj->pays_code,$obj->cidp,$obj->socid).' </td>';
|
||||
|
||||
print '<td>'.dolibarr_print_phone($obj->fax,$obj->fk_pays).' </td>';
|
||||
print '<td>'.dolibarr_print_phone($obj->fax,$obj->pays_code,$obj->cidp,$obj->socid).' </td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -332,7 +331,7 @@ if ($result)
|
||||
}
|
||||
elseif (! ValidEmail($obj->email))
|
||||
{
|
||||
print "Email Invalide !";
|
||||
print "Bad email";
|
||||
}
|
||||
else {
|
||||
print '<a href="mailto:'.$obj->email.'">'.$obj->email.'</a>';
|
||||
|
||||
@ -94,7 +94,7 @@ if ( $societe->fetch($socid) )
|
||||
else print $societe->pays;
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans("Phone").'</td><td>'.dolibarr_print_phone($societe->tel,$societe->pays_code).' </td><td>'.$langs->trans("Fax").'</td><td>'.dolibarr_print_phone($societe->fax,$societe->pays_code).' </td></tr>';
|
||||
print '<tr><td>'.$langs->trans("Phone").'</td><td>'.dolibarr_print_phone($societe->tel,$societe->pays_code,0,$societe->id).'</td><td>'.$langs->trans("Fax").'</td><td>'.dolibarr_print_phone($societe->fax,$societe->pays_code,0,$societe->id).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans("Web")."</td><td colspan=\"3\"><a href=\"http://$societe->url\">$societe->url</a> </td></tr>";
|
||||
|
||||
// Assujetti a TVA ou pas
|
||||
|
||||
@ -697,7 +697,7 @@ TemplatePDFInterventions=Mod
|
||||
WatermarkOnDraftInterventionCards=Filigrane sur les brouillons des fiches d'interventions (aucun si vide)
|
||||
##### Clicktodial #####
|
||||
ClickToDialSetup=Configuration du module Click To Dial
|
||||
ClickToDialUrlDesc=Url appelée lors dun clic sur le picto téléphone.<br>L'url complète appelée sera: URL?login=...&password=...&caller=...&called=telappelé
|
||||
ClickToDialUrlDesc=Url appelée lors dun clic sur le picto téléphone. Dans l'url, vous pouvez utiliser les balises<br><b>%%1$s</b> qui sera remplacé par le téléphone de l'appelé<br><b>%%2$s</b> qui sera remplacé par le téléphone de l'appelant (le votre)<br><b>%%3$s</b> qui sera remplacé par votre login clicktodial (défini sur votre fiche utilisateur)<br><b>%%4$s</b> qui sera remplacé par votre mot de passe clicktodial (défini sur votre fiche utilisateur.
|
||||
##### Bookmark4u #####
|
||||
Bookmark4uSetup=Configuration du module Bookmark4u
|
||||
##### Interventions #####
|
||||
|
||||
@ -298,20 +298,11 @@ function show_contacts($conf,$langs,$db,$objsoc)
|
||||
|
||||
// Lien click to dial
|
||||
print '<td>';
|
||||
if ($conf->agenda->enabled && $user->rights->agenda->myactions->create)
|
||||
print '<a href="'.DOL_URL_ROOT.'/comm/action/fiche.php?action=create&backtopage=1&actioncode=AC_TEL&contactid='.$obj->rowid.'&socid='.$objsoc->id.'">';
|
||||
print dolibarr_print_phone($obj->phone);
|
||||
if ($conf->agenda->enabled && $user->rights->agenda->myactions->create)
|
||||
print '</a>';
|
||||
if ($obj->phone) print dol_phone_link($obj->phone);
|
||||
print dolibarr_print_phone($obj->phone,$obj->pays_code,$obj->rowid,$objsoc->id);
|
||||
print '</td>';
|
||||
print '<td>';
|
||||
if ($conf->agenda->enabled && $user->rights->agenda->myactions->create)
|
||||
print '<a href="'.DOL_URL_ROOT.'/comm/action/fiche.php?action=create&backtopage=1&actioncode=AC_FAX&contactid='.$obj->rowid.'&socid='.$objsoc->id.'">';
|
||||
print dolibarr_print_phone($obj->fax);
|
||||
if ($conf->agenda->enabled && $user->rights->agenda->myactions->create)
|
||||
print '</a>';
|
||||
print ' </td>';
|
||||
print dolibarr_print_phone($obj->fax,$obj->pays_code,$obj->rowid,$objsoc->id);
|
||||
print '</td>';
|
||||
print '<td>';
|
||||
if ($conf->agenda->enabled && $user->rights->agenda->myactions->create)
|
||||
print '<a href="'.DOL_URL_ROOT.'/comm/action/fiche.php?action=create&backtopage=1&actioncode=AC_EMAIL&contactid='.$obj->rowid.'&socid='.$objsoc->id.'">';
|
||||
|
||||
@ -712,42 +712,61 @@ function dolibarr_print_object_info($object)
|
||||
}
|
||||
|
||||
/**
|
||||
\brief Formatage des num<EFBFBD>ros de telephone en fonction du format d'un pays
|
||||
\param phone Num<EFBFBD>ro de telephone a formater
|
||||
\param country Pays selon lequel formatter
|
||||
\return string Num<EFBFBD>ro de t<EFBFBD>l<EFBFBD>phone format<EFBFBD>
|
||||
* \brief Format phone numbers according to country
|
||||
* \param phone Phone number to format
|
||||
* \param country Country to use for formatting
|
||||
* \param cid Id of contact if known
|
||||
* \param socid Id of third party if known
|
||||
* \param nolinks true means no HTML links is added
|
||||
* \return string Formated phone number
|
||||
*/
|
||||
function dolibarr_print_phone($phone,$country="FR")
|
||||
function dolibarr_print_phone($phone,$country="FR",$cid=0,$socid=0,$nolinks=false)
|
||||
{
|
||||
$phone=trim($phone);
|
||||
if (! $phone) { return $phone; }
|
||||
global $conf,$user;
|
||||
|
||||
$phone = ereg_replace("[ .-]","",trim($phone));
|
||||
if (empty($phone)) { return ''; }
|
||||
|
||||
$newphone=$phone;
|
||||
if (strtoupper($country) == "FR")
|
||||
{
|
||||
// France
|
||||
if (strlen($phone) == 10) {
|
||||
return substr($phone,0,2)." ".substr($phone,2,2)." ".substr($phone,4,2)." ".substr($phone,6,2)." ".substr($phone,8,2);
|
||||
if (strlen($newphone) == 10) {
|
||||
$newphone=substr($newphone,0,2)." ".substr($newphone,2,2)." ".substr($newphone,4,2)." ".substr($newphone,6,2)." ".substr($newphone,8,2);
|
||||
}
|
||||
elseif (strlen($phone) == 7)
|
||||
elseif (strlen($newphone) == 7)
|
||||
{
|
||||
|
||||
return substr($phone,0,3)." ".substr($phone,3,2)." ".substr($phone,5,2);
|
||||
$newphone=substr($newphone,0,3)." ".substr($newphone,3,2)." ".substr($newphone,5,2);
|
||||
}
|
||||
elseif (strlen($phone) == 9)
|
||||
elseif (strlen($newphone) == 9)
|
||||
{
|
||||
return substr($phone,0,2)." ".substr($phone,2,3)." ".substr($phone,5,2)." ".substr($phone,7,2);
|
||||
$newphone=substr($newphone,0,2)." ".substr($newphone,2,3)." ".substr($newphone,5,2)." ".substr($newphone,7,2);
|
||||
}
|
||||
elseif (strlen($phone) == 11)
|
||||
elseif (strlen($newphone) == 11)
|
||||
{
|
||||
return substr($phone,0,3)." ".substr($phone,3,2)." ".substr($phone,5,2)." ".substr($phone,7,2)." ".substr($phone,9,2);
|
||||
$newphone=substr($newphone,0,3)." ".substr($newphone,3,2)." ".substr($newphone,5,2)." ".substr($newphone,7,2)." ".substr($newphone,9,2);
|
||||
}
|
||||
elseif (strlen($phone) == 12)
|
||||
elseif (strlen($newphone) == 12)
|
||||
{
|
||||
return substr($phone,0,4)." ".substr($phone,4,2)." ".substr($phone,6,2)." ".substr($phone,8,2)." ".substr($phone,10,2);
|
||||
$newphone=substr($newphone,0,4)." ".substr($newphone,4,2)." ".substr($newphone,6,2)." ".substr($newphone,8,2)." ".substr($newphone,10,2);
|
||||
}
|
||||
}
|
||||
|
||||
return $phone;
|
||||
if (empty($nolinks))
|
||||
{
|
||||
if (($cid || $socid) && $conf->agenda->enabled && $user->rights->agenda->myactions->create)
|
||||
{
|
||||
$newphone='<a href="'.DOL_URL_ROOT.'/comm/action/fiche.php?action=create&backtopage=1&actioncode=AC_TEL&contactid='.$cid.'&socid='.$socid.'">'.$newphone.'</a>';
|
||||
}
|
||||
$clicktodiallink=dol_phone_link($phone);
|
||||
if ($clicktodiallink)
|
||||
{
|
||||
$newphone='<table class="nobordernopadding"><tr><td>'.$newphone.' </td><td>'.$clicktodiallink.'</td></tr></table>';
|
||||
}
|
||||
}
|
||||
|
||||
return $newphone;
|
||||
}
|
||||
|
||||
|
||||
@ -778,11 +797,11 @@ function dol_phone_link($phone,$option=0)
|
||||
//if (! empty($conf->global->CLICKTODIAL_URL))
|
||||
if ($conf->clicktodial->enabled)
|
||||
{
|
||||
$phone=trim($phone);
|
||||
$url = $conf->global->CLICKTODIAL_URL;
|
||||
$url.= "?login=".urlencode($user->clicktodial_login)."&password=".urlencode($user->clicktodial_password);
|
||||
$url.= "&caller=".urlencode($user->clicktodial_poste)."&called=".urlencode(trim($phone));
|
||||
$link.='<a href="URL_DEFINED_IN_CLICKTODIAL_MODULE" onclick="newpopup(\''.$url.'\',\'\'); return false;">'.img_phone("default",0).'</a>';
|
||||
// Cleaning phone number
|
||||
$phone = ereg_replace("[ .-]","",trim($phone));
|
||||
|
||||
$url = sprintf($conf->global->CLICKTODIAL_URL, urlencode($phone), urlencode($user->clicktodial_poste), urlencode($user->clicktodial_login), urlencode($user->clicktodial_password));
|
||||
$link.='<a href="'.$url.'">'.img_phone("default",0).'</a>';
|
||||
}
|
||||
return $link;
|
||||
}
|
||||
@ -2584,7 +2603,7 @@ function clean_url($url,$http=1)
|
||||
$domain=$regs[2];
|
||||
$port=$regs[3];
|
||||
//print $url." -> ".$proto." - ".$domain." - ".$port;
|
||||
$url = unaccent_isostring(trim($url));
|
||||
$url = dol_string_nospecial(trim($url));
|
||||
|
||||
// Si http: defini on supprime le http (Si https on ne supprime pas)
|
||||
if ($http==0)
|
||||
|
||||
@ -1021,8 +1021,8 @@ else
|
||||
|
||||
print '<tr><td>'.$langs->trans('State').'</td><td colspan="3">'.$soc->departement.'</td>';
|
||||
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel,$soc->pays_code,0,$soc->id).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax,$soc->pays_code,0,$soc->id).'</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans('EMail').'</td><td>';
|
||||
if ($soc->email) { print '<a href="mailto:'.$soc->email.'" target="_blank">'.$soc->email.'</a>'; }
|
||||
|
||||
@ -116,8 +116,8 @@ if ($_GET["socid"])
|
||||
|
||||
print '<tr><td>'.$langs->trans('Country').'</td><td colspan="3">'.$soc->pays.'</td>';
|
||||
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel,$soc->pays_code,0,$soc->id).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax,$soc->pays_code,0,$soc->id).'</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans('Web').'</td><td colspan="3">';
|
||||
if ($soc->url) { print '<a href="http://'.$soc->url.'">http://'.$soc->url.'</a>'; }
|
||||
|
||||
@ -99,7 +99,7 @@ if($_GET["socid"])
|
||||
dolibarr_fiche_head($head, 'links', $langs->trans("ThirdParty"));
|
||||
|
||||
/*
|
||||
* Fiche société en mode visu
|
||||
* Fiche soci<EFBFBD>t<EFBFBD> en mode visu
|
||||
*/
|
||||
|
||||
print '<table class="border" width="100%">';
|
||||
@ -118,8 +118,8 @@ if($_GET["socid"])
|
||||
|
||||
print "<tr><td>".$langs->trans('Country')."</td><td colspan=\"3\">".$soc->pays."</td></tr>";
|
||||
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel,$soc->pays_code,0,$soc->id).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax,$soc->pays_code,0,$soc->id).'</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans('Web').'</td><td colspan="3">';
|
||||
if ($soc->url) { print '<a href="http://'.$soc->url.'">http://'.$soc->url.'</a>'; }
|
||||
@ -132,7 +132,7 @@ if($_GET["socid"])
|
||||
print '<tr><td>'.$langs->transcountry('ProfId3',$soc->pays_code).'</td><td>'.$soc->ape.'</td><td colspan="2"> </td></tr>';
|
||||
print '<tr><td>'.$langs->trans("Capital").'</td><td colspan="3">'.$soc->capital.' '.$langs->trans("Currency".$conf->monnaie).'</td></tr>';
|
||||
|
||||
// Société mère
|
||||
// Societe mere
|
||||
print '<tr><td>'.$langs->trans("ParentCompany").'</td><td colspan="3">';
|
||||
if ($soc->parent)
|
||||
{
|
||||
@ -258,7 +258,7 @@ if($_GET["socid"])
|
||||
}
|
||||
|
||||
print '</td>';
|
||||
// Lien Sélectionner
|
||||
// Lien S<EFBFBD>lectionner
|
||||
print '<td align="center"><a href="lien.php?socid='.$_GET["socid"].'&select='.$obj->socid.'">'.$langs->trans("Select").'</a>';
|
||||
print '</td>';
|
||||
|
||||
|
||||
@ -296,12 +296,12 @@ if ($_POST["action"] == 'update' && $_POST["cancel"] <> $langs->trans("Cancel"))
|
||||
|
||||
{
|
||||
$action = '';
|
||||
$mesg = 'Fiche mise à jour';
|
||||
$mesg = 'Fiche mise <EFBFBD> jour';
|
||||
}
|
||||
else
|
||||
{
|
||||
$action = 're-edit';
|
||||
$mesg = 'Fiche non mise à jour !' . "<br>" . $entrepot->mesg_error;
|
||||
$mesg = 'Fiche non mise <EFBFBD> jour !' . "<br>" . $entrepot->mesg_error;
|
||||
}
|
||||
}
|
||||
|
||||
@ -313,7 +313,7 @@ if ($cancel == $langs->trans("Cancel"))
|
||||
}
|
||||
|
||||
/*
|
||||
* Création en 2 étape
|
||||
* Cr<EFBFBD>ation en 2 <EFBFBD>tape
|
||||
*
|
||||
*/
|
||||
if ($_GET["action"] == 'create')
|
||||
@ -323,7 +323,7 @@ if ($_GET["action"] == 'create')
|
||||
|
||||
if (is_object($ligne))
|
||||
{
|
||||
// La création a échouée
|
||||
// La cr<EFBFBD>ation a <20>chou<6F>e
|
||||
print $ligne->error_message;
|
||||
}
|
||||
else
|
||||
@ -358,7 +358,7 @@ if ($_GET["action"] == 'create')
|
||||
$form->select_array("client",$ff,$ligne->client_comm);
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td> </td><td><input type="submit" value="Créer"></td></tr>'."\n";
|
||||
print '<tr><td> </td><td><input type="submit" value="Cr<EFBFBD>er"></td></tr>'."\n";
|
||||
print '</table>'."\n";
|
||||
print '</form>';
|
||||
}
|
||||
@ -369,7 +369,7 @@ elseif ($_GET["action"] == 'create_line' && $_GET["client"] > 0)
|
||||
|
||||
if (is_object($ligne))
|
||||
{
|
||||
// La création a échouée
|
||||
// La cr<EFBFBD>ation a <20>chou<6F>e
|
||||
print '<div class="errormessage">'.$ligne->error_message.'</div>';
|
||||
}
|
||||
else
|
||||
@ -394,7 +394,7 @@ elseif ($_GET["action"] == 'create_line' && $_GET["client"] > 0)
|
||||
print $socc->code_client;
|
||||
print '</td></tr>';
|
||||
print '</table><br /><br />';
|
||||
print 'Impossible de créer une ligne pour cette société, vous devez au préalablement lui affecter un code client.';
|
||||
print 'Impossible de cr<EFBFBD>er une ligne pour cette soci<63>t<EFBFBD>, vous devez au pr<70>alablement lui affecter un code client.';
|
||||
}
|
||||
elseif (strlen($socc->code_client) > 0 && $socc->check_codeclient() <> 0)
|
||||
{
|
||||
@ -407,7 +407,7 @@ elseif ($_GET["action"] == 'create_line' && $_GET["client"] > 0)
|
||||
print $socc->code_client;
|
||||
print '</td></tr>';
|
||||
print '</table><br /><br />';
|
||||
print 'Le code client de cette société est incorrect, vous devez lui affecter un code client correct.';
|
||||
print 'Le code client de cette soci<EFBFBD>t<EFBFBD> est incorrect, vous devez lui affecter un code client correct.';
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -461,7 +461,7 @@ elseif ($_GET["action"] == 'create_line' && $_GET["client"] > 0)
|
||||
// On continue si il existe des contrats
|
||||
if (sizeof($contrats) > 0)
|
||||
{
|
||||
print '<tr><td width="20%">Numéro de la ligne téléphonique</td><td><input name="numero" size="12" value="'.$ligne->numero.'"></td></tr>';
|
||||
print '<tr><td width="20%">Num<EFBFBD>ro de la ligne t<>l<EFBFBD>phonique</td><td><input name="numero" size="12" value="'.$ligne->numero.'"></td></tr>';
|
||||
|
||||
print '<tr><td width="20%">Client (Agence/Filiale)</td><td >';
|
||||
$ff = array();
|
||||
@ -482,9 +482,9 @@ elseif ($_GET["action"] == 'create_line' && $_GET["client"] > 0)
|
||||
$db->free();
|
||||
}
|
||||
$form->select_array("client_install",$ff,$ligne->client_install_id);
|
||||
print " (Correspond à l'adresse d'installation)</td></tr>";
|
||||
print " (Correspond <EFBFBD> l'adresse d'installation)</td></tr>";
|
||||
|
||||
print '<tr><td width="20%">Client à facturer</td><td >';
|
||||
print '<tr><td width="20%">Client <EFBFBD> facturer</td><td >';
|
||||
$ff = array();
|
||||
$sql = "SELECT rowid, nom, ville FROM ".MAIN_DB_PREFIX."societe WHERE client=1 ORDER BY nom ";
|
||||
if ( $db->query( $sql) )
|
||||
@ -509,7 +509,7 @@ elseif ($_GET["action"] == 'create_line' && $_GET["client"] > 0)
|
||||
* Type
|
||||
*/
|
||||
|
||||
print '<tr><td width="20%">Débit de la ligne</td><td >';
|
||||
print '<tr><td width="20%">D<EFBFBD>bit de la ligne</td><td >';
|
||||
$ff = array();
|
||||
$sql = "SELECT rowid, intitule FROM ".MAIN_DB_PREFIX."telephonie_adsl_type WHERE commande_active = 1 ORDER BY intitule ";
|
||||
if ( $db->query( $sql) )
|
||||
@ -592,7 +592,7 @@ elseif ($_GET["action"] == 'create_line' && $_GET["client"] > 0)
|
||||
print stripslashes($ligne->note);
|
||||
print '</textarea></td></tr>'."\n";
|
||||
|
||||
print '<tr><td> </td><td><input type="submit" value="Créer"></td></tr>'."\n";
|
||||
print '<tr><td> </td><td><input type="submit" value="Cr<EFBFBD>er"></td></tr>'."\n";
|
||||
print '</table>'."\n";
|
||||
print '</form>';
|
||||
}
|
||||
@ -659,10 +659,10 @@ else
|
||||
print $client->nom.'</a></td><td>'.$client->code_client;
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td width="20%">Numéro</td><td>'.dolibarr_print_phone($ligne->numero).'</td>';
|
||||
print '<tr><td width="20%">Num<EFBFBD>ro</td><td>'.dolibarr_print_phone($ligne->numero,0,0,true).'</td>';
|
||||
print '<td> </td></tr>';
|
||||
|
||||
print '<tr><td width="20%">Débit de la liaison</td><td>'.$ligne->type.'</td>';
|
||||
print '<tr><td width="20%">D<EFBFBD>bit de la liaison</td><td>'.$ligne->type.'</td>';
|
||||
print '<td>Prix de vente : '.price($ligne->prix).' euros HT</td></tr>';
|
||||
|
||||
$client_install = new Societe($db, $ligne->client_install_id);
|
||||
@ -677,7 +677,7 @@ else
|
||||
$client_facture = new Societe($db);
|
||||
$client_facture->fetch($ligne->client_facture_id);
|
||||
|
||||
print '<tr><td width="20%">Client Facturé</td><td><a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid=';
|
||||
print '<tr><td width="20%">Client Factur<EFBFBD></td><td><a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid=';
|
||||
print $client_facture->id.'">';
|
||||
print $client_facture->nom.'</a><br />';
|
||||
print $client_facture->cp . " " .$client_facture->ville;
|
||||
@ -767,14 +767,14 @@ if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 2)
|
||||
|
||||
print '<form name="activefourn" action="fiche.php?id='.$ligne->id.'&action=activefourn" method="POST">';
|
||||
print '<table class="noborder" cellpadding="2" cellspacing="0">';
|
||||
print '<tr class="liste_titre"><td colspan="2">Activée chez le fournisseur</td><td>';
|
||||
print '<tr class="liste_titre"><td colspan="2">Activ<EFBFBD>e chez le fournisseur</td><td>';
|
||||
print "<tr><td>Date de l'activation</td><td>";
|
||||
print $form->select_date('','','','','',"activefourn");
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td>Commentaire</td><td><input size="30" type="text" name="commentaire"></td></tr>';
|
||||
|
||||
print '<tr><td>Adresse IP affectée</td><td><input size="30" type="text" name="ip"></td></tr>';
|
||||
print '<tr><td>Adresse IP affect<EFBFBD>e</td><td><input size="30" type="text" name="ip"></td></tr>';
|
||||
print '<tr><td>Login</td><td><input size="30" type="text" name="login"></td></tr>';
|
||||
print '<tr><td>Password</td><td><input size="30" type="text" name="password"></td></tr>';
|
||||
|
||||
@ -793,7 +793,7 @@ if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 3)
|
||||
|
||||
print '<form name="backbone" action="fiche.php?id='.$ligne->id.'&action=backbone" method="POST">';
|
||||
print '<table class="noborder" cellpadding="2" cellspacing="0">';
|
||||
print '<tr class="liste_titre"><td colspan="2">Programmé sur le backbone</td><td>';
|
||||
print '<tr class="liste_titre"><td colspan="2">Programm<EFBFBD> sur le backbone</td><td>';
|
||||
print "<tr><td>Date de la programmation</td><td>";
|
||||
print $form->select_date('','','','','',"backbone");
|
||||
print '</td>';
|
||||
@ -810,7 +810,7 @@ if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 9)
|
||||
|
||||
print '<form name="livraison" action="fiche.php?id='.$ligne->id.'&action=livraison" method="POST">';
|
||||
print '<table class="noborder" cellpadding="2" cellspacing="0">';
|
||||
print '<tr class="liste_titre"><td colspan="2">Livrée au client</td><td>';
|
||||
print '<tr class="liste_titre"><td colspan="2">Livr<EFBFBD>e au client</td><td>';
|
||||
print "<tr><td>Date de la livraison client</td><td>";
|
||||
print $form->select_date('','','','','',"livraison");
|
||||
print '</td>';
|
||||
@ -826,8 +826,8 @@ if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 4)
|
||||
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td>';
|
||||
print '<form name="resilier" action="fiche.php?id='.$ligne->id.'&action=resilier" method="POST">';
|
||||
print '<table class="noborder" cellpadding="4" cellspacing="0">';
|
||||
print '<tr class="liste_titre"><td colspan="2">A résilier</td><td>';
|
||||
print '<tr class="pair"><td>Date de résiliation demandée</td><td>';
|
||||
print '<tr class="liste_titre"><td colspan="2">A r<EFBFBD>silier</td><td>';
|
||||
print '<tr class="pair"><td>Date de r<EFBFBD>siliation demand<6E>e</td><td>';
|
||||
print $form->select_date('','','','','',"resilier");
|
||||
print '</td></tr>';
|
||||
print '<tr class="pair"><td>Commentaire</td><td><input size="30" type="text" name="commentaire"></td></tr>';
|
||||
@ -841,8 +841,8 @@ if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 5)
|
||||
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td>';
|
||||
print '<form name="resilierfourn" action="fiche.php?id='.$ligne->id.'&action=resilierfourn" method="POST">';
|
||||
print '<table class="noborder" cellpadding="4" cellspacing="0">';
|
||||
print '<tr class="liste_titre"><td colspan="2">Demande de résiliatin fournisseur</td><td>';
|
||||
print '<tr class="pair"><td>Date de la demande de résiliation</td><td>';
|
||||
print '<tr class="liste_titre"><td colspan="2">Demande de r<EFBFBD>siliatin fournisseur</td><td>';
|
||||
print '<tr class="pair"><td>Date de la demande de r<EFBFBD>siliation</td><td>';
|
||||
print $form->select_date('','','','','',"resilierfourn");
|
||||
print '</td></tr>';
|
||||
print '<tr class="pair"><td>Commentaire</td><td><input size="30" type="text" name="commentaire"></td></tr>';
|
||||
@ -856,8 +856,8 @@ if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 6)
|
||||
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td>';
|
||||
print '<form name="acquitresilierfourn" action="fiche.php?id='.$ligne->id.'&action=acquitresilierfourn" method="POST">';
|
||||
print '<table class="noborder" cellpadding="4" cellspacing="0">';
|
||||
print '<tr class="liste_titre"><td colspan="2">Confirmation de résiliatin fournisseur</td><td>';
|
||||
print '<tr class="pair"><td>Date de la confirmation de résiliation</td><td>';
|
||||
print '<tr class="liste_titre"><td colspan="2">Confirmation de r<EFBFBD>siliatin fournisseur</td><td>';
|
||||
print '<tr class="pair"><td>Date de la confirmation de r<EFBFBD>siliation</td><td>';
|
||||
print $form->select_date('','','','','',"acquitresilierfourn");
|
||||
print '</td></tr>';
|
||||
print '<tr class="pair"><td>Commentaire</td><td><input size="30" type="text" name="commentaire"></td></tr>';
|
||||
@ -890,7 +890,7 @@ if ($_GET["action"] == '')
|
||||
|
||||
if ( $user->rights->telephonie->adsl->requete && $ligne->statut == 5)
|
||||
{
|
||||
print "<a class=\"butAction\" href=\"fiche.php?action=annuleresilier&id=$ligne->id\">".$langs->trans("Annuler la demande de résiliation")."</a>";
|
||||
print "<a class=\"butAction\" href=\"fiche.php?action=annuleresilier&id=$ligne->id\">".$langs->trans("Annuler la demande de r<EFBFBD>siliation")."</a>";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ if ($_GET["id"])
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
|
||||
print '<tr><td width="20%">Numéro de support</td><td colspan="2">'.dolibarr_print_phone($ligne->numero).'</td></tr>';
|
||||
print '<tr><td width="20%">Num<EFBFBD>ro de support</td><td colspan="2">'.dolibarr_print_phone($ligne->numero,0,0,true).'</td></tr>';
|
||||
|
||||
|
||||
$client = new Societe($db, $ligne->client_id);
|
||||
|
||||
@ -29,7 +29,7 @@ $sortfield = $_GET["sortfield"];
|
||||
|
||||
llxHeader('','Telephonie - Ligne - Liste');
|
||||
/*
|
||||
* Sécurité accés client
|
||||
* S<EFBFBD>curit<EFBFBD> acc<EFBFBD>s client
|
||||
*/
|
||||
if ($user->societe_id > 0)
|
||||
{
|
||||
@ -131,7 +131,7 @@ if ($resql)
|
||||
print img_file();
|
||||
print '</a> ';
|
||||
|
||||
print '<a href="fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->numero_ligne)."</a></td>\n";
|
||||
print '<a href="fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->numero_ligne,0,0,true)."</a></td>\n";
|
||||
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/compta/fiche.php?socid='.$obj->socid.'">'.img_object($langs->trans("Fiche Compta"),"bill")."</a> ";
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ if ($_GET["id"])
|
||||
|
||||
if (!$soc->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
print "Lecture non authoris<EFBFBD>e";
|
||||
}
|
||||
|
||||
if ( $result == 1 && $soc->perm_read)
|
||||
@ -114,8 +114,8 @@ if ($_GET["id"])
|
||||
|
||||
print "<tr><td valign=\"top\">".$langs->trans('Address')."</td><td colspan=\"3\">".nl2br($soc->adresse)."<br>".$soc->cp." ".$soc->ville." ".$soc->pays."</td></tr>";
|
||||
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel,$soc->pays_code,0,$soc->id).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax,$soc->pays_code,0,$soc->id).'</td></tr>';
|
||||
|
||||
print '<tr><td><a href="'.DOL_URL_ROOT.'/societe/rib.php?socid='.$soc->id.'">'.img_edit() ."</a> ";
|
||||
print $langs->trans('RIB').'</td><td colspan="3">';
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
llxHeader("","Téléphonie - Factures client");
|
||||
llxHeader("","T<EFBFBD>l<EFBFBD>phonie - Factures client");
|
||||
|
||||
if ($cancel == $langs->trans("Cancel"))
|
||||
{
|
||||
@ -40,7 +40,7 @@ if ($_GET["id"])
|
||||
|
||||
if (!$soc->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
print "Lecture non authoris<EFBFBD>e";
|
||||
}
|
||||
|
||||
if ( $result == 1 && $soc->perm_read)
|
||||
@ -86,8 +86,8 @@ if ($_GET["id"])
|
||||
|
||||
print "<tr><td valign=\"top\">".$langs->trans('Address')."</td><td colspan=\"3\">".nl2br($soc->adresse)."<br>".$soc->cp." ".$soc->ville." ".$soc->pays."</td></tr>";
|
||||
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel,$soc->pays_code,0,$soc->id).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax,$soc->pays_code,0,$soc->id).'</td></tr>';
|
||||
|
||||
print '</table><br />';
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ if ($_GET["id"])
|
||||
|
||||
if (!$soc->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
print "Lecture non authoris<EFBFBD>e";
|
||||
}
|
||||
|
||||
if ( $result == 1 && $soc->perm_read)
|
||||
@ -120,8 +120,8 @@ if ($_GET["id"])
|
||||
|
||||
print '<tr><td valign="top">'.$langs->trans('Address')."</td><td colspan=\"3\">".nl2br($soc->adresse)."<br>".$soc->cp." ".$soc->ville." ".$soc->pays."</td></tr>";
|
||||
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel,$soc->pays_code,0,$soc->id).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax,$soc->pays_code,0,$soc->id).'</td></tr>';
|
||||
|
||||
print '<tr><td><a href="'.DOL_URL_ROOT.'/societe/rib.php?socid='.$soc->id.'">'.img_edit() ."</a> ";
|
||||
print $langs->trans('RIB').'</td><td colspan="3">';
|
||||
|
||||
@ -42,7 +42,7 @@ if ($_GET["id"])
|
||||
|
||||
if (!$soc->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
print "Lecture non authoris<EFBFBD>e";
|
||||
}
|
||||
|
||||
if ( $result == 1 && $soc->perm_read)
|
||||
@ -101,15 +101,15 @@ if ($_GET["id"])
|
||||
|
||||
print "<tr><td valign=\"top\">".$langs->trans('Address')."</td><td colspan=\"3\">".nl2br($soc->adresse)."<br>".$soc->cp." ".$soc->ville." ".$soc->pays."</td></tr>";
|
||||
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel,$soc->pays_code,0,$soc->id).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax,$soc->pays_code,0,$soc->id).'</td></tr>';
|
||||
|
||||
print '</table><br />';
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
|
||||
//print '<tr><td width="20%">Numéro</td><td>'.dolibarr_print_phone($ligne->numero).'</td>';
|
||||
//print '<td>Facturée : '.$ligne->facturable.'</td></tr>';
|
||||
//print '<tr><td width="20%">Num<EFBFBD>ro</td><td>'.dolibarr_print_phone($ligne->numero).'</td>';
|
||||
//print '<td>Factur<EFBFBD>e : '.$ligne->facturable.'</td></tr>';
|
||||
|
||||
/* Lignes */
|
||||
|
||||
@ -157,7 +157,7 @@ if ($_GET["id"])
|
||||
|
||||
print '</a> ';
|
||||
|
||||
print '<a href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne)."</a></td>\n";
|
||||
print '<a href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne,0,0,true)."</a></td>\n";
|
||||
|
||||
print '<td>'.$obj->code_client."</td>\n";
|
||||
print '<td>'.$obj->agence."</td>\n";
|
||||
|
||||
@ -109,8 +109,8 @@ if ($soc->id)
|
||||
|
||||
print "<tr><td valign=\"top\">".$langs->trans('Address')."</td><td colspan=\"3\">".nl2br($soc->adresse)."<br>".$soc->cp." ".$soc->ville." ".$soc->pays."</td></tr>";
|
||||
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel,$soc->pays_code,0,$soc->id).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax,$soc->pays_code,0,$soc->id).'</td></tr>';
|
||||
|
||||
print '</table><br />';
|
||||
print '<form method="POST" action="permissions.php?id='.$soc->id.'">';
|
||||
|
||||
@ -153,7 +153,7 @@ if ($_GET["action"] == 'delete' && $user->rights->telephonie->tarif->client_modi
|
||||
}
|
||||
}
|
||||
|
||||
llxHeader("","Téléphonie - Fiche Tarif client");
|
||||
llxHeader("","T<EFBFBD>l<EFBFBD>phonie - Fiche Tarif client");
|
||||
|
||||
if ($cancel == $langs->trans("Cancel"))
|
||||
{
|
||||
@ -172,7 +172,7 @@ if ($_GET["id"])
|
||||
|
||||
if (!$soc->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
print "Lecture non authoris<EFBFBD>e";
|
||||
}
|
||||
|
||||
if ( $result == 1 && $soc->perm_read)
|
||||
@ -209,8 +209,8 @@ if ($_GET["id"])
|
||||
|
||||
print "<tr><td valign=\"top\">".$langs->trans('Address')."</td><td colspan=\"3\">".nl2br($soc->adresse)."<br>".$soc->cp." ".$soc->ville." ".$soc->pays."</td></tr>";
|
||||
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel,$soc->pays_code,0,$soc->id).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax,$soc->pays_code,0,$soc->id).'</td></tr>';
|
||||
|
||||
print "</table>\n<br />\n";
|
||||
|
||||
@ -219,7 +219,7 @@ if ($_GET["id"])
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
|
||||
print '<tr class="liste_titre"><td width="15%" valign="center">Tarif (coût en euros par minutes)';
|
||||
print '<tr class="liste_titre"><td width="15%" valign="center">Tarif (co<EFBFBD>t en euros par minutes)';
|
||||
print '</td><td align="center">Temporel</td><td align="center">Fixe</td>';
|
||||
if ($user->rights->telephonie->tarif->client_modifier)
|
||||
{
|
||||
|
||||
@ -70,13 +70,13 @@ if ($_POST["action"] == 'update' && $_POST["cancel"] <> $langs->trans("Cancel")
|
||||
if ( $contrat->update($user) == 0)
|
||||
{
|
||||
$action = '';
|
||||
$mesg = 'Fiche mise à jour';
|
||||
$mesg = 'Fiche mise <EFBFBD> jour';
|
||||
Header("Location: fiche.php?id=".$contrat->id);
|
||||
}
|
||||
else
|
||||
{
|
||||
$action = 're-edit';
|
||||
$mesg = 'Fiche non mise à jour !' . "<br>" . $entrepot->mesg_error;
|
||||
$mesg = 'Fiche non mise <EFBFBD> jour !' . "<br>" . $entrepot->mesg_error;
|
||||
}
|
||||
}
|
||||
|
||||
@ -131,7 +131,7 @@ if ($cancel == $langs->trans("Cancel"))
|
||||
}
|
||||
|
||||
/*
|
||||
* Création en 2 étape
|
||||
* Cr<EFBFBD>ation en 2 <EFBFBD>tape
|
||||
*
|
||||
*/
|
||||
if ($_GET["action"] == 'create' && $user->rights->telephonie->ligne->creer)
|
||||
@ -141,7 +141,7 @@ if ($_GET["action"] == 'create' && $user->rights->telephonie->ligne->creer)
|
||||
|
||||
if (is_object($ligne))
|
||||
{
|
||||
// La création a échouée
|
||||
// La cr<EFBFBD>ation a <20>chou<6F>e
|
||||
print $ligne->error_message;
|
||||
}
|
||||
else
|
||||
@ -176,7 +176,7 @@ if ($_GET["action"] == 'create' && $user->rights->telephonie->ligne->creer)
|
||||
$form->select_array("client_comm",$ff,$ligne->client_comm);
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td> </td><td><input type="submit" value="Créer"></td></tr>'."\n";
|
||||
print '<tr><td> </td><td><input type="submit" value="Cr<EFBFBD>er"></td></tr>'."\n";
|
||||
print '</table>'."\n";
|
||||
print '</form>';
|
||||
}
|
||||
@ -187,7 +187,7 @@ elseif ($_GET["action"] == 'create_line' && $_GET["client_comm"] > 0 && $user->r
|
||||
|
||||
if (is_object($ligne))
|
||||
{
|
||||
// La création a échouée
|
||||
// La cr<EFBFBD>ation a <20>chou<6F>e
|
||||
print $ligne->error_message;
|
||||
}
|
||||
else
|
||||
@ -212,7 +212,7 @@ elseif ($_GET["action"] == 'create_line' && $_GET["client_comm"] > 0 && $user->r
|
||||
print $socc->code_client;
|
||||
print '</td></tr>';
|
||||
print '</table><br /><br />';
|
||||
print 'Impossible de créer un contrat pour cette société, vous devez au préalablement lui affecter un code client.';
|
||||
print 'Impossible de cr<EFBFBD>er un contrat pour cette soci<63>t<EFBFBD>, vous devez au pr<70>alablement lui affecter un code client.';
|
||||
}
|
||||
elseif (strlen($socc->code_client) > 0 && $socc->check_codeclient() <> 0)
|
||||
{
|
||||
@ -225,7 +225,7 @@ elseif ($_GET["action"] == 'create_line' && $_GET["client_comm"] > 0 && $user->r
|
||||
print $socc->code_client;
|
||||
print '</td></tr>';
|
||||
print '</table><br /><br />';
|
||||
print 'Le code client de cette société est incorrect, vous devez lui affecter un code client correct.';
|
||||
print 'Le code client de cette soci<EFBFBD>t<EFBFBD> est incorrect, vous devez lui affecter un code client correct.';
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -271,7 +271,7 @@ elseif ($_GET["action"] == 'create_line' && $_GET["client_comm"] > 0 && $user->r
|
||||
$form->select_array("client",$ff,$ligne->client);
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td width="20%">Client à facturer</td><td >';
|
||||
print '<tr><td width="20%">Client <EFBFBD> facturer</td><td >';
|
||||
$ff = array();
|
||||
$sql = "SELECT rowid, nom, ville FROM ".MAIN_DB_PREFIX."societe WHERE client=1";
|
||||
$sql .= " AND (rowid = ".$socc->id." OR parent = ".$socc->id.")";
|
||||
@ -331,7 +331,7 @@ elseif ($_GET["action"] == 'create_line' && $_GET["client_comm"] > 0 && $user->r
|
||||
print stripslashes($ligne->note);
|
||||
print '</textarea></td></tr>'."\n";
|
||||
|
||||
print '<tr><td> </td><td><input type="submit" value="Créer"></td></tr>'."\n";
|
||||
print '<tr><td> </td><td><input type="submit" value="Cr<EFBFBD>er"></td></tr>'."\n";
|
||||
print '</table>'."\n";
|
||||
print '</form>';
|
||||
|
||||
@ -360,9 +360,9 @@ elseif ($_GET["action"] == 'create_line' && $_GET["client_comm"] > 0 && $user->r
|
||||
print"<br />\n<!-- debut table -->\n";
|
||||
print_titre("Contrats existants");
|
||||
print '<br /><table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre"><td>Réf</td>';
|
||||
print '<tr class="liste_titre"><td>R<EFBFBD>f</td>';
|
||||
print '<td>Client</td><td>Client (Agence/Filiale)</td>';
|
||||
print '<td>Client facturé</td>';
|
||||
print '<td>Client factur<EFBFBD></td>';
|
||||
print "</tr>\n";
|
||||
|
||||
$var=True;
|
||||
@ -425,7 +425,7 @@ else
|
||||
|
||||
if (!$client_comm->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
print "Lecture non authoris<EFBFBD>e";
|
||||
}
|
||||
|
||||
if ( $result && $client_comm->perm_read)
|
||||
@ -493,8 +493,8 @@ else
|
||||
//$client_comm = new Societe($db);
|
||||
//$client_comm->fetch($contrat->client_comm_id);
|
||||
|
||||
print '<tr><td width="20%">Référence</td><td>'.$contrat->ref.'</td>';
|
||||
print '<td>Facturé : '.$contrat->facturable.'</td><td align="right">';
|
||||
print '<tr><td width="20%">R<EFBFBD>f<EFBFBD>rence</td><td>'.$contrat->ref.'</td>';
|
||||
print '<td>Factur<EFBFBD> : '.$contrat->facturable.'</td><td align="right">';
|
||||
print '<img src="statut'.$contrat->statut.'.png"> ';
|
||||
print $contrat->statuts[$contrat->statut].'</td></tr>';
|
||||
print '<tr><td width="20%">Client</td><td>';
|
||||
@ -518,7 +518,7 @@ else
|
||||
$client_facture = new Societe($db);
|
||||
$client_facture->fetch($contrat->client_facture_id);
|
||||
|
||||
print '<tr><td width="20%">Client Facturé</td><td>';
|
||||
print '<tr><td width="20%">Client Factur<EFBFBD></td><td>';
|
||||
print '<a href="'.DOL_URL_ROOT.'/telephonie/client/fiche.php?id=';
|
||||
print $client_facture->id.'">';
|
||||
print $client_facture->nom.'</a><br />';
|
||||
@ -644,7 +644,7 @@ else
|
||||
|
||||
print '</a> ';
|
||||
|
||||
print '<a href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne)."</a></td>\n";
|
||||
print '<a href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne,0,0,true)."</a></td>\n";
|
||||
|
||||
print '<td>'.$obj->code_client." ".$obj->agence."</td>\n";
|
||||
print '<td align="center">'.$ligne->statuts[$obj->statut]."</td>\n";
|
||||
@ -758,8 +758,8 @@ else
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
|
||||
print '<tr><td width="20%">Référence</td><td>'.$contrat->ref.'</td>';
|
||||
print '<td>Facturé : '.$contrat->facturable.'</td></tr>';
|
||||
print '<tr><td width="20%">R<EFBFBD>f<EFBFBD>rence</td><td>'.$contrat->ref.'</td>';
|
||||
print '<td>Factur<EFBFBD> : '.$contrat->facturable.'</td></tr>';
|
||||
|
||||
$client_comm = new Societe($db, $contrat->client_comm_id);
|
||||
$client_comm->fetch($contrat->client_comm_id);
|
||||
@ -800,7 +800,7 @@ else
|
||||
|
||||
print '</select></td></tr>';
|
||||
|
||||
print '<tr><td width="20%">Client à facturer</td><td colspan="2">'."\n";
|
||||
print '<tr><td width="20%">Client <EFBFBD> facturer</td><td colspan="2">'."\n";
|
||||
print '<select name="client_facture">'."\n";
|
||||
|
||||
|
||||
@ -834,7 +834,7 @@ else
|
||||
/*
|
||||
*
|
||||
*/
|
||||
print '<tr><td width="20%">Mode de réglement</td>';
|
||||
print '<tr><td width="20%">Mode de r<EFBFBD>glement</td>';
|
||||
print '<td colspan="2">';
|
||||
|
||||
if ($user->rights->telephonie->contrat->paiement)
|
||||
@ -843,12 +843,12 @@ else
|
||||
|
||||
if ($contrat->mode_paiement == 'pre')
|
||||
{
|
||||
print '<option value="pre" SELECTED>Prélèvement</option>';
|
||||
print '<option value="pre" SELECTED>Pr<EFBFBD>l<EFBFBD>vement</option>';
|
||||
print '<option value="vir">Virement</option>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<option value="pre">Prélèvement</option>';
|
||||
print '<option value="pre">Pr<EFBFBD>l<EFBFBD>vement</option>';
|
||||
print '<option value="vir" SELECTED>Virement</option>';
|
||||
}
|
||||
print '</select>';
|
||||
@ -859,7 +859,7 @@ else
|
||||
|
||||
if ($contrat->mode_paiement == 'pre')
|
||||
{
|
||||
print 'Prélèvement';
|
||||
print 'Pr<EFBFBD>l<EFBFBD>vement';
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -944,7 +944,7 @@ else
|
||||
print '<textarea name="note" rows="4" cols="50">';
|
||||
print "</textarea></td></tr>";
|
||||
|
||||
print '<tr><td align="center" colspan="3"><input type="submit" value="Mettre à jour">';
|
||||
print '<tr><td align="center" colspan="3"><input type="submit" value="Mettre <EFBFBD> jour">';
|
||||
print '<a class="butAction" href="fiche.php?id='.$contrat->id.'">Annuler</a></td></tr>';
|
||||
print '</table>'."\n";
|
||||
print '</form>'."\n";
|
||||
@ -1029,7 +1029,7 @@ else
|
||||
print $sql;
|
||||
}
|
||||
|
||||
print '<p>Contact auquel est envoyé la facture par email</p></td></tr>';
|
||||
print '<p>Contact auquel est envoy<EFBFBD> la facture par email</p></td></tr>';
|
||||
|
||||
print '<tr><td colspan="3" align="center">';
|
||||
if ($num > 0)
|
||||
|
||||
@ -30,7 +30,7 @@ $sortfield = $_GET["sortfield"];
|
||||
llxHeader();
|
||||
|
||||
/*
|
||||
* Sécurité accés client
|
||||
* S<EFBFBD>curit<EFBFBD> acc<EFBFBD>s client
|
||||
*/
|
||||
if ($user->societe_id > 0)
|
||||
{
|
||||
@ -114,7 +114,7 @@ if ($result)
|
||||
|
||||
if ($user->rights->telephonie->ligne->gain)
|
||||
{
|
||||
print '<td align="right">Coût fournisseur HT</td>';
|
||||
print '<td align="right">Co<EFBFBD>t fournisseur HT</td>';
|
||||
print_liste_field_titre("Marge","liste.php","f.gain",'','','align="right"');
|
||||
}
|
||||
print '<td align="center">Facture</td>';
|
||||
@ -156,7 +156,7 @@ if ($result)
|
||||
print '</a> ';
|
||||
|
||||
print '<a href="'.DOL_URL_ROOT.'/telephonie/client/fiche.php?id='.$obj->socid.'">'.$obj->nom."</a></td>\n";
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?numero='.$obj->ligne.'">'.dolibarr_print_phone($obj->ligne)."</a></td>\n";
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?numero='.$obj->ligne.'">'.dolibarr_print_phone($obj->ligne,0,0,true)."</a></td>\n";
|
||||
print '<td align="center">'.$obj->date."</td>\n";
|
||||
print '<td align="right">'.sprintf("%01.4f",$obj->cout_vente)."</td>\n";
|
||||
|
||||
|
||||
@ -76,7 +76,7 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
|
||||
print '<tr><td width="25%">Numéro</td><td>'.dolibarr_print_phone($ligne->numero).'</td></tr>';
|
||||
print '<tr><td width="25%">Num<EFBFBD>ro</td><td>'.dolibarr_print_phone($ligne->numero,0,0,true).'</td></tr>';
|
||||
|
||||
$client = new Societe($db, $ligne->client_id);
|
||||
$client->fetch($ligne->client_id);
|
||||
@ -89,7 +89,7 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
$client_facture = new Societe($db);
|
||||
$client_facture->fetch($ligne->client_facture_id);
|
||||
|
||||
print '<tr><td width="25%">Client Facturé</td><td>'.$client_facture->nom.'</td></tr>';
|
||||
print '<tr><td width="25%">Client Factur<EFBFBD></td><td>'.$client_facture->nom.'</td></tr>';
|
||||
print '</table>';
|
||||
|
||||
$ftx = new FournisseurTelephonie($db, $ligne->fournisseur_id);
|
||||
@ -105,11 +105,11 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
}
|
||||
|
||||
print '<table>';
|
||||
print "<tr><td>Numéro correct </td><td> ".$ok_commande .'</td></tr>';
|
||||
print "<tr><td>Commandes ouvertes auprès du fournisseur </td><td> ".$ftx->commande_enable .'</td></tr>';
|
||||
print "<tr><td>Num<EFBFBD>ro correct </td><td> ".$ok_commande .'</td></tr>';
|
||||
print "<tr><td>Commandes ouvertes aupr<EFBFBD>s du fournisseur </td><td> ".$ftx->commande_enable .'</td></tr>';
|
||||
print "<tr><td>Permission pour l'utilisateur de commander des lignes </td><td> ".$user->rights->telephonie->ligne_commander.'</td></tr>';
|
||||
print "<tr><td>Statut de la ligne compatible </td><td> ".($ligne->statut == 1 or $ligne->statut == -1) .'</td></tr>';
|
||||
print "<tr><td>Rib ok ou mode de règlement par virement </td><td> ".($client_facture->verif_rib() or $ligne->mode_paiement == 'vir').'</td></tr>';
|
||||
print "<tr><td>Rib ok ou mode de r<EFBFBD>glement par virement </td><td> ".($client_facture->verif_rib() or $ligne->mode_paiement == 'vir').'</td></tr>';
|
||||
print '</table>';
|
||||
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ llxHeader("","Telephonie - Ligne - Commande");
|
||||
print $mesg_erreur;
|
||||
|
||||
/*
|
||||
* Sécurité accés client
|
||||
* S<EFBFBD>curit<EFBFBD> acc<EFBFBD>s client
|
||||
*/
|
||||
if ($user->societe_id > 0)
|
||||
{
|
||||
@ -83,7 +83,7 @@ if ($result)
|
||||
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre"><td>Fournisseur</td>';
|
||||
print '<td align="center">Nb Lignes</td><td> </td><td>Email envoyé à</td>';
|
||||
print '<td align="center">Nb Lignes</td><td> </td><td>Email envoy<EFBFBD> <20></td>';
|
||||
print "</tr>\n";
|
||||
|
||||
$var=True;
|
||||
@ -104,11 +104,11 @@ if ($result)
|
||||
print '<td>';
|
||||
if ($row[3] == 1)
|
||||
{
|
||||
print "Les commandes sont bloquées";
|
||||
print "Les commandes sont bloqu<EFBFBD>es";
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a class="butAction" href="fiche.php?action=create&fournid='.$row[1].'">Créer la commande</a>';
|
||||
print '<a class="butAction" href="fiche.php?action=create&fournid='.$row[1].'">Cr<EFBFBD>er la commande</a>';
|
||||
}
|
||||
print "</td><td>\n";
|
||||
print $fournisseur->email_commande;
|
||||
@ -146,7 +146,7 @@ if ($db->query($sql))
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre"><td valign="center">Ligne';
|
||||
print '</td><td align="center">Statut</td><td>Client';
|
||||
print '</td><td>Client Facturé</td><td align="center">Rib OK</td><td>Fournisseur</td>';
|
||||
print '</td><td>Client Factur<EFBFBD></td><td align="center">Rib OK</td><td>Fournisseur</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
$var=True;
|
||||
@ -162,7 +162,7 @@ if ($db->query($sql))
|
||||
$socf->fetch($obj->sfidp);
|
||||
|
||||
print "<tr $bc[$var]>";
|
||||
print '<td><a href="../fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne)."</a></td>\n";
|
||||
print '<td><a href="../fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne,0,0,true)."</a></td>\n";
|
||||
print '<td align="center">'.$ligne->statuts[$obj->statut]."</td>\n";
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/soc.php?socid='.$obj->socid.'">'.$obj->nom.'</a></td>';
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/soc.php?socid='.$obj->sfidp.'">'.$obj->sfnom.'</a></td>';
|
||||
|
||||
@ -27,7 +27,7 @@ $sortfield = $_GET["sortfield"];
|
||||
|
||||
llxHeader('','Telephonie - Ligne - Liste');
|
||||
/*
|
||||
* Sécurité accés client
|
||||
* S<EFBFBD>curit<EFBFBD> acc<EFBFBD>s client
|
||||
*/
|
||||
if ($user->societe_id > 0)
|
||||
{
|
||||
@ -142,9 +142,9 @@ if ($result)
|
||||
print img_file();
|
||||
print '</a> ';
|
||||
|
||||
print '<a href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne)."</a></td>\n";
|
||||
print '<a href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne,0,0,true)."</a></td>\n";
|
||||
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/telephonie/client/fiche.php?id='.$obj->socid.'">'.stripslashes($obj->nom).'</a></td>';
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/telephonie/client/fiche.php?id='.$obj->socid.'">'.$obj->nom.'</a></td>';
|
||||
|
||||
|
||||
print '<td align="center">'.$ligne->statuts[$obj->statut]."</td>\n";
|
||||
|
||||
@ -50,7 +50,7 @@ if ($_GET["action"] == "commande" && $user->rights->telephonie->ligne_commander)
|
||||
llxHeader("","Telephonie - Ligne - Commande");
|
||||
|
||||
/*
|
||||
* Sécurité accés client
|
||||
* S<EFBFBD>curit<EFBFBD> acc<EFBFBD>s client
|
||||
*/
|
||||
if ($user->societe_id > 0)
|
||||
{
|
||||
@ -103,7 +103,7 @@ if ($result)
|
||||
print_liste_field_titre("Ligne","liste.php","l.ligne");
|
||||
print '<td align="center">Statut</td>';
|
||||
print_liste_field_titre("Client","liste.php","s.nom");
|
||||
print '<td>Client Facturé</td><td align="center">Rib OK</td><td>Fournisseur</td>';
|
||||
print '<td>Client Factur<EFBFBD></td><td align="center">Rib OK</td><td>Fournisseur</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
$var=True;
|
||||
@ -139,7 +139,7 @@ if ($result)
|
||||
}
|
||||
else
|
||||
{
|
||||
print dolibarr_print_phone($obj->ligne);
|
||||
print dolibarr_print_phone($obj->ligne,0,0,true);
|
||||
$ok_commande = 1;
|
||||
}
|
||||
|
||||
|
||||
@ -62,7 +62,7 @@ if ($resql)
|
||||
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre"><td>Lignes Statuts</td><td>Mode</td><td align="center">Resultat</td>';
|
||||
print '<td align="center">Date</td><td>Résil</td><td>Commentaire</td>';
|
||||
print '<td align="center">Date</td><td>R<EFBFBD>sil</td><td>Commentaire</td>';
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
|
||||
@ -78,7 +78,7 @@ if ($resql)
|
||||
print "<tr $bc[$var]><td>";
|
||||
print '<img src="'.DOL_URL_ROOT.'/telephonie/ligne/graph'.$ligne->statut.'.png"> ';
|
||||
print '<a href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?numero='.$obj->cli.'">';
|
||||
print dolibarr_print_phone($obj->cli)."</a></td>\n";
|
||||
print dolibarr_print_phone($obj->cli,0,0,true)."</a></td>\n";
|
||||
print '<td>'.$obj->mode."</td>\n";
|
||||
print '<td align="center">'.$obj->situation."</td>\n";
|
||||
print '<td align="center">'.$obj->date_mise_service."</td>\n";
|
||||
|
||||
@ -75,7 +75,7 @@ if ($db->query($sql))
|
||||
print "<tr $bc[$var]><td>";
|
||||
print '<img src="'.DOL_URL_ROOT.'/telephonie/ligne/graph'.$ligne->statut.'.png"> ';
|
||||
print '<a href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?numero='.$obj->cli.'">';
|
||||
print dolibarr_print_phone($obj->cli)."</a></td>\n";
|
||||
print dolibarr_print_phone($obj->cli,0,0,true)."</a></td>\n";
|
||||
print '<td>'.$obj->mode."</td>\n";
|
||||
print '<td align="center">'.$obj->situation."</td>\n";
|
||||
print '<td align="center">'.$obj->date_mise_service."</td>\n";
|
||||
|
||||
@ -68,7 +68,7 @@ if ($_GET["id"])
|
||||
|
||||
if (!$soc->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
print "Lecture non authoris<EFBFBD>e";
|
||||
}
|
||||
|
||||
if ( $result == 1 && $soc->perm_read)
|
||||
@ -148,8 +148,8 @@ if ($_GET["id"])
|
||||
print $client_comm->nom.'</a></td><td>'.$client_comm->code_client;
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td width="20%">Numéro</td><td>'.dolibarr_print_phone($ligne->numero).'</td>';
|
||||
print '<td>Facturée : '.$ligne->facturable.'</td></tr>';
|
||||
print '<tr><td width="20%">Num<EFBFBD>ro</td><td>'.dolibarr_print_phone($ligne->numero,0,0,true).'</td>';
|
||||
print '<td>Factur<EFBFBD>e : '.$ligne->facturable.'</td></tr>';
|
||||
|
||||
$client = new Societe($db, $ligne->client_id);
|
||||
$client->fetch($ligne->client_id);
|
||||
|
||||
@ -47,7 +47,7 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
|
||||
if (!$client_comm->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
print "Lecture non authoris<EFBFBD>e";
|
||||
}
|
||||
|
||||
if ($result == 1 && $client_comm->perm_read)
|
||||
@ -99,8 +99,8 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
|
||||
print '<tr><td width="25%">Numéro</td><td>'.dolibarr_print_phone($ligne->numero).'</td>';
|
||||
print '<td>Facturée : '.$ligne->facturable.'</td><td> </td></tr>';
|
||||
print '<tr><td width="25%">Num<EFBFBD>ro</td><td>'.dolibarr_print_phone($ligne->numero,0,0,true).'</td>';
|
||||
print '<td>Factur<EFBFBD>e : '.$ligne->facturable.'</td><td> </td></tr>';
|
||||
|
||||
$client = new Societe($db, $ligne->client_id);
|
||||
$client->fetch($ligne->client_id);
|
||||
@ -113,7 +113,7 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
$client_facture = new Societe($db);
|
||||
$client_facture->fetch($ligne->client_facture_id);
|
||||
|
||||
print '<td width="25%">Client Facturé</td><td>'.$client_facture->nom.'</td></tr>';
|
||||
print '<td width="25%">Client Factur<EFBFBD></td><td>'.$client_facture->nom.'</td></tr>';
|
||||
|
||||
|
||||
print '<tr><td width="25%">Statut</td><td colspan="3">';
|
||||
@ -137,7 +137,7 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
{
|
||||
$row = $db->fetch_row($resql);
|
||||
|
||||
print '<tr><td colspan="2">Date de la dernière communication</td>';
|
||||
print '<tr><td colspan="2">Date de la derni<EFBFBD>re communication</td>';
|
||||
print '<td colspan="2">'.strftime("%A %d %B %Y",$row[0]).'</td>';
|
||||
print '</tr>';
|
||||
$i++;
|
||||
|
||||
@ -52,7 +52,7 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
|
||||
if (!$client_comm->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
print "Lecture non authoris<EFBFBD>e";
|
||||
}
|
||||
|
||||
|
||||
@ -71,7 +71,7 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
|
||||
/*
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/facturesdet.php?id=".$ligne->id;
|
||||
$head[$h][1] = $langs->trans('Factures détaillées');
|
||||
$head[$h][1] = $langs->trans('Factures d<EFBFBD>taill<EFBFBD>es');
|
||||
$h++;
|
||||
*/
|
||||
|
||||
@ -138,13 +138,13 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
|
||||
print '<tr><td width="25%">Numéro</td><td>'.dolibarr_print_phone($ligne->numero).'</td>';
|
||||
print '<tr><td width="25%">Num<EFBFBD>ro</td><td>'.dolibarr_print_phone($ligne->numero,0,0,true).'</td>';
|
||||
print '<td>';
|
||||
|
||||
if ($facnum > 1)
|
||||
{
|
||||
print '<a href="factures.php?id='.$ligne->id.'&facnum='.($facnum-1).'">';
|
||||
print '<- Facture précédente</a>';
|
||||
print '<- Facture pr<EFBFBD>c<EFBFBD>dente</a>';
|
||||
}
|
||||
|
||||
print " </td><td>";
|
||||
@ -168,7 +168,7 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
$client_facture = new Societe($db);
|
||||
$client_facture->fetch($ligne->client_facture_id);
|
||||
|
||||
print '<td width="25%">Client Facturé</td><td>'.$client_facture->nom.'</td></tr>';
|
||||
print '<td width="25%">Client Factur<EFBFBD></td><td>'.$client_facture->nom.'</td></tr>';
|
||||
|
||||
$fac = new Facture($db);
|
||||
$fac->fetch($facs[$facnum]);
|
||||
|
||||
@ -252,12 +252,12 @@ if ($_POST["action"] == 'update' && $_POST["cancel"] <> $langs->trans("Cancel")
|
||||
|
||||
{
|
||||
$action = '';
|
||||
$mesg = 'Fiche mise à jour';
|
||||
$mesg = 'Fiche mise <EFBFBD> jour';
|
||||
}
|
||||
else
|
||||
{
|
||||
$action = 're-edit';
|
||||
$mesg = 'Fiche non mise à jour !' . "<br>" . $entrepot->mesg_error;
|
||||
$mesg = 'Fiche non mise <EFBFBD> jour !' . "<br>" . $entrepot->mesg_error;
|
||||
}
|
||||
}
|
||||
|
||||
@ -270,7 +270,7 @@ if ($cancel == $langs->trans("Cancel"))
|
||||
}
|
||||
|
||||
/*
|
||||
* Création en 2 étape
|
||||
* Cr<EFBFBD>ation en 2 <EFBFBD>tape
|
||||
*
|
||||
*/
|
||||
if ($_GET["action"] == 'create1')
|
||||
@ -280,7 +280,7 @@ if ($_GET["action"] == 'create1')
|
||||
|
||||
if (is_object($ligne))
|
||||
{
|
||||
// La création a échouée
|
||||
// La cr<EFBFBD>ation a <20>chou<6F>e
|
||||
print $ligne->error_message;
|
||||
}
|
||||
else
|
||||
@ -315,7 +315,7 @@ if ($_GET["action"] == 'create1')
|
||||
$form->select_array("client_comm",$ff,$ligne->client_comm);
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td> </td><td><input type="submit" value="Créer"></td></tr>'."\n";
|
||||
print '<tr><td> </td><td><input type="submit" value="Cr<EFBFBD>er"></td></tr>'."\n";
|
||||
print '</table>'."\n";
|
||||
print '</form>';
|
||||
}
|
||||
@ -331,7 +331,7 @@ elseif ($_GET["action"] == 'create' && $_GET["contratid"] > 0)
|
||||
|
||||
if (is_object($ligne))
|
||||
{
|
||||
// La création a échouée
|
||||
// La cr<EFBFBD>ation a <20>chou<6F>e
|
||||
print $ligne->error_message;
|
||||
}
|
||||
else
|
||||
@ -356,7 +356,7 @@ elseif ($_GET["action"] == 'create' && $_GET["contratid"] > 0)
|
||||
print $socc->code_client;
|
||||
print '</td></tr>';
|
||||
print '</table><br /><br />';
|
||||
print 'Impossible de créer une ligne pour cette société, vous devez au préalablement lui affecter un code client.';
|
||||
print 'Impossible de cr<EFBFBD>er une ligne pour cette soci<63>t<EFBFBD>, vous devez au pr<70>alablement lui affecter un code client.';
|
||||
}
|
||||
elseif (strlen($socc->code_client) > 0 && $socc->check_codeclient() <> 0)
|
||||
{
|
||||
@ -369,7 +369,7 @@ elseif ($_GET["action"] == 'create' && $_GET["contratid"] > 0)
|
||||
print $socc->code_client;
|
||||
print '</td></tr>';
|
||||
print '</table><br /><br />';
|
||||
print 'Le code client de cette société est incorrect, vous devez lui affecter un code client correct.';
|
||||
print 'Le code client de cette soci<EFBFBD>t<EFBFBD> est incorrect, vous devez lui affecter un code client correct.';
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -388,7 +388,7 @@ elseif ($_GET["action"] == 'create' && $_GET["contratid"] > 0)
|
||||
|
||||
print '<tr><td width="20%">Code client</td><td colspan="2">'.$socc->code_client.'</td></tr>';
|
||||
|
||||
print '<tr><td width="20%">Numéro</td><td>0<input name="numero" size="10" maxlength="9" value="'.$ligne->numero.'"></td>';
|
||||
print '<tr><td width="20%">Num<EFBFBD>ro</td><td>0<input name="numero" size="10" maxlength="9" value="'.$ligne->numero.'"></td>';
|
||||
print '<td>0<input name="numero_end" size="10" maxlength="9" value="'.$ligne->numero_end.'"> derniere SDA</td></tr>';
|
||||
|
||||
$client = new Societe($db, $contrat->client_id);
|
||||
@ -404,7 +404,7 @@ elseif ($_GET["action"] == 'create' && $_GET["contratid"] > 0)
|
||||
$client_facture = new Societe($db);
|
||||
$client_facture->fetch($contrat->client_facture_id);
|
||||
|
||||
print '<tr><td width="20%">Client Facturé</td><td>';
|
||||
print '<tr><td width="20%">Client Factur<EFBFBD></td><td>';
|
||||
print $client_facture->nom.'<br />';
|
||||
print $client_facture->cp . " " .$client_facture->ville;
|
||||
|
||||
@ -433,7 +433,7 @@ elseif ($_GET["action"] == 'create' && $_GET["contratid"] > 0)
|
||||
$form->select_array("fournisseur",$ff,$ligne->fournisseur);
|
||||
|
||||
$tech = array();
|
||||
$tech["presel"] = "Présélection";
|
||||
$tech["presel"] = "Pr<EFBFBD>s<EFBFBD>lection";
|
||||
$tech["voip"] = "VoIP";
|
||||
print "</td><td>Technologie : ";
|
||||
$form->select_array("techno",$tech,"presel");
|
||||
@ -444,7 +444,7 @@ elseif ($_GET["action"] == 'create' && $_GET["contratid"] > 0)
|
||||
* Concurrents
|
||||
*/
|
||||
|
||||
print '<tr><td width="20%">Fournisseur précédent</td><td colspan="2">';
|
||||
print '<tr><td width="20%">Fournisseur pr<EFBFBD>c<EFBFBD>dent</td><td colspan="2">';
|
||||
$ff = array();
|
||||
$sql = "SELECT rowid, nom FROM ".MAIN_DB_PREFIX."telephonie_concurrents ORDER BY rowid ";
|
||||
if ( $db->query( $sql) )
|
||||
@ -473,7 +473,7 @@ elseif ($_GET["action"] == 'create' && $_GET["contratid"] > 0)
|
||||
print stripslashes($ligne->note);
|
||||
print '</textarea></td></tr>'."\n";
|
||||
|
||||
print '<tr><td> </td><td colspan="2"><input type="submit" value="Créer"></td></tr>'."\n";
|
||||
print '<tr><td> </td><td colspan="2"><input type="submit" value="Cr<EFBFBD>er"></td></tr>'."\n";
|
||||
print '</table>'."\n";
|
||||
print '</form>';
|
||||
}
|
||||
@ -514,7 +514,7 @@ else
|
||||
|
||||
if (!$client_comm->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
print "Lecture non authoris<EFBFBD>e";
|
||||
}
|
||||
|
||||
|
||||
@ -591,7 +591,7 @@ else
|
||||
{
|
||||
$html = new Form($db);
|
||||
|
||||
$html->form_confirm("fiche.php"."?id=".$_GET["id"],"Suppression de ligne","Etes-vous sûr de vouloir supprimer la ligne : ".dolibarr_print_phone($ligne->numero)." ?","confirm_delete");
|
||||
$html->form_confirm("fiche.php"."?id=".$_GET["id"],"Suppression de ligne","Etes-vous s<EFBFBD>r de vouloir supprimer la ligne : ".dolibarr_print_phone($ligne->numero,0,0,true)." ?","confirm_delete");
|
||||
print '<br />';
|
||||
}
|
||||
|
||||
@ -618,10 +618,10 @@ else
|
||||
print $client_comm->nom.'</a></td><td>'.$client_comm->code_client;
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td width="20%">Numéro</td><td>'.dolibarr_print_phone($ligne->numero).'</td>';
|
||||
print '<tr><td width="20%">Num<EFBFBD>ro</td><td>'.dolibarr_print_phone($ligne->numero).'</td>';
|
||||
//print " ".$ligne->support.
|
||||
|
||||
print '<td>Facturée : '.$ligne->facturable.'</td></tr>';
|
||||
print '<td>Factur<EFBFBD>e : '.$ligne->facturable.'</td></tr>';
|
||||
|
||||
$client = new Societe($db, $ligne->client_id);
|
||||
$client->fetch($ligne->client_id);
|
||||
@ -635,7 +635,7 @@ else
|
||||
$client_facture = new Societe($db);
|
||||
$client_facture->fetch($ligne->client_facture_id);
|
||||
|
||||
print '<tr><td width="20%">Client Facturé</td><td>';
|
||||
print '<tr><td width="20%">Client Factur<EFBFBD></td><td>';
|
||||
print '<a href="'.DOL_URL_ROOT.'/telephonie/client/fiche.php?id='.$client_facture->id.'">';
|
||||
print $client_facture->nom.'</a><br />';
|
||||
print $client_facture->cp . " " .$client_facture->ville;
|
||||
@ -751,7 +751,7 @@ else
|
||||
|
||||
|
||||
|
||||
print '<tr><td>PDF détail</td><td>'.$ligne->pdfdetail.'</td></tr>';
|
||||
print '<tr><td>PDF d<EFBFBD>tail</td><td>'.$ligne->pdfdetail.'</td></tr>';
|
||||
|
||||
|
||||
|
||||
@ -763,7 +763,7 @@ else
|
||||
|
||||
print '<tr><td width="20%">Commercial</td>';
|
||||
print '<td>'.$commercial_suiv->fullname.'</td></tr>';
|
||||
print '<tr><td>Signé par</td><td>';
|
||||
print '<tr><td>Sign<EFBFBD> par</td><td>';
|
||||
|
||||
|
||||
if ($ligne->commercial_suiv_id <> $ligne->commercial_sign_id)
|
||||
@ -779,7 +779,7 @@ else
|
||||
}
|
||||
|
||||
|
||||
print '<tr><td width="20%">Concurrent précédent</td>';
|
||||
print '<tr><td width="20%">Concurrent pr<EFBFBD>c<EFBFBD>dent</td>';
|
||||
print '<td>'.$ligne->print_concurrent_nom().'</td></tr>';
|
||||
|
||||
print '<tr><td width="20%">Factures</td><td>';
|
||||
@ -867,7 +867,7 @@ else
|
||||
$sql .= "FROM ".MAIN_DB_PREFIX."telephonie_contrat as c";
|
||||
$sql .= " WHERE c.rowid <> ".$ligne->contrat;
|
||||
$sql .= " AND c.fk_client_comm = ".$ligne->client_comm_id;
|
||||
$sql .= " AND c.statut <> 6"; // contrat non résilié
|
||||
$sql .= " AND c.statut <> 6"; // contrat non r<EFBFBD>sili<EFBFBD>
|
||||
|
||||
$resql = $db->query($sql);
|
||||
if ($resql)
|
||||
@ -891,7 +891,7 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
print "Aucun contrat éligible";
|
||||
print "Aucun contrat <EFBFBD>ligible";
|
||||
}
|
||||
|
||||
$db->free();
|
||||
@ -957,7 +957,7 @@ else
|
||||
print '</td></tr>';
|
||||
print '<input type="hidden" name="client_comm" value="'.$client_comm->id.'">'."\n";
|
||||
|
||||
print '<tr><td width="20%">Numéro</td><td>';
|
||||
print '<tr><td width="20%">Num<EFBFBD>ro</td><td>';
|
||||
if ($ligne->statut == -1)
|
||||
{
|
||||
print '<input name="numero" size="12" value="'.$ligne->numero.'">';
|
||||
@ -982,7 +982,7 @@ else
|
||||
$client_facture = new Societe($db);
|
||||
$client_facture->fetch($ligne->client_facture_id);
|
||||
|
||||
print '<tr><td width="20%">Client Facturé</td><td>';
|
||||
print '<tr><td width="20%">Client Factur<EFBFBD></td><td>';
|
||||
print $client_facture->nom.'<br />';
|
||||
print $client_facture->cp . " " .$client_facture->ville;
|
||||
|
||||
@ -1044,7 +1044,7 @@ else
|
||||
* Commercial
|
||||
*/
|
||||
|
||||
print '<tr><td width="20%">Fournisseur précédent</td><td>';
|
||||
print '<tr><td width="20%">Fournisseur pr<EFBFBD>c<EFBFBD>dent</td><td>';
|
||||
print '<select name="concurrent">';
|
||||
|
||||
$sql = "SELECT rowid, nom FROM ".MAIN_DB_PREFIX."telephonie_concurrents ORDER BY nom ";
|
||||
@ -1081,7 +1081,7 @@ else
|
||||
print nl2br($ligne->note);
|
||||
print "</textarea></td></tr>";
|
||||
|
||||
print '<tr><td align="center" colspan="2"><input type="submit" value="Mettre à jour">';
|
||||
print '<tr><td align="center" colspan="2"><input type="submit" value="Mettre <EFBFBD> jour">';
|
||||
print '<a href="fiche.php?id='.$ligne->id.'">Annuler</a></td></tr>';
|
||||
print '</table>'."\n";
|
||||
print '</form>'."\n";
|
||||
@ -1161,7 +1161,7 @@ else
|
||||
print $sql;
|
||||
}
|
||||
|
||||
print '<p>Contact auquel est envoyé la facture par email</p></td></tr>';
|
||||
print '<p>Contact auquel est envoy<EFBFBD> la facture par email</p></td></tr>';
|
||||
|
||||
print '<tr><td> </td><td>';
|
||||
if ($num > 0)
|
||||
@ -1217,7 +1217,7 @@ if ( $user->rights->telephonie->ligne_commander && $ligne->statut == 3 )
|
||||
if (sizeof($ff) > 0 && $ligne->techno == 'presel')
|
||||
{
|
||||
/**
|
||||
* Transférer chez un autre fournisseur
|
||||
* Transf<EFBFBD>rer chez un autre fournisseur
|
||||
*/
|
||||
$form = new Form($db);
|
||||
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td>';
|
||||
@ -1272,7 +1272,7 @@ if ( $user->rights->telephonie->ligne_activer && $ligne->statut == 2 && $ligne->
|
||||
if ( $user->rights->telephonie->ligne_activer && ( $ligne->statut == 5 || $ligne->statut == 3) && $ligne->techno == 'presel')
|
||||
{
|
||||
/**
|
||||
* Résiliation demandée
|
||||
* R<EFBFBD>siliation demand<EFBFBD>e
|
||||
*/
|
||||
$form = new Form($db);
|
||||
|
||||
@ -1280,7 +1280,7 @@ if ( $user->rights->telephonie->ligne_activer && ( $ligne->statut == 5 || $ligne
|
||||
|
||||
print '<form name="confirmresilier" action="fiche.php?id='.$ligne->id.'&action=confirmresilier" method="post">';
|
||||
print '<table class="noborder" cellpadding="2" cellspacing="0">';
|
||||
print '<tr class="liste_titre"><td colspan="2">Confirmation de la résiliation</td><td>';
|
||||
print '<tr class="liste_titre"><td colspan="2">Confirmation de la r<EFBFBD>siliation</td><td>';
|
||||
print '<tr><td>Date</td><td>';
|
||||
print $form->select_date('','','','','',"confirmresilier");
|
||||
print '</td>';
|
||||
@ -1331,12 +1331,12 @@ if ($_GET["action"] == '' && $result == 1 && $client_comm->perm_read)
|
||||
|
||||
if ( $user->rights->telephonie->ligne->resilier && $ligne->statut == 3 && $ligne->techno == 'presel')
|
||||
{
|
||||
print "<a class=\"butAction\" href=\"fiche.php?action=resilier&id=$ligne->id\">".$langs->trans("Demander la résiliation")."</a>";
|
||||
print "<a class=\"butAction\" href=\"fiche.php?action=resilier&id=$ligne->id\">".$langs->trans("Demander la r<EFBFBD>siliation")."</a>";
|
||||
}
|
||||
|
||||
if ( $user->rights->telephonie->ligne->resilier && $ligne->statut == 4 && $ligne->techno == 'presel')
|
||||
{
|
||||
print "<a class=\"butAction\" href=\"fiche.php?action=annuleresilier&id=$ligne->id\">".$langs->trans("Annuler la demande de résiliation")."</a>";
|
||||
print "<a class=\"butAction\" href=\"fiche.php?action=annuleresilier&id=$ligne->id\">".$langs->trans("Annuler la demande de r<EFBFBD>siliation")."</a>";
|
||||
}
|
||||
|
||||
if ( $user->rights->telephonie->ligne_activer && $ligne->statut <> 6)
|
||||
|
||||
@ -27,7 +27,7 @@ $sortfield = $_GET["sortfield"];
|
||||
|
||||
llxHeader('','Telephonie - Ligne - Liste');
|
||||
/*
|
||||
* Sécurité accés client
|
||||
* S<EFBFBD>curit<EFBFBD> acc<EFBFBD>s client
|
||||
*/
|
||||
if ($user->societe_id > 0)
|
||||
{
|
||||
@ -121,7 +121,7 @@ if ($result)
|
||||
print_liste_field_titre("Ligne","groupe.php","l.ligne");
|
||||
print_liste_field_titre("Client","groupe.php","s.nom");
|
||||
|
||||
print '<td>Client facturé</td>';
|
||||
print '<td>Client factur<EFBFBD></td>';
|
||||
print '<td align="center">Statut</td>';
|
||||
|
||||
print_liste_field_titre("Remise LMN","groupe.php","l.remise","","",' align="center"');
|
||||
@ -162,7 +162,7 @@ if ($result)
|
||||
print img_file();
|
||||
print '</a> ';
|
||||
|
||||
print '<a href="fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne)."</a></td>\n";
|
||||
print '<a href="fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne,0,0,true)."</a></td>\n";
|
||||
|
||||
print '<td>'.$obj->nom.'</td>';
|
||||
print '<td>'.$obj->nom_facture.'</td>';
|
||||
|
||||
@ -55,7 +55,7 @@ llxHeader("","","Historique Ligne");
|
||||
|
||||
if (!$client_comm->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
print "Lecture non authoris<EFBFBD>e";
|
||||
}
|
||||
|
||||
|
||||
@ -99,7 +99,7 @@ llxHeader("","","Historique Ligne");
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
|
||||
print '<tr><td width="20%">Numéro</td><td colspan="3">'.dolibarr_print_phone($ligne->numero).'</td></tr>';
|
||||
print '<tr><td width="20%">Num<EFBFBD>ro</td><td colspan="3">'.dolibarr_print_phone($ligne->numero,0,0,true).'</td></tr>';
|
||||
|
||||
$client = new Societe($db, $ligne->client_id);
|
||||
$client->fetch($ligne->client_id);
|
||||
@ -115,7 +115,7 @@ llxHeader("","","Historique Ligne");
|
||||
|
||||
if ($ligne->user_creat)
|
||||
{
|
||||
print '<tr><td width="20%">Créé par</td><td colspan="3">';
|
||||
print '<tr><td width="20%">Cr<EFBFBD><EFBFBD> par</td><td colspan="3">';
|
||||
|
||||
$cuser = new User($db, $ligne->user_creat);
|
||||
$cuser->fetch();
|
||||
@ -125,7 +125,7 @@ llxHeader("","","Historique Ligne");
|
||||
}
|
||||
if ($ligne->user_commande)
|
||||
{
|
||||
print '<tr><td width="20%">Commandé par</td><td colspan="3">';
|
||||
print '<tr><td width="20%">Command<EFBFBD> par</td><td colspan="3">';
|
||||
|
||||
$couser = new User($db, $ligne->user_commande);
|
||||
$couser->fetch();
|
||||
@ -220,7 +220,7 @@ llxHeader("","","Historique Ligne");
|
||||
{
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre"><td>Mode</td><td>Resultat</td>';
|
||||
print '<td align="center">Date MeS</td><td>Résil</td></td><td>Commentaire</td><td align="center">D.T. / Fichier</td>';
|
||||
print '<td align="center">Date MeS</td><td>R<EFBFBD>sil</td></td><td>Commentaire</td><td align="center">D.T. / Fichier</td>';
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@ $sortorder = $_GET["sortorder"];
|
||||
llxHeader('','Telephonie - Lignes');
|
||||
|
||||
/*
|
||||
* Sécurité accés client
|
||||
* S<EFBFBD>curit<EFBFBD> acc<EFBFBD>s client
|
||||
*/
|
||||
if ($user->societe_id > 0)
|
||||
{
|
||||
@ -54,7 +54,7 @@ print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre"><td>Recherche ligne</td>';
|
||||
print "</tr>\n";
|
||||
print "<tr $bc[1]>";
|
||||
print '<td>Numéro <input name="search_ligne" size="12"></td></tr>';
|
||||
print '<td>Num<EFBFBD>ro <input name="search_ligne" size="12"></td></tr>';
|
||||
print '</table>';
|
||||
|
||||
print '<br />';
|
||||
@ -179,7 +179,7 @@ if ($resql)
|
||||
print"\n<!-- debut table -->\n";
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.min(10,$num).' Dernières lignes</td>';
|
||||
print '<td>'.min(10,$num).' Derni<EFBFBD>res lignes</td>';
|
||||
print '<td>Client (Agence/Filiale)</td>';
|
||||
print '<td align="center">Statut</td>';
|
||||
|
||||
@ -204,7 +204,7 @@ if ($resql)
|
||||
print img_file();
|
||||
print '</a> ';
|
||||
|
||||
print '<a href="fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne)."</a></td>\n";
|
||||
print '<a href="fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne,0,0,true)."</a></td>\n";
|
||||
|
||||
$nom = stripslashes($obj->nom);
|
||||
if (strlen(stripslashes($obj->nom)) > 20)
|
||||
|
||||
@ -41,13 +41,13 @@ if ($_POST["action"] == 'update' && $_POST["cancel"] <> $langs->trans("Cancel")
|
||||
|
||||
{
|
||||
$action = '';
|
||||
$mesg = 'Fiche mise à jour';
|
||||
$mesg = 'Fiche mise <EFBFBD> jour';
|
||||
Header("Location: infoc.php?id=".$ligne->id);
|
||||
}
|
||||
else
|
||||
{
|
||||
$action = 're-edit';
|
||||
$mesg = 'Fiche non mise à jour !' . "<br>" . $entrepot->mesg_error;
|
||||
$mesg = 'Fiche non mise <EFBFBD> jour !' . "<br>" . $entrepot->mesg_error;
|
||||
}
|
||||
}
|
||||
|
||||
@ -87,7 +87,7 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
|
||||
if (!$client_comm->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
print "Lecture non authoris<EFBFBD>e";
|
||||
}
|
||||
|
||||
|
||||
@ -127,12 +127,12 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
|
||||
dolibarr_fiche_head($head, $hselected, 'Ligne : '.$ligne->numero);
|
||||
|
||||
print_fiche_titre('Informations complémentaires', $mesg);
|
||||
print_fiche_titre('Informations compl<EFBFBD>mentaires', $mesg);
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
|
||||
print '<tr><td width="20%">Numéro</td><td>'.dolibarr_print_phone($ligne->numero).'</td>';
|
||||
print '<td>Facturée : '.$ligne->facturable.'</td></tr>';
|
||||
print '<tr><td width="20%">Num<EFBFBD>ro</td><td>'.dolibarr_print_phone($ligne->numero,0,0,true).'</td>';
|
||||
print '<td>Factur<EFBFBD>e : '.$ligne->facturable.'</td></tr>';
|
||||
|
||||
$client = new Societe($db, $ligne->client_id);
|
||||
$client->fetch($ligne->client_id);
|
||||
@ -151,12 +151,12 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
$cuser->fetch();
|
||||
}
|
||||
|
||||
print '<tr><td width="20%">Ligne créée par</td><td colspan="2">'.$cuser->fullname.'</td></tr>';
|
||||
print '<tr><td width="20%">Ligne cr<EFBFBD><EFBFBD>e par</td><td colspan="2">'.$cuser->fullname.'</td></tr>';
|
||||
|
||||
|
||||
print '<tr><td width="20%">Code analytique</td><td colspan="2">'.$ligne->code_analytique.' </td></tr>';
|
||||
|
||||
print '<tr><td width="20%">Modèle de facture utilisé</td><td colspan="2">'.$ligne->pdfdetail.'</td></tr>';
|
||||
print '<tr><td width="20%">Mod<EFBFBD>le de facture utilis<69></td><td colspan="2">'.$ligne->pdfdetail.'</td></tr>';
|
||||
|
||||
|
||||
print "</table>";
|
||||
@ -165,14 +165,14 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
|
||||
if ($_GET["action"] == 'edit' || $action == 're-edit')
|
||||
{
|
||||
print_fiche_titre('Edition des informations complémentaires de la ligne', $mesg);
|
||||
print_fiche_titre('Edition des informations compl<EFBFBD>mentaires de la ligne', $mesg);
|
||||
|
||||
print "<form action=\"infoc.php?id=$ligne->id\" method=\"post\">\n";
|
||||
print '<input type="hidden" name="action" value="update">';
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
|
||||
print '<tr><td width="20%">Numéro</td><td>'.$ligne->numero.'</td></tr>';
|
||||
print '<tr><td width="20%">Num<EFBFBD>ro</td><td>'.$ligne->numero.'</td></tr>';
|
||||
|
||||
$client = new Societe($db, $ligne->client_id);
|
||||
$client->fetch($ligne->client_id);
|
||||
@ -184,7 +184,7 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
|
||||
print '<tr><td width="20%">Code Analytique</td><td><input name="code_ana" size="13" maxlength="12" value="'.$ligne->code_analytique.'"> </td></tr>';
|
||||
|
||||
print '<tr><td> </td><td><input type="submit" value="Mettre à jour">';
|
||||
print '<tr><td> </td><td><input type="submit" value="Mettre <EFBFBD> jour">';
|
||||
print '<a href="infoc.php?id='.$ligne->id.'">Annuler</a></td></tr>';
|
||||
print '</table>';
|
||||
print '</form>';
|
||||
|
||||
@ -29,7 +29,7 @@ $sortfield = $_GET["sortfield"];
|
||||
|
||||
llxHeader('','Telephonie - Ligne - Liste');
|
||||
/*
|
||||
* Sécurité accés client
|
||||
* S<EFBFBD>curit<EFBFBD> acc<EFBFBD>s client
|
||||
*/
|
||||
if ($user->societe_id > 0)
|
||||
{
|
||||
@ -140,7 +140,7 @@ if ($result)
|
||||
{
|
||||
$cuser = new User($db, $_GET["commercial_sign"]);
|
||||
$cuser->fetch();
|
||||
$titre = "Lignes signées par ".$cuser->fullname;
|
||||
$titre = "Lignes sign<EFBFBD>es par ".$cuser->fullname;
|
||||
$urladd .= "&commercial_sign=". $_GET["commercial_sign"];
|
||||
}
|
||||
|
||||
@ -152,7 +152,7 @@ if ($result)
|
||||
print_liste_field_titre("Ligne","liste.php","l.ligne");
|
||||
print_liste_field_titre("Client (Agence/Filiale)","liste.php","s.nom");
|
||||
|
||||
//print '<td>Client facturé</td>';
|
||||
//print '<td>Client factur<EFBFBD></td>';
|
||||
print '<td align="center">Statut</td>';
|
||||
|
||||
if ($user->rights->telephonie->fournisseur->lire)
|
||||
@ -193,7 +193,7 @@ if ($result)
|
||||
print img_file();
|
||||
print '</a> ';
|
||||
|
||||
print '<a href="fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne)."</a></td>\n";
|
||||
print '<a href="fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne,0,0,true)."</a></td>\n";
|
||||
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/telephonie/client/fiche.php?id='.$obj->socid.'">'.stripslashes($obj->nom).'</a></td>';
|
||||
//print '<td><a href="'.DOL_URL_ROOT.'/soc.php?socid='.$obj->sfidp.'">'.stripslashes($obj->nom_facture).'</a></td>';
|
||||
|
||||
@ -35,7 +35,7 @@ $sortfield = $_GET["sortfield"];
|
||||
|
||||
llxHeader('','Telephonie - Ligne - Liste');
|
||||
/*
|
||||
* Sécurité accés client
|
||||
* S<EFBFBD>curit<EFBFBD> acc<EFBFBD>s client
|
||||
*/
|
||||
if ($user->societe_id > 0)
|
||||
{
|
||||
@ -134,7 +134,7 @@ if ($resql)
|
||||
|
||||
print '</a> ';
|
||||
|
||||
print '<a href="fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne)."</a></td>\n";
|
||||
print '<a href="fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne,0,0,true)."</a></td>\n";
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/soc.php?socid='.$obj->socid.'">'.$obj->nom.'</a></td>';
|
||||
print '<td align="center">'.$obj->date_commande_last."</td>\n";
|
||||
|
||||
|
||||
@ -75,7 +75,7 @@ if ($_GET["action"] == 'delete')
|
||||
|
||||
llxHeader('','Telephonie - Ligne - Liste');
|
||||
/*
|
||||
* Sécurité accés client
|
||||
* S<EFBFBD>curit<EFBFBD> acc<EFBFBD>s client
|
||||
*/
|
||||
if ($user->societe_id > 0)
|
||||
{
|
||||
@ -104,11 +104,11 @@ $pagenext = $page + 1;
|
||||
*/
|
||||
|
||||
|
||||
print_barre_liste("Numéros data", $page, "numdata.php", $urladd, $sortfield, $sortorder, '', $num);
|
||||
print_barre_liste("Num<EFBFBD>ros data", $page, "numdata.php", $urladd, $sortfield, $sortorder, '', $num);
|
||||
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre("Numéro","numdata.php","l.ligne");
|
||||
print_liste_field_titre("Num<EFBFBD>ro","numdata.php","l.ligne");
|
||||
|
||||
print_liste_field_titre("Client","numdata.php","s.nom");
|
||||
print '<td> </td>';
|
||||
@ -185,7 +185,7 @@ if ($result)
|
||||
|
||||
print "<tr $bc[$var]><td>";
|
||||
|
||||
print dolibarr_print_phone($obj->numero)."</td>\n";
|
||||
print dolibarr_print_phone($obj->numero,0,0,true)."</td>\n";
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/soc.php?socid='.$obj->socid.'">'.$obj->nom.'</a></td>';
|
||||
|
||||
print '<td align="center"><a href="'.DOL_URL_ROOT.'/telephonie/ligne/numdata.php?action=delete&id='.$obj->rowid.'">';
|
||||
|
||||
@ -49,7 +49,7 @@ if ($result == 1)
|
||||
|
||||
if (!$client_comm->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
print "Lecture non authoris<EFBFBD>e";
|
||||
}
|
||||
|
||||
if ($result == 1 && $client_comm->perm_read)
|
||||
@ -72,7 +72,7 @@ if ($result == 1 && $client_comm->perm_read)
|
||||
|
||||
print '<table class="border" width="100%">';
|
||||
|
||||
print '<tr><td width="20%">Numéro</td><td colspan="2">'.dolibarr_print_phone($ligne->numero).'</td></tr>';
|
||||
print '<tr><td width="20%">Num<EFBFBD>ro</td><td colspan="2">'.dolibarr_print_phone($ligne->numero,0,0,true).'</td></tr>';
|
||||
|
||||
$client = new Societe($db, $ligne->client_id);
|
||||
$client->fetch($ligne->client_id);
|
||||
@ -88,7 +88,7 @@ if ($result == 1 && $client_comm->perm_read)
|
||||
|
||||
if ($ligne->user_creat)
|
||||
{
|
||||
print '<tr><td width="20%">Créé par</td><td colspan="2">';
|
||||
print '<tr><td width="20%">Cr<EFBFBD><EFBFBD> par</td><td colspan="2">';
|
||||
|
||||
$cuser = new User($db, $ligne->user_creat);
|
||||
$cuser->fetch();
|
||||
@ -98,7 +98,7 @@ if ($result == 1 && $client_comm->perm_read)
|
||||
}
|
||||
if ($ligne->user_commande)
|
||||
{
|
||||
print '<tr><td width="20%">Commandé par</td><td colspan="2">';
|
||||
print '<tr><td width="20%">Command<EFBFBD> par</td><td colspan="2">';
|
||||
|
||||
$couser = new User($db, $ligne->user_commande);
|
||||
$couser->fetch();
|
||||
|
||||
@ -44,7 +44,7 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
|
||||
if (!$client_comm->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
print "Lecture non authoris<EFBFBD>e";
|
||||
}
|
||||
|
||||
|
||||
@ -95,8 +95,8 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
|
||||
print '<tr><td width="25%">Numéro</td><td>'.dolibarr_print_phone($ligne->numero).'</td>';
|
||||
print '<td>Facturée : '.$ligne->facturable.'</td><td> </td></tr>';
|
||||
print '<tr><td width="25%">Num<EFBFBD>ro</td><td>'.dolibarr_print_phone($ligne->numero,0,0,true).'</td>';
|
||||
print '<td>Factur<EFBFBD>e : '.$ligne->facturable.'</td><td> </td></tr>';
|
||||
|
||||
$client = new Societe($db, $ligne->client_id);
|
||||
$client->fetch($ligne->client_id);
|
||||
@ -109,7 +109,7 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
$client_facture = new Societe($db);
|
||||
$client_facture->fetch($ligne->client_facture_id);
|
||||
|
||||
print '<td width="25%">Client Facturé</td><td>'.$client_facture->nom.'</td></tr>';
|
||||
print '<td width="25%">Client Factur<EFBFBD></td><td>'.$client_facture->nom.'</td></tr>';
|
||||
|
||||
print '<tr><td width="25%">Statut</td><td colspan="3">';
|
||||
print '<img src="./graph'.$ligne->statut.'.png"> ';
|
||||
@ -125,7 +125,7 @@ if ($_GET["id"] or $_GET["numero"])
|
||||
|
||||
print '<tr><td width="50%" valign="top" align="center">';
|
||||
|
||||
$mesg_no_graph = 'Nous avons pas assez de données à ce jour pour générer ce graphique.';
|
||||
$mesg_no_graph = 'Nous avons pas assez de donn<EFBFBD>es <20> ce jour pour g<>n<EFBFBD>rer ce graphique.';
|
||||
|
||||
$img_root = DOL_DATA_ROOT."/graph/".substr($ligne->id,-1)."/telephonie/ligne/";
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@ $sortfield = $_GET["sortfield"];
|
||||
|
||||
llxHeader('','Telephonie - Services - Liste');
|
||||
/*
|
||||
* Sécurité accés client
|
||||
* S<EFBFBD>curit<EFBFBD> acc<EFBFBD>s client
|
||||
*/
|
||||
if ($user->societe_id > 0)
|
||||
{
|
||||
@ -114,7 +114,7 @@ if ($result)
|
||||
print_liste_field_titre("Ligne","liste.php","l.ligne");
|
||||
print_liste_field_titre("Client (Agence/Filiale)","liste.php","s.nom");
|
||||
|
||||
print '<td>Client facturé</td>';
|
||||
print '<td>Client factur<EFBFBD></td>';
|
||||
print '<td align="center">Statut</td>';
|
||||
|
||||
print_liste_field_titre("Remise LMN","liste.php","l.remise","","",' align="center"');
|
||||
@ -156,7 +156,7 @@ if ($result)
|
||||
print img_file();
|
||||
print '</a> ';
|
||||
|
||||
print '<a href="fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne)."</a></td>\n";
|
||||
print '<a href="fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne,0,0,true)."</a></td>\n";
|
||||
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/telephonie/client/fiche.php?id='.$obj->socid.'">'.stripslashes($obj->nom).'</a></td>';
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/soc.php?socid='.$obj->sfidp.'">'.stripslashes($obj->nom_facture).'</a></td>';
|
||||
|
||||
@ -35,7 +35,7 @@ if ($cancel == $langs->trans("Cancel"))
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Création
|
||||
* Cr<EFBFBD>ation
|
||||
*
|
||||
*/
|
||||
|
||||
@ -57,8 +57,8 @@ if ($_GET["id"])
|
||||
|
||||
print "<tr><td valign=\"top\">".$langs->trans('Address')."</td><td colspan=\"3\">".nl2br($soc->adresse)."<br>".$soc->cp." ".$soc->ville." ".$soc->pays."</td></tr>";
|
||||
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Phone').'</td><td>'.dolibarr_print_phone($soc->tel,$soc->pays_code,0,$soc->id).'</td>';
|
||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax,$soc->pays_code,0,$soc->id).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Web').'</td><td colspan="3">';
|
||||
if ($soc->url) { print '<a href="http://'.$soc->url.'">http://'.$soc->url.'</a>'; }
|
||||
print '</td></tr>';
|
||||
@ -72,8 +72,8 @@ if ($_GET["id"])
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
|
||||
//print '<tr><td width="20%">Numéro</td><td>'.dolibarr_print_phone($ligne->numero).'</td>';
|
||||
//print '<td>Facturée : '.$ligne->facturable.'</td></tr>';
|
||||
//print '<tr><td width="20%">Num<EFBFBD>ro</td><td>'.dolibarr_print_phone($ligne->numero).'</td>';
|
||||
//print '<td>Factur<EFBFBD>e : '.$ligne->facturable.'</td></tr>';
|
||||
|
||||
/* Lignes */
|
||||
|
||||
@ -112,7 +112,7 @@ if ($_GET["id"])
|
||||
|
||||
print '</a> ';
|
||||
|
||||
print '<a href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne)."</a></td>\n";
|
||||
print '<a href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?id='.$obj->rowid.'">'.dolibarr_print_phone($obj->ligne,0,0,true)."</a></td>\n";
|
||||
|
||||
print '<td align="center">'.$ligne->statuts[$obj->statut]."</td>\n";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user