?
Path : /home/admin/domains/happytokorea.com/public_html_bk/promice/Admin/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/promice/Admin/bannerkrSave.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]; if($_FILES["productsphoto"]["name"] != "") { $name=$_FILES['productsphoto']['name']; $tmp=$_FILES['productsphoto']["tmp_name"]; $date_time=date("Y-m-d H:i:s"); $oldname=explode(".",$name); $ext = ""; $ext = ".".$oldname[count($oldname)-1]; $photo_1 =date('YmdHis').$ext; copy($tmp,"../images/images_flash_banner_index/".$photo_1); }else{ $photo_1 = ""; } mysql_query("INSERT INTO flash_banner_index_kr (id,TitleImg,PathImg,UrlLink,OrderImg,detail) values('', '$_POST[title]','$photo_1','$_POST[urllink]','$_POST[orderimg]','$_POST[detail]')") or die ("Cannot Add Database"); ?> <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"> </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="57%"><? echo "$headtxt | $e_date $etime"; ?><br> <div align="left">“ : <a href="Main.php"></a> --> <a href="ProductsType.php">Mainpage</a>--><strong> Banner </strong></div></td> <td width="43%"> <div align="right">Hello <? echo "<u>$adminname</u>"; ?> <br> [ <a href="ChangePass.php">ChangePass</a> ] <a href="logout.php">logout</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> <br> <img src="../images/note_accept.png" width="64" height="64"><br> <br> Save Already<br> <br> <a href="bannerkr.php">Goto Banner</a> | <a href="Main.php">Main page</a><br> <br> <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>