2010-02-12 Miguel de Dios <miguel.dedios@artica.es>

* godmode/modules/manage_network_components_form.php: clean source code and
	set correct ident.

	*godmode/modules/manage_network_components_form_network.php: remove the end
	of source code that it's unused.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2355 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-02-12 09:23:25 +00:00
parent d44c8ade33
commit 52f9ad01c1
3 changed files with 15 additions and 62 deletions

View File

@ -1,3 +1,11 @@
2010-02-12 Miguel de Dios <miguel.dedios@artica.es>
* godmode/modules/manage_network_components_form.php: clean source code and
set correct ident.
*godmode/modules/manage_network_components_form_network.php: remove the end
of source code that it's unused.
2010-02-11 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: clean source code, delete javascript debug

View File

@ -94,15 +94,18 @@ if ($id_component_type == 6) {
$categories = array (0, 1, 2);
require ("godmode/modules/manage_network_components_form_common.php");
require ("godmode/modules/manage_network_components_form_wmi.php");
} else if ($id_component_type == 4) {
}
else if ($id_component_type == 4) {
$categories = array (0, 1, 2);
require ("godmode/modules/manage_network_components_form_common.php");
require ("godmode/modules/manage_network_components_form_plugin.php");
} else if ($id_component_type == 2) {
}
else if ($id_component_type == 2) {
$categories = array (3, 4, 5);
require ("godmode/modules/manage_network_components_form_common.php");
require ("godmode/modules/manage_network_components_form_network.php");
} else {
}
else {
return;
}

View File

@ -61,62 +61,4 @@ $data[1] = print_textarea ('tcp_rcv', 2, 65, $tcp_rcv, '', true);
$table->colspan['tcp_receive'][1] = 3;
push_table_row ($data, 'tcp_receive');
return;
?>
<td class="datos2"><?php echo __('TCP port') ?></td>
<td class="datos2">
<input type="text" name="tcp_port" size="5" value="<?php echo $tcp_port ?>">
</td></tr>
<tr><td class="datos"><?php echo __('SNMP OID') ?><?php print_help_icon("snmpoid"); ?></td>
<td class="datos">
<input type="text" name="snmp_oid" size="25" value="<?php echo $snmp_oid ?>">
</td>
<td class="datos"><?php echo __('SNMP community') ?></td>
<td class="datos">
<input type="text" name="snmp_community" size="25" value="<?php echo $snmp_community ?>">
</td></tr>
<tr><td class="datos2t"><?php echo __('TCP send') ?></td>
<td class="datos2">
<textarea name="tcp_send" cols="20" rows="2"><?php echo $tcp_send ?></textarea>
</td>
<td class="datos2t"><?php echo __('TCP receive') ?></td>
<td class="datos2">
<textarea name="tcp_rcv" cols="20" rows="2"><?php echo $tcp_rcv ?></textarea>
</td></tr>
<tr><td class="datos"><?php echo __('Minimum Data') ?></td>
<td class="datos">
<input type="text" name="modulo_min" size="5" value="<?php echo $modulo_min ?>">
</td>
<td class="datos"><?php echo __('Maximum Data') ?></td>
<td class="datos">
<input type="text" name="modulo_max" size="5" value="<?php echo $modulo_max ?>">
</td></tr>
<?PHP
echo '<tr><td class="datos2t">'.__('Comments');
echo '<td class="datos2" colspan=3>';
echo '<textarea name="descripcion" cols=70 rows=2>';
echo $description;
echo "</textarea>";
echo "</td></tr>";
echo "</table>";
// Module type, hidden
print_input_hidden ('id_modulo', $id_component_type);
// Update/Add buttons
echo '<div class="action-buttons" style="width: 95%">';
if ($id) {
print_input_hidden ('update_component', 1);
print_input_hidden ('id', $id);
print_submit_button (__('Update'), 'crt', false, 'class="sub upd"');
} else {
print_input_hidden ('create_component', 1);
print_submit_button (__('Create'), 'crt', false, 'class="sub next"');
}
echo '</div>';
echo '</form>';
?>
?>