mirror of
https://github.com/e107inc/e107.git
synced 2025-09-01 10:23:53 +02:00
And more notice removals.
Also some plugin GUI clean-up (rss, tagwords, trackback)
This commit is contained in:
@@ -26,67 +26,67 @@ require_once (e_HANDLER.'userclass_class.php');
|
||||
include_lan(e_PLUGIN.'newforumposts_main/languages/'.e_LANGUAGE.'.php');
|
||||
require_once (e_ADMIN.'auth.php');
|
||||
|
||||
$frm = e107::getForm();
|
||||
|
||||
if(isset($_POST['updatesettings']))
|
||||
{
|
||||
$pref['nfp_display'] = $_POST['nfp_display'];
|
||||
$pref['nfp_caption'] = $_POST['nfp_caption'];
|
||||
$pref['nfp_amount'] = $_POST['nfp_amount'];
|
||||
$pref['nfp_layer'] = $_POST['nfp_layer'];
|
||||
$pref['nfp_posts'] = $_POST['nfp_posts'];
|
||||
$pref['nfp_layer'] = vartrue($_POST['nfp_layer']);
|
||||
$pref['nfp_posts'] = vartrue($_POST['nfp_posts']);
|
||||
$pref['nfp_layer_height'] = ($_POST['nfp_layer_height'] ? $_POST['nfp_layer_height'] : 200);
|
||||
save_prefs();
|
||||
$message = "".NFPM_L14."";
|
||||
$message = "".NFPM_L13."";
|
||||
}
|
||||
|
||||
if($message)
|
||||
if(vartrue($message))
|
||||
{
|
||||
$ns->tablerender("", "<div style='text-align:center'><b>$message</b></div>");
|
||||
}
|
||||
|
||||
|
||||
$text = "<div style='text-align:center'>
|
||||
$text = "
|
||||
<form method='post' action='".e_SELF."?".e_QUERY."' id='menu_conf_form'>
|
||||
<table style='width:85%' class='fborder'>
|
||||
<table class='table adminform'>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".NFPM_L4."</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td>".NFPM_L4."</td>
|
||||
<td>
|
||||
<select class='tbox' name='nfp_display'>".($pref['nfp_display'] == "0" ? "<option value='0' selected='selected'>".NFPM_L5."</option>" : "<option value='0'>".NFPM_L5."</option>").($pref['nfp_display'] == "1" ? "<option value='1' selected='selected'>".NFPM_L6."</option>" : "<option value='1'>".NFPM_L6."</option>").($pref['nfp_display'] == "2" ? "<option value='2' selected='selected'>".NFPM_L7."</option>" : "<option value='2'>".NFPM_L7."</option>")."</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".NFPM_L8.": </td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td>".NFPM_L8.": </td>
|
||||
<td>
|
||||
<input class='tbox' type='text' name='nfp_caption' size='20' value='".$pref['nfp_caption']."' maxlength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".NFPM_L9.": </td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td>".NFPM_L9.": </td>
|
||||
<td>
|
||||
<input class='tbox' type='text' name='nfp_amount' size='6' value='".$pref['nfp_amount']."' maxlength='3' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:40%'>".NFPM_L15." </td>
|
||||
<td class='forumheader3' style='width:60%'>".($pref['nfp_posts'] ? "<input type='checkbox' name='nfp_posts' value='1' checked='checked' />" : "<input type='checkbox' name='nfp_posts' value='1' />")."
|
||||
<td>".NFPM_L14."</td>
|
||||
<td>".(vartrue($pref['nfp_posts']) ? "<input type='checkbox' name='nfp_posts' value='1' checked='checked' />" : "<input type='checkbox' name='nfp_posts' value='1' />")."<span class='field-help'>".NFPM_L15."</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:40%'>".NFPM_L10.": </td>
|
||||
<td class='forumheader3' style='width:60%'>".($pref['nfp_layer'] ? "<input type='checkbox' name='nfp_layer' value='1' checked='checked' />" : "<input type='checkbox' name='nfp_layer' value='1' />")." ".NFPM_L11.": <input class='tbox' type='text' name='nfp_layer_height' size='8' value='".$pref['nfp_layer_height']."' maxlength='3' />
|
||||
<td>".NFPM_L10.": </td>
|
||||
<td>".(vartrue($pref['nfp_layer']) ? "<input type='checkbox' name='nfp_layer' value='1' checked='checked' />" : "<input type='checkbox' name='nfp_layer' value='1' />")." ".NFPM_L11.": <input class='tbox' type='text' name='nfp_layer_height' size='8' value='".vartrue($pref['nfp_layer_height'])."' maxlength='3' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' class='forumheader' style='text-align:center'><input class='button' type='submit' name='updatesettings' value='".NFPM_L13."' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
<div class='buttons-bar center'>
|
||||
".$frm->admin_button('updatesettings', LAN_UPDATE, 'update')."
|
||||
</div>
|
||||
</form> ";
|
||||
$ns->tablerender(NFPM_L12, $text);
|
||||
|
||||
require_once (e_ADMIN."footer.php");
|
||||
|
Reference in New Issue
Block a user