Advertisement
Guest User

Untitled

a guest
Dec 9th, 2015
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.33 KB | None | 0 0
  1. <?php
  2. if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
  3. /**
  4. *
  5. * @version $Id: login_registration.tpl.php 1345 2008-04-03 20:26:21Z soeren_nb $
  6. * @package VirtueMart
  7. * @subpackage templates
  8. * @copyright Copyright (C) 2008 soeren - All rights reserved.
  9. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
  10. * VirtueMart is free software. This version may have been modified pursuant
  11. * to the GNU General Public License, and as distributed it includes or
  12. * is derivative of works licensed under the GNU General Public License or
  13. * other free or open source software licenses.
  14. * See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
  15. *
  16. * http://virtuemart.net
  17. */
  18.  
  19.    // If we have a POST value for "func", we were oviously directed here, because a validation error
  20.    // occured during registration. So, let's show the Registration Details Stretcher first
  21.    // Otherwise the Login Form will be shown by default
  22.    $open_to_stretcher = !isset($_POST['func']) ? '0' : '1';
  23.    $show_login = VM_REGISTRATION_TYPE == 'NO_REGISTRATION' ? 0 : 1;
  24. ?>
  25. <?php if( $show_login ) : ?>
  26. <h4><input type="radio" name="togglerchecker" id="toggler1" class="toggler" <?php if($open_to_stretcher == 0 ) { ?>checked="checked"<?php } ?> />
  27. <label for="toggler1"><?php echo $VM_LANG->_('PHPSHOP_RETURN_LOGIN') ?></label>
  28. </h4>
  29. <div class="stretcher" id="login_stretcher">
  30. <?php include( PAGEPATH . 'checkout.login_form.php' ); ?>
  31. </div>
  32. <br />
  33. <h4><input type="radio" name="togglerchecker" id="toggler2" class="toggler" <?php if($open_to_stretcher == 1 ) { ?>checked="checked"<?php } ?> />
  34. <label for="toggler2"><?php echo $VM_LANG->_('PHPSHOP_NEW_CUSTOMER') ?></label></h4>
  35. <div class="stretcher" id="register_stretcher">
  36. <?php endif; ?>
  37.  
  38. <?php include(PAGEPATH. 'checkout_register_form.php'); ?>
  39.  
  40. <?php if( $show_login ) : ?>
  41.    </div>
  42.    <br />
  43.    
  44. <?php
  45.    echo vmCommonHTML::scriptTag('', 'Window.onDomReady(function() {
  46.    
  47.     // get accordion elements
  48.     myStretch = $$( \'.toggler\' );
  49.     myStretcher = $$( \'.stretcher\' );
  50.    
  51.     // Create the accordion
  52.     myAccordion = new Fx.Accordion(myStretch, myStretcher,
  53.         {
  54.             /*fixedHeight: 125,*/
  55.             opacity : true,
  56.             display: '.$open_to_stretcher.'
  57.         });
  58.  
  59. });');
  60. ?>
  61. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement