2010-04-14 Sergio Martin <sergio.martin@artica.es>
* godmode/reporting/map_builder.php: Added Delete visual console for Bug 2986523 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2559 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
77b7754b99
commit
4e8d2677e1
|
@ -1,3 +1,8 @@
|
|||
2010-04-14 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/reporting/map_builder.php: Added Delete visual console
|
||||
for Bug 2986523
|
||||
|
||||
2010-04-14 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* ChangeLog: Updated the Changlog with the last forget commit
|
||||
|
|
|
@ -19,6 +19,19 @@ print_page_header (__('Visual console builder'), "", false, "map_builder", true)
|
|||
|
||||
$id_layout = (int) get_parameter ('id_layout');
|
||||
$copy_layout = (bool) get_parameter ('copy_layout');
|
||||
$delete_layout = (bool) get_parameter ('delete_layout');
|
||||
|
||||
if ($delete_layout) {
|
||||
process_sql_delete ('tlayout_data', array ('id_layout' => $id_layout));
|
||||
$result = process_sql_delete ('tlayout', array ('id' => $id_layout));
|
||||
if ($result) {
|
||||
echo '<h3 class="suc">'.__('Successfully deleted').'</h3>';
|
||||
clean_cache();
|
||||
} else {
|
||||
echo '<h3 class="error">'.__('Not deleted. Error deleting data').'</h3>';
|
||||
}
|
||||
$id_layout = 0;
|
||||
}
|
||||
|
||||
if ($copy_layout) {
|
||||
// Number of inserts
|
||||
|
|
Loading…
Reference in New Issue