Jump to content

Application Skinning


Garcia

Recommended Posts

Hello!

 

I am skinning an application for a client and encountering many errors  :-\.

 

In firefox under http://www.garciawebmedia.com/search/search.php?search=maroc&type=Images you can notice a small 1px problem.

 

Search File:

<script language="javascript" type="text/javascript">
<!--

var win=null;

function NewWindow(mypage,myname,w,h,scroll,pos){

	if(pos=="random")

		{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;

		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}

	if(pos=="center")

		{LeftPosition=(screen.width)?(screen.width-w)/2:100;

		TopPosition=(screen.height)?(screen.height-h)/2:100;}

	else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';

win=window.open(mypage,myname,settings);}

// -->

</script>



<?php 


/*--------------------------------------------------+



|													 |



| Copyright © 2006 http://www.inoutscripts.com/      |



| All Rights Reserved.								 |



| Email: contact@inoutscripts.com                    |



|                                                    |



+---------------------------------------------------*/
?><?php 
$src_note="Results found in <a href=\"http://www.altavista.com/\">AltaVista</a>";

$special=""; 

$engine=$_REQUEST['type'];

include_once("admin/config.inc.php");

//$source="AltaVista";

$source="special";

$source=$mysql->echo_one("select source from ".$tableprefix."inoutmse_engine where name='$engine'");

$tot_count=$mysql->echo_one("select count from ".$tableprefix."inoutmse_engine where name='$engine'");

$tot_count+=1;

mysql_query("update ".$tableprefix."inoutmse_engine set count='$tot_count' where name='$engine'");

//echo "hi".$source;

//$source=$engine;

//if($source="AltaVista")

// $search

// include_once("admin/config.inc.php");

// Grabbing the Search Terms

//$index=$_REQUEST['index'];

$search=$_REQUEST['search'];

$index=0;

if(isset($_REQUEST['index']))

$index=$_REQUEST['index'];	

$search=str_replace("\\","",$search);

$search=str_replace("\'","'",$search);

//$search="cricket";

//Finding Total Value

?>

<?php 

if($filter_badwords==1){

$fp=fileOpen("admin/settings/filter.txt","r");

$ch="";

$abc="";

while(!feof($fp))

	{	

$ch=fgetc($fp);

		while($ch!="\n" && $ch!="\r\n" && !feof($fp))

			{

			$abc.=$ch;

			$ch=fgetc($fp);

			}

		if($abc!="") $search=str_replace(strtolower($abc),"",strtolower($search));

		$abc="";

	}
}
?>

<?php

	$search=str_replace(" ","+",$search);

	include_once("url_replaces.inc.php");

	include_once("total_replaces.inc.php");

	$search=str_replace("+"," ",$search);

	$once=0;

	set_time_limit(0);

	$no=3;

	$search=str_replace(' ','+',$search);

	$special=str_replace(":","%3A",$special);

	//$fp=$faltanews;

	$cannotfind=0;

	$foundonce=0;

	$t="";

	$result="";

	$noresults=1;

	include_once("headers.inc.php");

	// $results_display.='<table>';

	if($total==0 || $total=="" || $index*10 > $total || str_replace(" ","",str_replace("+","",$search))=="") {

 	$ct="";

	$fs=fileOpen($server_dir."admin/templates/error.tpl.html","r");

	while(!feof($fs)) $ct.=fgetc($fs);

	$results_display.=$ct;	

	// $results_display.='</table>';

}
else
{ 
	//echo "result".$results_display;
	//echo "hi2";

	$total_display="Showing <span class=\"total_range\">".(($index*10)+1)."</span> - <span class=\"total_range\">";

	?>

	 <?php if((($index*10)+10)<=$total) { 	$total_display.= ($index*10)+10; } else { $total_display.= $total; } ?>

	 <?php $total_display.="</span> of around <span class=\"total_results\">" ?><?php $total_display.= number_format($total); $total_display.="</span> results for <span class=\"search_term\">"  ?> 

	 <?php $total_display.=str_replace("+"," ",$search)."</span>"; ?><?php //echo "hi2";

// include("url_replaces.inc.php");

	/*$contents = '';

	while (!feof($fp)) {

	  $contents .= fread($fp, 8192);

	}

	echo "contents".$contents;

	exit;*/

	//while((!feof($fp))&&($cannotfind==0)&&$noresults<=10)

while((!feof($fp)))

 {  

	$ch=fgetc($fp);

	$t="";

	if($ch==$b1)

		{ //echo "hi";

		$t=$t.$ch;

		$ch=fgetc($fp);

		if($ch==$b2)

			{

			$t=$t.$ch;

			$ch=fgetc($fp);

			if($ch==$b3)

				{ //echo "hi";

				$i=0;

				$match="";

				while(!feof($fp)&&$i<strlen($scheck))

					{

					$match=$match.fgetc($fp);

					$i=$i+1;

					}

				if($match==$scheck)

				{ //echo "hi";

				$t=$t.$ch;

				$start=$start.$t.$match;

				$result="";

				$result=$result.$start;

				while($cannotfind==0&&(!feof($fp)))

					{

					$foundonce=0;

					$ch=fgetc($fp);

					if($ch==$e1)

						{

						$result=$result.$ch;

						$ch=fgetc($fp);

						if($ch==$e2)

							{

							$result=$result.$ch;
							$ch=fgetc($fp);

							//echo "Source=".$source."<br>";
							//echo  "ch=".$ch;
							//echo  "e3=".$e3."<br>";
							// $e3 = "t";
							//echo "engine =". $engine ;

							if($ch==$e3)

								{

								$result=$result.$ch;

								$i=0;

								$match="";

								//if($engine != "Audio"){

								while(!feof($fp)&&$i<strlen($echeck))

								{

									$match=$match.fgetc($fp);

									$i=$i+1;
								}

								//}

							 if($match==$echeck)

									{

									$result=$result.$match;

									$result=$result.$end;

									//echo "$result <br>";

									//echo "<hr><hr>Source=".$result."<hr><hr>";

									include("result_replaces.inc.php");

									include("link_replaces.inc.php");

							?>

<?php

									$results_display.='	<table cellpadding="0" ><tr> <td width="0%"  valign="top">';

									if($show_thumbs==1){

										$results_display.='<img src="http://open.thumbshots.org/image.pxf?url='.$link.'" border="0" onload="if (this.width>50) this.border=1; this.alt=\'Thumbnails by Thumbshots.org\';">  </td><td width="96%"  valign="top">'; 

									}else {

										$results_display.=' </td> <td width="96%" >';

									}

?> <?php

								  if($term_bold==1)

								  include("termstyle.php"); 

								// echo $link;

								// echo "hi";

	 $results_display.= "$result"; 

 if($show_mail=="1") {

 		 if($engine=="News")

		$results_display.=" ";

 //Send link url to the popup window. 

 $results_display.='<img src="images/mail.gif" height="16" width="16" align="top"> <a href="recommend.popup.php?link='.urlencode($link).'&result='.urlencode('http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']).'" onclick="NewWindow(this.href,\'0\',\'450\',\'450\',\'no\',\'center\');return false" onfocus="this.blur()" class="popup">Email Link</a> ';

 }			

								 //if($engine=="Wikipedia")

								 //$link="wikilink.php?link=".$link;

								//echo $engine;

								 if(($quick_look==1) && ($engine!="Wikipedia")) {

								 if($engine=="Audio")

								 $results_display.="<br>";

								 include("qlook.php"); 

 }

 ?>	 

 <?php $results_display.='</td> <td width="4%"> </td> </tr> <tr> <td> </td><td> </td><td> </td> </tr> ';

 if($show_separator=="1") {

$results_display.='	 <tr> <td colspan="3" bgcolor="#CCCCCC"><img src="images/spacer.gif" width="1" height="1"></td> </tr><tr> <td colspan="3">  </td></tr> ';

 }

 $results_display.='</table>'; 

 ?>

 <?php

										$noresults=$noresults+1;

									break;

									}

								else

									{

									$result=$result.$match;

									}

								}

							}

							if(strlen($result>700))

						{

						echo "overflow";

						$cannotfind=1;

						break;

						}

						}

						if($foundonce==1)

						break;

						$result=$result.$ch;

					}

				 }

				}

			}

		}

 }	

?>

 <?php

if(1)

{

?> 

 <?php

	if ($noresults>=2)

	{ 

	?> 

<?php 

$search=str_replace("'","\'",$search);

//include("admin/rel_terms.php");

$search=str_replace("\'","'",$search);

?>

<?php

}

// $engine=$_REQUEST['type'];

?>

 <?php $count=$_REQUEST["index"]; if($count>=1){ ?>

 <?php $footerlinks_display.=' <a href="search.php?type='.$engine.'&c=1&index='; ?><?php $footerlinks_display.=(--$count); $count++; ?><?php $footerlinks_display.='&search='; ?><?php $footerlinks_display.="$search"."\">"; ?><?php $footerlinks_display.="Previous"; ?><?php $footerlinks_display.='</a> ';?>

 <?php } ?>

	<?php

	$set=1;

	for($i=($count-5);$i<($count+;$i++)

		{

		if($i>0&& $i<=(($total)/(10))+1)

			{

			if($set==1) { $footerlinks_display.="| "; $set=2; }

			if(($index)==($i-1))

			{

			?>

			<?php

			$footerlinks_display.=" ".$i." |";

			}

			else

			{

			?> <?php $footerlinks_display.=' <a href="search.php?type='.$engine.'&c=1&index='; ?><?php $footerlinks_display.=($i-1); $footerlinks_display.='&search=';  ?><?php $footerlinks_display.= "$search"."\">"; ?><?php $footerlinks_display.="$i"; ?><?php $footerlinks_display.='</a> |';?>

			<?php

			}

			}

		}

	?>

	<?

	if($total=="" || $total==0)

	$total=0;

	 if($total>=(($index*10)+10))

	{

	 ?>

 <?php $footerlinks_display.=' <a href="search.php?type='.$engine.'&c=1&index='; ?><?php $footerlinks_display.= (++$count); $footerlinks_display.='&search='; ?><?php $footerlinks_display.="$search"."\">"; ?><?php $footerlinks_display.= "Next"."</a>"; ?>

<?php } 

 else

 {

echo "";
 }
 ?>

<?php
}
if($noresults==1) 
{

$ct="";

$fp=fileOpen($server_dir."admin/templates/error.tpl.html","r");

while(!feof($fp)) $ct.=fgetc($fp);

$results_display.=$ct;

// $results_display.='</table>';

}	}

// $results_display.='</table>';

?>

<?php 
print "
<div id='logo'>
<img src='images/logo.gif' width='239' height='55' alt=''>
</div>	
";

print "
<div id='navbackground2'>
<ul>
";

if ($_GET["type"] == "Maroc") 
print "
<li class='col1'>
<a href='search.php?search=$search&type=Maroc' ><div class='font'>Maroc</div></a></li> ";
else {
print "
<li class='col2'>
<a href='search.php?search=$search&type=Maroc' ><div class='font'>Maroc</div></a></li> ";
} 

if ($_GET["type"] == "Web") 
print "
<li class='col1'>
<a href='search.php?search=$search&type=Web' ><div class='font'>Web</div></a></li> ";
else {
print "
<li class='col2'>
<a href='search.php?search=$search&type=Web' ><div class='font'>Web</div></a></li> ";
} 

if ($_GET["type"] == "Images") 
print "
<li class='col1'>
<a href='search.php?search=$search&type=Images' ><div class='font'>Images</div></a></li> ";
else {
print "
<li class='col2'>
<a href='search.php?search=$search&type=Images' ><div class='font'>Images</div></a></li> ";
} 

if ($_GET["type"] == "News") 
print "
<li class='col1'>
<a href='search.php?search=$search&type=News' ><div class='font'>News</div></a></li> ";
else {
print "
<li class='col2'>
<a href='search.php?search=$search&type=News' ><div class='font'>News</div></a></li> ";
} 

if ($_GET["type"] == "Kids") 
print "
<li class='col1'>
<a href='search.php?search=$search&type=Kids' ><div class='font'>Kids</div></a></li> ";
else {
print "
<li class='col2'>
<a href='search.php?search=$search&type=Kids' ><div class='font'>Kids</div></a></li> ";
} 

print "
</ul>
</div></div>
";

if($_REQUEST['type']=="Kids") {

print "
<div id='mg1' >
<div id='searchcontent'>
<form name='form1' method='get' action='redir.php'>
<input name='search' type='text' id='search' value='"; if(isset($_REQUEST['search'])) echo $_REQUEST['search']; print "'size='60'> <input name='type' type='hidden' id='type' value='Kids'> <input type='submit' class='button' name='Submit' value='Search Kids !'>
</div>
<br/><br/>
<div class='total'>$total_display</div>
</div>
"; 

}

if($_REQUEST['type']=="Maroc") {

print "
<div id='mg1' >
<div id='searchcontent'>
<form name='form1' method='get' action='redir.php'>
<input name='search' type='text' id='search' value='"; if(isset($_REQUEST['search'])) echo $_REQUEST['search']; print "'size='60'> <input name='type' type='hidden' id='type' value='Maroc'> <input type='submit' name='Submit' value='Search Maroc !'>
</div>
<br/><br/>
<div class='total'>$total_display</div>
</div>
"; 

}

if($_REQUEST['type']=="News") {

print "
<div id='mg1' >
<div id='searchcontent'>
<form name='form1' method='get' action='redir.php'>
<input name='search' type='text' id='search' value='"; if(isset($_REQUEST['search'])) echo $_REQUEST['search']; print "'size='60'> <input name='type' type='hidden' id='type' value='News'> <input type='submit' name='Submit' value='Search News !'>
</div>
<br/><br/>
<div class='total'>$total_display</div>
</div>
"; 

}

if($_REQUEST['type']=="Images") {

print "
<div id='mg1' >
<div id='searchcontent'>
<form name='form1' method='get' action='redir.php'>
<input name='search' type='text' id='search' value='"; if(isset($_REQUEST['search'])) echo $_REQUEST['search']; print "'size='60'> <input name='type' type='hidden' id='type' value='Images'> <input type='submit' name='Submit' value='Search Images !'>
</div>
<br/><br/>
<div class='total'>$total_display</div>
</div>
"; 

}

if($_REQUEST['type']=="Web") {

print "
<div id='mg1' >
<div id='searchcontent'>
<form name='form1' method='get' action='redir.php'>
<input name='search' type='text' id='search' value='"; if(isset($_REQUEST['search'])) echo $_REQUEST['search']; print "'size='60'> <input name='type' type='hidden' id='type' value='Web'> <input type='submit' name='Submit' value='Search Web !'>
</div>
<br/><br/>
<div class='total'>$total_display</div>
</div>
"; 

}

$results_display='<script src="qlook.js" language="JavaScript"></script>'.$results_display;

$results_display='<script src="image-swap.js" language="JavaScript"></script>'.$results_display;

$ch="";

$fp=fileOpen("admin/templates/results.tpl.html","r");

while(!feof($fp)) $ch.=fgetc($fp);

//echo $results_display;

//exit; 
function search($start,$end,$string, $borders=true){

$reg="!".preg_quote($start)."(.*?)".preg_quote($end)."!is";

	preg_match_all($reg,$string,$matches);

	if($borders) return $matches[0];	

	else return $matches[1];

}

////////////////////////////DECODE IT CODE START/////////////////////////////

$arr = search("&#8226; <a","<br>-->",$results_display);

$results_display = str_replace($arr,"",$results_display);

$arr = search("&#8226; <a","</a></span>",$results_display);

$results_display = str_replace($arr,"",$results_display);

$results_display = str_replace("Open in new","",$results_display);

////////////////////////////DECODE IT CODE END/////////////////////////////

$ch=str_replace("{RESULTS}",$results_display,$ch);

$ch=str_replace("{TOTAL}",$total_display,$ch);$ch=str_replace("{FOOTERLINKS}",$footerlinks_display,$ch);

$ct="";

//echo $site_dir;

$fp=fileOpen($server_dir."tabs.php?type=$engine"."&search=$search","r");

while(!feof($fp)) $ct.=fgetc($fp);

$ch=str_replace("{TABS}",$ct,$ch);

$ct="";

$fp=fileOpen($server_dir."admin/rel_terms.php?search=".$search."&on=web&type=$engine","r");

while(!feof($fp)) $ct.=fgetc($fp);

$ch=str_replace("{RELATIVE-VERT}",$ct,$ch);

$ct="";

$fp=fileOpen($server_dir."admin/rel_terms_iv.php?search=".$search."&on=web&type=$engine","r");

while(!feof($fp)) $ct.=fgetc($fp);

$ch=str_replace("{RELATIVE-HORI}",$ct,$ch);

//eval("\$ch=\"$ch\";");

$ch=str_replace("{ENGINE}",$engine,$ch);

$ch=str_replace("{TERM}",str_replace("+"," ",$search),$ch);

$ch=str_replace("{SOURCE}",$src_note,$ch);

echo $ch;

//echo "hi";

mysql_close();

?>

 

Style

/*General page style.*/

BODY {

background-color: #FFFFFF;

font-family: arial;

font-size: 14px;

margin-left: 0px;

margin-top: 0px;

margin-right: 0px;

margin-bottom: 0px;

}

* {
margin: 0;
padding: 0;
}

input {

border: 1px solid #000;
height: 22px;

}

.button {
font: 12px Verdana, Geneva, Arial, Helvetica, sans-serif;
margin-left: 10px;
}


td {

  font-family: verdana;

  font-size:13px;

}

big {

font-family: verdana;
font-size: 13px;
text-decoration: none;
}

small {

font-family: verdana;
font-size: 11px;
text-decoration: none;

}

/*Link styles*/

a:link,a:visited,a:active {

    font-family: verdana;
    font-size: 13px;
text-decoration: none;

}

a:hover {

color: #ff0000;

}


.total {
color: #FFF;
font-size: 14px;
float: right;
margin-right: 25px;
margin-bottom: 10px;
}

/* Manages the style heading of related search*/

.related_heading { font-family: verdana;

   color:#FFF;
   text-decoration: none;
   font-weight: bold

       }



/* Manages the style of the range of number of results*/

.total_range { 

   font-family: verdana;
   color:#FFF;
   text-decoration: none;
   font-weight: bold

       }



/* Manages the style of the total number*/

.total_results { font-family: verdana;

   color:#FFF;
   text-decoration: none;
   font-weight: bold

       }


/* Manages the style of the search term*/

.search_term { font-family: verdana;

   color:#FFF;
   text-decoration: none;
   font-weight: bold

       }


#navbackground {
   width: 100%;
   height: 32px;
   background-image: url(images/navbg.gif);
}

#navbackground2 {
   width: 100%;
   height: 32px;
   background-image: url(images/navbg.gif);
}

#navbackground2 ul {
list-style:none;
text-align: center;
}

#navbackground2 ul li {
margin-top: 7px;
float: left;
width: 124px;
height: 25px;
margin-left: 5px;
}

#mg1 {
   width: 100%;
   height: 79px;
   background-image: url(images/mbg.gif);
   border-bottom: 1px solid #000;
}

#navbackground ul {
display: inline;
list-style:none;
text-align: center;
}

#navbackground ul li {
margin-top: 6px;
float: left;
width: 124px;
height: 25px;
margin-left: 5px;
}

.col1 {background-image: url(images/nav1.gif); border-bottom: 1px solid #d62201; }

.col2 {background-image: url(images/nav2.gif); border-bottom: 1px solid #000; }

#searchcontent {
float: left;
margin-top: 20px;
margin-left: 100px;
}

.font {
text-align: center;
margin-top: 6px;
color: #FFFFFF;
font-weight: bold;
text-decoration: none;
}

#logo {
margin-top: 20px;
margin-left: 50px;
}

 

 

Another problem I am having is that I can not center the tabs at all on the page.

 

<?php include_once("admin/config.inc.php"); ?>

<script language="javascript"> 

function Determine(type,status){

//alert(type);

var term=document.getElementById('search').value;

//alert(term);

if(term!="")

window.location="redir.php?type="+type+"&search="+term;

if(status=="0" && term=="")

window.location="index.php?type="+type;

}


</script>

<?php if(!isset($_REQUEST['type'])){

$type=$mysql->echo_one("select name from ".$tableprefix."inoutmse_engine where disabled<>1 order by sortorder asc");

//echo $type;

}else $type=$_REQUEST['type']; ?>


</head>

<body>
<div id="navbackground">
<ul>
<?php if (($_GET["type"] == "") or ($_GET["type"] == "Maroc")) {?>  <li class="col1">
<a href="javascript:Determine('Maroc','0');" ><div class="font">Maroc</div></a></li> <?php } else {?> <li class="col2">
<a href="javascript:Determine('Maroc','0');" ><div class="font">Maroc</div></a></li><? } ?>

<?php if ($_GET["type"] == "Web") {?>  <li class="col1">
<a href="javascript:Determine('Web','0');" ><div class="font">Web</div></a></li> <?php } else {?> <li class="col2">
<a href="javascript:Determine('Web','0');" ><div class="font">Web</div></a></li><? } ?>

<?php if ($_GET["type"] == "Images") {?>  <li class="col1">
<a href="javascript:Determine('Images','0');" ><div class="font">Images</div></a></li> <?php } else {?> <li class="col2">
<a href="javascript:Determine('Images','0');" ><div class="font">Images</div></a></li><? } ?>

<?php if ($_GET["type"] == "News") {?>  <li class="col1">
<a href="javascript:Determine('News','0');" ><div class="font">News</div></a></li> <?php } else {?> <li class="col2">
<a href="javascript:Determine('News','0');" ><div class="font">News</div></a></li><? } ?>	



<?php if ($_GET["type"] == "Kids") {?>  <li class="col1">
<a href="javascript:Determine('Kids','0');" ><div class="font">Kids</div></a></li> <?php } else {?> <li class="col2">
<a href="javascript:Determine('Kids','0');" ><div class="font">Kids</div></a></li><? } ?>	


</ul>
</div>
</div>
<div id="mg1">
    <div id="searchcontent">
<?php if(!isset($_REQUEST['type']) || $_REQUEST['type']=="Web") { ?>

<form name="form1" method="get" action="redir.php">
  <input name="search" type="text" id="search" value="<?php if(isset($_REQUEST['search'])) echo $_REQUEST['search']; ?>" size="60"> <input name="type" type="hidden" id="type" value="<?php echo $type; ?>"> <input type="submit" class="button" name="Submit" value="Search Web !"> 
</form>
</div></div>
<?php } ?>

<?php if($_REQUEST['type']=="Images") { ?><form name="form1" method="get" action="redir.php">

    <input name="search" type="text" id="search" value="<?php if(isset($_REQUEST['search'])) echo $_REQUEST['search']; ?>" size="60"> <input name="type" type="hidden" id="type" value="<?php echo $type; ?>"> <input type="submit" name="Submit" value="Search Images !">        




<?php } ?>



<?php if($_REQUEST['type']=="Audio") { ?><form name="form1" method="get" action="redir.php">

<input name="search" type="text" id="search" value="<?php if(isset($_REQUEST['search'])) echo $_REQUEST['search']; ?>" size="60"> <input name="type" type="hidden" id="type" value="<?php echo $type; ?>"> <input type="submit" name="Submit" value="Search Audio !"> 

<?php } ?>



<?php if($_REQUEST['type']=="Video") { ?><form name="form1" method="get" action="redir.php">

<input name="search" type="text" id="search" value="<?php if(isset($_REQUEST['search'])) echo $_REQUEST['search']; ?>" size="60"> <input name="type" type="hidden" id="type" value="<?php echo $type; ?>"> <input type="submit" name="Submit" value="Search Video !">        

<?php } ?>



<?php if($_REQUEST['type']=="News") { ?><form name="form1" method="get" action="redir.php">


    <input name="search" type="text" id="search" value="<?php if(isset($_REQUEST['search'])) echo $_REQUEST['search']; ?>" size="60"> <input name="type" type="hidden" id="type" value="<?php echo $type; ?>"> <input type="submit" name="Submit" value="Search News !">

</form>


<?php } ?>



<?php if($_REQUEST['type']=="Sport") { ?><form name="form1" method="get" action="redir.php">


<input name="search" type="text" id="search" value="<?php if(isset($_REQUEST['search'])) echo $_REQUEST['search']; ?>" size="60"> <input name="type" type="hidden" id="type" value="<?php echo $type; ?>"> <input type="submit" name="Submit" value="Search Sport !">           



<?php } ?>



<?php if($_REQUEST['type']=="Open Directory") { ?><form name="form1" method="get" action="redir.php">


<input name="search" type="text" id="search" value="<?php if(isset($_REQUEST['search'])) echo $_REQUEST['search']; ?>" size="60"> <input name="type" type="hidden" id="type" value="<?php echo $type; ?>"> <input type="submit" name="Submit" value="Search Open Directory !">  





<?php } ?>



<?php if($_REQUEST['type']=="Wikipedia") { ?><form name="form1" method="get" action="redir.php">

<input name="search" type="text" id="search" value="<?php if(isset($_REQUEST['search'])) echo $_REQUEST['search']; ?>" size="60"> <input name="type" type="hidden" id="type" value="<?php echo $type; ?>"> <input type="submit" name="Submit" value="Search Wikipedia !">         


        

<?php } ?>



<?php if($_REQUEST['type']=="Dictionary") { ?><form name="form1" method="get" action="redir.php">

<input name="search" type="text" id="search" value="<?php if(isset($_REQUEST['search'])) echo $_REQUEST['search']; ?>" size="60"> <input name="type" type="hidden" id="type" value="<?php echo $type; ?>"> <input type="submit" name="Submit" value="Search Dictionary !">      


<?php } ?>

<?php if($_REQUEST['type']=="Maroc") { ?><form name="form1" method="get" action="redir.php">

<input name="search" type="text" id="search" value="<?php if(isset($_REQUEST['search'])) echo $_REQUEST['search']; ?>" size="60"> <input name="type" type="hidden" id="type" value="<?php echo $type; ?>"> <input type="submit" name="Submit" value="Search Marrocco !">      


<?php } ?>

<?php if($_REQUEST['type']=="Kids") { ?><form name="form1" method="get" action="redir.php">

<input name="search" type="text" id="search" value="<?php if(isset($_REQUEST['search'])) echo $_REQUEST['search']; ?>" size="60"> <input name="type" type="hidden" id="type" value="<?php echo $type; ?>"> <input type="submit" name="Submit" value="Search Kids !">      


<?php } ?>

 

One more issue...

 

How can I get the input field larger and button larger and looking like the Search button showed on this forum above?

 

 

Thanks!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.