Ajout des liens permettant d'editer les annonces légales
This commit is contained in:
parent
b65cd81c3d
commit
79252f6443
@ -61,6 +61,10 @@ class JuridiqueController extends Zend_Controller_Action
|
||||
'Asso',
|
||||
);
|
||||
|
||||
$user = new Utilisateur();
|
||||
$this->view->assign('hasModeEdition', $user->checkModeEdition());
|
||||
|
||||
$this->view->assign('id', $session->getId());
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
@ -83,6 +87,14 @@ class JuridiqueController extends Zend_Controller_Action
|
||||
);
|
||||
Zend_Registry::get('firebug')->info($infos->result->item);
|
||||
Zend_Registry::get('firebug')->info($annonce);
|
||||
|
||||
$this->view->assign('source', $session->getSource());
|
||||
if (intval($this->siret)==0){
|
||||
$this->view->assign('sourceId', $session->getSourceId());
|
||||
} else {
|
||||
$this->view->assign('sourceId', null);
|
||||
}
|
||||
$this->view->assign('idAnn', $idAnn);
|
||||
$this->view->assign('annonce', $annonce);
|
||||
$this->renderScript('juridique/annonce.phtml');
|
||||
} else {
|
||||
|
@ -14,7 +14,17 @@
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->raisonSociale?>
|
||||
<?php if($this->hasModeEdition) : ?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'saisie',
|
||||
'action' => 'fiche',
|
||||
'siret' => $this->siret,
|
||||
'id' => $this->id,
|
||||
))?>">(Edition)</a>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
@ -50,10 +60,43 @@ switch ($this->annonce['Type']) {
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="3" class="StyleInfoData">
|
||||
<?=$this->annonce['Desc'].' '.$this->annonce['Entree'].' '.$this->annonce['EntreeSD'];?>
|
||||
<?php
|
||||
echo $this->annonce['Desc'].' '.
|
||||
$this->annonce['Entree'].' '.
|
||||
$this->annonce['EntreeSD'];
|
||||
if ($this->hasModeEdition){
|
||||
$liensEdit = array(
|
||||
'edit' => array(
|
||||
'class' => 'annonceEdit',
|
||||
'title' => 'Edition annonce',
|
||||
'img' => '<img src="/themes/default/images/interfaces/editer.png"/>',
|
||||
),
|
||||
'delete' => array(
|
||||
'class' => 'annonceDelete',
|
||||
'title' => 'Suppression annonce',
|
||||
'img' => '<img src="/themes/default/images/interfaces/supprimer.png"/>',
|
||||
),
|
||||
'copy' => array(
|
||||
'class' => 'annonceCopy',
|
||||
'title' => 'Dupliquer sur autre Siren',
|
||||
'img' => '<img src="/themes/default/images/interfaces/save_copy.png"/>',
|
||||
),
|
||||
);
|
||||
|
||||
foreach ( $liensEdit as $lienId => $lienItem ){
|
||||
?>
|
||||
<a class="<?=$lienItem['class']?>" title="<?=$lienItem['title']?>"
|
||||
href="<?=$this->url(array(
|
||||
'controller' => 'saisie',
|
||||
'action' => 'annonce',
|
||||
'siret' => $this->siret,
|
||||
'op' => $lienId,
|
||||
'code' => $this->annonce['Type'],
|
||||
'idAnn' => $this->idAnn,
|
||||
))?>" />
|
||||
<?=$lienItem['img']?>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
@ -82,16 +125,16 @@ switch ($this->annonce['Type']) {
|
||||
<tr>
|
||||
<td colspan="4" align="center" class="StyleInfoData">
|
||||
<?php
|
||||
$source = $_SESSION['tabInfo']['entrep']['Source'];
|
||||
$sourceId = $_SESSION['tabInfo']['entrep']['SourceId'];
|
||||
$href = $this->url(array(
|
||||
'controller' => 'juridique',
|
||||
'action' => 'annonces',
|
||||
'siret' => $this->siret,
|
||||
'id' => $this->id,
|
||||
'idAnn' => '',
|
||||
'vue' => '',
|
||||
));
|
||||
?>
|
||||
<a href="./?page=annonces&siret=<?=$siret?>
|
||||
&idEntreprise=<?=$idEntreprise?>
|
||||
&source=<?=$source?>
|
||||
<?=($siret*1==0) ? '&idan='.$sourceId : '';?>
|
||||
">
|
||||
Revenir à la liste des annonces
|
||||
</a>
|
||||
<a href="<?=$href?>">Revenir à la liste des annonces</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -15,7 +15,17 @@
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->raisonSociale?>
|
||||
<?php if($this->hasModeEdition) : ?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'saisie',
|
||||
'action' => 'fiche',
|
||||
'siret' => $this->siret,
|
||||
'id' => $this->id,
|
||||
))?>">(Edition)</a>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
|
BIN
public/themes/default/images/interfaces/save_copy.png
Normal file
BIN
public/themes/default/images/interfaces/save_copy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 389 B |
Loading…
Reference in New Issue
Block a user