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<div class=\"contant-form\">\n");if ( $C->{User} ) {$this->out("	<form method=POST enctype=\"multipart/form-data\">\n\n");if ( $C->{SYProd} ) {$this->out("");$C->{INPUT}{title} = "$C->{SYProd}{title}";$this->out("");$C->{INPUT}{price} = "$C->{SYProd}{price}";$this->out("");$C->{INPUT}{url} = "$C->{SYProd}{url}";$this->out("");$C->{INPUT}{download_url} = "$C->{SYProd}{download_url}";$this->out("");$C->{INPUT}{descr} = "$C->{SYProd}{descr}";$this->out("			<input type=\"hidden\" name=\"syprod_id\" value=\"$C->{INPUT}{syprod_id}\">\n");}$this->out("\n		<input type=\"hidden\" name=\"syevent_id\" value=\"$C->{INPUT}{syevent_id}\">\n		<input type=\"hidden\" name=\"signature\" value=\"$C->{INPUT}{signature}\">\n		<input type=\"hidden\" name=\"page\" value=\"$C->{INPUT}{page}\">\n\n		<label>Main Title:</label>\n		<input type=\"text\"  value=\"$C->{INPUT}{title}\" class=\"form-control\" name=\"title\" placeholder=\"Main Title\">\n\n		<label>Price Value:</label>\n		<input type=\"text\" value=\"$C->{INPUT}{price}\" class=\"form-control\" name=\"price\" placeholder=\"Price Value\">\n\n		<label>Upload Picture:</label>\n		<div class=\"input-group mb-3\">\n			<input type=\"file\" class=\"form-control\" name=\"cover_upload_1\">\n		</div>\n\n		<label>Squeeze Page URL:</label>\n		<div class=\"input-group mb-3\">\n			<input name=\"url\" value=\"$C->{INPUT}{url}\" class=\"form-control\" placeholder=\"URL\" aria-label=\"Recipient\'s username\" aria-describedby=\"basic-addon2\">\n		</div>\n\n		<label>Download Page:</label>\n		<input type=\"text\" value=\"$C->{INPUT}{download_url}\" class=\"form-control\" name=\"download_url\" placeholder=\"Download URL\">\n\n		<label>Brief Description:</label>\n		<textarea name=\"descr\" class=\"form-control\" placeholder=\"Description\">$C->{INPUT}{descr}</textarea>\n\n		<div class=\"submit text-center cus-sub mt-4 p2-sub\">\n			<input type=\"submit\" name=\"submit\" value=\"Submit your listing\">\n			<p>Note : All details will be kept strictly confidential <br>and your privacy is 100\% protected.</p>\n		</div>\n	</form>\n");} else {$this->out("	<h7>Please login to submit your gift!</h7>\n");if ( $C->{LoginError} ) {$this->out("		<p style=\"color:red\">*&nbsp;Authorization error: wrong username or password.</p>\n");}$this->out("	<form name=\"LoginForm\" method=post>\n		<label>Username</label>\n		<input class=\"form-control\" type=\"text\" tabIndex=1 size=20 maxsize=30 name=\"login\" value=\"$C->{INPUT}{login}\">\n		<label>Password</label>\n		<input class=\"form-control\" type=\"password\" tabIndex=2 size=20 maxsize=30 name=\"passwd\">\n		<div class=\"submit text-center cus-sub mt-4 p2-sub\">\n			<input type=\"submit\" name=\"do_login\" value=\"Log in\">\n		</div>\n	</form>\n");}$this->out("</div>\n");}