Advertisement
naveenbos

Magento view.phtml

Jul 16th, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. <?php if (!Mage::getSingleton('customer/session')->isLoggedIn()){
  2. $login_url = $this->getUrl('*/*/login', array('_secure'=>(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS']==='on')));
  3. $http_mode = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS']==='on');
  4. if($http_mode)
  5. $login_url = str_replace('http:', 'https:', $login_url);
  6. ?>
  7. <form method="post" id="login-form" action="<?php echo $login_url ?>">
  8. <ul class="form-list">
  9. <li>
  10. <label class="required" for="login:email"><em>*</em><?php echo $this->__('Email') ?></label>
  11. <div class="input-box">
  12. <input type="text" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" placeholder="Email" id="email" class="input-text required-entry validate-email" title="<?php echo $this->__('Email Address') ?>" />
  13. </div>
  14. </li>
  15. <li>
  16. <label class="required" for="login:password"><em>*</em><?php echo $this->__('Password') ?></label>
  17. <div class="input-box">
  18. <input type="password" name="login[password]" class="input-text required-entry validate-password" placeholder="Password" id="pass" title="<?php echo $this->__('Password') ?>" />
  19. </div>
  20. </li>
  21.  
  22. <button type="submit" class="button" title="<?php echo $this->__('Login') ?>" name="send" id="send2"><span><span><?php echo $this->__('Login') ?></span></span></button> </ul></form>
  23. <?php }?>
  24. <script type="text/javascript">
  25. //<![CDATA[
  26. var loginForm = new VarienForm('login-form', true);
  27. //]]>
  28. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement