Module Recherche "search"

This commit is contained in:
Michael RICOIS 2016-04-29 15:55:11 +02:00
parent 555964c2fe
commit 75f1327771
19 changed files with 337 additions and 24 deletions

View File

@ -0,0 +1,6 @@
<?php
class Search_ActionnaireController extends Zend_Controller_Action
{
public function indexAction(){}
public function listAction(){}
}

View File

@ -0,0 +1,6 @@
<?php
class Search_AnnonceController extends Zend_Controller_Action
{
public function indexAction(){}
public function listAction(){}
}

View File

@ -0,0 +1,6 @@
<?php
class Search_DirigeantController extends Zend_Controller_Action
{
public function indexAction(){}
public function listAction(){}
}

View File

@ -0,0 +1,6 @@
<?php
class Search_EntrepriseController extends Zend_Controller_Action
{
public function indexAction(){}
public function listAction(){}
}

View File

@ -1,21 +0,0 @@
<?php
class Search_IndexController extends Zend_Controller_Action
{
public function entrepriseAction(){}
public function entrepriselistAction(){}
public function dirigeantAction(){}
public function dirigeantlistAction(){}
public function actionnaireAction(){}
public function actionnairelistAction(){}
public function annoncelistAction(){}
public function surveillanceAction(){}
public function surveillancelistAction(){}
}

View File

@ -0,0 +1,6 @@
<?php
class Search_SurveillanceController extends Zend_Controller_Action
{
public function indexAction(){}
public function listAction(){}
}

View File

@ -0,0 +1,27 @@
<?php
$form = $this->form;
?>
<div id="center-recherche">
<div id="recherche">
<h3><?=$this->translate("RECHERCHE PAR ACTIONNAIRE")?></h3>
<form class="recherche" name="<?php echo $form->getName()?>"
method="<?php echo $form->getMethod()?>" action="<?php echo $form->getAction()?>">
<?php echo $form->type?>
<div class="row"><?php echo $form->siret?></div>
<div class="row"><?php echo $form->actNomRs?></div>
<div class="row"><?php echo $form->cpVille?></div>
<div class="row"><?php echo $form->pays?></div>
<div class="row">
<?php echo $form->pctMin?>
<?php echo $form->pctMax?> %
</div>
<div class="row submit">
<?php echo $form->submit?>
<?php echo $form->reset?>
</div>
</form>
</div>
</div>

View File

@ -0,0 +1,186 @@
<script type="text/javascript">
function formSource(source)
{
var fields = Array( 'bodacc', 'histo', 'date', 'nparution', 'fpage', 'nannonce', 'naffaire', 'txt' );
switch(source)
{
case 'asso':
var field_actif = new Array('date', 'nparution', 'fpage', 'nannonce');
break;
case 'bodacc':
var field_actif = new Array('bodacc', 'histo', 'date', 'nparution', 'fpage', 'nannonce');
break;
case 'balo':
var field_actif = new Array('date', 'nparution', 'fpage', 'naffaire');
break;
}
for (var i=0;i<fields.length;i++) {
$('#'+fields[i]).css('display', 'none');
}
for (var i=0;i<field_actif.length;i++){
$('#'+field_actif[i]).css('display', 'block');
}
}
$(document).ready(function()
{
//Init
formSource($('#sourceSelect').val());
if ($('#histoSelect').prop('checked')) {
$('#txt').css('display','block');
} else {
$('#txt').css('display','none');
}
//Evenement
$('#datepicker').datepicker($.datepicker.regional['fr']);
$('#sourceSelect').change(function(){ formSource($(this).val()); });
$('#histoSelect').click(function(){
if($(this).prop('checked')){ $('#txt').css('display','block');
}else{ $('#txt').css('display','none'); }
});
$('#deselectBodacc').click(function(){
$('input[type=radio][name="formA[bodacc]"]').each(function(){
$(this).prop('checked', false);
});
});
});
</script>
<style type="text/css">
.infoTitle {clear:both; float:left; width:180px; margin-left:30px; padding:0 10px 0 0;}
.infoData {float:left; width:320px; margin:2px 0;}
form {}
form em { color:#FF0000;}
fieldset {border:0; margin:0; padding:0;}
fieldset legend{ padding:0 0 0 10px;}
.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{ width:150px; font-weight:bold; margin-left:30px; clear:both; padding:0 10px 0 0; line-height:22px; _padding-top:3px; float:left; display:block; font-size:108%;}
.fieldgrp label.inline{ clear:none; margin:0; float:left; display:block; width:auto;}
.fieldgrp label span{font-weight:normal;}
.fieldgrp label abbr{color:#4B911C; font-size:120%; vertical-align:middle;}
.fieldgrp p { clear:both; margin:0 0 0 30px; font-size:12px; }
.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{ font-size:110%; margin:2px 0; }
.field input.radio { margin:0 5px; vertical-align:middle; border:none; }
.field input.checkbox { border:none; }
.field span { margin-left:10px; }
.noborder {border:none;}
div.submit{ text-align:center; }
</style>
<div id="center">
<h1>Rechercher une annonce</h1>
<div class="paragraph">
<form name="annonces" method="post" action="<?=$this->url(array('controller'=>'recherche', 'action'=>'annonceliste'))?>">
<input type="hidden" name="formA[type]" value="annonces"/>
<div class="fieldgrp">
<label for="source">Source</label>
<div class="field">
<select id="sourceSelect" name="formA[source]">
<option value="bodacc" <?=(isset($this->recherche['source']) && $this->recherche['source']=='bodacc')? 'selected' : ''?>>BODACC / BORC</option>
<option value="asso" <?=(isset($this->recherche['source']) && $this->recherche['source']=='asso')? 'selected' : ''?>>JO Association</option>
<option value="balo" <?=(isset($this->recherche['source']) && $this->recherche['source']=='balo')? 'selected' : ''?>>BALO</option>
</select>
</div>
</div>
<div id="bodacc" class="fieldgrp">
<label for="bodacc">Bodacc</label>
<div class="field">
<span><input class="radio" type="radio" name="formA[bodacc]" value="a" <?=(isset($this->recherche['bodacc']) && $this->recherche['bodacc']=='a')? 'checked' : ''?>/>A</span>
<span><input class="radio" type="radio" name="formA[bodacc]" value="b" <?=(isset($this->recherche['bodacc']) && $this->recherche['bodacc']=='b')? 'checked' : ''?>/>B</span>
<span><input class="radio" type="radio" name="formA[bodacc]" value="c" <?=(isset($this->recherche['bodacc']) && $this->recherche['bodacc']=='c')? 'checked' : ''?>/>C</span>
<span><a href="#" id="deselectBodacc">Désélection</a></span>
</div>
</div>
<div id="histo" class="fieldgrp">
<label for="histo">Historique jusqu'à 1953</label>
<div class="field">
<input class="checkbox" type="checkbox" id="histoSelect" name="formA[histo]" <?=(isset($this->recherche['histo']) && $this->recherche['histo']=='on')? 'checked' : ''?>/>
</div>
</div>
<div id="date" class="fieldgrp">
<label for="annee">Année</label>
<div class="field">
<input type="text" name="formA[annee]" size="4" maxlength="4" value="<?=$this->recherche['annee']?>"/>
</div>
<label class="inline" for="dateparution">ou Date de parution</label>
<div class="field">
<input id="datepicker" type="text" name="formA[dateparution]" size="10" maxlength="10" value="<?=$this->recherche['dateparution']?>"/>
</div>
</div>
<div id="nparution" class="fieldgrp">
<label for="nparution">Numéro de parution</label>
<div class="field">
<input type="text" name="formA[nparution]" size="10" maxlength="10" value="<?=$this->recherche['nparution']?>"/>
</div>
</div>
<div id="fpage" class="fieldgrp">
<label for="page">Page</label>
<div class="field">
<input type="text" name="formA[bpage]" size="10" maxlength="10" value="<?=$this->recherche['bpage']?>"/>
</div>
</div>
<div id="nannonce" class="fieldgrp">
<label for="nannonce">Numéro d'annonce</label>
<div class="field">
<input type="text" name="formA[nannonce]" size="10" maxlength="10" value="<?=$this->recherche['nannonce']?>"/>
</div>
</div>
<div id="naffaire" class="fieldgrp">
<label for="naffaire">Numéro d'affaire</label>
<div class="field">
<input type="text" name="formA[naffaire]" size="10" maxlength="10" value="<?=$this->recherche['naffaire']?>"/>
</div>
</div>
<div id="txt" class="fieldgrp">
<label for="txt">Recherche</label>
<div class="field">
<input type="text" name="formA[txt]" size="55" maxlength="2048" value="<?
if (isset($this->recherche['txt'])) {
print htmlspecialchars($this->recherche['txt']);
}
?>"/>
</div>
<p>
<b><u>Attention :</u></b>
Ce formulaire de recherche permet de rechercher dans les pages entières du BORC, BODAC et BODACC telles qu'elles ont été numérisées par Scores & Décisions.
Cette recherche permet de rechercher des annonces dans des pages jusqu'à l'année de parution <b>1953</b>.
</p>
<p>&nbsp;</p>
<p><u>Opérateurs et méthodes de recherche :</u></p>
<p>Opérateur OU, <b>|</b> (ex: <b>societe | ville</b>)</p>
<p>Exclure des termes, <b>-</b> ou <b>!</b> (ex: <b>societe -ville</b> ou <b>societe !ville</b>)</p>
<p>Phrase (ex: <b>"boulangerie dupain"</b>)</p>
<p>Recherche de proximité (ex: <b>"boulangerie plantes"$50</b> , recherche d'une boulangerie dans rue des plantes )</p>
<p>Ordre de recherche (ex: <b>boulangerie << dupain</b> , recherche du mot "boulangerie" puis du mot "dupain") </p>
</div>
<div class="submit">
<p><input type="submit" name="submit" value="Ok"/></p>
</div>
</form>
</div>
</div>

View File

@ -0,0 +1,26 @@
<?php
$form = $this->form;
?>
<div id="center-recherche">
<div id="recherche">
<h3><?=$this->translate("RECHERCHE DIRIGEANT")?></h3>
<form class="recherche" name="<?php echo $form->getName()?>"
method="<?php echo $form->getMethod()?>" action="<?php echo $form->getAction()?>">
<?php echo $form->type?>
<div class="row"><?php echo $form->dirNom?></div>
<div class="row"><?php echo $form->dirPrenom?></div>
<div class="row">
<?php echo $form->dirDateNaissJJ?>
<?php echo $form->dirDateNaissMM?>
<?php echo $form->dirDateNaissAAAA?>
</div>
<div class="row"><?php echo $form->dirCpVille?></div>
<div class="row submit">
<?php echo $form->submit?>
<?php echo $form->reset?>
</div>
</form>
</div>
</div>

View File

@ -0,0 +1,50 @@
<div id="center">
<div id="recherche">
<?php if (!empty($this->message)){ ?>
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
<?=$this->message?></p>
</div>
<?php }?>
<h1><?=$this->translate("RECHERCHE ENTREPRISE")?></h1>
<?php $form = $this->form; ?>
<form class="recherche" name="<?php echo $form->getName()?>"
method="<?=$form->getMethod()?>" action="<?=$form->getAction()?>">
<?=$form->type?>
<div class="row">
<?php echo $form->siret?>
<img src="/themes/default/images/info.gif" title="Recherche par SIREN, SIRET, N° TVA intracommunautaire, N° RC, R.N.A., ISIN" />
<img src="/themes/default/images/siretdirect.gif" title="Accès direct à la fiche identité (Racourci clavier : Maintenir CTRL puis ENTREE)" id="goidentite"/>
</div>
<?php if ($this->SEARCHENT) {?>
<div class="row">
<?=$form->raisonSociale?>
</div>
<div class="row">
<?=$form->numero?>
<?=$form->voie?>
</div>
<div class="row">
<?=$form->cpVille?>
</div>
<div class="row">
<?=$form->telFax?>
</div>
<div class="row">
<?=$form->naf?>
</div>
<div class="row">
<?=$form->fj?>
</div>
<div class="row">
<?=$form->pays?>
</div>
<?php }?>
<div class="row submit">
<?=$form->submit?>
<?=$form->reset?>
</div>
</form>
</div>

View File

@ -0,0 +1,18 @@
<div id="content">
<h2><?=$this->translate("Portefeuille surveillance")?></h2>
<form name="refclient" method="post" action="<?=$this->url(array('module'=>'search','controller'=>'index',
'action'=>'surveillancelist'), 'default', true)?>">
<input type="hidden" name="type" value="refclient" />
<div class="form-group form-group-sm">
<label>Référence client</label>
<input class="form-control" type="text" name="ref" placeholder="Votre référence..."/>
</div>
<button type="submit" class="btn btn-default btn-sm">Rechercher</button>
</form>
</div>