Rename static object

This commit is contained in:
Laurent Destailleur 2010-05-09 14:55:49 +00:00
parent fe8a652fe0
commit 8374bf42bb
9 changed files with 22 additions and 20 deletions

View File

@ -210,6 +210,8 @@ if ($id > 0 || ! empty($ref))
print '</div>';
/*
* Lignes de contacts
*/
@ -217,7 +219,7 @@ if ($id > 0 || ! empty($ref))
/*
* 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)
{
@ -298,7 +300,7 @@ if ($id > 0 || ! empty($ref))
print '<tr><td colspan="6">&nbsp;</td></tr>';
}
// Liste des contacts li<EFBFBD>s
// Liste des contacts lies
print '<tr class="liste_titre">';
print '<td>'.$langs->trans("Source").'</td>';
print '<td>'.$langs->trans("Company").'</td>';
@ -308,7 +310,7 @@ if ($id > 0 || ! empty($ref))
print '<td colspan="2">&nbsp;</td>';
print "</tr>\n";
$societe = new Societe($db);
$companystatic = new Societe($db);
$var = true;
foreach(array('internal','external') as $source)
@ -334,7 +336,7 @@ if ($id > 0 || ! empty($ref))
if ($tab[$i]['socid'] > 0)
{
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>';
}
if ($tab[$i]['socid'] < 0)

View File

@ -307,7 +307,7 @@ if ($id > 0 || ! empty($ref))
print '<td colspan="2">&nbsp;</td>';
print "</tr>\n";
$societe = new Societe($db);
$companystatic=new Societe($db);
$var = true;
foreach(array('internal','external') as $source)
@ -333,7 +333,7 @@ if ($id > 0 || ! empty($ref))
if ($tab[$i]['socid'] > 0)
{
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>';
}
if ($tab[$i]['socid'] < 0)

View File

@ -302,7 +302,7 @@ if ($id > 0 || ! empty($ref))
print '<td colspan="2">&nbsp;</td>';
print "</tr>\n";
$societe = new Societe($db);
$companystatic = new Societe($db);
$var = true;
foreach(array('internal','external') as $source)
@ -328,7 +328,7 @@ if ($id > 0 || ! empty($ref))
if ($tab[$i]['socid'] > 0)
{
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>';
}
if ($tab[$i]['socid'] < 0)

View File

@ -306,7 +306,7 @@ if ($id > 0)
print '<td colspan="2">&nbsp;</td>';
print "</tr>\n";
$societe = new Societe($db);
$companystatic = new Societe($db);
$var = true;
foreach(array('internal','external') as $source)
@ -332,7 +332,7 @@ if ($id > 0)
if ($tab[$i]['socid'] > 0)
{
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>';
}
if ($tab[$i]['socid'] < 0)

View File

@ -292,7 +292,7 @@ if ($id > 0)
print '<td colspan="2">&nbsp;</td>';
print "</tr>\n";
$societe = new Societe($db);
$companystatic = new Societe($db);
$var = true;
foreach(array('internal','external') as $source)
@ -318,7 +318,7 @@ if ($id > 0)
if ($tab[$i]['socid'] > 0)
{
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>';
}
if ($tab[$i]['socid'] < 0)

View File

@ -299,7 +299,7 @@ if ($id > 0 || ! empty($ref))
print '<td colspan="2">&nbsp;</td>';
print "</tr>\n";
$societe = new Societe($db);
$companystatic = new Societe($db);
$var = true;
foreach(array('internal','external') as $source)
@ -325,7 +325,7 @@ if ($id > 0 || ! empty($ref))
if ($tab[$i]['socid'] > 0)
{
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>';
}
if ($tab[$i]['socid'] < 0)

View File

@ -291,7 +291,7 @@ if ($id > 0)
print '<td colspan="2">&nbsp;</td>';
print "</tr>\n";
$societe = new Societe($db);
$companystatic = new Societe($db);
$var = true;
foreach(array('internal','external') as $source)
@ -317,7 +317,7 @@ if ($id > 0)
if ($tab[$i]['socid'] > 0)
{
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>';
}
if ($tab[$i]['socid'] < 0)

View File

@ -316,7 +316,7 @@ if ($id > 0 || ! empty($ref))
print '<td colspan="2">&nbsp;</td>';
print "</tr>\n";
$societe = new Societe($db);
$companystatic = new Societe($db);
$var = true;
foreach(array('internal','external') as $source)
@ -342,7 +342,7 @@ if ($id > 0 || ! empty($ref))
if ($tab[$i]['socid'] > 0)
{
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>';
}
if ($tab[$i]['socid'] < 0)

View File

@ -319,7 +319,7 @@ if ($id > 0 || ! empty($ref))
print '<td colspan="2">&nbsp;</td>';
print "</tr>\n";
$societe = new Societe($db);
$companystatic = new Societe($db);
$var = true;
foreach(array('internal','external') as $source)
@ -345,7 +345,7 @@ if ($id > 0 || ! empty($ref))
if ($tab[$i]['socid'] > 0)
{
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>';
}
if ($tab[$i]['socid'] < 0)