<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: 			*/
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004-2010 ARMIA INC                                    |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts VistaCart                     |
// +----------------------------------------------------------------------+
// | Authors: Jipson<jipson.thomas@armiasystems.com>             		  |
// +----------------------------------------------------------------------+
?>
<?php 	echo $javascript->link('jquery.js'); ?>
<script language="javascript" type="text/javascript">
function chk(thisform){
     	var i=0;
		var fcs_fld=new Array();
	    var errorstr = '';
	    var msgstr = "Sorry, we cannot complete your request.\nKindly provide us the missing or incorrect information enclosed below.\n\n";	
				
		if ($.trim($('#username').val()) == '') { errorstr += "- Please Enter Username.\n";  fcs_fld[i]='username'; i++;}
		if ($.trim($('#email').val()) == '') { errorstr += "- Please Enter Email Address.\n";  fcs_fld[i]='email'; i++;}	
	if (errorstr != '')
	{
		msgstr = msgstr + errorstr;
		alert(msgstr);
		$('#'+fcs_fld[0]+'').focus();
		return false;
	}
	else
	{
		thisform.submit();
		return true;
	}
} 
</script>
            <div class="col-sm-6 col-sm-offset-3">
              <h2 class="title text-center mainhd">Forgot Password</h2>
              <!--items display area start -->
			  <?php if($session->check('Message.flash')) { ?><div id="okbox"><font color="#446423"><?php $session->flash(); ?></font></div><?php } ?>

              <div class="signup-form">
                <div>				
             <form name="forgot" action="<?php echo $html->url('/users/forgotpword');?>" method="post" id="forgot">
                  
				   <div id="admin_heading">Request for a new Password</div>
                    
                    <div class="wid100p">
                    <input type="text"  id="username"  name="username" placeholder="* Username" size="27" style="float:left ">
                    </div>
                    <div class="wid100p">
                      <span class="toplinks">
						            <input type="text"  id="email" name="email" placeholder="* Email" size="27">
                      </span>
                    </div>
                  <div class="wid100p">

                    <button type="button" onClick="javascript:history.go(-1);" class="btn btn-default resetbtn left margrt10px" >Cancel</button>
        					<button type="button" class="btn btn-default left" onclick="return chk(document.forgot);">Reset</button>
                </div>
                <!--form area end -->
				</form>
              </div>
              <div align="left" class="float_clear1"></div>
            </div>
            <div align="left" class="float_clear1"><?php echo $html->image('/img/clear.gif');?></div>
			