Nettoyage stylistique

This commit is contained in:
Michael RICOIS 2016-09-07 17:15:42 +02:00
parent d6c48cb150
commit 7024af77ac
6 changed files with 24 additions and 40 deletions

View File

@ -22,6 +22,7 @@ class Legal_JuridiqueController extends Zend_Controller_Action
*/
public function annoncesAction()
{
$this->view->InputLinks = array();
$request = $this->getRequest();
$autrePage = $request->getParam('apage');
@ -94,7 +95,7 @@ class Legal_JuridiqueController extends Zend_Controller_Action
$infos = $ws->getAnnoncesBoamp($siren, $idAnn, $filtre, $position, $nbAffichage);
break;
}
if ($infos === false) $this->_forward('soap', 'error');
if ($infos === false) $this->forward('soap', 'error');
Zend_Registry::get('firebug')->info($infos);
require_once 'Scores/Annonces.php';
$objAnnonces = new Annonces($infos->result->item);
@ -111,10 +112,18 @@ class Legal_JuridiqueController extends Zend_Controller_Action
$this->view->assign('exportObjet', $infos);
$this->view->assign('surveillance', $user->checkPerm('survannonce'));
//Affichage pour une annonce
// --- Affichage pour une annonce
if (!empty($idAnn) && in_array($vue, array('bodacc', 'abod', 'balo', 'asso', 'bomp')) ) {
if ( $user->checkModeEdition() ){
// Lien edition
$this->view->InputLinks[] = array(
'title' => 'Edition Fiche',
'label' => '<span class="glyphicon glyphicon-pencil"></span> Editer la fiche',
'href' => $this->view->url(array('module'=>'input', 'controller'=>'index', 'action'=>'index',
'siret'=>$this->siret, 'id'=>$this->id), 'default', true),
);
$this->view->headScript()->appendFile($this->theme->pathScript.'/saisieannonces.js', 'text/javascript');
}
@ -170,7 +179,7 @@ class Legal_JuridiqueController extends Zend_Controller_Action
$this->renderScript('juridique/annonce.phtml');
}
// --- Affichage pour la liste des annonces
// --- Affichage pour la liste des annonces
} else {
// --- Titre de la page

View File

@ -4,21 +4,6 @@
<h1><?=$this->raisonSociale?> <small><?=$this->SirenTexte($this->siren)?></small></h1>
</div>
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200"></td>
<td width="350" class="StyleInfoData">
<?=$this->raisonSociale?>
<?php if($this->UserModeEdit) { ?>
<a href="<?=$this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'index',
'siret'=>$this->siret, 'id'=>$this->id), 'default', true)?>">(Edition)</a>
<?php } ?>
</td>
</tr>
</table>
<h2 class="titre">Annonces légales</h2>
<?php
switch ($this->annonce['Type']) {
@ -27,7 +12,7 @@ switch ($this->annonce['Type']) {
break;
case 'bodacc':
case 'abod':
?><h2>&Eacute;V&Eacute;NEMENTS L&Eacute;GAUX</h2><?php
?><h3>Ev&eacute;nements l&eacute;gaux</h3><?php
break;
case 'asso':
?><h2>Associations</h2><?php
@ -77,7 +62,7 @@ if ($this->UserModeEdit){
foreach ( $liensEdit as $lienId => $lienItem ){
?>
<a class="<?=$lienItem['class']?>" title="<?=$lienItem['title']?>" href="<?=$this->url(array(
'module'=>'input', 'controller'=>'index', 'action'=>'annoncedialog', 'siret'=>$this->siret,
'module'=>'input', 'controller'=>'index', 'action'=>'annoncedialog', 'siret'=>$this->siret,
'op'=>$lienId, 'code'=>$this->annonce['Code'], 'idAnn'=>$this->idAnn), 'default', true)?>">
<?=$lienItem['img']?></a>
<?php
@ -87,9 +72,11 @@ if ($this->UserModeEdit){
</p>
<p><b><?=$this->annonce['Even']?></b></p>
<p><code><?=$this->RemplaceSiren($this->annonce['Texte'])?></code></p>
<blockquote>
<p><samp><?=$this->RemplaceSiren($this->annonce['Texte'])?></samp></p>
</blockquote>
<div class="paragraph" style="text-align:center;">
<div class="text-center">
<?php if ( $this->lienBodacc ) { ?>
<span id="bodacc" style="padding-bottom:10px;border-bottom:1px solid #cccccc;">
<a href="<?=$this->lienBodacc?>">
@ -120,7 +107,7 @@ Télécharger le bulletin officiel</a>
<?php }?>
</div>
<div class="paragraph" style="text-align:center;">
<div class="text-center">
<?php if (intval($this->siret)!=0) {?>
<?php
$href = $this->url(array('module'=>'legal', 'controller' => 'juridique', 'action' => 'annonces',

View File

@ -1,3 +0,0 @@
<div id="center">
<pre><?php print_r($this->infos); ?></pre>
</div>

View File

@ -17,15 +17,10 @@ if ($this->deleted!='') {
</td>
<td width="450" colspan="2" class="StyleInfoData">
<a class="tiptxt" href="<?=$this->partialLoop()->view->url(array(
'controller' => 'juridique',
'action' => 'annonces',
'siret' => $this->partialLoop()->view->siret,
'id' => $this->partialLoop()->view->id,
'idAnn' => $this->idAnn,
'vue' => $this->type,
))?>">
<?=$this->lib?>
</a>
'module'=>'legal', 'controller'=>'juridique', 'action'=>'annonces',
'siret'=>$this->partialLoop()->view->siret, 'id'=>$this->partialLoop()->view->id,
'idAnn'=>$this->idAnn, 'vue'=>$this->type,
))?>"><?=$this->lib?></a>
<span style="display:none;"><?=$this->RemplaceSiren($this->texte)?></span>
</td>
</tr>

View File

@ -71,7 +71,7 @@
<?php }?>
</td>
</tr>
<tr><td colspan="2">Historique</td></tr>
<tr><td colspan="2" class="info">Historique</td></tr>
<?php if (property_exists($this->Affaire->Histo, 'item') && count($this->Affaire->Histo->item) > 0) {?>
<?php foreach ($this->Affaire->Histo->item as $h){?>
<tr>

View File

@ -38,10 +38,6 @@ body {
padding-right: 15px;
}
code {
font-size: 80%;
}
p.bg-classes {
padding:15px;
}