Correction liens.
This commit is contained in:
parent
37bc4ffe89
commit
316a8396c6
@ -105,5 +105,5 @@ if (count($this->tabEvent)>0) {
|
||||
?>
|
||||
</select>
|
||||
<div id="subFormSaisie">
|
||||
<?=$this->action('even', 'saisie', null, array('num'=> $this->eventNum, 'siren'=>substr($this->siret,0,9)))?>
|
||||
<?=$this->action('even', 'saisie', input, array('num'=> $this->eventNum, 'siren'=>substr($this->siret,0,9)))?>
|
||||
</div>
|
@ -2,67 +2,87 @@
|
||||
class Input_DirigeantController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
|
||||
|
||||
public function init()
|
||||
{
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Ajouter, modifier ou supprimer des dirigeants oppérationnels
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Retourne Fonctions de direction
|
||||
*/
|
||||
protected function fctDir()
|
||||
{
|
||||
$fctdir = new Application_Model_FctDir();
|
||||
$sql = $fctdir->select('codeFct, libelle');
|
||||
$selectDir['0000'] = '-';
|
||||
$rows = $fctdir->fetchAll($sql);
|
||||
if ( count($rows)>0 ) {
|
||||
foreach ($rows as $item) {
|
||||
$index = str_pad($item->codeFct, 4, "0", STR_PAD_LEFT);
|
||||
$selectDir[$index] = $item->libelle;
|
||||
}
|
||||
}
|
||||
return $selectDir;
|
||||
}
|
||||
|
||||
public function opcontrolAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
|
||||
$request = $this->getRequest();
|
||||
$mode = $request->getParam('mode');
|
||||
$id = $request->getParam('id', null);
|
||||
$siret = $request->getParam('siret');
|
||||
$siren = substr($siret, 0, 9);
|
||||
$nic = substr($siret, 9, 5);
|
||||
|
||||
|
||||
$ws = new WsScores();
|
||||
|
||||
|
||||
switch ($mode) {
|
||||
case 'add':
|
||||
$fonction = $this->fctDir();
|
||||
|
||||
|
||||
$this->view->assign('fonction', $fonction);
|
||||
break;
|
||||
|
||||
|
||||
case 'edit':
|
||||
$fonction = $this->fctDir();
|
||||
$infos = $ws->getDirigeantsOp($siren, $id);
|
||||
|
||||
|
||||
$this->view->assign('fonction', $fonction);
|
||||
$this->view->assign('infos', $infos->item[0]);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
$this->view->assign('mode', $mode);
|
||||
$this->view->assign('id', $id);
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('nic', $nic);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sauvegarder les modifications des dirigeants oppérationnels
|
||||
*/
|
||||
public function opsaveAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
|
||||
$params = $this->getRequest()->getParams();
|
||||
$message = '';
|
||||
|
||||
|
||||
$newDate = '0000-00-00';
|
||||
if (trim($params['naiss_date']) != '') {
|
||||
$date = new Zend_Date($params['naiss_date'], 'dd/MM/yyyy');
|
||||
$newDate = $date->toString('yyyy-MM-dd');
|
||||
}
|
||||
|
||||
|
||||
$infos = array(
|
||||
'siren' => $params['siren'],
|
||||
'nic' => $params['nic'],
|
||||
@ -77,9 +97,9 @@ class Input_DirigeantController extends Zend_Controller_Action
|
||||
'fax' => $params['fax'],
|
||||
'email' => $params['email']
|
||||
);
|
||||
|
||||
|
||||
$ws = new WsScores();
|
||||
|
||||
|
||||
if($params['mode'] == 'add'){
|
||||
$message = $this->view->translate('Ajout');
|
||||
} else if ($params['mode'] == 'edit') {
|
||||
@ -87,9 +107,9 @@ class Input_DirigeantController extends Zend_Controller_Action
|
||||
} else if ($params['mode'] == 'del') {
|
||||
$message = $this->view->translate('Suppression');
|
||||
}
|
||||
|
||||
|
||||
$result = $ws->setDirigeantsOp(json_encode($infos), $params['mode'], $params['id']);
|
||||
|
||||
|
||||
if ($result>0) {
|
||||
$message = $message.' '.$this->view->translate('a été réussi!');
|
||||
} else if ($result===0) {
|
||||
@ -97,7 +117,7 @@ class Input_DirigeantController extends Zend_Controller_Action
|
||||
} else {
|
||||
$message = $result;
|
||||
}
|
||||
|
||||
|
||||
$this->view->assign('message', $message);
|
||||
}
|
||||
}
|
||||
}
|
@ -9,7 +9,7 @@
|
||||
<div class="fieldgrp">
|
||||
<label><?=$this->translate("Civilité") ?></label>
|
||||
<div class="field">
|
||||
<?php
|
||||
<?php
|
||||
$civilites = array('M', 'MME', 'MLE');
|
||||
foreach ($civilites as $civilite) {
|
||||
$checked=(strcmp($civilite, $this->infos->Civilite)==0)?"checked":"";
|
||||
|
@ -1,17 +1,17 @@
|
||||
<form name="dirop" action="<?=$this->url(array('module'=>'input', 'controller'=>'dirigeant',
|
||||
<form name="dirop" action="<?=$this->url(array('module'=>'input', 'controller'=>'dirigeant',
|
||||
'action'=>'opsave'), 'default', true)?>" method="post">
|
||||
<input type="hidden" name="mode" value="<?=$this->mode?>" />
|
||||
<input type="hidden" name="siren" value="<?=$this->siren?>" />
|
||||
<input type="hidden" name="nic" value="<?=$this->nic?>" />
|
||||
<input type="hidden" name="id" value="<?=$this->id?>" />
|
||||
|
||||
<?php
|
||||
<?php
|
||||
if ($this->mode=='add') {
|
||||
echo $this->translate("Ajouter un dirigeant opérationnel");
|
||||
echo $this->partial('/input/dirigeant/opcontrol-form.phtml', array('fonction'=>$this->fonction));
|
||||
} else if ($this->mode=='edit') {
|
||||
echo $this->translate("Modifier le dirigeant opérationnel");
|
||||
echo $this->render('/input/dirigeant/opcontrol-form.phtml');
|
||||
echo $this->render('/dirigeant/opcontrol-form.phtml');
|
||||
} else if ($this->mode=='del')
|
||||
echo $this->translate("Supprimer le dirigeant opérationnel");
|
||||
?>
|
||||
|
@ -71,27 +71,27 @@
|
||||
}
|
||||
?>
|
||||
<?php if( $this->permSurvPriv ) { ?>
|
||||
<p><a href="<?=$this->url(array('module'=>'legal', 'controller'=>'surveillance', 'action'=>'ajouter',
|
||||
<p><a href="<?=$this->url(array('module'=>'default', 'controller'=>'surveillance', 'action'=>'ajouter',
|
||||
'source'=>'privileges', 'siret'=>$this->siret), 'default', true)?>">Commander la mise en suivi des privilèges</a>
|
||||
(surveillance des privilèges auprès du greffe, retour sous 48 à 72h)</p>
|
||||
<?php } ?>
|
||||
|
||||
<p>Privilèges de la sécurité sociale et des régimes complémentaires - <a class="cmdprivilege"
|
||||
title="Commande de privilèges sécurité sociale et des régimes complémentaires"
|
||||
href="<?=$this->url(array('module'=>'legal', 'controller'=>'pieces', 'action'=>'privilege',
|
||||
title="Commande de privilèges sécurité sociale et des régimes complémentaires"
|
||||
href="<?=$this->url(array('module'=>'legal', 'controller'=>'pieces', 'action'=>'privilege',
|
||||
'siren'=>$this->siren, 'type'=>'privsecu'), 'default', true)?>">Commander</a> </p>
|
||||
|
||||
<p>Privilèges du Trésor Public - <a class="cmdprivilege" title="Commande de privilèges du Trésor Public"
|
||||
href="<?=$this->url(array('module'=>'legal', 'controller'=>'pieces', 'action'=>'privilege',
|
||||
href="<?=$this->url(array('module'=>'legal', 'controller'=>'pieces', 'action'=>'privilege',
|
||||
'siren'=>$this->siren, 'type'=>'privtres'), 'default', true)?>">Commander</a></p>
|
||||
|
||||
<p>Nantissements du fonds de commerce ou du fonds artisanal (conventionnels et judiciaires) -
|
||||
<a class="cmdprivilege" title="Commande de nantissements du fonds de commerce"
|
||||
href="<?=$this->url(array('module'=>'legal', 'controller'=>'pieces', 'action'=>'privilege',
|
||||
<p>Nantissements du fonds de commerce ou du fonds artisanal (conventionnels et judiciaires) -
|
||||
<a class="cmdprivilege" title="Commande de nantissements du fonds de commerce"
|
||||
href="<?=$this->url(array('module'=>'legal', 'controller'=>'pieces', 'action'=>'privilege',
|
||||
'siren'=>$this->siren, 'type'=>'nantfond'), 'default', true)?>">Commander</a></p>
|
||||
|
||||
<p>Déclarations de créances - <a class="cmdprivilege" title="Commande de déclarations de créances"
|
||||
href="<?=$this->url(array('module'=>'legal', 'controller'=>'pieces', 'action'=>'privilege',
|
||||
href="<?=$this->url(array('module'=>'legal', 'controller'=>'pieces', 'action'=>'privilege',
|
||||
'siren'=>$this->siren, 'type'=>'declcrea'), 'default', true)?>">Commander</a></p>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
Loading…
Reference in New Issue
Block a user