Location: PHPKode > projects > phpCAMALEO > contents/access.tpl
<?php
if($_SESSION[misc][location]=='l') { $confirm_text = $_SESSION[image_string]; }
for($i=1; $i<=3; $i++) { $fld_class[$i] = 'form'; }
if(isset($err_i)) { $fld_class[$err_i] = 'rev'; }
?>
<form name="camaleo" method="post" action="<?=$_SERVER[PHP_SELF]; echo '?'.$_SERVER[QUERY_STRING] ? '?'.$_SERVER[QUERY_STRING] : '';?>">
	<fieldset class="form"><legend class="form">&nbsp;<?=F_ACCESS_TITLE?>&nbsp;</legend>
	<table class="form_table" border="0">
		<tr><td><?=F_USERID?></td><td><?=F_PASSW?></td></tr>
		<tr>
			<td><input class="<?=$fld_class[1]?>" type="text" name="User_ID" value="<?=$user_ID?>" size="25" maxlength="25"></td>
			<td><input class="formpw" type="password" name="password1" value="" size="25" maxlength="15"></td>
		</tr>
		<tr><td><a tabindex="-1" class="special" href="LostUID.php"><?=F_COM_LOSTUID?></a></td><td><a tabindex="-1" class="special" href="LostPW.php"><?=F_COM_LOSTPW?></a></td></tr>
		<tr><td colspan="2" height="5px"></td></tr>
		<?php
		if($_SESSION[misc][demoflag]=='on')
		{
			?><tr><td colspan="2"><small><?=F_ACCESS_DEMO?></small></td></tr>
			<tr><td colspan="2" height="5px"></td></tr>
			<?php
		}
		?>
		<tr>
			<td colspan="2">
				<fieldset class="form"><legend class="form">&nbsp;<?=F_VLD_TIT?>&nbsp;</legend><img src="img/trasp.gif" width="100%" height="5px" /><br />
					<p><?=F_VLD_1?>&nbsp;<input class="<?=$fld_class[2]?>" type="text" name="confirm_text" value="<?=$confirm_text?>" size="10" maxlength="10">&nbsp;<?=F_VLD_2?></p>
					<img src="img/trasp.gif" width="100%" height="10px" /><center><?php
						if(function_exists('imagecreate'))	{ ?><img src="<?=$_SESSION[image_name]?>" alt="<?=F_VLD_TIT?>" width="180" height="70" /><?php }
						else 								{ ?><img src="<?=$_SESSION[image_name]?>" alt="<?=F_VLD_TIT?>" title="<?=$_SESSION[image_string]?>" width="180" height="70" /><br /><small><?=F_ACCESS_NOGD?></small><?php } ?>
					</center>
				</fieldset>
			</td>
		</tr>
		<tr><td colspan="2" align="center"><input class="button" type="submit" name="submit" value="<?=B_ENTER?>"></td></tr>
	</table>
	</fieldset>
</form>
<div align="center"><?=$feedback_str?></div>
<?php
switch($err_i)
{
	case 1: ?><script>document.forms['camaleo'].User_ID.focus();</script><?php break;
	case 2: ?><script>document.forms['camaleo'].confirm_text.focus();</script><?php break;
	default:?><script>document.forms['camaleo'].User_ID.focus();</script><?php 
}
?>
Return current item: phpCAMALEO