<scenario begin="input_phone" >
    <!--  Start screen -->
    <screen type="numeric/info" title="INFORMATII IMPORTANTE" id="input_phone">
        <fields>
            <text-field id="phone" title="NUMARUL DE TELEFON" max-len="10" prefix="07" keyboard="Digital">
				<help>
					<![CDATA[
						<html><div style="color:#333333;padding:20px 120px 0 0px;font-family:FreeSetC Bold;">
							<span style="font-size:13px;">&bull;</span> Introduceti numarul de telefon mobil pentru contact in cazul unei tranzactii nereusite.<br>
							<p style="padding-top:5px;"><span style="font-size:13px;">&bull;</span> Daca nu doriti sa furnizati aceasta informatie apasati butonul "INAINTE".</p>
						</div>
					]]>
				</help>			
                <validator type="regex">
                    <rules>
                        <rule regex="^\d{10}$"/>
                    </rules>
                </validator>
            </text-field>            
        </fields>
        <actions>
            <action type="Next" title="INAINTE">
                <goto target="exit"/>                
            </action>
            <action type="Prev" title="INAPOI">		
                <goto target="previos"/>
            </action>
            <action type="Exit" title="MENIU">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>	
	
    <screen type="selector/button" title="SELECTATI VALOAREA DE REINCARCARE" id="select_nominal">
        <fields>
            <selector-field id="id1" title="Nominal">
                <items type="static">
                    <item value="25" image="paysafe_25.png" title="25 RON" sum="25"/>
                    <item value="50" image="paysafe_50.png" title="50 RON" sum="50"/>
                    <item value="100" image="paysafe_100.png" title="100 RON" sum="100"/>
                    <item value="300" image="paysafe_300.png" title="300 RON" sum="300"/>
                </items>
            </selector-field>
        </fields>
        <actions>
            <action type="Next" title="INAINTE">
				<online-request type="default" function="test" params="id1">
					<actions>
					<action type="success">
						<goto target="pay"/>
					</action>
					<action type="error">
									<dialog type="Info" title="Error" message="Nu exista conexiune cu serverul" timeout="10" default="okay">
										<actions>
											<action type="okay" title="OK">
												<cancel/>
											</action>                                            
										</actions>
									</dialog>                            
								</action>
								<action type="exception">
									<dialog type="Info" title="Error" message="Nu exista conexiune cu serverul" timeout="10" default="okay">
										<actions>
											<action type="okay" title="OK">
												<cancel/>
											</action>                                            
										</actions>
									</dialog>
								</action>
					</actions>
				</online-request>
            </action>
            <action type="Prev" title="INAPOI">
                <goto target="previos"/>
            </action>
            <action type="Exit" title="MENIU">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
</scenario>