' . __('Notification types','attention-bar');
if (isset($_REQUEST['edit'])) {
echo ' ' . __('New entry','attention-bar') . '
';
} else {
echo '';
}
$msg = '';
if ( !empty($_POST) && check_admin_referer('nb_submit','nb_nonce') ){
if($_POST['notbar_hidden_post'] == 'Y') {
if($_POST['notbar_hidden_edit'] == 'Y') {
// entry has been edited, only update the existing entry
nb_edit_nottype($_POST['nb_notid']);
if ( function_exists('w3tc_pgcache_flush') ) {
w3tc_pgcache_flush();
$msg .= __(' & W3 Total Cache Page Cache flushed');
}
echo '' . __('Updated:','attention-bar') . ' ' . $_POST['nb_notname'] . $msg . '
';
} else {
nb_insert_nottype();
if ( function_exists('w3tc_pgcache_flush') ) {
w3tc_pgcache_flush();
$msg .= __(' & W3 Total Cache Page Cache flushed');
}
echo '' . __('Saved:','attention-bar') . ' ' . $_POST['nb_notname'] . $msg . '
';
}
}
}
if (isset($_REQUEST['delete'])) {
nb_delete_nottype($_REQUEST['id']);
if ( function_exists('w3tc_pgcache_flush') ) {
w3tc_pgcache_flush();
$msg .= __(' & W3 Total Cache Page Cache flushed');
}
echo '' . __('Deleted:','attention-bar') .' ' . $_REQUEST['id'] . $msg . '
';
}
global $wpdb;
$table_name = $wpdb->prefix . "nb_nottypes";
$myrows = $wpdb->get_results( "SELECT * FROM " . $table_name . ' ORDER BY id' );
echo '';
echo nb_get_info_box();
}
?>