diff --git a/application/controllers/JuridiqueController.php b/application/controllers/JuridiqueController.php index 0f2d0d273..def6b6fae 100644 --- a/application/controllers/JuridiqueController.php +++ b/application/controllers/JuridiqueController.php @@ -430,6 +430,32 @@ class JuridiqueController extends Zend_Controller_Action } - + public function annoncenumAction() + { + $this->_helper->layout()->disableLayout(); + + $request = $this->getRequest(); + $siren = $request->getParam('siren'); + + $ws = new WsScores(); + $result = $ws->getAnnoncesNum($siren); + Zend_Registry::get('firebug')->info($result); + $numWS = array(); + if (count($result->item)>0) { + foreach ($result->item as $item) { + $numWS[$item->type] = $item->num; + } + } + $types = array('bodacc', 'balo', 'boamp', 'asso'); + + $num = array(); + foreach($types as $type) { + if ( array_key_exists($type, $numWS) ) { + $num['Type'.ucfirst($type)] = $numWS[$type]; + } + } + + $this->view->assign('num', $num); + } } \ No newline at end of file diff --git a/application/views/default/scripts/juridique/annoncenum.phtml b/application/views/default/scripts/juridique/annoncenum.phtml new file mode 100644 index 000000000..81f0e761d --- /dev/null +++ b/application/views/default/scripts/juridique/annoncenum.phtml @@ -0,0 +1 @@ +num)?> diff --git a/application/views/default/scripts/juridique/annonces.phtml b/application/views/default/scripts/juridique/annonces.phtml index b3fd73aaa..e3274e6c3 100644 --- a/application/views/default/scripts/juridique/annonces.phtml +++ b/application/views/default/scripts/juridique/annonces.phtml @@ -79,6 +79,20 @@ div.blockType:hover { border-color:#2f343a; } +div.blockTypeActive span.nb { + background-color: #87CEFA; + /*border-radius: 10px 10px 10px 10px;*/ + font-weight: bold; + padding: 3px; +} + +div.blockType span.nb { + background-color: #778899; + /*border-radius: 10px 10px 10px 10px;*/ + font-weight: bold; + padding: 3px; +} + a.lienType { width:140px; vertical-align:middle; @@ -90,21 +104,21 @@ a.lienType {
-
+
-
+ -
+ -
+ -
+ @@ -196,4 +210,13 @@ Néant AutrePage)) {?> render('cgu.phtml', $this->cgu)?>
- \ No newline at end of file + + + + diff --git a/public/themes/default/scripts/annonces.js b/public/themes/default/scripts/annonces.js index d3fbfbf68..471b606e1 100644 --- a/public/themes/default/scripts/annonces.js +++ b/public/themes/default/scripts/annonces.js @@ -1,6 +1,6 @@ $(document).ready(function(){ - $('.tiptxt').each(function(){ + $('a.tiptxt').each(function(){ var texte = $(this).parent().find('span').html(); if (texte!=''){ $(this).qtip( {