Location: PHPKode > projects > phpCAMALEO > contents/userpnl.tpl
<?php
#
#	Set radios
#
if($conf_email==0) { $radio[1]='checked'; }
if($conf_email==1) { $radio[2]='checked'; }
#
#	Set fields class to none
#
for($i=1;$i<4;$i++)	{ $fld_class[$i]='form'; }
if(isset($err_i))	{ $fld_class[$err_i]='rev'; } 
#
#	Prepare the code to accept birthday
#
include($_SESSION[common].'includes/set_month_ary.php');
$class=$fld_class[3];
$htm_bday=F_USRPNL_STR3.'&nbsp;<select class="'.$class.'" name="birth_dd[]" size="1">'; $i=1; while($i<32) { if($i!=$val_bday_dd) { $htm_bday.='<option class="form" value="'.str_pad($i,2,'0',STR_PAD_LEFT).'">'.str_pad($i,2,'0',STR_PAD_LEFT).'</option>'; } else { $htm_bday.='<option class="'.$class.'" selected>'.$val_bday_dd.'</option>'; } $i++; } 
$htm_bday.='</select><select class="'.$class.'" name="birth_mm[]" size="1">'; for($i=1;$i<13;$i++) { $ii=str_pad($i,2,'0',STR_PAD_LEFT); if($i!=$val_bday_mm) { $htm_bday.='<option class="form" value="'.$ii.'">'.$opt_mm[$ii].'</option>'; } else { $htm_bday.='<option class="'.$class.'" value="'.$ii.'" selected>'.$opt_mm[$ii].'</option>';  } }
$htm_bday.='</select><select class="'.$class.'" name="birth_yy[]" size="1">'; foreach($opt_yy as $key=>$val) { if($val!=$val_bday_yy) { $htm_bday.='<option class="form" value="'.$key.'">'.$val.'</option>'; } else { $htm_bday.='<option class="'.$class.'" selected>'.$opt_yy[$val_bday_yy].'</option>'; } }
$htm_bday.='</select>';
?>
<h3><?=F_USRPNL_TITLE?></h3>
<?=F_USRPNL_INTRO?>
<form name="camaleo" method="post" action="<?=$_SERVER[PHP_SELF]?>">
<fieldset class="form"><legend class="form">&nbsp;<?=F_USRPNL_STR1?>&nbsp;(<?=$UserRRN?>)&nbsp;</legend>
	<table class="form_table" border="0">
		<tr><td><?=F_USRPNL_STR2?><br />
			<input class="<?=$fld_class[1]?>" type="text" name="fname" value="<?=$fname?>" size="50" maxlength="50">
			<input type="hidden" name="RRN" value="<?=$UserRRN?>"></td></tr>
		<tr><td height="5"></td></tr>
		<tr><td><?=F_USRPNL_STR4?><br /><input class="<?=$fld_class[2]?>" type="text" name="email" value="<?=$email?>" size="35" maxlength="50"></td></tr>
		<tr><td height="5"></td></tr>
		<tr><td><?=$htm_bday?></td></tr>
	</table>
</fieldset>
<?=$feedback_str?>
<center>
	<input class="button" type="submit" name="submit" value="<?=B_SAVE?>">&nbsp;
	<input class="button" type="button" disabled onclick="javascript:window.location='UserPnlPw.php'" value="<?=B_CHGPW?>">&nbsp;&nbsp;&nbsp;
	<input class="button" type="button" onclick="javascript:window.location='UserPnl.php'" value="<?=B_RELOAD?>">
</center>
<fieldset class="form"><legend class="form">&nbsp;<?=F_USRPNL_STR5?>&nbsp;</legend>
	<table class="form_table" border="0">
		<tr><td><?=F_USRPNL_STR6?></td><td valign="bottom">
			<input type="radio" name="r_confemail" value="0" <?=$radio[1]?>><?=NO?>
			<input type="radio" name="r_confemail" value="1" <?=$radio[2]?>><?=YES?>
		</td></tr>
		<tr><td height="8"></td></tr>
		<tr><td><?=F_USRPNL_STR12?></td><td>
			<input class="inquiry" readonly tabindex="-1" tabindex="-1" type="text" name="privil" value="<?=$privil?>" size="2" maxlength="3">
		</td></tr>
		<tr><td><?=F_USRPNL_STR13?></td><td>
			<input class="inquiry" readonly tabindex="-1" type="text" name="reg_date" value="<?=$reg_date?>" size="10" maxlength="10">
		</td></tr>
		<tr><td><?=F_USRPNL_STR14?></td><td>
			<input class="inquiry" readonly tabindex="-1" type="text" name="last_log_date" value="<?=$last_log_date?>" size="38" maxlength="64">
		</td></tr>
		<tr><td><?=F_USRPNL_STR15?></td><td>
			<input class="inquiry" readonly tabindex="-1" type="text" name="last_log_ip" value="<?=$last_log_ip?>" size="20" maxlength="32">
		</td></tr>
		<tr><td><?=F_USRPNL_STR16?></td><td>
			<input class="inquiry" readonly tabindex="-1" type="text" name="visits" value="<?=$visits?>" size="6" maxlength="6">
		</td></tr>
	</table>
</fieldset>
</form>
<?php
switch($err_i)
{
	case 1: ?><script>document.forms['camaleo'].fname.focus();</script><?php break;
	case 2: ?><script>document.forms['camaleo'].email.focus();</script><?php break;
	default:?><script>document.forms['camaleo'].fname.focus();</script><?php 
}
echo $pop;
?>
Return current item: phpCAMALEO