AnonSec Shell
Server IP : 172.67.216.113  /  Your IP : 104.23.243.33   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/cp648411/public_html/kainumber.com/mybackend/expire/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home2/cp648411/public_html/kainumber.com/mybackend/expire/list - Copy.php
<?php require_once("../include/class.php");?>
<?php require_once("../include/header.php");?>
<?php require_once("../include/nav_top.php");?>
<?php require_once("../include/sidebar.php");?>
<?php include("table_name.php");?>

<SCRIPT LANGUAGE="JavaScript">
<!-- 	
<!-- Begin
function CheckAll(chk)
{
for (i = 0; i < chk.length; i++)
	chk[i].checked = true ;
}

function UnCheckAll(chk)
{
for (i = 0; i < chk.length; i++)
	chk[i].checked = false ;
}
//  End -->
</script>

<div id="main-content">
  <div class="container-fluid">
  
    <ul class="breadcrumb">
      <li><a href="../<?php echo $name_folder; ?>/list.php"> ซิมรายเดือน หมดอายุ</a><span class="divider">&raquo;</span></li>
      <li class="active">List</li>
    </ul>
    
    <div class="row-fluid">
			<div class="span12">
				<div class="widget-block">
					<div class="widget-head">
                    <?php
				
					
					$date_d = 1;//date('d');
					$date_dend = date('t');
					$date_m = date('m');
					$date_y = date('Y');
					$year = $date_y + 543;
					
					$month = $date_m;
					if($_POST['year'] <> '')
					{
						$date_y = $_POST['year']-543;
						$year = $_POST['year'];
					}
					if($_POST['month'] <> '')
					{
						$month = $_POST['month'];
						$date_dend = date( "t", strtotime($date_y."-".$month."-01") ); 
					}
					
					
					$date_from = $date_y.'-'.$month.'-'.$date_d;
					$date_to = $date_y.'-'.$month.'-'.$date_dend;
					
					
					
					$secrch = " typenumber = 1 AND expirationdate >= '".$date_from."' AND expirationdate <= '".$date_to."'";
					
					
					
					$list = array('table'=>$name_table,'where'=>$secrch,'order'=> "ORDER BY expirationdate ASC");				  
					$view = $view_db->view($list);
					$result = $view_db->q_re($view);
					
					$num_rows = mysqli_num_rows($result);
					$month_thai = array('1'=>"มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม");
                    ?>
                   
                   
                   
						<h5>รายการ : ของเดือน <?php echo $month_thai[$month] . ' ' . $year; ?> </h5>
						<div class="widget-control pull-right">
							
						</div>
					</div>
                     
					<div class="widget-content">
						<div class="widget-box">
                        
                       <?php
                            if($_SESSION['er']=='true')
							{
								?>
                                <div class="alert alert-success fade in">
                                <button data-dismiss="alert" class="close" type="button">×</button>
                                <strong>บันทึก</strong> เสร็จแล้วร้อยค่ะ
                                </div>
                                <?php
							}
							 if($_SESSION['er']=='de_true')
							{
								?>
                                <div class="alert alert-success fade in">
                                <button data-dismiss="alert" class="close" type="button">×</button>
                                <strong>ลบข้อมูล</strong> เสร็จแล้วร้อยค่ะ
                                </div>
                                <?php
							}
							if($_SESSION['er']=='false')
							{
								?>
                                <div class="alert alert-error fade in">
                                <button data-dismiss="alert" class="close" type="button">×</button>
                                <strong>ระบบขัดข้อง</strong> กรุณาทำรายการใหม่ค่ะขอบคุณค่ะ
                                </div>
                                <?php
							}
							
							?>
                            <form action="list.php" method="post">
                            <div style="padding:15px">
                            ค้นหา : 
                            	<select name="month">
                                	<?php
                                    for($i=1;$i<=12;$i++)
									{
										?><option value="<?php echo $i ?>" <?php if($month == $i){?>selected<?php }?>><?php echo $month_thai[$i]?></option><?php
									}
									?>
                                </select>
                                <?php $date_y_th1 = $year + 1;?>
                                <select name="year">
                                	<?php
                                    for($i=1;$i<=5;$i++)
									{
										?><option value="<?php echo $date_y_th1-$i ?>" <?php if($year == $date_y_th1-$i){?>selected<?php }?>><?php echo $date_y_th1-$i ?></option><?php
									}
									?>
                                </select>
                                <input type="submit" class="btn" value="ค้าหา" style="margin-top:-9px;">
                             </div> 
                             </form>  
                            <form name="myform_expire">
                        	<div style="padding:15px;color:#F00;">จำนวนรายการทั้งหมด : <?php echo $num_rows;?> รายการ</div>
                            
							<table class="data-tbl-boxy table" style="font-size:12px;border:0px solid #F00;">
							<thead>
							<tr>
								<th width="5%">
									 ลำดับ
								</th>
								<th width="9%">
									เบอร์มือถือ
								</th>
                                <th width="9%">
									 ประเภทเบอร์
								</th>
                                <th width="9%">
									 ราคาข่าย
								</th>
                                <th width="7%">
									 เครือข่าย
								</th>
                                <th width="7%">
									 สถานะ
								</th>
                                <th width="7%">
									 สถานะราคา
								</th>
                                <th width="5%">
									 สถานะเผยแพร่
								</th>
                                <th width="5%">
									 โดย
									</th>
                                <th width="5%">
									วันที่หมดอายุ
								</th>
                                <th width="5%">
									วันที่
								</th>
								<th width="5%">
									การจัดการ
								</th>
							</tr>
							</thead>
							<tbody>
                            <?php
							$num=1;
							while($row = $view_db->q_ro($result))
							{
								?>
                                <tr>
                                  <td><?php echo $num; ?>.</td>
                                  <td><input type="checkbox" name="check_list" value=""> &nbsp; <?php echo $row['phonenumber']; ?></td>
                                  <td>
									  <?php if($row['typenumber'] == 1){?>แบบเติมเงิน<?php }?>
                                      <?php if($row['typenumber'] == 2){?>แบบรายเดือน<?php }?>
                                  </td>
                                  <td><?php echo $row['price']; ?> ฿ </td>
                                  <td><?php 
								   $sql_nw = array('table'=>'mobilenetwork','where'=>"id = '".$row['mobilenetwork']."'");
                                   $view_nw = $view_db->view($sql_nw);
                                   $row_nw = $view_db->q($view_nw);
								  ?> 
                                  <img src="../../redbag/mobilenetwork/<?php echo $row_nw['image'] ?>"></td>
                                   <td>
                                    	<?php 
											if($row['status_number'] == 1)
											{
												?>ว่าง<?php
											}
											if($row['status_number'] == 2)
											{
												?>ขายแล้ว<?php	
											}
											if($row['status_number'] == 3)
											{
												?>กำลังถูกจอง<?php	
											}
										?>
                                    </td>
                                     <td>
                                    	<?php 
											if($row['statusprice'] == 1)
											{
												?> <a href="statusprice.php?id=<?php echo $row['id']?>&s=2" title="แสดงราคา">
                                                <i class="dashboard-icons-colors check_sl"></i></a><?php
											}
											else
											{
												?> <a href="statusprice.php?id=<?php echo $row['id']?>&s=1" title="ไม่แสดงราคา">
                                                <i class="dashboard-icons-colors busy_sl"></i></a><?php	
											}
										?>
                                    </td>
                                     <td>
                                    	<?php 
											if($row['status'] == 1)
											{
												?> <a href="status.php?id=<?php echo $row['id']?>&s=0" title="เผยแพร่">
                                                <i class="dashboard-icons-colors check_sl"></i></a><?php
											}
											else
											{
												?> <a href="status.php?id=<?php echo $row['id']?>&s=1" title="หยุดการเผยแพร่">
                                                <i class="dashboard-icons-colors busy_sl"></i></a><?php	
											}
										?>
                                    </td>
                                    <?php
									if($_SESSION["admin_cn_type"] == 3)
									{
									}
									else
									{
										?>
										<td>
										<?php 
                                        $sql_adt = array('table'=>'admin,admin_type','where'=>"admin_type.id = admin.type AND admin.id = '".$row['by_admin']."'");
                                        $view_adt = $view_db->view($sql_adt);
                                        $row_adt = $view_db->q($view_adt);
                                        echo $row_adt['name'] .' / '. $row_adt['username'];
                                        ?></td>
										<?php	
									}
									?>   
                                    <td><?php echo $util_class->day_th_re($row['expirationdate']) ?></td>                                  
                                    <td><?php echo $util_class->day_m_th_re($row['up_date']) ?></td> 
                                    <td>
                                    <a href="edit.php?id=<?php echo $row['id']?>" title="แก้ไข<?php echo $row['name_th']; ?>"><i class="black-icons pencil"></i></a> &nbsp; 
                                    
                                    </td>
							</tr>
                                <?php
								$num++;
							}
							?>
							</tbody>
							</table>
                            <div style="padding:15px;">
                            <input type="checkbox" name="" value="Check All" onClick="CheckAll(document.myform_expire.check_list)"> &nbsp;  เลือกเบอร์ทั้งหมด
                            </div>
                            </form>
                            
						</div>
					</div>
				</div>
			</div>
		</div>
    
    
  </div>
</div>
<?php unset($_SESSION['er']);?>
<?php require_once("../include/footer_js.php");?>
</body>
</html>

Anon7 - 2022
AnonSec Team