"/> </head> <body> <?php if (POST('insert') && empty($data['data']['ri_id'])) { if ($data['status'] == 'error') { $txt_error = "<div>" . _('We Found the following errors') . ":</div>\n\t\t\t\t\t <div style='padding: 2px 10px 5px 10px;'>" . implode('<br/>', $validation_errors) . "</div>"; $config_nt = array('content' => $txt_error, 'options' => array('type' => 'nf_error', 'cancel_button' => FALSE), 'style' => 'width: 80%; margin: 20px auto; text-align: left;'); $nt = new Notification('nt_1', $config_nt); $nt->show(); exit; } $db = new ossim_db(); $conn = $db->connect(); Remote_interface::update($conn, $ri_id, $ip, $name, $status); $db->close(); ?> <script type='text/javascript'> document.location.href="index.php?msg=saved"; </script> <?php } else { ?> <script type='text/javascript'> if (parent.is_lightbox_loaded(window.name)) { <?php $config_nt = array('content' => _("Sorry, operation was not completed due to an unknown error"), 'options' => array('type' => 'nf_error', 'cancel_button' => FALSE), 'style' => 'width: 80%; margin: 20px auto; text-align: left;'); $nt = new Notification('nt_1', $config_nt); $nt->show();