clean indent
This commit is contained in:
parent
ac6da28135
commit
16f58f1eee
@ -247,13 +247,13 @@ $formmail = new FormMail($db);
|
|||||||
$nboftemplates = $formmail->fetchAllEMailTemplate('facture_send', $user, null, -1); // We set lang=null to get in priority record with no lang
|
$nboftemplates = $formmail->fetchAllEMailTemplate('facture_send', $user, null, -1); // We set lang=null to get in priority record with no lang
|
||||||
//$arraydefaultmessage = $formmail->getEMailTemplate($db, $tmp[1], $user, null, 0, 1, '');
|
//$arraydefaultmessage = $formmail->getEMailTemplate($db, $tmp[1], $user, null, 0, 1, '');
|
||||||
$arrayofmessagename=array();
|
$arrayofmessagename=array();
|
||||||
if (is_array($formmail->lines_model))
|
if (is_array($formmail->lines_model)) {
|
||||||
{
|
foreach($formmail->lines_model as $modelmail) {
|
||||||
foreach($formmail->lines_model as $modelmail)
|
|
||||||
{
|
|
||||||
//var_dump($modelmail);
|
//var_dump($modelmail);
|
||||||
$moreonlabel='';
|
$moreonlabel='';
|
||||||
if (! empty($arrayofmessagename[$modelmail->label])) $moreonlabel=' <span class="opacitymedium">('.$langs->trans("SeveralLangugeVariatFound").')</span>';
|
if (! empty($arrayofmessagename[$modelmail->label])) {
|
||||||
|
$moreonlabel=' <span class="opacitymedium">('.$langs->trans("SeveralLangugeVariatFound").')</span>';
|
||||||
|
}
|
||||||
$arrayofmessagename[$modelmail->label]=$langs->trans(preg_replace('/\(|\)/', '', $modelmail->label)).$moreonlabel;
|
$arrayofmessagename[$modelmail->label]=$langs->trans(preg_replace('/\(|\)/', '', $modelmail->label)).$moreonlabel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -157,8 +157,7 @@ $( document ).ready(function() {
|
|||||||
$('#'+val.label).draggable().bind('click', function(){
|
$('#'+val.label).draggable().bind('click', function(){
|
||||||
$(this).focus();
|
$(this).focus();
|
||||||
})
|
})
|
||||||
<?php }
|
<?php } else {?>
|
||||||
else {?>
|
|
||||||
$('body').append('<div class="tablediv" onclick="LoadPlace('+val.rowid+');" style="position: absolute; left: '+val.leftpos+'%; top: '+val.toppos+'%;" id="tablename'+val.rowid+'">'+val.label+'</div>');
|
$('body').append('<div class="tablediv" onclick="LoadPlace('+val.rowid+');" style="position: absolute; left: '+val.leftpos+'%; top: '+val.toppos+'%;" id="tablename'+val.rowid+'">'+val.label+'</div>');
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
});
|
});
|
||||||
@ -168,13 +167,13 @@ $( document ).ready(function() {
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body style="overflow: hidden">
|
<body style="overflow: hidden">
|
||||||
<?php if ($user->admin){?>
|
<?php if ($user->admin) {?>
|
||||||
<div style="position: absolute; left: 0.1%; top: 0.8%; width:8%; height:11%;">
|
<div style="position: absolute; left: 0.1%; top: 0.8%; width:8%; height:11%;">
|
||||||
<?php if ($mode=="edit"){?>
|
<?php if ($mode=="edit"){?>
|
||||||
<a id="add" onclick="window.location.href='floors.php?mode=edit&action=add&floor=<?php echo $floor;?>';"><?php echo $langs->trans("AddTable"); ?></a>
|
<a id="add" onclick="window.location.href='floors.php?mode=edit&action=add&floor=<?php echo $floor;?>';"><?php echo $langs->trans("AddTable"); ?></a>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<a onclick="window.location.href='floors.php?mode=edit&floor=<?php echo $floor;?>';"><?php echo $langs->trans("Edit"); ?></a>
|
<a onclick="window.location.href='floors.php?mode=edit&floor=<?php echo $floor;?>';"><?php echo $langs->trans("Edit"); ?></a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -223,7 +223,7 @@ $numpad=$conf->global->TAKEPOS_NUMPAD;
|
|||||||
if ($paycode == 'LIQ') $paycode = 'cash';
|
if ($paycode == 'LIQ') $paycode = 'cash';
|
||||||
if ($paycode == 'CB') $paycode = 'card';
|
if ($paycode == 'CB') $paycode = 'card';
|
||||||
if ($paycode == 'CHQ') $paycode = 'cheque';
|
if ($paycode == 'CHQ') $paycode = 'cheque';
|
||||||
?>
|
?>
|
||||||
<button type="button" class="calcbutton2" onclick="Validate('<?php echo $langs->trans($paycode); ?>');"><?php echo $langs->trans("PaymentTypeShort".$paiements[0]->code); ?></button>
|
<button type="button" class="calcbutton2" onclick="Validate('<?php echo $langs->trans($paycode); ?>');"><?php echo $langs->trans("PaymentTypeShort".$paiements[0]->code); ?></button>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<button type="button" class="calcbutton2"><?php echo $langs->trans("NoPaimementModesDefined");?></button>
|
<button type="button" class="calcbutton2"><?php echo $langs->trans("NoPaimementModesDefined");?></button>
|
||||||
@ -236,11 +236,11 @@ $numpad=$conf->global->TAKEPOS_NUMPAD;
|
|||||||
if ($paycode == 'LIQ') $paycode = 'cash';
|
if ($paycode == 'LIQ') $paycode = 'cash';
|
||||||
if ($paycode == 'CB') $paycode = 'card';
|
if ($paycode == 'CB') $paycode = 'card';
|
||||||
if ($paycode == 'CHQ') $paycode = 'cheque';
|
if ($paycode == 'CHQ') $paycode = 'cheque';
|
||||||
?>
|
?>
|
||||||
<button type="button" class="calcbutton2" onclick="Validate('<?php echo $langs->trans($paycode); ?>');"><?php echo $langs->trans("PaymentTypeShort".$paiements[1]->code); ?></button>
|
<button type="button" class="calcbutton2" onclick="Validate('<?php echo $langs->trans($paycode); ?>');"><?php echo $langs->trans("PaymentTypeShort".$paiements[1]->code); ?></button>
|
||||||
<?php } else {
|
<?php } else {
|
||||||
$button = array_pop($action_buttons);
|
$button = array_pop($action_buttons);
|
||||||
?>
|
?>
|
||||||
<button type="button" class="calcbutton2" onclick="<?php echo $button["function"];?>"><span <?php echo $button["span"];?>><?php echo $button["text"];?></span></button>
|
<button type="button" class="calcbutton2" onclick="<?php echo $button["function"];?>"><span <?php echo $button["span"];?>><?php echo $button["text"];?></span></button>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<button type="button" class="calcbutton" onclick="addreceived(<?php if ($numpad==0) print "1"; else print "0.10";?>);"><?php if ($numpad==0) print "1"; else print "0.10";?></button>
|
<button type="button" class="calcbutton" onclick="addreceived(<?php if ($numpad==0) print "1"; else print "0.10";?>);"><?php if ($numpad==0) print "1"; else print "0.10";?></button>
|
||||||
@ -251,12 +251,11 @@ $button = array_pop($action_buttons);
|
|||||||
if ($paycode == 'LIQ') $paycode = 'cash';
|
if ($paycode == 'LIQ') $paycode = 'cash';
|
||||||
if ($paycode == 'CB') $paycode = 'card';
|
if ($paycode == 'CB') $paycode = 'card';
|
||||||
if ($paycode == 'CHQ') $paycode = 'cheque';
|
if ($paycode == 'CHQ') $paycode = 'cheque';
|
||||||
?>
|
?>
|
||||||
<button type="button" class="calcbutton2" onclick="Validate('<?php echo $langs->trans($paycode); ?>');"><?php echo $langs->trans("PaymentTypeShort".$paiements[2]->code); ?></button>
|
<button type="button" class="calcbutton2" onclick="Validate('<?php echo $langs->trans($paycode); ?>');"><?php echo $langs->trans("PaymentTypeShort".$paiements[2]->code); ?></button>
|
||||||
<?php } else { ?>
|
<?php } else {
|
||||||
<?php
|
$button = array_pop($action_buttons);
|
||||||
$button = array_pop($action_buttons);
|
?>
|
||||||
?>
|
|
||||||
<button type="button" class="calcbutton2" onclick="<?php echo $button["function"];?>"><span <?php echo $button["span"];?>><?php echo $button["text"];?></span></button>
|
<button type="button" class="calcbutton2" onclick="<?php echo $button["function"];?>"><span <?php echo $button["span"];?>><?php echo $button["text"];?></span></button>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<button type="button" class="calcbutton" onclick="addreceived(<?php if ($numpad==0) print "0"; else print "0.01";?>);"><?php if ($numpad==0) print "0"; else print "0.01";?></button>
|
<button type="button" class="calcbutton" onclick="addreceived(<?php if ($numpad==0) print "0"; else print "0.01";?>);"><?php if ($numpad==0) print "0"; else print "0.01";?></button>
|
||||||
@ -265,17 +264,17 @@ $button = array_pop($action_buttons);
|
|||||||
<?php
|
<?php
|
||||||
$i=3;
|
$i=3;
|
||||||
while($i < count($paiements)){
|
while($i < count($paiements)){
|
||||||
?>
|
?>
|
||||||
<button type="button" class="calcbutton2" onclick="Validate('<?php echo $langs->trans($paiements[$i]->code); ?>');"><?php echo $langs->trans("PaymentTypeShort".$paiements[$i]->code); ?></button>
|
<button type="button" class="calcbutton2" onclick="Validate('<?php echo $langs->trans($paiements[$i]->code); ?>');"><?php echo $langs->trans("PaymentTypeShort".$paiements[$i]->code); ?></button>
|
||||||
<?php
|
<?php
|
||||||
$i=$i+1;
|
$i=$i+1;
|
||||||
}
|
}
|
||||||
$class=($i==3)?"calcbutton3":"calcbutton2";
|
$class=($i==3)?"calcbutton3":"calcbutton2";
|
||||||
foreach($action_buttons as $button){
|
foreach($action_buttons as $button){
|
||||||
$newclass = $class.($button["class"]?" ".$button["class"]:"");
|
$newclass = $class.($button["class"]?" ".$button["class"]:"");
|
||||||
?>
|
?>
|
||||||
<button type="button" class="<?php echo $newclass;?>" onclick="<?php echo $button["function"];?>"><span <?php echo $button["span"];?>><?php echo $button["text"];?></span></button>
|
<button type="button" class="<?php echo $newclass;?>" onclick="<?php echo $button["function"];?>"><span <?php echo $button["span"];?>><?php echo $button["text"];?></span></button>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -132,7 +132,8 @@ if ($conf->global->TAKEPOS_CUSTOM_RECEIPT && $conf->global->TAKEPOS_SHOW_CUSTOME
|
|||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php if (!empty($line->product_label)) echo $line->product_label;
|
<td>
|
||||||
|
<?php if (!empty($line->product_label)) echo $line->product_label;
|
||||||
else echo $line->description;?>
|
else echo $line->description;?>
|
||||||
</td>
|
</td>
|
||||||
<td class="right"><?php echo $line->qty;?></td>
|
<td class="right"><?php echo $line->qty;?></td>
|
||||||
@ -150,30 +151,28 @@ if ($conf->global->TAKEPOS_CUSTOM_RECEIPT && $conf->global->TAKEPOS_SHOW_CUSTOME
|
|||||||
<th class="right"><?php echo $langs->trans("TotalHT");?></th>
|
<th class="right"><?php echo $langs->trans("TotalHT");?></th>
|
||||||
<td class="right"><?php echo price($object->total_ht, 1, '', 1, - 1, - 1, $conf->currency)."\n";?></td>
|
<td class="right"><?php echo price($object->total_ht, 1, '', 1, - 1, - 1, $conf->currency)."\n";?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php if($conf->global->TAKEPOS_TICKET_VAT_GROUPPED):?>
|
<?php if($conf->global->TAKEPOS_TICKET_VAT_GROUPPED) {
|
||||||
<?php
|
|
||||||
$vat_groups = array();
|
$vat_groups = array();
|
||||||
foreach ($object->lines as $line)
|
foreach ($object->lines as $line)
|
||||||
{
|
{
|
||||||
if(!array_key_exists($line->tva_tx, $vat_groups)){
|
if(!array_key_exists($line->tva_tx, $vat_groups)) {
|
||||||
$vat_groups[$line->tva_tx] = 0;
|
$vat_groups[$line->tva_tx] = 0;
|
||||||
}
|
}
|
||||||
$vat_groups[$line->tva_tx] += $line->total_tva;
|
$vat_groups[$line->tva_tx] += $line->total_tva;
|
||||||
}
|
}
|
||||||
foreach($vat_groups as $key => $val){
|
foreach($vat_groups as $key => $val) {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th align="right"><?php echo $langs->trans("VAT").' '.vatrate($key, 1);?></th>
|
<th align="right"><?php echo $langs->trans("VAT").' '.vatrate($key, 1);?></th>
|
||||||
<td align="right"><?php echo price($val, 1, '', 1, - 1, - 1, $conf->currency)."\n";?></td>
|
<td align="right"><?php echo price($val, 1, '', 1, - 1, - 1, $conf->currency)."\n";?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
} else { ?>
|
||||||
<?php else: ?>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th class="right"><?php echo $langs->trans("TotalVAT").'</th><td class="right">'.price($object->total_tva, 1, '', 1, - 1, - 1, $conf->currency)."\n";?></td>
|
<th class="right"><?php echo $langs->trans("TotalVAT").'</th><td class="right">'.price($object->total_tva, 1, '', 1, - 1, - 1, $conf->currency)."\n";?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endif ?>
|
<?php } ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="right"><?php echo ''.$langs->trans("TotalTTC").'</th><td class="right">'.price($object->total_ttc, 1, '', 1, - 1, - 1, $conf->currency)."\n";?></td>
|
<th class="right"><?php echo ''.$langs->trans("TotalTTC").'</th><td class="right">'.price($object->total_ttc, 1, '', 1, - 1, - 1, $conf->currency)."\n";?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -747,7 +747,7 @@ $menus[$r++]=array('title'=>'<span class="fa fa-sign-out-alt paddingrightonly"><
|
|||||||
print '<input type="text" id="search" name="search" onkeyup="Search2();" style="width:80%;font-size: 150%;" placeholder="'.$langs->trans("Search").'" autofocus> ';
|
print '<input type="text" id="search" name="search" onkeyup="Search2();" style="width:80%;font-size: 150%;" placeholder="'.$langs->trans("Search").'" autofocus> ';
|
||||||
print '<a class="marginleftonly hideonsmartphone" onclick="ClearSearch();">'.img_picto('', 'searchclear').'</a>';
|
print '<a class="marginleftonly hideonsmartphone" onclick="ClearSearch();">'.img_picto('', 'searchclear').'</a>';
|
||||||
print '</div>';
|
print '</div>';
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
* Copyright (C) 2006-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2006-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
||||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
||||||
|
* Copyright (C) 2019 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -81,14 +82,14 @@ if (! is_array($user_arbo) && $user_arbo < 0)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Define fulltree array
|
// Define fulltree array
|
||||||
$fulltree=$user_arbo;
|
$fulltree=$user_arbo;
|
||||||
//var_dump($fulltree);
|
//var_dump($fulltree);
|
||||||
// Define data (format for treeview)
|
// Define data (format for treeview)
|
||||||
$data=array();
|
$data=array();
|
||||||
$data[] = array('rowid'=>0,'fk_menu'=>-1,'title'=>"racine",'mainmenu'=>'','leftmenu'=>'','fk_mainmenu'=>'','fk_leftmenu'=>'');
|
$data[] = array('rowid'=>0,'fk_menu'=>-1,'title'=>"racine",'mainmenu'=>'','leftmenu'=>'','fk_mainmenu'=>'','fk_leftmenu'=>'');
|
||||||
foreach($fulltree as $key => $val)
|
foreach($fulltree as $key => $val)
|
||||||
{
|
{
|
||||||
$userstatic->id=$val['id'];
|
$userstatic->id=$val['id'];
|
||||||
$userstatic->ref=$val['label'];
|
$userstatic->ref=$val['label'];
|
||||||
$userstatic->login=$val['login'];
|
$userstatic->login=$val['login'];
|
||||||
@ -136,68 +137,68 @@ foreach($fulltree as $key => $val)
|
|||||||
'statut'=>$val['statut'],
|
'statut'=>$val['statut'],
|
||||||
'entry'=>'<table class="nobordernopadding centpercent"><tr><td class="'.($val['statut']?'usertdenabled':'usertddisabled').'">'.$li.'</td><td align="right" class="'.($val['statut']?'usertdenabled':'usertddisabled').'">'.$userstatic->getLibStatut(3).'</td></tr></table>'
|
'entry'=>'<table class="nobordernopadding centpercent"><tr><td class="'.($val['statut']?'usertdenabled':'usertddisabled').'">'.$li.'</td><td align="right" class="'.($val['statut']?'usertdenabled':'usertddisabled').'">'.$userstatic->getLibStatut(3).'</td></tr></table>'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
//var_dump($data);
|
//var_dump($data);
|
||||||
|
|
||||||
$title = $langs->trans("ListOfUsers"). ' - '.$langs->trans("HierarchicView");
|
$title = $langs->trans("ListOfUsers"). ' - '.$langs->trans("HierarchicView");
|
||||||
|
|
||||||
$param="search_statut=".urlencode($search_statut);
|
$param="search_statut=".urlencode($search_statut);
|
||||||
|
|
||||||
$newcardbutton='';
|
$newcardbutton='';
|
||||||
if ($canadduser)
|
if ($canadduser)
|
||||||
{
|
{
|
||||||
$newcardbutton.= dolGetButtonTitle($langs->trans('NewUser'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/user/card.php?action=create'.($mode == 'employee' ? '&employee=1': '').'&leftmenu=');
|
$newcardbutton.= dolGetButtonTitle($langs->trans('NewUser'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/user/card.php?action=create'.($mode == 'employee' ? '&employee=1': '').'&leftmenu=');
|
||||||
}
|
}
|
||||||
|
|
||||||
$morehtmlright.= dolGetButtonTitle($langs->trans('ViewList'), '', 'fa fa-list paddingleft', DOL_URL_ROOT.'/user/list.php'.(($search_statut != '' && $search_statut >= 0) ?'?search_statut='.$search_statut:''));
|
$morehtmlright.= dolGetButtonTitle($langs->trans('ViewList'), '', 'fa fa-list paddingleft', DOL_URL_ROOT.'/user/list.php'.(($search_statut != '' && $search_statut >= 0) ?'?search_statut='.$search_statut:''));
|
||||||
|
|
||||||
print load_fiche_titre($title, $morehtmlright.' '.$newcardbutton);
|
print load_fiche_titre($title, $morehtmlright.' '.$newcardbutton);
|
||||||
|
|
||||||
print '<form method="POST" id="searchFormList" action="'.$_SERVER["PHP_SELF"].'">'."\n";
|
print '<form method="POST" id="searchFormList" action="'.$_SERVER["PHP_SELF"].'">'."\n";
|
||||||
if ($optioncss != '') print '<input type="hidden" name="optioncss" value="'.$optioncss.'">';
|
if ($optioncss != '') print '<input type="hidden" name="optioncss" value="'.$optioncss.'">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
print '<input type="hidden" name="sortfield" value="'.$sortfield.'">';
|
print '<input type="hidden" name="sortfield" value="'.$sortfield.'">';
|
||||||
print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
|
print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
|
||||||
print '<input type="hidden" name="page" value="'.$page.'">';
|
print '<input type="hidden" name="page" value="'.$page.'">';
|
||||||
print '<input type="hidden" name="mode" value="'.$mode.'">';
|
print '<input type="hidden" name="mode" value="'.$mode.'">';
|
||||||
print '<input type="hidden" name="contextpage" value="'.$contextpage.'">';
|
print '<input type="hidden" name="contextpage" value="'.$contextpage.'">';
|
||||||
|
|
||||||
print '<table class="liste nohover centpercent">';
|
print '<table class="liste nohover centpercent">';
|
||||||
|
|
||||||
print '<tr class="liste_titre_filter">';
|
print '<tr class="liste_titre_filter">';
|
||||||
print '<td class="liste_titre"> </td>';
|
print '<td class="liste_titre"> </td>';
|
||||||
print '<td class="liste_titre"> </td>';
|
print '<td class="liste_titre"> </td>';
|
||||||
// Status
|
// Status
|
||||||
print '<td class="liste_titre right">';
|
print '<td class="liste_titre right">';
|
||||||
print $form->selectarray('search_statut', array('-1'=>'','1'=>$langs->trans('Enabled')), $search_statut);
|
print $form->selectarray('search_statut', array('-1'=>'','1'=>$langs->trans('Enabled')), $search_statut);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td class="liste_titre maxwidthsearch">';
|
print '<td class="liste_titre maxwidthsearch">';
|
||||||
$searchpicto=$form->showFilterAndCheckAddButtons(0);
|
$searchpicto=$form->showFilterAndCheckAddButtons(0);
|
||||||
print $searchpicto;
|
print $searchpicto;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre("HierarchicView");
|
print_liste_field_titre("HierarchicView");
|
||||||
print_liste_field_titre('<div id="iddivjstreecontrol"><a href="#">'.img_picto('', 'object_category').' '.$langs->trans("UndoExpandAll").'</a> | <a href="#">'.img_picto('', 'object_category-expanded').' '.$langs->trans("ExpandAll").'</a></div>', $_SERVER['PHP_SELF'], "", '', "", 'align="center"');
|
print_liste_field_titre('<div id="iddivjstreecontrol"><a href="#">'.img_picto('', 'object_category').' '.$langs->trans("UndoExpandAll").'</a> | <a href="#">'.img_picto('', 'object_category-expanded').' '.$langs->trans("ExpandAll").'</a></div>', $_SERVER['PHP_SELF'], "", '', "", 'align="center"');
|
||||||
print_liste_field_titre("Status", $_SERVER['PHP_SELF'], "", '', "", 'align="right"');
|
print_liste_field_titre("Status", $_SERVER['PHP_SELF'], "", '', "", 'align="right"');
|
||||||
print_liste_field_titre('', $_SERVER["PHP_SELF"], "", '', '', '', '', '', 'maxwidthsearch ');
|
print_liste_field_titre('', $_SERVER["PHP_SELF"], "", '', '', '', '', '', 'maxwidthsearch ');
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
|
||||||
$nbofentries=(count($data) - 1);
|
$nbofentries=(count($data) - 1);
|
||||||
|
|
||||||
if ($nbofentries > 0)
|
if ($nbofentries > 0)
|
||||||
{
|
{
|
||||||
print '<tr '.$bc[false].'><td colspan="3">';
|
print '<tr '.$bc[false].'><td colspan="3">';
|
||||||
tree_recur($data, $data[0], 0);
|
tree_recur($data, $data[0], 0);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td></td>';
|
print '<td></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<tr '.$bc[true].'>';
|
print '<tr '.$bc[true].'>';
|
||||||
print '<td colspan="3">';
|
print '<td colspan="3">';
|
||||||
print '<table class="nobordernopadding"><tr class="nobordernopadding"><td>'.img_picto_common('', 'treemenu/branchbottom.gif').'</td>';
|
print '<table class="nobordernopadding"><tr class="nobordernopadding"><td>'.img_picto_common('', 'treemenu/branchbottom.gif').'</td>';
|
||||||
@ -209,10 +210,10 @@ else
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td></td>';
|
print '<td></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
print "</form>\n";
|
print "</form>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
@ -27,21 +27,24 @@
|
|||||||
|
|
||||||
require '../main.inc.php';
|
require '../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
||||||
if (! empty($conf->categorie->enabled))
|
if (! empty($conf->categorie->enabled)) {
|
||||||
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
||||||
|
}
|
||||||
|
|
||||||
if (! $user->rights->user->user->lire && ! $user->admin)
|
if (! $user->rights->user->user->lire && ! $user->admin) {
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
}
|
||||||
|
|
||||||
// Load translation files required by page
|
// Load translation files required by page
|
||||||
$langs->loadLangs(array('users', 'companies', 'hrm'));
|
$langs->loadLangs(array('users', 'companies', 'hrm'));
|
||||||
|
|
||||||
$contextpage=GETPOST('contextpage', 'aZ')?GETPOST('contextpage', 'aZ'):'userlist'; // To manage different context of search
|
$contextpage=GETPOST('contextpage', 'aZ')?GETPOST('contextpage', 'aZ'):'userlist'; // To manage different context of search
|
||||||
|
|
||||||
// Security check (for external users)
|
// Security check (for external users)
|
||||||
$socid=0;
|
$socid=0;
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0) {
|
||||||
$socid = $user->societe_id;
|
$socid = $user->societe_id;
|
||||||
|
}
|
||||||
|
|
||||||
// Load mode employee
|
// Load mode employee
|
||||||
$mode = GETPOST("mode", 'alpha');
|
$mode = GETPOST("mode", 'alpha');
|
||||||
|
|||||||
@ -208,7 +208,7 @@ if ($result > 0)
|
|||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
|
|
||||||
// $listofemails=$object->thirdparty_and_contact_email_array();
|
// $listofemails=$object->thirdparty_and_contact_email_array();
|
||||||
if ($object->email)
|
if ($object->email)
|
||||||
{
|
{
|
||||||
$actions=array();
|
$actions=array();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user