Ajout des options de tri
This commit is contained in:
parent
47460eed43
commit
745adb60d3
18
includes/portefeuille/function.php
Normal file
18
includes/portefeuille/function.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
function lienTri($tri, $vue, $source, $siret, $idEntreprise)
|
||||
{
|
||||
$output = './?page=portefeuille&vue='.$vue;
|
||||
$output.= isset($source) ? '&source='.$source : '' ;
|
||||
$output.= '&tri='.$tri.'&idEntreprise='.$idEntreprise.'&siret='.$siret;
|
||||
return $output;
|
||||
}
|
||||
|
||||
function lienPage($tri, $vue, $source, $siret, $idEntreprise, $position){
|
||||
$output = './?page=portefeuille&vue='.$vue;
|
||||
$output.= isset($tri) ? '&tri='.$tri : '';
|
||||
$output.= isset($source) ? '&source='.$source : '';
|
||||
$output.= '&idEntreprise='.$idEntreprise;
|
||||
$output.= '&siret='.$siret;
|
||||
$output.= '&p='.$position;
|
||||
return $output;
|
||||
}
|
@ -14,6 +14,7 @@ if(!hasPerm('portefeuille')){
|
||||
<h1 class="titre">PORTEFEUILLE</h1>
|
||||
<?php
|
||||
require_once 'common/dates.php';
|
||||
require_once 'portefeuille/function.php';
|
||||
|
||||
$idEntreprise = isset($_REQUEST['idEntreprise'])?
|
||||
$_REQUEST['idEntreprise'] : '';
|
||||
@ -32,12 +33,12 @@ switch($tri){
|
||||
case 'reference': $triws = 'ref'; break;
|
||||
case 'dateajout': $triws = 'dateAjout'; break;
|
||||
case 'datederenvoi': $triws = 'dateDerEnvoi'; break;
|
||||
case 'score' : $triws = 'indiScore'; break;
|
||||
}
|
||||
|
||||
//Liste des surveillances score de l'utilisateur
|
||||
try{
|
||||
$O = $client->getPortefeuille(0, $position, $nbAffichage, $triws);
|
||||
$firephp->log($O, 'O');
|
||||
$listSurveillance = $O['results']['reponses'];
|
||||
|
||||
$nbReponses = $O['results']['nbReponses'];
|
||||
@ -103,10 +104,34 @@ $(document).ready(function()
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2>Surveillance Score</h2>
|
||||
<h2>Options de tri</h2>
|
||||
<div class="options">
|
||||
<ul id="tri">
|
||||
<li>
|
||||
<a href="<?=lienTri('siren', $vue, $source, $siret, $idEntreprise)?>">
|
||||
Tri par Siren
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?=lienTri('rs', $vue, $source, $siret, $idEntreprise)?>">
|
||||
Tri par Raison sociale
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?=lienTri('reference', $vue, $source, $siret, $idEntreprise)?>">
|
||||
Tri par Référence
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?=lienTri('score', $vue, $source, $siret, $idEntreprise)?>">
|
||||
Tri par indiScore
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<h2>Surveillance Score</h2>
|
||||
<?php
|
||||
$firephp->log($totPage, 'totPage');
|
||||
if($totPage != 1)
|
||||
{
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user