'; ?>
';
} else {
nb_createinput('multitext',array(
'id' => 'nb_content',
'name' => 'nb_content',
'label' => __('Content','attention-bar'),
'sel' => $contentvalue,
'rows' => 3,
'cols' => 80,
'mand' => true
));
}
echo '
';
// Get all notification types
$table_notifications = $wpdb->prefix . "nb_nottypes";
$nottypes = $wpdb->get_results( "SELECT id,name,bgcolor,fontcolor FROM " . $table_notifications . " ORDER BY name");
echo '
Bar type settings
';
nb_createinput('select',array(
'id' => 'nb_nottype',
'name' => 'nb_nottype',
'label' => __('Notification type','attention-bar'),
'desc' => __('If no notification type is set, the default settings will be used as set in the settings panel','attention-bar'),
'sel' => $nottypevalue,
'values' => $nottypes
));
echo '
';
nb_createinput('color',array(
'id' => 'nb_bgcolor',
'name' => 'nb_bgcolor',
'label' => __('Bar color','attention-bar'),
'desc' => __('Background color of the Attention bar on a per message base. This overrules the color from the chosen notification type','attention-bar'),
'sel' => $bgcolorvalue,
'size' => 8
));
echo '
';
nb_createinput('color',array(
'id' => 'nb_fontcolor',
'name' => 'nb_fontcolor',
'label' => __('Font color','attention-bar'),
'desc' => __('Font color of the Attention bar on a pre message base. This overrules the color from the chosen notification type','attention-bar'),
'sel' => $fontcolorvalue,
'size' => 8
));
echo '
';
nb_createinput('radio',array(
'id' => 'nb_status',
'name' => 'nb_status',
'label' => __('Status','attention-bar'),
'values' => array('1','0'),
'labels' => array( __('Enabled','attention-bar'),__('Disabled','attention-bar')),
'sel' => $notstatusvalue,
'after' => '
'
));
echo '