Skip to content
Snippets Groups Projects
Commit 39fa8e17 authored by Cyril L'Orphelin's avatar Cyril L'Orphelin
Browse files

MAJ

parent db1b4036
Branches develop
No related tags found
1 merge request!17MAJ
Pipeline #391564 passed
...@@ -39,6 +39,7 @@ $(document).ready(function () { ...@@ -39,6 +39,7 @@ $(document).ready(function () {
return '<span class="badge bg-info text-white small">' + datetime + '</span>'; return '<span class="badge bg-info text-white small">' + datetime + '</span>';
} }
}, },
{ {
data: 'tapeid', data: 'tapeid',
orderable: false, orderable: false,
......
...@@ -151,6 +151,11 @@ class TapeController extends AbstractController ...@@ -151,6 +151,11 @@ class TapeController extends AbstractController
$countQueryBuilder->orWhere('t.label LIKE :tapeLabel'); $countQueryBuilder->orWhere('t.label LIKE :tapeLabel');
$countQueryBuilder->setParameter('tapeLabel', $search.'%'); $countQueryBuilder->setParameter('tapeLabel', $search.'%');
$mainQueryBuilder->orWhere('t.prix LIKE :tapePrix');
$mainQueryBuilder->setParameter(':tapePrix', $search.'%');
$countQueryBuilder->orWhere('t.prix LIKE :tapePrix');
$countQueryBuilder->setParameter(':tapePrix', $search.'%');
$mainQueryBuilder->orWhere('m.nom LIKE :modelName'); $mainQueryBuilder->orWhere('m.nom LIKE :modelName');
$mainQueryBuilder->setParameter('modelName', $search.'%'); $mainQueryBuilder->setParameter('modelName', $search.'%');
$countQueryBuilder->orWhere('m.nom LIKE :modelName'); $countQueryBuilder->orWhere('m.nom LIKE :modelName');
...@@ -187,6 +192,8 @@ class TapeController extends AbstractController ...@@ -187,6 +192,8 @@ class TapeController extends AbstractController
$mainQueryBuilder->orderBy('li.nom', $orderDir); $mainQueryBuilder->orderBy('li.nom', $orderDir);
else if($orderColumn == 5) // datecreation else if($orderColumn == 5) // datecreation
$mainQueryBuilder->orderBy('t.' . $colums[$orderColumn]['data'], $orderDir); $mainQueryBuilder->orderBy('t.' . $colums[$orderColumn]['data'], $orderDir);
else if($orderColumn == 6) // Prix
$mainQueryBuilder->orderBy('t.' . $colums[$orderColumn]['data'], $orderDir);
} }
$data = $mainQueryBuilder $data = $mainQueryBuilder
...@@ -362,7 +369,13 @@ class TapeController extends AbstractController ...@@ -362,7 +369,13 @@ class TapeController extends AbstractController
$histories = json_decode($tape->getHistory(),TRUE); $histories = json_decode($tape->getHistory(),TRUE);
$htmlhistory = '<ul class="timeline">'; $htmlhistory='<ul>';
$htmlhistory.='<li><strong>Prix : </strong>'.$tape->getPrix().'</li>';
if ($tape->getCommentaire()!='')
$htmlhistory.='<li><strong>Commentaire: </strong><em>'.$tape->getCommentaire().'</em></li>';
$htmlhistory.='</ul><br/><br/><h2>Historique</h2>';
$htmlhistory .= '<ul class="timeline">';
$cpt = 0; $cpt = 0;
foreach ($histories as $history) { foreach ($histories as $history) {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
MAJ Multiple MAJ Multiple
</button> </button>
<table id="tableTapes" class=" table-striped m-4 table table-bordered"> <table id="tableTapes" class=" table-striped m-4 table table-bordered small">
<thead> <thead>
<tr> <tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment