SHOW:
|
|
- or go back to the newest paste.
| 1 | - | <?php |
| 1 | + | <?php |
| 2 | session_start(); | |
| 3 | include 'config/conn.php'; | |
| 4 | include 'config/fungsi.php'; | |
| 5 | include 'content/session.php'; | |
| 6 | $tgl=date("Y-m-d");
| |
| 7 | $jam=date("H:i:s");
| |
| 8 | ?> | |
| 9 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| 10 | <html xmlns="http://www.w3.org/1999/xhtml"> | |
| 11 | <head> | |
| 12 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| 13 | - | <?php include 'lib.php';?> |
| 13 | + | <?php include 'lib.php';?> |
| 14 | <title> | |
| 15 | - | <?php |
| 15 | + | <?php |
| 16 | if(!empty($_REQUEST[page]) or!empty($_REQUEST[act]) ){
| |
| 17 | ?> | |
| 18 | - | SMAN 1 Cigombong LMS : <?php echo ucwords(str_replace('-',' ',$_REQUEST[title]));?>
|
| 18 | + | SMAN 1 Cigombong LMS : <?php echo ucwords(str_replace('-',' ',$_REQUEST[title]));?>
|
| 19 | - | <? |
| 19 | + | |
| 20 | }else{
| |
| 21 | ?> | |
| 22 | SMAN 1 Cigombong LMS | |
| 23 | - | <? |
| 23 | + | |
| 24 | } | |
| 25 | ?> | |
| 26 | </title> | |
| 27 | </head> | |
| 28 | ||
| 29 | <body onload=init() onunload=keluar()> | |
| 30 | - | <?php include 'content/menu_head.php';?> |
| 30 | + | <?php include 'content/menu_head.php';?> |
| 31 | ||
| 32 | - | <div id="menu"><?php include 'content/menu.php';?><div id="nots"></div></div> |
| 32 | + | <div id="menu"><?php include 'content/menu.php';?><div id="nots"></div></div> |
| 33 | <div id="cont"> | |
| 34 | <?php | |
| 35 | if(empty($_SESSION[user])){
| |
| 36 | ?> | |
| 37 | ||
| 38 | <?php | |
| 39 | } | |
| 40 | ?> | |
| 41 | ||
| 42 | <div id="isi" > | |
| 43 | <div id="isidalam1"> | |
| 44 | - | <?php |
| 44 | + | <?php |
| 45 | if(!empty($_REQUEST[page]) or !empty($_REQUEST[act]) ){
| |
| 46 | ||
| 47 | }else{
| |
| 48 | ?> | |
| 49 | - | <?php |
| 49 | + | <?php |
| 50 | if(empty($_SESSION[user])){
| |
| 51 | ?> | |
| 52 | <div id="boxgrey"> | |
| 53 | - | <?php |
| 53 | + | <?php |
| 54 | } | |
| 55 | else | |
| 56 | {
| |
| 57 | ?><div id="boxgrey1"> | |
| 58 | - | <?php } ?> |
| 58 | + | <?php } ?> |
| 59 | <div class="pad"> | |
| 60 | - | <?php |
| 60 | + | <?php |
| 61 | if(empty($_SESSION[user])){
| |
| 62 | ?> | |
| 63 | - | <?php include 'content/login.php';?> |
| 63 | + | <?php include 'content/login.php';?> |
| 64 | - | <? |
| 64 | + | <?php |
| 65 | }else{
| |
| 66 | ?> | |
| 67 | <div style="padding:0; font-weight:bold;"> | |
| 68 | <img src="images/user.gif" width="16" height="16" align="left" style="margin-top:5px; margin-right:7px;" /> | |
| 69 | - | <h4><?php echo $_SESSION[jabatan];?></h4> |
| 69 | + | <h4><?php echo $_SESSION[jabatan];?></h4> |
| 70 | - | <h4 style="font-size:11px;"><?php |
| 70 | + | <h4 style="font-size:11px;"><?php |
| 71 | if($_SESSION[jabatan]=='Siswa'){
| |
| 72 | echo $duser[nama_siswa]; | |
| 73 | } | |
| 74 | elseif($_SESSION[jabatan]=='Guru'){
| |
| 75 | echo $_SESSION[nama]; | |
| 76 | } | |
| 77 | elseif($_SESSION[jabatan]=='Kepsek'){
| |
| 78 | echo $_SESSION[nama]; | |
| 79 | } | |
| 80 | ?></h4> | |
| 81 | ||
| 82 | </div> | |
| 83 | - | <? |
| 83 | + | <?php |
| 84 | } | |
| 85 | ?> | |
| 86 | </div> | |
| 87 | </div> | |
| 88 | <div style="width:100%; clear:both; margin-bottom:10px;"></div> | |
| 89 | - | <? |
| 89 | + | |
| 90 | } | |
| 91 | ?> | |
| 92 | </div> | |
| 93 | ||
| 94 | - | <?php if(!empty($_REQUEST[page]) or!empty($_REQUEST[act]) ){
|
| 94 | + | <?php if(!empty($_REQUEST[page]) or!empty($_REQUEST[act]) ){
|
| 95 | }else{
| |
| 96 | ?> | |
| 97 | <div id="isidalam2"> | |
| 98 | - | <div id="slide"><?php include 'content/slide.php';?></div> |
| 98 | + | <div id="slide"><?php include 'content/slide.php';?></div> |
| 99 | </div> | |
| 100 | <?php | |
| 101 | } ?> | |
| 102 | ||
| 103 | </div> | |
| 104 | ||
| 105 | ||
| 106 | ||
| 107 | <div id="isiinti" class="drop-shadow lifted "> | |
| 108 | <div class="pad"> | |
| 109 | <h4> | |
| 110 | - | <?php |
| 110 | + | <?php |
| 111 | if(!empty($_REQUEST[page]) or!empty($_REQUEST[act]) ){
| |
| 112 | ?> | |
| 113 | - | <?php echo ucwords(str_replace('-',' ',$_REQUEST[title]));?>
|
| 113 | + | <?php echo ucwords(str_replace('-',' ',$_REQUEST[title]));?>
|
| 114 | - | <? |
| 114 | + | <?php |
| 115 | }else{
| |
| 116 | ?> | |
| 117 | Selamat Datang | |
| 118 | - | <? |
| 118 | + | <?php |
| 119 | } | |
| 120 | ?> | |
| 121 | </h4> | |
| 122 | - | <?php |
| 122 | + | <?php |
| 123 | if(!empty($_REQUEST[page]) or!empty($_REQUEST[act]) ){
| |
| 124 | include 'inc.php'; | |
| 125 | }else{
| |
| 126 | include 'content/welcome.php'; | |
| 127 | } | |
| 128 | ?> | |
| 129 | - | <?php |
| 129 | + | <?php |
| 130 | if(!empty($_REQUEST[page]) or!empty($_REQUEST[act]) ){
| |
| 131 | }else{
| |
| 132 | ?> | |
| 133 | <div style="width:100%; clear:both; margin-bottom:10px;"></div> | |
| 134 | - | <?php include 'content/bigbox.php'; |
| 134 | + | <?php include 'content/bigbox.php'; |
| 135 | } | |
| 136 | ?> | |
| 137 | </div> | |
| 138 | </div> | |
| 139 | <div id="foot"> | |
| 140 | <div class="foot">Copyright © 2013 SMAN 1 Cigombong.</div> | |
| 141 | </div> | |
| 142 | <div id="toTop">^ Kembali Ke Atas</div> | |
| 143 | </div> | |
| 144 | ||
| 145 | </body> | |
| 146 | </html> |