1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-28 16:50:07 +02:00

More admin GUI refinements

This commit is contained in:
Cameron
2012-11-26 15:43:42 -08:00
parent d892fb0a85
commit 5e84eaf34d
12 changed files with 142 additions and 137 deletions

View File

@@ -194,7 +194,7 @@ function poll_list()
if ($poll_total = $sql->db_Select("polls", "*", "poll_type=1"))
{
$text .= "<table class='adminlist' cellpadding='0' cellspacing='0'>";
$text .= "<table class='table adminlist'>";
$text .= $frm->colGroup($fields,$fieldpref).
$frm->thead($fields,$fieldpref);
$text .= "<tbody>";
@@ -237,10 +237,10 @@ function poll_list()
function admin_config_adminmenu()
{
$action = varset($_GET['mode']) ? $_GET['mode'] : "list";
$var['list']['text'] = POLLAN_1;
$var['list']['text'] = LAN_EXISTING;
$var['list']['link'] = e_SELF;
$var['list']['perm'] = "P";
$var['create']['text'] = POLLAN_2 ;
$var['create']['text'] = LAN_CREATE ;
$var['create']['link'] = e_SELF."?mode=create";
$var['create']['perm'] = "P";
/* $var['import']['text'] = GSLAN_23;

View File

@@ -491,6 +491,8 @@ class poll
function renderPollForm($mode='admin')
{
$tp = e107::getParser();
$frm = e107::getForm();
//TODO Hardcoded FORUM code needs to be moved somewhere.
if ($mode == 'forum')
{
@@ -550,8 +552,8 @@ class poll
$text = "<div style='text-align:center'>
<form method='post' action='{$formgo}'>
<table class='adminform' cellpadding='0' cellspacing='0'>
<colgroup span='2'>
<table class='table adminform'>
<colgroup>
<col class='col-label' />
<col class='col-control' />
</colgroup>
@@ -631,14 +633,20 @@ class poll
}
else
{
$text .= "<input class='button' type='submit' name='submit' value='".POLLAN_23."' /> ";
$text .= $frm->admin_button('submit','no-value','submit',POLLAN_23);
// $text .= "<input class='button' type='submit' name='submit' value='".POLLAN_23."' /> ";
}
} else {
$text .= "<input class='button' type='submit' name='preview' value='".POLLAN_24."' /> ";
}
else
{
$text .= $frm->admin_button('preview','no-value','preview',POLLAN_24);
// $text .= "<input class='button' type='submit' name='preview' value='".POLLAN_24."' /> ";
}
if (defset('POLLID')) {
$text .= "<input class='button' type='submit' name='reset' value='".POLLAN_25."' /> ";
if (defset('POLLID'))
{
$text .= $frm->admin_button('reset','no-value','reset',POLLAN_25);
// $text .= "<input class='button' type='submit' name='reset' value='".POLLAN_25."' /> ";
}
$text .= "</div>