addition of id category of sale in sale management

This commit is contained in:
Marion Muszynski 2016-10-05 11:25:43 +02:00
parent 13385c964d
commit 6c927d2266
2 changed files with 6 additions and 2 deletions

View File

@ -33,6 +33,7 @@ if (isset($_GET['getSales'])){
echo "<thead><tr> echo "<thead><tr>
<th>ID</th> <th>ID</th>
<th>Categorie</th>
<th>Titre</th> <th>Titre</th>
<th>Début</th> <th>Début</th>
<th>Fin</th> <th>Fin</th>
@ -50,6 +51,7 @@ if (isset($_GET['getSales'])){
foreach($sales as $key => $sale) { foreach($sales as $key => $sale) {
echo '<tr id="item_'.$sale->id. '"> echo '<tr id="item_'.$sale->id. '">
<td>'.$sale->id.'</td> <td>'.$sale->id.'</td>
<td>'.$sale->id_category.'</td>
<td><strong>'.$sale->title[intval($cookie->id_lang)].'</strong><br/><span style="color:#666; font-style:italic">'.$extrafields[$sale->id][1].'</span></td> <td><strong>'.$sale->title[intval($cookie->id_lang)].'</strong><br/><span style="color:#666; font-style:italic">'.$extrafields[$sale->id][1].'</span></td>
<td>'.$sale->date_start.'</td> <td>'.$sale->date_start.'</td>
<td>'.$sale->date_end.'</td> <td>'.$sale->date_end.'</td>

View File

@ -542,8 +542,8 @@ class AdminPrivateSalesSales extends AdminTab {
//ANTADIS //ANTADIS
echo '<fieldset style="margin-top:15px">'; echo '<fieldset style="margin-top:15px">';
echo '<legend>Tri des ventes</legend>'; echo '<legend>Tri des ventes</legend>';
echo '<input type="submit" value="Ventes actuelles" name="not_ended" class="tri button active">'; echo '<input type="submit" value="Ventes actuelles" name="not_ended" class="tri button active" style="margin-right:10px;">';
echo '<input type="submit" value="Ventes terminées" name="finished" class="tri button">'; echo '<input type="submit" value="Ventes terminées" name="finished" class="tri button" style="margin-right:10px;">';
echo '<input type="submit" value="Toutes les ventes" name="all" class="tri button">'; echo '<input type="submit" value="Toutes les ventes" name="all" class="tri button">';
echo '</fieldset>'; echo '</fieldset>';
@ -665,6 +665,7 @@ class AdminPrivateSalesSales extends AdminTab {
<thead> <thead>
<tr> <tr>
<th>'.$this->l('ID').'</th> <th>'.$this->l('ID').'</th>
<th>'.$this->l('Categorie').'</th>
<th>'.$this->l('Title').'</th> <th>'.$this->l('Title').'</th>
<th>'.$this->l('Start').'</th> <th>'.$this->l('Start').'</th>
<th>'.$this->l('End').'</th> <th>'.$this->l('End').'</th>
@ -691,6 +692,7 @@ class AdminPrivateSalesSales extends AdminTab {
foreach($sales as $key => $sale) { foreach($sales as $key => $sale) {
echo '<tr id="item_'.$sale->id. '" class="sale_'.($key%2).'"> echo '<tr id="item_'.$sale->id. '" class="sale_'.($key%2).'">
<td>'.$sale->id.'</td> <td>'.$sale->id.'</td>
<td>'.$sale->id_category.'</td>
<td><strong>'.$sale->title[intval($cookie->id_lang)].'</strong><br/><span style="color:#666; font-style:italic">'.$extrafields[$sale->id][1].'</span></td> <td><strong>'.$sale->title[intval($cookie->id_lang)].'</strong><br/><span style="color:#666; font-style:italic">'.$extrafields[$sale->id][1].'</span></td>
<td>'.$sale->date_start.'</td> <td>'.$sale->date_start.'</td>
<td>'.$sale->date_end.'</td> <td>'.$sale->date_end.'</td>