mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-22 17:39:33 +02:00
Fixed problems with search form in Policies form. Tiquet: #3246
This commit is contained in:
parent
c2bb42b681
commit
68f5c5a3ba
@ -29,9 +29,17 @@ require_once ('include/functions_servers.php');
|
|||||||
|
|
||||||
$search_string = io_safe_output(urldecode(trim(get_parameter ("search_string", ""))));
|
$search_string = io_safe_output(urldecode(trim(get_parameter ("search_string", ""))));
|
||||||
|
|
||||||
|
global $policy_page;
|
||||||
|
|
||||||
|
if (!isset($policy_page))
|
||||||
|
$policy_page = false;
|
||||||
|
|
||||||
// Search string filter form
|
// Search string filter form
|
||||||
//echo '<form id="create_module_type" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=module&id_agente='.$id_agente.'">';
|
//echo '<form id="create_module_type" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=module&id_agente='.$id_agente.'">';
|
||||||
echo '<form id="create_module_type" method="post" action="'.$url.'">';
|
if (($policy_page) || (isset($agent)))
|
||||||
|
echo '<form id="" method="post" action="">';
|
||||||
|
else
|
||||||
|
echo '<form id="create_module_type" method="post" action="'.$url.'">';
|
||||||
echo '<table width="98%" cellpadding="2" cellspacing="2" class="databox" >';
|
echo '<table width="98%" cellpadding="2" cellspacing="2" class="databox" >';
|
||||||
echo "<tr><td class='datos' style='width:20%'>";
|
echo "<tr><td class='datos' style='width:20%'>";
|
||||||
echo __('Search') . ' ' .
|
echo __('Search') . ' ' .
|
||||||
@ -92,11 +100,6 @@ if (strstr($sec2, "enterprise/godmode/policies/policies") !== false) {
|
|||||||
unset($modules['predictionserver']);
|
unset($modules['predictionserver']);
|
||||||
}
|
}
|
||||||
|
|
||||||
global $policy_page;
|
|
||||||
|
|
||||||
if (!isset($policy_page))
|
|
||||||
$policy_page = false;
|
|
||||||
|
|
||||||
$show_creation = false;
|
$show_creation = false;
|
||||||
|
|
||||||
if (($policy_page) || (isset($agent))) {
|
if (($policy_page) || (isset($agent))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user