]> jfr.im git - z_archive/KronOS.git/blob - application/libraries/Core.php
Moved Core (models -> libraries); changed more things to Json lib
[z_archive/KronOS.git] / application / libraries / Core.php
1 <?php // if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2
3 class Core {
4 public function get_menu() {
5 $menu = array(
6 'Desktop' => '#',
7 'App' => '#',
8 'Logout' => 'javascript:logout();void(0);',
9 'GitHub' => 'https://github.com/mustis/WebOsProject'
10 );
11 return $menu;
12 }
13 public function get_login() {
14 $login_modal = '
15 <div id="loginModal" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
16 <div class="modal-header">
17 <h3 id="myModalLabel">Login</h3>
18 </div>
19 <form class="form-horizontal" method="post" action="javascript:submitLogin();void(0);">
20 <div class="modal-body">
21 <div class="messagebody">
22 <div class="alert alert-block alert-info">
23 <button type="button" class="close" data-dismiss="alert">&times;</button>
24 <strong>Notice!</strong> site is still being developed.
25 </div>
26 </div>
27 <div class="control-group">
28 <label class="control-label" for="inputUsername">Username</label>
29 <div class="controls">
30 <input type="text" id="inputUsername" placeholder="Username">
31 </div>
32 </div>
33 <div class="control-group">
34 <label class="control-label" for="inputPassword">Password</label>
35 <div class="controls">
36 <input type="password" id="inputPassword" placeholder="Password">
37 </div>
38 </div>
39 <div class="control-group">
40 <div class="controls">
41 <label class="checkbox">
42 <input type="checkbox"> Remember me
43 </label>
44 </div>
45 </div>
46 </div>
47 <div class="modal-footer">
48 <button type="submit" class="btn btn-primary">Login</button>
49 </div>
50 </form>
51 </div>';
52 return $login_modal;
53 }
54 }
55 ?>