Surveillance
-Surveillance
+Nombre d'entités affichées | -=$this->nbReponses?> | -
Nombre de surveillances | -=$this->nbSurveillances?> | -
Nombre de surveillances =$this->source?> | -=$this->nbSurveillances?> | -
diff --git a/application/modules/user/controllers/PortfolioController.php b/application/modules/user/controllers/PortfolioController.php
index c1c941ece..b124d096c 100644
--- a/application/modules/user/controllers/PortfolioController.php
+++ b/application/modules/user/controllers/PortfolioController.php
@@ -46,6 +46,7 @@ class User_PortfolioController extends Zend_Controller_Action
*/
public function indexAction()
{
+
$user = new Scores_Utilisateur();
if (!$user->checkPerm('survliste')){
$this->forward('perms', 'error', 'default');
@@ -62,7 +63,7 @@ class User_PortfolioController extends Zend_Controller_Action
$nbAffichage = 50;
$position = ($page - 1 ) * $nbAffichage;
- $source = $request->getParam('source', '');
+ $source =$request->getParam('source', ''); //'annonces'; //
$tri = $request->getParam('tri', 'siren');
$this->view->assign('tri', $tri);
@@ -472,9 +473,9 @@ class User_PortfolioController extends Zend_Controller_Action
echo "Erreur lors de la suppression";
}
} elseif (isset($page)) {
- $this->redirect('surveillance/liste/page/'.$page);
+ $this->redirect('user/portfolio/index/page/'.$page);
} else {
- $this->redirect('surveillance/liste');
+ $this->redirect('user/portfolio/index');
}
}
diff --git a/application/modules/user/views/default/scripts/portfolio/ajouter.phtml b/application/modules/user/views/default/scripts/portfolio/ajouter.phtml
index 24576c12a..d5d9bc830 100644
--- a/application/modules/user/views/default/scripts/portfolio/ajouter.phtml
+++ b/application/modules/user/views/default/scripts/portfolio/ajouter.phtml
@@ -176,7 +176,7 @@ $('#dialogsurv').dialog({ buttons: [ {
// ]});
function survSubmit(){
- $('#dialogsurv').dialog({buttons: []});
+// $('#dialogsurv').dialog({buttons: []});
var action = $('#frmSurv').attr('action');
var siret = $('input[name=siret]').val();
var ref = $('input[name=ref]').val();
@@ -203,14 +203,15 @@ function survSubmit(){
$('#frmSurv').append('
Mise sous surveillance terminé.');
}
});
- $('#dialogsurv').dialog({ buttons: [ {
- text: "Fermer", click: function() {$(this).dialog("close"); }
- } ]});
+ $('.modal-footer').replaceWith('
Nombre d'entités affichées | -=$this->nbReponses?> | -
Nombre de surveillances | -=$this->nbSurveillances?> | -
Nombre de surveillances =$this->source?> | -=$this->nbSurveillances?> | -
+ | Siren | +Dénomination Sociale | +Référence | +Surveillance | +Ajout le | +Envoyé le | +|||
---|---|---|---|---|---|---|---|---|---|
Siren | -Dénomination Sociale | -Référence | -Surveillance | -Ajout le | -Envoyé le | -||||
- =$item['siren']?> - | -
- =$item['rs']?> =$item['cp']?> =$item['ville']?> - |
+ + | =$item['siren']?> | ++ =$item['rs']?> + =$item['cp']?>; =$item['ville']?> + | -+ |
listSources as $source) {
- $ok = false;
- foreach ($item['sources'] as $surveillance) {
- if ( $surveillance['source'] == $source ) {
- if ($surveillance['ref'] != '') { ?> =$surveillance['ref']?> - - - |
-
-
- listSources as $source) {
- $ok = false;
- foreach ($item['sources'] as $surveillance) {
- if ( $surveillance['source'] == $source ) {
- ?>
-
-
-
-
-
- =ucfirst($source)?> - - - -- - |
-
-
- listSources as $source) {
- $ok = false;
- foreach ($item['sources'] as $surveillance) {
- if ( $surveillance['source'] == $source ) {
- ?>
- =substr($surveillance['dateAjout'], 8, 2).'/'. - substr($surveillance['dateAjout'], 5, 2).'/'. - substr($surveillance['dateAjout'], 0, 4)?> -- - |
-
- listSources as $source) {
- $ok = false;
- foreach ($item['sources'] as $surveillance) {
- if ( $surveillance['source'] == $source ) {
- $pDate = substr($surveillance['dateDerEnvoi'], 8, 2).'/'.
- substr($surveillance['dateDerEnvoi'], 5, 2).'/'.
- substr($surveillance['dateDerEnvoi'], 0, 4);
- if ($pDate != '00/00/0000') {
- echo ' '.$pDate.' '; - } else { - echo '- '; + // foreach ( $this->listSources as $source ) { + // $ok = false; + // foreach ( $item ['sources'] as $surveillance ) { + if ($surveillance ['source'] == $source) { + if ($surveillance ['ref'] != '') { + ?>=$surveillance['ref']?> - - + // / } + // if ($ok === false) { + // ?> + + |
-
-
//=ucfirst($source)?>
+ //=$this->url ( array ('module' => 'user','controller' => 'portfolio','action' => 'ajouter','siret' => $item ['siren'] . $item ['nic'],'source' => $source ), null, true )?> + + //=$source?> + + + +=substr ( $surveillance ['dateAjout'], 8, 2 ) . '/' . substr ( $surveillance ['dateAjout'], 5, 2 ) . '/' . substr ( $surveillance ['dateAjout'], 0, 4 )?>
+ + + +' . $pDate . '
'; + } else { + echo '-
'; + } + // $ok = true; + // } + // } + // if ($ok === false) { + // ?> + + +