Skip to content

Commit 2a46d3f

Browse files
committed
Setup Tabler Theme
1 parent 80b987a commit 2a46d3f

785 files changed

Lines changed: 33290 additions & 112 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Codeigniter Admin Panel ( Startup Kit )
1+
# Codeigniter Admin Panel ( Startup Kit )
22

33
### Features
44

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
defined('BASEPATH') OR exit('No direct script access allowed');
3+
4+
class Auth extends CI_Controller {
5+
public function index()
6+
{
7+
$this->load->view('admin/auth/login');
8+
}
9+
}

application/core/MY_Controller.php

Lines changed: 0 additions & 74 deletions
This file was deleted.

application/core/MY_URI.php

Lines changed: 33 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,43 @@
11
<?php
2-
3-
class MY_URI extends CI_URI {
4-
5-
private $uri_parameters = array();
6-
7-
public function load_uri_parameters($uri)
8-
{
9-
$this->uri_parameters = Route::get_parameters($uri);
10-
}
11-
12-
// Now the URI->segment Method also searchs for
13-
// named URIS in case we have declared them
14-
15-
public function segment($n, $no_result = NULL)
2+
class MY_URI extends CI_URI {
3+
4+
private $uri_parameters = array();
5+
6+
public function load_uri_parameters($uri)
7+
{
8+
$this->uri_parameters = Route::get_parameters($uri);
9+
}
10+
11+
// Now the URI->segment Method also searchs for
12+
// named URIS in case we have declared them
13+
14+
public function segment($n, $no_result = NULL)
15+
{
16+
if (!is_numeric($n))
1617
{
17-
if (!is_numeric($n))
18+
if (array_key_exists($n, $this->uri_parameters))
1819
{
19-
if (array_key_exists($n, $this->uri_parameters))
20-
{
21-
$n = $this->uri_parameters[$n];
22-
} else
23-
{
24-
return $no_result;
25-
}
20+
$n = $this->uri_parameters[$n];
21+
} else
22+
{
23+
return $no_result;
2624
}
27-
28-
return parent::segment($n, $no_result);
2925
}
30-
31-
public function rsegment($n, $no_result = NULL)
26+
return parent::segment($n, $no_result);
27+
}
28+
29+
public function rsegment($n, $no_result = NULL)
30+
{
31+
if (!is_numeric($n))
3232
{
33-
if (!is_numeric($n))
33+
if (array_key_exists($n, $this->uri_parameters))
34+
{
35+
$n = $this->uri_parameters[$n];
36+
} else
3437
{
35-
if (array_key_exists($n, $this->uri_parameters))
36-
{
37-
$n = $this->uri_parameters[$n];
38-
} else
39-
{
40-
return $no_result;
41-
}
38+
return $no_result;
4239
}
43-
44-
return parent::rsegment($n, $no_result);
4540
}
46-
41+
return parent::rsegment($n, $no_result);
4742
}
43+
}

application/routes/web.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
Route::get('/', 'welcome@index')->name('homepage');
2222

23+
Route::get('/admin', 'admin/auth@index')->name('admin.login');
24+
2325
Route::set('404_override', function(){
2426
show_404();
2527
});
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8"/>
5+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
7+
<meta http-equiv="Content-Language" content="en"/>
8+
<meta name="msapplication-TileColor" content="#206bc4"/>
9+
<meta name="theme-color" content="#206bc4"/>
10+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
11+
<meta name="apple-mobile-web-app-capable" content="yes"/>
12+
<meta name="mobile-web-app-capable" content="yes"/>
13+
<meta name="HandheldFriendly" content="True"/>
14+
<meta name="MobileOptimized" content="320"/>
15+
<meta name="robots" content="noindex,nofollow,noarchive"/>
16+
<link rel="icon" href="./favicon.ico" type="image/x-icon"/>
17+
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon"/>
18+
<title>Login</title>
19+
20+
<link href="<?= base_url('assets/admin/libs/jqvmap/dist/jqvmap.min.css') ?>" rel="stylesheet"/>
21+
<link href="<?= base_url('assets/admin/libs/selectize/dist/css/selectize.css') ?>" rel="stylesheet"/>
22+
<link href="<?= base_url('assets/admin/libs/fullcalendar/core/main.min.css') ?>" rel="stylesheet"/>
23+
<link href="<?= base_url('assets/admin/libs/fullcalendar/daygrid/main.min.css') ?>" rel="stylesheet"/>
24+
<link href="<?= base_url('assets/admin/libs/fullcalendar/timegrid/main.min.css') ?>" rel="stylesheet"/>
25+
<link href="<?= base_url('assets/admin/libs/fullcalendar/list/main.min.css') ?>" rel="stylesheet"/>
26+
<link href="<?= base_url('assets/admin/css/tabler.min.css') ?>" rel="stylesheet"/>
27+
<link href="<?= base_url('assets/admin/css/tabler-flags.min.css') ?>" rel="stylesheet"/>
28+
<link href="<?= base_url('assets/admin/css/tabler-payments.min.css') ?>" rel="stylesheet" />
29+
</head>
30+
<body class="antialiased border-top-wide border-primary">
31+
<div class="d-flex h-auto min-h-full justify-content-center">
32+
<div class="d-flex align-items-center justify-content-center flex-fill">
33+
<div class="container">
34+
<div class="row">
35+
<div class="col col-login mx-auto">
36+
<div class="text-center mb-4">
37+
<img src="<?= base_url('assets/admin') ?>/static/logo.svg" class="h-8" alt="">
38+
</div>
39+
<form class="card" action="" method="get">
40+
<div class="card-body p-6">
41+
<div class="card-title">Login to your account</div>
42+
<div class="mb-2">
43+
<label class="form-label">Email address</label>
44+
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"
45+
placeholder="Enter email" autocomplete="off">
46+
</div>
47+
<div class="mb-2">
48+
<a href="./forgot-password.html" class="float-right small">I forgot password</a>
49+
<label class="form-label">
50+
Password
51+
</label>
52+
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password" autocomplete="off">
53+
</div>
54+
<div class="mb-2">
55+
<label class="custom-control custom-checkbox">
56+
<input type="checkbox" class="custom-control-input" ./>
57+
<span class="custom-control-label">Remember me</span>
58+
</label>
59+
</div>
60+
<div class="form-footer">
61+
<button type="submit" class="btn btn-primary btn-block">Sign in</button>
62+
</div>
63+
</div>
64+
</form>
65+
<div class="text-center text-muted">
66+
Don't have account yet? <a href="./register.html">Sign up</a>
67+
</div>
68+
</div>
69+
</div>
70+
</div>
71+
</div>
72+
</div>
73+
74+
<script src="<?= base_url('assets/admin/libs/jquery/dist/jquery.slim.min.js') ?>"></script>
75+
<script src="<?= base_url('assets/admin/libs/bootstrap/dist/js/bootstrap.bundle.min.js') ?>"></script>
76+
<script src="<?= base_url('assets/admin/js/tabler.min.js') ?>"></script>
77+
</body>
78+
</html>

0 commit comments

Comments
 (0)