Psyduck - 可達鴨 之 鴨力山大 v0.1

Current Path : home/irplbiz/www/lnselgallery/control/
Upload File :
Current File : /home/irplbiz/www/lnselgallery/control/add.php

<?php

session_start();

include('../inc/config.php');

if($_SESSION['loggedin']=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=iso-8859-1" />

<link href="../css/style.css" rel="stylesheet" type="text/css" />

<title>Welcome to Our  Website::Admin Panel</title>

</head>



<?php

$msg = "";

if(@$_POST["Submit"] == "Submit Left Panel Add")

{

	$image1l = $_FILES['image1l']['name'];

	copy($_FILES['image1l']['tmp_name'],"photo/{$_FILES['image1l']['name']}");



	$image2l = $_FILES['image2l']['name'];

	copy($_FILES['image2l']['tmp_name'],"photo/{$_FILES['image2l']['name']}");



	$image3l = $_FILES['image3l']['name'];

	copy($_FILES['image3l']['tmp_name'],"photo/{$_FILES['image3l']['name']}");



	$image4l = $_FILES['image4l']['name'];

	copy($_FILES['image4l']['tmp_name'],"photo/{$_FILES['image4l']['name']}");



	$ins = mysql_query("INSERT INTO `left_panel`(`id`,`image1l`,`link1l`,`image2l`,`link2l`,`image3l`,`link3l`,`image4l`,`link4l`)

	 values('','$image1l','".$_POST['link1l']."','$image2l','".$_POST['link2l']."','$image3l','".$_POST['link3l']."','$image4l','".$_POST['link4l']."')");

	echo $ins;

	

	$msg = "Insert Left Panel Add Successfully";

}

elseif(@$_POST["Submit"] == "Submit Center Panel Add")

{

	$image1 = $_FILES['image1']['name'];

	copy($_FILES['image1']['tmp_name'],"photo/{$_FILES['image1']['name']}");



	$image2 = $_FILES['image2']['name'];

	copy($_FILES['image2']['tmp_name'],"photo/{$_FILES['image2']['name']}");



	$image3 = $_FILES['image3']['name'];

	copy($_FILES['image3']['tmp_name'],"photo/{$_FILES['image3']['name']}");

	

	$image4 = $_FILES['image4']['name'];

	copy($_FILES['image4']['tmp_name'],"photo/{$_FILES['image4']['name']}");



	$image5 = $_FILES['image5']['name'];

	copy($_FILES['image5']['tmp_name'],"photo/{$_FILES['image5']['name']}");



	$image6 = $_FILES['image6']['name'];

	copy($_FILES['image6']['tmp_name'],"photo/{$_FILES['image6']['name']}");



	$image7 = $_FILES['image7']['name'];

	copy($_FILES['image7']['tmp_name'],"photo/{$_FILES['image7']['name']}");



	$image8 = $_FILES['image8']['name'];

	copy($_FILES['image8']['tmp_name'],"photo/{$_FILES['image8']['name']}");



	$image9 = $_FILES['image9']['name'];

	copy($_FILES['image9']['tmp_name'],"photo/{$_FILES['image9']['name']}");



	$ins = mysql_query("INSERT INTO `center_panel`(`id`,`image1`,`link1`,`image2`,`link2`,`image3`,`link3`,`image4`,`link4`,`image5`,`link5`,`image6`,`link6`,`image7`,`link7`,`image8`,`link8`,`image9`,`link9`)

	 values('','$image1','".$_POST['link1']."','$image2','".$_POST['link2']."','$image3','".$_POST['link3']."','$image4','".$_POST['link4']."','$image5','".$_POST['link5']."','$image6','".$_POST['link6']."','$image7','".$_POST['link7']."','$image8','".$_POST['link8']."','$image9','".$_POST['link9']."')");

	echo $ins;

	

	$msg = "Insert Center Panel Add Successfully";

}

elseif(@$_POST["Submit"] == "Submit Right Panel Special Offer")

{

	$image1r = $_FILES['image1r']['name'];

	copy($_FILES['image1r']['tmp_name'],"photo/{$_FILES['image1r']['name']}");



	$image2r = $_FILES['image2r']['name'];

	copy($_FILES['image2r']['tmp_name'],"photo/{$_FILES['image2r']['name']}");



	$image3r = $_FILES['image3r']['name'];

	copy($_FILES['image3r']['tmp_name'],"photo/{$_FILES['image3r']['name']}");



	$ins = mysql_query("INSERT INTO `right_panel`(`id`,`image1r`,`link1r`,`image2r`,`link2r`,`image3r`,`link3r`)

	 values('','$image1r','".$_POST['link1r']."','$image2r','".$_POST['link2r']."','$image2r','".$_POST['link2r']."')");

	echo $ins;

	

	$msg = "Insert Right Panel Special Offer Successfully";

}

else{}

?>





<body  style="background:#10a2bc">

<table width="1002" border="0" cellspacing="0" cellpadding="0" align="center"  style="padding:10px;">

  <tr>

    <td colspan="3" align="center"><h3 class="style2">Welcome to Admin Panel Of  Tender Management Portal </h3></td>

  </tr>

  <tr>

    <td width="200">&nbsp;</td>

    <td align="right" width="10">&nbsp;</td>

    <td align="right" width="792">&nbsp;</td>

  </tr>

  <tr>

    <td width="200" valign="top" bgcolor="#0dbad9" style="border:#000099 1px solid;"><?php include('includes/sidebar.php'); ?></td>

    <td width="10" style="background-color:none;">&nbsp;</td>

    <td width="792" bgcolor="#FFFFFF" valign="top" style="border:#000099 1px solid;" align="right">

		<table  width="100%" border="0" cellpadding="6" cellspacing="1" style="font-family:Arial, Helvetica, sans-serif;

			font-size:12px; color:#333333;">

    <tr>

	  	<td align="center" style="color: green; font-weight: bold;">

			<?php echo $msg; ?>		</td>

	  </tr>

      <tr>

        <td colspan="4"  style="background:#0dbad9; font-size:18px; color:#FFFFFF; padding:10px 0 10px 10px;"><span class="style3">Add Banners</span></td></tr>

      <tr><td><form action="" method="post" name="form"  enctype="multipart/form-data">

<table width="100%">

	      <tr>

	        <td colspan="2" align="center"><b>LEFT PANEL ADVERTISE</b></td>

	        <td colspan="2" align="center"><b>CENTER PANEL ADVERTISE</b></td>

	        <td colspan="2" align="center"><b>RIGHT PANEL SPECIAL OFFER</b></td>

          </tr>

	      <tr>

	        <td style="border:1px solid #ccc;">&nbsp;</td>

	        <td style="border:1px solid #ccc;">&nbsp;</td>

	        <td style="border:1px solid #ccc;">&nbsp;</td>

	        <td style="border:1px solid #ccc;">&nbsp;</td>

	        <td style="border:1px solid #ccc;">&nbsp;</td>

	        <td style="border:1px solid #ccc;">&nbsp;</td>

          </tr>

	      <tr>

	        <td style="border:1px solid #ccc;">Image1</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image1l"/></td>

	        <td style="border:1px solid #ccc;">Image1 </td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image1"/></td>

	        <td style="border:1px solid #ccc;">Image1</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image1r"/></td>

          </tr>

	      <tr>

	        <td style="border:1px solid #ccc;">Link 1</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link1l"/></td>

	        <td style="border:1px solid #ccc;">Link1 </td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link1"/></td>

	        <td style="border:1px solid #ccc;">Link 1</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link1r"/></td>

          </tr>

	      <tr>

	        <td style="border:1px solid #ccc;">Image2</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image2l"/></td>

	        <td style="border:1px solid #ccc;">Image2</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image2"/></td>

	        <td style="border:1px solid #ccc;">Image2</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image2r"/></td>

          </tr>

	      <tr>

	        <td style="border:1px solid #ccc;">Link 2</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link2l"/></td>

	        <td style="border:1px solid #ccc;">Link 2</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link2"/></td>

	        <td style="border:1px solid #ccc;">Link 2</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link2r"/></td>

          </tr>

	      <tr>

	        <td style="border:1px solid #ccc;">Image3</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image3l"/></td>

	        <td style="border:1px solid #ccc;">Image3</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image3"/></td>

	        <td style="border:1px solid #ccc;">Image3</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image3r"/></td>

          </tr>

	      <tr>

	        <td style="border:1px solid #ccc;">Link 3</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link3l"/></td>

	        <td style="border:1px solid #ccc;">Link 3</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link3"/></td>

	        <td style="border:1px solid #ccc;">Link 3</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link3r"/></td>

          </tr>

	      <tr>

	        <td style="border:1px solid #ccc;">Image4</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image4l"/></td>

	        <td style="border:1px solid #ccc;">Image4</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image4"/></td>

            <td colspan="2" style="border:1px solid #ccc;" align="center"><input name="Submit" type="submit" class="submit1" value="Submit Right Panel Special Offer"  style="width:235px;"/></td> 

          </tr>

	      <tr>

	        <td style="border:1px solid #ccc;">Link 4</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link4l"/></td>

	        <td style="border:1px solid #ccc;">Link 4</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link4"/></td>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

          </tr>

	      <tr>

	        <td colspan="2" style="border:1px solid #ccc;" align="center"><input name="Submit" type="submit" class="submit1" value="Submit Left Panel Add" style="width:185px;"/></td>

	        <td style="border:1px solid #ccc;">Image5</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image5"/></td>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

          </tr>

	      <tr>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

	        <td style="border:1px solid #ccc;">Link 5</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link5"/></td>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

          </tr>

	      <tr>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

	        <td style="border:1px solid #ccc;">Image6</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image6"/></td>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

          </tr>

	      <tr>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

	        <td style="border:1px solid #ccc;">Link 6</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link6"/></td>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

          </tr>

	      <tr>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

	        <td style="border:1px solid #ccc;">Image7</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image7"/></td>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

          </tr>

	      <tr>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

	        <td style="border:1px solid #ccc;">Link 7</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link7"/></td>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

          </tr>

	      <tr>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

	        <td style="border:1px solid #ccc;">Image8</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image8"/></td>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

          </tr>

	      <tr>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

	        <td style="border:1px solid #ccc;">Link 8</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link8"/></td>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

          </tr>

	      <tr>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

	        <td style="border:1px solid #ccc;">Image9</td>

	        <td style="border:1px solid #ccc;"><input type="file" name="image9"/></td>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

          </tr>

	      <tr>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

	        <td style="border:1px solid #ccc;">Link 9</td>

	        <td style="border:1px solid #ccc;"><input type="text" name="link9"/></td>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

          </tr>

	      <tr>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

            <td colspan="2" style="border:1px solid #ccc;" align="center"><input name="Submit" type="submit" class="submit1" value="Submit Center Panel Add" style="width:185px;"/></td>

	        <td colspan="2" style="border:1px solid #ccc;">&nbsp;</td>

          </tr>



        </table>	  </form></td></tr>

      

	  </table>

	  

	

   </td>

  </tr>

</table>

</body>

</html>

<?php

}

else

{

echo "Incorrect entry procedure!!!Go back to Home page";

}

?>