From 1a67c75304c6edd7129f56d4b6085c4fa9b4135c Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 4 Apr 2011 10:43:25 +0000 Subject: [PATCH] 2011-04-3 Miguel de Dios * pandora_console/godmode/modules/manage_network_templates.php: fixed the output of description and name, and fixed the buttons to delete and export. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4164 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../godmode/modules/manage_network_templates.php | 13 +++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0ca2d32514..c1545b3edb 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-04-3 Miguel de Dios + + * pandora_console/godmode/modules/manage_network_templates.php: fixed the + output of description and name, and fixed the buttons to delete and export. + 2011-04-01 Sergio Martin * include/graphs/functions_pchart.php diff --git a/pandora_console/godmode/modules/manage_network_templates.php b/pandora_console/godmode/modules/manage_network_templates.php index 24ee504d81..6bf422c0d4 100644 --- a/pandora_console/godmode/modules/manage_network_templates.php +++ b/pandora_console/godmode/modules/manage_network_templates.php @@ -36,7 +36,7 @@ $delete_profile = (bool) get_parameter ('delete_profile'); $export_profile = (bool) get_parameter ('export_profile'); if ($delete_profile) { // if delete - $id = (int) get_parameter_post ('delete_profile'); + $id = (int) get_parameter ('delete_profile'); $result = delete_network_profile ($id); print_result_message ($result, @@ -45,7 +45,7 @@ if ($delete_profile) { // if delete } if ($export_profile) { - $id = (int) get_parameter_post ("export_profile"); + $id = (int) get_parameter("export_profile"); $profile_info = get_network_profile ($id); if (empty ($profile_info)) { @@ -140,13 +140,18 @@ $table->data = array (); foreach ($result as $row) { $data = array (); - $data[0] = ''.safe_input ($row["name"]).''; - $data[1] = safe_input ($row["description"]); + $data[0] = ''. safe_output($row["name"]).''; + $data[1] = printTruncateText(safe_output($row["description"]), 70, true, true, true, true); $data[2] = print_input_image ("delete_profile", "images/cross.png", $row["id_np"],'', true, array ('onclick' => 'if (!confirm(\''.__('Are you sure?').'\')) return false;')); $data[2] .= print_input_image ("export_profile", "images/lightning_go.png", $row["id_np"], '', true); + $data[2] = '' . print_image("images/cross.png", true) . ''; + $data[2] .= '' . print_image("images/lightning_go.png", true) . ''; array_push ($table->data, $data); }