1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
| <table>
<tr>
<td><li>Etude :</li></td>
<td id="myzonestudy"><?php echo select_tag( 'study',
objects_for_select( $studies,
'getId', ($sf_user->getAttribute('study') ? 'getName' : 'getName'),
($sf_user->getAttribute('study') ? $sf_user->getAttribute('study')->getId() : null ),
array('include_custom' => '== Choisissez une étude ==')
),
array('onchange' => remote_function(array("update"=>"myzonesite",
"url"=>"auditrail/ajaxChargeSiteForStudy",
'with' => "'studyId=' + $('study').options[$('study').selectedIndex].value",
'complete' => remote_function(array("update"=>"new_table",
"url"=>"auditrail/updateTable",
'with' => "'siteName=' + $('site').options[$('site').selectedIndex].value
+ '&studyId=' + $('study').options[$('study').selectedIndex].value
+ '&critere=' + document.getElementById('critere').value",
'script' => true)),
'script' => true)),
'style' => 'width:260px; height:25px;'
)); ?>
</td>
</tr>
<tr>
<td><li>Centre :</li></td>
<td id="myzonesite"><?php echo select_tag( 'site',
objects_for_select( $list_site,
'getName', ($sf_user->getAttribute('study') ? 'getName' : 'getName'),
($sf_user->getAttribute('site') ? $sf_user->getAttribute('site')->getName() : null ),
array('include_custom' => '== Choisissez un centre ==')
),
array('onchange' => remote_function(array("update"=>"myzonestudy",
"url"=>"auditrail/ajaxChargeStudyForSite",
'with' => "'siteName=' + $('site').options[$('site').selectedIndex].value",
'complete' => remote_function(array("update"=>"new_table",
"url"=>"auditrail/updateTable",
'with' => "'siteName=' + $('site').options[$('site').selectedIndex].value
+ '&studyId=' + $('study').options[$('study').selectedIndex].value
+ '&critere=' + document.getElementById('critere').value",
'script' => true)),
'script' => true)),
'style' => 'width:260px; height:25px;'
)); ?>
</td>
</tr>
<tr>
<td><li>Champ de critère :<br></li></td>
<td><?php echo tag('input',
array('name' => 'critere', 'value' => '', 'id' => 'critere', 'style' => 'width:260px; height:20px;', 'type' => 'text')) ?>
<?php echo observe_field('critere', array( 'update' => 'new_table',
'url' => 'auditrail/updateTable',
'with' => "'siteName=' + $('site').options[$('site').selectedIndex].value
+ '&studyId=' + $('study').options[$('study').selectedIndex].value
+ '&critere=' + document.getElementById('critere').value",
'frequency' => 1,
'script' => true));
?>
</td>
</tr>
<table> |
Partager