mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed the form to search modules in an agent. TICKET: #3071
This commit is contained in:
parent
655150a7ae
commit
96f77c7595
@ -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,
|
||||
|
@ -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>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user