<script type="text/javascript" src="../js/jquery.min.js"></script> <style type="text/css"> .tag_cloud { padding: 3px; text-decoration: none; } .tag_cloud:link { color: #17457C; } .tag_cloud:visited { color: #17457C; } .tag_cloud:hover { color: #ffffff; background: #17457C; } .tag_cloud:active { color: #ffffff; background: #ACFC65; } a { font-size:10px; } </style> </head> <body> <div id="loading" style="position:absolute;top:5px;left:5px"> <?php if ($perform == "insert" && is_array(POST("insert"))) { $message = Backup::Insert(POST("insert"), $filter_by, $nomerge); echo $message == 2 ? _("Insert action is running, please wait a few seconds.") : $message; } elseif ($perform == "delete" && is_array(POST("delete"))) { $message = Backup::Delete(POST("delete")); echo $message == 2 ? _("Remove action is running, please wait a few seconds.") : $message; } ?> <table class="noborder" style="background-color:white"> <tr><td class="nobborder" id="restore_msg"><?php if ($run > 0 || $message == 2) { echo gettext("Current task in progress"); ?> <img src="../pixmaps/loading3.gif" border="0"> <?php } ?> </td></tr>
ossim_valid($filter_by, OSS_NULLABLE, OSS_DIGIT, OSS_USER, 'illegal:' . _("filter_by")); foreach ($dates_list as $_date) { ossim_valid($_date, OSS_DIGIT, 'illegal:' . _("Date")); } if (ossim_error()) { $response['status'] = 'error'; $response['message'] = ossim_get_error(); } else { switch ($action) { // Restore button case 'insert': if (Token::verify('tk_insert_events', GET('token')) == FALSE) { $response['status'] = 'error'; $response['message'] = Token::create_error_message(); } elseif (count($dates_list) > 0) { $launch_status = Backup::Insert($dates_list, $filter_by, $nomerge); if ($launch_status > 0) { $response['status'] = 'success'; $response['message'] = _('The backup process is inserting events...'); } else { $response['status'] = 'error'; $response['message'] = _('Sorry, operation was not completed due to an error when restoring events'); } } else { $response['status'] = 'error'; $response['message'] = _('Please, select the dates you want to restore'); } break; // Purge button // Purge button case 'delete':
.tag_cloud:active { color: #ffffff; background: #ACFC65; } a { font-size:10px; } </style> <script language="javascript"> </script> </head> <body> <div id="loading" style="position:absolute;top:0;left:30%"> <table class="noborder" style="background-color:white"> <?php if ($perform == "insert" && is_array(POST("insert"))) { $insert = POST("insert"); $bid = rand(); $message = Backup::Insert($insert, $filter_by, $nomerge, $bid); } elseif ($perform == "delete") { $delete = POST("delete"); $bid = rand(); Backup::Delete($delete, $bid); $message = _("Remove action is running, please wait a few seconds..."); } // Get STATUS for all current backups. Void if none is running Backup::print_backup_process(); ?> </table> </div> </body> </html>