nasoa

Untitled

Nov 8th, 2013
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.18 KB | None | 0 0
  1. <?php session_start();
  2.  
  3. if(isset($_SESSION['domain'])){
  4. //koneksi terpusat
  5. include "conn.php";
  6. $username=$_SESSION['username'];
  7. $id_user=$_SESSION['id_user'];
  8. $domain=$_SESSION['domain'];
  9.  
  10. if (!login_check()) {
  11. //jika idle
  12. ?><script language="javascript">document.location.href='logout.php?mode=timeout';</script><?php
  13. exit(0);
  14. }
  15. ?>
  16. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  17. <html xmlns="http://www.w3.org/1999/xhtml">
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  20. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
  21. <!--untuk menu-->
  22. <title><?php echo $title;?></title>
  23. <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
  24. <link href="templatemo_style_fix_menu.css" rel="stylesheet" type="text/css">
  25. <link href="css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css">
  26. <link href="http://netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet" type="text/css">
  27. <script src="http://code.jquery.com/jquery.js"></script>
  28. <script src="js/bootstrap.min.js"></script>
  29. <body>
  30.  
  31. <!-- untuk validasi form data -->
  32. <script src="validasi.js" type="text/javascript"></script>
  33. <!-- untuk ajax domain -->
  34. <script language="javascript" src="ajax.js"></script>
  35.  
  36. <!-- checkbox styling script -->
  37. <script src="js/jquery/ui.core.js" type="text/javascript"></script>
  38. <script src="js/jquery/ui.checkbox.js" type="text/javascript"></script>
  39. <script src="js/jquery/jquery.bind.js" type="text/javascript"></script>
  40. <script type="text/javascript">
  41. $(function(){
  42. $('input').checkBox();
  43. $('#toggle-all').click(function(){
  44. $('#toggle-all').toggleClass('toggle-checked');
  45. $('#mainform input[type=checkbox]').checkBox('toggle');
  46. return false;
  47. });
  48. });
  49. </script>
  50.  
  51. <![if !IE 7]>
  52.  
  53.  
  54. <!-- styled file upload script -->
  55. <script src="js/jquery/jquery.filestyle.js" type="text/javascript"></script>
  56. <script type="text/javascript" charset="utf-8">
  57. $(function() {
  58. $("input.file_1").filestyle({
  59. image: "images/forms/choose-file.gif",
  60. imageheight : 21,
  61. imagewidth : 78,
  62. width : 310
  63. });
  64. });
  65. </script>
  66.  
  67. <!-- Tooltips -->
  68. <script src="js/jquery/jquery.tooltip.js" type="text/javascript"></script>
  69. <script src="js/jquery/jquery.dimensions.js" type="text/javascript"></script>
  70. <script type="text/javascript">
  71. $(function() {
  72. $('a.info-tooltip ').tooltip({
  73. track: true,
  74. delay: 0,
  75. fixPNG: true,
  76. showURL: false,
  77. showBody: " - ",
  78. top: -35,
  79. left: 5
  80. });
  81. });
  82. </script>
  83.  
  84.  
  85. <!-- date picker script -->
  86. <link rel="stylesheet" href="css/datePicker.css" type="text/css" />
  87. <script src="js/jquery/date.js" type="text/javascript"></script>
  88. <script src="js/jquery/jquery.datePicker.js" type="text/javascript"></script>
  89. <script type="text/javascript" charset="utf-8">
  90. $(function()
  91. {
  92.  
  93. // initialise the "Select date" link
  94. $('#date-pick')
  95. .datePicker(
  96. // associate the link with a date picker
  97. {
  98. createButton:false,
  99. startDate:'01/01/2005',
  100. endDate:'31/12/2020'
  101. }
  102. ).bind(
  103. // when the link is clicked display the date picker
  104. 'click',
  105. function()
  106. {
  107. updateSelects($(this).dpGetSelected()[0]);
  108. $(this).dpDisplay();
  109. return false;
  110. }
  111. ).bind(
  112. // when a date is selected update the SELECTs
  113. 'dateSelected',
  114. function(e, selectedDate, $td, state)
  115. {
  116. updateSelects(selectedDate);
  117. }
  118. ).bind(
  119. 'dpClosed',
  120. function(e, selected)
  121. {
  122. updateSelects(selected[0]);
  123. }
  124. );
  125.  
  126. var updateSelects = function (selectedDate)
  127. {
  128. var selectedDate = new Date(selectedDate);
  129. $('#d option[value=' + selectedDate.getDate() + ']').attr('selected', 'selected');
  130. $('#m option[value=' + (selectedDate.getMonth()+1) + ']').attr('selected', 'selected');
  131. $('#y option[value=' + (selectedDate.getFullYear()) + ']').attr('selected', 'selected');
  132. }
  133. // listen for when the selects are changed and update the picker
  134. $('#d, #m, #y')
  135. .bind(
  136. 'change',
  137. function()
  138. {
  139. var d = new Date(
  140. $('#y').val(),
  141. $('#m').val()-1,
  142. $('#d').val()
  143. );
  144. $('#date-pick').dpSetSelected(d.asString());
  145. }
  146. );
  147.  
  148. // default the position of the selects to today
  149. var today = new Date();
  150. updateSelects(today.getTime());
  151.  
  152. // and update the datePicker to reflect it...
  153. $('#d').trigger('change');
  154. });
  155. </script>
  156.  
  157. <!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
  158. <script src="js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
  159. <script type="text/javascript">
  160. $(document).ready(function(){
  161. $(document).pngFix%2
  162. });
  163. </script>
  164.  
  165. <body>
  166. <header>
  167. <div class="navbar navbar-inverse navbar-fixed-top">
  168. <div class="navbar-inner">
  169. <div class="container">
  170. <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  171. <span class="icon-bar"></span>
  172. <span class="icon-bar"></span>
  173. <span class="icon-bar"></span>
  174. </button>
  175. <a class="brand" href="/" target="_parent">home</a>
  176. <nav class="nav-collapse collapse">
  177. <ul class="nav pull-right">
  178.  
  179. <?php
  180. if($domain=='admin' || $domain=='superadmin'){
  181. include "menu-admin.php";
  182. }
  183.  
  184. if($domain=='guru'){
  185. include "menu-guru.php";
  186. }
  187.  
  188. if($domain=='siswa'){
  189. include "menu-siswa.php";
  190. }
  191.  
  192. if($domain=='ortu'){
  193. include "menu-ortu.php";
  194. }
  195.  
  196. ?>
  197.  
  198. <div class="span4">
  199. <!-- start content-outer ........................................................................................................................START -->
  200. <div id="content-outer">
  201. <!-- start content -->
  202. <div id="content">
  203. <h4 align="center">&laquo; <font color="#666666">Semester : <?php echo ucwords($semester);?> - Tahun Ajaran : <?php echo $tahun_ajaran;?> &raquo;</h4>
  204. <?php include "content.php"; ?> </font>
  205.  
  206. <div class="clear">&nbsp;</div>
  207.  
  208. </div>
  209. <!-- end content -->
  210. <div class="clear">&nbsp;</div>
  211. </div>
  212. <!-- end content-outer........................................................END -->
  213.  
  214. <div class="clear">&nbsp;</div>
  215.  
  216. <!-- start footer -->
  217. <div id="footer">
  218. <!-- <div id="footer-pad">&nbsp;</div> -->
  219. <!-- start footer-left -->
  220. <div id="footer-left">
  221. Admin Skin by <span id="spanYear"></span> <a href="http://www.netdreams.co.uk" target="_blank">www.netdreams.co.uk</a> &copy; Copyright All rights reserved.</div>
  222. <!-- end footer-left -->
  223. <div class="clear">&nbsp;</div>
  224. </div>
  225. <!-- end footer -->
  226.  
  227. </body>
  228. </html>
  229.  
  230. <?php
  231. }else{
  232. session_destroy();
  233. header('Location:index.php?status=Silahkan Login');
  234. }
Advertisement
Add Comment
Please, Sign In to add comment