Fixed problems with search form in Policies form. Tiquet: #3246

This commit is contained in:
m-lopez-f 2016-08-17 11:59:06 +02:00
parent d855f72f59
commit f3478168a7
1 changed files with 10 additions and 7 deletions

View File

@ -29,9 +29,17 @@ require_once ('include/functions_servers.php');
$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
//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="100%" cellpadding="2" cellspacing="2" class="databox filters" >';
echo "<tr><td class='datos' style='width:20%; font-weight: bold;'>";
echo __('Search') . ' ' .
@ -41,7 +49,7 @@ echo "<td class='datos' style='width:20%'>";
html_print_submit_button (__('Filter'), 'filter', false, 'class="sub search"');
echo "</td>";
echo "<td class='datos' style='width:20%'></td>";
//echo '</form>';
echo '</form>';
// Check if there is at least one server of each type available to assign that
// kind of modules. If not, do not show server type in combo
@ -92,11 +100,6 @@ if (strstr($sec2, "enterprise/godmode/policies/policies") !== false) {
unset($modules['predictionserver']);
}
global $policy_page;
if (!isset($policy_page))
$policy_page = false;
$show_creation = false;
echo "</form>";