<?php $this->load->view('default_header');?>
<script>
$(document).ready(function(){
  $("#regform").validationEngine();
}); 

</script>

		<?php 
		if(isset($success))
			echo '<p id="success" class="msg done">'.$success.'</p>';
		?>
		<?php
		if(isset($error)) echo '<p class="msg error" id="error">'.$error.'</p>';
		?>
		<form action="" method="post" id="regform">
		    <div class="b-fieldset">
		        <fieldset class="b-form_fieldset ng-scope">
		            <div class="b-form_fieldset_title ng-binding">
		                "MyTest" tizimiga a'zo bo'lish
		            </div>
		            <div class="ng-scope input">
		                <div class="b-field ng-scope">
		                    <div class="b-field__name ng-binding">
		                        First Name
		                    </div>
		                    <div class="b-field__input ng-scope">
		                        <input placeholder="Ernazarov" type="text" name="firstname" size="39" class="b-field__type ng-pristine ng-untouched ng-valid ng-scope validate[required]">
		                        <?=form_error('firstname'); ?>
		                    </div>
		                </div>
		            </div>
		            <div class="ng-scope">
		                <div class="b-field ng-scope">
		                    <div class="b-field__name ng-binding">
		                        Last Name
		                    </div>
		                    <div class="b-field__input ng-scope">
		                        <input placeholder="Sirojiddin" type="text" name="lastname" size="39" class="b-field__type ng-pristine ng-untouched ng-valid ng-scope validate[required]">
		                        <?=form_error('lastname'); ?>
		                    </div>
		                </div>
		            </div>
		            <div class="ng-scope">
		                <div class="b-field ng-scope">
		                    <div class="b-field__name ng-binding">
		                        E-mail<br />
							    <font color="red"><?=form_error('email'); ?></font>
		                    </div>
		                    <div class="b-field__input ng-scope">
							    <input placeholder="example@site.com" type="text" name="email" size="39" class="b-field__type ng-pristine ng-untouched ng-valid ng-scope  validate[required, custom[email]]">
		                    </div>
		                </div>
		            </div>
		            <div class="ng-scope">
		                <div class="b-field ng-scope">
		                    <div class="b-field__name ng-binding">
		                        <font color="red">*</font> Login<br />
							    <font color="red"><?=form_error('username'); ?></font>
		                    </div>
		                    <div class="b-field__input ng-scope">
							    <input placeholder="serega" type="text" name="username" size="39" class="b-field__type ng-pristine ng-untouched ng-valid ng-scope validate[required] minSize[3] maxSize[20]">
		                    </div>
		                </div>
		            </div>
		            <div class="ng-scope">
		                <div class="b-field ng-scope">
		                    <div class="b-field__name ng-binding">
		                        <font color="red">*</font> Parol
		                    </div>
		                    <div class="b-field__input ng-scope">
		                    	<input placeholder="********" type="password" name="password" id="password" size="39" class="b-field__type ng-pristine ng-untouched ng-valid ng-scope validate[required] minSize[6] maxSize[20]">
		                    	<?=form_error('password'); ?>
		                    </div>
		                </div>
		            </div>
		            <div class="ng-scope">
		                <div class="b-field ng-scope">
		                    <div class="b-field__name ng-binding">
		                        Parolni qayta tering
		                    </div>
		                    <div class="b-field__input ng-scope">
		                    	<input placeholder="********" type="password" name="confirmpassword" size="39" class="b-field__type ng-pristine ng-untouched ng-valid ng-scope validate[required] equals[password]">
		                    	<?=form_error('confirmpassword'); ?>
		                    </div>
		                </div>
		            </div>
			            <font color="red">*</font> bilan belgilangan maydonga kiritgan ma'lumotlaringizni eslab qoling, ular tizimdagi shaxsingizni tasdiqlovchi kali so'zlardir.
			            <div style="margin-top: 10px;" id="js-register-btn" class="b-bottom xb-fixed b-button-group-vertical">
			                <input type="submit" value="Ro'yxatdan o'tish" name="registerbttn" class="button b-button">
			            </div>
			        </fieldset>
			    </div>
	    </form>
<?php $this->load->view('footer');?>
</body>
<html>