03c9584d0da50cb61e0582bffc7d042ea6e49222
2 if(!empty($_POST['rule']))
3 if(!$filter->handle_form())
4 echo "<p style=\"color:red;\">".$philter->error()."</p>\n";
6 require("include/js_factory.inc.php");
9 <div
class="rubrique"><?php
i18n('filter_title'); ?
></div
>
13 <table width
="95%" cellspacing
="0" cellpadding
="2" align
="center">
14 <tr
><td width
="25%" valign
="top">
15 <form action
="<?php echo $_SERVER['REQUEST_URI']?>" method
="post" id
="order" name
="order" onsubmit
="return false;">
16 <table
class="bicol" width
="100%" cellpadding
="1" cellspacing
="1">
17 <tr
><th
><?php
i18n('filter_list_title');?
></th
></tr
>
20 foreach($filter->rules
as $id=>$rule)
22 echo "<input type=\"hidden\" id=\"order$id\" name=\"order[$id]\" value=\"{$rule->rank}\" />\n";
24 $presel = (isset($_POST['rule']['id']) ?
$_POST['rule']['id']
25 : (isset($_POST['order']['select']) ?
$_POST['order']['select'] : 0));
27 echo "<select size=\"16\" style=\"width:100%;\" id=\"orderSelect\" name=\"order[select]\" onchange=\"createRuleForm()\">\n";
28 echo "<option value=\"0\" ".($presel ?
"" : " selected=\"selected\"").">";
32 foreach($filter->rules
as $id=>$rule)
34 echo "<option value=\"$id\""
35 .($presel==$id ?
" selected=\"selected\"":"")
36 .">{$rule->name}</option>\n";
40 <input type
="submit" value
="<?php i18n('up');?>" name
="order[up]" onclick
="order_up();" />
41 <input type
="submit" value
="<?php i18n('dn');?>" name
="order[dn]" onclick
="order_dn();" /><br
/>
42 <input type
="submit" value
="<?php i18n('del');?>" name
="order[delete]" onclick
="order_submit(this)" />
43 <input type
="submit" value
="<?php i18n('submit');?>" name
="order[submit]" onclick
="order_submit(this)" />
44 <input type
="hidden" value
="" name
="order[action]" />
50 <form action
="<?php echo $_SERVER['REQUEST_URI']?>" method
="post" id
="rule" name
="rule" onsubmit
="return false;">
51 <table width
="100%" class="bicol" cellspacing
="1" cellpadding
="1">
52 <tr
><th
><?php
i18n('rule_name'); ?
>
54 <input type
="text" value
="" id
="ruleName" name
="rule[name]" style
="width: 100%;"
55 onfocus
="text_onfocus(this,'<?php i18n('new_rule');?>')"
56 onblur
="text_onblur(this,'<?php i18n('new_rule');?>')" />
58 <tr
class="impair"><th
><?php
i18n('filter_rule_conf');?
>
59 </th
></tr
><tr
class="impair"><td
>
60 <input type
="radio" value
="1" id
="ruleAll1" name
="rule[all]" /><?php
i18n('all_matches');?
>
61 <input type
="radio" value
="0" id
="ruleAll0" name
="rule[all]" /><?php
i18n('one_match');?
>
63 <input type
="checkbox" checked
="checked" id
="ruleBlock" name
="rule[block]" />
64 <?php
i18n('blocking_rule');?
>
65 </td
></tr
><tr
class="impair"><th
><?php
i18n('filter_matches_list');?
>
66 </th
></tr
><tr
class="impair"><td id
="matchesRow">
67 </td
></tr
><tr
class="impair"><th
><?php
i18n('filter_actions_list');?
>
68 </th
></tr
><tr
class="impair"><td id
="actionsRow">
69 </td
></tr
><tr
class="impair"><td
>
70 <input type
="hidden" value
="0" id
="ruleId" name
="rule[id]" />
71 <input type
="submit" value
="<?php i18n('new_match');?>" name
="rule[new_match]" onclick
="newMatch() "/>
72 <input type
="submit" value
="<?php i18n('new_action');?>" name
="rule[new_action]" onclick
="newAction()" />
73 <input type
="submit" value
="<?php i18n('submit');?>" name
="rule[submit]" onclick
="this.form.submit()" />
81 <form action
="<?php echo $_SERVER['REQUEST_URI'] ?>" method
="post">
83 <input type
="submit" value
='<?php i18n('filter_valid
') ?>' name
="filter_valid" />
84 <input type
="submit" value
='<?php i18n('filter_cancel
') ?>' name
="filter_cancel" />
88 <script type
="text/javascript">