Location: PHPKode > projects > Enigma > Enigma2/Enigma2_Install/Themes/Enigma/RunTime.template.php
<?php

function LoadRateSelect ($name, $titleoption = 'Rate This')
{
	return '
			<select size="1" name="' . $name . '" onchange="submit();">
				<option value="" selected />' . $titleoption . '
				<option value="10" style="background-color: #E10019;" />10 Great
				<option value="9" style="background-color: #D12E4B;" />9
				<option value="8" style="background-color: #C25A7A;" />8
				<option value="7" style="background-color: #BC6C8E;" />7
				<option value="6" style="background-color: #B7789C;" />6
				<option value="5" style="background-color: #B18AAE;" />5
				<option value="4" style="background-color: #AF91B6;" />4
				<option value="3" style="background-color: #AA9FC4;" />3
				<option value="2" style="background-color: #A4AFD7;" />2
				<option value="1" style="background-color: #9DC8F1;" />1 very bad
			</select>';
}

function template_Lucky_Display()
{
	global $context;

echo '
<script language="javascript1.3">
function clear_box(obj)
{
	if (obj.value != \'\')
		obj.value=\'\';
}
</script>
<form method="post" action="#" name="luckynum">
<table border="0" cellpadding="0" cellspacing="0" width="500" align="center">
	<tr>
		<th width="100%" colspan="2">
			YOUR PERSONAL LUCKY NUMBER FOR TODAY</th>
	</tr><tr>
		<td width="100%" colspan="2">
This Script calculates your lucky number for today based upon your BirthDate.<br /><small>this calculation is based upon a very famous algorithm used by numerous leading numerologists.</small><br /><br /></td>
	</tr><tr>
		<td width="50%">Enter Your Full Birth Name:</td>
		<td width="50%"><input type="text" name="BirthName" size="40" value="', $context['lucky']['BirthName'], '" /></td>
	</tr><tr>
		<td width="50%">Enter Your Birthday MONTH (1-12):</td>
		<td width="50%"><input type="text" name="BirthMonth" size="5" value="', $context['lucky']['BirthMonth'], '" onFocus="clear_box(this);" /></td>
	</tr><tr>
		<td width="50%">Enter Your Birthday DAY (1-31):</td>
		<td width="50%"><input type="text" name="BirthDay" id="BirthDay" size="5" value="', $context['lucky']['BirthDay'], '" onFocus="clear_box(this);" /></td>
	</tr><tr>
		<td width="50%">Enter Current YEAR (FOUR digits):</td>
		<td width="50%"><input type="text" name="BirthYear" size="5" value="', $context['lucky']['BirthYear'], '" onFocus="clear_box(this);" /></td>
	</tr><tr>
		<td width="50%">&nbsp;</td>
 		<td width="50%">&nbsp;</td>
	</tr><tr>
		<td width="50%">&nbsp;</td>
		<td width="50%"><input type="submit" value="Submit" name="addit" /></td>
	</tr><tr>
		<th colspan="2" width="100%">', $context['luckydisplay'], '</th>
	</tr>
</table>
</form>
<br /><br />
';
}
?>
Return current item: Enigma