Qual: Uniformize code

This commit is contained in:
Laurent Destailleur 2009-07-29 23:45:33 +00:00
parent e8631961c1
commit 0b31e61313
3 changed files with 5 additions and 3 deletions

View File

@ -146,7 +146,7 @@ if ($_GET["socid"])
print '<table class="border" width="100%">';
print '<tr><td width="30%">'.$langs->trans("Name").'</td><td width="70%" colspan="3">';
print $soc->nom;
print $html->showrefnav($soc,'socid','',1,'rowid','nom');
print '</td></tr>';
print '<tr><td>'.$langs->trans('Prefix').'</td><td colspan="3">'.$soc->prefix_comm.'</td></tr>';

View File

@ -1524,7 +1524,7 @@ class Form
* \param selected Id categorie preselectionnee
* \param select_name Nom formulaire HTML
*/
function select_all_categories($type,$selected='',$select_name="")
function select_all_categories($type,$selected='',$select_name="",$maxlength=64)
{
global $langs;
$langs->load("categories");
@ -1551,7 +1551,7 @@ class Form
{
$add = '';
}
$output.= '<option '.$add.'value="'.$cate_arbo[$key]['id'].'">'.dol_trunc($cate_arbo[$key]['fulllabel'],80,'middle').'</option>';
$output.= '<option '.$add.'value="'.$cate_arbo[$key]['id'].'">'.dol_trunc($cate_arbo[$key]['fulllabel'],$maxlength,'middle').'</option>';
}
}
}

View File

@ -1260,11 +1260,13 @@ else
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?socid='.$soc->id.'&amp;action=edit">'.$langs->trans("Modify").'</a>';
}
/* Not specific to third party. Must go on Project menu to create a project.
if ($conf->projet->enabled && $user->rights->projet->creer)
{
$langs->load("projects");
print '<a class="butAction" href="'.DOL_URL_ROOT.'/projet/fiche.php?socid='.$soc->id.'&action=create">'.$langs->trans("AddProject").'</a>';
}
*/
if ($user->rights->societe->contact->creer)
{