Lien vers le module Input

This commit is contained in:
Michael RICOIS 2016-06-15 11:22:12 +02:00
parent 067c41821e
commit f8b17dcc4c
102 changed files with 7901 additions and 30 deletions

View File

@ -0,0 +1,103 @@
<?php
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
*/
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'],
'civilite' => $params['civilite'],
'nom' => $params['nom'],
'prenom' => $params['prenom'],
'nom_usage' => $params['nom_usage'],
'dateNais' => $newDate,
'lieuNais' => $params['naiss_lieu'],
'codFct' => str_pad($params['codFct'], 4, 0, STR_PAD_LEFT),
'tel' => $params['tel'],
'fax' => $params['fax'],
'email' => $params['email']
);
$ws = new WsScores();
if($params['mode'] == 'add'){
$message = $this->view->translate('Ajout');
} else if ($params['mode'] == 'edit') {
$message = $this->view->translate('Edition');
} 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) {
$message = $message.' '.$this->view->translate('n\'a pas été réussi!');
} else {
$message = $result;
}
$this->view->assign('message', $message);
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,486 @@
<?php
class Input_LiasseController extends Zend_Controller_Action
{
protected $theme;
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
/**
* Saisie de la liasse
*/
public function indexAction()
{
$request = $this->getRequest();
$siret = $request->getParam('siret');
$id = $request->getParam('id');
$siren = substr($siret,0,9);
$this->view->assign('siren', $siren);
$session = new Scores_Session_Entreprise($siret, $id);
$this->view->assign('siret', $siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
require_once 'Scores/WsScores.php';
$ws = new WsScores();
$selection = $request->getParam('selection', '');
if ( !empty($selection) ) {
list($date, $type) = explode(':', $selection);
// --- Correction d'un bilan
if ($date!='NEW') {
$milDate = $milDatePre = null;
$listBilans = $ws->getListeBilans($siren);
if ( count($listBilans->result->item) > 0 ) {
foreach ($listBilans->result->item as $item) {
if ($type == $item->typeBilan) {
if ($item->dateExercice == $date) {
$milDate = $item->dateExercice;
}
if (substr($item->dateExercice,0,4) == intval(substr($date,0,4))-1) {
$milDatePre = $item->dateExercice;
}
}
}
}
if ( null !== $milDate ) {
Zend_Registry::get('firebug')->info('milDate');
$response = $ws->getBilan($siren, $milDate, $type, true);
$infos = new stdClass();
$infos->siren = $response->siren;
$infos->dateCloture = $response->DATE_CLOTURE;
$infos->dateCloturePre = $response->DATE_CLOTURE_PRE;
$infos->dureeMois = $response->DUREE_MOIS;
$infos->dureeMoisPre = $response->DUREE_MOIS_PRE;
$infos->unite = empty($response->MONNAIE_LIV_UNITE) ? 'U' : $response->MONNAIE_LIV_UNITE;
$postes = array();
foreach ($response->POSTES->item as $item) {
$postes[$item->id] = $item->val;
}
} elseif ( null === $milDate && null !== $milDatePre ) {
Zend_Registry::get('firebug')->info('milDatePre');
$response = $ws->getBilan($siren, $milDatePre, $type, true);
Zend_Registry::get('firebug')->info($response);
$infos = new stdClass();
$infos->siren = $response->siren;
$infos->dateCloturePre = $response->DATE_CLOTURE;
$infos->dureeMoisPre = $response->DUREE_MOIS;
$infos->unite = empty($response->MONNAIE_LIV_UNITE) ? 'U' : $response->MONNAIE_LIV_UNITE;
$postesN1 = array();
foreach ($response->POSTES->item as $item) {
$postesN1[$item->id] = $item->val;
}
$postes = array();
/** Reprises des valeures N-1 si l'information est absente en base **/
if ($type=='N' || $type=='C') {
// Actif
if (!isset($postes['AA3']) && isset($postesN1['AA2'])) $postes['AA3']=$postesN1['AA2'];
if (!isset($postes['AC2']) && isset($postesN1['AC1'])) $postes['AC2']=$postesN1['AC1'];
if (!isset($postes['AE2']) && isset($postesN1['AE1'])) $postes['AE2']=$postesN1['AE1'];
if (!isset($postes['AG2']) && isset($postesN1['AG1'])) $postes['AG2']=$postesN1['AG1'];
if (!isset($postes['AI2']) && isset($postesN1['AI1'])) $postes['AI2']=$postesN1['AI1'];
if (!isset($postes['AK2']) && isset($postesN1['AK1'])) $postes['AK2']=$postesN1['AK1'];
if (!isset($postes['AM2']) && isset($postesN1['AM1'])) $postes['AM2']=$postesN1['AM1'];
if (!isset($postes['AO2']) && isset($postesN1['AO1'])) $postes['AO2']=$postesN1['AO1'];
if (!isset($postes['AQ2']) && isset($postesN1['AQ1'])) $postes['AQ2']=$postesN1['AQ1'];
if (!isset($postes['AS2']) && isset($postesN1['AS1'])) $postes['AS2']=$postesN1['AS1'];
if (!isset($postes['AU2']) && isset($postesN1['AU1'])) $postes['AU2']=$postesN1['AU1'];
if (!isset($postes['AW2']) && isset($postesN1['AW1'])) $postes['AW2']=$postesN1['AW1'];
if (!isset($postes['AY2']) && isset($postesN1['AY1'])) $postes['AY2']=$postesN1['AY1'];
if (!isset($postes['CT2']) && isset($postesN1['CT1'])) $postes['CT2']=$postesN1['CT1'];
if (!isset($postes['CV2']) && isset($postesN1['CV1'])) $postes['CV2']=$postesN1['CV1'];
if (!isset($postes['BC2']) && isset($postesN1['BC1'])) $postes['BC2']=$postesN1['BC1'];
if (!isset($postes['BE2']) && isset($postesN1['BE1'])) $postes['BE2']=$postesN1['BE1'];
if (!isset($postes['BG2']) && isset($postesN1['BG1'])) $postes['BG2']=$postesN1['BG1'];
if (!isset($postes['BI2']) && isset($postesN1['BI1'])) $postes['BI2']=$postesN1['BI1'];
if (!isset($postes['BK2']) && isset($postesN1['BK1'])) $postes['BK2']=$postesN1['BK1'];
if (!isset($postes['BM2']) && isset($postesN1['BM1'])) $postes['BM2']=$postesN1['BM1'];
if (!isset($postes['BO2']) && isset($postesN1['BO1'])) $postes['BO2']=$postesN1['BO1'];
if (!isset($postes['BQ2']) && isset($postesN1['BQ1'])) $postes['BQ2']=$postesN1['BQ1'];
if (!isset($postes['BS2']) && isset($postesN1['BS1'])) $postes['BS2']=$postesN1['BS1'];
if (!isset($postes['BU2']) && isset($postesN1['BU1'])) $postes['BU2']=$postesN1['BU1'];
if (!isset($postes['BW2']) && isset($postesN1['BW1'])) $postes['BW2']=$postesN1['BW1'];
if (!isset($postes['BY2']) && isset($postesN1['BY1'])) $postes['BY2']=$postesN1['BY1'];
if (!isset($postes['CA2']) && isset($postesN1['CA1'])) $postes['CA2']=$postesN1['CA1'];
if (!isset($postes['CC2']) && isset($postesN1['CC1'])) $postes['CC2']=$postesN1['CC1'];
if (!isset($postes['CE2']) && isset($postesN1['CE1'])) $postes['CE2']=$postesN1['CE1'];
if (!isset($postes['CG2']) && isset($postesN1['CG1'])) $postes['CG2']=$postesN1['CG1'];
if (!isset($postes['CI2']) && isset($postesN1['CI1'])) $postes['CI2']=$postesN1['CI1'];
if (!isset($postes['CK2']) && isset($postesN1['CK1'])) $postes['CK2']=$postesN1['CK1'];
if (!isset($postes['CL3']) && isset($postesN1['CL2'])) $postes['CL3']=$postesN1['CL2'];
if (!isset($postes['CM3']) && isset($postesN1['CM2'])) $postes['CM3']=$postesN1['CM2'];
if (!isset($postes['CN3']) && isset($postesN1['CN2'])) $postes['CN3']=$postesN1['CN2'];
if (!isset($postes['1A2']) && isset($postesN1['1A1'])) $postes['1A2']=$postesN1['1A1'];
// Passif
if (!isset($postes['DA1']) && isset($postesN1['DA'])) $postes['DA1']=$postesN1['DA'];
if (!isset($postes['DB1']) && isset($postesN1['DB'])) $postes['DB1']=$postesN1['DB'];
if (!isset($postes['DC1']) && isset($postesN1['DC'])) $postes['DC1']=$postesN1['DC'];
if (!isset($postes['DD1']) && isset($postesN1['DD'])) $postes['DD1']=$postesN1['DD'];
if (!isset($postes['DE1']) && isset($postesN1['DE'])) $postes['DE1']=$postesN1['DE'];
if (!isset($postes['DF1']) && isset($postesN1['DF'])) $postes['DF1']=$postesN1['DF'];
if (!isset($postes['DG1']) && isset($postesN1['DG'])) $postes['DG1']=$postesN1['DG'];
if (!isset($postes['DH1']) && isset($postesN1['DH'])) $postes['DH1']=$postesN1['DH'];
if (!isset($postes['DI1']) && isset($postesN1['DI'])) $postes['DI1']=$postesN1['DI'];
if (!isset($postes['DJ1']) && isset($postesN1['DJ'])) $postes['DJ1']=$postesN1['DJ'];
if (!isset($postes['DK1']) && isset($postesN1['DK'])) $postes['DK1']=$postesN1['DK'];
if (!isset($postes['DL1']) && isset($postesN1['DL'])) $postes['DL1']=$postesN1['DL'];
if (!isset($postes['DM1']) && isset($postesN1['DM'])) $postes['DM1']=$postesN1['DM'];
if (!isset($postes['DN1']) && isset($postesN1['DN'])) $postes['DN1']=$postesN1['DN'];
if (!isset($postes['DO1']) && isset($postesN1['DO'])) $postes['DO1']=$postesN1['DO'];
if (!isset($postes['DP1']) && isset($postesN1['DP'])) $postes['DP1']=$postesN1['DP'];
if (!isset($postes['DQ1']) && isset($postesN1['DQ'])) $postes['DQ1']=$postesN1['DQ'];
if (!isset($postes['DR1']) && isset($postesN1['DR'])) $postes['DR1']=$postesN1['DR'];
if (!isset($postes['DS1']) && isset($postesN1['DS'])) $postes['DS1']=$postesN1['DS'];
if (!isset($postes['DT1']) && isset($postesN1['DT'])) $postes['DT1']=$postesN1['DT'];
if (!isset($postes['DU1']) && isset($postesN1['DU'])) $postes['DU1']=$postesN1['DU'];
if (!isset($postes['DV1']) && isset($postesN1['DV'])) $postes['DV1']=$postesN1['DV'];
if (!isset($postes['DW1']) && isset($postesN1['DW'])) $postes['DW1']=$postesN1['DW'];
if (!isset($postes['DX1']) && isset($postesN1['DX'])) $postes['DX1']=$postesN1['DX'];
if (!isset($postes['DY1']) && isset($postesN1['DY'])) $postes['DY1']=$postesN1['DY'];
if (!isset($postes['DZ1']) && isset($postesN1['DZ'])) $postes['DZ1']=$postesN1['DZ'];
if (!isset($postes['EA1']) && isset($postesN1['EA'])) $postes['EA1']=$postesN1['EA'];
if (!isset($postes['EB1']) && isset($postesN1['EB'])) $postes['EB1']=$postesN1['EB'];
if (!isset($postes['EC1']) && isset($postesN1['EC'])) $postes['EC1']=$postesN1['EC'];
if (!isset($postes['ED1']) && isset($postesN1['ED'])) $postes['ED1']=$postesN1['ED'];
if (!isset($postes['EE1']) && isset($postesN1['EE'])) $postes['EE1']=$postesN1['EE'];
if (!isset($postes['1B1']) && isset($postesN1['1B'])) $postes['1B1']=$postesN1['1B'];
if (!isset($postes['1C1']) && isset($postesN1['1C'])) $postes['1C1']=$postesN1['1C'];
if (!isset($postes['1D1']) && isset($postesN1['1D'])) $postes['1D1']=$postesN1['1D'];
if (!isset($postes['1E1']) && isset($postesN1['1E'])) $postes['1E1']=$postesN1['1E'];
if (!isset($postes['EF1']) && isset($postesN1['EF'])) $postes['EF1']=$postesN1['EF'];
if (!isset($postes['EG1']) && isset($postesN1['EG'])) $postes['EG1']=$postesN1['EG'];
if (!isset($postes['EH1']) && isset($postesN1['EH'])) $postes['EH1']=$postesN1['EH'];
// Compte de Résultats
if (!isset($postes['FC1']) && isset($postesN1['FC'])) $postes['FC1']=$postesN1['FC'];
if (!isset($postes['FF1']) && isset($postesN1['FF'])) $postes['FF1']=$postesN1['FF'];
if (!isset($postes['FI1']) && isset($postesN1['FI'])) $postes['FI1']=$postesN1['FI'];
if (!isset($postes['FL1']) && isset($postesN1['FL'])) $postes['FL1']=$postesN1['FL'];
if (!isset($postes['FM1']) && isset($postesN1['FM'])) $postes['FM1']=$postesN1['FM'];
if (!isset($postes['FN1']) && isset($postesN1['FN'])) $postes['FN1']=$postesN1['FN'];
if (!isset($postes['FO1']) && isset($postesN1['FO'])) $postes['FO1']=$postesN1['FO'];
if (!isset($postes['FP1']) && isset($postesN1['FP'])) $postes['FP1']=$postesN1['FP'];
if (!isset($postes['FQ1']) && isset($postesN1['FQ'])) $postes['FQ1']=$postesN1['FQ'];
if (!isset($postes['FR1']) && isset($postesN1['FR'])) $postes['FR1']=$postesN1['FR'];
if (!isset($postes['FS1']) && isset($postesN1['FS'])) $postes['FS1']=$postesN1['FS'];
if (!isset($postes['FT1']) && isset($postesN1['FT'])) $postes['FT1']=$postesN1['FT'];
if (!isset($postes['FU1']) && isset($postesN1['FU'])) $postes['FU1']=$postesN1['FU'];
if (!isset($postes['FV1']) && isset($postesN1['FV'])) $postes['FV1']=$postesN1['FV'];
if (!isset($postes['FW1']) && isset($postesN1['FW'])) $postes['FW1']=$postesN1['FW'];
if (!isset($postes['FX1']) && isset($postesN1['FX'])) $postes['FX1']=$postesN1['FX'];
if (!isset($postes['FY1']) && isset($postesN1['FY'])) $postes['FY1']=$postesN1['FY'];
if (!isset($postes['FZ1']) && isset($postesN1['FZ'])) $postes['FZ1']=$postesN1['FZ'];
if (!isset($postes['GA1']) && isset($postesN1['GA'])) $postes['GA1']=$postesN1['GA'];
if (!isset($postes['GB1']) && isset($postesN1['GB'])) $postes['GB1']=$postesN1['GB'];
if (!isset($postes['GC1']) && isset($postesN1['GC'])) $postes['GC1']=$postesN1['GC'];
if (!isset($postes['GD1']) && isset($postesN1['GD'])) $postes['GD1']=$postesN1['GD'];
if (!isset($postes['GE1']) && isset($postesN1['GE'])) $postes['GE1']=$postesN1['GE'];
if (!isset($postes['GF1']) && isset($postesN1['GF'])) $postes['GF1']=$postesN1['GF'];
if (!isset($postes['GG1']) && isset($postesN1['GG'])) $postes['GG1']=$postesN1['GG'];
if (!isset($postes['GH1']) && isset($postesN1['GH'])) $postes['GH1']=$postesN1['GH'];
if (!isset($postes['GI1']) && isset($postesN1['GI'])) $postes['GI1']=$postesN1['GI'];
if (!isset($postes['GJ1']) && isset($postesN1['GJ'])) $postes['GJ1']=$postesN1['GJ'];
if (!isset($postes['GK1']) && isset($postesN1['GK'])) $postes['GK1']=$postesN1['GK'];
if (!isset($postes['GL1']) && isset($postesN1['GL'])) $postes['GL1']=$postesN1['GL'];
if (!isset($postes['GM1']) && isset($postesN1['GM'])) $postes['GM1']=$postesN1['GM'];
if (!isset($postes['GN1']) && isset($postesN1['GN'])) $postes['GN1']=$postesN1['GN'];
if (!isset($postes['GO1']) && isset($postesN1['GO'])) $postes['GO1']=$postesN1['GO'];
if (!isset($postes['GP1']) && isset($postesN1['GP'])) $postes['GP1']=$postesN1['GP'];
if (!isset($postes['GQ1']) && isset($postesN1['GQ'])) $postes['GQ1']=$postesN1['GQ'];
if (!isset($postes['GR1']) && isset($postesN1['GR'])) $postes['GR1']=$postesN1['GR'];
if (!isset($postes['GS1']) && isset($postesN1['GS'])) $postes['GS1']=$postesN1['GS'];
if (!isset($postes['GT1']) && isset($postesN1['GT'])) $postes['GT1']=$postesN1['GT'];
if (!isset($postes['GU1']) && isset($postesN1['GU'])) $postes['GU1']=$postesN1['GU'];
if (!isset($postes['GV1']) && isset($postesN1['GV'])) $postes['GV1']=$postesN1['GV'];
if (!isset($postes['GW1']) && isset($postesN1['GW'])) $postes['GW1']=$postesN1['GW'];
if (!isset($postes['HA1']) && isset($postesN1['HA'])) $postes['HA1']=$postesN1['HA'];
if (!isset($postes['HB1']) && isset($postesN1['HB'])) $postes['HB1']=$postesN1['HB'];
if (!isset($postes['HC1']) && isset($postesN1['HC'])) $postes['HC1']=$postesN1['HC'];
if (!isset($postes['HD1']) && isset($postesN1['HD'])) $postes['HD1']=$postesN1['HD'];
if (!isset($postes['HE1']) && isset($postesN1['HE'])) $postes['HE1']=$postesN1['HE'];
if (!isset($postes['HF1']) && isset($postesN1['HF'])) $postes['HF1']=$postesN1['HF'];
if (!isset($postes['HG1']) && isset($postesN1['HG'])) $postes['HG1']=$postesN1['HG'];
if (!isset($postes['HH1']) && isset($postesN1['HH'])) $postes['HH1']=$postesN1['HH'];
if (!isset($postes['HI1']) && isset($postesN1['HI'])) $postes['HI1']=$postesN1['HI'];
if (!isset($postes['HJ1']) && isset($postesN1['HJ'])) $postes['HJ1']=$postesN1['HJ'];
if (!isset($postes['HK1']) && isset($postesN1['HK'])) $postes['HK1']=$postesN1['HK'];
if (!isset($postes['HL1']) && isset($postesN1['HL'])) $postes['HL1']=$postesN1['HL'];
if (!isset($postes['HM1']) && isset($postesN1['HM'])) $postes['HM1']=$postesN1['HM'];
if (!isset($postes['HN1']) && isset($postesN1['HN'])) $postes['HN1']=$postesN1['HN'];
if (!isset($postes['HO1']) && isset($postesN1['HO'])) $postes['HO1']=$postesN1['HO'];
if (!isset($postes['HY1']) && isset($postesN1['HY'])) $postes['HY1']=$postesN1['HY'];
if (!isset($postes['1G1']) && isset($postesN1['1G'])) $postes['1G1']=$postesN1['1G'];
if (!isset($postes['HP1']) && isset($postesN1['HP'])) $postes['HP1']=$postesN1['HP'];
if (!isset($postes['HQ1']) && isset($postesN1['HQ'])) $postes['HQ1']=$postesN1['HQ'];
if (!isset($postes['1H1']) && isset($postesN1['1H'])) $postes['1H1']=$postesN1['1H'];
if (!isset($postes['1J1']) && isset($postesN1['1J'])) $postes['1J1']=$postesN1['1J'];
if (!isset($postes['1K1']) && isset($postesN1['1K'])) $postes['1K1']=$postesN1['1K'];
if (!isset($postes['HX1']) && isset($postesN1['HX'])) $postes['HX1']=$postesN1['HX'];
if (!isset($postes['A11']) && isset($postesN1['A1'])) $postes['A11']=$postesN1['A1'];
if (!isset($postes['A21']) && isset($postesN1['A2'])) $postes['A21']=$postesN1['A2'];
if (!isset($postes['A31']) && isset($postesN1['A3'])) $postes['A31']=$postesN1['A3'];
if (!isset($postes['A41']) && isset($postesN1['A4'])) $postes['A41']=$postesN1['A4'];
} elseif ($type=='S') {
// Calcul des chiffres net N-1 si absent 2033
if (!isset($postesN1['013']) && (isset($postesN1['010'])||isset($postesN1['012'])))$postesN1['013']=$postesN1['010']-$postesN1['012'];
if (!isset($postesN1['017']) && (isset($postesN1['014'])||isset($postesN1['016'])))$postesN1['017']=$postesN1['014']-$postesN1['016'];
if (!isset($postesN1['031']) && (isset($postesN1['028'])||isset($postesN1['030'])))$postesN1['031']=$postesN1['028']-$postesN1['030'];
if (!isset($postesN1['043']) && (isset($postesN1['040'])||isset($postesN1['042'])))$postesN1['043']=$postesN1['040']-$postesN1['042'];
if (!isset($postesN1['049']) && (isset($postesN1['044'])||isset($postesN1['048'])))$postesN1['049']=$postesN1['044']-$postesN1['048'];
if (!isset($postesN1['053']) && (isset($postesN1['050'])||isset($postesN1['052'])))$postesN1['053']=$postesN1['050']-$postesN1['052'];
if (!isset($postesN1['063']) && (isset($postesN1['060'])||isset($postesN1['062'])))$postesN1['063']=$postesN1['060']-$postesN1['062'];
if (!isset($postesN1['067']) && (isset($postesN1['064'])||isset($postesN1['066'])))$postesN1['067']=$postesN1['064']-$postesN1['066'];
if (!isset($postesN1['071']) && (isset($postesN1['068'])||isset($postesN1['070'])))$postesN1['071']=$postesN1['068']-$postesN1['070'];
if (!isset($postesN1['075']) && (isset($postesN1['072'])||isset($postesN1['074'])))$postesN1['075']=$postesN1['072']-$postesN1['074'];
if (!isset($postesN1['083']) && (isset($postesN1['080'])||isset($postesN1['082'])))$postesN1['083']=$postesN1['080']-$postesN1['082'];
if (!isset($postesN1['087']) && (isset($postesN1['084'])||isset($postesN1['086'])))$postesN1['087']=$postesN1['084']-$postesN1['086'];
if (!isset($postesN1['091']) && (isset($postesN1['088'])||isset($postesN1['090'])))$postesN1['091']=$postesN1['088']-$postesN1['090'];
if (!isset($postesN1['095']) && (isset($postesN1['092'])||isset($postesN1['094'])))$postesN1['095']=$postesN1['092']-$postesN1['094'];
if (!isset($postesN1['099']) && (isset($postesN1['096'])||isset($postesN1['098'])))$postesN1['099']=$postesN1['096']-$postesN1['098'];
if (!isset($postesN1['113']) && (isset($postesN1['110'])||isset($postesN1['112'])))$postesN1['113']=$postesN1['110']-$postesN1['112'];
// Récupération des chiffres N-1 si absent du bilan N
// ACTIF 2033
if (!isset($postes['N00']) && isset($postesN1['013'])) $postes['N00']=$postesN1['013'];
if (!isset($postes['N01']) && isset($postesN1['017'])) $postes['N01']=$postesN1['017'];
if (!isset($postes['N02']) && isset($postesN1['031'])) $postes['N02']=$postesN1['031'];
if (!isset($postes['N03']) && isset($postesN1['043'])) $postes['N03']=$postesN1['043'];
if (!isset($postes['N04']) && isset($postesN1['049'])) $postes['N04']=$postesN1['049'];
if (!isset($postes['N05']) && isset($postesN1['053'])) $postes['N05']=$postesN1['053'];
if (!isset($postes['N06']) && isset($postesN1['063'])) $postes['N06']=$postesN1['063'];
if (!isset($postes['N07']) && isset($postesN1['067'])) $postes['N07']=$postesN1['067'];
if (!isset($postes['N08']) && isset($postesN1['071'])) $postes['N08']=$postesN1['071'];
if (!isset($postes['N09']) && isset($postesN1['075'])) $postes['N09']=$postesN1['075'];
if (!isset($postes['N10']) && isset($postesN1['083'])) $postes['N10']=$postesN1['083'];
if (!isset($postes['N11']) && isset($postesN1['087'])) $postes['N11']=$postesN1['087'];
if (!isset($postes['N12']) && isset($postesN1['091'])) $postes['N12']=$postesN1['091'];
if (!isset($postes['N13']) && isset($postesN1['095'])) $postes['N13']=$postesN1['095'];
if (!isset($postes['N14']) && isset($postesN1['099'])) $postes['N14']=$postesN1['099'];
if (!isset($postes['N15']) && isset($postesN1['113'])) $postes['N15']=$postesN1['113'];
// PASSIF 2033
if (!isset($postes['N16']) && isset($postesN1['120'])) $postes['N16']=$postesN1['120'];
if (!isset($postes['N17']) && isset($postesN1['124'])) $postes['N17']=$postesN1['124'];
if (!isset($postes['N18']) && isset($postesN1['126'])) $postes['N18']=$postesN1['126'];
if (!isset($postes['N19']) && isset($postesN1['130'])) $postes['N19']=$postesN1['130'];
if (!isset($postes['N20']) && isset($postesN1['132'])) $postes['N20']=$postesN1['132'];
if (!isset($postes['N21']) && isset($postesN1['134'])) $postes['N21']=$postesN1['134'];
if (!isset($postes['N22']) && isset($postesN1['136'])) $postes['N22']=$postesN1['136'];
if (!isset($postes['N23']) && isset($postesN1['140'])) $postes['N23']=$postesN1['140'];
if (!isset($postes['N24']) && isset($postesN1['142'])) $postes['N24']=$postesN1['142'];
if (!isset($postes['N25']) && isset($postesN1['154'])) $postes['N25']=$postesN1['154'];
if (!isset($postes['N26']) && isset($postesN1['156'])) $postes['N26']=$postesN1['156'];
if (!isset($postes['N27']) && isset($postesN1['164'])) $postes['N27']=$postesN1['164'];
if (!isset($postes['N28']) && isset($postesN1['166'])) $postes['N28']=$postesN1['166'];
if (!isset($postes['N29']) && isset($postesN1['172'])) $postes['N29']=$postesN1['172'];
if (!isset($postes['N30']) && isset($postesN1['174'])) $postes['N30']=$postesN1['174'];
if (!isset($postes['N31']) && isset($postesN1['176'])) $postes['N31']=$postesN1['176'];
if (!isset($postes['N32']) && isset($postesN1['180'])) $postes['N32']=$postesN1['180'];
// COMPTE DE RESULTAT 2033
if (!isset($postes['N33']) && isset($postesN1['210'])) $postes['N33']=$postesN1['210'];
if (!isset($postes['N34']) && isset($postesN1['214'])) $postes['N34']=$postesN1['214'];
if (!isset($postes['N35']) && isset($postesN1['218'])) $postes['N35']=$postesN1['218'];
if (!isset($postes['N36']) && isset($postesN1['222'])) $postes['N36']=$postesN1['222'];
if (!isset($postes['N37']) && isset($postesN1['224'])) $postes['N37']=$postesN1['224'];
if (!isset($postes['N38']) && isset($postesN1['226'])) $postes['N38']=$postesN1['226'];
if (!isset($postes['N39']) && isset($postesN1['230'])) $postes['N39']=$postesN1['230'];
if (!isset($postes['N40']) && isset($postesN1['232'])) $postes['N40']=$postesN1['232'];
if (!isset($postes['N41']) && isset($postesN1['234'])) $postes['N41']=$postesN1['234'];
if (!isset($postes['N42']) && isset($postesN1['236'])) $postes['N42']=$postesN1['236'];
if (!isset($postes['N43']) && isset($postesN1['238'])) $postes['N43']=$postesN1['238'];
if (!isset($postes['N44']) && isset($postesN1['240'])) $postes['N44']=$postesN1['240'];
if (!isset($postes['N45']) && isset($postesN1['242'])) $postes['N45']=$postesN1['242'];
if (!isset($postes['N46']) && isset($postesN1['244'])) $postes['N46']=$postesN1['244'];
if (!isset($postes['N47']) && isset($postesN1['250'])) $postes['N47']=$postesN1['250'];
if (!isset($postes['N48']) && isset($postesN1['252'])) $postes['N48']=$postesN1['252'];
if (!isset($postes['N49']) && isset($postesN1['254'])) $postes['N49']=$postesN1['254'];
if (!isset($postes['N50']) && isset($postesN1['256'])) $postes['N50']=$postesN1['256'];
if (!isset($postes['N51']) && isset($postesN1['262'])) $postes['N51']=$postesN1['262'];
if (!isset($postes['N52']) && isset($postesN1['264'])) $postes['N52']=$postesN1['264'];
if (!isset($postes['N53']) && isset($postesN1['270'])) $postes['N53']=$postesN1['270'];
if (!isset($postes['N54']) && isset($postesN1['280'])) $postes['N54']=$postesN1['280'];
if (!isset($postes['N55']) && isset($postesN1['290'])) $postes['N55']=$postesN1['290'];
if (!isset($postes['N56']) && isset($postesN1['294'])) $postes['N56']=$postesN1['294'];
if (!isset($postes['N57']) && isset($postesN1['300'])) $postes['N57']=$postesN1['300'];
if (!isset($postes['N58']) && isset($postesN1['306'])) $postes['N58']=$postesN1['306'];
if (!isset($postes['N59']) && isset($postesN1['310'])) $postes['N59']=$postesN1['310'];
} elseif ($type=='A' || $type=='B') {
// BANQUES
if (!isset($postes['NA1']) && isset($postesN1['AA1'])) $postes['NA1']=$postesN1['AA1'];
if (!isset($postes['NA2']) && isset($postesN1['AA2'])) $postes['NA2']=$postesN1['AA2'];
if (!isset($postes['NA3']) && isset($postesN1['AA3'])) $postes['NA3']=$postesN1['AA3'];
if (!isset($postes['NP1']) && isset($postesN1['AP1'])) $postes['NP1']=$postesN1['AP1'];
if (!isset($postes['NP2']) && isset($postesN1['AP2'])) $postes['NP2']=$postesN1['AP2'];
if (!isset($postes['NP3']) && isset($postesN1['AP3'])) $postes['NP3']=$postesN1['AP3'];
if (!isset($postes['NP4']) && isset($postesN1['AP4'])) $postes['NP4']=$postesN1['AP4'];
if (!isset($postes['NP5']) && isset($postesN1['AP5'])) $postes['NP5']=$postesN1['AP5'];
if (!isset($postes['NP6']) && isset($postesN1['AP6'])) $postes['NP6']=$postesN1['AP6'];
if (!isset($postes['NP7']) && isset($postesN1['AP7'])) $postes['NP7']=$postesN1['AP7'];
if (!isset($postes['NP8']) && isset($postesN1['AP8'])) $postes['NP8']=$postesN1['AP8'];
if (!isset($postes['NP9']) && isset($postesN1['AP9'])) $postes['NP9']=$postesN1['AP9'];
if (!isset($postes['NR1']) && isset($postesN1['AR1'])) $postes['NR1']=$postesN1['AR1'];
if (!isset($postes['NR2']) && isset($postesN1['AR2'])) $postes['NR2']=$postesN1['AR2'];
if (!isset($postes['NR3']) && isset($postesN1['AR3'])) $postes['NR3']=$postesN1['AR3'];
// ASSURANCE
if (!isset($postes['NR4']) && isset($postesN1['AR4'])) $postes['AR4']=$postesN1['AR4'];
}
} else {
$infos = 'NEW';
}
} else {
$infos = 'NEW';
}
}
$ancres = array(
'C' => array(
'actif' => 'Actif',
'passif' => 'Passif',
'compteDeResultat' => 'Compte de résultat',
//+ Poste YP pour l'effectif du groupe
),
'N' => array(
'actif' => 'Actif',
'passif' => 'Passif',
'compteDeResultat' => 'Compte de résultat',
'immobilisations' => 'Immobilisations',
'amortissements' => 'Amortissements',
'provisions' => 'Provisions',
'creancesDettes' => 'Créances, Dettes',
'resultatfiscal' => 'Détermination du résultat fiscal',
'deficit' => 'DÉFICITS, INDEMNITÉS POUR CONGÉS À PAYER ET PROVISIONS NON DÉDUCTIBLES',
'affectation' => 'Affectation',
'annexe16' => 'DÉTERMINATION DE LA VALEUR AJOUTÉE PRODUITE AU COURS DE L\'EXERCICE',
),
'S' => array(
'actif' => 'Actif',
'passif' => 'Passif',
'compteDeResultat' => 'Compte de résultat',
'immobilisations' => 'Immobilisations',
'amortissements' => 'Amortissements',
'provisions' => 'Provisions',
'creancesDettes' => 'Créances, Dettes',
'affectation' => 'Affectation'
),
'A' => array(
'actif' => 'Actif',
'passif' => 'Passif',
'compteDeResultat' => 'Compte de résultat',
),
'B' => array(
'actif' => 'Actif',
'passif' => 'Passif',
'compteDeResultat' => 'Compte de résultat',
),
);
if (!empty($infos)) {
// --- Default value pour les nouveaux bilans
if ( is_string($infos) && $infos == 'NEW' ) {
$dateCloture = (date('Y')-1).'1231';
$dureeMois = '12';
$dateCloturePre = 'AAAAMMJJ';
$dureeMoisPre = '0';
$unite = 'U';
}
// --- Default value pour l' edition de bilan
else {
$dateCloture = ($infos->dateCloture!='') ? $infos->dateCloture : $date;
$dureeMois = ($infos->dureeMois!='') ? $infos->dureeMois : '12';
$dateCloturePre = empty($infos->dateCloturePre) ? 'AAAAMMJJ' : $infos->dateCloturePre ;
$dureeMoisPre = empty($infos->dureeMoisPre) ? '0' : $infos->dureeMoisPre;
$unite = $infos->unite;
$this->view->assign('liasse', $postes);
}
// --- Formattage date
$dateCloture = substr($dateCloture,6,2).'/'.substr($dateCloture,4,2).'/'.substr($dateCloture,0,4);
$dateCloturePre = substr($dateCloturePre,6,2).'/'.substr($dateCloturePre,4,2).'/'.substr($dateCloturePre,0,4);
$this->view->assign('dateCloture', $dateCloture);
$this->view->assign('dateCloturePre', $dateCloturePre);
$this->view->assign('dureeMois', $dureeMois);
$this->view->assign('dureeMoisPre', $dureeMoisPre);
$this->view->assign('unite', $unite);
$this->view->assign('typeBilan', $type);
$this->view->assign('ancres', $ancres[$type]);
$this->view->inlineScript()->appendFile('/libs/editable/jquery.jeditable.js');
$this->view->assign('infos', $infos);
}
}
/**
* Sauvegarde de la liasse saisie
*/
public function saveAction()
{
$this->_helper->layout()->disableLayout();
//Renvoyer flux json STATUS : OK ou ERR, MESSAGE : TEXTE, POSTE : ARRAY ou vide
$request = $this->getRequest();
$params = $request->getParams();
$dateCloture = substr($params['dateCloture'],6,4).
substr($params['dateCloture'],3,2).
substr($params['dateCloture'],0,2);
$dateCloturePre = substr($params['dateCloturePre'],6,4).
substr($params['dateCloturePre'],3,2).
substr($params['dateCloturePre'],0,2);
if (isset($params['originalDateCloture'])) {
$originalDateCloture = substr($params['originalDateCloture'],6,4).
substr($params['originalDateCloture'],3,2).
substr($params['originalDateCloture'],0,2);
} else {
$originalDateCloture = $dateCloture;
}
if (isset($params['originalTypeBilan'])) {
$originalTypeBilan = $params['originalTypeBilan'];
} else {
$originalTypeBilan = $params['typeBilan'];
}
$ws = new WsScores();
$response = $ws->setBilan(
$params['siren'],
$originalDateCloture,
$originalTypeBilan,
$params['unite'],
$dateCloture,
$params['dureeMois'],
$dateCloturePre,
$params['dureeMoisPre'],
$params['typeBilan'],
$params['postes'],
$params['step']
);
Zend_Registry::get('firebug')->info($response);
if (is_int($response)) {
$this->view->assign('result', array('status'=>'OK'));
} else {
if ( preg_match_all('/([A-Z0-9]{2,});?/', $response, $postes) ) {
Zend_Registry::get('firebug')->info($postes[1]);
$this->view->assign('result', array(
'status'=>'ERR',
'message'=>'Erreur valeur',
'postes' => $postes[1],
));
} else {
$this->view->assign('result', array(
'status'=>'ERR',
'message'=>$response,
'postes'=>array(),
));
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1 +1,302 @@
<?php
/**
*
* @todo vérifier contenu de la table des cours d'appel en dur
* au 20150305:
* 98713 PAPEETE CEDEX
* 97262 FORT DE FRANCE CEDEX
* Chambre Détachée de la Cour d'Appel de Fort de France à Cayenne", "triCP"=>"97300
* qui devrait être "cours d'appel de Cayenne"
* 97600 MAMOUDZOU
* 97500 ST PIERRE ET MIQUELON
*
*/
class Input_MandataireController extends Zend_Controller_Action
{
protected $theme;
protected $coursAppel = array(
array( "triId"=>"1756", "triCode"=>"AIXPRL", "triNom"=>"Cour d'Appel d'Aix-en-Provence", "triCP"=>"13616" ),
array( "triId"=>"1757", "triCode"=>"AMIENL", "triNom"=>"Cour d'Appel d'Amiens", "triCP"=>"80027" ),
array( "triId"=>"1758", "triCode"=>"ANGERL", "triNom"=>"Cour d'Appel d'Angers", "triCP"=>"49043" ),
array( "triId"=>"1759", "triCode"=>"BASSEL", "triNom"=>"Cour d'Appel de Basse-Terre", "triCP"=>"97109" ),
array( "triId"=>"1760", "triCode"=>"BASTIL", "triNom"=>"Cour d'Appel de Bastia", "triCP"=>"20407" ),
array( "triId"=>"1761", "triCode"=>"BESANL", "triNom"=>"Cour d'Appel de Besançon", "triCP"=>"25017" ),
array( "triId"=>"1762", "triCode"=>"BORDEL", "triNom"=>"Cour d'Appel de Bordeaux", "triCP"=>"33077" ),
array( "triId"=>"1763", "triCode"=>"BOURGL", "triNom"=>"Cour d'Appel de Bourges", "triCP"=>"18023" ),
array( "triId"=>"1764", "triCode"=>"CAENL", "triNom"=>"Cour d'Appel de Caen", "triCP"=>"14050" ),
array( "triId"=>"1765", "triCode"=>"CHAMBL", "triNom"=>"Cour d'Appel de Chambéry", "triCP"=>"73018" ),
array( "triId"=>"1766", "triCode"=>"COLMAL", "triNom"=>"Cour d'Appel de Colmar", "triCP"=>"68027" ),
array( "triId"=>"1767", "triCode"=>"DIJONL", "triNom"=>"Cour d'Appel de Dijon", "triCP"=>"21034" ),
array( "triId"=>"1768", "triCode"=>"DOUAIL", "triNom"=>"Cour d'Appel de Douai", "triCP"=>"59507" ),
array( "triId"=>"1769", "triCode"=>"FORTFL", "triNom"=>"Cour d'Appel de Fort-de-France", "triCP"=>"97200" ),
array( "triId"=>"1770", "triCode"=>"GRENOL", "triNom"=>"Cour d'Appel de Grenoble", "triCP"=>"38019" ),
array( "triId"=>"1771", "triCode"=>"LIMOGL", "triNom"=>"Cour d'Appel de Limoges", "triCP"=>"87031" ),
array( "triId"=>"1772", "triCode"=>"LYONL", "triNom"=>"Cour d'Appel de Lyon", "triCP"=>"69321" ),
array( "triId"=>"1773", "triCode"=>"METZL", "triNom"=>"Cour d'Appel de Metz", "triCP"=>"57036" ),
array( "triId"=>"1774", "triCode"=>"MONTPL", "triNom"=>"Cour d'Appel de Montpellier", "triCP"=>"34023" ),
array( "triId"=>"1775", "triCode"=>"NANCYL", "triNom"=>"Cour d'Appel de Nancy", "triCP"=>"54035" ),
array( "triId"=>"1776", "triCode"=>"NIMESL", "triNom"=>"Cour d'Appel de Nîmes", "triCP"=>"30031" ),
array( "triId"=>"1777", "triCode"=>"NOUMEL", "triNom"=>"Cour d'Appel de Nouméa", "triCP"=>"98848" ),
array( "triId"=>"1778", "triCode"=>"PAPEEL", "triNom"=>"Cour d'Appel de Papeete", "triCP"=>"98714" ),
array( "triId"=>"1779", "triCode"=>"PARISL", "triNom"=>"Cour d'Appel de Paris", "triCP"=>"75055" ),
array( "triId"=>"1780", "triCode"=>"PAUL", "triNom"=>"Cour d'Appel de Pau", "triCP"=>"64034" ),
array( "triId"=>"1781", "triCode"=>"POITIL", "triNom"=>"Cour d'Appel de Poitiers", "triCP"=>"86020" ),
array( "triId"=>"1782", "triCode"=>"REIMSL", "triNom"=>"Cour d'Appel de Reims", "triCP"=>"51096" ),
array( "triId"=>"1783", "triCode"=>"RENNEL", "triNom"=>"Cour d'Appel de Rennes", "triCP"=>"35064" ),
array( "triId"=>"1784", "triCode"=>"RIOML", "triNom"=>"Cour d'Appel de Riom", "triCP"=>"63201" ),
array( "triId"=>"1785", "triCode"=>"ROUENL", "triNom"=>"Cour d'Appel de Rouen", "triCP"=>"76037" ),
array( "triId"=>"1786", "triCode"=>"STDENL", "triNom"=>"Cour d'Appel de Saint-Denis-de-La Réunion", "triCP"=>"97488" ),
array( "triId"=>"1787", "triCode"=>"TOULOL", "triNom"=>"Cour d'Appel de Toulouse", "triCP"=>"31068" ),
array( "triId"=>"1788", "triCode"=>"VERSAL", "triNom"=>"Cour d'Appel de Versailles", "triCP"=>"78011" ),
array( "triId"=>"1789", "triCode"=>"ORLEAL", "triNom"=>"Cour d'Appel d'Orléans", "triCP"=>"45044" ),
array( "triId"=>"1790", "triCode"=>"CAYENL", "triNom"=>"Chambre Détachée de la Cour d'Appel de Fort de France à Cayenne", "triCP"=>"97300" ),
array( "triId"=>"1798", "triCode"=>"AGENL", "triNom"=>"Cour d'Appel d'Agen", "triCP"=>"47916" ),
);
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
require_once 'Scores/WsScores.php';
}
/**
* Enregistrement d'un mandataire
*/
public function addAction()
{
$this->_helper->layout->disableLayout();
$request = $this->getRequest();
$idMandataire = $request->getParam('idMand', '');
$tribunal = $request->getParam('tribunal', '');
$ws = new WsScores();
Zend_Registry::get('firebug')->info('idMandataire : '.$idMandataire);
//Mode edition
if ($idMandataire != '') {
$idMandataire = (int)substr($idMandataire,1);
$reponse = $ws->getMandataire($idMandataire);
Zend_Registry::get('firebug')->info($reponse);
if ($reponse!==false) {
$tabMandataires = json_decode($reponse, true);
} else {
$message = 'Une erreur est survenue durant la recherche de mandataire.';
}
//Mode ajout
} else {
$tabMandataires = $request->getParam('tabMandataires');
}
if ($tribunal!='') {
//La cour d'appel suivant le tribunal sélectionné
$codeCourAppel = $ws->getIdCoursAppel($tribunal);
//Les tribunaux
$tmp = $ws->getTribunaux(array('C','I','G')); //
$tribunaux = $tmp->result->item;
}else{
$message = 'Pas de tribunal sélectionné.';
}
$this->view->assign('message', $message);
$this->view->assign('tabMandataires', $tabMandataires);
$this->view->assign('coursAppel', $this->coursAppel);
$this->view->assign('tribunal', $tribunal);
$this->view->assign('tribunaux', $tribunaux);
}
/**
* Edition d'un mandataire
*/
public function editAction()
{
$this->_forward('add');
}
/**
* Recherche d'un mandataire à partir d'une chaine de caractères
* "nom, departement"
*/
public function searchAction()
{
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender();
$request = $this->getRequest();
$search = $request->getParam('search', '');
if (empty($search)) { echo ''; }
else { $search = strtolower($search); }
list($searchStr, $filtre) = explode(',', $search);
$searchStr = trim($searchStr);
$filtre = str_replace(' ', '', $filtre);
if( strlen($filtre) != 5 && strlen($filtre) != 2 ){
$filtre = '';
}
$ws = new WsScores();
$reponse = $ws->searchMandataires(
$searchStr,
array('V', 'N', 'H', 'A', 'M'), //types de mandataires
$filtre
);
if ($reponse == false){
echo 'Erreur durant la recherche';
exit;
}
$mandataires = $reponse->result->item;
$output = array();
$output[] = array(
'label' => "A l'adresse du bien vendu",
'id' => 'adresse'
);
/*
REGEX Code Postal : ^(F-)?((2[A|B])|[0-9]{2})[0-9]{3}$
(?<!/BP /i) Ne pas avoir la présence de BP devant les 5 chiffres
*/
//Recherche des codes postaux
if( count($mandataires)>0 ) {
$tableResults = array();
$i=0;
foreach ($mandataires as $mandataire) {
$tabResults[$i]['code'] = $mandataire->id;
$tabResults[$i]['lib'] = htmlspecialchars_decode(
html_entity_decode($mandataire->mand, ENT_COMPAT | ENT_HTML401, 'UTF-8')
, ENT_QUOTES);
preg_match('/(?<!bp )((2[A|B])|[0-9]{2})[0-9]{3}( )/i', $mandataire->mand, $matches);
$tabResults[$i]['cp'] = $matches[0];
$i++;
}
foreach ($tabResults as $key => $row){
$code[$key] = $row['code'];
$lib[$key] = $row['lib'];
$cp[$key] = $row['cp'];
}
//Classement du tableau
array_multisort($cp, SORT_NUMERIC, $tabResults);
//Affichage des valeurs
foreach ($tabResults as $item){
$output[] = array(
'label' => $item['lib'],
'id' => $item['code']
);
}
}
echo json_encode($output);
}
public function getAction()
{
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$siren = $request->getParam('siren');
$siren = str_replace(' ','',$siren); //Remplacer les espaces
if ( $siren=='' || strlen($siren)!=14 ) {
$output = array(
'Siret' => 'Siret incorrect',
);
echo json_encode($output);
exit;
}
$tabEntrep = array();
$ws = new WsScores();
$tabEntrep = $ws->getIdentite($siren);
if ($tabEntrep!==false){
/**
* Utiliser la dénomination sociale la plus longue
* Nom, Nom2, NomLong
*/
if (!empty($tabEntrep->NomLong) && strlen($tabEntrep->NomLong)>strlen($tabEntrep->Nom)){
$tabEntrep->Nom = $tabEntrep->NomLong;
}
//Retourner le tableau sous forme json
echo json_encode($tabEntrep);
}
}
public function saveAction()
{
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender();
$request = $this->getRequest();
$error = false;
$tabMandataires = $request->getParam('tabMandataires', array());
//Vérification des données
$fields = array();
if($tabMandataires['sirenGrp']=='' && $tabMandataires['sirenMand']==''){
$fields[] ='Siret'; $error = true;
}
if($tabMandataires['sirenGrp'] == $tabMandataires['sirenMand']){
$fields[] ='Siret de la société civile identique au Siret du mandataire';
$error = true;
}
if( (strlen($tabMandataires['sirenGrp'])!=14 && empty($tabMandataires['sirenMand'])) ||
(empty($tabMandataires['sirenGrp']) && strlen($tabMandataires['sirenMand'])!=14) ){
$fields = 'Siret avec la bonne taille';
$error = true;
}
if($tabMandataires['Nom']=='' ){$fields[] ='Nom'; $error = true;}
if($tabMandataires['type']==''){$fields[] ='Type'; $error = true;}
if($tabMandataires['tribunal']==''){$fields[] ='Tribunal'; $error = true;}
if($tabMandataires['coursAppel']==''){$fields[] ='Cours d\'appel'; $error = true;}
if($tabMandataires['Statut']==''){$fields[] ='Statut'; $error = true;}
if($tabMandataires['adresse']==''){$fields[] ='Adresse'; $error = true;}
if($tabMandataires['cp']==''){$fields[] ='Code Postal'; $error = true;}
if($tabMandataires['ville']==''){$fields[] ='Ville'; $error = true;}
if($tabMandataires['tel']==''){$fields[] ='Téléphone'; $error = true;}
//Envoi de la requête au webservices
if ($error==true){
$message = '<font color="red">';
$message.= 'Veuillez remplir les champs suivants : ';
$message.= join(', ', $fields);
$message.= '</font>';
} else {
$message='';
$ws = new WsScores();
$reponse = $ws->setMandataire($tabMandataires);
if ( $reponse===false ){
$message = "Une erreur s'est produite durant l'enregistrement";
} elseif ( is_string($reponse) ) {
$message = $reponse;
}
}
echo $message;
}
protected function htmlentitydecode_deep($value)
{
$value = is_array($value) ?
array_map(array('MandataireController' ,'htmlentitydecode_deep'), $value) :
html_entity_decode($value, ENT_QUOTES);
return $value;
}
}

View File

@ -0,0 +1,110 @@
<style>
.err {
border-style:solid;
border-width:1px;
border-color:red;
}
</style>
<div class="fields">
<div class="fieldgrp">
<label><?=$this->translate("Civilité") ?></label>
<div class="field">
<?php
$civilites = array('M', 'MME', 'MLE');
foreach ($civilites as $civilite) {
$checked=(strcmp($civilite, $this->infos->Civilite)==0)?"checked":"";
?>
<?=$civilite ?><input type="radio" name="civilite" value="<?=$civilite?>" <?=$checked?>/>
<?php }?>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Nom") ?></label>
<div class="field">
<input type="text" name="nom" value="<?=$this->infos->Nom?>"/>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Prenom") ?></label>
<div class="field">
<input type="text" name="prenom" value="<?=$this->infos->Prenom?>"/>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Nom d'usage") ?></label>
<div class="field">
<input type="text" name="nom_usage" value="<?=$this->infos->NomUsage?>"/>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Fonction") ?></label>
<div class="field">
<select name="codFct" style="width:380px;">
<?php foreach ($this->fonction as $key=>$val) {
$selected=(intval($key)==intval($this->infos->Code))?"selected":""; ?>
<option value="<?=$key ?>" <?=$selected?>><?=$val?></option>
<?php }?>
</select>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Date de naissance") ?></label>
<div class="field">
<?php
if (trim($this->infos->NaissDate) != '' && trim($this->infos->NaissDate)!='0000-00-00') {
$date = new Zend_Date($this->infos->NaissDate, 'yyyy-MM-dd');
$newDate = $date->toString('dd/MM/yyyy');
}
?>
<input type="text" name="naiss_date" value="<?=$newDate?>"/>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Lieu de naissance") ?></label>
<div class="field">
<input type="text" name="naiss_lieu" value="<?=$this->infos->NaissVille?>"/>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Téléphone") ?></label>
<div class="field">
<input type="text" name="tel" value="<?=$this->infos->Tel?>"/>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Télécopie") ?></label>
<div class="field">
<input type="text" name="fax" value="<?=$this->infos->Fax?>"/>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Email") ?></label>
<div class="field">
<input type="text" name="email" value="<?=$this->infos->Email?>"/>
</div>
</div>
</div>
<script>
$('input[name=email]').on("focusout", function(){
var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!regex.test($(this).val())) {
$(this).addClass('err');
}
else {
$(this).removeClass('err');
}
});
$.datepicker.setDefaults( $.datepicker.regional["fr"] );
$('input[name=naiss_date]').datepicker({ changeMonth: true, changeYear: true, yearRange: "-100:+0", });
</script>

View File

@ -0,0 +1,30 @@
<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
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');
} else if ($this->mode=='del')
echo $this->translate("Supprimer le dirigeant opérationnel");
?>
</form>
<script>
$('#dialog').dialog({ buttons: [
{ text: "Valider", click: function() {
var form = $('form[name=dirop]');
$.post(form.attr('action'), form.serialize(), function(data){
$('#dialog').html(data);
}).fail(function(){ alert('Unknown error'); });
}},
{ text: "Annuler", click: function() { $(this).dialog('close'); } }
] });
</script>

View File

@ -0,0 +1,12 @@
<?=$this->message ?>
<script>
$('#dialog').dialog({
buttons: [{
text: "Quitter",
click: function() {
location.reload();
$(this).dialog('close');
}
}]
});
</script>

View File

@ -0,0 +1,99 @@
<?php if ($this->op == 'delete') {?>
<div id="result">
Êtes-vous sur de vouloir supprimer l'annonce <?=$this->idan?>, source <?=$this->source?> ?
</div>
<form id="saisie" name="saisie" action="<?=$this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'annonce'), null, true)?>" method="post">
<input type="hidden" name="op" value="<?=$this->op?>" />
<input type="hidden" name="idan" value="<?=$this->idan?>" />
<input type="hidden" name="siret" value="<?=$this->siret?>" />
<input type="hidden" name="source" value="<?=$this->source?>" />
</form>
<?php } elseif ($this->op == 'copy'){ ?>
<div id="result">
Affecte l'annonce <?=$this->idan?> de <?=$this->siret?> sur un nouveau siren.
</div>
<br/>
<form id="saisie" name="saisie" action="<?=$this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'annonce'), null, true)?>" method="post">
<input type="hidden" name="op" value="<?=$this->op?>" />
<input type="hidden" name="idan" value="<?=$this->idan?>" />
<input type="hidden" name="source" value="<?=$this->source?>" />
<input type="hidden" name="siretIn" value="<?=$this->siret?>" />
Siren / Siret : <input type="text" name="siretOut" value="" />
</form>
<?php } elseif ($this->op == 'edit') {?>
<?php if (empty($this->message)){ ?>
<link rel="stylesheet" type="text/css" media="all" href="/themes/default/styles/saisie.css"/>
<script type="text/javascript" src="/themes/default/scripts/saisie.js"></script>
<form id="saisie" name="saisie" action="<?=$this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'annonce'), null, true)?>" method="post">
<input type="hidden" name="op" value="<?=$this->op?>" />
<input type="hidden" name="siret" value="<?=$this->siret?>"/>
<input type="hidden" name="idan" value="<?=$this->idan?>">
<?=$this->action('form', 'saisie', null, array('siret'=>$this->siret))?>
</form>
<?php } else { echo $this->message; }?>
<?php } elseif ($this->op == 'even') {?>
<div id="result">
Modification du type d'évenement sur l'annonce <?=$this->idan?> de <?=$this->siret?>.<br/>
Attention à bien vérifier ce qui est fait !
</div>
<br/>
<form id="saisie" name="saisie" action="<?=$this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'annonce'), null, true)?>" method="post">
<input type="hidden" name="op" value="<?=$this->op?>" />
<input type="hidden" name="idan" value="<?=$this->idan?>" />
<input type="hidden" name="siret" value="<?=$this->siret?>" />
<label>Type d'événement</label><br/>
<select name="even[]" multiple="multiple" size="10" style="width:600px;">
<option value="">-</option>
<?php foreach ($this->evens as $code => $lib):?>
<option value="<?=$code?>"><?=$lib?></option>
<?php endforeach;?>
</select>
</form>
<br/>
<span id="selectItem"></span>
<script>
$('select[name="even[]"]').change(function(){
var uniqueIsSelect = false;
var values = $(this).val();
var nbSelect = (values!=null) ? values.length : 0;
if (nbSelect>0) {
for (var i in values) {
item = values[i];
if (item.charAt(0)=='1') {
uniqueIsSelect = true;
break;
}
}
$('span#selectItem').html(values.join(', '));
}
if (nbSelect>1 && uniqueIsSelect){
alert('Un seul évenement peut être sélectionné lorsque un code de type 1xxx est présent !');
$('select[name="even[]"] option:selected').removeAttr('selected');
}
});
</script>
<?php }?>
<script type="text/javascript" src="/libs/form/jquery.form.min.js"></script>
<script>
$('form#saisie').bind('submit', function(){
var options = {
target: '#result',
beforeSubmit: function(data){},
success: function(data){ $('#result').html(data); }
};
$(this).ajaxSubmit(options);
return false;
});
</script>

View File

@ -0,0 +1,317 @@
<div id="center">
<?php if ($message!='') { ?>
<div style="margin:5px; padding: 0pt 0.7em;" class="ui-state-highlight ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
<?=$message?></p>
</div>
<?php } ?>
<h1 class="titre">IDENTITE DE L'ENTREPRISE</h1>
<div class="paragraph">
<div>
<label>Num&eacute;ro identifiant SIREN</label>
<?=$this->SirenTexte($this->siren)?>
</div>
<div class="clearfix">
<label>Dénomination Sociale</label>
<?=$this->raisonSociale?>
</div>
</div>
<h2>Dénomination sociale et coordonnées</h2>
<form name="form_saisie" action="<?=$this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'boursesave'), null, true)?>" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="<?=$this->id?>"/>
<div class="paragraph">
<div class="message"></div>
<div class="fieldgrp">
<label>Siren de la société coté si France</label>
<div class="field">
<input type="text" name="siren" value="<?=$this->siren?>" />
</div>
</div>
<div class="fieldgrp">
<label>Dénomination sociale de la société coté</label>
<div class="field">
<input type="text" name="raisonSociale" value="<?=$this->raisonSociale?>" />
</div>
</div>
<div class="fieldgrp">
<label>Ligne d'adresse complète (séparateur virgule)</label>
<div class="field">
<input type="text" name="adresse" value="<?=$this->adresse?>" />
</div>
</div>
<div class="fieldgrp">
<label>Effectif total du groupe</label>
<div class="field">
<input type="text" name="effectif" value="<?=$this->effectif?>" />
</div>
</div>
<div class="fieldgrp">
<label>Code SICOVAM abandonné en 2003 au profit de l'ISIN</label>
<div class="field">
<input type="text" name="code_sicovam" value="<?=$this->code_sicovam?>" />
</div>
</div>
<div class="fieldgrp">
<label>Code mnénomique</label>
<div class="field">
<input type="text" name="code_mnemo" value="<?=$this->code_mnemo?>" />
</div>
</div>
<div class="fieldgrp">
<label>Code Bloomberg</label>
<div class="field">
<input type="text" name="code_bloomberg" value="<?=$this->code_bloomberg?>" />
</div>
</div>
<div class="fieldgrp">
<label>Code Datastream de Thomson Reuters</label>
<div class="field">
<input type="text" name="code_datastream" value="<?=$this->code_datastream?>" />
</div>
</div>
<div class="fieldgrp">
<label>Code ISIN</label>
<div class="field">
<input type="text" name="code_isin" value="<?=$this->code_isin?>" />
</div>
</div>
<div class="fieldgrp">
<label>Présence d'un logo</label>
<div class="field">
<select name="logo">
<option value="N">Non</option>
<option value="O">Oui</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Code RIC (Reuters isntrument code)</label>
<div class="field">
<input type="text" name="code_ric" value="<?=$this->code_ric?>" />
</div>
</div>
<div class="fieldgrp">
<label>Code Boursorama</label>
<div class="field">
<input type="text" name="code_boursorama" value="<?=$this->code_boursorama?>" />
</div>
</div>
<div class="fieldgrp">
<label>dateIntroduction</label>
<div class="field">
<input type="text" name="dateIntroduction" value="<?=$this->dateIntroduction?>" class="dateArea" placeholder="JJ/MM/AAAA" />
</div>
</div>
<div class="fieldgrp">
<label>dateIntroYmd</label>
<div class="field">
<input type="text" name="dateIntroYmd" value="<?=$this->dateIntroYmd?>" class="dateArea" placeholder="JJ/MM/AAAA" />
</div>
</div>
<div class="fieldgrp">
<label>dateDerAG</label>
<div class="field">
<input type="text" name="dateDerAG" value="<?=$this->dateDerAG?>" class="dateArea" placeholder="JJ/MM/AAAA" />
</div>
</div>
<div class="fieldgrp">
<label>deliste</label>
<div class="field">
<input type="text" name="deliste" value="<?=$this->deliste?>" />
</div>
</div>
<div class="fieldgrp">
<label>dateRadiation</label>
<div class="field">
<input type="text" name="dateRadiation" value="<?=$this->dateRadiation?>" class="dateArea" placeholder="JJ/MM/AAAA" />
</div>
</div>
<div class="fieldgrp">
<label>autre_isin</label>
<div class="field">
<input type="text" name="autre_isin" value="<?=$this->autre_isin?>" />
</div>
</div>
<div class="fieldgrp">
<label>eligibleSRD</label>
<div class="field">
<select name="eligibleSRD">
<option value="N">Non</option>
<option value="O">Oui</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>eligiblePEA</label>
<div class="field">
<select name="eligiblePEA">
<option value="N">Non</option>
<option value="O">Oui</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>nombreTitres</label>
<div class="field">
<input type="text" name="nombreTitres" value="<?=$this->nombreTitres?>" />
</div>
</div>
<div class="fieldgrp">
<label>dateNbTitres</label>
<div class="field">
<input type="text" name="dateNbTitres" value="<?=$this->dateNbTitres?>" class="dateArea" placeholder="JJ/MM/AAAA" />
</div>
</div>
<div class="fieldgrp">
<label>contactBourse</label>
<div class="field">
<input type="text" name="contactBourse" value="<?=$this->contactBourse?>" />
</div>
</div>
<div class="fieldgrp">
<label>tel1</label>
<div class="field">
<input type="text" name="tel1" value="<?=$this->tel1?>" />
</div>
</div>
<div class="fieldgrp">
<label>tel2</label>
<div class="field">
<input type="text" name="tel2" value="<?=$this->tel2?>" />
</div>
</div>
<div class="fieldgrp">
<label>fax1</label>
<div class="field">
<input type="text" name="fax1" value="<?=$this->fax1?>" />
</div>
</div>
<div class="fieldgrp">
<label>fax2</label>
<div class="field">
<input type="text" name="fax2" value="<?=$this->fax2?>" />
</div>
</div>
<div class="fieldgrp">
<label>web</label>
<div class="field">
<input type="text" name="web" value="<?=$this->web?>" />
</div>
</div>
<div class="fieldgrp">
<label>mail</label>
<div class="field">
<input type="text" name="mail" value="<?=$this->mail?>" />
</div>
</div>
<div class="fieldgrp">
<label>marche</label>
<div class="field">
<input type="text" name="marche" value="<?=$this->marche?>" />
</div>
</div>
<div class="fieldgrp">
<label>placeCotation</label>
<div class="field">
<input type="text" name="placeCotation" value="<?=$this->placeCotation?>" />
</div>
</div>
<div class="fieldgrp">
<label>description</label>
<div class="field">
<input type="text" name="description" value="<?=$this->description?>" />
</div>
</div>
<div class="fieldgrp">
<label>secteur</label>
<div class="field">
<input type="text" name="secteur" value="<?=$this->secteur?>" />
</div>
</div>
<div class="fieldgrp">
<label>code_icb</label>
<div class="field">
<input type="text" name="code_icb" value="<?=$this->code_icb?>" /> sdv1.bourse_tabICB
</div>
</div>
<div class="fieldgrp">
<label>activite</label>
<div class="field">
<input type="text" name="activite" value="<?=$this->activite?>" />
</div>
</div>
<div class="fieldgrp">
<label>activiteDet</label>
<div class="field">
<input type="text" name="activiteDet" value="<?=$this->activiteDet?>" />
</div>
</div>
<div class="fieldgrp">
<label>Upload fichier</label>
<div class="field">
</div>
</div>
<div class="submit clearfix"><input type="submit" name="submit" value="Sauver"/></div>
</div>
</form>
</div>
<script>
$(document).ready(function(){
$.datepicker.setDefaults( $.datepicker.regional['fr']);
$( ".dateArea" ).datepicker({changeYear: true});
$("form").on('submit', function(e){
e.preventDefault();
var form = $('form[name=form_saisie]');
$.post(form.attr('action'), form.serialize(), function(data){
$('div.message').text(data);
$('div.message').css({'background-color':'LightYellow', 'padding':'10px', 'margin-bottom':'10px', 'border-radius':'5px'});
});
});
});
</script>

View File

@ -0,0 +1,7 @@
<?php if ($this->message===0) {?>
<?=$this->translate('Aucune modification');?>
<?php } elseif ($this->message >= 1) {?>
<?=$this->translate('Modification enregistrée');?>
<?php } else {?>
<?=json_encode($this->message);?>
<?php }?>

View File

@ -0,0 +1,19 @@
<?php
if ( !isset($inEditDialog) || $inEditDialog === false ) {
$tribunal = (isset($_REQUEST['tribunal'])? $_REQUEST['tribunal'] : '');
} else {
$tribunal = $saisie['tribunal'];
}
?>
<label>Administrateur <font color="Red">*</font></label>
<input class="searchMandataires" type="text" name="admin" value="">
<input type="hidden" name="jugement[admin]" value="">
<a id="lienAdministrateurEdit" class="lienMandataire" title="Editer le mandataire"
href="<?=$this->url(array('controller'=>'mandataire', 'action'=>'add'))?>">
<img src="/themes/default/images/interfaces/edit1.gif" alt="Edition mandataire"/>
</a>
<p>
<a id="lienAdministrateurAdd" class="lienMandataire" title="Ajouter un administrateur"
href="<?=$this->url(array('controller'=>'mandataire', 'action'=>'edit', 'tribunal'=>$tribunal))?>">
Ajouter un administrateur
</a></p>

View File

@ -0,0 +1,19 @@
<?php
if ( !isset($inEditDialog) || $inEditDialog === false ) {
$tribunal = (isset($_REQUEST['tribunal'])? $_REQUEST['tribunal'] : '');
} else {
$tribunal = $saisie['tribunal'];
}
?>
<label>Mandataire <font color="Red">*</font></label>
<input class="searchMandataires" type="text" name="mand" value="">
<input type="hidden" name="jugement[mand]" value="">
<a id="lienMandataireEdit" class="lienMandataire" title="Editer le mandataire"
href="<?=$this->url(array('controller'=>'mandataire', 'action'=>'add'))?>">
<img src="/themes/default/images/interfaces/edit1.gif" alt="Edition mandataire"/>
</a>
<p>
<a id="lienMandataireAdd" class="lienMandataire" title="Ajouter un mandataire"
href="<?=$this->url(array('controller'=>'mandataire', 'action'=>'edit', 'tribunal'=>$tribunal))?>">
Ajouter un mandataire
</a></p>

View File

@ -0,0 +1,25 @@
<?php
if ( !isset($inEditDialog) || $inEditDialog === false ) {
$tribunal = (isset($_REQUEST['tribunal'])? $_REQUEST['tribunal'] : '');
} else {
$tribunal = $saisie['tribunal'];
foreach ( $intervenants as $intervenant ) {
if ( $intervenant['type'] == 'O') {
break;
}
}
}
?>
<label>Opposition</label>
<input class="searchMandataires" type="text" name="oppo" value="<?=$intervenant['nom']?>">
<input type="hidden" name="jugement[oppo]" value="<?=isset($intervenant['id']) ? 'm'.$intervenant['id'] : ''?>">
<a id="lienOppositionEdit" class="lienMandataire" title="Editer le mandataire"
href="<?=$this->url(array('controller'=>'mandataire', 'action'=>'add'))?>">
<img src="/themes/default/images/interfaces/edit1.gif" alt="Edition mandataire"/>
</a>
<p>
<a id="lienOppositionAdd" class="lienMandataire" title="Ajouter un mandataire"
href="<?=$this->url(array('controller'=>'mandataire', 'action'=>'edit', 'tribunal'=>$tribunal))?>">
Ajouter un mandataire
</a>
</p>

View File

@ -0,0 +1 @@
<?=json_encode($this->output)?>

View File

@ -0,0 +1,109 @@
<?php if ($this->post) {?>
<?php if ($this->msg) {?>
<?=$this->msg?>
<?php } else {?>
<p>Opération effectué.</p>
<?php }?>
<script>
var windowhref = window.location.href;
$('#dialog').dialog({ buttons: [
{ text: "Fermer", click: function() { $(this).dialog("close"); window.location.href=windowhref; } }
] });
</script>
<?php } else {?>
<?php if ($this->mode == 'delete') {?>
<p>Supprimer l'élément id=<?=$this->id?> ?</p>
<form name="contact" action="<?=$this->url(array('module'=>'input', 'controller'=>'index','action'=>'contact'),null,true)?>" method="post">
<input type="hidden" name="mode" value="delete" />
<input type="hidden" name="id" value="<?=$this->id?>"/>
<input type="hidden" name="siret" value="<?=$this->siret?>"/>
</form>
<?php } else {?>
<?php if ( count($this->Modif)>0 ) {?>
<?php foreach ( $this->Modif as $item ) {?>
<p>
<?php
switch ($item->type) {
case 'add':
$date = new Zend_Date($item->dateInsert, 'yyyy-MM-dd');
?>
Création le <?=$date->toString('dd/MM/yyyy')?> par <?$item->idUtilisateurName?>.
<?php
break;
case 'edit':
$date = new Zend_Date($item->dateUpdate, 'yyyy-MM-dd');
?>
Modification le <?=$date->toString('dd/MM/yyyy')?> par <?$item->idUpdateName?>.
<?php
break;
case 'del':
$date = new Zend_Date($item->dateSuppr, 'yyyy-MM-dd');
?>
Suppression le <?=$date->toString('dd/MM/yyyy')?> par <?$item->idSupprName?>.
<?php
break;
}
?>
</p>
<?php }?>
<?php }?>
<form name="contact" action="<?=$this->url(array('module'=>'input', 'controller'=>'index','action'=>'contact'),null,true)?>" method="post">
<input type="hidden" name="mode" value="<?=$this->mode?>"/>
<?php if ($this->id) {?>
<input type="hidden" name="id" value="<?=$this->id?>"/>
<?php }?>
<input type="hidden" name="siret" value="<?=$this->siret?>"/>
<div>
<label>Type</label>
<select name="type">
<option value="tel"<?php if($this->type=='tel') {echo ' selected';}?>>Téléphone</option>
<option value="fax"<?php if($this->type=='fax') {echo ' selected';}?>>Fax</option>
<option value="web"<?php if($this->type=='web') {echo ' selected';}?>>Site Web</option>
<option value="mail"<?php if($this->type=='mail') {echo ' selected';}?>>Email</option>
</select>
</div>
<div>
<label>Valeur</label>
<input type="text" name="value" value="<?=$this->value?>">
</div>
<p>
Téléphone france saisit sans séparateur, maximum 10 chiffres (format: XXXXXXXXXX)
<br/>Site Web avec http://
</p>
<div>
<label>Info</label>
<select name="info">
<option value="">-</option>
<?php foreach( $this->telinfo as $txt ) {?>
<option <?php if($txt == $this->info) { echo ' selected'; }?>><?=$txt?></option>
<?php }?>
</select>
<span>Uniquement pour les téléphones</span>
</div>
</form>
<?php }?>
<script>
$('#dialog').dialog({ buttons: [
{ text: "Enregistrer", click: function() {
var form = $('form[name=contact]');
$.post(form.attr('action'), form.serialize(), function(data){
form.replaceWith(data);
}).fail(function(){ alert('Unknow error'); });
} },
{ text: "Annuler", click: function() { $(this).dialog("close"); } }
] });
</script>
<?php }?>

View File

@ -0,0 +1 @@
<p>Sélectionner l'évènement ou le jugement, pour faire apparaître le formulaire.</p>

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,4 @@
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,4 @@
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'administrateur'))?>
<?=$this->action('champs', 'saisie', null, array( 'champ' => 'mandataire'))?>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,13 @@
<label>Date de jouissance / effet :</label>
<input type="text" maxlength="10" class="date" name="jugement[dateFinPeriode]" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Audience de renvoi le </label>
<input type="text" class="date" name="jugement[dateAudienceRenvoi]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Nom de l'acheteur</label>
<input type="text" name="jugement[AcheteurNom]" size="70" maxlength="100" value="" />
<label>SIREN de l'acheteur</label>
<input type="text" name="jugement[AcheteurSiren]" size="70" maxlength="11" value="" />

View File

@ -0,0 +1,13 @@
<label>Date de jouissance / effet :</label>
<input type="text" maxlength="10" class="date" name="jugement[dateFinPeriode]" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Audience de renvoi le </label>
<input type="text" class="date" name="jugement[dateAudienceRenvoi]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Nom de l'acheteur</label>
<input type="text" name="jugement[AcheteurNom]" size="70" maxlength="100" value="" />
<label>SIREN de l'acheteur</label>
<input type="text" name="jugement[AcheteurSiren]" size="70" maxlength="11" value="" />

View File

@ -0,0 +1,13 @@
<label>Date de jouissance / effet :</label>
<input type="text" maxlength="10" class="date" name="jugement[dateFinPeriode]" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Audience de renvoi le </label>
<input type="text" class="date" name="jugement[dateAudienceRenvoi]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Nom de l'acheteur</label>
<input type="text" name="jugement[AcheteurNom]" size="70" maxlength="100" value="" />
<label>SIREN de l'acheteur</label>
<input type="text" name="jugement[AcheteurSiren]" size="70" maxlength="11" value="" />

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="Commissaire à l'execution du plan" />

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="Commissaire à l'execution du plan" />

View File

@ -0,0 +1,13 @@
<label>Date de jouissance / effet :</label>
<input type="text" maxlength="10" class="date" name="jugement[dateFinPeriode]" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Audience de renvoi le </label>
<input type="text" class="date" name="jugement[dateAudienceRenvoi]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Nom de l'acheteur</label>
<input type="text" name="jugement[AcheteurNom]" size="70" maxlength="100" value="" />
<label>SIREN de l'acheteur</label>
<input type="text" name="jugement[AcheteurSiren]" size="70" maxlength="11" value="" />

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,13 @@
<label>Date de jouissance / effet :</label>
<input type="text" maxlength="10" class="date" name="jugement[dateFinPeriode]" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Date cessation de paiement </label>
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Audience de renvoi le </label>
<input type="text" class="date" name="jugement[dateAudienceRenvoi]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Nom de l'acheteur</label>
<input type="text" name="jugement[AcheteurNom]" size="70" maxlength="100" value="" />
<label>SIREN de l'acheteur</label>
<input type="text" name="jugement[AcheteurSiren]" size="70" maxlength="11" value="" />

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,9 @@
<label>Nouveau Capital</label>
<input type="text" name="jugement[montant]" size="10" maxlength="15" value="" />
<span class="left">en &euro; sans les cents</span>
<label>(div. en </label><input type="text" name="jugement[actionsNb]" size="6" maxlength="15" value="" />
<label>actions de </label><input type="text" name="jugement[actionsMt]" size="5" maxlength="15" value="" />
<span class="left"> &euro;)</span>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,9 @@
<label>Nouveau Capital</label>
<input type="text" name="jugement[montant]" size="10" maxlength="15" value="" />
<span class="left">en &euro; sans les cents</span>
<label>(div. en </label><input type="text" name="jugement[actionsNb]" size="6" maxlength="15" value="" />
<label>actions de </label><input type="text" name="jugement[actionsMt]" size="5" maxlength="15" value="" />
<span class="left"> &euro;)</span>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,66 @@
<fieldset>
<legend>Liquidateur / Nouveau dirigeant 1</legend>
<label>Fonction :</label>
<select name="jugement[nouvDir][0][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label><select name="jugement[nouvDir][0][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir][0][Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir][0][Nom]" size="15" maxlength="40">
<label>Domicili&eacute; : </label><input type="text" name="jugement[nouvDir][0][Dom]" size="60" maxlength="255" value="" />
</fieldset>
<p><a href="#" onclick="$('#NouveauDirigeant2').css('display','block');">Nouveau Dirigeant 2</a></p>
<p><a href="#" onclick="$('#NouveauDirigeant3').css('display','block');">Nouveau Dirigeant 3</a></p>
<fieldset id="NouveauDirigeant2">
<legend>Nouveau dirigeant 2</legend>
<label>Fonction:</label><select name="jugement[nouvDir][1][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][1][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir][1][Pre]" size="15" maxlength="40">
<label>NOM :</label>
<input type="text" name="jugement[nouvDir][1][Nom]" size="15" maxlength="40">
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir][1][Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onclick="$('#NouveauDirigeant2').css('display','none');">Masquer.</a></p>
</fieldset>
<fieldset id="NouveauDirigeant3">
<legend>Nouveau dirigeant 3</legend>
<label>Fonction :</label><select name="jugement[nouvDir][2][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][2][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren</label>
<input type="text" name="jugement[nouvDir][2][Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir][2][Nom]" size="15" maxlength="40"><br/>
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir][2][Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onclick="$('#NouveauDirigeant3').css('display','none');">Masquer.</a></p>
</fieldset>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,66 @@
<fieldset>
<legend>Liquidateur / Nouveau dirigeant 1</legend>
<label>Fonction :</label>
<select name="jugement[nouvDir][0][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label><select name="jugement[nouvDir][0][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir][0][Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir][0][Nom]" size="15" maxlength="40">
<label>Domicili&eacute; : </label><input type="text" name="jugement[nouvDir][0][Dom]" size="60" maxlength="255" value="" />
</fieldset>
<p><a href="#" onclick="$('#NouveauDirigeant2').css('display','block');">Nouveau Dirigeant 2</a></p>
<p><a href="#" onclick="$('#NouveauDirigeant3').css('display','block');">Nouveau Dirigeant 3</a></p>
<fieldset id="NouveauDirigeant2">
<legend>Nouveau dirigeant 2</legend>
<label>Fonction:</label><select name="jugement[nouvDir][1][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][1][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir][1][Pre]" size="15" maxlength="40">
<label>NOM :</label>
<input type="text" name="jugement[nouvDir][1][Nom]" size="15" maxlength="40">
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir][1][Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onclick="$('#NouveauDirigeant2').css('display','none');">Masquer.</a></p>
</fieldset>
<fieldset id="NouveauDirigeant3">
<legend>Nouveau dirigeant 3</legend>
<label>Fonction :</label><select name="jugement[nouvDir][2][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][2][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren</label>
<input type="text" name="jugement[nouvDir][2][Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir][2][Nom]" size="15" maxlength="40"><br/>
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir][2][Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onclick="$('#NouveauDirigeant3').css('display','none');">Masquer.</a></p>
</fieldset>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,66 @@
<fieldset>
<legend>Liquidateur / Nouveau dirigeant 1</legend>
<label>Fonction :</label>
<select name="jugement[nouvDir][0][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label><select name="jugement[nouvDir][0][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir][0][Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir][0][Nom]" size="15" maxlength="40">
<label>Domicili&eacute; : </label><input type="text" name="jugement[nouvDir][0][Dom]" size="60" maxlength="255" value="" />
</fieldset>
<p><a href="#" onclick="$('#NouveauDirigeant2').css('display','block');">Nouveau Dirigeant 2</a></p>
<p><a href="#" onclick="$('#NouveauDirigeant3').css('display','block');">Nouveau Dirigeant 3</a></p>
<fieldset id="NouveauDirigeant2">
<legend>Nouveau dirigeant 2</legend>
<label>Fonction:</label><select name="jugement[nouvDir][1][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][1][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir][1][Pre]" size="15" maxlength="40">
<label>NOM :</label>
<input type="text" name="jugement[nouvDir][1][Nom]" size="15" maxlength="40">
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir][1][Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onclick="$('#NouveauDirigeant2').css('display','none');">Masquer.</a></p>
</fieldset>
<fieldset id="NouveauDirigeant3">
<legend>Nouveau dirigeant 3</legend>
<label>Fonction :</label><select name="jugement[nouvDir][2][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][2][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren</label>
<input type="text" name="jugement[nouvDir][2][Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir][2][Nom]" size="15" maxlength="40"><br/>
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir][2][Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onclick="$('#NouveauDirigeant3').css('display','none');">Masquer.</a></p>
</fieldset>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,66 @@
<fieldset>
<legend>Liquidateur / Nouveau dirigeant 1</legend>
<label>Fonction :</label>
<select name="jugement[nouvDir][0][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label><select name="jugement[nouvDir][0][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir][0][Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir][0][Nom]" size="15" maxlength="40">
<label>Domicili&eacute; : </label><input type="text" name="jugement[nouvDir][0][Dom]" size="60" maxlength="255" value="" />
</fieldset>
<p><a href="#" onclick="$('#NouveauDirigeant2').css('display','block');">Nouveau Dirigeant 2</a></p>
<p><a href="#" onclick="$('#NouveauDirigeant3').css('display','block');">Nouveau Dirigeant 3</a></p>
<fieldset id="NouveauDirigeant2">
<legend>Nouveau dirigeant 2</legend>
<label>Fonction:</label><select name="jugement[nouvDir][1][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][1][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir][1][Pre]" size="15" maxlength="40">
<label>NOM :</label>
<input type="text" name="jugement[nouvDir][1][Nom]" size="15" maxlength="40">
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir][1][Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onclick="$('#NouveauDirigeant2').css('display','none');">Masquer.</a></p>
</fieldset>
<fieldset id="NouveauDirigeant3">
<legend>Nouveau dirigeant 3</legend>
<label>Fonction :</label><select name="jugement[nouvDir][2][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][2][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren</label>
<input type="text" name="jugement[nouvDir][2][Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir][2][Nom]" size="15" maxlength="40"><br/>
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir][2][Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onclick="$('#NouveauDirigeant3').css('display','none');">Masquer.</a></p>
</fieldset>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,66 @@
<fieldset>
<legend>Liquidateur / Nouveau dirigeant 1</legend>
<label>Fonction :</label>
<select name="jugement[nouvDir][0][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label><select name="jugement[nouvDir][0][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir][0][Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir][0][Nom]" size="15" maxlength="40">
<label>Domicili&eacute; : </label><input type="text" name="jugement[nouvDir][0][Dom]" size="60" maxlength="255" value="" />
</fieldset>
<p><a href="#" onclick="$('#NouveauDirigeant2').css('display','block');">Nouveau Dirigeant 2</a></p>
<p><a href="#" onclick="$('#NouveauDirigeant3').css('display','block');">Nouveau Dirigeant 3</a></p>
<fieldset id="NouveauDirigeant2">
<legend>Nouveau dirigeant 2</legend>
<label>Fonction:</label><select name="jugement[nouvDir][1][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][1][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir][1][Pre]" size="15" maxlength="40">
<label>NOM :</label>
<input type="text" name="jugement[nouvDir][1][Nom]" size="15" maxlength="40">
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir][1][Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onclick="$('#NouveauDirigeant2').css('display','none');">Masquer.</a></p>
</fieldset>
<fieldset id="NouveauDirigeant3">
<legend>Nouveau dirigeant 3</legend>
<label>Fonction :</label><select name="jugement[nouvDir][2][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][2][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren</label>
<input type="text" name="jugement[nouvDir][2][Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir][2][Nom]" size="15" maxlength="40"><br/>
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir][2][Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onclick="$('#NouveauDirigeant3').css('display','none');">Masquer.</a></p>
</fieldset>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,4 @@
<label>Date nouvelle clôture </label>
<input class="date" type="text" name="jugement[datePaie]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,18 @@
<label>Nouvelle forme juridique</label>
<select name="jugement[nouvFJ]">
<option value="0000" selected>-</option>
<option value="5499">SARL</option>
<option value="5498">EURL</option>
<option value="6598">EARL</option>
<option value="5699">SA</option>
<option value="5710">SAS</option>
<option value="5720">SASU</option>
<option value="5202">SNC</option>
<option value="6220">GIE</option>
<option value="6533">GAEC</option>
<option value="6540">SCI</option>
<option value="6585">SCP</option>
</select>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,5 @@
<label>Nouvelle activité</label>
<input type="text" name="jugement[nouvActivite]" size="70" maxlength="255" value="" />
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,66 @@
<fieldset>
<legend>Nouveau dirigeant 1</legend>
<label>Fonction :</label><select name="jugement[nouvDir][0][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][0][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir][0][Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir][0][Nom]" size="15" maxlength="40">
<label>Domicili&eacute; : </label><input type="text" name="jugement[nouvDir][0][Dom]" size="60" maxlength="255" value="" />
</fieldset>
<p><a href="#" onClick="$('#NouveauDirigeant2').css('display','block');">Nouveau Dirigeants2</a></p>
<p><a href="#" onClick="$('#NouveauDirigeant3').css('display','block');">Nouveau Dirigeants3</a></p>
<fieldset id="NouveauDirigeant2">
<legend>Nouveau dirigeant 2</legend>
<label>Fonction:</label><select name="jugement[nouvDir][1][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][1][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir][1][Pre]" size="15" maxlength="40">
<label>NOM :</label>
<input type="text" name="jugement[nouvDir][1][Nom]" size="15" maxlength="40">
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir][1][Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onClick="$('#NouveauDirigeant2').css('display','none');">Masquer.</a></p>
</fieldset>
<fieldset id="NouveauDirigeant3">
<legend>Nouveau dirigeant 3</legend>
<label>Fonction :</label><select name="jugement[nouvDir][2][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][2][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren</label>
<input type="text" name="jugement[nouvDir][2][Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir][2][Nom]" size="15" maxlength="40"><br/>
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir][2][Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onClick="$('#NouveauDirigeant3').css('display','none');">Masquer.</a></p>
</fieldset>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,5 @@
<label>Nouvelle adresse</label>
<input type="text" name="jugement[nouvAdr]" size="70" maxlength="255" value="" />
<label>Code Postal</label>
<input type="text" name="jugement[nouvAdrCp]" size="6" maxlength="7" value="" />
<label>Ville</label><input type="text" name="jugement[nouvAdrVille]" size="40" maxlength="50" value="" />

View File

@ -0,0 +1,7 @@
<label>Date de jouissance / effet :</label>
<input type="text" maxlength="10" class="date" name="jugement[dateFinPeriode]" value="<?=$this->saisie['dateFinPeriode']?>" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Nom de l'acheteur</label>
<input type="text" name="jugement[AcheteurNom]" size="70" maxlength="100" value="" />
<label>SIREN de l'acheteur</label>
<input type="text" name="jugement[AcheteurSiren]" size="70" maxlength="11" value="" />

View File

@ -0,0 +1,74 @@
<?php
$tabPerimetreVente = array(
'5100' => "Fonds principal",
'5101' => "Fonds secondaire",
'5104' => "Fonds artisanal",
'5105' => "Partie de fonds",
'5200' => "Branche ou Partie d'activité",
'5201' => "Clientèle",
'5203' => "Droit au bail",
'5205' => "Licence de débit de boissons de 4e catégorie",
'5206' => "Portefeuille d'assurances",
'5351' => "Bien en % indivise",
'5303' => "Bien dépendant de l'établissement ou du fond",
'5450' => "Bien acheté par le locataire-gérant",
'5460' => "Attribution d'un fonds suite à donation, partage ou licitation",
);
?>
<?=$this->action('champs', 'saisie', null, array('champ' => 'opposition'))?>
<label>Date de jouissance / effet :</label>
<input type="text" maxlength="10" class="date" name="jugement[dateFinPeriode]" value="<?=$this->saisie['dateFinPeriode']?>" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Montant de la vente</label>
<input type="text" class="widthauto" name="jugement[montant]" size="10" maxlength="15" value="<?=$this->saisie['montant']?>" />
<span class="left">en &euro; sans les cents</span>
<label>Etablissement concerné</label>
<select name="etablissement5500[]" multiple size="3">
<option value="-">-</option>
<?php
foreach( $this->ListeEtablissements as $etablissement ) {
//Information etablissement
$title = $this->siren.$etablissement->Nic.' - '.$etablissement->Adresse.' '.
$etablissement->CP.' '.$etablissement->Ville;
$value = $etablissement->Adresse.' '.$etablissement->CP.' '.
$etablissement->Ville.' ('.$etablissement->Nic.')';
$siege = '';
if ( $etablissement->Siege==1 && $etablissement->Actif==1 ) {
$siege = ' (Siège Actif)';
}
//Sélection etablissement
echo '<option title="'.$title.$siege.'" value="'.$value.'">'.$title.$siege.'</option>';
}
?>
</select>
<div class="info">
Utiliser l'établissement : <a href="#" title="<?=$this->siren.$this->nic?>" id="etabnic"><?=$this->nic?></a>
<div id="infoetabnic"></div>
<input type="hidden" name="etabnic" value=""/>
</div>
<label>Périmètre de la vente</label>
<select name="perimetreVente[]" multiple size="3">
<option value="-">-</option>
<?php
foreach ( $tabPerimetreVente as $num => $perimetre ) {
$select = '';
if ( isset($inEditDialog) && $inEditDialog === true ){
foreach($this->saisie['even'] as $item){
if ($item->CodeEven==$num){
$select = ' selected';
break;
}
}
}
?>
<option value="<?=$num?>" <?=$select?>><?=$perimetre?></option>
<?php
}
?>
</select>
<label>Compl&eacute;ment, huissier, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="900" value="<?=$saisie['comp']?>" />

View File

@ -0,0 +1,106 @@
<label>Etablissement concerné</label>
<select name="jugement[nic]" size="5">
<option value="-">-</option>
<?php
foreach($this->ListeEtablissements as $etablissement) {
$title = $etablissement->Nic.' - '.$etablissement->Adresse.' '.$etablissement->CP.' '.$etablissement->Ville;
$value = $etablissement->Nic;
$siege = '';
$select = '';
if($etablissement->Nic==$this->nic){
$select = ' selected';
}
if($etablissement->Siege==1 && $etablissement->Actif==1) {
$siege = ' (Siège Actif)';
}
echo '<option'.$select.' title="'.$title.$siege.'" value="'.$value.'">'.$title.$siege.'</option>';
}
?>
</select>
<div class="info">
<a href="<?=$this->url(array('module'=>'input', 'controller'=>'index','action'=>'listetab','siren'=>$this->siren),null,true)?>" id="insert-etab">Insérer les établissements suivant</a>
<input type="hidden" name="p" value="2"/>
<script>
$('#insert-etab').click(function(e){
e.preventDefault();
var p = $('input[name=p]').val();
$.getJSON($(this).attr('href'), { p: p }, function(data){
$.each(data.list, function(i, v) {
var option = '<option value="'+ v.value+'">'+v.label+'</option>';
$(option).appendTo('select[name="jugement[nic]"]');
});
$('input[name=p]').val(data.p);
});
});
</script>
</div>
<fieldset>
<legend>Nouveau dirigeant 1</legend>
<label>Fonction :</label>
<select name="jugement[nouvDir][0][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][0][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir][0][Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir][0][Nom]" size="15" maxlength="40">
<label>Domicili&eacute; : </label><input type="text" name="jugement[nouvDir][0][Dom]" size="60" maxlength="255" value="" />
</fieldset>
<p><a href="#" onClick="$('#NouveauDirigeant2').css('display','block');">Nouveau Dirigeants2</a></p>
<p><a href="#" onClick="$('#NouveauDirigeant3').css('display','block');">Nouveau Dirigeants3</a></p>
<fieldset id="NouveauDirigeant2">
<legend>Nouveau dirigeant 2</legend>
<label>Fonction:</label>
<select name="jugement[nouvDir][1][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][1][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir][1][Pre]" size="15" maxlength="40">
<label>NOM :</label>
<input type="text" name="jugement[nouvDir][1][Nom]" size="15" maxlength="40">
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir][1][Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onClick="$('#NouveauDirigeant2').css('display','none');">Masquer.</a></p>
</fieldset>
<fieldset id="NouveauDirigeant3">
<legend>Nouveau dirigeant 3</legend>
<label>Fonction :</label>
<select name="jugement[nouvDir][2][Fonc]">
<?php foreach($this->selectDir as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Genre :</label>
<select name="jugement[nouvDir][2][Genre]">
<?php foreach($this->selectGenre as $val => $item):?>
<option value="<?=$val?>"><?=$item?></option>
<?php endforeach;?>
</select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren</label>
<input type="text" name="jugement[nouvDir][2][Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir][2][Nom]" size="15" maxlength="40"><br/>
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir][2][Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onClick="$('#NouveauDirigeant3').css('display','none');">Masquer.</a></p>
</fieldset>
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,109 @@
<label>Source <font color="Red">*</font></label>
<select name="jugement[source]">
<?php
$select = '';
if ( !isset($this->saisie['source']) || $this->saisie['source']=='TS' ){
$select = 'selected';
}
?>
<option value="TS" <?=$select?>>Tribunal via CCI</option>
<?php
$select = '';
if ( $this->saisie['source']=='TD' ){ $select = 'selected'; }
?>
<option value="TD" <?=$select?>>Tribunal directement</option>
<?php
$select = '';
if ( $this->saisie['source']=='TA' ){ $select = 'selected'; }
?>
<option value="TA" <?=$select?>>Tribunal via autre tiers</option>
<?php
$select = '';
if ( $this->saisie['source']=='JT' ){ $select = 'selected'; }
?>
<option value="JT" <?=$select?>>TESSI</option>
<?php
if (count($this->ListeJalCollecte)>0) {
foreach ($this->ListeJalCollecte as $jal) {
echo "<option value=\"JS$jal->id\" ";
if ( $this->saisie['source']=="JS$jal->id" ) {
echo 'selected';
}
echo ">$jal->nom</option>";
}
}
?>
</select>
<div id="dateParution">
<label>Date de parution <font color="Red">*</font></label>
<input class="date" type="text" name="jugement[dateParution]" size="10" maxlength="10" value="<?=$this->saisie['dateParution']?>" />
<span class="left">(Format JJ/MM/AAAA)</span>
</div>
<div id="numParution">
<label>N&deg; de parution</label>
<input type="text" name="jugement[numParution]" size="10" maxlength="10" value="<?=$this->saisie['numParution']?>" />
</div>
<label>Date &eacute;v&egrave;nement / jugement<font color="Red">*</font></label>
<input class="date" type="text" name="jugement[dateJuge]" size="10" maxlength="10" value="<?=$this->saisie['dateJugement']?>" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Tribunal <font color="Red">*</font></label>
<select id="tribunal" name="jugement[tribunal]">
<option value="INCONU" selected>-</option>
<?php
$codeCmp = $this->codeTribunalCmp;
if ($codeCmp == '') {
if (count($this->ListeCompetences)>0) {
foreach($this->ListeCompetences as $item) {
if ($item->Type == 'C') {
$codeCmp = $item->Code;
break;
}
}
}
}
if (count($this->ListeTribunaux)>0) {
foreach ($this->ListeTribunaux as $code => $lib) {
if (strlen($lib)>39) $lib = substr($lib,0,41).'...';
echo '<option value="'.$code.'"';
if ($code==$codeCmp) echo ' selected';
echo ">$lib</option>";
}
}
?>
</select>
<label>&Eacute;v&egrave;nement / Jugement <font color="Red">*</font></label>
<select id="jugement" name="jugement[even][]" size="5">
<option value="0000">-</option>
<?php
if (count($this->tabEvent)>0) {
foreach($this->tabEvent as $key => $event) {
$select = '';
if ($this->saisie) {
if (array_key_exists('even', $this->saisie) && count($this->saisie['even'])>0){
foreach($this->saisie['even'] as $item){
if ($item->CodeEven==$key){
$select = ' selected';
break;
}
}
}
}
$display = true;
if ( $display ) {
?>
<option value="<?=$key?>" title="<?=$event?>"<?=$select?>><?=$event?></option>
<?php
}
}
}
?>
</select>
<div id="subFormSaisie">
<?=$this->action('even', 'saisie', null, array('num'=> $this->eventNum, 'siren'=>substr($this->siret,0,9)))?>
</div>

View File

@ -0,0 +1,177 @@
<div id="center">
<?php if ($message!='') { ?>
<div style="margin:5px; padding: 0pt 0.7em;" class="ui-state-highlight ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
<?=$message?></p>
</div>
<?php } ?>
<?php if ($this->etab->Siege==0) { ?>
<h1 class="titre">IDENTITE DE L'&Eacute;TABLISSEMENT</h1>
<?php } else { ?>
<h1 class="titre">IDENTITE DE L'ENTREPRISE</h1>
<?php } ?>
<div class="paragraph">
<div>
<label>Num&eacute;ro identifiant Siret</label>
<?=$this->SiretTexte($this->etab->Siret)?>
</div>
<div class="clearfix">
<label>Num&eacute;ro identifiant Siret du si&egrave;ge</label>
<a href="<?=$this->url(array(
'controller' => 'identite',
'action' => 'fiche',
'siret' => $this->etab->SiretSiege))?>">
<?=$this->SiretTexte($this->etab->SiretSiege)?>
</a>
</div>
<div class="clearfix">
<label>Dénomination Sociale</label>
<?php
echo $this->etab->Nom;
if ($this->etab->Nom2!='') echo ' / '.$this->etab->Nom2;
?>
</div>
<div class="clearfix">
<label>Adresse</label>
<div style="float:left;">
<?php
echo $this->etab->AdresseNum.' '.$this->etab->AdresseRue.'<br/>';
if (!empty($this->etab->Adresse)) echo $this->etab->Adresse.'<br/>';
if (!empty($this->etab->Adresse2)) echo $this->etab->Adresse2.'<br/>';
echo $this->etab->CP.' '.$this->etab->Ville;
?>
</div>
</div>
<div>
<label>&Eacute;tablissement</label>
<?php
if ($this->etab->Siege==1) echo "Si&egrave;ge";
else echo "Secondaire";
if ($this->etab->Actif==1) echo " actif";
else echo " inactif";
if($this->etab->Nic*1==0 || $this->etab->Nic*1>=99990)
echo " provisoire";
?>
</div>
<?php
$siteWeb = '';
if (substr($this->etab->Web,0,7)<>'http://')
$siteWeb='http://'.$this->etab->Web;
else
$siteWeb=$this->etab->Web;
?>
</div>
<h2 id="dFormLogo" href="<?=$this->url(array('controller'=>'logo', 'action'=>'index', 'siren'=>$this->etab->Siren))?>">Logo</h2>
<div class="paragraph">
<div id="formLogo"></div>
</div>
<h2>Dénomination sociale et coordonnées</h2>
<form name="form_saisie" action="<?=$this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'save'), null, true)?>" method="post" enctype="multipart/form-data">
<input type="hidden" name="siret" value="<?=$this->siret?>"/>
<input type="hidden" name="id" value="<?=$this->id?>"/>
<input type="hidden" name="siren" value="<?=$this->etab->Siren?>"/>
<input type="hidden" name="nic" value="<?=$this->etab->Nic?>"/>
<div class="paragraph">
<label>T&eacute;l&eacute;phone</label>
<input type="text" name="frmSaisie[tel]" size="25" maxlength="100" value="<?=trim($this->etab->Tel)?>" />
<label>Fax</label>
<input type="text" name="frmSaisie[fax]" size="25" maxlength="100" value="<?=trim($this->etab->Fax)?>" />
<label>Site Internet</label>
<input type="text" name="frmSaisie[web]" size="40" maxlength="100" value="<?=$siteWeb?>" />
<label>E-mail</label>
<input type="text" name="frmSaisie[mail]" size="40" maxlength="100" value="<?=trim($this->etab->Mail)?>" />
</div>
<h2>Activité(s) et Chiffres d'Affaires</h2>
<div class="paragraph">
<label>Code ISIN</label>
<input type="text" name="frmSaisie[isin]" size="15" maxlength="15" value="<?=trim($this->etab->Isin)?>" />
<label>Activit&eacute; d&eacute;clar&eacute;e de l'entreprise</label>
<textarea name="frmSaisie[activite]" rows="5" cols="40"><?=$this->etab->Activite?></textarea>
<label>Capital Montant</label>
<input type="text" name="frmSaisie[capital_mt]" size="10" maxlength="11" value="<?=trim($this->etab->Capital)*1.0?>" disabled="disabled"/>
<label>Capital Devise</label>
<select disabled="disabled" name="frmSaisie[capital_dev]">
<?php
$selOne=false;
foreach($this->devises as $dev) {
if (trim($this->etab->CapitalDev)==$dev->devIso) { $selOne=true; $sel='selected'; } else $sel='';
$lib = $dev->devNom;
if (strlen($dev->devNom)>39) $lib = substr($dev->devNom,0,41).'...';
echo "<option value=\"$dev->devIso\" $sel >$lib</option>";
}
if (!$selOne) echo '<option value="0000" selected>-</option>';
?>
</select>
</div>
<h2>BODACC</h2>
<div class="paragraph">
<?=$this->action('form','saisie', null, array( 'siret' => $this->siret))?>
</div>
<h2>Informations diverses</h2>
<div class="paragraph">
<div>
<label>Autre siren (doublon)</label>
<input type="text" size="11" name="frmSaisie[sirenDoublon]" value="<?=$this->etab->sirenDoublon?>"/>
</div>
<label>Refus dinscription au Registre du Commerce et des Sociétés</label>
<input type="checkbox" name="refusRNCS" value="1"/>
<div id="divRefusRNCS"></div>
<?php
$waldec = '';
if (substr($this->etab->autreId,0,1)=='W'){
$waldec = $this->etab->autreId;
}
?>
<div>
<label>Identifiant R.N.A.</label>
<input type="text" size="11" name="frmSaisie[waldec]" value="<?=$waldec?>"/>
</div>
<div>
<label>Entreprise de domiciliation</label>
<select name="frmSaisie[domiciliataire]">
<option value="nd">Sans objet</option>
<option value="oui">Oui</option>
<option value="non">Non</option>
</select>
</div>
<?php
$disable = ' disabled';
if(substr($this->etab->FJ,0,1)=='1' || in_array($this->etab->FJ, array(2310, 2320, 2385))) {
$disable = '';
}
?>
<div>
<label>Entreprise ayant exercée son droit d'opposition en</label>
<input type="checkbox" name="oppositionInsee" value="1"<?=$disable?>/>
<div id="divOppositionInsee"></div>
</div>
<div class="submit clearfix"><input type="submit" name="submit" value="Sauver"/></div>
</div>
</form>
</div>

View File

@ -0,0 +1,236 @@
<style>
.editable { background-color:#30A5FF; }
.editable-error { background-color:#FF0000; }
.editable-change { background-color:#89FF30; }
span.unit select { width:50px; }
span.poste { min-width:50px; color:black; display:block; width:100%; }
span.poste input { width:50px; }
</style>
<div id="center">
<?php if ($message!='') {?>
<div style="margin:5px; padding: 0pt 0.7em;" class="ui-state-highlight ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
<?=$message?></p>
</div>
<?php } ?>
<h1 class="titre">Saisie ou Correction Liasse</h1>
<div class="paragraph">
<div class="clearfix">
<label>Num&eacute;ro identifiant Siret</label>
<?=$this->SiretTexte($this->siret)?>
</div>
<div class="clearfix">
<label>Dénomination Sociale</label>
<?=$this->raisonSociale?>
</div>
</div>
<h2>Liasse</h2>
<div class="paragraph">
<?php if ($this->infos) {?>
<div class="content">
<?php
$params = array(
'ancres' => $this->ancres,
'typeBilan' => $this->typeBilan,
'unite' => $this->unite,
'dateCloture' => $this->dateCloture,
'dureeMois'=> $this->dureeMois,
'dateCloturePre'=> $this->dateCloturePre,
'dureeMoisPre'=> $this->dureeMoisPre,
'liasse'=> $this->liasse,
);
if ($this->typeBilan=='N' || $this->typeBilan=='C') {
echo $this->partial('saisie/liasse/2050.phtml', $params);
} elseif ($this->typeBilan=='S') {
echo $this->partial('saisie/liasse/2033.phtml', $params);
}
?>
</div>
<div id="saveMsg" style="text-align:center;width:100%;height:30px;clear:both;"></div>
<?php if ( $this->infos == 'NEW' ) {?>
<input type="hidden" name="originalDateCloture" value="<?=$this->dateCloture?>"/>
<input type="hidden" name="originalTypeBilan" value="<?=$this->typeBilan?>"/>
<?php }?>
<div style="text-align:center;">
<input type="submit" class="button" id=onlycheck name="onlycheck" value="Verifier" />
<input type="submit" class="button" id="normal" name="normal" value="Publier" />
<input style="display:none;" type="submit" class="button" id="nocheck" name="nocheck" value="Forcer" />
</div>
<div>
<i>Si après vérification le bilan n'est pas saisi, <a id="debugAction" href="#">afficher les éléments de debug</a>,
copier-coller les éléments qui s'affiche et envoyer le à support@scores-decisions.com</i>
</div>
<div id="debug"><span></span></div>
<?=$this->partial()->view->inlineScript();?>
<script>
<?php if ($this->typeBilan!='S') { ?>
$('span#typeBilan').editable(function(value, settings) { return value; }, {
data : {'C':'C', 'N':'N', 'selected':'<?=$this->typeBilan?>'},
type : 'select',
tooltip : 'Click to edit',
});
<?php } ?>
$(document).ready(function(){
$.datepicker.setDefaults( $.datepicker.regional['fr'] );
});
$('span.unit').editable(function(value, settings) { return value; }, {
data : {'U':'&euro;','K':'K&euro;','M':'M&euro;', 'selected':'<?=$this->unite?>'},
type : 'select',
tooltip : 'Click to edit',
});
$('input.dateCloture').datepicker({ maxDate: 1 });
$('span.duree').editable(function(value, settings) {
if ( isFloat(value) && value.length<3 ) {
$(this).addClass('editable-change');
return value;
}
}, {
data : "{'1':'1','2':'2','3':'3','4':'4','5':'5','6':'6','7':'7','8':'8','9':'9','10':'10','11':'11','12':'12','13':'13','14':'14','15':'15','16':'16','17':'17','18':'18','19':'19','20':'20','21':'21','22':'22','23':'23'}",
type : 'select',
tooltip : 'Click to edit',
});
$('span.poste').editable(function(value, settings) {
var id = $(this).attr('id');
if ( isFloat(value) && id!=value ) {
$(this).addClass('editable-change');
return value;
}
$(this).removeClass('editable-change').addClass('editable');
return id;
}, {
tooltip : 'Click to edit',
}).click(function(){ $(this).find('input').select(); });
$('span.poste').bind('keydown', function(e) {
if(e.keyCode==9 || e.keyCode==13) {
$(this).find('form').submit();
var nextBox='';
var currentBoxIndex=$('span.poste').index(this);
if (currentBoxIndex == ($('span.poste').length-1)) {
nextBox=$('span.poste:first'); //last box, go to first
} else {
nextBox=$('span.poste').eq(currentBoxIndex+1); //Next box in line
}
$(this).find('input').blur();
$(nextBox).click().find('input').select(); //Go to assigned next box
return false; //Suppress normal keypress
};
});
$('input#onlycheck').click(function(e){
e.preventDefault();
$('div#saveMsg').html('Vérification en cours....');
sendInfo('onlycheck');
});
$('input#normal').click(function(e){
e.preventDefault();
$('div#saveMsg').html('Enregistrement en cours....');
sendInfo('normal');
});
$('input#nocheck').click(function(e){
e.preventDefault();
$('div#saveMsg').html('Enregistrement en cours....');
sendInfo('nocheck');
});
$('a#debugAction').click(function(e){
e.preventDefault();
sendInfo('debug');
});
function sendInfo(step)
{
if (step!='debug') {
$('input#'+step).css('display', 'none');
}
var strPostes = '';
$('span.poste').each(function(){
id = $(this).attr('id');
val = $(this).html();
if (val != id && val != '' && val != '-') {
if (strPostes!='') strPostes = strPostes + ';';
strPostes = strPostes + id + '=' + val;
}
});
var sendValues = {
step: step,
originalDateCloture: $('input[name=originalDateCloture]').val(),
originalTypeBilan: $('input[name=originalTypeBilan]').val(),
unite: $('span#unit').html(),
dateCloture: $('input#dateCloture').val(),
dureeMois: $('span#dureeMois').html(),
dateCloturePre: $('input#dateCloturePre').val(),
dureeMoisPre: $('span#dureeMoisPre').html(),
typeBilan: $('span#typeBilan').html(),
postes: strPostes
};
if (step=='debug') {
var debug = '';
for ( prop in sendValues ) {
debug += prop + ':' + sendValues[prop]+' ';
}
$('div#debug span').html(debug);
} else {
$.post('/saisie/liassesave/siren/<?=$this->siren?>', sendValues, function(data) {
$('span.editable-error').addClass('editable-change').removeClass('editable-error');
if (data.status=='OK') {
var msg = 'Bilan saisi.';
if (step == 'onlycheck') {
msg = 'Vérification OK.';
$('input#'+step).css('display', 'block');
}
$('div#saveMsg').html(msg);
} else {
var msg='Unknow Error';
if (data.status=='ERR') {
if (data.postes.length>0) {
for (i in data.postes) {
$('span#'+data.postes[i]).removeClass('editable-change').addClass('editable-error');
}
var offset = $('span#'+data.postes[i]).offset();
window.scrollTo(window.scrollX, offset.top);
}
msg=data.message;
}
$('div#saveMsg').html(msg);
if (step=='normal') { $('input#nocheck').css('display', 'inline'); }
$('input#'+step).css('display', 'inline');
}
}, 'json'
).fail(function(){
$('div#saveMsg').html('Error Timeout');
$('input#'+step).css('display', 'block');
});
}
}
function isInteger(number)
{
var exp = new RegExp("^[\-0-9]+$","g");
return exp.test(number);
}
function isFloat(number)
{
var exp = new RegExp("^[\-0-9\.]+$","g");
return exp.test(number);
}
</script>
<?php } else {?>
Aucune sélection.
<?php }?>
</div>
</div>

View File

@ -0,0 +1 @@
<?=json_encode($this->result)?>

View File

@ -0,0 +1,15 @@
<select name="frmSaisie[moisOppositionInsee]">
<?php
setlocale (LC_TIME, 'fr_FR.UTF-8', 'fra');
$month = date("m");
for($i=0;$i<12;$i++)
{
$lastmonth = mktime(0, 0, 0, $month-$i, date("d"), date("Y"));
$selected = '';
if($i==1) $selected = 'selected';
?>
<option value="<?=date('Ym',$lastmonth)?>" <?=$selected?>><?=strftime('%B',$lastmonth)?> <?=date('Y',$lastmonth)?></option>
<?php
}
?>
</select>

View File

@ -0,0 +1,16 @@
<select name="frmSaisie[moisRefusRCS]">
<option value="">-</option>
<?php
setlocale (LC_TIME, 'fr_FR.UTF-8', 'fra');
$month = date("m");
for($i=0;$i<12;$i++)
{
$lastmonth = mktime(0, 0, 0, $month-$i, date("d"), date("Y"));
$selected = '';
if($i==1) $selected = 'selected';
?>
<option value="<?=date('Ym',$lastmonth)?>" <?=$selected?>><?=strftime('%B',$lastmonth)?> <?=date('Y',$lastmonth)?></option>
<?php
}
?>
</select>

View File

@ -0,0 +1,38 @@
<div id="center">
<h2>Saisie</h2>
<div class="paragraph">
<?php if (!empty($this->message)) { ?>
<div style="margin:5px; padding:0.7em;" class="ui-state-highlight ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
<?=$this->message?>
</p></div>
<?php } ?>
<br/>
<a href="<?=$this->url(array('controller'=>'juridique', 'action'=>'annonces', 'siret'=>$this->siret, 'id'=>$this->id))?>">
Retour à la liste des annonces légales.
</a><br/>
<a href="<?=$this->url(array('controller'=>'identite', 'action'=>'fiche', 'siret'=>$this->siret, 'id'=>$this->id))?>">
Retour à la fiche identité.
</a><br/>
<a href="<?=$this->url(array('controller'=>'recherche', 'action'=>'entreprise'))?>">
Retour à la recherche
</a>
</div>
<h2>Paramètres</h2>
<pre>
<?php print_r($this->params);?>
</pre>
<h2>Infos Envoyés</h2>
<pre>
<?php print_r($this->tabInfos);?>
</pre>
<pre>
<?php print_r($this->O);?>
</pre>
</div>

View File

@ -0,0 +1,193 @@
<?php if ( $this->href ) {?>
<a class="dialog" title="<?=$this->name?>" href="<?=$this->href?>"><?=$this->name?></a>
<script>
$('a.dialog').on('click', function(e){
e.preventDefault();
var title = $(this).attr('title');
var href = $(this).attr('href');
var dialogOpts = {
bgiframe: true,
title: title,
width: 710,
height: 530,
modal: true,
open: function(event, ui) {
$(this).html('Chargement...');
$(this).load(href);
},
buttons: {"Fermer": function() { $(this).dialog('close'); }},
close: function() { $('#dialog').remove(); }};
$('<div id="dialog"></div>').dialog(dialogOpts);
return false;
});
</script>
<?php } elseif ( $this->mode == 'todelete' ) {?>
<p>Etes vous sur de vouloir supprimer le cut-off sur le siren <?=$this->siren?> ? </p>
<form action="<?=$this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'scorecutoff'), null, true)?>" method="post">
<input type="hidden" name="siren" value="<?=$this->siren?>">
<input type="hidden" name="mode" value="delete">
<input type="hidden" name="encours" value="<?=$this->encours?>"/>
<input type="hidden" name="scoreConf" value="<?=$this->scoreConf?>"/>
<input type="hidden" name="scoreDir" value="<?=$this->scoreDir?>"/>
<input type="hidden" name="scoreSolv" value="<?=$this->scoreSolv?>"/>
<input type="hidden" name="remarque" value="<?=$this->remarque?>"/>
</form>
<script>
$('#dialog').dialog({ buttons: [
{text: "Oui", click: function() {
var values = $(this).find('form').serialize();
var url = $(this).find('form').attr('action');
$('#dialog').html('Chargement...');
$.post(url, values, function(data) {
$('#dialog').html(data);
});
}},
{text: "Non", click: function() { $(this).dialog('close'); }}
] });
</script>
<?php } elseif ( $this->mode == 'delete' || $this->mode == 'added' ) {?>
<div class="ui-widget">
<div class="ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em;">
<p><?=$this->message?></p></p>
</div>
</div>
<script>
var windowhref = window.location.href;
$('#dialog').dialog({ buttons: [
{text: "Fermer", click: function() { $(this).dialog('close'); window.location.href = windowhref; }}
] });
</script>
<?php } else {?>
<style>
select, input {
width:5em;
}
</style>
<?php $getcutoff = $this->getcutoff; ?>
<?php if ($this->message!='') {?>
<div class="ui-widget">
<div class="ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em;">
<p><?=$this->message?></p></p>
</div>
</div>
<?php }?>
<?php if ($getcutoff['dateInsert']!='') { ?>
<div class="StyleInfoLib" style="float:left; margin-left:40em; margin-top:20px; width:170px">
<div>Date de création Cut-off</div>
<div>Date de mise à jour Cut-off</div>
</div>
<div class="StyleInfoData" style="float:left; margin-top:20px; ">
<div>
<?php $date = new Zend_Date($getcutoff['dateInsert'], 'yyyy-MM-dd')?>
<?=$date->toString('dd/MM/yyyy')?>
</div>
<div>
<?php $date = new Zend_Date($getcutoff['dateUpdate'], 'yyyy-MM-dd')?>
<?=$date->toString('dd/MM/yyyy')?>
</div>
</div>
<?php } ?>
<div style="margin-top:5em">
<form action="<?=$this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'scorecutoff'), null, true)?>" method="post">
<input type="hidden" name="siren" value="<?=$this->siren?>">
<div>
<label>Encours</label>
<input type="text" name="encours" value="<?php echo $getcutoff['encours']?$getcutoff['encours']/1000:''; ?>" required pattern="([0-9]{0,2})|([0-4]{1}[0-9]{0,2})|500" maxlength="3"/>
</div>
<div style="float:left">K€ (de 0 à 500 K€)</div>
<?php
$select = array('scoreConf' => 'Score de conformité', 'scoreDir' => 'Score dirigeance', 'scoreSolv' => 'IndiScore');
foreach($select as $item => $val) {
?>
<div>
<label><?=$val?></label>
<select name="<?=$item ?>" required>
<option value='' selected>---</option>
<?php
for($i=0; $i<=$this->typescore; $i++) {
$selected = '';
if (is_numeric($getcutoff[$item]) && $i == $getcutoff[$item]) {
$selected = 'selected';
}
echo '<option value="'.$i.'" '.$selected.'>'.$i.'</option>';
}
?>
</select>
</div>
<?php } ?>
<div>
<label>Remarque</label>
<textarea name="remarque" cols="5" required><?=$getcutoff['remarque']; ?></textarea>
</div>
<div>
<label>Information de paiement</label>
<select name="paiement" style="width: 30em;">
<option value='' selected>---</option>
<?php
$paiement = array(
'00' => 'Aucune difficulté significative ne nous a été signalée',
'21' => 'A suivre. Informations terrain. Risque de fermeture',
'24' => 'A suivre. Entreprise(s) du groupe à suivre',
'25' => 'A suivre. Informations terrain récentes négatives',
'50' => 'Attention, liens internationaux très risqués',
'D' => 'A suivre. Informations terrain récentes négatives',
'I' => 'Présence d\'impayé(s)',
'P' => 'A surveiller. Présence de privilèges dans les 24 derniers mois',
'T' => 'Nombreuses demandes d\'avis de crédit',
);
foreach($paiement as $key=>$value) {
$selected = '';
if ($key == $getcutoff['paiement']) {
$selected = 'selected';
}
?>
<option value="<?=$key?>" <?=$selected; ?>><?=$value?></option>
<?php } ?>
</select>
</div>
</form>
</div>
<script>
$('#dialog').dialog({ buttons: [
<?php if ($getcutoff['dateInsert']!='') { ?>
{text: "Supprimer", click: function() {
var values = $(this).find('form').serialize();
var url = $(this).find('form').attr('action') + '/mode/todelete';
$('#dialog').html('Chargement...');
$.post(url, values, function(data) {
$('#dialog').html(data);
});
}},
<?php }?>
{text: "Valider", click: function() {
var values = $(this).find('form').serialize();
var url = $(this).find('form').attr('action');
$('#dialog').html('Chargement...');
$.post(url, values, function(data) {
$('#dialog').html(data);
});
}},
{text: "Fermer", click: function() { $(this).dialog('close'); }}
] });
</script>
<?php }?>

View File

@ -0,0 +1,236 @@
<style>
.editable { background-color:#30A5FF; }
.editable-error { background-color:#FF0000; }
.editable-change { background-color:#89FF30; }
span.unit select { width:50px; }
span.poste { min-width:50px; color:black; display:block; width:100%; }
span.poste input { width:50px; }
</style>
<div id="center">
<?php if ($message!='') {?>
<div style="margin:5px; padding: 0pt 0.7em;" class="ui-state-highlight ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
<?=$message?></p>
</div>
<?php } ?>
<h1 class="titre">Saisie ou Correction Liasse</h1>
<div class="paragraph">
<div class="clearfix">
<label>Num&eacute;ro identifiant Siret</label>
<?=$this->SiretTexte($this->siret)?>
</div>
<div class="clearfix">
<label>Dénomination Sociale</label>
<?=$this->raisonSociale?>
</div>
</div>
<h2>Liasse</h2>
<div class="paragraph">
<?php if ($this->infos) {?>
<div class="content">
<?php
$params = array(
'ancres' => $this->ancres,
'typeBilan' => $this->typeBilan,
'unite' => $this->unite,
'dateCloture' => $this->dateCloture,
'dureeMois'=> $this->dureeMois,
'dateCloturePre'=> $this->dateCloturePre,
'dureeMoisPre'=> $this->dureeMoisPre,
'liasse'=> $this->liasse,
);
if ($this->typeBilan=='N' || $this->typeBilan=='C') {
echo $this->partial('saisie/liasse/2050.phtml', $params);
} elseif ($this->typeBilan=='S') {
echo $this->partial('saisie/liasse/2033.phtml', $params);
}
?>
</div>
<div id="saveMsg" style="text-align:center;width:100%;height:30px;clear:both;"></div>
<?php if ( $this->infos == 'NEW' ) {?>
<input type="hidden" name="originalDateCloture" value="<?=$this->dateCloture?>"/>
<input type="hidden" name="originalTypeBilan" value="<?=$this->typeBilan?>"/>
<?php }?>
<div style="text-align:center;">
<input type="submit" class="button" id=onlycheck name="onlycheck" value="Verifier" />
<input type="submit" class="button" id="normal" name="normal" value="Publier" />
<input style="display:none;" type="submit" class="button" id="nocheck" name="nocheck" value="Forcer" />
</div>
<div>
<i>Si après vérification le bilan n'est pas saisi, <a id="debugAction" href="#">afficher les éléments de debug</a>,
copier-coller les éléments qui s'affiche et envoyer le à support@scores-decisions.com</i>
</div>
<div id="debug"><span></span></div>
<?=$this->partial()->view->inlineScript();?>
<script>
<?php if ($this->typeBilan!='S') { ?>
$('span#typeBilan').editable(function(value, settings) { return value; }, {
data : {'C':'C', 'N':'N', 'selected':'<?=$this->typeBilan?>'},
type : 'select',
tooltip : 'Click to edit',
});
<?php } ?>
$(document).ready(function(){
$.datepicker.setDefaults( $.datepicker.regional['fr'] );
});
$('span.unit').editable(function(value, settings) { return value; }, {
data : {'U':'&euro;','K':'K&euro;','M':'M&euro;', 'selected':'<?=$this->unite?>'},
type : 'select',
tooltip : 'Click to edit',
});
$('input.dateCloture').datepicker({ maxDate: 1 });
$('span.duree').editable(function(value, settings) {
if ( isFloat(value) && value.length<3 ) {
$(this).addClass('editable-change');
return value;
}
}, {
data : "{'1':'1','2':'2','3':'3','4':'4','5':'5','6':'6','7':'7','8':'8','9':'9','10':'10','11':'11','12':'12','13':'13','14':'14','15':'15','16':'16','17':'17','18':'18','19':'19','20':'20','21':'21','22':'22','23':'23'}",
type : 'select',
tooltip : 'Click to edit',
});
$('span.poste').editable(function(value, settings) {
var id = $(this).attr('id');
if ( isFloat(value) && id!=value ) {
$(this).addClass('editable-change');
return value;
}
$(this).removeClass('editable-change').addClass('editable');
return id;
}, {
tooltip : 'Click to edit',
}).click(function(){ $(this).find('input').select(); });
$('span.poste').bind('keydown', function(e) {
if(e.keyCode==9 || e.keyCode==13) {
$(this).find('form').submit();
var nextBox='';
var currentBoxIndex=$('span.poste').index(this);
if (currentBoxIndex == ($('span.poste').length-1)) {
nextBox=$('span.poste:first'); //last box, go to first
} else {
nextBox=$('span.poste').eq(currentBoxIndex+1); //Next box in line
}
$(this).find('input').blur();
$(nextBox).click().find('input').select(); //Go to assigned next box
return false; //Suppress normal keypress
};
});
$('input#onlycheck').click(function(e){
e.preventDefault();
$('div#saveMsg').html('Vérification en cours....');
sendInfo('onlycheck');
});
$('input#normal').click(function(e){
e.preventDefault();
$('div#saveMsg').html('Enregistrement en cours....');
sendInfo('normal');
});
$('input#nocheck').click(function(e){
e.preventDefault();
$('div#saveMsg').html('Enregistrement en cours....');
sendInfo('nocheck');
});
$('a#debugAction').click(function(e){
e.preventDefault();
sendInfo('debug');
});
function sendInfo(step)
{
if (step!='debug') {
$('input#'+step).css('display', 'none');
}
var strPostes = '';
$('span.poste').each(function(){
id = $(this).attr('id');
val = $(this).html();
if (val != id && val != '' && val != '-') {
if (strPostes!='') strPostes = strPostes + ';';
strPostes = strPostes + id + '=' + val;
}
});
var sendValues = {
step: step,
originalDateCloture: $('input[name=originalDateCloture]').val(),
originalTypeBilan: $('input[name=originalTypeBilan]').val(),
unite: $('span#unit').html(),
dateCloture: $('input#dateCloture').val(),
dureeMois: $('span#dureeMois').html(),
dateCloturePre: $('input#dateCloturePre').val(),
dureeMoisPre: $('span#dureeMoisPre').html(),
typeBilan: $('span#typeBilan').html(),
postes: strPostes
};
if (step=='debug') {
var debug = '';
for ( prop in sendValues ) {
debug += prop + ':' + sendValues[prop]+' ';
}
$('div#debug span').html(debug);
} else {
$.post('/saisie/liassesave/siren/<?=$this->siren?>', sendValues, function(data) {
$('span.editable-error').addClass('editable-change').removeClass('editable-error');
if (data.status=='OK') {
var msg = 'Bilan saisi.';
if (step == 'onlycheck') {
msg = 'Vérification OK.';
$('input#'+step).css('display', 'block');
}
$('div#saveMsg').html(msg);
} else {
var msg='Unknow Error';
if (data.status=='ERR') {
if (data.postes.length>0) {
for (i in data.postes) {
$('span#'+data.postes[i]).removeClass('editable-change').addClass('editable-error');
}
var offset = $('span#'+data.postes[i]).offset();
window.scrollTo(window.scrollX, offset.top);
}
msg=data.message;
}
$('div#saveMsg').html(msg);
if (step=='normal') { $('input#nocheck').css('display', 'inline'); }
$('input#'+step).css('display', 'inline');
}
}, 'json'
).fail(function(){
$('div#saveMsg').html('Error Timeout');
$('input#'+step).css('display', 'block');
});
}
}
function isInteger(number)
{
var exp = new RegExp("^[\-0-9]+$","g");
return exp.test(number);
}
function isFloat(number)
{
var exp = new RegExp("^[\-0-9\.]+$","g");
return exp.test(number);
}
</script>
<?php } else {?>
Aucune sélection.
<?php }?>
</div>
</div>

View File

@ -0,0 +1 @@
<?=json_encode($this->result)?>

View File

@ -0,0 +1,106 @@
<style>
#dialog div { margin: 5px 0; }
p.italic {font-style: italic;}
</style>
<?php if ($this->message) {?>
<?=$this->message?>
<script>
$('#dialog').dialog({ buttons: [{ text: "Fermer", click: function() {$(this).dialog('close');} } ] });
</script>
<?php } else {?>
<form name="lienchange" method="post" action="<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'change'), 'default', true)?>">
<input type="hidden" name="idLien" value="<?=$this->idLien?>"/>
<input type="hidden" name="mode" value="<?=$this->mode?>"/>
<?php if ($this->mode=='fusion') {?>
<div><p>Fusionner la fiche <?=$this->nom?> (id=<?=$this->lienref?>)</p></div>
<?php } elseif ($this->mode=='moveact'){?>
<div><p>Déplacer l'actionnaire <?=$this->nom?> (id=<?=$this->lienref?>)</p></div>
<?php }elseif ($this->mode=='movepar') {?>
<div><p>Déplacer la participation <?=$this->nom?> (id=<?=$this->lienref?>)</p></div>
<?php }?>
<div id="searchFiche">
<div class="fieldgrp">
<label>Recherche du parent</label>
<select name="searchType">
<option value="nom">Nom</option>
<option value="siren">Siren</option>
<option value="id">Identifiant</option>
<option value="special">Spéciaux</option>
</select>
<select name="searchCountry" style="width:100px;">
<option value="">-</option>
<?php foreach($this->countries as $code => $item) {?>
<option value="<?=$code?>"<?=$select?>><?=$item['libPays']?></option>
<?php }?>
</select>
<input type="text" name="searchTxt" class="autocomplete"/>
</div>
</div>
<div><p class="italic">Attention le déplacement d'un lien implique le déplacement des liens descendants !</p></div>
</form>
<script>
$('input.autocomplete').bind("keypress", function(e) {
if (e.keyCode == 13) {
e.preventDefault();
return false;
}
});
$('input.autocomplete').autocomplete({
minLength:4,
delay:1000,
source: function(request, response) {
var query = request.term;
var type = $('select[name=searchType]').val();
switch( type ) {
case 'siren': break;
case 'id': break;
case 'nom':
if ($('select[name=searchCountry]').val()!='') {
query = query + ',' + $('select[name=searchCountry]').val();
}
break;
}
$.getJSON('<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'search'), 'default', true)?>', { q: query, type: type },
function(data) { response(data); }
);
},
select: function(event, ui) {
$('form[name=lienchange]').prepend('<input type="hidden" name="id" value="'+ui.item.value+'"/>');
$('div#searchFiche').replaceWith('<b>Fiche sélectionnée '+ui.item.label+' (id = '+ui.item.value+')</b>');
$('#dialog').dialog({ buttons: [{
text: "Déplacer", click: function() {
var id = $('form[name=lienchange] input[name=id]').val();
if (id!='') {
var form = $('form[name=lienchange]');
$.post(form.attr('action'), form.serialize(), function(data){
$('form[name=lienchange]').replaceWith(data);
}).fail(function(){ alert('Unknow error'); });
}
}}, {
text: "Annuler", click: function() { $(this).dialog('close'); } }
] });
}
});
</script>
<?php }?>

View File

@ -0,0 +1,26 @@
<?php if (!$this->message) {?>
<div id='message'>Supprimer la fiche?</div>
<script>
$('#confirm').dialog({ buttons: [
{ text: "Oui", click: function() {
$('div#message').text('Suppression en process...');
$(".ui-dialog-buttonpane button").hide();
$(".ui-dialog-buttonpane button:contains('Fermer')").show();
$(".ui-dialog-buttonpane button").button("option", "disabled", true);
$.post('/saisie/liendelete', {idFiche: '<?=$this->id ?>'}, function(data) {
$('div#message').html(data);
$(".ui-dialog-buttonpane button").button("option", "disabled", false);
});
}},
{ text: "Non", click: function() { $(this).dialog('close'); }},
{ text: "Fermer", click: function() {
$(this).dialog('close');
window.location = '/recherche/entreprise';
}}
] });
$(".ui-dialog-buttonpane button:contains('Fermer')").hide();
</script>
<?php } else { ?>
<div id='message'><?=$this->message ?></div>
<?php }?>

View File

@ -0,0 +1,130 @@
<div id="result">
<form name="lienDoc" method="post" enctype="multipart/form-data"
action="<?=$this->url(array('module'=>'input','controller'=>'lien', 'action'=>'docsave'), 'default', true)?>">
<input type="hidden" name="idNum" value="<?=$this->idNum?>"/>
<?php if ($this->mode == 'delete') {?>
<input type="hidden" name="mode" value="<?=$this->mode?>"/>
Supprimer le fichier <?=$this->doc->label?> ?
<?php } else {?>
<input type="hidden" name="idType" value="<?=$this->idType?>"/>
<fieldset>
<legend>Documents</legend>
<div class="fieldgrp">
<label>Périmètre du document : </label>
<div class="field">
<select name="periDoc">
<option value="G">Groupe complet</option>
<option value="GE">Groupe à l'étranger</option>
<option value="GF">Groupe en FR</option>
<option value="A">Action. directs et ind.</option>
<option value="AD">Action. directs</option>
<option value="Ad">L'actionnaire direct</option>
<option value="P">Participations directes et ind.</option>
<option value="PD">Part. directes,</option>
<option value="Pd">La participation directe</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Type :</label>
<div class="field">
<select name="typeDocument">
<option value="greffeactes">Greffe - Actes</option>
<option value="greffebilans">Greffe - Bilans</option>
<option value="sendfile">Autre</option>
</select>
</div>
</div>
<div id="greffebilans" style="display:none;">
Liste des documents Infogreffe
</div>
<div id="greffeactes" style="display:none;">
Liste des documents Infogreffe
</div>
<div id="sendfile" style="display:none;">
<div class="fieldgrp">
<label>Fichier :</label>
<div class="field">
<input type="file" name="fichier" />
</div>
</div>
<div class="fieldgrp">
<label>Type : </label>
<div class="field">
<select name="fileType">
<option value="CA">Comptes Annuels</option>
<option value="CC">Comptes Consolidés</option>
<option value="DR">Document de référence</option>
<option value="RA">Rapport Annuel ou d'Activité</option>
<option value="RS">Rapport Semestriel</option>
<option value="RG">Rapport de gestion</option>
<option value="RF">Rapport financier</option>
<option value="OR">Organigramme</option>
<option value="AP">Article de presse</option>
<option value="AC">Acte</option>
<option value="ST">Statuts</option>
<option value="DW">Document Web/Internet</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Date du document ou date de cloture de l'exercice :</label>
<div class="field">
<input type="text" name="fileDate" value="" /> (JJ/MM/AAAAA)
</div>
</div>
</div>
</fieldset>
<?php } ?>
<input type="submit" name="submit" value="Valider" />
</form>
</div>
<script type="text/javascript" src="/libs/form/jquery.form.min.js"/>
<script>
$.datepicker.setDefaults( $.datepicker.regional["fr"] );
$('input[name=fileDate]').datepicker({ changeMonth: true, changeYear: true });
$('select[name=typeDocument]').on('change', function(e){
e.preventDefault();
switch($(this).val()){
case 'greffeactes':
break;
case 'greffebilans':
break;
case 'sendfile':
$('div#sendfile').css('display','block');
break;
}
});
$('form[name=lienDoc]').on('submit', function(e){
e.preventDefault();
var options = {
target: 'div#result',
beforeSubmit: function(data){ $('div#result').html('Enregistrement...'); },
success: function(data){}
};
$(this).ajaxSubmit(options);
return false;
});
</script>

View File

@ -0,0 +1,322 @@
<?php if ($this->mode == 'new') {?>
<style>
form em {color:#FF0000;}
fieldset {border:1px solid; padding:5px;}
fieldset legend {padding:5px;}
.fieldgrp {clear:both; width:100%; margin-bottom:.5em; overflow:hidden;}
.fieldgrp:after {content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0; }
.fieldgrp label {clear:both; padding:0 10px 0 0; line-height:22px; _padding-top:3px; float:left; display:block;}
.fieldgrp label span {font-weight:normal;}
.fieldgrp label abbr {color:#4B911C; font-size:120%; vertical-align:middle;}
fieldset .fieldgrp {clear:both; width:100%; margin-bottom:.5em; overflow:hidden;}
fieldset .fieldgrp:after {content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0; }
fieldset .fieldgrp label { clear:both; padding:0 10px 0 0; line-height:22px; _padding-top:3px; float:left; display:block;}
fieldset .fieldgrp label span {font-weight:normal;}
fieldset .fieldgrp label abbr {color:#4B911C; font-size:120%; vertical-align:middle;}
.field {float:left; padding:0 10px 0 0;line-height:22px;_padding-top:3px;}
.field .longfield {width:215px;}
.field .longfield-select {width:220px;}
.field .smallfield {width:95px;}
.field .medfield {width:110px;}
.field input, .field select { margin:2px 0; }
.field input[type="radio"] { margin:0 5px 0 5px; }
div#pp { display:none; }
div#etranger { display:none; }
.ui-widget-content a {color:blue; text-decoration:underline;}
</style>
<div id="center">
<form name="saveLienRef" action="<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'refsave'), 'default', true)?>" method="post">
<?php }?>
<div class="fieldgrp">
<label>Dénomination sociale</label>
<div class="field">
<input type="text" name="nom" value="<?=$this->RS?>"/>
<a href="#" id="google">Recherche Google</a>
</div>
</div>
<div class="fieldgrp">
<label>Sigle</label>
<div class="field">
<input type="text" name="sigle" value="<?=$this->sigle?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Adresse</label>
<div class="field">
<input type="text" name="adresse_num" size="4" value="<?=$this->adresse_num?>"/>
<input type="text" name="adresse_btq" size="1" value="<?=$this->adresse_btq?>"/>
<input type="text" name="adresse_codvoie" size="4" value="<?=$this->adresse_codvoie?>"/>
<input type="text" name="adresse_libvoie" size="32" value="<?=$this->adresse_libvoie?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Adresse complément</label>
<div class="field">
<input type="text" name="adresse_comp" size="40" value="<?=$this->adresse_comp?>"/>
</div>
</div>
<div class="fieldgrp">
<label>CP</label>
<div class="field">
<input type="text" name="adresse_cp" value="<?=$this->adresse_cp?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Ville</label>
<div class="field">
<input type="text" name="adresse_ville" value="<?=$this->adresse_ville?>"/>
</div>
</div>
<div class="fieldgrp">
<label>ISIN</label>
<div class="field">
<input type="text" name="isin" value="<?=$this->isin?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Pays</label>
<div class="field">
<select name="adresse_pays">
<option value="">-</option>
<?php foreach($this->countries as $code => $item) {?>
<?php $select = ''; if ($this->adresse_pays==$code) $select = 'selected';?>
<option value="<?=$code?>"<?=$select?>><?=$item['libPays']?></option>
<?php }?>
</select>
</div>
</div>
<div id="blocIdLocal">
<?php if ($this->edit) {?>
<?php for ($i=1;$i<=3;$i++) {?>
<div class="fieldgrp"><label>Identifiant local</label>
<div class="field"><input type="text" name="idLoc<?=$i?>Num" value="<?=$this->{'idLoc'.$i.'Num'}?>"/>
<select name="idLoc<?=$i?>Type">
<option value="">-</option>
<?php foreach($this->identifiant as $item) {?>
<?php $select =''; if ($item->internalId==$this->{'idLoc'.$i.'Type'}) $select = 'selected';?>
<option value="<?=$item->internalId?>"<?=$select?>><?=$item->name?></option>
<?php }?>
</select>
</div>
</div>
<?php }?>
<?php } else {?>
Selectionner un pays pour afficher les identifiants locaux
<?php }?>
</div>
<div class="fieldgrp">
<label>Téléphone</label>
<div class="field">
<div style="float-left;"></div><span id="indTel"></div><div></span><input type="text" name="tel" value="<?=$this->tel?>"/></div>
</div>
</div>
<div class="fieldgrp">
<label>Fax</label>
<div class="field">
<input type="text" name="fax" value="<?=$this->fax?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Web</label>
<div class="field">
<input type="text" name="web" value="<?=$this->web?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Mail</label>
<div class="field">
<input type="text" name="email" value="<?=$this->email?>"/>
</div>
</div>
<div class="fieldgrp">
<label>au capital de</label>
<div class="field">
<input type="text" name="capital" value="<?=$this->capital?>"/>
<select name="deviseCapital" style="width:150px;">
<option value="">-</option>
<?php foreach($this->currencies as $code => $item) {?>
<?php $select = ''; if ($this->deviseCapital==$code) $select = 'selected';?>
<option value="<?=$code?>"<?=$select?>><?=$item['devNom']?> - <?=$item['devIso']?></option>
<?php }?>
</select>
</div>
</div>
<div class="fieldgrp">
<label> en date du</label>
<div class="field">
<input type="text" name="dateCapital" value="<?=$this->dateCapital?>"/> (JJ/MM/AAAA)
</div>
</div>
<div class="fieldgrp">
<label>découpé en</label>
<div class="field">
<input type="text" name="nbActions" value="<?=$this->nbActions?>" /> action(s),
</div>
</div>
<div class="fieldgrp">
<label>en date du </label>
<div class="field">
<input type="text" name="dateNbActions" value="<?=$this->dateNbActions?>"/> (JJ/MM/AAAA)
</div>
</div>
<?php if ( $this->type=='participation' ) {?>
<fieldset>
<legend><i><u>Si disponible (holding, etc) saisir quelques éléments du bilan :</u></i></legend>
<div class="fieldgrp">
<label>Devise bilan</label>
<div class="field">
<select name="bilDev" style="width:150px;">
<option value="">-</option>
<?php foreach($this->currencies as $code => $item) {?>
<?php $select = ''; if ($this->bilDev==$code) $select = 'selected';?>
<option value="<?=$code?>"<?=$select?>><?=$item['devNom']?> - <?=$item['devIso']?></option>
<?php }?>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Chiffre d'affaires</label>
<div class="field">
<input type="text" name="bilFL" value="<?=$this->bilFL?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Résultat Net</label>
<div class="field">
<input type="text" name="bilHN" value="<?=$this->bilHN?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Fonds Propres</label>
<div class="field">
<input type="text" name="bilFPr" value="<?=$this->bilFPr?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Total Bilan</label>
<div class="field">
<input type="text" name="bilEE" value="<?=$this->bilEE?>"/>
</div>
</div>
</fieldset>
<?php }?>
<?php if ($this->mode == 'new') {?>
</form>
</div>
<?php }?>
<script>
var countries = new Array();
<?php foreach ($this->countries as $code => $item) { ?>
countries['<?=$code?>'] = new Array();
<?php foreach($item as $key => $value) {?>
countries['<?=$code?>']['<?=$key?>'] = "<?=$value?>";
<?php }?>
<?php }?>
$.datepicker.setDefaults( $.datepicker.regional["fr"] );
$('input[name=dateCapital]').datepicker({ changeMonth: true, changeYear: true });
$('input[name=dateNbActions]').datepicker({ changeMonth: true, changeYear: true });
$('select[name=adresse_pays]').change(function(e){
var code = $(this).val();
//Devise, indicatif téléphone
$('span#indTel').text('+'+countries[code]['indTel']);
$('select[name=deviseCapital]').val(countries[code]['devise']);
$('select[name=bilDev]').val(countries[code]['devise']);
//Local Id
$('div#blocIdLocal').html('');
AddSelectCountry(code);
});
$('div#blocIdLocal').on('click', 'a.addIdLocal', function(e){
e.preventDefault();
var country = $('select[name=adresse_pays]').val();
AddSelectCountry(country, $(this).attr('href'));
$('.addIdLocal').hide();
$('.removeIdLocal').hide();
});
$('div#blocIdLocal').on('click', 'a.removeIdLocal', function(e){
e.preventDefault();
var prevId = $(this).attr('href')-1;
$('a#ad'+prevId).show();
$('a#rm'+prevId).show();
$(this).parent().parent().remove();
});
function AddSelectCountry(code, n){
if (!n) { n=1; } else {n++;}
if (n<=3){
var html = 'Aucun identifiant !';
$.getJSON('/saisie/countryid', {code: code}, function(data){
var option = '';
$.each(data, function(i, item){
option = option + '<option value="'+item.internalId+'">'+item.name+'</option>';
});
if (option!=''){
html = '<div class="fieldgrp"><label>Identifiant local</label>'+
'<div class="field"><input size="35" type="text" name="idLoc'+n+'Num"/>'+
'<select name="idLoc'+n+'Type">'+option+'</select>';
if (n<3) { html = html+'<a href="'+n+'" class="addIdLocal" id="ad'+n+'">[+]</a>';}
html = html+'<a href="'+n+'" class="removeIdLocal" id="rm'+n+'">[-]</a></div></div>';
}
$('div#blocIdLocal').append(html);
});
}
}
$('a#google').on('click', function(e){
var val = $('input[name=nom]').val();
window.open('https://www.google.fr/#q='+encodeURIComponent(val));
});
$('input[name=adresse_codvoie]').autocomplete({
minLength: 2,
delay: 250,
source: function(request, response) {
var codvoie = $('input[name=adresse_codvoie]').val();
$.getJSON('<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'codvoie'), 'default', true)?>', { codvoie: codvoie },
function(data) { response(data); }
);
},
select: function( event, ui ) {
$('input[name=adresse_codvoie]').attr('value', ui.item.value);
}
});
$(document).ready(function(){
var code = $('select[name=adresse_pays]').val();
if (code!='') {
$('span#indTel').text('+'+countries[code]['indTel']);
}
});
</script>

View File

@ -0,0 +1,168 @@
<?php if ($this->edit) {?>
<form name="saveLienRef" action="<?=$this->url(array('module'=>'input','controller'=>'lien', 'action'=>'refsave'), 'default', true)?>" method="post">
<input type="hidden" name="idLien" value="<?=$this->edit?>"/>
<div class="fieldgrp">
<label>Siren</label>
<div class="field">
<input type="text" name="siren" value="<?=$this->siren?>"/>
</div>
</div>
<?php if ( intval($this->siren)==0 && $this->PpPm=='PM' ) {?>
<?=$this->render('saisie/lienetranger.phtml')?>
<?php } elseif ( $this->PpPm=='PP' ) { ?>
<?=$this->render('saisie/lienpp.phtml', $this->depListe)?>
<?php } else {?>
<?=$this->render('saisie/lienidentite.phtml')?>
<?php }?>
</form>
<script>
$('#dialog').dialog({ buttons: [
{ text: "Modifier", click: function() {
var form = $('form[name=saveLienRef]');
$.post(form.attr('action'), form.serialize(), function(data){
form.replaceWith(data);
}).fail(function(){ alert('Unknow error'); });
} },
{ text: "Annuler", click: function() { $(this).dialog("close"); } }
] });
</script>
<?php } else {?>
<div id="searchFiche">
<div class="fieldgrp">
<label>Recherche</label>
<div class="field">
<select name="searchType">
<option value="nom">Nom</option>
<option value="siren">Siren</option>
<option value="isin">Isin</option>
<option value="identifiant">Identifiant</option>
<option value="special">Spéciaux</option>
<option value="id">idRef</option>
</select>
<select name="searchCountry" style="width:100px;">
<option value="">-</option>
<?php foreach($this->countries as $code => $item) {?>
<option value="<?=$code?>"<?=$select?>><?=$item['libPays']?></option>
<?php }?>
</select>
<input type="text" name="searchTxt" class="autocomplete"/>
</div>
</div>
<a href="#" id="newfiche">Aucun résultat, Créer une nouvelle fiche</a>
<div id="fiche" style="display:none;">
<form name="saveLienRef" action="<?=$this->url(array('module'=>'input','controller'=>'lien', 'action'=>'refsave'), 'default', true)?>" method="post">
<fieldset>
<legend>Informations fiche</legend>
<div class="fieldgrp">
<label>Siren</label>
<div class="field">
<input type="text" name="siren" value=""/>
<a id="infors" href="#">Obtention Dénomination Sociale</a>,
<a target="_blank" href="/">Rechercher sur Extranet</a>
</div>
</div>
<div class="fieldgrp">
<a href="<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'pp'), 'default', true)?>" class="lienRef">Personne physique</a>,
<a href="<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'etranger'), 'default', true)?>" class="lienRef">Société étrangère</a>
</div>
<div id="lienRef"></div>
</fieldset>
<div style="text-align:right;">
<input type="submit" name="save" value="Créer la fiche"/>
</div>
</form>
</div>
<script>
$('input.autocomplete').autocomplete({
minLength:4,
delay:1000,
source: function(request, response) {
var query = request.term;
var type = $('select[name=searchType]').val();
switch( type ) {
case 'siren': break;
case 'id': break;
case 'nom':
query = $.trim(query);
if ($('select[name=searchCountry]').val()!='') {
query = query + ',' + $('select[name=searchCountry]').val();
}
break;
}
$.getJSON('<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'search'), 'default', true)?>', { q: query, type: type },
function(data) { response(data); }
);
},
select: function(event, ui) {
$('form[name=lien]').prepend('<input type="hidden" name="id2" value="'+ui.item.value+'"/>');
$('div#searchFiche').replaceWith('<b>Fiche sélectionnée '+ui.item.label+
' (id = <a style="text-decoration:underline;" target="_blank" href="<?=$this->url(array('controller'=>'identite', 'action'=>'liens'), null, true)?>/lienref/'+ui.item.value+
'">'+ui.item.value+'</a>)</b>');
}
});
$('form[name=saveLienRef]').submit(function(e){
e.preventDefault();
var form = $(this);
$.post(form.attr('action'), form.serialize(), function(data){
if(data.error==''){
$('form[name=lien]').prepend('<input type="hidden" name="id2" value="'+data.id+'"/>');
$('div#searchFiche').replaceWith('<b>Fiche créée '+data.RS+' (id = '+data.id+')</b>');
} else {
$('div#searchFiche').replaceWith(data.error);
}
}, 'json').fail(function(){ alert('Unknow error'); });
return false;
});
$('a#newfiche').click(function(e){
e.preventDefault();
var value = $('input[name=searchTxt]').val();
value = value.replace(/,|;|\s|\./g,'');
var display = $('div#fiche').css('display');
if (display=='none'){
$('div#fiche').css('display', 'block');
} else {
$('div#fiche').css('display', 'none');
}
if (value.length==9 && $('select[name=searchType]').val()=='siren') {
$('input[name=siren]').val(value);
}
});
$('a.lienRef').click(function(e){
e.preventDefault();
var url = $(this).attr('href');
$('div#lienRef').load(url);
});
$('a#infors').on('click', function(e){
e.preventDefault();
var siren = $('div#fiche input[name=siren]').val();
if(siren.length==9) {
$.post('/saisie/lienidentite', {siren: siren }, function success(data) {
$('div#lienRef').html(data);
});
} else {
alert('Siren faux!');
return false;
}
});
</script>
</div>
<?php }?>

View File

@ -0,0 +1,234 @@
<?php if ($this->nom) {?>
<div class="fieldgrp">
<label>Situation Juridique</label>
<div class="field">
<?php
if ($this->actif==1){
$checkActive = 'checked';
} else {
$checkInactive = 'checked';
}
?>
<div style="float:left;">Active<input type="radio" name="actif" value="1" <?=$checkActive;?>/></div>
<div style="float:left;">Inactive<input type="radio" name="actif" value="0" <?=$checkInactive;?>/></div>
</div>
</div>
<div class="fieldgrp">
<label>Dénomination sociale</label>
<div class="field">
<input type="text" name="nom" value="<?=$this->nom?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Sigle</label>
<div class="field">
<input type="text" name="sigle" value="<?=$this->sigle?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Adresse</label>
<div class="field">
<input type="text" name="adresse_num" size="4" value="<?=$this->adresse_num?>"/>
<input type="text" name="adresse_btq" size="1" value="<?=$this->adresse_btq?>"/>
<input type="text" name="adresse_codvoie" size="4" value="<?=$this->adresse_codvoie?>"/>
<input type="text" name="adresse_libvoie" size="32" value="<?=$this->adresse_libvoie?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Adresse complément</label>
<div class="field">
<input type="text" name="adresse_comp" size="40" value="<?=$this->adresse_comp?>"/>
</div>
</div>
<div class="fieldgrp">
<label>CP</label>
<div class="field">
<input type="text" name="adresse_cp" value="<?=$this->adresse_cp?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Ville</label>
<div class="field">
<input type="text" name="adresse_ville" value="<?=$this->adresse_ville?>"/>
</div>
</div>
<div class="fieldgrp">
<label>ISIN</label>
<div class="field">
<input type="text" name="isin" value="<?=$this->isin?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Téléphone</label>
<div class="field">1255
<input type="text" name="tel" value="<?=$this->tel?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Fax</label>
<div class="field">
<input type="text" name="fax" value="<?=$this->fax?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Web</label>
<div class="field">
<input type="text" name="web" value="<?=$this->web?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Mail</label>
<div class="field">
<input type="text" name="email" value="<?=$this->email?>"/>
</div>
</div>
<input type="hidden" name="cj" value="<?=$this->cj?>"/>
<input type="hidden" name="ape" value="<?=$this->ape?>"/>
<input type="hidden" name="adresse_pays" value="<?=($this->adresse_pays)?$this->adresse_pays:'FRA'?>" />
<div class="fieldgrp">
<label>au capital de</label>
<div class="field">
<input type="text" name="capital" value="<?=$this->capital?>"/>
<select name="deviseCapital" style="width:150px;">
<option value="">-</option>
<?php foreach($this->currencies as $code => $item) {?>
<?php $select = ''; if ($this->deviseCapital==$code) $select = 'selected';?>
<option value="<?=$code?>"<?=$select?>><?=$item['devNom']?> - <?=$item['devIso']?></option>
<?php }?>
</select>
</div>
</div>
<div class="fieldgrp">
<label> en date du</label>
<div class="field">
<input type="text" name="dateCapital" value="<?=$this->dateCapital?>"/> (JJ/MM/AAAA)
</div>
</div>
<div class="fieldgrp">
<label>découpé en</label>
<div class="field">
<input type="text" name="nbActions" value="<?=$this->nbActions?>" /> action(s),
</div>
</div>
<div class="fieldgrp">
<label>en date du </label>
<div class="field">
<input type="text" name="dateNbActions" value="<?=$this->dateNbActions?>"/> (JJ/MM/AAAA)
</div>
</div>
</fieldset>
<?php if ( $this->type=='participation' ) {?>
<fieldset>
<legend><i><u>Si disponible (holding, etc) saisir quelques éléments du bilan :</u></i></legend>
<div class="fieldgrp">
<label>Devise bilan</label>
<div class="field">
<select name="bilDev" style="width:150px;">
<option value="">-</option>
<?php foreach($this->currencies as $code => $item) {?>
<?php $select = ''; if ($this->bilDev==$code) $select = 'selected';?>
<option value="<?=$code?>"<?=$select?>><?=$item['devNom']?></option>
<?php }?>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Chiffre d'affaires</label>
<div class="field">
<input type="text" name="bilFL" value="<?=$this->bilFL?>"/> euros
</div>
</div>
<div class="fieldgrp">
<label>Résultat Net</label>
<div class="field">
<input type="text" name="bilHN" value="<?=$this->bilHN?>"/> euros
</div>
</div>
<div class="fieldgrp">
<label>Fonds Propres</label>
<div class="field">
<input type="text" name="bilFPr" value="<?=$this->bilFPr?>"/> euros
</div>
</div>
<div class="fieldgrp">
<label>Total Bilan</label>
<div class="field">
<input type="text" name="bilEE" value="<?=$this->bilEE?>"/> euros
</div>
</div>
</fieldset>
<?php }?>
<script>
$.datepicker.setDefaults( $.datepicker.regional["fr"] );
$('input[name=dateCapital]').datepicker({ changeMonth: true, changeYear: true });
$('input[name=dateNbActions]').datepicker({ changeMonth: true, changeYear: true });
function cpville(inputFld, outputFld, countrySel, countryVal) {
$('input[name='+inputFld+']').autocomplete({
minLength: 4,
delay: 250,
source: function(request, response) {
var cpVille = $('input[name='+inputFld+']').val();
$.getJSON('<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'citysearch'), 'default', true)?>', { cpville: cpVille },
function(data) { response(data); }
);
},
select: function( event, ui ) {
var text = ui.item.label;
text = text.replace(ui.item.value+': ','');
if (inputFld==outputFld) {
ui.item.value = text;
}
$('input[name='+inputFld+']').attr('value', ui.item.value);
$('input[name='+outputFld+']').attr('value', text);
if (countrySel!=null && countryVal!=null){
$('select[name='+countrySel+']').val(countryVal);
}
}
});
}
cpville('adresse_cp', 'adresse_ville');
$('input[name=adresse_codvoie]').autocomplete({
minLength: 2,
delay: 250,
source: function(request, response) {
var codvoie = $('input[name=adresse_codvoie]').val();
$.getJSON('<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'codvoie'), 'default', true)?>', { codvoie: codvoie },
function(data) { response(data); }
);
},
select: function( event, ui ) {
$('input[name=adresse_codvoie]').attr('value', ui.item.value);
}
});
</script>
<?php } else {?>
Aucun résulat.
<?php }?>

View File

@ -0,0 +1,368 @@
<?php if ($this->id1){ ?>
<style>
div#dialog form em {color:#FF0000;}
div#dialog fieldset {border:1px solid; padding:5px;}
div#dialog fieldset legend {padding:5px;}
div#dialog .fieldgrp {clear:both; width:100%; margin:0; overflow:hidden;}
div#dialog .fieldgrp label {clear:both; padding:0 10px 0 0; margin:0; line-height:22px; _padding-top:3px; float:left; display:block; width:auto;}
div#dialog .fieldgrp label span {font-weight:normal;}
div#dialog .fieldgrp label abbr {color:#4B911C; font-size:120%; vertical-align:middle;}
div#dialog fieldset .fieldgrp {clear:both; width:100%; margin-bottom:.5em; overflow:hidden;}
div#dialog fieldset .fieldgrp:after {content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0; }
div#dialog fieldset .fieldgrp label { clear:both; padding:0 10px 0 0; line-height:22px; _padding-top:3px; float:left; display:block;}
div#dialog fieldset .fieldgrp label span {font-weight:normal;}
div#dialog fieldset .fieldgrp label abbr {color:#4B911C; font-size:120%; vertical-align:middle;}
div#dialog .field {float:left; padding:0 10px 0 0;line-height:22px;_padding-top:3px;}
div#dialog .field .longfield {width:215px;}
div#dialog .field .longfield-select {width:220px;}
div#dialog .field .smallfield {width:95px;}
div#dialog .field .medfield {width:110px;}
div#dialog .field input, .field select { margin:2px 0; }
div#dialog .field input[type="radio"] { margin:0 5px 0 5px; }
div#dialog div#pp { display:none; }
div#dialog div#etranger { display:none; }
div#dialog .ui-widget-content { text-align:left; }
.loading {
background-color:none;
position:absolute;
width:650px;
height:600px;
top:0px;
left:0px;
opacity:0.8;
z-index:1;
background-image: url("/themes/default/images/ajax/35-1.gif");
background-repeat: no-repeat;
background-position: center;
}
</style>
<?php if ($this->type=='actionnaire') {?>
<?php if ( $this->mode == 'add' ) {?>
<div class="fieldgrp">Saisie d'un actionnaire pour la société <?=$this->rs?>
(<?php echo intval($this->siren)!=0 ? $this->siren : $this->id1 ; ?>)
</div>
<?php if ( $this->id2 ) {?>
<b>Fiche créée <?=$this->id2Nom?> (id = <?=$this->id2?>)</b>
<?php } else {?>
<?=$this->render('saisie/lienfiche.phtml')?>
<?php }?>
<?php } elseif ($this->mode == 'edit') {?>
<div class="fieldgrp">Modification d'un actionnaire pour la société <?=$this->rs?> (<?=$this->siren?>)</div>
<?php } else {?>
<div class="fieldgrp">
Etes-vous certain de vouloir supprimer le lien entre <?=$this->rs?> (<?=$this->siren?>)
et <?=$this->rs2?> (<?=$this->siren2?>) ?
</div>
<?php }?>
<?php if ($this->mode=='edit' || $this->mode=='delete') {?>
<a id="lienDoc" href="<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'doc'), 'default', true)?>">Document de référence</a>
<div id="doc"></div>
<?php }?>
<form name="lien" action="<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'save'), 'default', true)?>" method="post">
<input type="hidden" name="mode" value="<?=$this->mode?>" />
<input type="hidden" name="idLien" value="<?=$this->idLien?>" />
<input type="hidden" name="id1" value="<?=$this->id1?>" />
<?php if ( $this->mode=='edit' || $this->id2 ) {?>
<input type="hidden" name="id2" value="<?=$this->id2?>" />
<?php }?>
<?php if ($this->mode=='edit' || $this->mode=='delete') {?>
<div class="fieldgrp">
<label>Motif du changement :</label>
<div class="field">
<select name="motifUpdate">
<option value="">-</option>
<option>Fusion</option>
<option>Cession de parts</option>
<option>Acte SSP</option>
<option>TUP</option>
<option>Donation/Partage</option>
<option>Vente/Cession</option>
<option>Statuts</option>
<option>Dernier rapport annuel</option>
<option>Erreur d'affiliation</option>
<option>Lien indirect</option>
<option>Liquidation</option>
</select>
</div>
</div>
<?php }?>
<fieldset>
<legend>Liens</legend>
<?php if ($this->mode=='add' || $this->mode=='edit') {?>
<input type="hidden" name="type" value="actionnaire" />
<div class="fieldgrp">
<label>Pourcentage d'interêt</label>
<div class="field">
<input type="text" name="PDetention" value="<?=$this->PDetention?>" size="3"/> %
</div>
</div>
<div class="fieldgrp">
<label>Détention</label>
<div class="field">
<select name="MajMin">
<?php foreach( $this->detention as $val => $lib ) {?>
<?php $select = ''; if ($val==$this->MajMin) { $select = ' selected'; }?>
<option value="<?=$val?>"<?=$select?>><?=$lib?></option>
<?php }?>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Pourcentage de contrôle</label>
<div class="field">
<input type="text" name="Pvote" value="<?=$this->Pvote?>" size="3"/> % (Droits de vote)
</div>
</div>
<?php }?>
<div class="fieldgrp">
<label>Date Effet Lien</label>
<div class="field">
<input type="text" name="dateEffetLien" value="<?=$this->dateEffetLien?>"/> (JJ/MM/AAAA)
</div>
</div>
</fieldset>
</form>
<?php }?>
<?php if ($this->type=='participation') {?>
<?php if ( $this->mode == 'add' ) { ?>
<div class="fieldgrp">Saisie d'une participation pour la société <?=$this->rs?>
(<?php echo intval($this->siren)!=0 ? $this->siren : $this->id1 ; ?>)</div>
<?php if ( $this->id2 ) {?>
<b>Fiche créée <?=$this->id2Nom?> (id = <?=$this->id2?>)</b>
<?php } else {?>
<?=$this->render('saisie/lienfiche.phtml')?>
<?php }?>
<?php } elseif ($this->mode == 'edit') {?>
<div class="fieldgrp">Modification d'une participation pour la société <?=$this->rs?> (<?=$this->siren?>)</div>
<?php } else {?>
<div class="fieldgrp">
Etes-vous certain de vouloir supprimer le lien entre <?=$this->rs?> (<?=$this->siren?>)
et <?=$this->rs2?> (<?=$this->siren2?>) ?
</div>
<?php }?>
<?php if ($this->mode=='edit' || $this->mode=='delete') {?>
<a id="lienDoc" href="<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'doc'), 'default', true)?>">Document de référence</a>
<div id="doc"></div>
<?php }?>
<form name="lien" action="<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'save'), 'default', true)?>" method="post">
<input type="hidden" name="mode" value="<?=$this->mode?>" />
<input type="hidden" name="idLien" value="<?=$this->idLien?>" />
<input type="hidden" name="id1" value="<?=$this->id1?>" />
<?php if ($this->mode=='edit' || $this->id2) {?>
<input type="hidden" name="id2" value="<?=$this->id2?>" />
<?php }?>
<?php if ($this->mode=='edit' || $this->mode=='delete') {?>
<div class="fieldgrp">
<label>Motif du changement :</label>
<div class="field">
<select name="motifUpdate">
<option value="">-</option>
<option>Fusion</option>
<option>Cession de parts</option>
<option>Acte SSP</option>
<option>TUP</option>
<option>Donation/Partage</option>
<option>Vente/Cession</option>
<option>Statuts</option>
<option>Dernier rapport annuel</option>
<option>Erreur d'affiliation</option>
<option>Lien indirect</option>
<option>Liquidation</option>
</select>
</div>
</div>
<?php }?>
<fieldset>
<legend>Liens</legend>
<?php if ($this->mode=='add' || $this->mode=='edit') {?>
<input type="hidden" name="type" value="participation" />
<div class="fieldgrp">
<label>Pourcentage d'interêt</label>
<div class="field">
<input type="text" name="PDetention" value="<?=$this->PDetention?>" size="3"/> %
</div>
</div>
<div class="fieldgrp">
<label>Détention</label>
<div class="field">
<select name="MajMin">
<?php foreach( $this->detention as $val => $lib ) {?>
<?php $select = ''; if ($val==$this->MajMin) { $select = ' selected'; }?>
<option value="<?=$val?>"<?=$select?>><?=$lib?></option>
<?php }?>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Pourcentage de contrôle</label>
<div class="field">
<input type="text" name="Pvote" value="<?=$this->Pvote?>" size="3"/> % (Droits de vote)
</div>
</div>
<?php }?>
<div class="fieldgrp">
<label>Date Effet Lien</label>
<div class="field">
<input type="text" name="dateEffetLien" value="<?=$this->dateEffetLien?>"/> (JJ/MM/AAAA)
</div>
</div>
</fieldset>
</form>
<?php }?>
<div class="loading"></div>
<script>
$.datepicker.setDefaults( $.datepicker.regional["fr"] );
$('input[name=dateEffetLien]').datepicker({ changeMonth: true, changeYear: true });
$('.ui-dialog').on('keypress', function(event){
var code = (event.keyCode ? event.keyCode : event.which);
if (code == 13)
{
event.preventDefault();
$('.ui-button:contains("Valider")').click();
}
});
$('a#lienDoc').on('click', function(e){
e.preventDefault();
$('div#doc').load($(this).attr('href'));
});
$('select[name=motifUpdate]').on('change', function(e){
e.preventDefault();
$('input[name=dateEffetLien]').val('<?=$this->dateEffetLien;?>');
if ($(this).val()=='TUP') {
$('select[name=MajMin]').val('T');
$('input[name=PDetention]').val(0);
$('input[name=Pvote]').val(0);
} else if ($(this).val()=='Fusion') {
$('select[name=MajMin]').val('F');
$('input[name=PDetention]').val(0);
$('input[name=Pvote]').val(0);
} else if ($(this).val()=='Dernier rapport annuel') {
$('input[name=dateEffetLien]').val('<?=$this->dateEffetLienDoc;?>');
}
});
$('select[name=MajMin]').on('change', function(e){
e.preventDefault();
if ($(this).val()=='T' || $(this).val()=='F' ) {
$('input[name=PDetention]').val(0);
$('input[name=Pvote]').val(0);
} else if ($(this).val()=='M' || $(this).val()=='M' ) {
$('input[name=PDetention]').val(0);
$('input[name=Pvote]').val(0);
}
});
$('input[name=PDetention]').on('blur', function(e){
e.preventDefault();
if ($(this).val()>50){
$('select[name=MajMin]').val('+');
} else {
$('select[name=MajMin]').val('-');
}
});
$(document)
.ajaxStart(function () {
$('div.loading').show();
$('#dialog').css('overflow', 'hidden');
})
.ajaxStop(function () {
$('div.loading').hide();
$('#dialog').css('overflow', 'auto');
});
function sendData() {
var form = $('form[name=lien]');
$.post(form.attr('action'), form.serialize(), function(data){
$('form[name=lien]').replaceWith(data);
}).fail(function(){ alert('Unknown error'); });
}
function confirm() {
$('<div></div>').appendTo('#dialog')
.html('<div>Transférer les filiales actives?</div>')
.dialog({
modal: true,
title: 'Transfert des filiales',
zIndex: 10000,
autoOpen: true,
width: 250,
resizable: false,
buttons: {
Oui: function () {
$('<input>').attr({
type: 'hidden',
name: 'transfer',
value: 1 }).appendTo('form[name=lien]');
$(this).dialog("close");
},
Non: function () {
$(this).dialog("close");
}
},
close: function (event, ui) {
sendData();
$(this).remove();
}
});
}
$('#dialog').dialog({ buttons: [
{ text: "Valider", click: function() {
if ($('input[name=PDetention]').val()>100){
alert('Oups ! Pourcentage !');
} else if ($('input[name=mode]').val()=='delete' && $('input[name=id1]').length>0
|| $('input[name=id1]').length>0 && $('input[name=id2]').length>0) {
var MajMin = $('select[name=MajMin]').val();
if (MajMin == 'T' || MajMin == 'F') {
confirm();
} else {
sendData();
}
} else {
alert("Quelque chose manqued !");
}
}},
{ text: "Annuler", click: function() { $(this).dialog('close'); } }
] });
</script>
<?php } else {?>
Erreur.
<?php }?>

View File

@ -0,0 +1,181 @@
<input type="hidden" name="pp" value="1"/>
<div class="fieldgrp">
<label>Nom</label>
<div class="field">
<input type="text" name="nom" value="<?=$this->nom?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Nom d'usage</label>
<div class="field">
<input type="text" name="nom_usage" value="<?=$this->nom_usage?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Prénom(s)</label>
<div class="field">
<input type="text" name="prenom" value="<?=$this->prenom?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Civilité</label>
<div class="field">
<input type="radio" name="civilite" value="M"<?php if ($this->civilite==strtoupper('M')) echo ' checked'; ?>/>M.
<input type="radio" name="civilite" value="Mme"<?php if ($this->civilite==strtoupper('Mme')) echo ' checked'; ?>/>Mme
<input type="radio" name="civilite" value="Mlle"<?php if ($this->civilite==strtoupper('Mlle')) echo ' checked'; ?>/>Mlle
</div>
</div>
<div class="fieldgrp">
<label>Né(e) le</label>
<div class="field">
<input type="text" size="10" name="naissance_date" value="<?=$this->naissance_date?>"/>
<script>
$.datepicker.setDefaults( $.datepicker.regional["fr"] );
$('input[name=naissance_date]').datepicker({ changeMonth: true, changeYear: true });
</script>
à <input type="text" name="naissance_lieu" value="<?=$this->naissance_lieu?>"/>
<select name="naissance_dept_pays">
<option>-</option>
<?php foreach($this->countries as $code => $item) {?>
<?php $select = ''; if ($this->naissance_dept_pays==$code) $select = 'selected';?>
<option value="<?=$code?>"<?=$select?>><?=$item['libPays']?></option>
<?php }?>
</select>
<div id="departament">
<label>Département</label>
<select name="naissance_dept">
<option value="">-</option>
<?php foreach($this->depListe as $dep) {?>
<?php $select = ''; if ($this->naissance_dept==$dep['num']) $select = 'selected';?>
<option value="<?=$dep['num']?>"<?=$select?>><?=$dep['num'].': '.$dep['lib']?></option>
<?php }?>
</select>
</div>
</div>
</div>
<div class="fieldgrp">
<label>Nationnalité</label>
<select name="nat">
<option>-</option>
<?php foreach($this->countries as $code => $item) {?>
<?php $select = ''; if ($this->nat==$code) $select = 'selected';?>
<option value="<?=$code?>"<?=$select?>><?=$item['libPays']?></option>
<?php }?>
</select>
</div>
<div class="fieldgrp">
<label>Adresse</label>
<div class="field">
<input type="text" name="adresse_num" size="4" value="<?=$this->adresse_num?>"/>
<input type="text" name="adresse_btq" size="1" value="<?=$this->adresse_btq?>"/>
<input type="text" name="adresse_codvoie" size="4" value="<?=$this->adresse_codvoie?>"/>
<input type="text" name="adresse_libvoie" size="32" value="<?=$this->adresse_libvoie?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Adresse complément</label>
<div class="field">
<input type="text" name="adresse_comp" size="40" value="<?=$this->adresse_comp?>"/>
</div>
</div>
<div class="fieldgrp">
<label>CP</label>
<div class="field">
<input type="text" name="adresse_cp" value="<?=$this->adresse_cp?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Ville</label>
<div class="field">
<input type="text" name="adresse_ville" value="<?=$this->adresse_ville?>"/>
</div>
</div>
<script>
function cpville(inputFld, outputFld, countrySel, countryVal) {
$('input[name='+inputFld+']').autocomplete({
minLength: 4,
delay: 250,
source: function(request, response) {
var cpVille = $('input[name='+inputFld+']').val();
$.getJSON('<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'citysearch'), 'default', true)?>', { cpville: cpVille },
function(data) { response(data); }
);
},
select: function( event, ui ) {
var text = ui.item.label;
text = text.replace(ui.item.value+': ','');
if (inputFld==outputFld) {
ui.item.value = text;
}
$('input[name='+inputFld+']').attr('value', ui.item.value);
$('input[name='+outputFld+']').attr('value', text);
if (countrySel!=null && countryVal!=null){
$('select[name='+countrySel+']').val(countryVal);
if (countrySel == 'naissance_dept_pays')
{
$("#departament").show();
$("select[name=naissance_dept]").val(ui.item.label.substr(0, 2));
}
}
}
});
}
cpville('adresse_cp', 'adresse_ville', 'adresse_pays', 'FRA');
cpville('naissance_lieu', 'naissance_lieu', 'naissance_dept_pays', 'FRA');
$('input[name=adresse_codvoie]').autocomplete({
minLength: 2,
delay: 250,
source: function(request, response) {
var codvoie = $('input[name=adresse_codvoie]').val();
$.getJSON('<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'codvoie'), 'default', true)?>', { codvoie: codvoie },
function(data) { response(data); }
);
},
select: function( event, ui ) {
$('input[name=adresse_codvoie]').attr('value', ui.item.value);
}
});
function departaments()
{
var selected = $('select[name=naissance_dept_pays] option:selected').val();
if( selected == 'FRA' ) {
$("#departament").show();
} else {
$("#departament").hide();
}
}
$(document).ready(function(){
departaments();
});
$('select[name=naissance_dept_pays]').on("click", function(){
departaments();
});
</script>
<div class="fieldgrp">
<label>Pays</label>
<div class="field">
<select name="adresse_pays">
<option value="">-</option>
<?php foreach($this->countries as $code => $item) {?>
<?php $select = ''; if ($this->adresse_pays==$code) $select = 'selected';?>
<option value="<?=$code?>"<?=$select?>><?=$item['libPays']?></option>
<?php }?>
</select>
</div>
</div>

View File

@ -0,0 +1,21 @@
<?php if ($this->idNewLien>1) {?>
<?=json_encode(array('id' => $this->idNewLien,'RS' => $this->RS, 'error' => $this->error))?>
<?php } else {?>
<?php if (!empty($this->error)) {?>
Erreur : <?=$this->error?>.
<script>
$('#dialog').dialog({ buttons: [
{ text: "Quitter", click: function() { $(this).dialog("close"); } }
] });
</script>
<?php } else {?>
Fiche Modifié <?=$this->RS?>.
<script>
$('#dialog').dialog({ buttons: [
{ text: "Quitter", click: function() { $(this).dialog("close"); window.location.href=window.location.href; } }
] });
</script>
<?php }?>
<?php }?>

View File

@ -0,0 +1,31 @@
<?php if ( $this->error ) {?>
<p><?=$this->error?></p>
<?php } else {?>
<?php if( $this->mode=='edit' || $this->mode=='delete' ) {?>
<p>Lien modifié.</p>
<?php } else {?>
<p>Lien crée (id=<?=$this->id?>).</p>
<?php }?>
<p>Quitter la boite de dialogue pour rafraichir la page.</p>
<?php }?>
<script>
$('#dialog').dialog({ buttons: [ {
text: "Quitter",
click: function() {
$(this).dialog("close");
window.location.href = window.location.href;
}
} ]
});
$(".ui-button:contains('Quitter')").focus();
$('.ui-dialog').on('keypress', function(event){
var code = (event.keyCode ? event.keyCode : event.which);
if (code == 13)
{
event.preventDefault();
$('.ui-button:contains("Quitter")').click();
}
});
</script>

View File

@ -0,0 +1 @@
<?=json_encode($this->output)?>

View File

@ -0,0 +1,166 @@
<div id="dMessage"><?=$this->message?></div>
<form id="frmCreateMandataires" name="mandataires" method="post" action="<?=$this->url(array('controller'=>'mandataire', 'action'=>'save'))?>">
<input type="hidden" name="tabMandataires[id]" value="<?=$this->tabMandataires['id'];?>">
<label>Siren de la société Civile <em>*</em>:</label>
<input name="tabMandataires[sirenGrp]" type="text" value="<?=$this->tabMandataires['sirenGrp'];?>" maxlength="25">
<span class="left"><a href="#" id="getInfo_sirenGrp">Obtenir les informations.</a></span>
<label>Siren de la professions libérale :</label>
<input name="tabMandataires[sirenMand]" type="text" value="<?=$this->tabMandataires['sirenMand'];?>" maxlength="17">
<span class="left"><a href="#" id="getInfo_sirenMand">Obtenir les informations.</a></span>
<label>Nom <em>*</em>:</label>
<input name="tabMandataires[Nom]" type="text" value="<?=$this->tabMandataires['Nom'];?>" maxlength="81">
<label>Prenom :</label>
<input name="tabMandataires[Prenom]" type="text" value="<?=$this->tabMandataires['Prenom'];?>" maxlength="21">
<label>Type d'intervenant <em>*</em>:</label>
<select name="tabMandataires[type]">
<option value="" >-</option>
<option value="A" <?=($this->tabMandataires['type']=='A' ? 'selected' : '')?>>Administrateur</option>
<option value="AS" <?=($this->tabMandataires['type']=='AS' ? 'selected' : '')?>>Administrateur Stagiaire</option>
<option value="H" <?=($this->tabMandataires['type']=='H' ? 'selected' : '')?>>Huissier</option>
<option value="M" <?=($this->tabMandataires['type']=='M' ? 'selected' : '')?>>Mandataire</option>
<option value="MS" <?=($this->tabMandataires['type']=='MS' ? 'selected' : '')?>>Mandataire Stagiaire</option>
<option value="V" <?=($this->tabMandataires['type']=='V' ? 'selected' : '')?>>Avocat</option>
<option value="N" <?=($this->tabMandataires['type']=='N' ? 'selected' : '')?>>Notaire</option>
<option value="T" <?=($this->tabMandataires['type']=='T' ? 'selected' : '')?>>Autre</option>
</select>
<label>Cours d'appel par defaut n°1 <em>*</em>:</label>
<select name="tabMandataires[coursAppel]">
<option value="">Choix de la cours d'appel</option>
<?php
foreach ($this->coursAppel as $value)
{
$select = '';
$this->tabMandataires['coursAppel']==$value['triId'] ? $select = ' selected' : '';
echo '<option value="'.$value['triId'].'"'.$select.'>' . $value['triNom'].'</option>';
}
?>
</select>
<label>Cours d'appel par defaut n°2 :</label>
<select name="tabMandataires[coursAppel2]">
<option value="">Choix de la cours d'appel</option>
<?php
foreach ($this->coursAppel as $value)
{
$select = '';
$this->tabMandataires['coursAppel2']==$value['triId'] ? $select = ' selected' : '';
echo '<option value="'.$value['triId'].'"'.$select.'>' . $value['triNom'].'</option>';
}
?>
</select>
<label>Libellé du tribunal <em>*</em>:</label>
<select name="tabMandataires[tribunal]">
<option value="">Choix du tribunal</option>
<?php
foreach ($this->tribunaux as $item)
{
$select = '';
if ($tabMandataires['tribunal']==$item->code) $select = ' selected';
elseif ($item->code==$this->tribunal) $select = ' selected';
if (strlen($item->nom)>39) $lib=substr($item->nom,0,41).'...';
echo '<option value="'.$item->code.'"'.$select.'>'.$item->nom.'</option>';
}
?>
</select>
<span class="left">(Vérifier le tribunal du mandataire)</span>
<label>Forme Juridique <em>*</em>:</label>
<select name="tabMandataires[Statut]">
<option value="" selected>-</option>
<option value="1500" <?=($this->tabMandataires['Statut']=='1500' ? 'selected' : '')?>>Profession libérale</option>
<option value="1400" <?=($this->tabMandataires['Statut']=='1400' ? 'selected' : '')?>>Officier public ou ministériel</option>
<option value="1800" <?=($this->tabMandataires['Statut']=='1800' ? 'selected' : '')?>>Associé Gérant</option>
<option value="1900" <?=($this->tabMandataires['Statut']=='1900' ? 'selected' : '')?>>Personne physique</option>
<option value="5485" <?=($this->tabMandataires['Statut']=='5485' ? 'selected' : '')?>>Société d'exercice libéral à responsabilité limitée</option>
<option value="6565" <?=($this->tabMandataires['Statut']=='6565' ? 'selected' : '')?>>SCP de notaires</option>
<option value="6561" <?=($this->tabMandataires['Statut']=='6561' ? 'selected' : '')?>>SCP d'avocats</option>
<option value="1099" <?=($this->tabMandataires['Statut']=='1099' ? 'selected' : '')?>>SCP d'huissiers</option>
<option value="2210" <?=($this->tabMandataires['Statut']=='2210' ? 'selected' : '')?>>Société créée de fait entre personnes physiques</option>
<option value="5499" <?=($this->tabMandataires['Statut']=='5499' ? 'selected' : '')?>>Autre société à responsabilité limitée</option>
<option value="2900" <?=($this->tabMandataires['Statut']=='2900' ? 'selected' : '')?>>Autre groupement de droit privé non doté de la personnalité morale</option>
<option value="6585" <?=($this->tabMandataires['Statut']=='6585' ? 'selected' : '')?>>SCP</option>
<option value="9220" <?=($this->tabMandataires['Statut']=='9220' ? 'selected' : '')?>>ASSOCIATION</option>
<option value="6562" <?=($this->tabMandataires['Statut']=='6562' ? 'selected' : '')?>>SCP d'avocats aux conseil</option>
<option value="6599" <?=($this->tabMandataires['Statut']=='6599' ? 'selected' : '')?>>SCP</option>
<option value="6563" <?=($this->tabMandataires['Statut']=='6563' ? 'selected' : '')?>>SCP d'avoués d'appel</option>
<option value="5710" <?=($this->tabMandataires['Statut']=='5710' ? 'selected' : '')?>>SAS</option>
<option value="6566" <?=($this->tabMandataires['Statut']=='5710' ? 'selected' : '')?>>SCP de commissaires-priseurs</option>
<option value="5498" <?=($this->tabMandataires['Statut']=='5498' ? 'selected' : '')?>>SARLU</option>
<option value="5585" <?=($this->tabMandataires['Statut']=='5585' ? 'selected' : '')?>>SELAFA</option>
<option value="6568" <?=($this->tabMandataires['Statut']=='6568' ? 'selected' : '')?>>SCP de conseils juridiques</option>
<option value="3220" <?=($this->tabMandataires['Statut']=='3220' ? 'selected' : '')?>>Société étrangère non immatriculée au RCS</option>
<option value="1200" <?=($this->tabMandataires['Statut']=='1200' ? 'selected' : '')?>>Commerçant</option>
<option value="6567" <?=($this->tabMandataires['Statut']=='6567' ? 'selected' : '')?>>SCP de greffiers de tribunal de commerce</option>
<option value="5599" <?=($this->tabMandataires['Statut']=='5599' ? 'selected' : '')?>>SARL</option>
<option value="6220" <?=($this->tabMandataires['Statut']=='6220' ? 'selected' : '')?>>GIE</option>
<option value="2110" <?=($this->tabMandataires['Statut']=='2110' ? 'selected' : '')?>>Indivision entre personnes physiques</option>
<option value="2385" <?=($this->tabMandataires['Statut']=='2385' ? 'selected' : '')?>>Société en participation de professions libérales</option>
<option value="2310" <?=($this->tabMandataires['Statut']=='2310' ? 'selected' : '')?>>Société en participation entre personnes physiques</option>
<option value="3120" <?=($this->tabMandataires['Statut']=='3120' ? 'selected' : '')?>>Société étrangère immatriculée au RCS</option>
<option value="2220" <?=($this->tabMandataires['Statut']=='2220' ? 'selected' : '')?>>Société créée de fait avec personne morale</option>
<option value="5685" <?=($this->tabMandataires['Statut']=='5685' ? 'selected' : '')?>>Société d'exercice libéral à forme anonyme à directoire</option>
<option value="9900" <?=($this->tabMandataires['Statut']=='9900' ? 'selected' : '')?>>Autre personne morale de droit privé</option>
<option value="1700" <?=($this->tabMandataires['Statut']=='1700' ? 'selected' : '')?>>Agent commercial</option>
<option value="5202" <?=($this->tabMandataires['Statut']=='5202' ? 'selected' : '')?>>SNC</option>
<option value="1100" <?=($this->tabMandataires['Statut']=='1100' ? 'selected' : '')?>>Artisan Commerçant</option>
<option value="5720" <?=($this->tabMandataires['Statut']=='5720' ? 'selected' : '')?>>Société par actions simplifiée à associé unique ou société par actions simplifiées unipersonnelle</option>
<option value="5785" <?=($this->tabMandataires['Statut']=='5785' ? 'selected' : '')?>>Socitété d'Exercice Libérale par Actions Simplifiées</option>
<option value="5385" <?=($this->tabMandataires['Statut']=='5385' ? 'selected' : '')?>>Société d'exercice libéral en commandite par action</option>
<option value="9260" <?=($this->tabMandataires['Statut']=='9260' ? 'selected' : '')?>>Association de droit local</option>
<option value="9210" <?=($this->tabMandataires['Statut']=='9210' ? 'selected' : '')?>>Association non déclarée</option>
<option value="8450" <?=($this->tabMandataires['Statut']=='8450' ? 'selected' : '')?>>Ordre professionnel ou assimilé</option>
<option value="6210" <?=($this->tabMandataires['Statut']=='6210' ? 'selected' : '')?>>Groupement européen d'intérêt économique (GEIE)</option>
<option value="5306" <?=($this->tabMandataires['Statut']=='5306' ? 'selected' : '')?>>Société en commandite simple</option>
<option value="6560" <?=($this->tabMandataires['Statut']=='6560' ? 'selected' : '')?>>Autre société civile coopérative</option>
<option value="2320" <?=($this->tabMandataires['Statut']=='2320' ? 'selected' : '')?>>Société en participation avec personne morale</option>
<option value="9223" <?=($this->tabMandataires['Statut']=='9223' ? 'selected' : '')?>>Groupement d'employeurs</option>
<option value="8490" <?=($this->tabMandataires['Statut']=='8490' ? 'selected' : '')?>>Autre organisme professionnel</option>
<option value="5699" <?=($this->tabMandataires['Statut']=='5699' ? 'selected' : '')?>>(Autre) SA à directoire</option>
<option value="5560" <?=($this->tabMandataires['Statut']=='5560' ? 'selected' : '')?>>Autre SA coopérative à conseil d'administration</option>
<option value="6521" <?=($this->tabMandataires['Statut']=='1400' ? 'selected' : '')?>>Société civile de placement collectif immobilier (SCPI)</option>
<option value="6589" <?=($this->tabMandataires['Statut']=='6521' ? 'selected' : '')?>>Société civile de moyens</option>
<option value="6551" <?=($this->tabMandataires['Statut']=='6551' ? 'selected' : '')?>>Société civile coopérative de consommation</option>
<option value="8410" <?=($this->tabMandataires['Statut']=='8410' ? 'selected' : '')?>>Syndicat de salariés</option>
<option value="6540" <?=($this->tabMandataires['Statut']=='6540' ? 'selected' : '')?>>Société civile immobilière</option>
<option value="2120" <?=($this->tabMandataires['Statut']=='2120' ? 'selected' : '')?>>Indivision avec personne morale</option>
<option value="8420" <?=($this->tabMandataires['Statut']=='8420' ? 'selected' : '')?>>Syndicat patronal</option>
</select>
<label>Adresse <em>*</em>:</label>
<textarea name="tabMandataires[adresse]"><?=$this->tabMandataires['adresse'];?></textarea>
<label>Complément adresse :</label>
<input name="tabMandataires[adresseComp]" type="text" value="<?=$this->tabMandataires['adresseComp'];?>" maxlength="8">
<label>Code Postal <em>*</em>:</label>
<input name="tabMandataires[cp]" type="text" value="<?=$this->tabMandataires['cp'];?>" maxlength="5">
<label>Ville ou commune <em>*</em>:</label>
<input name="tabMandataires[ville]" type="text" value="<?=$this->tabMandataires['ville'];?>" maxlength="28">
<label>Téléphone <em>*</em>:</label>
<input name="tabMandataires[tel]" type="text" value="<?=$this->tabMandataires['tel'];?>" maxlength="16">
<label>Télécopie :</label>
<input name="tabMandataires[fax]" type="text" value="<?=$this->tabMandataires['fax'];?>" maxlength="16">
<label>Email :</label>
<input name="tabMandataires[email]" type="text" value="<?=$this->tabMandataires['email'];?>" maxlength="51">
<label>Web :</label>
<input name="tabMandataires[web]" type="text" value="<?=$this->tabMandataires['web'];?>" maxlength="35">
<label>Informations diverses :</label>
<textarea name="tabMandataires[contact]"><?=$this->tabMandataires['contact'];?></textarea>
</form>

View File

@ -0,0 +1,19 @@
<?php
class Legal_IndexController extends Zend_Controller_Action
{
protected $theme;
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
/**
* Renvoi vers la fiche
*/
public function indexAction()
{
// Récupére la dernière consultation et renvoi vers la fiche
}
}

View File

@ -55,7 +55,7 @@
<?php if (empty($this->AutrePage) && $this->edition) {?>
<div style="line-height:16px;">
<a class="dialog" title="<?=$this->translate("Ajouter un actionnaire")?>" href="<?=$this->url(array('controller'=>'saisie','action'=>'lien','type'=>'actionnaire','mode'=>'add','siren'=>$this->siren,'createfiche'=>$dir->Siren),null,true)?>">
<a class="dialog" title="<?=$this->translate("Ajouter un actionnaire")?>" href="<?=$this->url(array('module'=>'input', 'controller'=>'index','action'=>'lien','type'=>'actionnaire','mode'=>'add','siren'=>$this->siren,'createfiche'=>$dir->Siren),null,true)?>">
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" /></a>
</div>
<?php }?>

View File

@ -9,7 +9,7 @@
<h2><?=$this->translate("Dirigeants Op&eacute;rationnels")?></h2>
<?php if ($this->edition) {?>
<p><a class="dialog" title="Ajouter un dirigeant" href="<?=$this->url(array('controller'=>'saisie',
<p><a class="dialog" title="Ajouter un dirigeant" href="<?=$this->url(array('module'=>'input', 'controller'=>'index',
'action'=>'diropcontrol','mode'=>'add','siret'=>$this->siret), 'default', true)?>">
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" />
<?=$this->translate("Ajouter un dirigeant")?></a></p>
@ -62,9 +62,9 @@
</td>
<?php if ($this->edition) {?>
<td>
<a class="dialog" title="Modifier le dirigeant" href="<?=$this->url(array('controller'=>'saisie','action'=>'diropcontrol','mode'=>'edit','siret'=>$this->siret,'id'=>$dir->Id), 'default', true)?>">
<a class="dialog" title="Modifier le dirigeant" href="<?=$this->url(array('module'=>'input', 'controller'=>'index','action'=>'diropcontrol','mode'=>'edit','siret'=>$this->siret,'id'=>$dir->Id), 'default', true)?>">
<img src="/themes/default/images/interfaces/editer.png" /></a>
<a class="dialog" title="Supprimer le dirigeant" href="<?=$this->url(array('controller'=>'saisie','action'=>'diropcontrol','mode'=>'del','siret'=>$this->siret,'id'=>$dir->Id), 'default', true)?>">
<a class="dialog" title="Supprimer le dirigeant" href="<?=$this->url(array('module'=>'input', 'controller'=>'index','action'=>'diropcontrol','mode'=>'del','siret'=>$this->siret,'id'=>$dir->Id), 'default', true)?>">
<img src="/themes/default/images/interfaces/supprimer.png" /></a>
</td>
<?php }?>

View File

@ -10,7 +10,7 @@
<td width="30">&nbsp;</td>
<td colspan="2">
<?php if(!empty($this->dateCloture)) {?>
<a href="<?=$this->url(array('controller'=>'saisie', 'action'=>'liasse', 'siret'=>$this->siren,
<a href="<?=$this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'liasse', 'siret'=>$this->siren,
'selection'=>$this->dateCloture.':'.$this->champType), 'default', true)?>">
Corriger le bilan</a><br/><?php }?>
</td>

View File

@ -8,9 +8,9 @@
<?php if ($this->edition) {?>
<div class="paragraph">
Saisir une nouvelle liasse au format
<a href="<?=$this->url(array('controller'=>'saisie', 'action'=>'liasse', 'siret'=>$this->siren, 'selection'=>'NEW:N'))?>">Normal (2050)</a>,
<a href="<?=$this->url(array('controller'=>'saisie', 'action'=>'liasse', 'siret'=>$this->siren, 'selection'=>'NEW:C'))?>">Consolidé (2050)</a>,
<a href="<?=$this->url(array('controller'=>'saisie', 'action'=>'liasse', 'siret'=>$this->siren, 'selection'=>'NEW:S'))?>">Simplifié (2033)</a>
<a href="<?=$this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'liasse', 'siret'=>$this->siren, 'selection'=>'NEW:N'))?>">Normal (2050)</a>,
<a href="<?=$this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'liasse', 'siret'=>$this->siren, 'selection'=>'NEW:C'))?>">Consolidé (2050)</a>,
<a href="<?=$this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'liasse', 'siret'=>$this->siren, 'selection'=>'NEW:S'))?>">Simplifié (2033)</a>
</div>
<?php }?>
<?php if ( empty($this->AutrePage) && $this->haveLiasse) {?>

View File

@ -62,7 +62,7 @@ $('input[name=filtre]').click(function(e){
<?php if ( $this->edition ) {?>
<div style="line-height:16px;">
<a class="dialog" title="Ajouter un contact" href="<?=$this->url(array('controller'=>'saisie','action'=>'contact','mode'=>'add','siret'=>$this->siret), 'default', true)?>">
<a class="dialog" title="Ajouter un contact" href="<?=$this->url(array('module'=>'input', 'controller'=>'index','action'=>'contact','mode'=>'add','siret'=>$this->siret), 'default', true)?>">
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" /> Ajouter un contact</a>
</div>
<?php }?>
@ -112,8 +112,8 @@ if ($item->deleted) {
<?php if( $this->edition ) {?>
<div style="float:right;">
<a class="dialog" title="Modifier le contact" href="<?=$this->url(array('controller'=>'saisie','action'=>'contact', 'siret'=>$this->siret, 'mode'=>'edit','id'=>$item->id), 'default', true)?>"><img src="/themes/default/images/interfaces/editer.png" /></a>
<a class="dialog" title="Supprimer le contact" href="<?=$this->url(array('controller'=>'saisie','action'=>'contact', 'siret'=>$this->siret, 'mode'=>'delete','id'=>$item->id), 'default', true)?>"><img src="/themes/default/images/interfaces/supprimer.png" /></a>
<a class="dialog" title="Modifier le contact" href="<?=$this->url(array('module'=>'input', 'controller'=>'index','action'=>'contact', 'siret'=>$this->siret, 'mode'=>'edit','id'=>$item->id), 'default', true)?>"><img src="/themes/default/images/interfaces/editer.png" /></a>
<a class="dialog" title="Supprimer le contact" href="<?=$this->url(array('module'=>'input', 'controller'=>'index','action'=>'contact', 'siret'=>$this->siret, 'mode'=>'delete','id'=>$item->id), 'default', true)?>"><img src="/themes/default/images/interfaces/supprimer.png" /></a>
</div>
<?php }?>
</td>

View File

@ -8,7 +8,7 @@ $class = ($key<$limit)?'first':'all';?>
<a target="_blank" href="<?=$this->url(array('module'=>'file', 'controller'=>'lien', 'action'=>'groupe',
'q'=>$doc->url), 'default', true)?>" id="<?=$doc->date?>" class="lienDocDate"><?=$doc->label?></a>
<?php if ($this->edition) {?>
<a class="dialog" title="Supprimer le document" href="<?=$this->url(array('controller'=>'saisie', 'action'=>'liendoc',
<a class="dialog" title="Supprimer le document" href="<?=$this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'liendoc',
'mode'=>'delete', 'id'=>$doc->id), 'default', true)?>">
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/supprimer.png" />
</a>

Some files were not shown because too many files have changed in this diff Show More