Rename static object
This commit is contained in:
parent
fe8a652fe0
commit
8374bf42bb
@ -210,6 +210,8 @@ if ($id > 0 || ! empty($ref))
|
|||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Lignes de contacts
|
* Lignes de contacts
|
||||||
*/
|
*/
|
||||||
@ -217,7 +219,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Ajouter une ligne de contact
|
* Ajouter une ligne de contact
|
||||||
* Non affich<EFBFBD> en mode modification de ligne
|
* Non affiche en mode modification de ligne
|
||||||
*/
|
*/
|
||||||
if ($_GET["action"] != 'editline' && $user->rights->propale->creer)
|
if ($_GET["action"] != 'editline' && $user->rights->propale->creer)
|
||||||
{
|
{
|
||||||
@ -298,7 +300,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print '<tr><td colspan="6"> </td></tr>';
|
print '<tr><td colspan="6"> </td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Liste des contacts li<EFBFBD>s
|
// Liste des contacts lies
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Source").'</td>';
|
print '<td>'.$langs->trans("Source").'</td>';
|
||||||
print '<td>'.$langs->trans("Company").'</td>';
|
print '<td>'.$langs->trans("Company").'</td>';
|
||||||
@ -308,7 +310,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print '<td colspan="2"> </td>';
|
print '<td colspan="2"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$societe = new Societe($db);
|
$companystatic = new Societe($db);
|
||||||
$var = true;
|
$var = true;
|
||||||
|
|
||||||
foreach(array('internal','external') as $source)
|
foreach(array('internal','external') as $source)
|
||||||
@ -334,7 +336,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
if ($tab[$i]['socid'] > 0)
|
if ($tab[$i]['socid'] > 0)
|
||||||
{
|
{
|
||||||
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
||||||
print img_object($langs->trans("ShowCompany"),"company").' '.$societe->get_nom($tab[$i]['socid']);
|
print img_object($langs->trans("ShowCompany"),"company").' '.$companystatic->get_nom($tab[$i]['socid']);
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
if ($tab[$i]['socid'] < 0)
|
if ($tab[$i]['socid'] < 0)
|
||||||
|
|||||||
@ -307,7 +307,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print '<td colspan="2"> </td>';
|
print '<td colspan="2"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$societe = new Societe($db);
|
$companystatic=new Societe($db);
|
||||||
$var = true;
|
$var = true;
|
||||||
|
|
||||||
foreach(array('internal','external') as $source)
|
foreach(array('internal','external') as $source)
|
||||||
@ -333,7 +333,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
if ($tab[$i]['socid'] > 0)
|
if ($tab[$i]['socid'] > 0)
|
||||||
{
|
{
|
||||||
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
||||||
print img_object($langs->trans("ShowCompany"),"company").' '.$societe->get_nom($tab[$i]['socid']);
|
print img_object($langs->trans("ShowCompany"),"company").' '.$companystatic->get_nom($tab[$i]['socid']);
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
if ($tab[$i]['socid'] < 0)
|
if ($tab[$i]['socid'] < 0)
|
||||||
|
|||||||
@ -302,7 +302,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print '<td colspan="2"> </td>';
|
print '<td colspan="2"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$societe = new Societe($db);
|
$companystatic = new Societe($db);
|
||||||
$var = true;
|
$var = true;
|
||||||
|
|
||||||
foreach(array('internal','external') as $source)
|
foreach(array('internal','external') as $source)
|
||||||
@ -328,7 +328,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
if ($tab[$i]['socid'] > 0)
|
if ($tab[$i]['socid'] > 0)
|
||||||
{
|
{
|
||||||
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
||||||
print img_object($langs->trans("ShowCompany"),"company").' '.$societe->get_nom($tab[$i]['socid']);
|
print img_object($langs->trans("ShowCompany"),"company").' '.$companystatic->get_nom($tab[$i]['socid']);
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
if ($tab[$i]['socid'] < 0)
|
if ($tab[$i]['socid'] < 0)
|
||||||
|
|||||||
@ -306,7 +306,7 @@ if ($id > 0)
|
|||||||
print '<td colspan="2"> </td>';
|
print '<td colspan="2"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$societe = new Societe($db);
|
$companystatic = new Societe($db);
|
||||||
$var = true;
|
$var = true;
|
||||||
|
|
||||||
foreach(array('internal','external') as $source)
|
foreach(array('internal','external') as $source)
|
||||||
@ -332,7 +332,7 @@ if ($id > 0)
|
|||||||
if ($tab[$i]['socid'] > 0)
|
if ($tab[$i]['socid'] > 0)
|
||||||
{
|
{
|
||||||
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
||||||
print img_object($langs->trans("ShowCompany"),"company").' '.$societe->get_nom($tab[$i]['socid']);
|
print img_object($langs->trans("ShowCompany"),"company").' '.$companystatic->get_nom($tab[$i]['socid']);
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
if ($tab[$i]['socid'] < 0)
|
if ($tab[$i]['socid'] < 0)
|
||||||
|
|||||||
@ -292,7 +292,7 @@ if ($id > 0)
|
|||||||
print '<td colspan="2"> </td>';
|
print '<td colspan="2"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$societe = new Societe($db);
|
$companystatic = new Societe($db);
|
||||||
$var = true;
|
$var = true;
|
||||||
|
|
||||||
foreach(array('internal','external') as $source)
|
foreach(array('internal','external') as $source)
|
||||||
@ -318,7 +318,7 @@ if ($id > 0)
|
|||||||
if ($tab[$i]['socid'] > 0)
|
if ($tab[$i]['socid'] > 0)
|
||||||
{
|
{
|
||||||
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
||||||
print img_object($langs->trans("ShowCompany"),"company").' '.$societe->get_nom($tab[$i]['socid']);
|
print img_object($langs->trans("ShowCompany"),"company").' '.$companystatic->get_nom($tab[$i]['socid']);
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
if ($tab[$i]['socid'] < 0)
|
if ($tab[$i]['socid'] < 0)
|
||||||
|
|||||||
@ -299,7 +299,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print '<td colspan="2"> </td>';
|
print '<td colspan="2"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$societe = new Societe($db);
|
$companystatic = new Societe($db);
|
||||||
$var = true;
|
$var = true;
|
||||||
|
|
||||||
foreach(array('internal','external') as $source)
|
foreach(array('internal','external') as $source)
|
||||||
@ -325,7 +325,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
if ($tab[$i]['socid'] > 0)
|
if ($tab[$i]['socid'] > 0)
|
||||||
{
|
{
|
||||||
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
||||||
print img_object($langs->trans("ShowCompany"),"company").' '.$societe->get_nom($tab[$i]['socid']);
|
print img_object($langs->trans("ShowCompany"),"company").' '.$companystatic->get_nom($tab[$i]['socid']);
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
if ($tab[$i]['socid'] < 0)
|
if ($tab[$i]['socid'] < 0)
|
||||||
|
|||||||
@ -291,7 +291,7 @@ if ($id > 0)
|
|||||||
print '<td colspan="2"> </td>';
|
print '<td colspan="2"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$societe = new Societe($db);
|
$companystatic = new Societe($db);
|
||||||
$var = true;
|
$var = true;
|
||||||
|
|
||||||
foreach(array('internal','external') as $source)
|
foreach(array('internal','external') as $source)
|
||||||
@ -317,7 +317,7 @@ if ($id > 0)
|
|||||||
if ($tab[$i]['socid'] > 0)
|
if ($tab[$i]['socid'] > 0)
|
||||||
{
|
{
|
||||||
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
||||||
print img_object($langs->trans("ShowCompany"),"company").' '.$societe->get_nom($tab[$i]['socid']);
|
print img_object($langs->trans("ShowCompany"),"company").' '.$companystatic->get_nom($tab[$i]['socid']);
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
if ($tab[$i]['socid'] < 0)
|
if ($tab[$i]['socid'] < 0)
|
||||||
|
|||||||
@ -316,7 +316,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print '<td colspan="2"> </td>';
|
print '<td colspan="2"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$societe = new Societe($db);
|
$companystatic = new Societe($db);
|
||||||
$var = true;
|
$var = true;
|
||||||
|
|
||||||
foreach(array('internal','external') as $source)
|
foreach(array('internal','external') as $source)
|
||||||
@ -342,7 +342,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
if ($tab[$i]['socid'] > 0)
|
if ($tab[$i]['socid'] > 0)
|
||||||
{
|
{
|
||||||
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
||||||
print img_object($langs->trans("ShowCompany"),"company").' '.$societe->get_nom($tab[$i]['socid']);
|
print img_object($langs->trans("ShowCompany"),"company").' '.$companystatic->get_nom($tab[$i]['socid']);
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
if ($tab[$i]['socid'] < 0)
|
if ($tab[$i]['socid'] < 0)
|
||||||
|
|||||||
@ -319,7 +319,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print '<td colspan="2"> </td>';
|
print '<td colspan="2"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$societe = new Societe($db);
|
$companystatic = new Societe($db);
|
||||||
$var = true;
|
$var = true;
|
||||||
|
|
||||||
foreach(array('internal','external') as $source)
|
foreach(array('internal','external') as $source)
|
||||||
@ -345,7 +345,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
if ($tab[$i]['socid'] > 0)
|
if ($tab[$i]['socid'] > 0)
|
||||||
{
|
{
|
||||||
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$tab[$i]['socid'].'">';
|
||||||
print img_object($langs->trans("ShowCompany"),"company").' '.$societe->get_nom($tab[$i]['socid']);
|
print img_object($langs->trans("ShowCompany"),"company").' '.$companystatic->get_nom($tab[$i]['socid']);
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
if ($tab[$i]['socid'] < 0)
|
if ($tab[$i]['socid'] < 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user