formulaire personne physique et societe etrangere (ajouter bootstrap

dans les vues)
This commit is contained in:
Jean Vladimir TWAHIRWA 2016-09-26 14:47:49 +02:00
parent 316a8396c6
commit 49a44becc8
3 changed files with 167 additions and 174 deletions

View File

@ -1,92 +1,66 @@
<?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'=>'ref'), 'default', true)?>" method="post">
<?php }?>
<div class="fieldgrp">
<label>Dénomination sociale</label>
<div class="field">
<input type="text" name="nom" value="<?=$this->RS?>"/>
<div class="form-group">
<label class="col-sm-4 control-label">Dénomination sociale</label>
<div class="col-sm-8 form-inline">
<input class=" form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">Sigle</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">Adresse</label>
<div class="col-md-8 form-inline">
<input class=" form-control" type="text" name="adresse_num" size="1" value="<?=$this->adresse_num?>"/>
<input class=" form-control" type="text" name="adresse_btq" size="1" value="<?=$this->adresse_btq?>"/>
<input class=" form-control" type="text" name="adresse_codvoie" size="4" value="<?=$this->adresse_codvoie?>"/>
<input class=" form-control" type="text" name="adresse_libvoie" size="20" 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 class="form-group">
<label class="col-sm-4 control-label">Adresse complément</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">CP</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">Ville</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">ISIN</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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>
<div class="form-group">
<label class="col-sm-4 control-label">Pays</label>
<div class="col-sm-4 control-label">
<select class=" form-control" 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>
@ -99,8 +73,8 @@ div#etranger { display:none; }
<?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'}?>"/>
<div class="form-group"><label class="col-sm-4 control-label">Identifiant local</label>
<div class="col-sm-4 control-label"><input class=" form-control input-sm" 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) {?>
@ -118,39 +92,41 @@ Selectionner un pays pour afficher les identifiants locaux
</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 class="form-group">
<label class="col-sm-4 control-label">Téléphone</label>
<div class="col-sm-4">
<div class="input-group input-group-sm"><span class="input-group-addon" id="indTel"></span>
<input class="form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">Fax</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">Web</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">Mail</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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;">
<div class="form-group">
<label class="col-sm-4 control-label">au capital de</label>
<div class="col-sm-8 form-inline">
<input class="form-control" type="text" name="capital" value="<?=$this->capital?>"/>
<select class="form-control" name="deviseCapital" style="width:150px;">
<option value="">-</option>
<?php foreach($this->currencies as $code => $item) {?>
<?php $select = ''; if ($this->deviseCapital==$code) $select = 'selected';?>
@ -160,24 +136,24 @@ Selectionner un pays pour afficher les identifiants locaux
</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 class="form-group">
<label class="col-sm-4 control-label"> en date du</label>
<div class="col-sm-4">
<input class=" form-control input-sm" type="text" name="dateCapital" value="<?=$this->dateCapital?>"/><small>(JJ/MM/AAAA)</small>
</div>
</div>
<div class="fieldgrp">
<label>découpé en</label>
<div class="field">
<input type="text" name="nbActions" value="<?=$this->nbActions?>" /> action(s),
<div class="form-group">
<label class="col-sm-4 control-label">découpé en</label>
<div class="col-sm-4">
<input class=" form-control input-sm" type="text" name="nbActions" value="<?=$this->nbActions?>" /> <small>action(s),</small>
</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 class="form-group">
<label class="col-sm-4 control-label">en date du </label>
<div class="col-sm-4">
<input class=" form-control input-sm" type="text" name="dateNbActions" value="<?=$this->dateNbActions?>"/><small> (JJ/MM/AAAA)</small>
</div>
</div>
@ -185,9 +161,9 @@ Selectionner un pays pour afficher les identifiants locaux
<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">
<div class="form-group">
<label class="col-sm-4 control-label">Devise bilan</label>
<div class="col-sm-4">
<select name="bilDev" style="width:150px;">
<option value="">-</option>
<?php foreach($this->currencies as $code => $item) {?>
@ -198,31 +174,31 @@ Selectionner un pays pour afficher les identifiants locaux
</div>
</div>
<div class="fieldgrp">
<label>Chiffre d'affaires</label>
<div class="field">
<input type="text" name="bilFL" value="<?=$this->bilFL?>"/>
<div class="form-group">
<label class="col-sm-4 control-label">Chiffre d'affaires</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">Résultat Net</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">Fonds Propres</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">Total Bilan</label>
<div class="col-sm-4">
<input class=" form-control input-sm" type="text" name="bilEE" value="<?=$this->bilEE?>"/>
</div>
</div>

View File

@ -53,21 +53,21 @@
<div id="fiche" style="display:none;">
<form name="saveLienRef" action="<?=$this->url(array('module'=>'input','controller'=>'lien', 'action'=>'ref'), 'default', true)?>" method="post">
<form class="form-group-sm form-horizontal well" name="saveLienRef" action="<?=$this->url(array('module'=>'input','controller'=>'lien', 'action'=>'ref'), 'default', true)?>" method="post">
<fieldset>
<legend>Informations fiche</legend>
<legend><small>Informations fiche</small></legend>
<div class="fieldgrp">
<label>Siren</label>
<div class="field">
<input type="text" name="siren" value=""/>
<div class="form-group">
<label class="col-sm-4 control-label">Siren</label>
<div class="col-sm-4 ">
<input class="form-control input-sm" 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">
<div class="form-group">
<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>

View File

@ -1,54 +1,69 @@
<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 class="form-group">
<label class="col-sm-4 control-label">Nom</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">Nom d'usage</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">Prénom(s)</label>
<div class="col-sm-4">
<input class=" form-control input-sm" type="text" name="prenom" value="<?=$this->prenom?>"/>
</div>
</div>
<div class="fieldgrp">
<label>Civilité</label>
<div class="field">
<div class="form-group">
<label class="col-sm-4 control-label">Civilité</label>
<div class="col-sm-4" >
<label class="radio-inline">
<input type="radio" name="civilite" value="M"<?php if ($this->civilite==strtoupper('M')) echo ' checked'; ?>/>M.
</label>
<label class="radio-inline">
<input type="radio" name="civilite" value="Mme"<?php if ($this->civilite==strtoupper('Mme')) echo ' checked'; ?>/>Mme
</label>
<label class="radio-inline">
<input type="radio" name="civilite" value="Mlle"<?php if ($this->civilite==strtoupper('Mlle')) echo ' checked'; ?>/>Mlle
</label>
</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?>"/>
<div class="form-group">
<label class="col-sm-4 control-label">Né(e) le</label>
<div class="col-sm-8 form-inline">
<input class=" form-control input-sm" 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">
à <input class=" form-control input-sm" type="text" name="naissance_lieu" value="<?=$this->naissance_lieu?>"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label"></label>
<div class="col-sm-7">
<select class=" form-control" 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">
</div>
</div>
<div class="form-group" id="departament">
<label class="col-sm-4 control-label">Département</label>
<div class="col-sm-4">
<select class=" form-control" name="naissance_dept">
<option value="">-</option>
<?php foreach($this->depListe as $dep) {?>
<?php $select = ''; if ($this->naissance_dept==$dep['num']) $select = 'selected';?>
@ -57,11 +72,12 @@ $('input[name=naissance_date]').datepicker({ changeMonth: true, changeYear: true
</select>
</div>
</div>
</div>
<div class="fieldgrp">
<label>Nationnalité</label>
<select name="nat">
<div class="form-group">
<label class="col-sm-4 control-label">Nationnalité</label>
<div class="col-sm-4">
<select class=" form-control" name="nat">
<option>-</option>
<?php foreach($this->countries as $code => $item) {?>
<?php $select = ''; if ($this->nat==$code) $select = 'selected';?>
@ -69,35 +85,36 @@ $('input[name=naissance_date]').datepicker({ changeMonth: true, changeYear: true
<?php }?>
</select>
</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 class="form-group">
<label class="col-sm-4 control-label">Adresse</label>
<div class="col-md-8 form-inline">
<input class=" form-control input-sm" type="text" name="adresse_num" size="1" value="<?=$this->adresse_num?>"/>
<input class=" form-control input-sm" type="text" name="adresse_btq" size="1" value="<?=$this->adresse_btq?>"/>
<input class=" form-control input-sm" type="text" name="adresse_codvoie" size="4" value="<?=$this->adresse_codvoie?>"/>
<input class=" form-control input-sm" type="text" name="adresse_libvoie" size="20" 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 class="form-group">
<label class="col-sm-4 control-label">Adresse complément</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">CP</label>
<div class="col-sm-4">
<input class=" form-control input-sm" 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 class="form-group">
<label class="col-sm-4 control-label">Ville</label>
<div class="col-sm-4">
<input class=" form-control input-sm" type="text" name="adresse_ville" value="<?=$this->adresse_ville?>"/>
</div>
</div>
@ -167,10 +184,10 @@ $('select[name=naissance_dept_pays]').on("click", function(){
});
</script>
<div class="fieldgrp">
<label>Pays</label>
<div class="field">
<select name="adresse_pays">
<div class="form-group">
<label class="col-sm-4 control-label">Pays</label>
<div class="col-sm-4">
<select class="form-control" name="adresse_pays">
<option value="">-</option>
<?php foreach($this->countries as $code => $item) {?>
<?php $select = ''; if ($this->adresse_pays==$code) $select = 'selected';?>