use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");if ( $C->{Form}{errors} ) {$this->out("	<div style=\"color: red\">\n");my $in = $C->{Form}{errors};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{error} = -1;for my $f (@$loop) {$C->{ITERATION}{error}++;$C->{error} = $f;$this->out("		<br>* $C->{error}{message}\n");}$this->out("	</div><br>\n");}$this->out("\n");if ( $C->{Complete} ) {$this->out("	<div style=\"color: blue\">Your profile has been updated</div><br>\n");}$this->out("\n\n<form method=get>\n<input type=hidden name=page value=\"$C->{INPUT}{page}\">\n<input type=hidden name=page_ret value=\"$C->{INPUT}{page_ret}\">\n<div>\n	<span style=\"display: table-cell; width: 100px\"></span>\n	<span style=\"display: table-cell\"><b>Profile</b><br><br></span>\n</div>\n<div>\n	<span style=\"display: table-cell; width: 100px\"><b>Your e-mail</b></span>\n	<span style=\"display: table-cell\"><b>$C->{UserObj}{email}</b><input type=\"hidden\" name=\"email\" value=\"$C->{UserObj}{email}\"></span>\n</div>\n<div>\n	<span style=\"display: table-cell; width: 100px\"><b>Password</b></span>\n	<span style=\"display: table-cell\">$C->{Form}{passwd}</span>\n</div>\n<br>\n<div>\n	<span style=\"display: table-cell; width: 100px\"><b>First name</b></span>\n	<span style=\"display: table-cell\">$C->{Form}{fname}</span>\n</div>\n<div>\n	<span style=\"display: table-cell; width: 100px\"><b>Last name</b></span>\n	<span style=\"display: table-cell\">$C->{Form}{lname}</span>\n</div>\n<br>\n<div>\n	<span style=\"display: table-cell; width: 100px\"></span>\n	<span style=\"display: table-cell\">Address information</span>\n</div>\n<div>\n	<span style=\"display: table-cell; width: 100px\"><b>Address</b></span>\n	<span style=\"display: table-cell\">$C->{Form}{address}</span>\n</div>\n<div>\n	<span style=\"display: table-cell; width: 100px\"><b>City</b></span>\n	<span style=\"display: table-cell\">$C->{Form}{city}</span>\n</div>\n<div>\n	<span style=\"display: table-cell; width: 100px\"><b>State</b></span>\n	<span style=\"display: table-cell\">$C->{Form}{state}</span>\n</div>\n<div>\n	<span style=\"display: table-cell; width: 100px\"><b>Zipcode</b></span>\n	<span style=\"display: table-cell\">$C->{Form}{zipcode}</span>\n</div>\n<div>\n	<span style=\"display: table-cell; width: 100px\"><b>Country</b></span>\n	<span style=\"display: table-cell\">$C->{Form}{country}</span>\n</div>\n<br>\n<div>\n	<span style=\"display: table-cell; width: 100px\"></span>\n	<span style=\"display: table-cell\">Payment information</span>\n</div>\n<div>\n	<span style=\"display: table-cell; width: 100px\"><b>Paypal e-mail</b></span>\n	<span style=\"display: table-cell\">$C->{Form}{pg_paypal_email}</span>\n</div>\n<div>\n	<span style=\"display: table-cell; width: 100px\">&nbsp;</span>\n	<span style=\"display: table-cell\"><br><input type=submit tabIndex=4 name=do_it value=\"Update\"></span>\n</div>\n</form>\n");}