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 = '';
|
2010-12-30 15:29:20 +00:00
|
|
|
if (isset($saisie['source']) == false || $saisie['source'] == 'TS') {
|
|
|
|
$select = 'selected';
|
2010-06-25 12:49:43 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
<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-12-30 15:29:20 +00:00
|
|
|
foreach ($liste as $id => $lib) {
|
|
|
|
print "<option value=\"JS$id\" ";
|
|
|
|
if ($saisie['source'] == "JS$id") {
|
|
|
|
print 'selected';
|
|
|
|
}
|
|
|
|
print ">$lib</option>";
|
2010-06-24 09:42:23 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<div id="dateParution">
|
|
|
|
<label>Date de parution <font color="Red">*</font></label>
|
2010-12-30 15:29:20 +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-12-30 15:29:20 +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-12-30 15:29:20 +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
|
2010-12-30 15:29:20 +00:00
|
|
|
// Affectation du code tribunal présent dans la fiche identité pour comparaison
|
2010-06-25 12:49:43 +00:00
|
|
|
$codeCmp = $saisie['tribunal'];
|
2010-12-30 15:29:20 +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 == '') {
|
|
|
|
$competences =
|
|
|
|
scorews_competences($siret, $etab['Siren'], $idEntreprise, 'tri',
|
|
|
|
$_SESSION['tabInfo']['entrep']['codeCommune']);
|
|
|
|
foreach ($competences as $item) {
|
|
|
|
if ($item['Type'] == 'C'){
|
|
|
|
$codeCmp = $item['Code'];
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2010-06-24 09:42:23 +00:00
|
|
|
}
|
|
|
|
|
2010-12-30 15:29:20 +00:00
|
|
|
$tmp = $client->getTribunaux(array('C', 'I', 'G', 'M', 'P'));
|
2010-06-24 09:42:23 +00:00
|
|
|
$liste = $tmp['result'];
|
|
|
|
asort($liste);
|
2010-12-30 15:29:20 +00:00
|
|
|
foreach ($liste as $code => $lib) {
|
|
|
|
if (strlen($lib) > 39) {
|
|
|
|
$lib = substr($lib, 0, 41).'...';
|
|
|
|
}
|
|
|
|
print '<option value="'.$code.'"';
|
|
|
|
if ($code == $codeCmp) {
|
|
|
|
print ' selected';
|
|
|
|
}
|
|
|
|
print ">$lib</option>";
|
2010-06-24 09:42:23 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</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
|
2010-12-30 15:29:20 +00:00
|
|
|
$eventNum = isset($saisie['eventNum']) ? $saisie['eventNum'] : '0000';
|
2010-06-25 12:49:43 +00:00
|
|
|
asort($tabEvent);
|
2010-12-30 15:29:20 +00:00
|
|
|
foreach($tabEvent as $key => $event) {
|
|
|
|
$select = '';
|
|
|
|
if (in_array($key, $saisie['even'])) {
|
|
|
|
$select = 'selected';
|
|
|
|
}
|
|
|
|
$display = true;
|
|
|
|
if (isset($inEditDialog) && $inEditDialog === true && empty($select)) {
|
|
|
|
$display = false;
|
|
|
|
}
|
|
|
|
if ($display) {
|
|
|
|
print '<option value="'.$key.'" title="'.$event.'" '.
|
|
|
|
$select.'>'.$event.'</option>';
|
|
|
|
}
|
2010-06-25 12:49:43 +00:00
|
|
|
}
|
|
|
|
?>
|
2010-06-24 09:42:23 +00:00
|
|
|
</select>
|
|
|
|
<div id="subFormSaisie">
|
2010-12-30 15:29:20 +00:00
|
|
|
<?php
|
|
|
|
require_once realpath(dirname(__FILE__)).'/event/event_'.$eventNum.'.php';
|
|
|
|
?>
|
2010-06-24 09:42:23 +00:00
|
|
|
</div>
|