Merge edition annonce

This commit is contained in:
Michael RICOIS 2010-06-25 15:34:05 +00:00
commit 73aa2388df
7 changed files with 39 additions and 9 deletions

View File

@ -1,7 +1,7 @@
<?php
header('Content-Type: text/html; charset='.CHARSET);
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
if ( !isset($inEditDialog) || $inEditDialog === false ) {
$tribunal = (isset($_REQUEST['tribunal']) ? $_REQUEST['tribunal'] : '');
$siren = (isset($_REQUEST['siren']) ? $_REQUEST['siren'] : '');
$nic = (isset($_REQUEST['nic']) ? $_REQUEST['nic'] : '');

View File

@ -1,5 +1,9 @@
<?php
$tribunal = (isset($_REQUEST['tribunal'])? $_REQUEST['tribunal'] : '');
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="">

View File

@ -1,5 +1,9 @@
<?php
$tribunal = (isset($_REQUEST['tribunal'])? $_REQUEST['tribunal'] : '');
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="">

View File

@ -1,5 +1,9 @@
<?php
$tribunal = (isset($_REQUEST['tribunal'])? $_REQUEST['tribunal'] : '');
if ( !isset($inEditDialog) || $inEditDialog === false ) {
$tribunal = (isset($_REQUEST['tribunal'])? $_REQUEST['tribunal'] : '');
} else {
$tribunal = $saisie['tribunal'];
}
?>
<label>Opposition</label>
<input class="searchMandataires" type="text" name="oppo" value="">

View File

@ -30,6 +30,7 @@ switch ( $subaction ) {
break;
case 'editDialog':
$inEditDialog = true;
$idan = $params[2];
$siret = $params[3]; FB::log($siret, 'siret');
$siren = substr($siret,0,9); FB::log($siren, 'siren');

View File

@ -18,6 +18,11 @@ if ( $saisie['source']=='TA' ){ $select = 'selected'; }
?>
<option value="TA" <?=$select?>>Tribunal via autre tiers</option>
<?php
$select = '';
if ( $saisie['source']=='JT' ){ $select = 'selected'; }
?>
<option value="JT" <?=$select?>>TESSI</option>
<?php
$tmp = $client->getListeJalCollecte();
$liste = $tmp['result'];
foreach ($liste as $id=>$lib) {
@ -84,8 +89,14 @@ foreach ($liste as $code=>$lib) {
</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
$disable = '';
if ( $inEditDialog ) {
$disable = 'disabled';
}
?>
<select id="jugement" name="jugement[even][]" size="5" <?=$disable?>>
<option value="0000">-</option>
<?php
$eventNum = isset($saisie['eventNum']) ? $saisie['eventNum'] : '0000' ;
asort($tabEvent);
@ -95,9 +106,15 @@ foreach($tabEvent as $key => $event)
if ( in_array($key, $saisie['even']) ) {
$select = 'selected';
}
$display = true;
if ( isset($inEditDialog) && $inEditDialog === true && empty($select) ){
$display = false;
}
if ( $display ) {
?>
<option value="<?=$key?>" <?=$select?>><?=$event?></option>
<option value="<?=$key?>" <?=$select?>><?=$event?></option>
<?php
}
}
?>
</select>

View File

@ -37,8 +37,8 @@ $(document).ready(function(){
var dialogOpts = {
bgiframe: true,
title: title,
width: 800,
height: 400,
width: 650,
height: 500,
modal: true,
closeOnEscape: false,
open: function(event, ui) {