cleaned up formatting and added custom.css

This commit is contained in:
Botanic 2013-06-16 22:57:09 -07:00
parent 31a6e62cf5
commit 9dd168220e
11 changed files with 116 additions and 99 deletions

View file

@ -44,13 +44,13 @@ class Helpers{
foreach ( $variables[$template] as $key => $value ){ foreach ( $variables[$template] as $key => $value ){
$smarty -> assign( $key, $value ); $smarty -> assign( $key, $value );
} }
if($vars['permission'] == 1){ if( $vars['permission'] == 1 ){
$inherited = "layout_admin.tpl"; $inherited = "layout_admin.tpl";
}else{ }else{
$inherited = "layout_user.tpl"; $inherited = "layout_user.tpl";
} }
//extends:' . $inherited .'|register.tpl // extends:' . $inherited .'|register.tpl
$smarty -> display( $template.'.tpl' ); $smarty -> display( $template . '.tpl' );
} }
static public function create_folders(){ static public function create_folders(){

View file

@ -6,6 +6,5 @@ class Sql{
echo "tst"; echo "tst";
} }
} }

View file

@ -230,4 +230,3 @@ class Users{
} }
} }

View file

@ -3,6 +3,6 @@
// Base include file for library functions for AMS // Base include file for library functions for AMS
// *********************************************** // ***********************************************
function __autoload( $className ){ function __autoload( $className ){
require_once 'autoload/' . strtolower ($className) . '.php'; require_once 'autoload/' . strtolower ( $className ) . '.php';
} }

View file

@ -0,0 +1,17 @@
.login-header
{
height:190px;
}
.brand img
{
height:100%;
margin-bottom:-18px;
margin-top:-15px;
width:100%;
}
#for-is-ajax
{
display:none;
}

View file

@ -17,7 +17,7 @@ if ( isset( $_GET["page"] ) ){
$page = $_GET["page"]; $page = $_GET["page"];
} }
//temporary set permission to 1 which = admin mode // temporary set permission to 1 which = admin mode
$return = array('permission' => 1, 'no_visible_elements' => 'TRUE'); $return = array( 'permission' => 1, 'no_visible_elements' => 'TRUE' );
helpers :: loadTemplate( $page , $return ); helpers :: loadTemplate( $page , $return );

View file

@ -1,7 +1,7 @@
$(document).ready(function(){ $(document).ready(function(){
//themes, change CSS with JS //themes, change CSS with JS
//default theme(CSS) is cerulean, change it if needed //default theme(CSS) is cerulean, change it if needed
var current_theme = $.cookie('current_theme')==null ? 'spacelab' :$.cookie('current_theme'); var current_theme = $.cookie('current_theme')==null ? 'cerulean' :$.cookie('current_theme');
switch_theme(current_theme); switch_theme(current_theme);
$('#themes a[data-value="'+current_theme+'"]').find('i').addClass('icon-ok'); $('#themes a[data-value="'+current_theme+'"]').find('i').addClass('icon-ok');

View file

@ -52,6 +52,8 @@
<!-- The fav icon --> <!-- The fav icon -->
<!--<link rel="shortcut icon" href="img/favicon.ico">--> <!--<link rel="shortcut icon" href="img/favicon.ico">-->
<!--custom css file-->
<link href="css/custom.css" rel="stylesheet">
</head> </head>
<body> <body>