2011-04-3 Miguel de Dios <miguel.dedios@artica.es>
* 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
This commit is contained in:
parent
416a4da4d7
commit
1a67c75304
|
@ -1,3 +1,8 @@
|
||||||
|
2011-04-3 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* 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 <sergio.martin@artica.es>
|
2011-04-01 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/graphs/functions_pchart.php
|
* include/graphs/functions_pchart.php
|
||||||
|
|
|
@ -36,7 +36,7 @@ $delete_profile = (bool) get_parameter ('delete_profile');
|
||||||
$export_profile = (bool) get_parameter ('export_profile');
|
$export_profile = (bool) get_parameter ('export_profile');
|
||||||
|
|
||||||
if ($delete_profile) { // if delete
|
if ($delete_profile) { // if delete
|
||||||
$id = (int) get_parameter_post ('delete_profile');
|
$id = (int) get_parameter ('delete_profile');
|
||||||
|
|
||||||
$result = delete_network_profile ($id);
|
$result = delete_network_profile ($id);
|
||||||
print_result_message ($result,
|
print_result_message ($result,
|
||||||
|
@ -45,7 +45,7 @@ if ($delete_profile) { // if delete
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($export_profile) {
|
if ($export_profile) {
|
||||||
$id = (int) get_parameter_post ("export_profile");
|
$id = (int) get_parameter("export_profile");
|
||||||
$profile_info = get_network_profile ($id);
|
$profile_info = get_network_profile ($id);
|
||||||
|
|
||||||
if (empty ($profile_info)) {
|
if (empty ($profile_info)) {
|
||||||
|
@ -140,13 +140,18 @@ $table->data = array ();
|
||||||
|
|
||||||
foreach ($result as $row) {
|
foreach ($result as $row) {
|
||||||
$data = array ();
|
$data = array ();
|
||||||
$data[0] = '<a href="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np='.$row["id_np"].'">'.safe_input ($row["name"]).'</a>';
|
$data[0] = '<a href="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np='.$row["id_np"].'">'. safe_output($row["name"]).'</a>';
|
||||||
$data[1] = safe_input ($row["description"]);
|
$data[1] = printTruncateText(safe_output($row["description"]), 70, true, true, true, true);
|
||||||
$data[2] = print_input_image ("delete_profile", "images/cross.png",
|
$data[2] = print_input_image ("delete_profile", "images/cross.png",
|
||||||
$row["id_np"],'', true,
|
$row["id_np"],'', true,
|
||||||
array ('onclick' => 'if (!confirm(\''.__('Are you sure?').'\')) return false;'));
|
array ('onclick' => 'if (!confirm(\''.__('Are you sure?').'\')) return false;'));
|
||||||
$data[2] .= print_input_image ("export_profile", "images/lightning_go.png",
|
$data[2] .= print_input_image ("export_profile", "images/lightning_go.png",
|
||||||
$row["id_np"], '', true);
|
$row["id_np"], '', true);
|
||||||
|
$data[2] = '<a href="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates' .
|
||||||
|
'&delete_profile=1&delete_profile=' . $row['id_np'] . '" ' .
|
||||||
|
'onclick="if (!confirm(\''.__('Are you sure?').'\')) return false;">' . print_image("images/cross.png", true) . '</a>';
|
||||||
|
$data[2] .= '<a href="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates' .
|
||||||
|
'&export_profile=' . $row['id_np'] . '">' . print_image("images/lightning_go.png", true) . '</a>';
|
||||||
|
|
||||||
array_push ($table->data, $data);
|
array_push ($table->data, $data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue