-
Code's Tags
-
Your Codes
-
Reffers
-
Linked Codes
|
Code:
Short link for Twitter:
HTML:
HTML view:
Copy Source | Copy HTML <?xml version="1.0" encoding="utf-8"?> <root xmlns:newt="http://adv.ru/newt" xmlns:html="http://adv.ru/html"> <!-- Controller for validation and getting region email. --> <!-- We have to pass ${db} handler if we want to run SQL inside the controller. --> <newt:include match="query[_forward and regionhr_id[not(@value = '')]]"> <newt:action function="getEMail.regionhr" var="regionemail"> <arg value="${db}"/> <arg value="${query.param.regionhr_id}" /> </newt:action> </newt:include> <newt:form lang="ru" id="send-resume" add-query="regionemail=${regionemail}&filesize=${query.param.resumefile.length}"> <form id="send-resume" action="" method="post" last="yes" enctype="application/x-www-form-urlencoded"> <!-- Process actions only in case of correct query data. --> <newt:include match="query[_forward and filesize/@value <= 102400 and regionemail[not(@value = '')]]"> <actions hide="yes"> <action type="mail-to" on-error="Cannot send letter"> <param name="from" value="email@example.com"/> <param name="to" value="${regionemail}" /> <param name="subject" value="Резюме на ваканÑию"/> <param name="xslt" value="send-resume"/> <newt:http-env query="yes" /> </action> </actions> </newt:include> <!-- Inserting some error marks in case of mistakes. --> <newt:include match="query[_forward and filesize/@value > 102400]"> <error>Приложеный файл Ñлишком велик.</error> </newt:include> <newt:include match="query[_forward and regionemail[not(@value = '')]]"> <error>Ðевозможно отправить e-mail.</error> </newt:include> <newt:include match="query[_forward and filesize/@value = '']"> <error>Ðет файла, приложите файл резюме.</error> </newt:include> <!-- Don't pay attention to this. --> <question name="regionhr" id="regionhr" type="select"> <label>Регион:</label> <newt:transform template="transform-base-to-answer"> <newt:base id="regionhr" add-query="get-regionhr" query-filter="regionhr_id" request="request-career" /> <newt:http-env query="yes" /> </newt:transform> </question> <question name="vacancy" id="vacancy" type="text" required="yes" on-error="Ðто поле должно быть заполнено"> <label>Ðазвание ваканÑии:</label> <answer /> </question> <question name="fio" id="fio" type="text" required="yes" on-error="Ðто поле должно быть заполнено"> <label>ФИО:</label> <answer /> </question> <question name="phone" id="phone" type="text"> <label>Контактный телефон:</label> <answer /> </question> <question name="email" id="email" type="text"> <label>E-mail:</label> <answer /> </question> <question name="resumefile" required="yes" id="resumefile" type="file"> <label><span>Приложить</span> резюме (файл не более 100kB):</label> <answer /> </question> <!-- CAPTCHA --> <question name="mcaptcha" id="mcaptcha" type="text" required="yes" on-error="Введены не верные Ñимволы"> <label>Введите Ñимволы, изображенные на картинке:</label> <answer value="" /> </question> </form> </newt:form> </root>
|