Fixed the form to search modules in an agent. TICKET: #3071

This commit is contained in:
mdtrooper 2015-12-30 11:16:11 +01:00
parent 655150a7ae
commit 96f77c7595
3 changed files with 18 additions and 12 deletions

View File

@ -190,12 +190,16 @@ if ($create_agent) {
$id_agente = db_process_sql_insert ('tagente',
array ('nombre' => $nombre_agente,
'direccion' => $direccion_agente,
'id_grupo' => $grupo, 'intervalo' => $intervalo,
'comentarios' => $comentarios, 'modo' => $modo,
'id_os' => $id_os, 'disabled' => $disabled,
'id_grupo' => $grupo,
'intervalo' => $intervalo,
'comentarios' => $comentarios,
'modo' => $modo,
'id_os' => $id_os,
'disabled' => $disabled,
'cascade_protection' => $cascade_protection,
'server_name' => $server_name,
'id_parent' => $id_parent, 'custom_id' => $custom_id,
'id_parent' => $id_parent,
'custom_id' => $custom_id,
'icon_path' => $icon_path,
'update_gis_data' => $update_gis_data,
'url_address' => $url_description,

View File

@ -99,6 +99,8 @@ if (!isset($policy_page))
$show_creation = false;
echo "</form>";
if (($policy_page) || (isset($agent))) {
if ($policy_page) {
$show_creation = true;
@ -110,7 +112,7 @@ if (($policy_page) || (isset($agent))) {
if ($show_creation) {
// Create module/type combo
//echo '<form id="create_module_type" method="post" action="'.$url.'">';
echo '<form id="create_module_type" method="post" action="'.$url.'">';
echo '<td class="datos" style="font-weight: bold;">';
echo __("Type");
html_print_select ($modules, 'moduletype', '', '', '', '', false, false, false, '', false, 'max-width:300px;' );
@ -120,12 +122,12 @@ if (($policy_page) || (isset($agent))) {
echo '<input align="right" name="updbutton" type="submit" class="sub next" value="'.__('Create').'">';
echo '</td>';
echo '</tr>';
//echo "</form>";
echo "</form>";
}
}
echo "</table>";
echo "</form>";
echo '<div style="text-align: right; width: 100%;padding-top:10px;padding-bottom:10px">';
echo "<strong>";