mirror of
https://github.com/e107inc/e107.git
synced 2025-03-17 19:09:45 +01:00
Admin area GUI tweaks
This commit is contained in:
parent
618722f65d
commit
ec8a7195d5
@ -733,7 +733,13 @@ if (!class_exists('e107table', false))
|
||||
public $eMenuArea;
|
||||
public $eMenuTotal = array();
|
||||
public $eSetStyle;
|
||||
|
||||
|
||||
/**
|
||||
* @param $caption
|
||||
* @param $text
|
||||
* @param $mode
|
||||
* @param $return boolean : return the html instead of echo it.
|
||||
*/
|
||||
function tablerender($caption, $text, $mode = 'default', $return = false)
|
||||
{
|
||||
|
||||
|
@ -210,7 +210,7 @@ function render_links($link, $title, $description, $perms, $icon = FALSE, $mode
|
||||
elseif($mode == "div")
|
||||
{
|
||||
$text .= "<div class='core-mainpanel-block'><a class='core-mainpanel-link-icon' href='".$link."' title='{$description}'>".$icon."</a><br />
|
||||
<a class='core-mainpanel-link-text' href='".$link."' title='{$description}'>".$tp->toHTML($title,FALSE,"defs, emotes_off")."</a>
|
||||
<a class='core-mainpanel-link-text e-tip' href='".$link."' title='{$description}'>".$tp->toHTML($title,FALSE,"defs, emotes_off")."</a>
|
||||
</div>";
|
||||
}
|
||||
$td++;
|
||||
|
@ -121,7 +121,7 @@ $text = "
|
||||
<form method='post' action='".e_SELF."'>
|
||||
<fieldset id='core-cache-settings'>
|
||||
<legend class='e-hideme'>".CACLAN_3."</legend>
|
||||
<table class='adminlist'>
|
||||
<table class='table adminlist'>
|
||||
<colgroup>
|
||||
<col style='width:60%' />
|
||||
<col style='width:20%' />
|
||||
@ -178,7 +178,7 @@ $text = "
|
||||
</tbody>
|
||||
</table>
|
||||
<div class='buttons-bar left'>
|
||||
".$frm->admin_button('submit_cache', CACLAN_2, 'update f-right')."
|
||||
".$frm->admin_button('submit_cache', CACLAN_2, 'update')."
|
||||
".$frm->selectbox('option_clear_cache', array(
|
||||
'empty_all' => CACLAN_26,
|
||||
'empty_contentcache' => CACLAN_5,
|
||||
|
@ -135,7 +135,13 @@ class emotec
|
||||
// List available emote packs
|
||||
function listPacks()
|
||||
{
|
||||
global $e107, $emessage, $fl, $pref;
|
||||
global $pref;
|
||||
$frm = e107::getForm();
|
||||
$fl = e107::getFile();
|
||||
$ns = e107::getRender();
|
||||
$mes = e107::getMessage();
|
||||
|
||||
|
||||
|
||||
$text = "
|
||||
<div class='admintabs' id='tab-container'>
|
||||
@ -165,7 +171,7 @@ class emotec
|
||||
</tbody>
|
||||
</table>
|
||||
<div class='buttons-bar center'>
|
||||
<button class='update' type='submit' name='active'><span>".LAN_UPDATE."</span></button>
|
||||
".$frm->admin_button('active','active','update',LAN_UPDATE)."
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
@ -175,7 +181,7 @@ class emotec
|
||||
<form method='post' action='".e_SELF."#etabTabContainer=emoticon-packages'>
|
||||
<fieldset id='emoticon-packages'>
|
||||
<legend>".EMOLAN_13."</legend>
|
||||
<table class='adminlist'>
|
||||
<table class='table adminlist'>
|
||||
<colgroup>
|
||||
<col style='width:15%' />
|
||||
<col style='width:50%' />
|
||||
@ -223,20 +229,23 @@ class emotec
|
||||
$text .= "
|
||||
</td>
|
||||
<td class='center middle'>".($pref['emotepack'] == $pack ? EMOLAN_10 : "<button type='submit' name='defPack_".$pack."' value='".EMOLAN_11."'><span>".EMOLAN_11."</span></button>")."</td>
|
||||
<td>
|
||||
<button class='edit' type='submit' name='subPack_".$pack."'><span>".EMOLAN_12."</span></button>
|
||||
";
|
||||
<td>";
|
||||
|
||||
|
||||
|
||||
|
||||
$text .= $frm->admin_button('subPack_'.$pack,'edit','submit',EMOLAN_12);
|
||||
|
||||
if ($can_scan && ($pack != 'default'))
|
||||
{
|
||||
$text .= "
|
||||
<br /><br />
|
||||
|
||||
<button class='submit' type='submit' name='scanPack_".$pack."'><span>".EMOLAN_26."</span></button>
|
||||
";
|
||||
$text .= $frm->admin_button('scanPack_'.$pack,'active','submit',EMOLAN_26);
|
||||
}
|
||||
$text .= "
|
||||
<br /><br />
|
||||
<button class='create' type='submit' name='XMLPack_".$pack."'><span>".EMOLAN_28."</span></button>
|
||||
";
|
||||
|
||||
$text .= $frm->admin_button('XMLPack_'.$pack,'submit','submit',EMOLAN_28);
|
||||
$text .= "
|
||||
</td>
|
||||
</tr>
|
||||
@ -251,7 +260,7 @@ class emotec
|
||||
</div>
|
||||
";
|
||||
|
||||
$e107->ns->tablerender(EMOLAN_PAGE_TITLE, $emessage->render().$text);
|
||||
$ns->tablerender(EMOLAN_PAGE_TITLE, $mes->render().$text);
|
||||
}
|
||||
|
||||
|
||||
@ -259,6 +268,8 @@ class emotec
|
||||
function emoteConf($packID)
|
||||
{
|
||||
global $e107, $fl, $sysprefs, $tp;
|
||||
$frm = e107::getForm();
|
||||
|
||||
$corea = "emote_".$packID;
|
||||
|
||||
$emotecode = $sysprefs -> getArray($corea);
|
||||
@ -277,7 +288,7 @@ class emotec
|
||||
<fieldset id='core-emoticon-configure'>
|
||||
<legend class='e-hideme'>".EMOLAN_15."</legend>
|
||||
<div class='info-bar'><strong>".sprintf(EMOLAN_31, count($eArray))."</strong></div>
|
||||
<table class='adminlist'>
|
||||
<table class='table adminlist'>
|
||||
<colgroup>
|
||||
<col style='width:20px' />
|
||||
<col class='col-label' />
|
||||
@ -323,9 +334,13 @@ class emotec
|
||||
</tbody>
|
||||
</table>
|
||||
<div class='buttons-bar center'>
|
||||
<input type='hidden' name='packID' value='{$packID}' />
|
||||
<button class='update' type='submit' name='sub_conf' value='no-value'><span>".EMOLAN_14."</span></button>
|
||||
<button class='cancel' type='submit' name='cancel' value='no-value'><span>".LAN_CANCEL."</span></button>
|
||||
<input type='hidden' name='packID' value='{$packID}' />";
|
||||
|
||||
|
||||
$text .= $frm->admin_button('sub_conf', 'no-value', 'update', LAN_SAVE);
|
||||
$text .= $frm->admin_button('cancel','no-value', 'cancel' ,LAN_CANCEL);
|
||||
|
||||
$text .= "
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>";
|
||||
|
@ -510,11 +510,15 @@ if ($e107_popup != 1)
|
||||
|
||||
$kpost = '';
|
||||
$text = '';
|
||||
|
||||
if ($sub_link)
|
||||
{
|
||||
$kpost = '_sub';
|
||||
}
|
||||
else $text = $tmpl['start'];
|
||||
else
|
||||
{
|
||||
$text = $tmpl['start'];
|
||||
}
|
||||
|
||||
//FIXME - e_parse::array2sc()
|
||||
$search = array();
|
||||
@ -528,6 +532,7 @@ if ($e107_popup != 1)
|
||||
$search[7] = '/\{LINK_CLASS\}(.*?)/si';
|
||||
$search[8] = '/\{SUB_CLASS\}(.*?)/si';
|
||||
$search[9] = '/\{LINK_IMAGE\}(.*?)/si';
|
||||
|
||||
foreach (array_keys($e107_vars) as $act)
|
||||
{
|
||||
if (isset($e107_vars[$act]['perm']) && !getperms($e107_vars[$act]['perm'])) // check perms first.
|
||||
@ -544,7 +549,10 @@ if ($e107_popup != 1)
|
||||
// print_a($e107_vars[$act]);
|
||||
|
||||
$replace = array();
|
||||
if ($active_page == $act || (str_replace("?", "", e_PAGE.e_QUERY) == str_replace("?", "", $act)))
|
||||
|
||||
$rid = str_replace(array(' ', '_'), '-', $act).($id ? "-{$id}" : '');
|
||||
|
||||
if (($active_page == $act && !is_numeric($act))|| (str_replace("?", "", e_PAGE.e_QUERY) == str_replace("?", "", $act)))
|
||||
{
|
||||
$temp = $tmpl['button_active'.$kpost];
|
||||
}
|
||||
@ -553,6 +561,16 @@ if ($e107_popup != 1)
|
||||
$temp = $tmpl['button'.$kpost];
|
||||
}
|
||||
|
||||
// $temp = $tmpl['button'.$kpost];
|
||||
// echo "ap = ".$active_page;
|
||||
// echo " act = ".$act."<br /><br />";
|
||||
|
||||
if($rid == 'main')
|
||||
{
|
||||
$temp = $tmpl['button_other'.$kpost];
|
||||
}
|
||||
|
||||
|
||||
$replace[0] = str_replace(" ", " ", $e107_vars[$act]['text']);
|
||||
// valid URLs
|
||||
$replace[1] = str_replace(array('&', '&'), array('&', '&'), varsettrue($e107_vars[$act]['link'], "#{$act}"));
|
||||
@ -565,35 +583,57 @@ if ($e107_popup != 1)
|
||||
$replace[3] = $title;
|
||||
$replace[4] = '';
|
||||
|
||||
$rid = str_replace(array(' ', '_'), '-', $act).($id ? "-{$id}" : '');
|
||||
|
||||
|
||||
|
||||
|
||||
$replace[5] = $id ? " id='eplug-nav-{$rid}'" : '';
|
||||
$replace[6] = '';
|
||||
$replace[6] = $rid;
|
||||
|
||||
$replace[7] = varset($e107_vars[$act]['link_class']);
|
||||
$replace[8] = '';
|
||||
$replace[9] = varset($e107_vars[$act]['image']);
|
||||
|
||||
if($rid == 'logout' || $rid == 'home')
|
||||
{
|
||||
$START_SUB = $tmpl['start_other_sub'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$START_SUB = $tmpl['start_sub'];
|
||||
}
|
||||
|
||||
if (varsettrue($e107_vars[$act]['sub']))
|
||||
{
|
||||
$replace[6] = $id ? " id='eplug-nav-{$rid}-sub'" : '';
|
||||
$replace[7] = ' '.varset($e107_vars[$act]['link_class'], 'e-expandit');
|
||||
$replace[8] = ' '.varset($e107_vars[$act]['sub_class'], 'e-hideme e-expandme');
|
||||
$replace[4] = preg_replace($search, $replace, $tmpl['start_sub']);
|
||||
$replace[4] = preg_replace($search, $replace, $START_SUB);
|
||||
$replace[4] .= e_admin_menu(false, $active_page, $e107_vars[$act]['sub'], $tmpl, true, (isset($e107_vars[$act]['sort']) ? $e107_vars[$act]['sort'] : $sortlist));
|
||||
$replace[4] .= $tmpl['end_sub'];
|
||||
}
|
||||
|
||||
$text .= preg_replace($search, $replace, $temp);
|
||||
// echo "<br />".$title." act=".$act;
|
||||
//print_a($e107_vars[$act]);
|
||||
}
|
||||
|
||||
$text .= !$sub_link ? $tmpl['end'] : '';
|
||||
$text .= (!$sub_link) ? $tmpl['end'] : '';
|
||||
|
||||
if ($sub_link || empty($title))
|
||||
{
|
||||
return $text;
|
||||
}
|
||||
|
||||
$ns = e107::getRender();
|
||||
$ns->tablerender($title, $text, array('id'=>$id, 'style'=>'button_menu'));
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* DEPRECATED - use e_admin_menu()
|
||||
*/
|
||||
|
@ -38,7 +38,7 @@ if (isset($_POST['submit-mye107']) || varset($_POST['submit-mymenus']))
|
||||
|
||||
// ---------------------- Start Panel --------------------------------
|
||||
|
||||
$text = "<div style='text-align:center'>";
|
||||
$text = "<div >";
|
||||
if (getperms('0') && !vartrue($user_pref['core-infopanel-mye107'])) // Set default icons.
|
||||
{
|
||||
$user_pref['core-infopanel-mye107'] = $pref['core-infopanel-default'];
|
||||
@ -47,40 +47,39 @@ if (isset($_POST['submit-mye107']) || varset($_POST['submit-mymenus']))
|
||||
$iconlist = array_merge($array_functions_assoc, getPluginLinks(E_16_PLUGMANAGER, "array"));
|
||||
|
||||
$text .= "
|
||||
<form method='post' action='".e_SELF."?".e_QUERY."'>
|
||||
<div id='core-infopanel_mye107' class='f-left' style='width:49%'>
|
||||
<div style='border:1px solid silver;margin:10px'>
|
||||
<div class='main_caption bevel left'><b>Welcome to your e107 Content Management System</b></div>
|
||||
|
||||
<div class='left block-text' >
|
||||
<h1>".ucwords(USERNAME)."'s Admin Panel</h1>
|
||||
Welcome to your Website Content Manager
|
||||
<br />
|
||||
|
||||
</div>
|
||||
|
||||
<form method='post' action='".e_SELF."?".e_QUERY."'>";
|
||||
|
||||
|
||||
|
||||
// Personalized Panel
|
||||
|
||||
$mainPanel = "
|
||||
<div id='core-infopanel_mye107' >
|
||||
<div>
|
||||
<div class='left' style='padding:25px'>";
|
||||
// Rendering the saved configuration.
|
||||
foreach ($iconlist as $key=>$val)
|
||||
{
|
||||
if (!vartrue($user_pref['core-infopanel-mye107']) || in_array($key, $user_pref['core-infopanel-mye107']))
|
||||
{
|
||||
$text .= render_links($val['link'], $val['title'], $val['caption'], $val['perms'], $val['icon_32'], "div");
|
||||
$mainPanel .= render_links($val['link'], $val['title'], $val['caption'], $val['perms'], $val['icon_32'], "div");
|
||||
}
|
||||
}
|
||||
|
||||
$text .= "<div class='clear'> </div>
|
||||
$mainPanel .= "<div class='clear'> </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>";
|
||||
|
||||
$text .= $ns->tablerender(ucwords(USERNAME)."'s Admin Panel",$mainPanel,"core-infopanel_mye107",true);
|
||||
|
||||
|
||||
// ------------------------------- e107 News --------------------------------
|
||||
$text .= "
|
||||
<div id='core-infopanel_news' class='f-left' style='width:49%'>
|
||||
<div style='border:1px solid silver;margin:10px'>
|
||||
<div class='main_caption bevel left'><b>e107 News</b></div>
|
||||
<div class='left block-text'>";
|
||||
|
||||
|
||||
$panelRSS = "
|
||||
";
|
||||
|
||||
// TODO Load with Ajax
|
||||
|
||||
|
||||
@ -90,44 +89,35 @@ if (isset($_POST['submit-mye107']) || varset($_POST['submit-mymenus']))
|
||||
$text .= print_r($vars,TRUE);
|
||||
*/
|
||||
|
||||
$text .= "
|
||||
$panelRSS .= "
|
||||
RSS News feed from e107.org goes here.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
";
|
||||
/*
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
*/
|
||||
|
||||
$text .= $ns->tablerender("e107 News",$panelRSS,"core-infopanel_news",true);
|
||||
|
||||
// ---------------------Latest Stuff ---------------------------
|
||||
$text .= "
|
||||
<div id='core-infopanel_latest' class='f-left' style='width:49%' >
|
||||
<div style='border:1px solid silver;margin:10px'>
|
||||
<table>
|
||||
<tr>
|
||||
<td style='padding:0px'>";
|
||||
|
||||
|
||||
require_once (e_CORE."shortcodes/batch/admin_shortcodes.php");
|
||||
|
||||
$text .= $tp->parseTemplate("{ADMIN_LATEST}");
|
||||
$text .= "</td><td style='padding:0px'>";
|
||||
$text .= $tp->parseTemplate("{ADMIN_STATUS}");
|
||||
$text .= "</td></tr></table>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
$text .= $ns->tablerender(ADLAN_LAT_1,$tp->parseTemplate("{ADMIN_LATEST=norender}"),"core-infopanel_latest",true);
|
||||
$text .= $ns->tablerender(LAN_STATUS,$tp->parseTemplate("{ADMIN_STATUS=norender}"),"core-infopanel_latest",true);
|
||||
|
||||
|
||||
// ---------------------- Who's Online ------------------------
|
||||
// TODO Could use a new _menu item instead.
|
||||
|
||||
$nOnline = e107::getDB()->db_Select('online', '*');
|
||||
|
||||
$text .= "
|
||||
<div id='core-infopanel_online' class='f-left' style='width:49%'>
|
||||
<div style='border:1px solid silver;margin:10px;'>
|
||||
<div class='main_caption bevel left'><b>Visitors Online : ".$nOnline."</b></div>
|
||||
<div class='left block-text'>
|
||||
|
||||
|
||||
<table class='adminlist'>
|
||||
$panelOnline = "
|
||||
|
||||
<table class='table adminlist'>
|
||||
<colgroup>
|
||||
<col style='width: 10%' />
|
||||
<col style='width: 25%' />
|
||||
@ -154,7 +144,7 @@ $text .= "
|
||||
$newsarray = $e107->sql->db_getList();
|
||||
foreach ($newsarray as $key=>$val)
|
||||
{
|
||||
$text .= "<tr>
|
||||
$panelOnline .= "<tr>
|
||||
<td class='nowrap'>".e107::getDateConvert()->convert_date($val['online_timestamp'],'%H:%M:%S')."</td>
|
||||
<td>".renderOnlineName($val['online_user_id'])."</td>
|
||||
<td>".e107::getIPHandler()->ipDecode($val['online_ip'])."</td>
|
||||
@ -165,10 +155,11 @@ $text .= "
|
||||
}
|
||||
}
|
||||
|
||||
$text .= "</tbody></table></div>
|
||||
</div>
|
||||
</div>
|
||||
$panelOnline .= "</tbody></table>
|
||||
";
|
||||
|
||||
$text .= $ns->tablerender('Visitors Online : '.$nOnline, $panelOnline,'core-infopanel_online',true);
|
||||
|
||||
// --------------------- User Selected Menus -------------------
|
||||
|
||||
if (varset($pref['core-infopanel-menus']))
|
||||
@ -205,7 +196,8 @@ $text .= "</div>";
|
||||
|
||||
if($_GET['mode'] != 'customize')
|
||||
{
|
||||
$ns->tablerender(ADLAN_47." ".ADMINNAME, $emessage->render().$text);
|
||||
// $ns->tablerender(ADLAN_47." ".ADMINNAME, $emessage->render().$text);
|
||||
echo $emessage->render().$text;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1143,7 +1143,7 @@ function headerjs()
|
||||
</script>";
|
||||
|
||||
$mailAdmin = e107::getRegistry('_mailout_admin');
|
||||
$text .= $mailAdmin->_cal->load_files();
|
||||
// $text .= $mailAdmin->_cal->load_files();
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
@ -81,6 +81,8 @@ require_once("footer.php");
|
||||
function theme_adminmenu()
|
||||
{
|
||||
global $mode;
|
||||
$mode = e_QUERY;
|
||||
|
||||
$e107 = &e107::getInstance();
|
||||
|
||||
$var['main']['text'] = TPVLAN_33;
|
||||
@ -98,7 +100,7 @@ function theme_adminmenu()
|
||||
$selected = (e_QUERY) ? e_QUERY : "main";
|
||||
|
||||
|
||||
e_admin_menu(TPVLAN_26, $mode, $var);
|
||||
e_admin_menu(TPVLAN_26, $selected, $var);
|
||||
}
|
||||
|
||||
|
||||
|
@ -308,7 +308,7 @@ class admin_shortcodes
|
||||
if (ADMIN) {
|
||||
if (!function_exists('admin_latest'))
|
||||
{
|
||||
function admin_latest()
|
||||
function admin_latest($parm='')
|
||||
{
|
||||
global $sql, $ns, $pref;
|
||||
|
||||
@ -342,7 +342,9 @@ class admin_shortcodes
|
||||
$text .= "<br /><b><a href='".e_ADMIN_ABS."message.php'>".ADLAN_LAT_8." [".$amount."]</a></b>";
|
||||
}
|
||||
$text .= "</div>";
|
||||
return $ns -> tablerender(ADLAN_LAT_1, $text, '', TRUE);
|
||||
|
||||
return ($parm != 'norender') ? $ns -> tablerender(ADLAN_LAT_1, $text, '', TRUE) : $text;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -352,13 +354,13 @@ class admin_shortcodes
|
||||
{
|
||||
if (latest_request())
|
||||
{
|
||||
return admin_latest();
|
||||
return admin_latest($parm);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return admin_latest();
|
||||
return admin_latest($parm);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -875,7 +877,7 @@ class admin_shortcodes
|
||||
{
|
||||
if (!function_exists('admin_status'))
|
||||
{
|
||||
function admin_status()
|
||||
function admin_status($parm='')
|
||||
{
|
||||
global $sql, $ns, $pref;
|
||||
$members = $sql -> db_Count('user');
|
||||
@ -909,7 +911,9 @@ class admin_shortcodes
|
||||
$text .= "<img src='".e_IMAGE_ABS."admin_images/failedlogin_16.png' alt='' class='icon S16' /> <a href='".e_ADMIN_ABS."fla.php'>".ADLAN_146.": $flo</a>";
|
||||
}
|
||||
$text .= "</div>";
|
||||
return $ns -> tablerender(LAN_STATUS, $text, '', TRUE);
|
||||
|
||||
|
||||
return ($parm != 'norender') ? $ns -> tablerender(LAN_STATUS, $text, '', TRUE) : $text;
|
||||
}
|
||||
}
|
||||
|
||||
@ -919,13 +923,13 @@ class admin_shortcodes
|
||||
{
|
||||
if (status_request())
|
||||
{
|
||||
return admin_status();
|
||||
return admin_status($parm);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return admin_status();
|
||||
return admin_status($parm);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -851,6 +851,7 @@ class e_form
|
||||
{
|
||||
$options = $this->format_options('radio', $name, $options);
|
||||
$options['checked'] = $checked; //comes as separate argument just for convenience
|
||||
$options['class'] = 'inline';
|
||||
return "<input type='radio' name='{$name}' value='".$value."'".$this->get_attributes($options, $name, $value)." />";
|
||||
|
||||
}
|
||||
@ -898,7 +899,7 @@ class e_form
|
||||
function label($text, $name = '', $value = '')
|
||||
{
|
||||
$for_id = $this->_format_id('', $name, $value, 'for');
|
||||
return "<label$for_id class='e-tip'>{$text}</label>";
|
||||
return "<label$for_id class='e-tip inline'>{$text}</label>";
|
||||
}
|
||||
|
||||
function help($text)
|
||||
@ -1098,16 +1099,35 @@ class e_form
|
||||
$btype = 'submit';
|
||||
if(strpos($action, 'action') === 0) $btype = 'button';
|
||||
$options = $this->format_options('admin_button', $name, $options);
|
||||
$options['class'] = $action;//shorthand
|
||||
$options['class'] = 'btn '.$action.' ';//shorthand
|
||||
if(empty($label)) $label = $value;
|
||||
|
||||
if($action == 'delete')
|
||||
|
||||
switch ($action)
|
||||
{
|
||||
$options['other'] = 'data-confirm="'.LAN_JSCONFIRM.'"';
|
||||
}
|
||||
case 'update':
|
||||
$options['class'] .= 'btn-success';
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
$options['class'] .= 'btn-danger';
|
||||
$options['other'] = 'data-confirm="'.LAN_JSCONFIRM.'"';
|
||||
break;
|
||||
|
||||
case 'execute':
|
||||
$options['class'] .= 'btn-success';
|
||||
break;
|
||||
|
||||
case 'batch':
|
||||
$options['class'] .= 'btn-success';
|
||||
break;
|
||||
|
||||
case 'filter':
|
||||
$options['class'] .= 'btn-success';
|
||||
break;
|
||||
}
|
||||
|
||||
return "
|
||||
<button type='{$btype}' name='{$name}' value='{$value}'".$this->get_attributes($options, $name)."><span>{$label}</span></button>
|
||||
<button type='{$btype}' name='{$name}' value='{$value}'".$this->get_attributes($options, $name)."><span>{$label}</span></button>
|
||||
";
|
||||
}
|
||||
|
||||
@ -2382,13 +2402,13 @@ class e_form
|
||||
$legend_class = vartrue($options['legend_class'], 'e-hideme');
|
||||
|
||||
$text .= "
|
||||
<form method='post' action='{$formurl}' id='{$elid}-list-form'>
|
||||
<form class='method='post' action='{$formurl}' id='{$elid}-list-form'>
|
||||
<div>".$this->token()."
|
||||
".vartrue($options['fieldset_pre'])."
|
||||
<fieldset id='{$elid}-list'>
|
||||
<legend class='{$legend_class}'>".$options['legend']."</legend>
|
||||
".vartrue($options['table_pre'])."
|
||||
<table class='adminlist' id='{$elid}-list-table'>
|
||||
<table class='table adminlist' id='{$elid}-list-table'>
|
||||
".$this->colGroup($fields, $current_fields)."
|
||||
".$this->thead($fields, $current_fields, varset($options['head_query']), varset($options['query']))."
|
||||
<tbody id='e-sort'>
|
||||
@ -2850,7 +2870,7 @@ class e_form
|
||||
function batchoptions($options, $ucOptions = null)
|
||||
{
|
||||
$text = "
|
||||
<div class='f-left'>
|
||||
<div class='f-left btn-group'>
|
||||
<img src='".e_IMAGE_ABS."generic/branchbottom.gif' alt='' class='icon action' />
|
||||
".$this->select_open('execute_batch', array('class' => 'tbox select batch e-autosubmit', 'id' => false))."
|
||||
".$this->option('With selected...', '')."
|
||||
@ -2915,8 +2935,7 @@ class e_form
|
||||
|
||||
|
||||
$text .= "
|
||||
".$this->select_close()."
|
||||
".$this->admin_button('trigger_execute_batch', 'trigger_execute_batch', 'submit multi e-hide-if-js', 'Go')."
|
||||
".$this->select_close().$this->admin_button('trigger_execute_batch', 'trigger_execute_batch', 'submit multi e-hide-if-js', 'Go')."
|
||||
</div><div class='clear'></div>
|
||||
";
|
||||
|
||||
|
@ -827,6 +827,7 @@ class e_jsmanager
|
||||
|
||||
case 'theme':
|
||||
$file_path = '{e_THEME}'.$this->getCurrentTheme().'/'.trim($file_path, '/');
|
||||
echo "file-Path = ".$file_path;
|
||||
$registry = &$this->_e_jslib_theme;
|
||||
break;
|
||||
|
||||
|
@ -477,7 +477,7 @@ class themeHandler
|
||||
|
||||
$text = "
|
||||
<div style='text-align:center'>
|
||||
<table class='adminform'>
|
||||
<table class='table adminform'>
|
||||
<colgroup>
|
||||
<col class='col-label' />
|
||||
<col class='col-control' />
|
||||
@ -522,7 +522,7 @@ class themeHandler
|
||||
|
||||
|
||||
$text = "<div style='font-weight:bold;margin-bottom:10px'>".TPVLAN_7."</div>
|
||||
<table class='adminlist'>";
|
||||
<table class='table adminlist'>";
|
||||
$text .= $author ? "<tr><td style='vertical-align:top; width:24%'><b>".TPVLAN_4."</b>:</td><td style='vertical-align:top'>".$author."</td></tr>" : "";
|
||||
$text .= $website ? "<tr><td style='vertical-align:top; width:24%'><b>".TPVLAN_5."</b>:</td><td style='vertical-align:top'>".$website."</td></tr>" : "";
|
||||
$text .= $theme['date'] ? "<tr><td style='vertical-align:top; width:24%'><b>".TPVLAN_6."</b>:</td><td style='vertical-align:top'>".$theme['date']."</td></tr>" : "";
|
||||
@ -714,7 +714,7 @@ class themeHandler
|
||||
|
||||
$text .= "
|
||||
<div id='core-thememanager-configure'>
|
||||
<table class='adminform'>
|
||||
<table class='table adminform'>
|
||||
<colgroup>
|
||||
<col class='col-label' />
|
||||
<col class='col-control' />
|
||||
@ -776,7 +776,7 @@ class themeHandler
|
||||
$itext = "<tr>
|
||||
<td style='vertical-align:top; width:24%'><b>".TPVLAN_50."</b>:</td>
|
||||
<td colspan='2' style='vertical-align:top'>
|
||||
<table class='adminlist'>
|
||||
<table class='table adminlist'>
|
||||
<colgroup>
|
||||
<col class='col-tm-layout-default' style='width:10%' />
|
||||
<col class='col-tm-layout-name' style='width:20%' />
|
||||
@ -891,7 +891,7 @@ class themeHandler
|
||||
$text .= "
|
||||
<tr><td style='vertical-align:top;'><b>".TPVLAN_22.":</b></td>
|
||||
<td colspan='2' style='vertical-align:top'>
|
||||
<table class='adminlist' style='width:100%' >
|
||||
<table class='table adminlist' style='width:100%' >
|
||||
<tr>
|
||||
<td class='center' style='width:10%'>".TPVLAN_55."</td>
|
||||
<td style='width:20%'>".TPVLAN_52."</td>
|
||||
@ -1376,6 +1376,17 @@ class themeHandler
|
||||
$vars['path'] = $path;
|
||||
$vars['custompages'] = $custom;
|
||||
|
||||
/*
|
||||
$mes = e107::getMessage();
|
||||
|
||||
if($path == "bootstrap")
|
||||
{
|
||||
$mes->addDebug("<h2>".$path."</h2>");
|
||||
$mes->addDebug(print_a($vars,true));
|
||||
$mes->addDebug("<hr />");
|
||||
}
|
||||
*/
|
||||
|
||||
return $vars;
|
||||
}
|
||||
|
||||
|
125
e107_themes/bootstrap/admin_style.css
Normal file
125
e107_themes/bootstrap/admin_style.css
Normal file
@ -0,0 +1,125 @@
|
||||
body {
|
||||
padding-top: 75px;
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
.well {
|
||||
padding:10px;
|
||||
}
|
||||
|
||||
#core-infopanel_mye107 a {
|
||||
|
||||
}
|
||||
|
||||
/* Core Formatting */
|
||||
.left { text-align: left }
|
||||
.right { text-align: right }
|
||||
.center { text-align: center }
|
||||
.f-left { float: left }
|
||||
.f-right { float: right }
|
||||
.top { vertical-align: top }
|
||||
.middle { vertical-align: middle }
|
||||
.bottom { vertical-align: bottom }
|
||||
.clear { clear: both }
|
||||
.clear-l { clear: right }
|
||||
.clear-r { clear: left }
|
||||
.smalltext { font-size: 11px; }
|
||||
.nowrap { white-space:nowrap; }
|
||||
|
||||
label { background-color:transparent; cursor: pointer; }
|
||||
|
||||
.core-mainpanel-block { text-align:center; width:100px; float:left; height:48px; display:block;margin:15px; }
|
||||
.core-mainpanel-link-text { font-weight:bold; text-decoration: none; padding:3px }
|
||||
|
||||
|
||||
|
||||
.sidebar-nav {
|
||||
padding: 9px 0;
|
||||
}
|
||||
|
||||
.nav-collapse {
|
||||
margin-top:8px;
|
||||
}
|
||||
|
||||
.dropdown-menu img { padding: 0px 0px; margin-right: 10px; }
|
||||
|
||||
.dropdown-menu a {
|
||||
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
|
||||
filter: gray; /* IE6-9 */
|
||||
-webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
|
||||
|
||||
}
|
||||
|
||||
.dropdown-menu a:hover {
|
||||
filter: none;
|
||||
-webkit-filter: grayscale(0%);
|
||||
}
|
||||
|
||||
/* Core Icons & Image Buttons */
|
||||
img.icon { border: 0px; vertical-align: middle; }
|
||||
img.icon.list,
|
||||
input.action { margin: 0px 3px }
|
||||
img.icon.action,
|
||||
input.action { }
|
||||
img.S16 { width: 16px; height: 16px }
|
||||
img.S32 { width: 32px; height: 32px }
|
||||
img.S64 { width: 64px; height: 64px }
|
||||
img.S128 { width: 128px; height: 128px }
|
||||
img.edit,
|
||||
img.delete,
|
||||
input.delete { }
|
||||
/*******************************************************************************************************************/
|
||||
/* Admin List Table */
|
||||
.adminlist { width:100%; border:1px solid #ddd;}
|
||||
.adminlist th { border-bottom:1px solid #ddd; }
|
||||
.adminlist td { border-bottom:1px solid #ddd; border-right: 1px solid #ddd; }
|
||||
.adminlist th.last,
|
||||
.adminlist td.last { border-right: 0px solid;}
|
||||
.adminlist tr.last td{ border-bottom: 0px solid;}
|
||||
.adminlist thead { background-color:#f2f2f2; }
|
||||
.adminlist tr.even { background-color:#f6f6f6; }
|
||||
.adminlist .col-selection-cont { position: relative; float:right; }
|
||||
.col-selection-cont .col-selection { text-align:left; background-color: #FCFDFF; border: 1px outset black; width:200px; margin-right:0px; overflow:visible; position: absolute; z-index:101; right:0px;}
|
||||
.col-selection .col-selection-body { padding: 5px; clear: both; }
|
||||
|
||||
|
||||
/******** SyS Messages / Message text formatting */
|
||||
/* message boxes */
|
||||
.s-message { }
|
||||
|
||||
.s-message div.info,
|
||||
.s-message div.error,
|
||||
.s-message div.success,
|
||||
.s-message div.debug,
|
||||
.s-message div.warning { padding: 8px 35px 8px 14px;
|
||||
margin-bottom: 20px;
|
||||
color: #c09853;
|
||||
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
|
||||
background-color: #fcf8e3;
|
||||
border: 1px solid #fbeed5;
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px; }
|
||||
|
||||
|
||||
.s-message div.info { color: #3a87ad;
|
||||
background-color: #d9edf7;
|
||||
border-color: #bce8f1; }
|
||||
.s-message div.error { color: #b94a48;
|
||||
background-color: #f2dede;
|
||||
border-color: #eed3d7; }
|
||||
.s-message div.success { color: #468847;
|
||||
background-color: #dff0d8;
|
||||
border-color: #d6e9c6; }
|
||||
.s-message div.warning { background-color:#FFFFD5; border: 1px solid #FFCC00; }
|
||||
.s-message div.debug { background-color:#FFFFFF; border: 1px solid #EAEAEA; }
|
||||
|
||||
.s-message .s-message-title { height: 32px; background: 0 50% no-repeat; padding-left: 42px; font-size: 14px; font-weight: bold; line-height: 32px; }
|
||||
|
||||
.s-message div.info .s-message-title { background-image: url(images/messagebox_info.png); }
|
||||
.s-message div.error .s-message-title { background-image: url(images/messagebox_critical.png); }
|
||||
.s-message div.success .s-message-title { background-image: url(images/ok.png); }
|
||||
.s-message div.warning .s-message-title { background-image: url(images/messagebox_warning.png); }
|
||||
.s-message div.debug .s-message-title { background-image: url(images/messagebox_info.png); }
|
||||
|
||||
.s-message-body { padding-left: 42px; }
|
||||
.s-message-item {}
|
@ -14,4 +14,6 @@ tr.highlight-even { background-color: silver; }
|
||||
tr.highlight-odd { background-color: silver; }
|
||||
legend { display: none; }
|
||||
.chzn-choices { width: 350px; }
|
||||
.e-autocomplete { display: none }
|
||||
.e-autocomplete { display: none }
|
||||
|
||||
.col-selection { padding:5px; text-align:left; background-color: #FCFDFF; border: 1px outset black; width:200px; margin-right:0px;overflow:visible; position:absolute; z-index:101; right:0px;}
|
||||
|
Loading…
x
Reference in New Issue
Block a user