Look and feel v12
This commit is contained in:
parent
6472f521ac
commit
fa056e59df
@ -96,7 +96,7 @@ class DolEditor
|
|||||||
$this->cols = (preg_match('/%/', $cols) ? $cols : max(40, $cols)); // If $cols is a percent, we keep it, otherwise, we take max
|
$this->cols = (preg_match('/%/', $cols) ? $cols : max(40, $cols)); // If $cols is a percent, we keep it, otherwise, we take max
|
||||||
$this->height = $height;
|
$this->height = $height;
|
||||||
$this->width = $width;
|
$this->width = $width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||||
@ -259,7 +259,7 @@ class DolEditor
|
|||||||
})';
|
})';
|
||||||
$out .= '</script>'."\n";
|
$out .= '</script>'."\n";
|
||||||
}
|
}
|
||||||
|
var_dump($this->height);
|
||||||
$out .= '<pre id="'.$this->htmlname.'aceeditorid" style="'.($this->width ? 'width: '.$this->width.'px; ' : '');
|
$out .= '<pre id="'.$this->htmlname.'aceeditorid" style="'.($this->width ? 'width: '.$this->width.'px; ' : '');
|
||||||
$out .= ($this->height ? ' height: '.$this->height.'px; ' : '');
|
$out .= ($this->height ? ' height: '.$this->height.'px; ' : '');
|
||||||
//$out.=" min-height: 100px;";
|
//$out.=" min-height: 100px;";
|
||||||
|
|||||||
@ -3147,15 +3147,16 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
'object_accounting', 'object_action', 'object_account', 'object_barcode', 'object_bom',
|
'object_accounting', 'object_action', 'object_account', 'object_barcode', 'object_bom',
|
||||||
'object_category', 'object_bookmark', 'object_bug', 'object_generic', 'object_list-alt', 'object_calendar', 'object_calendarweek', 'object_calendarmonth', 'object_calendarday', 'object_calendarperuser',
|
'object_category', 'object_bookmark', 'object_bug', 'object_generic', 'object_list-alt', 'object_calendar', 'object_calendarweek', 'object_calendarmonth', 'object_calendarday', 'object_calendarperuser',
|
||||||
'object_cash-register', 'object_company', 'object_contact', 'object_contract', 'object_dynamicprice',
|
'object_cash-register', 'object_company', 'object_contact', 'object_contract', 'object_dynamicprice',
|
||||||
'object_holiday', 'object_hrm', 'object_multicurrency', 'object_payment',
|
'object_holiday', 'object_hrm', 'object_intervention', 'object_multicurrency', 'object_payment',
|
||||||
'object_lot', 'object_mrp', 'object_product', 'object_service', 'object_stock',
|
'object_lot', 'object_mrp', 'object_product', 'object_service', 'object_stock',
|
||||||
'object_paragraph', 'object_printer', 'object_resource', 'object_rss', 'object_technic', 'object_ticket', 'object_trip', 'object_user', 'object_group', 'object_member', 'object_other',
|
'object_paragraph', 'object_printer', 'object_project', 'object_projectpub', 'object_resource', 'object_rss', 'object_projecttask',
|
||||||
|
'object_technic', 'object_ticket', 'object_trip', 'object_user', 'object_group', 'object_member', 'object_other',
|
||||||
'object_phoning', 'object_phoning_fax', 'object_email',
|
'object_phoning', 'object_phoning_fax', 'object_email',
|
||||||
'off', 'on', 'paiment', 'play', 'playdisabled', 'printer', 'product', 'resize', 'service', 'stats', 'trip',
|
'off', 'on', 'paiment', 'play', 'playdisabled', 'printer', 'product', 'resize', 'service', 'stats', 'trip',
|
||||||
'note', 'setup', 'sign-out', 'split', 'switch_off', 'switch_on', 'tools', 'unlink', 'uparrow', 'user', 'wrench', 'globe',
|
'note', 'setup', 'sign-out', 'split', 'switch_off', 'switch_on', 'tools', 'unlink', 'uparrow', 'user', 'wrench', 'globe',
|
||||||
'jabber', 'skype', 'twitter', 'facebook', 'linkedin', 'instagram', 'snapchat', 'youtube', 'google-plus-g', 'whatsapp',
|
'jabber', 'skype', 'twitter', 'facebook', 'linkedin', 'instagram', 'snapchat', 'youtube', 'google-plus-g', 'whatsapp',
|
||||||
'chevron-left', 'chevron-right', 'chevron-down', 'chevron-top',
|
'chevron-left', 'chevron-right', 'chevron-down', 'chevron-top',
|
||||||
'home', 'companies', 'products', 'commercial', 'invoicing', 'accountancy', 'preview', 'project', 'hrm', 'members', 'ticket', 'generic',
|
'home', 'companies', 'products', 'commercial', 'invoicing', 'accountancy', 'preview', 'project', 'projectpub', 'hrm', 'members', 'ticket', 'generic',
|
||||||
'error', 'warning',
|
'error', 'warning',
|
||||||
'title_setup', 'title_accountancy', 'title_bank', 'title_hrm', 'title_agenda'
|
'title_setup', 'title_accountancy', 'title_bank', 'title_hrm', 'title_agenda'
|
||||||
)
|
)
|
||||||
@ -3182,16 +3183,18 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
'edit'=>'pencil-alt', 'grip_title'=>'arrows-alt', 'grip'=>'arrows-alt', 'help'=>'info-circle',
|
'edit'=>'pencil-alt', 'grip_title'=>'arrows-alt', 'grip'=>'arrows-alt', 'help'=>'info-circle',
|
||||||
'generic'=>'file', 'holiday'=>'umbrella-beach', 'member'=>'users', 'mrp'=>'cubes', 'trip'=>'wallet', 'group'=>'users',
|
'generic'=>'file', 'holiday'=>'umbrella-beach', 'member'=>'users', 'mrp'=>'cubes', 'trip'=>'wallet', 'group'=>'users',
|
||||||
'sign-out'=>'sign-out-alt',
|
'sign-out'=>'sign-out-alt',
|
||||||
'switch_off'=>'toggle-off', 'switch_on'=>'toggle-on', 'check'=>'check', 'bookmark'=>'star', 'bookmark'=>'star', 'stats' => 'chart-bar',
|
'switch_off'=>'toggle-off', 'switch_on'=>'toggle-on', 'check'=>'check', 'bookmark'=>'star', 'bookmark'=>'star',
|
||||||
'bank'=>'university', 'close_title'=>'window-close', 'delete'=>'trash', 'edit'=>'pencil-alt', 'filter'=>'filter', 'split'=>'code-branch',
|
'bank'=>'university', 'close_title'=>'window-close', 'delete'=>'trash', 'edit'=>'pencil-alt', 'filter'=>'filter',
|
||||||
'list-alt'=>'list-alt', 'calendar'=>'calendar-alt', 'calendarweek'=>'calendar-week', 'calendarmonth'=>'calendar-alt', 'calendarday'=>'calendar-day', 'calendarperuser'=>'table',
|
'list-alt'=>'list-alt', 'calendar'=>'calendar-alt', 'calendarweek'=>'calendar-week', 'calendarmonth'=>'calendar-alt', 'calendarday'=>'calendar-day', 'calendarperuser'=>'table',
|
||||||
'multicurrency'=>'dollar-sign', 'other'=>'square', 'resource'=>'laptop-house',
|
'intervention'=>'ambulance', 'multicurrency'=>'dollar-sign',
|
||||||
'error'=>'exclamation-triangle', 'warning'=>'exclamation-triangle',
|
'error'=>'exclamation-triangle', 'warning'=>'exclamation-triangle',
|
||||||
|
'other'=>'square', 'playdisabled'=>'play', 'preview'=>'binoculars', 'project'=>'sitemap', 'projectpub'=>'sitemap', 'projecttask'=>'tasks',
|
||||||
|
'resize'=>'crop',
|
||||||
'payment'=>'money-bill-alt', 'phoning'=>'phone', 'phoning_fax'=>'fax', 'printer'=>'print', 'product'=>'cube', 'service'=>'concierge-bell',
|
'payment'=>'money-bill-alt', 'phoning'=>'phone', 'phoning_fax'=>'fax', 'printer'=>'print', 'product'=>'cube', 'service'=>'concierge-bell',
|
||||||
'stock'=>'box-open', 'technic'=>'cogs', 'ticket'=>'ticket-alt',
|
'resource'=>'laptop-house',
|
||||||
|
'stock'=>'box-open', 'stats' => 'chart-bar', 'split'=>'code-branch', 'technic'=>'cogs', 'ticket'=>'ticket-alt',
|
||||||
'title_setup'=>'tools', 'title_accountancy'=>'money-check-alt', 'title_bank'=>'university', 'title_hrm'=>'umbrella-beach',
|
'title_setup'=>'tools', 'title_accountancy'=>'money-check-alt', 'title_bank'=>'university', 'title_hrm'=>'umbrella-beach',
|
||||||
'title_agenda'=>'calendar-alt',
|
'title_agenda'=>'calendar-alt',
|
||||||
'playdisabled'=>'play', 'preview'=>'binoculars', 'project'=>'sitemap', 'resize'=>'crop',
|
|
||||||
'uparrow'=>'mail-forward',
|
'uparrow'=>'mail-forward',
|
||||||
'jabber'=>'comment-o'
|
'jabber'=>'comment-o'
|
||||||
);
|
);
|
||||||
@ -3245,10 +3248,11 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
'contract'=>'bg-infoxbox-contrat',
|
'contract'=>'bg-infoxbox-contrat',
|
||||||
'multicurrency'=>'bg-infoxbox-bank_account',
|
'multicurrency'=>'bg-infoxbox-bank_account',
|
||||||
'check'=>'font-status4',
|
'check'=>'font-status4',
|
||||||
'hrm'=>'bg-infoxbox-adherent', 'group'=>'bg-infoxbox-adherent',
|
'hrm'=>'bg-infoxbox-adherent', 'group'=>'bg-infoxbox-adherent', 'intervention'=>'bg-infoxbox-contrat',
|
||||||
'members'=>'bg-infoxbox-adherent', 'member'=>'bg-infoxbox-adherent', 'user'=>'bg-infoxbox-adherent', 'users'=>'bg-infoxbox-adherent',
|
'members'=>'bg-infoxbox-adherent', 'member'=>'bg-infoxbox-adherent', 'user'=>'bg-infoxbox-adherent', 'users'=>'bg-infoxbox-adherent',
|
||||||
'error'=>'pictoerror', 'warning'=>'pictowarning', 'switch_on'=>'font-status4',
|
'error'=>'pictoerror', 'warning'=>'pictowarning', 'switch_on'=>'font-status4',
|
||||||
'holiday'=>'bg-infoxbox-holiday', 'payment'=>'bg-infoxbox-bank_account', 'project'=>'bg-infoxbox-project', 'resource'=>'bg-infoxbox-action',
|
'holiday'=>'bg-infoxbox-holiday', 'payment'=>'bg-infoxbox-bank_account', 'project'=>'bg-infoxbox-project', 'projecttask'=>'bg-infoxbox-project',
|
||||||
|
'resource'=>'bg-infoxbox-action',
|
||||||
'ticket'=>'bg-infoxbox-contrat', 'title_hrm'=>'bg-infoxbox-holiday', 'trip'=>'bg-infoxbox-expensereport', 'title_agenda'=>'bg-infoxbox-action',
|
'ticket'=>'bg-infoxbox-contrat', 'title_hrm'=>'bg-infoxbox-holiday', 'trip'=>'bg-infoxbox-expensereport', 'title_agenda'=>'bg-infoxbox-action',
|
||||||
'list-alt'=>'imgforviewmode', 'calendar'=>'imgforviewmode', 'calendarweek'=>'imgforviewmode', 'calendarmonth'=>'imgforviewmode', 'calendarday'=>'imgforviewmode', 'calendarperuser'=>'imgforviewmode'
|
'list-alt'=>'imgforviewmode', 'calendar'=>'imgforviewmode', 'calendarweek'=>'imgforviewmode', 'calendarmonth'=>'imgforviewmode', 'calendarday'=>'imgforviewmode', 'calendarperuser'=>'imgforviewmode'
|
||||||
);
|
);
|
||||||
@ -3263,7 +3267,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
'edit'=>'#444', 'note'=>'#999', 'error'=>'', 'listlight'=>'#999',
|
'edit'=>'#444', 'note'=>'#999', 'error'=>'', 'listlight'=>'#999',
|
||||||
'lot'=>'#a69944', 'mrp'=>'#a69944', 'product'=>'#a69944', 'service'=>'#a69944', 'stock'=>'#a69944',
|
'lot'=>'#a69944', 'mrp'=>'#a69944', 'product'=>'#a69944', 'service'=>'#a69944', 'stock'=>'#a69944',
|
||||||
'other'=>'#ddd',
|
'other'=>'#ddd',
|
||||||
'playdisabled'=>'#ccc', 'printer'=>'#444', 'resize'=>'#444', 'rss'=>'#cba',
|
'playdisabled'=>'#ccc', 'printer'=>'#444', 'projectpub'=>'#986c6a', 'resize'=>'#444', 'rss'=>'#cba',
|
||||||
'stats'=>'#444', 'switch_off'=>'#999', 'uparrow'=>'#555', 'warning'=>''
|
'stats'=>'#444', 'switch_off'=>'#999', 'uparrow'=>'#555', 'warning'=>''
|
||||||
);
|
);
|
||||||
if (isset($arrayconvpictotocolor[$pictowithouttext])) {
|
if (isset($arrayconvpictotocolor[$pictowithouttext])) {
|
||||||
@ -3349,7 +3353,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
* @param int $srconly Return only content of the src attribute of img.
|
* @param int $srconly Return only content of the src attribute of img.
|
||||||
* @param int $notitle 1=Disable tag title. Use it if you add js tooltip, to avoid duplicate tooltip.
|
* @param int $notitle 1=Disable tag title. Use it if you add js tooltip, to avoid duplicate tooltip.
|
||||||
* @return string Return img tag
|
* @return string Return img tag
|
||||||
* @see #img_picto, #img_picto_common
|
* @see img_picto(), img_picto_common()
|
||||||
*/
|
*/
|
||||||
function img_object($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $srconly = 0, $notitle = 0)
|
function img_object($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $srconly = 0, $notitle = 0)
|
||||||
{
|
{
|
||||||
@ -3365,7 +3369,7 @@ function img_object($titlealt, $picto, $moreatt = '', $pictoisfullpath = false,
|
|||||||
* @param int $pictoisfullpath If 1, image path is a full path
|
* @param int $pictoisfullpath If 1, image path is a full path
|
||||||
* @param string $morecss More CSS
|
* @param string $morecss More CSS
|
||||||
* @return string Return img tag
|
* @return string Return img tag
|
||||||
* @see #img_object, #img_picto
|
* @see img_object(), img_picto()
|
||||||
*/
|
*/
|
||||||
function img_weather($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $morecss = '')
|
function img_weather($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $morecss = '')
|
||||||
{
|
{
|
||||||
@ -3392,7 +3396,7 @@ function img_weather($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $mo
|
|||||||
* @param string $moreatt Add more attribute on img tag
|
* @param string $moreatt Add more attribute on img tag
|
||||||
* @param int $pictoisfullpath If 1, image path is a full path
|
* @param int $pictoisfullpath If 1, image path is a full path
|
||||||
* @return string Return img tag
|
* @return string Return img tag
|
||||||
* @see #img_object, #img_picto
|
* @see img_object(), img_picto()
|
||||||
*/
|
*/
|
||||||
function img_picto_common($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0)
|
function img_picto_common($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1395,7 +1395,6 @@ elseif ($id > 0 || !empty($ref))
|
|||||||
print '<td class="liste_titre right">'.(empty($conf->global->FICHINTER_WITHOUT_DURATION) ? $langs->trans('Duration') : '').'</td>';
|
print '<td class="liste_titre right">'.(empty($conf->global->FICHINTER_WITHOUT_DURATION) ? $langs->trans('Duration') : '').'</td>';
|
||||||
print '<td class="liste_titre"> </td>';
|
print '<td class="liste_titre"> </td>';
|
||||||
print '<td class="liste_titre"> </td>';
|
print '<td class="liste_titre"> </td>';
|
||||||
print '<td class="liste_titre"> </td>';
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
@ -1420,16 +1419,14 @@ elseif ($id > 0 || !empty($ref))
|
|||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
|
|
||||||
|
|
||||||
// Icone d'edition et suppression
|
// Econ to edit and delete
|
||||||
if ($object->statut == 0 && $user->rights->ficheinter->creer)
|
if ($object->statut == 0 && $user->rights->ficheinter->creer)
|
||||||
{
|
{
|
||||||
print '<td class="center">';
|
print '<td class="center">';
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=editline&line_id='.$objp->rowid.'#'.$objp->rowid.'">';
|
print '<a class="editfielda marginrightonly" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=editline&line_id='.$objp->rowid.'#'.$objp->rowid.'">';
|
||||||
print img_edit();
|
print img_edit();
|
||||||
print '</a>';
|
print '</a>';
|
||||||
print '</td>';
|
print '<a class="marginleftonly" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=ask_deleteline&line_id='.$objp->rowid.'">';
|
||||||
print '<td class="center">';
|
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=ask_deleteline&line_id='.$objp->rowid.'">';
|
|
||||||
print img_delete();
|
print img_delete();
|
||||||
print '</a></td>';
|
print '</a></td>';
|
||||||
print '<td class="center">';
|
print '<td class="center">';
|
||||||
@ -1437,13 +1434,13 @@ elseif ($id > 0 || !empty($ref))
|
|||||||
{
|
{
|
||||||
if ($i > 0)
|
if ($i > 0)
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=up&line_id='.$objp->rowid.'">';
|
print '<a class="marginleftonly" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=up&line_id='.$objp->rowid.'">';
|
||||||
print img_up();
|
print img_up();
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
if ($i < $num - 1)
|
if ($i < $num - 1)
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=down&line_id='.$objp->rowid.'">';
|
print '<a class="marginleftonly" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=down&line_id='.$objp->rowid.'">';
|
||||||
print img_down();
|
print img_down();
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
@ -1452,7 +1449,7 @@ elseif ($id > 0 || !empty($ref))
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<td colspan="3"> </td>';
|
print '<td colspan="2"> </td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
@ -1470,7 +1467,7 @@ elseif ($id > 0 || !empty($ref))
|
|||||||
// Line in update mode
|
// Line in update mode
|
||||||
if ($object->statut == 0 && $action == 'editline' && $user->rights->ficheinter->creer && GETPOST('line_id', 'int') == $objp->rowid)
|
if ($object->statut == 0 && $action == 'editline' && $user->rights->ficheinter->creer && GETPOST('line_id', 'int') == $objp->rowid)
|
||||||
{
|
{
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven nohover">';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print '<a name="'.$objp->rowid.'"></a>'; // ancre pour retourner sur la ligne
|
print '<a name="'.$objp->rowid.'"></a>'; // ancre pour retourner sur la ligne
|
||||||
|
|
||||||
@ -1499,8 +1496,9 @@ elseif ($id > 0 || !empty($ref))
|
|||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td class="center" colspan="5" valign="center"><input type="submit" class="button" name="save" value="'.$langs->trans("Save").'">';
|
print '<td class="center" colspan="5" valign="center">';
|
||||||
print '<br><input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'"></td>';
|
print '<input type="submit" class="button buttongen marginbottomonly" name="save" value="'.$langs->trans("Save").'">';
|
||||||
|
print '<input type="submit" class="button buttongen marginbottomonly" name="cancel" value="'.$langs->trans("Cancel").'"></td>';
|
||||||
print '</tr>'."\n";
|
print '</tr>'."\n";
|
||||||
|
|
||||||
$line = new FichinterLigne($db);
|
$line = new FichinterLigne($db);
|
||||||
@ -1534,7 +1532,7 @@ elseif ($id > 0 || !empty($ref))
|
|||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<tr class="oddeven">'."\n";
|
print '<tr class="oddeven nohover">'."\n";
|
||||||
print '<td>';
|
print '<td>';
|
||||||
// editeur wysiwyg
|
// editeur wysiwyg
|
||||||
if (empty($conf->global->FICHINTER_EMPTY_LINE_DESC)) {
|
if (empty($conf->global->FICHINTER_EMPTY_LINE_DESC)) {
|
||||||
|
|||||||
@ -57,11 +57,12 @@ if ($user->socid > 0)
|
|||||||
$fichinterstatic = new Fichinter($db);
|
$fichinterstatic = new Fichinter($db);
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
$formfile = new FormFile($db);
|
$formfile = new FormFile($db);
|
||||||
|
|
||||||
$help_url = "EN:ModuleFichinters|FR:Module_Fiche_Interventions|ES:Módulo_FichaInterventiones";
|
$help_url = "EN:ModuleFichinters|FR:Module_Fiche_Interventions|ES:Módulo_FichaInterventiones";
|
||||||
|
|
||||||
llxHeader("", $langs->trans("Interventions"), $help_url);
|
llxHeader("", $langs->trans("Interventions"), $help_url);
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("InterventionsArea"));
|
print load_fiche_titre($langs->trans("InterventionsArea"), '', 'commercial');
|
||||||
|
|
||||||
print '<div class="fichecenter"><div class="fichethirdleft">';
|
print '<div class="fichecenter"><div class="fichethirdleft">';
|
||||||
|
|
||||||
|
|||||||
200
htdocs/index.php
200
htdocs/index.php
@ -152,17 +152,18 @@ if (empty($user->socid) && empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS))
|
|||||||
// Class file containing the method load_state_board for each line
|
// Class file containing the method load_state_board for each line
|
||||||
$includes = array(
|
$includes = array(
|
||||||
DOL_DOCUMENT_ROOT."/user/class/user.class.php",
|
DOL_DOCUMENT_ROOT."/user/class/user.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/societe/class/client.class.php",
|
DOL_DOCUMENT_ROOT."/adherents/class/adherent.class.php",
|
||||||
|
DOL_DOCUMENT_ROOT."/societe/class/client.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/societe/class/client.class.php",
|
DOL_DOCUMENT_ROOT."/societe/class/client.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/fourn/class/fournisseur.class.php",
|
DOL_DOCUMENT_ROOT."/fourn/class/fournisseur.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/contact/class/contact.class.php",
|
DOL_DOCUMENT_ROOT."/contact/class/contact.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/adherents/class/adherent.class.php",
|
|
||||||
DOL_DOCUMENT_ROOT."/product/class/product.class.php",
|
DOL_DOCUMENT_ROOT."/product/class/product.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/product/class/product.class.php",
|
DOL_DOCUMENT_ROOT."/product/class/product.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/comm/propal/class/propal.class.php",
|
DOL_DOCUMENT_ROOT."/comm/propal/class/propal.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/commande/class/commande.class.php",
|
DOL_DOCUMENT_ROOT."/commande/class/commande.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php",
|
DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/contrat/class/contrat.class.php",
|
DOL_DOCUMENT_ROOT."/don/class/don.class.php",
|
||||||
|
DOL_DOCUMENT_ROOT."/contrat/class/contrat.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/fichinter/class/fichinter.class.php",
|
DOL_DOCUMENT_ROOT."/fichinter/class/fichinter.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/fourn/class/fournisseur.commande.class.php",
|
DOL_DOCUMENT_ROOT."/fourn/class/fournisseur.commande.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/fourn/class/fournisseur.facture.class.php",
|
DOL_DOCUMENT_ROOT."/fourn/class/fournisseur.facture.class.php",
|
||||||
@ -170,116 +171,119 @@ if (empty($user->socid) && empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS))
|
|||||||
DOL_DOCUMENT_ROOT."/projet/class/project.class.php",
|
DOL_DOCUMENT_ROOT."/projet/class/project.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/expensereport/class/expensereport.class.php",
|
DOL_DOCUMENT_ROOT."/expensereport/class/expensereport.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/holiday/class/holiday.class.php",
|
DOL_DOCUMENT_ROOT."/holiday/class/holiday.class.php",
|
||||||
DOL_DOCUMENT_ROOT."/don/class/don.class.php",
|
|
||||||
DOL_DOCUMENT_ROOT."/ticket/class/ticket.class.php"
|
DOL_DOCUMENT_ROOT."/ticket/class/ticket.class.php"
|
||||||
);
|
);
|
||||||
// Name class containing the method load_state_board for each line
|
// Name class containing the method load_state_board for each line
|
||||||
$classes = array('User',
|
$classes = array(
|
||||||
'Client',
|
'User',
|
||||||
'Client',
|
'Adherent',
|
||||||
'Fournisseur',
|
'Client',
|
||||||
'Contact',
|
'Client',
|
||||||
'Adherent',
|
'Fournisseur',
|
||||||
'Product',
|
'Contact',
|
||||||
'Product',
|
'Product',
|
||||||
'Propal',
|
'Product',
|
||||||
'Commande',
|
'Propal',
|
||||||
'Facture',
|
'Commande',
|
||||||
'Contrat',
|
'Facture',
|
||||||
'Fichinter',
|
'Don',
|
||||||
'CommandeFournisseur',
|
'Contrat',
|
||||||
'FactureFournisseur',
|
'Fichinter',
|
||||||
'SupplierProposal',
|
'CommandeFournisseur',
|
||||||
'Project',
|
'FactureFournisseur',
|
||||||
'ExpenseReport',
|
'SupplierProposal',
|
||||||
'Holiday',
|
'Project',
|
||||||
'Don',
|
'ExpenseReport',
|
||||||
'Ticket',
|
'Holiday',
|
||||||
|
'Ticket',
|
||||||
);
|
);
|
||||||
// Cle array returned by the method load_state_board for each line
|
// Cle array returned by the method load_state_board for each line
|
||||||
$keys = array('users',
|
$keys = array(
|
||||||
'customers',
|
'users',
|
||||||
'prospects',
|
'members',
|
||||||
'suppliers',
|
'customers',
|
||||||
'contacts',
|
'prospects',
|
||||||
'members',
|
'suppliers',
|
||||||
'products',
|
'contacts',
|
||||||
'services',
|
'products',
|
||||||
'proposals',
|
'services',
|
||||||
'orders',
|
'proposals',
|
||||||
'invoices',
|
'orders',
|
||||||
'contracts',
|
'invoices',
|
||||||
'interventions',
|
'donations',
|
||||||
'supplier_orders',
|
'contracts',
|
||||||
'supplier_invoices',
|
'interventions',
|
||||||
'askprice',
|
'supplier_orders',
|
||||||
'projects',
|
'supplier_invoices',
|
||||||
'expensereports',
|
'askprice',
|
||||||
'holidays',
|
'projects',
|
||||||
'donations',
|
'expensereports',
|
||||||
'ticket'
|
'holidays',
|
||||||
|
'ticket'
|
||||||
);
|
);
|
||||||
// Dashboard Icon lines
|
// Dashboard Icon lines
|
||||||
$icons = array('user',
|
$icons = array(
|
||||||
'company',
|
'user',
|
||||||
'company',
|
'user',
|
||||||
'company',
|
'company',
|
||||||
'contact',
|
'company',
|
||||||
'user',
|
'company',
|
||||||
'product',
|
'contact',
|
||||||
'service',
|
'product',
|
||||||
'propal',
|
'service',
|
||||||
'order',
|
'propal',
|
||||||
'bill',
|
'order',
|
||||||
'contract',
|
'bill',
|
||||||
'intervention',
|
'generic',
|
||||||
'order',
|
'contract',
|
||||||
'bill',
|
'intervention',
|
||||||
'propal',
|
'order',
|
||||||
'projectpub',
|
'bill',
|
||||||
'trip',
|
'propal',
|
||||||
'holiday',
|
'project',
|
||||||
'generic',
|
'trip',
|
||||||
'ticket',
|
'holiday',
|
||||||
|
'ticket',
|
||||||
);
|
);
|
||||||
// Translation keyword
|
// Translation keyword
|
||||||
$titres = array("Users",
|
$titres = array(
|
||||||
"ThirdPartyCustomersStats",
|
"Users",
|
||||||
"ThirdPartyProspectsStats",
|
"Members",
|
||||||
"Suppliers",
|
"ThirdPartyCustomersStats",
|
||||||
"Contacts",
|
"ThirdPartyProspectsStats",
|
||||||
"Members",
|
"Suppliers",
|
||||||
"Products",
|
"Contacts",
|
||||||
"Services",
|
"Products",
|
||||||
"CommercialProposalsShort",
|
"Services",
|
||||||
"CustomersOrders",
|
"CommercialProposalsShort",
|
||||||
"BillsCustomers",
|
"CustomersOrders",
|
||||||
"Contracts",
|
"BillsCustomers",
|
||||||
"Interventions",
|
"Donations",
|
||||||
"SuppliersOrders",
|
"Contracts",
|
||||||
"SuppliersInvoices",
|
"Interventions",
|
||||||
"SupplierProposalShort",
|
"SuppliersOrders",
|
||||||
"Projects",
|
"SuppliersInvoices",
|
||||||
"ExpenseReports",
|
"SupplierProposalShort",
|
||||||
"Holidays",
|
"Projects",
|
||||||
"Donations",
|
"ExpenseReports",
|
||||||
"Ticket",
|
"Holidays",
|
||||||
|
"Ticket",
|
||||||
);
|
);
|
||||||
// Dashboard Link lines
|
// Dashboard Link lines
|
||||||
$links = array(
|
$links = array(
|
||||||
DOL_URL_ROOT.'/user/list.php',
|
DOL_URL_ROOT.'/user/list.php',
|
||||||
DOL_URL_ROOT.'/societe/list.php?type=c&mainmenu=companies',
|
DOL_URL_ROOT.'/adherents/list.php?statut=1&mainmenu=members',
|
||||||
|
DOL_URL_ROOT.'/societe/list.php?type=c&mainmenu=companies',
|
||||||
DOL_URL_ROOT.'/societe/list.php?type=p&mainmenu=companies',
|
DOL_URL_ROOT.'/societe/list.php?type=p&mainmenu=companies',
|
||||||
DOL_URL_ROOT.'/societe/list.php?type=f&mainmenu=companies',
|
DOL_URL_ROOT.'/societe/list.php?type=f&mainmenu=companies',
|
||||||
DOL_URL_ROOT.'/contact/list.php?mainmenu=companies',
|
DOL_URL_ROOT.'/contact/list.php?mainmenu=companies',
|
||||||
DOL_URL_ROOT.'/adherents/list.php?statut=1&mainmenu=members',
|
|
||||||
DOL_URL_ROOT.'/adherents/list.php?statut=-1&mainmenu=members',
|
|
||||||
DOL_URL_ROOT.'/product/list.php?type=0&mainmenu=products',
|
DOL_URL_ROOT.'/product/list.php?type=0&mainmenu=products',
|
||||||
DOL_URL_ROOT.'/product/list.php?type=1&mainmenu=products',
|
DOL_URL_ROOT.'/product/list.php?type=1&mainmenu=products',
|
||||||
DOL_URL_ROOT.'/comm/propal/list.php?mainmenu=commercial&leftmenu=propals',
|
DOL_URL_ROOT.'/comm/propal/list.php?mainmenu=commercial&leftmenu=propals',
|
||||||
DOL_URL_ROOT.'/commande/list.php?mainmenu=commercial&leftmenu=orders',
|
DOL_URL_ROOT.'/commande/list.php?mainmenu=commercial&leftmenu=orders',
|
||||||
DOL_URL_ROOT.'/compta/facture/list.php?mainmenu=billing&leftmenu=customers_bills',
|
DOL_URL_ROOT.'/compta/facture/list.php?mainmenu=billing&leftmenu=customers_bills',
|
||||||
DOL_URL_ROOT.'/contrat/list.php?mainmenu=commercial&leftmenu=contracts',
|
DOL_URL_ROOT.'/don/list.php?leftmenu=donations',
|
||||||
|
DOL_URL_ROOT.'/contrat/list.php?mainmenu=commercial&leftmenu=contracts',
|
||||||
DOL_URL_ROOT.'/fichinter/list.php?mainmenu=commercial&leftmenu=ficheinter',
|
DOL_URL_ROOT.'/fichinter/list.php?mainmenu=commercial&leftmenu=ficheinter',
|
||||||
DOL_URL_ROOT.'/fourn/commande/list.php?mainmenu=commercial&leftmenu=orders_suppliers',
|
DOL_URL_ROOT.'/fourn/commande/list.php?mainmenu=commercial&leftmenu=orders_suppliers',
|
||||||
DOL_URL_ROOT.'/fourn/facture/list.php?mainmenu=billing&leftmenu=suppliers_bills',
|
DOL_URL_ROOT.'/fourn/facture/list.php?mainmenu=billing&leftmenu=suppliers_bills',
|
||||||
@ -287,23 +291,23 @@ if (empty($user->socid) && empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS))
|
|||||||
DOL_URL_ROOT.'/projet/list.php?mainmenu=project',
|
DOL_URL_ROOT.'/projet/list.php?mainmenu=project',
|
||||||
DOL_URL_ROOT.'/expensereport/list.php?mainmenu=hrm&leftmenu=expensereport',
|
DOL_URL_ROOT.'/expensereport/list.php?mainmenu=hrm&leftmenu=expensereport',
|
||||||
DOL_URL_ROOT.'/holiday/list.php?mainmenu=hrm&leftmenu=holiday',
|
DOL_URL_ROOT.'/holiday/list.php?mainmenu=hrm&leftmenu=holiday',
|
||||||
DOL_URL_ROOT.'/don/list.php?leftmenu=donations',
|
|
||||||
DOL_URL_ROOT.'/ticket/list.php?leftmenu=ticket'
|
DOL_URL_ROOT.'/ticket/list.php?leftmenu=ticket'
|
||||||
);
|
);
|
||||||
// Translation lang files
|
// Translation lang files
|
||||||
$langfile = array(
|
$langfile = array(
|
||||||
"users",
|
"users",
|
||||||
"companies",
|
"members",
|
||||||
|
"companies",
|
||||||
"prospects",
|
"prospects",
|
||||||
"suppliers",
|
"suppliers",
|
||||||
"companies",
|
"companies",
|
||||||
"members",
|
|
||||||
"products",
|
"products",
|
||||||
"products",
|
"products",
|
||||||
"propal",
|
"propal",
|
||||||
"orders",
|
"orders",
|
||||||
"bills",
|
"bills",
|
||||||
"contracts",
|
"donations",
|
||||||
|
"contracts",
|
||||||
"interventions",
|
"interventions",
|
||||||
"bills",
|
"bills",
|
||||||
"bills",
|
"bills",
|
||||||
@ -311,7 +315,6 @@ if (empty($user->socid) && empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS))
|
|||||||
"projects",
|
"projects",
|
||||||
"trips",
|
"trips",
|
||||||
"holiday",
|
"holiday",
|
||||||
"donations",
|
|
||||||
"ticket"
|
"ticket"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -588,7 +591,7 @@ if (empty($conf->global->MAIN_DISABLE_GLOBAL_WORKBOARD)) {
|
|||||||
'groupName' => 'Members',
|
'groupName' => 'Members',
|
||||||
'globalStatsKey' => 'members',
|
'globalStatsKey' => 'members',
|
||||||
'stats' =>
|
'stats' =>
|
||||||
array('member_shift', 'member_expired'),
|
array('member_shift', 'member_expired'),
|
||||||
),
|
),
|
||||||
'ExpenseReport' =>
|
'ExpenseReport' =>
|
||||||
array(
|
array(
|
||||||
@ -923,6 +926,7 @@ if (empty($user->socid) && empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS))
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($boxstatFromHook) || !empty($boxstatItems)) {
|
if (!empty($boxstatFromHook) || !empty($boxstatItems)) {
|
||||||
|
$boxstat .= '<!-- Database statistics -->'."\n";
|
||||||
$boxstat .= '<div class="box">';
|
$boxstat .= '<div class="box">';
|
||||||
$boxstat .= '<table summary="'.dol_escape_htmltag($langs->trans("DolibarrStateBoard")).'" class="noborder boxtable boxtablenobottom nohover" width="100%">';
|
$boxstat .= '<table summary="'.dol_escape_htmltag($langs->trans("DolibarrStateBoard")).'" class="noborder boxtable boxtablenobottom nohover" width="100%">';
|
||||||
$boxstat .= '<tr class="liste_titre">';
|
$boxstat .= '<tr class="liste_titre">';
|
||||||
|
|||||||
@ -1046,9 +1046,12 @@ class Project extends CommonObject
|
|||||||
$result = '';
|
$result = '';
|
||||||
|
|
||||||
$label = '';
|
$label = '';
|
||||||
if ($option != 'nolink') $label = '<u>'.$langs->trans("ShowProject").'</u>';
|
if ($option != 'nolink') $label = '<u>'.$langs->trans("Project").'</u>';
|
||||||
$label .= ($label ? '<br>' : '').'<b>'.$langs->trans('Ref').': </b>'.$this->ref; // The space must be after the : to not being explode when showing the title in img_picto
|
$label .= ($label ? '<br>' : '').'<b>'.$langs->trans('Ref').': </b>'.$this->ref; // The space must be after the : to not being explode when showing the title in img_picto
|
||||||
$label .= ($label ? '<br>' : '').'<b>'.$langs->trans('Label').': </b>'.$this->title; // The space must be after the : to not being explode when showing the title in img_picto
|
$label .= ($label ? '<br>' : '').'<b>'.$langs->trans('Label').': </b>'.$this->title; // The space must be after the : to not being explode when showing the title in img_picto
|
||||||
|
if (isset($this->public)) {
|
||||||
|
$label .= '<br><b>'.$langs->trans("Visibility").":</b> ".($this->public ? $langs->trans("SharedProject") : $langs->trans("PrivateProject"));
|
||||||
|
}
|
||||||
if (!empty($this->thirdparty_name))
|
if (!empty($this->thirdparty_name))
|
||||||
$label .= ($label ? '<br>' : '').'<b>'.$langs->trans('ThirdParty').': </b>'.$this->thirdparty_name; // The space must be after the : to not being explode when showing the title in img_picto
|
$label .= ($label ? '<br>' : '').'<b>'.$langs->trans('ThirdParty').': </b>'.$this->thirdparty_name; // The space must be after the : to not being explode when showing the title in img_picto
|
||||||
if (!empty($this->dateo))
|
if (!empty($this->dateo))
|
||||||
|
|||||||
@ -289,7 +289,7 @@ else dol_print_error($db);
|
|||||||
if (count($listofprojectcontacttype) == 0) $listofprojectcontacttype[0] = '0'; // To avoid sql syntax error if not found
|
if (count($listofprojectcontacttype) == 0) $listofprojectcontacttype[0] = '0'; // To avoid sql syntax error if not found
|
||||||
|
|
||||||
$distinct = 'DISTINCT'; // We add distinct until we are added a protection to be sure a contact of a project and task is only once.
|
$distinct = 'DISTINCT'; // We add distinct until we are added a protection to be sure a contact of a project and task is only once.
|
||||||
$sql = "SELECT ".$distinct." p.rowid as id, p.ref, p.title, p.fk_statut, p.fk_opp_status, p.public, p.fk_user_creat";
|
$sql = "SELECT ".$distinct." p.rowid as id, p.ref, p.title, p.fk_statut as status, p.fk_opp_status, p.public, p.fk_user_creat";
|
||||||
$sql .= ", p.datec as date_creation, p.dateo as date_start, p.datee as date_end, p.opp_amount, p.opp_percent, (p.opp_amount*p.opp_percent/100) as opp_weighted_amount, p.tms as date_update, p.budget_amount, p.usage_opportunity, p.usage_task, p.usage_bill_time";
|
$sql .= ", p.datec as date_creation, p.dateo as date_start, p.datee as date_end, p.opp_amount, p.opp_percent, (p.opp_amount*p.opp_percent/100) as opp_weighted_amount, p.tms as date_update, p.budget_amount, p.usage_opportunity, p.usage_task, p.usage_bill_time";
|
||||||
$sql .= ", s.rowid as socid, s.nom as name, s.email";
|
$sql .= ", s.rowid as socid, s.nom as name, s.email";
|
||||||
$sql .= ", cls.code as opp_status_code";
|
$sql .= ", cls.code as opp_status_code";
|
||||||
@ -713,7 +713,9 @@ while ($i < min($num, $limit))
|
|||||||
$object->public = $obj->public;
|
$object->public = $obj->public;
|
||||||
$object->ref = $obj->ref;
|
$object->ref = $obj->ref;
|
||||||
$object->datee = $db->jdate($obj->date_end);
|
$object->datee = $db->jdate($obj->date_end);
|
||||||
$object->statut = $obj->fk_statut;
|
$object->statut = $obj->status; // deprecated
|
||||||
|
$object->status = $obj->status;
|
||||||
|
$object->public = $obj->public;
|
||||||
$object->opp_status = $obj->fk_opp_status;
|
$object->opp_status = $obj->fk_opp_status;
|
||||||
$object->title = $obj->title;
|
$object->title = $obj->title;
|
||||||
|
|
||||||
|
|||||||
@ -205,7 +205,7 @@ if (GETPOSTISSET('THEME_AGRESSIVENESS_RATIO')) $conf->global->THEME_AGRESSIVENES
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bg-infoxbox-project{
|
.bg-infoxbox-project{
|
||||||
<?php echo $prefix; ?>color: <?php print colorAgressiveness('#6c6a98', $conf->global->THEME_AGRESSIVENESS_RATIO); ?> !important;
|
<?php echo $prefix; ?>color: <?php print colorAgressiveness('#6c6aa8', $conf->global->THEME_AGRESSIVENESS_RATIO); ?> !important;
|
||||||
}
|
}
|
||||||
.bg-infoxbox-action{
|
.bg-infoxbox-action{
|
||||||
<?php echo $prefix; ?>color: <?php print colorAgressiveness('#a47080', $conf->global->THEME_AGRESSIVENESS_RATIO); ?> !important;
|
<?php echo $prefix; ?>color: <?php print colorAgressiveness('#a47080', $conf->global->THEME_AGRESSIVENESS_RATIO); ?> !important;
|
||||||
|
|||||||
@ -3328,6 +3328,8 @@ if ($action == 'editmeta' || $action == 'createcontainer')
|
|||||||
{
|
{
|
||||||
$fuser->fetch($pageauthorid);
|
$fuser->fetch($pageauthorid);
|
||||||
print $fuser->getNomUrl(1);
|
print $fuser->getNomUrl(1);
|
||||||
|
} else {
|
||||||
|
print '<span class="opacitymedium">'.$langs->trans("Unknown").'</span>';
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user