start of changement
This commit is contained in:
parent
457f636f6e
commit
dde433e46a
@ -197,27 +197,16 @@ class AdminInvoices extends AdminTab
|
||||
<form id="invoices_form" action="'.$currentIndex.'&token='.$this->token.'" method="post">
|
||||
<table class="table table-custombordered">';
|
||||
|
||||
/*echo '
|
||||
<tr>
|
||||
<td colspan="6"></td>
|
||||
<td align="center"><a id="checkm3" data-checked="0" href="#">'. $this->l('Check all') .'</a></td>
|
||||
</tr>*/
|
||||
$form .= '<tr>
|
||||
<th colspan="2">'.$this->l('ID Sale').'</th>
|
||||
<th>'.$this->l('Name sale').'</th>
|
||||
<th>'.$this->l('Date start').'</th>';
|
||||
/*<th align="center">48h</th>';
|
||||
if ($cookie->id_employee == 1) {
|
||||
echo '<th align="center">48H bis</th>';
|
||||
}*/
|
||||
$form .= '<th>M1</th>';
|
||||
/*<th>M2</th>*/
|
||||
$form .= '<th>M2+</th>
|
||||
<th>'.$this->l('Date start').'</th>
|
||||
<th>M1</th>
|
||||
<th>M2+</th>
|
||||
<th>Même marque</th>
|
||||
<th>All</th>
|
||||
<th>'. $this->l('Delay') .'</th>
|
||||
</tr>';
|
||||
// <th align="center">M2\'</th>
|
||||
$id_sales = unserialize(Configuration::get("ANT_CHECKED_SALES"));
|
||||
foreach ($this->print_sales as $key => $sale) {
|
||||
if( $key%2 == 0) {
|
||||
@ -231,78 +220,44 @@ class AdminInvoices extends AdminTab
|
||||
<td></td>
|
||||
<td><label for="multi_'.$sale['id_sale'].'" style="float:none; width:auto; padding: 0; text-align: left; font-weight: normal; margin:0;">'. $sale['id_sale'] .'</label></td>
|
||||
<td><label for="multi_'.$sale['id_sale'].'" style="float:none; width:auto; padding: 0; text-align: left; font-weight: normal; margin:0;"><strong>'. $sale['title'] .'</strong></label></td>
|
||||
<td align="center"><p style="padding:0px;color: #565485;font-size:12px;">'. $date->format('Y-m-d') .'</p></td>';
|
||||
/*<td align="center">';
|
||||
if ($sale['delivery_delay'] == 2
|
||||
|| $sale['delivery_delay'] == 6) {
|
||||
echo '<a onclick="this.target=\'_blank\'" href="'.$currentIndex.'&print48h=1&id_sale='. $sale['id_sale'] .'&token='.$this->token.'">
|
||||
<img src="../img/admin/pdf.gif" alt="">
|
||||
</a>';
|
||||
} else {
|
||||
echo '-';
|
||||
}*/
|
||||
/*if ($cookie->id_employee == 1) {
|
||||
echo '</td><td align="center">';
|
||||
if ($sale['delivery_delay'] == 2
|
||||
|| $sale['delivery_delay'] == 6) {
|
||||
echo '<a onclick="this.target=\'_blank\'" href="'.$currentIndex.'&print48hbis=1&id_sale='. $sale['id_sale'] .'&token='.$this->token.'">
|
||||
<img src="../img/admin/pdf.gif" alt="">
|
||||
</a>';
|
||||
} else {
|
||||
echo '-';
|
||||
}
|
||||
}
|
||||
echo '</td>*/
|
||||
$form .= '</td>
|
||||
<td align="center"><p style="padding:0px;color: #565485;font-size:12px;">'. $date->format('Y-m-d') .'</p></td>
|
||||
</td>
|
||||
<td align="center">
|
||||
<!--a title="Facture - Avec prix" onclick="this.target=\'_blank\'" href="'.$currentIndex.'&printM1=1&id_sale='. $sale['id_sale'] .'&token='.$this->token.'">
|
||||
<span class="text-green-light anticon anticon-file-pdf" style="cursor:pointer;"></span>
|
||||
</a-->
|
||||
<a title="Facture cadeau - Sans prix" onclick="this.target=\'_blank\'" href="'.$currentIndex.'&printM1=1&id_sale='. $sale['id_sale'] .'&gift=1&token='.$this->token.'">
|
||||
<span class="text-rose anticon anticon-file-pdf" style="cursor:pointer;"></span>
|
||||
<a title="Facture - La Poste" onclick="this.target=\'_blank\'" href="'.$currentIndex.'&printM1=1&id_sale='. $sale['id_sale'] .'&gift=1&laposte=1&token='.$this->token.'">
|
||||
<span class="text-yellow anticon anticon-file-pdf" style="cursor:pointer;"></span>
|
||||
</a>
|
||||
</td>';
|
||||
/*<td align="center">
|
||||
<a onclick="this.target=\'_blank\'" href="'.$currentIndex.'&printM2=1&id_sale='. $sale['id_sale'] .'&token='.$this->token.'">
|
||||
<img src="../img/admin/pdf.gif" alt="">
|
||||
<a title="Facture - Mondial Relay" onclick="this.target=\'_blank\'" href="'.$currentIndex.'&printM1=1&id_sale='. $sale['id_sale'] .'&gift=1&mondialrelay=1&token='.$this->token.'">
|
||||
<span class="text-red-light anticon anticon-file-pdf" style="cursor:pointer;"></span>
|
||||
</a>
|
||||
</td>*/
|
||||
|
||||
$form .= '<td align="center"><input id="multi_'. $sale['id_sale'].'" type="checkbox" name="multi2[]" value="'.$sale['id_sale'].'" '.(in_array((int)$sale['id_sale'], $id_sales)?'checked':'').'/></td>
|
||||
</td>
|
||||
<td align="center"><input id="multi_'. $sale['id_sale'].'" type="checkbox" name="multi2[]" value="'.$sale['id_sale'].'" '.(in_array((int)$sale['id_sale'], $id_sales)?'checked':'').'/></td>
|
||||
<td align="center"><input id="multi_plus_'. $sale['id_sale'].'" type="checkbox" name="multiPlus[]" value="'.$sale['id_sale'].'"/></td>
|
||||
<td align="center">
|
||||
<!--a onclick="this.target=\'_blank\'" href="'.$currentIndex.'&printAll=1&id_sale='. $sale['id_sale'] .'&token='.$this->token.'">
|
||||
<span class="text-green-light anticon anticon-file-pdf" style="cursor:pointer;"></span>
|
||||
</a-->
|
||||
<a onclick="this.target=\'_blank\'" href="'.$currentIndex.'&printAll=1&id_sale='. $sale['id_sale'] .'&gift=1&token='.$this->token.'">
|
||||
<span class="text-rose anticon anticon-file-pdf" style="cursor:pointer;"></span>
|
||||
<a title="Facture - La Poste" onclick="this.target=\'_blank\'" href="'.$currentIndex.'&printAll=1&id_sale='. $sale['id_sale'] .'&gift=1&laposte=1&token='.$this->token.'">
|
||||
<span class="text-yellow anticon anticon-file-pdf" style="cursor:pointer;"></span>
|
||||
</a>
|
||||
<a title="Facture - Mondial Relay" onclick="this.target=\'_blank\'" href="'.$currentIndex.'&printAll=1&id_sale='. $sale['id_sale'] .'&gift=1&mondialrelay=1&token='.$this->token.'">
|
||||
<span class="text-red-light anticon anticon-file-pdf" style="cursor:pointer;"></span>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" '.($sale['delivery_delay'] != 1?'style="background:#f49ac1;"':'').'>'.(isset($sale['delivery_delay_name'])?$sale['delivery_delay_name']:'').'</td>
|
||||
</tr>';
|
||||
|
||||
}
|
||||
// <td align="center"><input id="m2_'. $sale['id_sale'].'" type="checkbox" name="m2[]" value="'.$sale['id_sale'].'" /></td>
|
||||
|
||||
$form .= '<tr>
|
||||
<td colspan="5" style="padding:5px;"></td>';
|
||||
// <td colspan="4" style="padding:5px;">
|
||||
// <input type="hidden" name="date_to" value="'. Tools::getValue('date_to') .'" />
|
||||
// <input type="hidden" name="date_from" value="'. Tools::getValue('date_from') .'" />
|
||||
// <label style="float:none;" class="text-green-light "><span class="anticon anticon-file-pdf"></span> '.$this->l('Avec prix').'</label>
|
||||
// <label style="float:none;" class="text-rose "><span class="anticon anticon-file-pdf"></span> '.$this->l('Sans prix').'</label>
|
||||
// </td>';
|
||||
/*<td align="center">
|
||||
<input type="submit" name="submitPrintM2Bis" class="button" value="'.$this->l('Print M2\'').'" />
|
||||
</td>*/
|
||||
$form .= '<td align="center" style="padding:5px;">
|
||||
$form .= '
|
||||
<tr>
|
||||
<td colspan="5" style="padding:5px;"></td>
|
||||
<td align="center" style="padding:5px;">
|
||||
<input type="hidden" name="date_to" value="'. Tools::getValue('date_to') .'" />
|
||||
<input type="hidden" name="date_from" value="'. Tools::getValue('date_from') .'" />
|
||||
<input type="submit" name="submitPrintM2Plus" class="btn btn-default btn-xs" value="'.$this->l('Print M2+').'" />
|
||||
<input type="submit" name="resetPrintM2Plus" class="btn btn-default btn-xs" value="'.$this->l('Unselect all').'" />
|
||||
<input type="submit" name="submitPrintM2PlusLP" class="btn btn-default btn-xs" value="'.$this->l('M2+ LP').'" />
|
||||
<input type="submit" name="submitPrintM2PlusMR" class="btn btn-default btn-xs" value="'.$this->l('M2+ MR').'" />
|
||||
<!-- input type="submit" name="resetPrintM2Plus" class="btn btn-default btn-xs" value="'.$this->l('Unselect all').'" / -->
|
||||
</td>
|
||||
<td align="center" style="padding:5px;">
|
||||
<input type="submit" name="submitPrintMPlus" class="btn btn-default btn-xs" value="'.$this->l('Print Même Marque').'" />
|
||||
<input type="submit" name="submitPrintMPlusLP" class="btn btn-default btn-xs" value="'.$this->l('LP').'" />
|
||||
<input type="submit" name="submitPrintMPlusMR" class="btn btn-default btn-xs" value="'.$this->l('MR').'" />
|
||||
</td>
|
||||
<td style="padding:5px;">
|
||||
<p><label style="float:none;"><input type="checkbox" name="gift" value="1" /> '.$this->l('Factures Cadeaux').'</label></p>
|
||||
@ -739,7 +694,7 @@ class AdminInvoices extends AdminTab
|
||||
}
|
||||
}
|
||||
// print multi with same brand
|
||||
elseif (Tools::isSubmit('submitPrintMPlus')) {
|
||||
elseif (Tools::isSubmit('submitPrintMPlusLP') || Tools::isSubmit('submitPrintMPlusMR')) {
|
||||
include_once(dirname(__FILE__).'/../../modules/privatesales/Sale.php');
|
||||
$id_sales = Tools::getValue('multiPlus');
|
||||
|
||||
|
@ -3362,6 +3362,13 @@ span.anticon{
|
||||
.text-purple-light{
|
||||
color: #796dc7!important;
|
||||
}
|
||||
.text-yellow{
|
||||
color: #f2be04!important;
|
||||
}
|
||||
.text-red-light{
|
||||
color: #CA0047!important;
|
||||
color: #CA0047!important;
|
||||
}
|
||||
a.link-anticon{
|
||||
color: #796dc7!important;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user