<?xml version="1.0" encoding="iso-8859-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" xml:lang="en">
<head>
<title>Script to 3D pie chart with PHP</title>
<meta name="description" lang="en" content="Script to 3D pie chart with PHP. Various colors, shadows, 3D-depth."/>
<meta http-equiv="content-language" content="en" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<base target="_blank"/>
<link rel="stylesheet" href="/style.css"/>
<style type="text/css">

</style>

<script type="text/javascript" src="/scripts/menu/menujavascript.php?sprog=en&amp;sprog_antal=3"></script>

<script type="text/javascript" src="/scripts/menu/menu.js"></script>

<script type="text/javascript" src="/scripts/main.js"></script>

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

function popupfarve(url,name,win_height,win_width) 
{
	pos_horizon = ((screen.width/2)-(win_width/2));
	pos_vertical = ((screen.height/2)-(win_height/2));
	window.open(url,name,"width="+win_width+",height="+win_height+",top="+pos_vertical+",left="+pos_horizon);
}

var data = 100;
var bredde = 199;
function lagkage()
{
tekst_farve = document.getElementById("tekst_farve").value;
data = document.getElementById("data").value;
etiket = document.getElementById("etiket").value;
bredde = document.getElementById("bredde").value;
baggrund_farve = document.getElementById("baggrund_farve").value;
skygge_hojde = document.getElementById("skygge_hojde").value;
if (document.getElementById("skygge_mork").checked == true) skygge = "mork";
else skygge = "lys";
if (document.getElementById("etiket_rund").checked == true) etiket_form = "rund";
else etiket_form = "firkantet";

if (document.getElementById("vis_procent").checked == true) vis_procent = true;
else vis_procent = false;
if (document.getElementById("vis_tekst").checked == true) vis_tekst = true;
else vis_tekst = false;
if (document.getElementById("vis_andel").checked == true) vis_andel = true;
else vis_andel = false;
if (document.getElementById("vis_etiket").checked == true) vis_etiket = true;
else vis_etiket = false;

if (data == "") data = 1;

document.billede.src = "/webtools/php/lagkage/lagkagepic.php?data="+data+"&etiket="+etiket+"&etiket_form="+etiket_form+"&bredde="+bredde+"&skygge="+skygge+"&baggrund_farve="+baggrund_farve+"&tekst_farve="+tekst_farve+"&skygge_hojde="+skygge_hojde+"&vis_procent="+vis_procent+"&vis_tekst="+vis_tekst+"&vis_etiket="+vis_etiket+"&vis_andel="+vis_andel;
}

// Slut -->
</script> 

</head><body>

<table width="98%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center">
<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="25px"><img src="/billeder/grafik/rammer/nv.png" alt="" border="0" /></td>

		<td class="rammen"></td>
		<td width="30px"><img src="/billeder/grafik/rammer/no.png" alt="" border="0" /></td>
	</tr>
	<tr>
		<td class="rammev"></td><td style="background:#FFFFFF"><center>
<script type="text/javascript"><!--
google_ad_client = "pub-3720012035073106";
/* 728x90, oprettet 29-09-08 */
google_ad_slot = "9784034556";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center></td><td class="rammeo"></td>
	</tr>

	<tr>
		<td><img src="/billeder/grafik/rammer/sv.png" alt="" border="0" /></td>
		<td class="rammes" align="right"></td>
		<td><img src="/billeder/grafik/rammer/so.png" alt="" border="0" /></td>
	</tr>
</table></td>
</tr>
</table>

<table align="center" width="100%"><tr>
<td align="center" id="knapmenu0"><img src="/billeder/grafik/farver/pixel.gif" height="60px" width="165px" alt="" border="0" /></td><td align="right"><img src="/billeder/grafik/fodspor.gif" border="0" alt=""/></td>

</tr></table>

<table width="98%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><table cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="25px"><img src="/billeder/grafik/rammer/nv.png" alt="" border="0" /></td>
		<td class="rammen"></td>
		<td width="30px"><img src="/billeder/grafik/rammer/no.png" id="hest1" name="hest2" alt="" border="0" /></td>
	</tr>
	<tr>

		<td class="rammev"></td><td height="268" class="indhold" valign="top">
<noscript><table width="96%" align="center"><tr><td style="background:#FFFFFF"><a href="/?sprog=en" target="_top">Front page</a> | <a href="/oversigt.php?sprog=en" target="_top">Sitemap</a> | <a href="/sjov/?sprog=en" target="_top">Fun</a> | <a href="/unlock/?sprog=en" target="_top">Unlock</a> | <a href="/webtools/?sprog=en" target="_top">Miscellaneous</a>

	 | <a href="/webtools/javascript/?sprog=en" target="_top">Javascripts</a>
		
			 | <a href="/webtools/javascript/slideshow.php?sprog=en" target="_top">Slideshow on webpage</a>
			 | <a href="/webtools/javascript/ur.php?sprog=en" target="_top">Dynamic Clock with Javascript</a>
			 | <a href="/webtools/javascript/validering.php?sprog=en" target="_top">Input validating of search text</a>
			 | <a href="/webtools/javascript/sne.php?sprog=en" target="_top">Snow on webpage</a>
			 | <a href="/webtools/javascript/firework.php?sprog=en" target="_top">Firework on webpage</a>
		
	
	 | <a href="/webtools/php/?sprog=en" target="_top">PHP</a>
		
			 | <a href="/webtools/php/lagkage.php?sprog=en" target="_top">3D pie chart</a>
		
	
	 | <a href="/webtools/worldclock.php?sprog=en" target="_top">World clock</a>
	 | <a href="/webtools/ordbog/?sprog=en" target="_top">Danish Dictionary</a>
	 | <a href="/webtools/conversion.php?sprog=en" target="_top">Online converter</a>
	 | <a href="/webtools/translation.php?sprog=en" target="_top">Online Language Translation</a>
	 | <a href="/links/?sprog=en" target="_top">Various Links</a>
	 | <a href="/links/pris.php?sprog=en" target="_top">Price comparing</a>
	
	
	
	
	 | <a href="/billeder/?sprog=en" target="_top">Gallery</a>
		
		 | <a href="/billeder/billeder.php?sti=spanien&amp;sprog=en" target="_top">Wedding in Spain 2007</a>
		 | <a href="/billeder/billeder.php?sti=newyork&amp;sprog=en" target="_top">New York 2006</a>
		 
		 | <a href="/billeder/billeder.php?sti=familie&amp;sprog=en" target="_top">The Petersen Family</a>
			
				 | <a href="/billeder/billeder.php?sti=bryllup&amp;sprog=en" target="_top">Marriage of Fiona &amp; Jesper</a>
			
		
		 | <a href="/billeder/billeder.php?sti=bakken&amp;sprog=en" target="_top">Rollercoaster</a>
		 | <a href="/billeder/billeder.php?sti=hulse&amp;sprog=en" target="_top">EURO 2000</a>
		 | <a href="/billeder/billeder.php?sti=svntkp&amp;sprog=en" target="_top">Navy</a>
		 | <a href="/billeder/billeder.php?sti=mcd&amp;sprog=en" target="_top">McDonaldŽs</a>
		

	 | <a href="/3y/?sprog=en" target="_top">3y Herning Gymnasium 1996/97</a>

</td></tr></table></noscript>
<script type="text/javascript">
RPMenuStart();
</script>
        <h1>Script to 3D pie chart with PHP</h1><center><img name="billede" src="/webtools/php/lagkage/lagkagetexten.jpg" border="0" alt="Pie Chart" />&nbsp;<br />
<script type="text/javascript"><!--
google_ad_client = "pub-3720012035073106";
/* 728x15, oprettet 30-09-08 */
google_ad_slot = "0241202157";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
&nbsp;<br /><br /><br /><p>Here you can try out some of the variations:</p>
</center>

<form action="lagkage.php" onsubmit="lagkage();return false" target="_self" style="text-align: center;">
<table align="center">
	<tr>
		<td align="right">
			Parts:		</td>
		<td align="left" colspan="2">
			<input type="text" class="input" id="data" value="10*9*11*10*8*9*10*9*8*8" size="30" />
		</td>
	</tr>

	<tr>
		<td align="right">
			Text:		</td>
		<td align="left" colspan="2">
			<input type="text" class="input" id="etiket" value="Denmark*Germany*USA*Sweden*Norway*Hungary*Finland*Ukraine*Russia*Iceland" size="90" />
		</td>
	</tr>
	
	<tr>

		<td>&nbsp;</td>
		<td>(Parts separated by: *)</td>
		<td rowspan="8"><img src="/webtools/php/lagkage/forklaringen.gif" alt="Forklaring" border="1" /></td>
	</tr>

	<tr>
		<td align="right">Show:</td>
		<td align="left">

			<label for="vis_etiket"><input id="vis_etiket" name="vis_etiket" type="checkbox" value="true" checked="checked" />Label</label>
			<label for="vis_procent"><input id="vis_procent" name="vis_procent" type="checkbox" value="true" checked="checked" />Percent</label>
			<label for="vis_tekst"><input id="vis_tekst" name="vis_tekst" type="checkbox" value="true" checked="checked" />Text</label>
			<label for="vis_andel"><input id="vis_andel" name="vis_andel" type="checkbox" value="true" />Parts</label>
		</td>
	</tr>

	<tr>
		<td align="right">Form of label:</td>
		<td align="left">
		    <label for="etiket_rund"><input id="etiket_rund" type="radio" name="etiket_rund" value="true" />Round</label>
	    	<label for="etiket_firkant"><input id="etiket_firkant" type="radio" name="etiket_rund" value="true" checked="checked" />Square</label>
		</td>
	</tr>

	<tr>
		<td align="right">Width:</td>
		<td align="left"><input type="text" class="input" id="bredde" size="3" value="199" /> pixels</td>
	</tr>
	<tr>
		<td align="right">Background color:</td>
		<td align="left"><input type="text" name="farve" class="input" id="baggrund_farve" maxlength="6" size="6" value="FFFFFF" />&nbsp;<a href="/scripts/nojavascript.php" onclick="popupfarve('/billeder/grafik/farver/farver.php?felt=farve&amp;sprog=en','farve','500','400'); return false" target="_blank"><img src="/billeder/grafik/ikoner/palet.gif" border="0" alt="Choose background-color..." /></a></td>

	</tr>
	<tr>
		<td align="right">Text color:</td>
		<td align="left"><input type="text" name="tekst_farve" class="input" id="tekst_farve" maxlength="6" size="6" value="000000" />&nbsp;<a href="/scripts/nojavascript.php" onclick="popupfarve('/billeder/grafik/farver/farver.php?felt=tekst_farve&amp;sprog=en','farve','500','400'); return false" target="_blank"><img src="/billeder/grafik/ikoner/palet.gif" border="0" alt="Choose background-color..." /></a></td>
	</tr>
	<tr>
		<td align="right">Height of shadow:</td>
		<td align="left"><input type="text" class="input" id="skygge_hojde" size="3" value="16" /> pixels</td>

	</tr>
	<tr>
		<td align="right">Color of shadow:</td>
		<td align="left">
		    <label for="skygge_mork"><input id="skygge_mork" type="radio" name="skygge_mork" value="true" checked="checked" />Dark</label>
	    	<label for="skygge_lys"><input id="skygge_lys" type="radio" name="skygge_mork" value="true" />Light</label>
		</td>

	</tr>
	
	<tr>
		<td colspan="3">
			<input type="submit" class="knap" value="Show Pie chart" onclick="lagkage()" />
 			<input type="reset" class="knap" value="Reset" />
		</td>
	</tr>
</table> 
</form>
<div class="kodetextbox">

<b>Required from PHP-installation:</b><br />This script requires <b>GD 2.0.1</b> or later to be installed on your webserver.&nbsp;<a href="/scripts/nojavascript.php" onclick="popupfarve('/webtools/php/help.php?nr=1&amp;sprog=en','help','600','400'); return false" target="_blank"><img src="/billeder/grafik/ikoner/help3.gif" alt="Help" border="0" /></a><br />
This script requires <b>JPG Support</b> enabled. 
<a href="/scripts/nojavascript.php" onclick="popupfarve('/webtools/php/help.php?nr=1&amp;sprog=en','help','600','400'); return false" target="_blank"><img src="/billeder/grafik/ikoner/help3.gif" alt="Help" border="0" /></a><br />

</div>

<p><img src="/billeder/grafik/tal/1.gif" alt="" />&nbsp;
Start by saving the PHP script in a file. In the script you can make the following changes:</p>

<p>
<font style="background-color: #CCFFFF">You can change whether to show <b>labels</b>, <b>percentages</b>, <b>texts</b>, <b>parts</b>...</font><br />
<font style="background-color: #FF6633">You can choose the <b>format of the labels</b> ('square' or 'round')...</font><br />
<font style="background-color: #CCCCCC">You can change the <b>width</b> of the pie chart...</font><br />

<font style="background-color: #FFCC99">You can change the <b>background-color</b> of the chart as well...</font><br />
<font style="background-color: #CCCC66">You can change the <b>text-color</b>...</font><br />
<font style="background-color: #FFFF99">The <b>colors</b> of the various slices are in an <b>array</b>, which can be changed...</font><br />
<font style="background-color: #FFCCFF">The <b>height</b> on the <b>shadow</b> can be changed.</font><br />

<font style="background-color: #99FFCC">If <b>true</b>: The shadow is <b>dark</b>, or <b>false</b>: The shadow is <b>light.</b></font>
</p>
<div class="htmlkode">
<pre>
&lt;?php
////////////////////////////////////////////////////////////////
// PHP script made by Rasmus - http://www.peters1.dk //
////////////////////////////////////////////////////////////////

$show_label = <font style="background-color: #CCFFFF">true</font>; // true = show label, false = don't show label.
$show_percent = <font style="background-color: #CCFFFF">true</font>; // true = show percentage, false = don't show percentage.
$show_text = <font style="background-color: #CCFFFF">true</font>; // true = show text, false = don't show text.
$show_parts = <font style="background-color: #CCFFFF">false</font>; // true = show parts, false = don't show parts.
$label_form = '<font style="background-color: #FF6633">square</font>'; // 'square' or 'round' label.
$width = <font style="background-color: #CCCCCC">199</font>;
$background_color = '<font style="background-color: #FFCC99">FFFFFF</font>'; // background-color of the chart...
$text_color = '<font style="background-color: #CCCC66">000000</font>'; // text-color.
$colors = array('<font style="background-color: #FFFF99">003366</font>', '<font style="background-color: #FFFF99">CCD6E0</font>', '<font style="background-color: #FFFF99">7F99B2</font>','<font style="background-color: #FFFF99">F7EFC6</font>', '<font style="background-color: #FFFF99">C6BE8C</font>', '<font style="background-color: #FFFF99">CC6600</font>','<font style="background-color: #FFFF99">990000</font>','<font style="background-color: #FFFF99">520000</font>','<font style="background-color: #FFFF99">BFBFC1</font>','<font style="background-color: #FFFF99">808080</font>'); // colors of the slices.
$shadow_height = <font style="background-color: #FFCCFF">16</font>; // Height on shadown.
$shadow_dark = <font style="background-color: #99FFCC">true</font>; // true = darker shadow, false = lighter shadow...

// DON'T CHANGE ANYTHING BELOW THIS LINE...

$data = $_GET["data"];
$label = $_GET["label"];

$height = $width/2;
$data = explode('*',$data);

if ($label != '') $label = explode('*',$label);

for ($i = 0; $i < count($label); $i++) 
{
	if ($data[$i]/array_sum($data) < 0.1) $number[$i] = ' '.number_format(($data[$i]/array_sum($data))*100,1,',','.').'%';
	else $number[$i] = number_format(($data[$i]/array_sum($data))*100,1,',','.').'%';
	if (strlen($label[$i]) > $text_length) $text_length = strlen($label[$i]);
}

if (is_array($label))
{
$antal_label = count($label);
$xtra = (5+15*$antal_label)-($height+ceil($shadow_height));
if ($xtra > 0) $xtra_height = (5+15*$antal_label)-($height+ceil($shadow_height));

$xtra_width = 5;
if ($show_label) $xtra_width += 20;
if ($show_percent) $xtra_width += 45;
if ($show_text) $xtra_width += $text_length*8;
if ($show_parts) $xtra_width += 35;
}

$img = ImageCreateTrueColor($width+$xtra_width, $height+ceil($shadow_height)+$xtra_height);

ImageFill($img, 0, 0, colorHex($img, $background_color));

foreach ($colors as $colorkode) 
{
	$fill_color[] = colorHex($img, $colorkode);
	$shadow_color[] = colorHexshadow($img, $colorkode, $shadow_dark);
}

$label_place = 5;

if (is_array($label))
{
for ($i = 0; $i < count($label); $i++) 
{
	if ($label_form == 'round' && $show_label)
	{
		imagefilledellipse($img,$width+11,$label_place+5,10,10,colorHex($img, $colors[$i % count($colors)]));
		imageellipse($img,$width+11,$label_place+5,10,10,colorHex($img, $text_color));
	}
	else if ($label_form == 'square' && $show_label)
	{	
		imagefilledrectangle($img,$width+6,$label_place,$width+16,$label_place+10,colorHex($img, $colors[$i % count($colors)]));
		imagerectangle($img,$width+6,$label_place,$width+16,$label_place+10,colorHex($img, $text_color));
	}

	if ($show_percent) $label_output = $number[$i].' ';
	if ($show_text) $label_output = $label_output.$label[$i].' ';
	if ($show_parts) $label_output = $label_output.$data[$i];

	imagestring($img,'2',$width+20,$label_place,$label_output,colorHex($img, $text_color));
	$label_output = '';

	$label_place = $label_place + 15;
}
}
$centerX = round($width/2);
$centerY = round($height/2);
$diameterX = $width-4;
$diameterY = $height-4;

$data_sum = array_sum($data);

$start = 270;

for ($i = 0; $i < count($data); $i++) 
{
	$value += $data[$i];
	$end = ceil(($value/$data_sum)*360) + 270;
	$slice[] = array($start, $end, $shadow_color[$value_counter % count($shadow_color)], $fill_color[$value_counter % count($fill_color)]);
	$start = $end;
	$value_counter++;
}

for ($i=$centerY+$shadow_height; $i>$centerY; $i--) 
{
	for ($j = 0; $j < count($slice); $j++)
	{
		if ($slice[$j][0] != $slice[$j][1]) ImageFilledArc($img, $centerX, $i, $diameterX, $diameterY, $slice[$j][0], $slice[$j][1], $slice[$j][2], IMG_ARC_PIE);
	}
}	

for ($j = 0; $j < count($slice); $j++)
{
	if ($slice[$j][0] != $slice[$j][1]) ImageFilledArc($img, $centerX, $centerY, $diameterX, $diameterY, $slice[$j][0], $slice[$j][1], $slice[$j][3], IMG_ARC_PIE);
}

OutputImage($img);
ImageDestroy($img);


function colorHex($img, $HexColorString) 
{
		$R = hexdec(substr($HexColorString, 0, 2));
		$G = hexdec(substr($HexColorString, 2, 2));
		$B = hexdec(substr($HexColorString, 4, 2));
		return ImageColorAllocate($img, $R, $G, $B);
}

function colorHexshadow($img, $HexColorString, $mork) 
{
	$R = hexdec(substr($HexColorString, 0, 2));
	$G = hexdec(substr($HexColorString, 2, 2));
	$B = hexdec(substr($HexColorString, 4, 2));

	if ($mork)
	{
		($R > 99) ? $R -= 100 : $R = 0;
		($G > 99) ? $G -= 100 : $G = 0;
		($B > 99) ? $B -= 100 : $B = 0;
	}
	else
	{
		($R < 220) ? $R += 35 : $R = 255;
		($G < 220) ? $G += 35 : $G = 255;
		($B < 220) ? $B += 35 : $B = 255;				
	}			
	
	return ImageColorAllocate($img, $R, $G, $B);
}

function OutputImage($img) 
{
	header('Content-type: image/jpg');
	ImageJPEG($img,NULL,100);
}

?>

</pre></div>
<p><img src="/billeder/grafik/tal/2.gif" alt="" />&nbsp;You can now include the chart just by calling the script like a picture, with parts and labels as attributes:</p>
<div class="kodetextbox">
&lt;img src=&#34;http://www.domain.dk/piechart.php?data=10*9*11*10&label=Denmark*Germany*USA*Sweden&#34; /&gt;
</div>
<p>&nbsp;</p>
<center>Could You use this script? Please donate a little amount...<br /><br />
<form style="display: inline" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="image" src="/billeder/grafik/paypalen.gif" name="submit" alt="Donation to www.peters1.dk - it's fast, free and secure!" />

<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHuQYJKoZIhvcNAQcEoIIHqjCCB6YCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQY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BgkqhkiG9w0BCQQxFgQUAY/RA/zmPDffY7WRMFsWRiChC2swDQYJKoZIhvcNAQEBBQAEgYBwmEVrJHOYmCEiEVplwQ2GzhgsXLovtrLPuAYd1N+ORHKQ64ls/7WLJIR9oohsnatNJllS/4pIJGABnkX0sagwiXU4ML3HWHL4L0mq0jcn9BCy4rQMIIAXYunlAylmPyRDql74rXcUpWD3GvBEGpGaaBOQNA+PVCAOoQpOXpo4cw==-----END PKCS7-----
" />
</form><br /><br />...to the development of more scripts :-)
</center>
</td><td class="rammeo" valign="top" width="30px">

<a href="/webtools/php/lagkage.php" target="_top"><img alt="Script til 3D Cirkeldiagram med PHP" title="Script til 3D Cirkeldiagram med PHP" src="/billeder/flag/da.gif" border="0" width="26px" height="13px"/></a><br/><img src="/billeder/grafik/farver/pixel.gif" height="5px" width="13px" alt="" border="0" /><br/><a href="/webtools/php/lagkage.php?sprog=en" target="_top"><img alt="Script to 3D pie chart with PHP" title="Script to 3D pie chart with PHP" src="/billeder/flag/en.gif" border="0" width="26px" height="13px"/></a><br/><img src="/billeder/grafik/farver/pixel.gif" height="5px" width="13px" alt="" border="0" /><br/><a href="/webtools/php/lagkage.php?sprog=de" target="_top"><img alt="Script zum 3D Kreis-diagramm mit PHP" title="Script zum 3D Kreis-diagramm mit PHP" src="/billeder/flag/de.gif" border="0" width="26px" height="13px"/></a><br/><img src="/billeder/grafik/farver/pixel.gif" height="5px" width="13px" alt="" border="0" /><br/>		</td>
	</tr>
	<tr>
		<td><img src="/billeder/grafik/rammer/sv.png" alt="" border="0" width="25px" /></td>
		<td class="rammes" align="right"></td>
		<td><img src="/billeder/grafik/rammer/so.png" alt="" border="0" width="30px" /></td>

	</tr>
</table>


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

<table width="98%" cellpadding="0" cellspacing="0" align="center"><tr><td valign="top">

<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="25px"><img src="/billeder/grafik/rammer/nv.png" alt="" border="0" /></td>
		<td class="rammen"></td>

		<td width="30px"><img src="/billeder/grafik/rammer/no.png" alt="" border="0" /></td>
	</tr>
	<tr>
		<td class="rammev"></td><td style="background:#FFFFFF">
<a class="lilletekst" href="/webtools/php/lagkage.php" target="_top"><img name="da" alt="Denne side pć dansk" src="/billeder/flag/da.gif" border="0" /> Script til 3D Cirkeldiagram med PHP</a><br /><a class="lilletekst" href="/webtools/php/lagkage.php?sprog=de" target="_top"><img name="de" alt="Diese Seite auf Deutsch" src="/billeder/flag/de.gif" border="0" /> Script zum 3D Kreis-diagramm mit PHP</a><br />        &nbsp;</td><td class="rammeo"></td>
	</tr>
	<tr>

		<td><img src="/billeder/grafik/rammer/sv.png" alt="" border="0" /></td>
		<td class="rammes" align="right"></td>
		<td><img src="/billeder/grafik/rammer/so.png" alt="" border="0" /></td>
	</tr>
</table>


</td><td valign="top" align="right" width="380px">

<table width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="left" width="25px"><img src="/billeder/grafik/rammer/lillev.png" border="0" alt="" /></td>
<td class="lillem" align="left">

<a href="/?sprog=en" target="_top" class="linkblank"><img src="/billeder/grafik/ikoner/hjemsort.gif" border="0" alt="Front page" title="Front page"/></a> <a href="/scripts/nojavascript.php?sprog=en" target="_blank" onclick="javascript:window.external.AddFavorite('http://www.peters1.dk/webtools/php/lagkage.php?sprog=en','Script to 3D pie chart with PHP');return false;" class="linkblank" onmouseover="window.status='Bookmark Script to 3D pie chart with PHP '; return true;" onmouseout="window.status=' '"><img src="/billeder/grafik/ikoner/menufavoritesort.gif" border="0" alt="Bookmark Script to 3D pie chart with PHP " title="Bookmark Script to 3D pie chart with PHP "/></a> <a href="/scripts/nojavascript.php?sprog=en" target="_blank" onclick="popupresize('/gastbog/alm.php?sprog=en','hej','100','700');return false;" class="linkblank" onmouseover="window.status='Read/sign my guestbook'; return true;" onmouseout="window.status=' '"><img src="/billeder/grafik/ikoner/guestsort.gif" alt="Read/sign my guestbook" title="Read/sign my guestbook" border="0"/></a> <a href="/oversigt.php?sprog=en" target="_top" onmouseover="window.status='Sitemap for www.peters1.dk'; return true;" class="linkblank" onmouseout="window.status=' '"><img src="/billeder/grafik/ikoner/sitemapsort.gif" border="0" title="Sitemap" alt="Sitemap"/></a>&nbsp;<a href="/scripts/nojavascript.php?sprog=en" target="_blank" onclick="popup('/mail/mail.php?sprog=en','mail','400','490');return false;" class="linkblank" onmouseover="window.status='Send mail...'; return true;" onmouseout="window.status=' '"><img src="/billeder/grafik/ikoner/brevsort.gif" alt="Send mail" title="Send mail" width="14" height="13" border="0"/></a></td>
<td class="lillem" align="right">&nbsp;
</td>
<td align="right" width="30px"><img src="/billeder/grafik/rammer/lilleo.png" border="0" alt="" /></td>
</tr></table>

<table><tr>
<td align="right" valign="top">

<form style="display: inline" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="image" src="/billeder/grafik/paypalen.gif" name="submit" alt="Donation to www.peters1.dk - it's fast, free and secure!" />
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHuQYJKoZIhvcNAQcEoIIHqjCCB6YCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCyUyM/m8BDynEcgaVIEuS3DJZxGFz8EYQS7kR+NpWU9nHrdzWufvkgmZWrbKqrnrDgc7BIZex+5oCAHy9TueuT8j2EBBLKC2fb756+l597HAPXa/7sihfwKLKPLFnagLvrqA55XOdt53jfU89hJ6XzquLj195VP5VGxbdb/HWQLTELMAkGBSsOAwIaBQAwggE1BgkqhkiG9w0BBwEwFAYIKoZIhvcNAwcECDy97tjyq+MZgIIBEE/wbvB/n7KsriK8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align="right" valign="top">

<a href="http://validator.w3.org/check?uri=referer" target="_blank" class="linkblank">
<img src="/billeder/grafik/w3ccss.gif" alt="Valid XHTML 1.0!" border="0" /></a><br />

	</td>
	<td align="right" valign="top">
	
	</td>
    </tr></table>

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

<script type="text/javascript">
<!--
var b = screen.width; var h = screen.height; var f = screen.colorDepth; document.cookie = "cookies=true"; var c = (document.cookie) ? "true" : "false";var t = Math.random()*100;
document.write('<img src="/scripts/log2.php?s='+b+'x'+h+'&amp;f='+f+'&amp;c='+c+'&amp;t='+t+'" alt="" border="0" />');
//-->
</script>
<noscript>
<img src="/scripts/log2.php" alt="" border="0"/>
</noscript>
</body>
</html>	