mirror of
https://github.com/e107inc/e107.git
synced 2025-08-30 01:30:32 +02:00
Maintenance administration - ajax implementation;
Solved number of bbcode issues (lot more to do); e_form::bbarea method added (automated bb textarea creation); admin_theme for blank theme
This commit is contained in:
@@ -123,6 +123,7 @@ select, .tbox, .helpbox {
|
||||
}
|
||||
option { padding-right: 10px;}
|
||||
input.input-text, textarea, .tbox, .helpbox { padding:2px; }
|
||||
.tbox.large { width: 95% !important; }
|
||||
select.tbox { min-height:17px; padding: 0px; /* setting the height of empty selects */ }
|
||||
.select.order { width: 40px !important; }
|
||||
.select.time-offset { width: 60px !important; }
|
||||
@@ -169,6 +170,7 @@ label { cursor: pointer; }
|
||||
.adminedit .select { width: 280px; }
|
||||
.adminedit .input-text { width: 274px;}
|
||||
.adminedit td.control textarea { width: 274px;}
|
||||
.adminedit td.control textarea.large { width: 400px; }
|
||||
|
||||
.adminedit td.label {}
|
||||
.adminedit td.control {}
|
||||
|
100
e107_themes/_blank/admin_theme.php
Normal file
100
e107_themes/_blank/admin_theme.php
Normal file
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
include_lan(THEME."languages/".e_LANGUAGE.".php");
|
||||
|
||||
$THEME_CORE_JSLIB = array(
|
||||
'jslib/core/decorate.js' => 'all',
|
||||
'jslib/core/tabs.js' => 'admin'
|
||||
);
|
||||
|
||||
$register_sc[]='FS_ADMIN_ALT_NAV';
|
||||
$no_core_css = TRUE;
|
||||
|
||||
function theme_head() {
|
||||
$ret = '';
|
||||
$ret .= '
|
||||
<link rel="stylesheet" href="'.THEME_ABS.'menu/menu.css" type="text/css" media="all" />
|
||||
<!--[if IE]>
|
||||
<link rel="stylesheet" href="'.THEME_ABS.'ie_all.css" type="text/css" media="all" />
|
||||
<![endif]-->
|
||||
<!--[if lte IE 7]>
|
||||
<script type="text/javascript" src="'.THEME_ABS.'menu/menu.js"></script>
|
||||
<![endif]-->
|
||||
';
|
||||
|
||||
$ret .= "
|
||||
<script type='text/javascript'>
|
||||
/**
|
||||
* Decorate all tables having e-list class
|
||||
* TODO: add 'adminlist' class to all list core tables, allow theme decorate.
|
||||
*/
|
||||
e107.runOnLoad( function(event) {
|
||||
var element = event.element() != document ? event.element() : $$('body')[0];
|
||||
|
||||
element.select('table.adminlist:not(.no-decorate)').each(function(element) {
|
||||
e107Utils.Decorate.table(element, {tr_td: 'first last'});
|
||||
});
|
||||
element.select('div.admintabs').each(function(element) {
|
||||
new e107Widgets.Tabs(element);
|
||||
});
|
||||
|
||||
}, document, true);
|
||||
|
||||
</script>";
|
||||
return $ret;
|
||||
}
|
||||
|
||||
function tablestyle($caption, $text, $mod) {
|
||||
global $style;
|
||||
$class = '';
|
||||
if(is_string($mod) && $mod == 'admin_help') $class = ' '.str_replace('_', '-', $mod);
|
||||
|
||||
switch(varset($style, 'admin_content')) {
|
||||
|
||||
case 'admin_menu' :
|
||||
echo '
|
||||
<div class="block">
|
||||
<h4 class="caption">'.$caption.'</h4>
|
||||
'.$text.'
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
|
||||
case 'site_info' :
|
||||
echo '
|
||||
<div class="block'.$class.'">
|
||||
<h4 class="caption">'.$caption.'</h4>
|
||||
<div class="block-text">
|
||||
'.$text.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
|
||||
case 'admin_content':
|
||||
echo '
|
||||
<div class="block">
|
||||
<h2 class="caption">'.$caption.'</h2>
|
||||
<div class="block-text">
|
||||
'.$text.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
|
||||
default:
|
||||
echo '
|
||||
<div class="block">
|
||||
<h4>'.$caption.'</h4>
|
||||
<div class="block-text">
|
||||
'.$text.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$HEADER = '';
|
||||
$FOOTER = '';
|
||||
|
||||
?>
|
Reference in New Issue
Block a user