Correction pour validation Stickler CI / stickler-ci
This commit is contained in:
parent
28d330996c
commit
218fbfc70b
@ -1416,7 +1416,7 @@ else
|
||||
print '</td><td>';
|
||||
if ($action == 'editlevel')
|
||||
{
|
||||
$formcompany->form_prospect_contact_level($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->fk_prospectlevel, 'prospect_contact_level_id', 1);
|
||||
$formcompany->formProspectContactLevel($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->fk_prospectlevel, 'prospect_contact_level_id', 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -1802,7 +1802,7 @@ class Contact extends CommonObject
|
||||
*/
|
||||
public function getLibProspLevel()
|
||||
{
|
||||
return $this->LibProspLevel($this->fk_prospectlevel);
|
||||
return $this->libProspLevel($this->fk_prospectlevel);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1811,7 +1811,7 @@ class Contact extends CommonObject
|
||||
* @param int $fk_prospectlevel Prospect level
|
||||
* @return string label of level
|
||||
*/
|
||||
public function LibProspLevel($fk_prospectlevel)
|
||||
public function libProspLevel($fk_prospectlevel)
|
||||
{
|
||||
global $langs;
|
||||
|
||||
|
||||
@ -179,7 +179,7 @@ class FormCompany extends Form
|
||||
* @param int $empty Add empty value in list
|
||||
* @return void
|
||||
*/
|
||||
function form_prospect_contact_level($page, $selected = '', $htmlname = 'prospect_contact_level_id', $empty = 0)
|
||||
public function formProspectContactLevel($page, $selected = '', $htmlname = 'prospect_contact_level_id', $empty = 0)
|
||||
{
|
||||
global $user, $langs;
|
||||
|
||||
|
||||
@ -1251,13 +1251,13 @@ while ($i < min($num, $limit))
|
||||
{
|
||||
// Prospect status
|
||||
print '<td class="center nowrap"><div class="nowrap">';
|
||||
print '<div class="inline-block">'.$companystatic->LibProspCommStatut($obj->stcomm_id, 2, $prospectstatic->cacheprospectstatus[$obj->stcomm_id]['label'],$obj->stcomm_picto);
|
||||
print '<div class="inline-block">' . $companystatic->LibProspCommStatut($obj->stcomm_id, 2, $prospectstatic->cacheprospectstatus[$obj->stcomm_id]['label'], $obj->stcomm_picto);
|
||||
print '</div> - <div class="inline-block">';
|
||||
foreach ($prospectstatic->cacheprospectstatus as $key => $val)
|
||||
{
|
||||
$titlealt = 'default';
|
||||
if (!empty($val['code']) && !in_array($val['code'], array('ST_NO', 'ST_NEVER', 'ST_TODO', 'ST_PEND', 'ST_DONE'))) $titlealt = $val['label'];
|
||||
if ($obj->stcomm_id != $val['id']) print '<a class="pictosubstatus" href="'.$_SERVER["PHP_SELF"].'?stcommsocid='.$obj->rowid.'&stcomm='.$val['code'].'&action=setstcomm'.$param.($page ? '&page='.urlencode($page) : '').'">'.img_action($titlealt, $val['code'],$val['picto']).'</a>';
|
||||
if ($obj->stcomm_id != $val['id']) print '<a class="pictosubstatus" href="' . $_SERVER["PHP_SELF"] . '?stcommsocid=' . $obj->rowid . '&stcomm=' . $val['code'] . '&action=setstcomm' . $param . ($page ? '&page=' . urlencode($page) : '') . '">' . img_action($titlealt, $val['code'], $val['picto']) . '</a>';
|
||||
}
|
||||
print '</div></div></td>';
|
||||
if (!$i) $totalarray['nbfield']++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user