Dre4m Shell
Server IP : 103.6.199.200  /  Your IP : 3.139.72.152
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/ajk_kelas.php
<?php require_once('Connections/mentorpbs.php'); ?>

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

<?php

    $colname_Recordset_cpw = "-1";
    if (isset($_SESSION['MM_Password'])) {
      $colname_Recordset_cpw = $_SESSION['MM_Password'];
    }
    mysqli_select_db($mentorpbs,$database_mentorpbs);
    $query_Recordset_cpw = "SELECT * FROM ajk_kelas WHERE password='$colname_Recordset_cpw'";
    $Recordset_cpw = mysqli_query($mentorpbs,$query_Recordset_cpw) or die(mysqli_error());
    $row_Recordset_cpw = mysqli_fetch_assoc($Recordset_cpw);
    $totalRows_Recordset_cpw = mysqli_num_rows($Recordset_cpw);

?>

<!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></title>

            <style type="text/css">
                <!--
                .style1 {
                  font-size: 24px;
                  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('smheader02_ajkkelas.php') ?>
            </div>    
    
            <!-- ***** Kandungan akan skrol -->
            <div class="content"> 


            <div align="center" class="style1">KEMASKINI AHLI JAWATANKUASA KELAS<br>
                KOHORT 2024 / 2025
            </div>

              <p align="center"></p>

              <form 
                  action='' method="post" name="form1" id="form1">
                  <table align="center">
                      <tr valign="baseline">
                          <td nowrap="nowrap" align="right">Nama Guru:</td>
                          <td><?php echo $_SESSION['MM_Username']; ?></td>
                      </tr>

                      <tr valign="baseline">
                          <td nowrap="nowrap" align="right">Kelas:</td>
                          <td><?php echo $row_Recordset_cpw['namakelas']; ?></td>
                      </tr>
					  
					  <!-- input kemaskini -->
							  <tr valign="baseline">
								  <td nowrap="nowrap" align="right">
									  Ketua Kelas:
								  </td>
								  <td>
									  <input type="text" name="ketuakelas" size="40" value='<?php echo $row_Recordset_cpw['ketuakelas']; ?>' >
								  </td>
							  </tr>

							  <tr>
								  <td nowrap="nowrap" align="right">
									  Penolong Ketua Kelas:
								  </td>
								  <td>
									  <input type="text" name="penketuakelas" size="40" value='<?php echo $row_Recordset_cpw['penketuakelas']; ?>'>
								  </td>					  
							  </tr>
							  
							  <tr>
								  <td nowrap="nowrap" align="right">
									  Setiausaha:
								  </td>
								  <td>
									  <input type="text" name="setiausaha" size="40" value='<?php echo $row_Recordset_cpw['setiausaha']; ?>'>
								  </td>									  
							  </tr>
							  
							  <tr>
								  <td nowrap="nowrap" align="right">
									  Penolong Setiausaha:
								  </td>
								  <td>
									  <input type="text" name="pensetiausaha" size="40" value='<?php echo $row_Recordset_cpw['pensetiausaha']; ?>'>
								  </td>									  
							  </tr>
							  
							  <tr>
								  <td nowrap="nowrap" align="right">
									  Bendahari:
								  </td>
								  <td>
									  <input type="text" name="bendahari" size="40" value='<?php echo $row_Recordset_cpw['bendahari']; ?>'>
								  </td>									  
							  </tr>		

							  <tr>
								  <td nowrap="nowrap" align="right">
									  Penolong Bendahari:
								  </td>
								  <td>
									  <input type="text" name="penbendahari" size="40" value='<?php echo $row_Recordset_cpw['penbendahari']; ?>'>
								  </td>									  
							  </tr>									  

							  <tr>
								  <td nowrap="nowrap" align="right">
									  Ketua Kebersihan:
								  </td>
								  <td>
									  <input type="text" name="ketuakebersihan" size="40" value='<?php echo $row_Recordset_cpw['ketuakebersihan']; ?>'>
								  </td>									  
							  </tr>		

							  <tr>
								  <td nowrap="nowrap" align="right">
									  Ketua Keceriaan:
								  </td>
								  <td>
									  <input type="text" name="ketuakeceriaan" size="40" value='<?php echo $row_Recordset_cpw['ketuakeceriaan']; ?>'>
								  </td>									  
							  </tr>		

							  <tr>
								  <td nowrap="nowrap" align="right">
									  Ketua Keselamatan:
								  </td>
								  <td>
									  <input type="text" name="ketuakeselamatan" size="40" value='<?php echo $row_Recordset_cpw['ketuakeselamatan']; ?>'>
								  </td>									  
							  </tr>	

							  <tr>
								  <td nowrap="nowrap" align="right">
									  Ketua Kebajikan:
								  </td>
								  <td>
									  <input type="text" name="ketuakebajikan" size="40" value='<?php echo $row_Recordset_cpw['ketuakebajikan']; ?>'>
								  </td>									  
							  </tr>

							  <tr>
								  <td nowrap="nowrap" align="right">
									  Ketua Akademik:
								  </td>
								  <td>
									  <input type="text" name="ketuaakademik" size="40" value='<?php echo $row_Recordset_cpw['ketuaakademik']; ?>'>
								  </td>									  
							  </tr>

					  <!-- input kemaskini -->
					  
					  
                      <tr valign="baseline">
                          <td 
                              colspan="2" align="right" nowrap="nowrap">
                                  <div align="center">
                                      <input type="submit" name="btn_upd_pw" value="KEMAS KINI" />
                                  </div>
                          </td>
                      </tr>

                    </table>

                    <input type="hidden" name="myid" value="<?php echo $row_Recordset_cpw['password']; ?>" />
                    <input type="hidden" name="MM_update" value="form1" />
                    <!-- ambiguious code repeat for guna_id hidden textbox -->
					
					
              </form>

        <p>&nbsp;</p>

        </div>
        <!-- Skrol kandungan -->

    </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
        # menyemak kewujudan data POST pada butang update
        if(!empty($_POST['btn_upd_pw']))
        {
            # mengambil data POST
            
            $idsaya=$_POST['myid'];
            $ketuakelas=$_POST['ketuakelas'];
            $penketuakelas=$_POST['penketuakelas'];
            $setiausaha=$_POST['setiausaha'];
            $pensetiausaha=$_POST['pensetiausaha'];
            $bendahari=$_POST['bendahari'];
            $penbendahari=$_POST['penbendahari'];
            $ketuakebersihan=$_POST['ketuakebersihan'];
            $ketuakeceriaan=$_POST['ketuakeceriaan'];
            $ketuakeselamatan=$_POST['ketuakeselamatan'];
            $ketuakebajikan=$_POST['ketuakebajikan'];
			$ketuaakademik=$_POST['ketuaakademik'];
			
            # arahan untuk kemaskini
            mysqli_select_db($mentorpbs,$database_mentorpbs);
            $arahan_sql_update="update ajk_kelas SET 
			                   ketuakelas='$ketuakelas',
			                   penketuakelas='$penketuakelas',
			                   setiausaha='$setiausaha',
			                   pensetiausaha='$pensetiausaha',
			                   bendahari='$bendahari',
			                   penbendahari='$penbendahari',
			                   ketuakebersihan='$ketuakebersihan',
			                   ketuakeceriaan='$ketuakeceriaan',
			                   ketuakeselamatan='$ketuakeselamatan',
			                   ketuakebajikan='$ketuakebajikan',
							   ketuaakademik='$ketuaakademik'
							   where password='$idsaya'";

            #melaksanakan proses kemaskini bersyarat
            if(mysqli_query($mentorpbs,$arahan_sql_update))
            {
                # proses kemaskini berjaya
                echo "<script>alert('Kemaskini Berjaya');
                window.location.href='login_gurukelas_ajkkelas.php';
                </script>";
            }
            else
            {
                # proses kemaskini gagal
                echo "<script>alert('Kemaskini gagal');
                window.location.href='logout_gurukelas_ajkkelas.php';
                </script>";
            }
        }

    ?>

Anon7 - 2022
AnonSec Team