Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php session_start();
- if(isset($_SESSION['domain'])){
- //koneksi terpusat
- include "conn.php";
- $username=$_SESSION['username'];
- $id_user=$_SESSION['id_user'];
- $domain=$_SESSION['domain'];
- if (!login_check()) {
- //jika idle
- ?><script language="javascript">document.location.href='logout.php?mode=timeout';</script><?php
- exit(0);
- }
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
- <!--untuk menu-->
- <title><?php echo $title;?></title>
- <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
- <link href="templatemo_style_fix_menu.css" rel="stylesheet" type="text/css">
- <link href="css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css">
- <link href="http://netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet" type="text/css">
- <script src="http://code.jquery.com/jquery.js"></script>
- <script src="js/bootstrap.min.js"></script>
- <body>
- <!-- untuk validasi form data -->
- <script src="validasi.js" type="text/javascript"></script>
- <!-- untuk ajax domain -->
- <script language="javascript" src="ajax.js"></script>
- <!-- checkbox styling script -->
- <script src="js/jquery/ui.core.js" type="text/javascript"></script>
- <script src="js/jquery/ui.checkbox.js" type="text/javascript"></script>
- <script src="js/jquery/jquery.bind.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(function(){
- $('input').checkBox();
- $('#toggle-all').click(function(){
- $('#toggle-all').toggleClass('toggle-checked');
- $('#mainform input[type=checkbox]').checkBox('toggle');
- return false;
- });
- });
- </script>
- <![if !IE 7]>
- <!-- styled file upload script -->
- <script src="js/jquery/jquery.filestyle.js" type="text/javascript"></script>
- <script type="text/javascript" charset="utf-8">
- $(function() {
- $("input.file_1").filestyle({
- image: "images/forms/choose-file.gif",
- imageheight : 21,
- imagewidth : 78,
- width : 310
- });
- });
- </script>
- <!-- Tooltips -->
- <script src="js/jquery/jquery.tooltip.js" type="text/javascript"></script>
- <script src="js/jquery/jquery.dimensions.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(function() {
- $('a.info-tooltip ').tooltip({
- track: true,
- delay: 0,
- fixPNG: true,
- showURL: false,
- showBody: " - ",
- top: -35,
- left: 5
- });
- });
- </script>
- <!-- date picker script -->
- <link rel="stylesheet" href="css/datePicker.css" type="text/css" />
- <script src="js/jquery/date.js" type="text/javascript"></script>
- <script src="js/jquery/jquery.datePicker.js" type="text/javascript"></script>
- <script type="text/javascript" charset="utf-8">
- $(function()
- {
- // initialise the "Select date" link
- $('#date-pick')
- .datePicker(
- // associate the link with a date picker
- {
- createButton:false,
- startDate:'01/01/2005',
- endDate:'31/12/2020'
- }
- ).bind(
- // when the link is clicked display the date picker
- 'click',
- function()
- {
- updateSelects($(this).dpGetSelected()[0]);
- $(this).dpDisplay();
- return false;
- }
- ).bind(
- // when a date is selected update the SELECTs
- 'dateSelected',
- function(e, selectedDate, $td, state)
- {
- updateSelects(selectedDate);
- }
- ).bind(
- 'dpClosed',
- function(e, selected)
- {
- updateSelects(selected[0]);
- }
- );
- var updateSelects = function (selectedDate)
- {
- var selectedDate = new Date(selectedDate);
- $('#d option[value=' + selectedDate.getDate() + ']').attr('selected', 'selected');
- $('#m option[value=' + (selectedDate.getMonth()+1) + ']').attr('selected', 'selected');
- $('#y option[value=' + (selectedDate.getFullYear()) + ']').attr('selected', 'selected');
- }
- // listen for when the selects are changed and update the picker
- $('#d, #m, #y')
- .bind(
- 'change',
- function()
- {
- var d = new Date(
- $('#y').val(),
- $('#m').val()-1,
- $('#d').val()
- );
- $('#date-pick').dpSetSelected(d.asString());
- }
- );
- // default the position of the selects to today
- var today = new Date();
- updateSelects(today.getTime());
- // and update the datePicker to reflect it...
- $('#d').trigger('change');
- });
- </script>
- <!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
- <script src="js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $(document).pngFix%2
- });
- </script>
- <body>
- <header>
- <div class="navbar navbar-inverse navbar-fixed-top">
- <div class="navbar-inner">
- <div class="container">
- <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="brand" href="/" target="_parent">home</a>
- <nav class="nav-collapse collapse">
- <ul class="nav pull-right">
- <?php
- if($domain=='admin' || $domain=='superadmin'){
- include "menu-admin.php";
- }
- if($domain=='guru'){
- include "menu-guru.php";
- }
- if($domain=='siswa'){
- include "menu-siswa.php";
- }
- if($domain=='ortu'){
- include "menu-ortu.php";
- }
- ?>
- <div class="span4">
- <!-- start content-outer ........................................................................................................................START -->
- <div id="content-outer">
- <!-- start content -->
- <div id="content">
- <h4 align="center">« <font color="#666666">Semester : <?php echo ucwords($semester);?> - Tahun Ajaran : <?php echo $tahun_ajaran;?> »</h4>
- <?php include "content.php"; ?> </font>
- <div class="clear"> </div>
- </div>
- <!-- end content -->
- <div class="clear"> </div>
- </div>
- <!-- end content-outer........................................................END -->
- <div class="clear"> </div>
- <!-- start footer -->
- <div id="footer">
- <!-- <div id="footer-pad"> </div> -->
- <!-- start footer-left -->
- <div id="footer-left">
- Admin Skin by <span id="spanYear"></span> <a href="http://www.netdreams.co.uk" target="_blank">www.netdreams.co.uk</a> © Copyright All rights reserved.</div>
- <!-- end footer-left -->
- <div class="clear"> </div>
- </div>
- <!-- end footer -->
- </body>
- </html>
- <?php
- }else{
- session_destroy();
- header('Location:index.php?status=Silahkan Login');
- }
Advertisement
Add Comment
Please, Sign In to add comment