403Webshell
Server IP : 202.29.229.35  /  Your IP : 3.135.246.64
Web Server : Apache
System : Linux aapanel2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User : www ( 1001)
PHP Version : 5.5.38
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/www.ivecr2.ac.th/research/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/www.ivecr2.ac.th/research/js//departShowall.php
<?php 
	@session_start();
	 error_reporting(0);
	if($_SESSION['r_statuslogin'] != 1){
		echo '<META HTTP-EQUIV="Refresh" CONTENT="0;URL=Loginadmin.php">';
		exit();
	}
 		
		include("connect/connect.php");
					
	?>
 <link rel='stylesheet' type='text/css' href='css/bootstrap.min.css' />
<script type='text/javascript' src='js/jquery.js'></script>
<script type='text/javascript' src='js/bootstrap.min.js'></script>
<script src='js/formValidation.min.js'></script>
<script src='js/framework/bootstrap.min.js'></script>
<script src='js/moment-with-locales.js'></script>
<script src='js/bootstrap-datetimepicker.js'></script>
<link href='css/bootstrap-datetimepicker.css' rel='stylesheet'>
<script src='js/bootbox.min.js'></script>
<script>
$(document).ready(function() {
$('#frm_grade').formValidation();
});
function chkdel(id){
if(confirm('Do you want to Delete >>> '+id+' <<<\r\nPlease... Confirm to Delete !!!  ')){
return true;
}else{
return false;
}
}

$(document).on('click', '.confirm_delete', function(e) {
var show = $(this).data('show');
e.preventDefault();

bootbox.confirm({
title:'Confirm for Delete!!!',
//size: 'small',
message: 'Do you want to Delete <<< <b>'+ show+' </b>>>> ?',
buttons: {
confirm: {
label:'Confirm',
className:'btn-success'
},
cancel: {
label:'Cancel',
className:'btn-danger'
}

},
callback: function(result){
if (result) {
window.location.href = e.target.href;
}
}
});

});
</script>



      <a href="?na=mainmenu&id=1" style="text-align:right">
      <button type="button" class="btn btn-default" ><i class="fa fa-undo" aria-hidden="true"></i> &nbsp;ย้อนกลับ</button></a> 
      
    <a href="?na=departImpart" class="btn btn-success"><i class="fa fa-plus-square" aria-hidden="true"></i> &nbsp;นำเข้าข้อมูลแผนกวิชา</a>
<!---<center>จำนวนนักเรียนทั้งหมด&nbsp;&nbsp;<?php echo number_format($totalstd);?>&nbsp;&nbsp;คน</center>---->
<!-- <a href="?na=depShowall">
<button type="button" class="btn btn-warning" onclick="submitFormSearch('searchNoRoom');"><i class="fa fa-search" aria-hidden="true"></i> แผนกวิชาทั้งหมด&nbsp;&nbsp;<?php echo number_format($numsublist);?>&nbsp;&nbsp;แผนกวิชา</button></a> --> 

<hr />

<form name="studentForm" id="eduForm" method="post" action="" class="form-horizontal form-validate">
						<div class="form-group">
						<div class="form-group">
						  <label class="control-label col-md-2">เลือกแผนกวิชา</label>
										<div class="col-sm-3">
											<select name="stdgro" id="stdgro" class="form-control"><option value="">--ทั้งหมด--</option>
                                            <?php 
													$sqlsegro="select * from depart order by depcode desc";
													$ressultgro=mysql_query($sqlsegro);
													while($rssecgro=mysql_fetch_array($ressultgro)){
											
											?>
											  <option value="<?php echo $rssecgro['depcode'];?>"><?php echo $rssecgro['depcode']." : ".$rssecgro['depname'];?></option>
                                                <?php
													}
												?>
											</select>	
										</div>
  </div>
                                    
                                    <div class="form-group">
										<label class="control-label col-sm-2"></label>
   									<div class="col-sm-3">
     								  <a href="?na=depShowall"><button type="submit" class="btn btn-success" > <i class="fa fa-search" aria-hidden="true"> ค้นหา</i></button></a>
                                      <a href="?na=depShowall"><button type="button" class="btn btn-default"> <i class="fa fa-refresh" aria-hidden="true"> เริ่มใหม่</i></button></a>
                                       <input name="statuSubmit" type="hidden" id="statuSubmit" value="1" />
	  								 </div>
  									</div>
</form>
                            
	<?php
                    $statuSubmit= $_POST['statuSubmit'];

					$seachgro =$_POST['stdgro'];
					
				if($statuSubmit == 1){
				
				
					if( $seachgro == ""){
							$sqlstdtitle="select * from depart order by depcode DESC";
					}else{ 
							$sqlstdtitle="select * from depart where  depcode ='$seachgro' order by depcode ASC";
						}

					$resultstdtitle=mysql_query($sqlstdtitle);
					$numsublist=mysql_num_rows($resultstdtitle);
		?>
<h3>ข้อมูลแผนกวิชา &nbsp;&nbsp;<?php echo number_format($numsublist);?>&nbsp;&nbsp;แผนกวิชา</h3>
<!----------------ตารางแสดงข้อมูล------------
						            <table cellspacing="0" width="100%" class="table table-hover table-bordered table-gray">----->
                                        <table cellspacing="0" width="100%" class="table table-hover table-bordered grid-hundred table-gray">
						                 <thead>		                 	
						                 	<tr>
								                <th width="50" class="text-center">ที่</th>
								                <th width="100"><div align="left">รหัสแผนกวิชา</th>
								                <th width="150"><div align="center">แผนกวิชา</div></th>
								                <th width="180"><div align="center">สาขาวิชา</div></th>
								                <th width="180"><div align="center">สาขางาน</div></th>
                                                <th width="50"><div align="center">ระดับชั้น</div></th>
                                                <th width="120"><div align="center">หัวหน้าแผนกวิชา</div></th>
								                <th width="170"><div align="center">การจัดการ</div></th>
								             </tr>
						                </thead>
                                        
						                <tbody>
				<?php
                 $n=0;
					while($rsstdtitle=mysql_fetch_array($resultstdtitle)){
						$n++;
						
					if($bg == "#D5EEFF") {
						$bg = "#F0F9FF";
					} else {
						$bg = "#D5EEFF";
					}
                                  		?>
						                	<tr style="text-align:center">	             
					                        <td align="center"><?php 	echo $n; ?></td>
					                        <td align="center"><?php echo $rsstdtitle['depcode']; ?></td>
					                        <td align="left"><?php echo $rsstdtitle['depname']; ?></td>
					                        <td align="left">&nbsp;&nbsp;<?php echo $rsstdtitle['depname2']; ?></td>
                                            <td align="left"><?php echo $rsstdtitle['depwork']; ?></td>
					                        <td align="left">&nbsp;&nbsp;<?php echo $rsstdtitle['levelcla']; ?></td>
                                              <td align="left">&nbsp;&nbsp;<?php echo $rsstdtitle['header']; ?></td>
					                        <td>
					                        	<a href="?na=departEditFrm&depcode=<?php echo $rsstdtitle['depcode'];?>"  title="แก้ไขข้อมูลแผนกวิชา"  class="lightwindow page-options"><button type="button" class="btn btn-primary btn-xs"><i class="fa fa-edit"></i> แก้ไข</button></a>
                                               <!--<a href="?na=depDelete&depcode=<?php echo $rsstdtitle['depcode'];?>" title="ลบข้อมูลแผนกวิชา" >
					                        	<button type="button" onclick="submitFormRemove('');" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i> ลบข้อมูล</button>
                                               </a> -->
                                               
                                               <a href="?na=depDelete&depcode=<?php echo $rsstdtitle['depcode'];?>" title='Delete' class='confirm_delete btn btn-danger btn-xs' data-show="<?php echo $rsstdtitle['depcode']; ?>">Del</a>
                                                
											</td>
					                     </tr>
                                       <?php }//End while select student ?>
                                       </tbody>
									</table>
   
       <?php
		}else{//end if statusSubmit
			echo "";
		}
	?>                             
<p>&nbsp;</p>

Youez - 2016 - github.com/yon3zu
LinuXploit