Cylul007 Webshell
Uname
:
Linux ns7.thaihispeed.com 3.10.0-693.11.1.el7.x86_64 #1 SMP Mon Dec 4 23:52:40 UTC 2017 x86_64
PHP
:
5.3.29
on
apache2handler
Time
:
24 Nov 2024 21:12:16
Path :
/
home
/
tassabanlo
/
domains
/
lomsak.go.th
/
public_html
/
File Upload :
New File
New Folder
Current File : /home/tassabanlo/domains/lomsak.go.th/public_html/information2_formedit.php
Download
HOME
<?php require_once('Connections/Myconnection.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $colname_editin1 = "-1"; if (isset($_GET['num_in2'])) { $colname_editin1 = $_GET['num_in2']; } mysql_select_db($database_Myconnection, $Myconnection); $query_editin1 = sprintf("SELECT * FROM information2 WHERE num_in2 = %s", GetSQLValueString($colname_editin1, "int")); $editin1 = mysql_query($query_editin1, $Myconnection) or die(mysql_error()); $row_editin1 = mysql_fetch_assoc($editin1); $totalRows_editin1 = mysql_num_rows($editin1); $maxRows_editin2 = 10; $pageNum_editin2 = 0; if (isset($_GET['pageNum_editin2'])) { $pageNum_editin2 = $_GET['pageNum_editin2']; } $startRow_editin2 = $pageNum_editin2 * $maxRows_editin2; mysql_select_db($database_Myconnection, $Myconnection); $query_editin2 = "SELECT * FROM information2"; $query_limit_editin2 = sprintf("%s LIMIT %d, %d", $query_editin2, $startRow_editin2, $maxRows_editin2); $editin2 = mysql_query($query_limit_editin2, $Myconnection) or die(mysql_error()); $row_editin2 = mysql_fetch_assoc($editin2); if (isset($_GET['totalRows_editin2'])) { $totalRows_editin2 = $_GET['totalRows_editin2']; } else { $all_editin2 = mysql_query($query_editin2); $totalRows_editin2 = mysql_num_rows($all_editin2); } $totalPages_editin2 = ceil($totalRows_editin2/$maxRows_editin2)-1; ?> <!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" /> <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" /> <title>สำนักงานเทศบาลเมืองหล่มสัก</title> </head> <? include "checklogin.php"; include "connect.php"; include "dropdown menuadmin.php"; mysql_query("SET NAMES UTF8"); $num_in2 = $_GET['num_in2']; $sql="SELECT * FROM information2 WHERE num_in2 = '$num_in2'"; $result = mysql_query($sql,$conn) or die("3. ไม่สามารถประมวลผลคำสั่งได้") .mysql_error(); $rs=mysql_fetch_array($result); ?> <style> * { box-sizing: border-box; } input[type=text], select, textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; resize: vertical; } label { padding: 12px 12px 12px 0; display: inline-block; } input[type=submit] { background-color: #4CAF50; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; } input[type=submit]:hover { background-color: #45a049; } .container { border-radius: 5px; background-color: #f2f2f2; padding: 20px; } .col-25 { float: left; width: 25%; margin-top: 6px; } .col-75 { float: left; width: 75%; margin-top: 6px; } .row:after { content: ""; display: table; clear: both; } .col-25, .col-75, input[type=submit] { width: 1024; margin-top: 0; } </style> </head> <body> <div class="container" align="center" > <p>แก้ไข้</p> <form action="informaition2_edit.php"method="post" enctype="multipart/form-data" name="form1" id="form1"> <input name="num_in2" type="hidden" id="num_in2" value="<?php echo $rs['num_in2']; ?>" /> <div class="row"> <div class="col-25"> <label for="fname">หัวเรื่อง</label> </div> <div class="col-75"> <input name="name_in2" type="text" id="name_in2" value="<?php echo $rs['name_in2']; ?>"> </div> </div> <div class="row"> <div class="col-75"></div> </div> <div class="row"> <input type="file" name="pdf" id="pdf"><br> <div class="col-75"></div> <div class="row"> <p> <input type="submit" value="Submit"> </p> </div> </form> </body> </html> <?php mysql_free_result($editin1); mysql_free_result($editin2); ?>
Copyright © 2018 - Powered By CytoXploit