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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
la function javascript
function fSuche(sTable,sAction)
{
showLoading();
url = 'Lib/ProzessSuche.php';
target = 'fuss';
$('fuss').style.display = '';
if(sAction =='')
{
$('fSuchen').reset();
}
pars = Form.serialize('fSuchen');
pars +='&tbl='+sTable;
myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
sTabelle =sTable;
url = './datagrid3/example_oracle.php';
target = 'inhalt';
pars = Form.serialize('fSuchen');
pars +='&tbl='+sTabelle;
myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}
function showLoading()
{
$('inhalt').innerHTML ="<center><font style='font-size=12px;'>Données en cours de telechargement ...</font><img src='../Images/common/loading.gif'></center>";
}
document html permettant d´envoyer la requete a la function fSuche(sTable,sAction):
<div id ='suche2' style="position:absolute; left:0px; top:0px; border:0px; ">
<form method="post" name="fSuchen" id ="fSuchen">
<fieldset class='blue_class_legend' style=" width:200px; height:140px; border:0px; " >
<legend>
<font color='blue'>
SUCHE
</font>
</legend>
<table border=0 align='center' width='200px' >
<tbody>
<tr valign="middle">
<td> </td>
<td>
<select class="blue_class_select" name="blindsucheOperator" id="blindsucheOperator">
<option value="=">egal</option>
<option value=">=">plus grand que</option>
<option value="<">plus petit que</option>
<option value="like">exactement</option>
<option value="like%">commence avec</option>
<option value="%like">finit avec</option>
<option value="%like%">contient</option>
<option value="not like">ne contient pas</option>
</select>
</td>
<td align="rigth" width="50%">
<input class="blue_class_textbox" size=6 value="" name="blindsucheOperatortext" id="blindsucheOperatortext" type="text">
</td>
<td colspan="5" align="center">
<input class="blue_class_button" name="SUBMIT_FILTER" id="SUBMIT_FILTER" value="chercher" type="submit" onclick="fSuche('KATASTER','suche'); return false;">
<input class="blue_class_button" name="SUBMIT_RESET" id="SUBMIT_RESET" value="annuller" accesskey="13" type="button" onclick="fSuche('KATASTER','');return false;">
</td>
</tr>
<tr>
<td colspan="5" style="font-size:10px;" color='black' align="center" height="6">
</td>
</tr>
</tbody>
</table>
</fieldset>
</form>
</DIV>
<div id="inhalt"> </div> |
Partager