mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
2011-09-02 Junichi Satoh <junichi@rworks.jp>
* godmode/massive/massive_add_action_alerts.php, godmode/massive/massive_delete_action_alerts.php: Added group recursion feature, it allows to search agents in child groups. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4888 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d1e0030d3f
commit
473590d343
@ -1,3 +1,9 @@
|
|||||||
|
2011-09-02 Junichi Satoh <junichi@rworks.jp>
|
||||||
|
|
||||||
|
* godmode/massive/massive_add_action_alerts.php,
|
||||||
|
godmode/massive/massive_delete_action_alerts.php: Added group recursion
|
||||||
|
feature, it allows to search agents in child groups.
|
||||||
|
|
||||||
2011-09-01 Javier Lanz <javier.lanz@artica.es>
|
2011-09-01 Javier Lanz <javier.lanz@artica.es>
|
||||||
|
|
||||||
* include/functions_filemanager.php: Improved detecting mime types
|
* include/functions_filemanager.php: Improved detecting mime types
|
||||||
|
@ -62,6 +62,7 @@ $id_group = (int) get_parameter ('id_group');
|
|||||||
$id_agents = get_parameter ('id_agents');
|
$id_agents = get_parameter ('id_agents');
|
||||||
$id_alert_templates = (array) get_parameter ('id_alert_templates');
|
$id_alert_templates = (array) get_parameter ('id_alert_templates');
|
||||||
$id_alert_compounds = (array) get_parameter ('id_alert_compounds');
|
$id_alert_compounds = (array) get_parameter ('id_alert_compounds');
|
||||||
|
$recursion = get_parameter ('recursion');
|
||||||
|
|
||||||
$add = (bool) get_parameter_post ('add');
|
$add = (bool) get_parameter_post ('add');
|
||||||
|
|
||||||
@ -141,12 +142,16 @@ $table->style[0] = 'font-weight: bold; vertical-align:top';
|
|||||||
$table->style[2] = 'font-weight: bold';
|
$table->style[2] = 'font-weight: bold';
|
||||||
$table->size = array ();
|
$table->size = array ();
|
||||||
$table->size[0] = '15%';
|
$table->size[0] = '15%';
|
||||||
$table->size[1] = '85%';
|
$table->size[1] = '35%';
|
||||||
|
$table->size[2] = '15%';
|
||||||
|
$table->size[3] = '35%';
|
||||||
|
|
||||||
$table->data = array ();
|
$table->data = array ();
|
||||||
$table->data[0][0] = __('Group');
|
$table->data[0][0] = __('Group');
|
||||||
$table->data[0][1] = html_print_select_groups(false, "AR", true, 'id_group', $id_group,
|
$table->data[0][1] = html_print_select_groups(false, "AR", true, 'id_group', $id_group,
|
||||||
false, '', '', true);
|
false, '', '', true);
|
||||||
|
$table->data[0][2] = __('Group recursion');
|
||||||
|
$table->data[0][3] = html_print_checkbox ("recursion", 1, $recursion, true, false);
|
||||||
|
|
||||||
$table->data[1][0] = __('Agents');
|
$table->data[1][0] = __('Agents');
|
||||||
$table->data[1][0] .= '<span id="agent_loading" class="invisible">';
|
$table->data[1][0] .= '<span id="agent_loading" class="invisible">';
|
||||||
@ -217,8 +222,15 @@ ui_require_jquery_file ('pandora.controls');
|
|||||||
$(document).ready (function () {
|
$(document).ready (function () {
|
||||||
update_alerts();
|
update_alerts();
|
||||||
|
|
||||||
|
var recursion;
|
||||||
|
$("#checkbox-recursion").click(function (){
|
||||||
|
recursion = this.checked ? 1 : 0;
|
||||||
|
$("#id_group").trigger("change");
|
||||||
|
});
|
||||||
|
|
||||||
$("#id_group").pandoraSelectGroupAgent ({
|
$("#id_group").pandoraSelectGroupAgent ({
|
||||||
agentSelect: "select#id_agents",
|
agentSelect: "select#id_agents",
|
||||||
|
recursion: function() {return recursion},
|
||||||
callbackPost: function () {
|
callbackPost: function () {
|
||||||
var $select_template = $("#id_alert_templates").disable ();
|
var $select_template = $("#id_alert_templates").disable ();
|
||||||
var $select_compound = $("#id_alert_compounds").disable ();
|
var $select_compound = $("#id_alert_compounds").disable ();
|
||||||
|
@ -61,6 +61,7 @@ $id_group = (int) get_parameter ('id_group');
|
|||||||
$id_agents = get_parameter ('id_agents');
|
$id_agents = get_parameter ('id_agents');
|
||||||
$id_alert_templates = (array) get_parameter ('id_alert_templates');
|
$id_alert_templates = (array) get_parameter ('id_alert_templates');
|
||||||
$id_alert_compounds = (array) get_parameter ('id_alert_compounds');
|
$id_alert_compounds = (array) get_parameter ('id_alert_compounds');
|
||||||
|
$recursion = get_parameter ('recursion');
|
||||||
|
|
||||||
$delete = (bool) get_parameter_post ('delete');
|
$delete = (bool) get_parameter_post ('delete');
|
||||||
|
|
||||||
@ -150,12 +151,16 @@ $table->style[0] = 'font-weight: bold; vertical-align:top';
|
|||||||
$table->style[2] = 'font-weight: bold';
|
$table->style[2] = 'font-weight: bold';
|
||||||
$table->size = array ();
|
$table->size = array ();
|
||||||
$table->size[0] = '15%';
|
$table->size[0] = '15%';
|
||||||
$table->size[1] = '85%';
|
$table->size[1] = '35%';
|
||||||
|
$table->size[2] = '15%';
|
||||||
|
$table->size[3] = '35%';
|
||||||
|
|
||||||
$table->data = array ();
|
$table->data = array ();
|
||||||
$table->data[0][0] = __('Group');
|
$table->data[0][0] = __('Group');
|
||||||
$table->data[0][1] = html_print_select_groups(false, "AR", true, 'id_group', $id_group,
|
$table->data[0][1] = html_print_select_groups(false, "AR", true, 'id_group', $id_group,
|
||||||
false, '', '', true);
|
false, '', '', true);
|
||||||
|
$table->data[0][2] = __('Group recursion');
|
||||||
|
$table->data[0][3] = html_print_checkbox ("recursion", 1, $recursion, true, false);
|
||||||
|
|
||||||
$table->data[1][0] = __('Agents');
|
$table->data[1][0] = __('Agents');
|
||||||
$table->data[1][0] .= '<span id="agent_loading" class="invisible">';
|
$table->data[1][0] .= '<span id="agent_loading" class="invisible">';
|
||||||
@ -216,8 +221,15 @@ ui_require_jquery_file ('pandora.controls');
|
|||||||
$(document).ready (function () {
|
$(document).ready (function () {
|
||||||
update_alerts();
|
update_alerts();
|
||||||
|
|
||||||
|
var recursion;
|
||||||
|
$("#checkbox-recursion").click(function (){
|
||||||
|
recursion = this.checked ? 1 : 0;
|
||||||
|
$("#id_group").trigger("change");
|
||||||
|
});
|
||||||
|
|
||||||
$("#id_group").pandoraSelectGroupAgent ({
|
$("#id_group").pandoraSelectGroupAgent ({
|
||||||
agentSelect: "select#id_agents",
|
agentSelect: "select#id_agents",
|
||||||
|
recursion: function() {return recursion},
|
||||||
callbackPost: function () {
|
callbackPost: function () {
|
||||||
var $select_template = $("#id_alert_templates").disable ();
|
var $select_template = $("#id_alert_templates").disable ();
|
||||||
var $select_compound = $("#id_alert_compounds").disable ();
|
var $select_compound = $("#id_alert_compounds").disable ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user