2010-06-24 09:42:23 +00:00
|
|
|
<label>Source <font color="Red">*</font></label>
|
|
|
|
<select name="jugement[source]">
|
|
|
|
<?php
|
2010-06-25 12:49:43 +00:00
|
|
|
$select = '';
|
|
|
|
if ( !isset($saisie['source']) || $saisie['source']=='TS' ){
|
|
|
|
$select = 'selected';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<option value="TS" <?=$select?>>Tribunal via CCI</option>
|
|
|
|
<?php
|
|
|
|
$select = '';
|
|
|
|
if ( $saisie['source']=='TD' ){ $select = 'selected'; }
|
|
|
|
?>
|
|
|
|
<option value="TD" <?=$select?>>Tribunal directement</option>
|
|
|
|
<?php
|
|
|
|
$select = '';
|
|
|
|
if ( $saisie['source']=='TA' ){ $select = 'selected'; }
|
|
|
|
?>
|
|
|
|
<option value="TA" <?=$select?>>Tribunal via autre tiers</option>
|
|
|
|
<?php
|
2010-06-25 14:03:24 +00:00
|
|
|
$select = '';
|
|
|
|
if ( $saisie['source']=='JT' ){ $select = 'selected'; }
|
|
|
|
?>
|
|
|
|
<option value="JT" <?=$select?>>TESSI</option>
|
|
|
|
<?php
|
2010-06-25 12:49:43 +00:00
|
|
|
$tmp = $client->getListeJalCollecte();
|
|
|
|
$liste = $tmp['result'];
|
2010-06-24 09:42:23 +00:00
|
|
|
foreach ($liste as $id=>$lib) {
|
|
|
|
echo "<option value=\"JS$id\" ";
|
2010-06-25 12:49:43 +00:00
|
|
|
if ( $saisie['source']=="JS$id" ) {
|
|
|
|
echo 'selected';
|
|
|
|
}
|
2010-06-24 09:42:23 +00:00
|
|
|
echo ">$lib</option>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<div id="dateParution">
|
|
|
|
<label>Date de parution <font color="Red">*</font></label>
|
2010-06-25 12:49:43 +00:00
|
|
|
<input class="date" type="text" name="jugement[dateParution]" size="10" maxlength="10" value="<?=$saisie['dateParution']?>" />
|
2010-06-24 09:42:23 +00:00
|
|
|
<span class="left">(Format JJ/MM/AAAA)</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="numParution">
|
|
|
|
<label>N° de parution</label>
|
2010-06-25 12:49:43 +00:00
|
|
|
<input type="text" name="jugement[numParution]" size="10" maxlength="10" value="<?=$saisie['numParution']?>" />
|
2010-06-24 09:42:23 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<label>Date évènement / jugement<font color="Red">*</font></label>
|
2010-06-25 12:49:43 +00:00
|
|
|
<input class="date" type="text" name="jugement[dateJuge]" size="10" maxlength="10" value="<?=$saisie['dateJugement']?>" />
|
2010-06-24 09:42:23 +00:00
|
|
|
<span class="left">(Format JJ/MM/AAAA)</span>
|
|
|
|
|
|
|
|
<label>Tribunal <font color="Red">*</font></label>
|
|
|
|
<select id="tribunal" name="jugement[tribunal]">
|
|
|
|
<option value="-" selected>-</option>
|
|
|
|
<?php
|
|
|
|
//Affectation du code tribunal présent dans la fiche identité pour comparaison
|
2010-06-25 12:49:43 +00:00
|
|
|
$codeCmp = $saisie['tribunal'];
|
2010-06-24 09:42:23 +00:00
|
|
|
//Si le code tribunal n'est pas défini dans la fiche identité
|
|
|
|
//alors en sélectionner un par défault suivant le code INSEE
|
|
|
|
if ($codeCmp == ''){
|
|
|
|
try {
|
|
|
|
$O = $client->getListeCompetences($etab['Siret'], 'tri',
|
|
|
|
$_SESSION['tabInfo']['entrep']['codeCommune']);
|
|
|
|
$competences = $O['result'];
|
|
|
|
foreach($competences as $item){
|
|
|
|
if ($item['Type'] == 'C'){
|
|
|
|
$codeCmp = $item['Code'];
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (SoapFault $fault) {
|
|
|
|
include_once 'soaperror.php';
|
|
|
|
processSoapFault($client,$fault,$tabInfo);
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$tmp = $client->getTribunaux( array('C','I','G','M','P') );
|
|
|
|
$liste = $tmp['result'];
|
|
|
|
asort($liste);
|
|
|
|
foreach ($liste 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>Évènement / Jugement <font color="Red">*</font></label>
|
2010-06-25 15:33:40 +00:00
|
|
|
<select id="jugement" name="jugement[even][]" size="5">
|
2010-06-25 13:51:07 +00:00
|
|
|
<option value="0000">-</option>
|
2010-06-25 12:49:43 +00:00
|
|
|
<?php
|
|
|
|
$eventNum = isset($saisie['eventNum']) ? $saisie['eventNum'] : '0000' ;
|
|
|
|
asort($tabEvent);
|
|
|
|
foreach($tabEvent as $key => $event)
|
|
|
|
{
|
|
|
|
$select = '';
|
|
|
|
if ( in_array($key, $saisie['even']) ) {
|
|
|
|
$select = 'selected';
|
2010-06-24 09:42:23 +00:00
|
|
|
}
|
2010-06-25 13:51:07 +00:00
|
|
|
$display = true;
|
|
|
|
if ( isset($inEditDialog) && $inEditDialog === true && empty($select) ){
|
|
|
|
$display = false;
|
|
|
|
}
|
|
|
|
if ( $display ) {
|
2010-06-24 09:42:23 +00:00
|
|
|
?>
|
2010-10-01 14:27:41 +00:00
|
|
|
<option value="<?=$key?>" title="<?=$event?>" <?=$select?>><?=$event?></option>
|
2010-06-25 12:49:43 +00:00
|
|
|
<?php
|
2010-06-25 13:51:07 +00:00
|
|
|
}
|
2010-06-25 12:49:43 +00:00
|
|
|
}
|
|
|
|
?>
|
2010-06-24 09:42:23 +00:00
|
|
|
</select>
|
|
|
|
<div id="subFormSaisie">
|
2010-06-25 12:49:43 +00:00
|
|
|
<?php require_once realpath(dirname(__FILE__)).'/event/event_'.$eventNum.'.php';?>
|
2010-06-24 09:42:23 +00:00
|
|
|
</div>
|