Qual: Uniformize code
This commit is contained in:
parent
e8631961c1
commit
0b31e61313
@ -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>';
|
||||
|
||||
@ -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>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1260,11 +1260,13 @@ else
|
||||
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?socid='.$soc->id.'&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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user