Advertisement
Guest User

Untitled

a guest
Dec 29th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.85 KB | None | 0 0
  1. <?php
  2.  
  3. include_once(dirname(__FILE__).'/global.php');
  4. $SKIN_ENIGMA = Skin_Enigma::instance();
  5. $current_skin = $SKIN_ENIGMA->paths->skin_dir;
  6.  
  7. $sec = 'main';
  8.  
  9. // load the panel helper
  10. $this->load->helper('panel');
  11.  
  12. // set up the locations of the icons
  13. $panel = array(
  14. 'inbox' => array('src' => APPFOLDER.'/views/'.$current_skin.'/'.$sec.'/images/panel-mail.png'),
  15. 'writing' => array('src' => APPFOLDER.'/views/'.$current_skin.'/'.$sec.'/images/panel-writing.png'),
  16. 'dashboard' => array('src' => APPFOLDER.'/views/'.$current_skin.'/'.$sec.'/images/panel-dashboard.png'),
  17. );
  18.  
  19. $button_login = array(
  20. 'class' => 'button-signin',
  21. 'value' => 'submit',
  22. 'type' => 'submit',
  23. 'name' => 'submit',
  24. 'content' => ucwords(lang('actions_login'))
  25. );
  26.  
  27. ?><!DOCTYPE html>
  28. <html lang="en">
  29. <head>
  30. <meta charset="utf-8">
  31. <title><?php echo $title;?></title>
  32.  
  33. <meta name="description" content="<?php echo $this->config->item('meta_desc');?>" />
  34. <meta name="keywords" content="<?php echo $this->config->item('meta_keywords');?>" />
  35. <meta name="author" content="<?php echo $this->config->item('meta_author');?>" />
  36.  
  37. <?php echo $_redirect;?>
  38.  
  39. <?php echo $SKIN_ENIGMA->assets->get_inherited_link_tags($sec); ?>
  40.  
  41. <!--[if lt IE 9]>
  42. <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
  43. <![endif]-->
  44.  
  45. <?php include_once($this->config->item('include_head_main'));?>
  46.  
  47. <script type="text/javascript" src="<?php echo $SKIN_ENIGMA->paths->get_inherited_url('jquery.blockUI.js'); ?>"></script>
  48.  
  49. <?php echo $javascript;?>
  50.  
  51. <script type="text/javascript">
  52. $(document).ready(function(){
  53. $('body').click(function(event){
  54. if (! $(event.target).closest('div').hasClass('signin-panel'))
  55. {
  56. $.unblockUI();
  57. }
  58. });
  59.  
  60. $('a#userpanel').unbind('click').click(function(){
  61. $.blockUI({
  62. message: $('#panel'),
  63. css: {
  64. border: '0',
  65. cursor: 'cursor',
  66. background: 'transparent',
  67. width: '800px',
  68. top: '10%',
  69. left: '50%',
  70. margin: '0 0 0 -400px'
  71. }
  72. });
  73.  
  74. return false;
  75. });
  76. });
  77.  
  78. // if the escape key is pressed, close the menu
  79. $(document).keyup(function(event){
  80. if (event.keyCode == 27) {
  81. $.unblockUI();
  82. }
  83. });
  84. </script>
  85.  
  86. <?php echo $SKIN_ENIGMA->assets->get_link_tags($sec); ?>
  87.  
  88. </head>
  89. <body>
  90. <noscript>
  91. <div class="system_warning"><?php echo lang_output('text_javascript_off', '');?></div>
  92. </noscript>
  93.  
  94. <?php if (Auth::is_logged_in()): ?>
  95. <div id="panel" class="hidden">
  96. <div class="panel-body">
  97. <table class="table100">
  98. <tbody>
  99. <tr>
  100. <td class="panel_1 align_top"><?php echo $panel_1;?></td>
  101. <td class="panel_spacer"></td>
  102. <td class="panel_2 align_top"><?php echo $panel_2;?></td>
  103. <td class="panel_spacer"></td>
  104. <td class="panel_3 align_top"><?php echo $panel_3;?></td>
  105. </tr>
  106. </tbody>
  107. </table>
  108. </div>
  109. </div>
  110. <?php endif;?>
  111.  
  112. <header>
  113.  
  114. <div class="wrapper">
  115.  
  116. <?php if ( ! Auth::is_logged_in()): ?>
  117. <div class="signin-panel corner-upper-left corner-lower-left corner-lower-right">
  118. <?php echo anchor('main/index', '<span style=\"float: left;\"><h1><font color=white>USS</font><font color=#00A1E3>PHOENIX</font></h1><h2 class="sub"><font color=#F67F00>Criminal Investigations</font></h2><h2 class="sub-alt"></h2></span>'); ?>
  119.  
  120. <?php echo form_open('login/check_login');?>
  121. <table>
  122. <tbody>
  123. <tr>
  124. <td>
  125. <?php echo ucwords(lang('labels_email_address'));?><br>
  126. <input type="text" name="email" class="signin-panel-input">
  127. </td>
  128. <td>
  129. <?php echo ucfirst(lang('labels_password'));?><br>
  130. <input type="password" name="password" class="signin-panel-input">
  131. </td>
  132. <td class="align_bottom"><?php echo form_button($button_login);?></td>
  133. </tr>
  134. <tr>
  135. <td>
  136. <input id="remember" type="checkbox" name="remember" value="yes">
  137. <label for="remember"><?php echo ucfirst(lang('actions_remember').' '.lang('labels_me'));?></label>
  138. </td>
  139. <td><?php echo anchor('login/reset_password', lang('login_forgot'));?></td>
  140. <td></td>
  141. </tr>
  142. </tbody>
  143. </table>
  144. <?php echo form_close();?>
  145. </div>
  146. <?php else: ?>
  147. <a href="<?php echo site_url('login/logout');?>" class="signin corner-upper-left corner-upper-right corner-lower-left corner-lower-right"><?php echo ucfirst(lang('actions_logout'));?></a>
  148.  
  149. <div class="logged-in-controls">
  150. <?php if (Auth::is_logged_in()): ?>
  151. <?php echo panel_inbox(true, true, false, '(x)', img($panel['inbox']));?> &nbsp;
  152. <?php echo panel_writing(true, true, false, '(x)', img($panel['writing']));?> &nbsp;
  153. <?php echo panel_dashboard(false, img($panel['dashboard']));?>
  154. <?php endif;?>
  155. </div>
  156. <?php endif;?>
  157. </div>
  158.  
  159. <div id="menu">
  160. <nav class="nav-main">
  161. <?php echo $nav_main;?>
  162. </nav>
  163. </div>
  164.  
  165. <div style="clear: both;"></div>
  166.  
  167. </div>
  168.  
  169. </header>
  170.  
  171. <div class="wrapper">
  172.  
  173. <div id="container">
  174.  
  175. <div class="nav-section">
  176. <?php echo $nav_sub;?>
  177. </div>
  178.  
  179. <div id="content">
  180. <?php echo $flash_message;?>
  181. <?php echo $content;?>
  182. <?php echo $ajax;?>
  183.  
  184. <div style="clear:both;"></div>
  185. </div>
  186.  
  187. </div>
  188.  
  189. <footer>
  190. Powered by <strong><?php echo APP_NAME;?></strong> from <a href="http://www.anodyne-productions.com" target="_blank">Anodyne Productions</a> |
  191. <?php echo anchor('main/credits', 'Site Credits');?>
  192. </footer>
  193.  
  194. </div>
  195.  
  196. </body>
  197. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement