2011-07-01 12:37:47 +02:00
|
|
|
<!-- BEGIN header -->
|
|
|
|
<script language="JavaScript1.2">
|
|
|
|
|
|
|
|
function submitRuleList(action)
|
|
|
|
{
|
|
|
|
document.rulelist.rulelist_action.value = action;
|
2013-05-23 17:57:27 +02:00
|
|
|
$j( "#sortable input[type=checkbox]").each(function(){
|
|
|
|
this.value = $j(this).parent().parent().index();
|
|
|
|
});
|
2011-07-01 12:37:47 +02:00
|
|
|
document.rulelist.submit();
|
|
|
|
}
|
2013-05-23 18:05:39 +02:00
|
|
|
//egw.LAB.wait(function() {
|
2013-05-23 17:57:27 +02:00
|
|
|
$j(document).ready(function() {
|
|
|
|
$j( "#sortable tbody" ).sortable({
|
|
|
|
start: function(e, ui) {
|
|
|
|
ui.item.data('start-pos', ui.item.index());
|
|
|
|
},
|
|
|
|
update: function(e, ui) {
|
|
|
|
var request = new egw_json_request('felamimail.uisieve.ajax_moveRule', [ui.item.data('start-pos'), ui.item.index()]);
|
|
|
|
request.sendRequest(true);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
$j( "#sortable tbody" ).disableSelection();
|
|
|
|
$j( "#sortable tbody a" ).on("click", function(e){
|
|
|
|
fm_sieve_displayRuleEditWindow('{url_edit_rule}&ruleID='+$j(this).parent().parent().index());
|
|
|
|
return false;
|
|
|
|
});
|
2013-05-23 18:05:39 +02:00
|
|
|
});
|
|
|
|
// });
|
2011-07-01 12:37:47 +02:00
|
|
|
|
|
|
|
var refreshURL='{refreshURL}';
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<center>
|
2013-05-10 12:22:51 +02:00
|
|
|
<div style="color:red;">{message}</div>
|
2011-07-01 12:37:47 +02:00
|
|
|
<table border='0' width='100%'>
|
|
|
|
<tr class="text_small">
|
|
|
|
<td>
|
|
|
|
{lang_rule}: <a href="javascript:submitRuleList('enable');">{lang_enable}</a>
|
|
|
|
<a href="javascript:submitRuleList('disable');">{lang_disable}</a>
|
|
|
|
<a href="javascript:submitRuleList('delete');">{lang_delete}</a>
|
|
|
|
</td>
|
|
|
|
<td style='text-align : right;'>
|
2013-05-23 17:57:27 +02:00
|
|
|
<a href="#" onclick="fm_sieve_displayRuleEditWindow('{url_edit_rule}'); return false;">{lang_add_rule}</a>
|
2011-07-01 12:37:47 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<form name='rulelist' method='post' action='{action_rulelist}'>
|
|
|
|
<input type='hidden' name='rulelist_action' value='unset'>
|
2013-05-23 17:57:27 +02:00
|
|
|
<table width="100%" border="0" cellpadding="2" cellspacing="1" id="sortable">
|
2011-07-01 12:37:47 +02:00
|
|
|
<thead class="th">
|
|
|
|
<tr>
|
|
|
|
<th width="3%"> </th>
|
|
|
|
<th width="10%">Status</th>
|
|
|
|
<th width="80%">{lang_rule}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2013-05-23 17:57:27 +02:00
|
|
|
{filterrows}
|
2011-07-01 12:37:47 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</center>
|
|
|
|
<!-- END header -->
|
|
|
|
|
|
|
|
<!-- BEGIN filterrow -->
|
2013-05-23 13:51:06 +02:00
|
|
|
<tr class="{ruleCSS}">
|
2011-07-01 12:37:47 +02:00
|
|
|
<td style="text-align: center;">
|
2013-05-23 17:57:27 +02:00
|
|
|
<input type="checkbox" name="ruleID[]" value="x">
|
2011-07-01 12:37:47 +02:00
|
|
|
</td>
|
|
|
|
<td style="text-align: center;">
|
|
|
|
{filter_status}
|
|
|
|
</td>
|
|
|
|
<td>
|
2013-05-23 17:57:27 +02:00
|
|
|
<a class="{ruleCSS}" href="#" onmouseover="window.status='Edit This Rule'; return true;" onmouseout="window.status='';">{filter_text}</a>
|
2011-07-01 12:37:47 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2013-05-10 12:22:51 +02:00
|
|
|
<!-- END filterrow -->
|