Location: PHPKode > projects > MyOWNSpace > MyOWNspace_v8.2/www/myownad/myownbannerwizard.php
<?

$url="http://myownspace.fr/myownad/myownbanner";
if(isset($_POST['width'])&&($_POST['width']!="")) {$iw=$_POST['width'];if($iw>1500)$iw=1000;$url.="-iw".$iw;}
else {$iw=450;$url.="-iw".$iw;}
if ($iw==250) $fs=12;
if ($iw==450) $fs=20;
if ($iw==768) $fs=32;
$url.="-fs".$fs;
if($_POST['fontsize']!="") {$fs=$_POST['fontsize'];$url.="-fs".$fs;}
if($_POST['bgcolor']!="") {$bg=$_POST['bgcolor'];$bg=substr($bg,1,6);$url.="-bg".$bg;}
if($_POST['txtcolor']!="") {$tc=$_POST['txtcolor'];$tc=substr($tc,1,6);$url.="-tc".$tc;}

$url.=".jpg";
$code='<a href="http://myownspace.fr"';
if ($_POST['target']!="") $code.=' target="_blank"';
$code.='>
<img src="'.$url.'"';
if($_POST['border']!="") $code.=' border="'.$_POST['border'].'"';
$code.='>
</a>';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<title>MyownAaaad Myspace banner</title>
	<link rel="stylesheet" href="../classes/js_color_picker/js_color_picker_v2.css" media="screen">
	<script src="../classes/js_color_picker/color_functions.js"></script>		
	<script type="text/javascript" src="../classes/js_color_picker/js_color_picker_v2.js"></script>
</head>
<body bgcolor="red">
<h1>Anti-Myspace Banner  Wizard</h1>

<? echo $code;?>
<br>
<TEXTAREA name="test" rows="4" cols="80">
<? echo $code;?>
</TEXTAREA>
<hr>
<form name="test" action="myownbannerwizard.php" method="POST">
<table>
<tr>
  	<td align="right"><b>Image Width</b></td>
  	<td><select name="width">
    <option <?if ($iw==768) echo "selected";?> value="768">Large  (768px)</option>
    <option <?if ($iw==450) echo "selected";?> value="450">Medium (450px)</option>
    <option <?if ($iw==250) echo "selected";?> value="250">Small  (250px)</option>
    </select>
    </td>
	</tr>

	<tr>
  	<td align="right"><b>Background color</b> </td>
		<td><input type="text" size="10" maxlength="7" name="bgcolor" value="<? if($bg!="")echo"#".$bg;?>"></td>
		<td><input type="button" value="Color picker" onclick="showColorPicker(this,document.forms[0].bgcolor)"> (random color if blank)</td>
	</tr>
	<tr>
	  <td align="right"><b>Text color</b></td>
		<td><input type="text" size="10" maxlength="7" name="txtcolor" value="<? if($tc!="")echo"#".$tc;?>"></td>
		<td><input type="button" value="Color picker" onclick="showColorPicker(this,document.forms[0].txtcolor)"> (random color if blank)</td>
	</tr>
	<tr>
	  <td align="right"><b>Image border</b></td>
		<td><select name="border">
		<option <?if ($_POST['border']==0) echo "selected";?> value="0">0 px</option>
    <option <?if ($_POST['border']==1) echo "selected";?> value="1">1 px</option>
    <option <?if ($_POST['border']==2) echo "selected";?> value="2">2 px</option>
    <option <?if ($_POST['border']==3) echo "selected";?> value="3">3 px</option>
    <option <?if ($_POST['border']==4) echo "selected";?> value="4">4 px</option>
    <option <?if ($_POST['border']==5) echo "selected";?> value="5">5 px</option>
    </select>
    </td>	</tr>
	<tr>
	  <td align="right"><b>open in new window</b></td>
		<td><input type="checkbox" name="target" value="1" <? if($_POST['target']!="")echo"checked";?>"></td>
	</tr>
</table>
<input type="submit" value="VIEW MY OWN BANNER">
</form>

</body>
</html>
Return current item: MyOWNSpace