Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Code:
Selected Language:
Show Linenumbers:
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}&amp;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 &lt;= 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 &gt; 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>
 




Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2012