Location: PHPKode > projects > phpCAMALEO > contents/contact.tpl
<?php
if($_POST[cc]!='') { $cc_check='checked'; }
switch($_GET['obj']) 
{
	case 'lostuid':	$object=F_CONTACT_LUID;	break;
	case 'lostupw':	$object=F_CONTACT_LOPW;	break;
}
for($i=1;$i<=4;$i++)	{ $fld_class[$i]='form'; }
if(isset($err_i))		{ $fld_class[$err_i]='rev'; }
?><form name="camaleo" method="post" action="<?=$_SERVER[PHP_SELF]?>">
	<fieldset class="form"><legend class="form">&nbsp;<?=F_CONTACT_STR1?>&nbsp;</legend>
	<table class="form_table" border="0">
		<tr><td nowrap width="1%"><?=F_CONTACT_STR2?></td><td><input class="<?=$fld_class[1]?>" type="text" name="email" value="<?=$user_email?>" size="40" maxlength="50"></td></tr>
		<tr><td nowrap width="1%"><?=F_CONTACT_STR3?></td><td><input class="<?=$fld_class[2]?>" type="text" name="object" value="<?=$object?>" size="40" maxlength="50"></td></tr>
		<tr><td nowrap width="1%" valign="top"><?=F_CONTACT_STR4?></td><td><textarea class="<?=$fld_class[3]?>" name="message" rows="8" cols="60" style="width:100%;"><?=$message?></textarea></td></tr>
		<?php if($_SESSION[misc][skype_id]!='') { ?><tr><td colspan="2"><br /><?=F_CONTACT_STR5?><br /><a tabindex="-1" href="skype:<?=urlencode($_SESSION[misc][skype_id])?>?call"><img src="http://mystatus.skype.com/smallclassic/<?=urlencode($_SESSION[misc][skype_id])?>" style="border: none;" alt="My Skype status" /></a></td></tr><?php } ?>
	</table>
	</fieldset>
<center><small><input type="checkbox" name="cc" value="cc" <?=$cc_check?>>&nbsp;<?=F_CONTACT_STR6?><br /><br /></small><input class="button" type="submit" name="submit" value="<?=B_SEND?>"><br /><img src="img/trasp.gif" height="5" width="100%" />
<?=$feedback_str?><img src="img/trasp.gif" height="5" width="100%" /><br />
</form>
<?php 
switch($err_i)
{
	case 1: ?><script>document.forms['camaleo'].email.focus();</script><?php break;
	case 2: ?><script>document.forms['camaleo'].object.focus();</script><?php break;
	case 3: ?><script>document.forms['camaleo'].message.focus();</script><?php break;
	default:?><script>document.forms['camaleo'].email.focus();</script><?php 
}
?>
Return current item: phpCAMALEO