1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-10-12 20:27:27 +08:00
ULib/tests/examples/wi-auth/template/10.30.1.111/get_user_id.tmpl
2015-01-23 17:24:36 +01:00

29 lines
939 B
Cheetah

<div id="main-content-without-sidebar">
<br />
<center>
<h1>%s</h1>
</center>
<br />
<br />
<br />
<form method="post" name="form" action="%s" id="form">
<p>Login (numero del cellulare):</p>
<p><input class="login_input" type="text" id="uid" name="uid" /></p><input id="confirm" type="submit" name="submit" value="Conferma" />
</form>
<script type="text/javascript">
//<![CDATA[
var valComm = new LiveValidation( 'uid', {onlyOnSubmit: true, validMessage: "OK" } );
valComm.add( Validate.Presence, {failureMessage: "Devi inserire il numero di cellulare"} );
valComm.add( Validate.Numericality, {onlyInteger: true, notANumberMessage: "sono presenti spazi nel numero"} );
valComm.add( Validate.Exclusion, {within: [' '],allowNull:true,partialMatch:true,caseSensitive:false,failureMessage:"sono presenti spazi nel numero" } );
//]]>
</script>
<br />
<br />
<br />
<br />
<br />
<br />
</div>
</div>