Файл: adultscript-2.0.3-pro/files/mobile/templates/default/user_signup.tpl.php
Строк: 102
<?php defined('_VALID') or die('Restricted Access!'); ?>
<script type="text/javascript">
$(document).ready(function() {
$("input[id^='radio-method-']").change(function() {
$("fieldset[id^='method-']").hide();
$("#method-" + $(this).val()).fadeIn();
});
});
</script>
<div data-role="content">
<?php if ($this->action == 'register'): ?>
<form method="post" action="<?php echo MOBILE_REL; ?>/user/signup/">
<input name="action" type="hidden" value="register" />
<div data-role="fieldcontain">
<label for="username"><?php echo __('username'); ?>:</label>
<input type="text" name="username" id="username" value="<?php echo e($this->register['username']); ?>" />
</div>
<div data-role="fieldcontain">
<label for="password"><?php echo __('password'); ?>:</label>
<input type="password" name="password" id="password" value="" />
</div>
<div data-role="fieldcontain">
<label for="email"><?php echo __('email'); ?>:</label>
<input type="email" name="email" id="email" value="<?php echo e($this->register['email']); ?>" />
</div>
<center><button type="submit" data-theme="b"><?php echo __('register-free'); ?></button></center>
</form>
<?php elseif ($this->action == 'payment'): ?>
<form method="post" action="<?php echo MOBILE_REL; ?>/register/">
<input name="action" type="hidden" value="payment" />
<input name="user_id" type="hidden" value="<?php echo $this->user_id; ?>" />
<input name="username" type="hidden" value="<?php echo $this->username; ?>" />
<input name="password" type="hidden" value="<?php echo $this->password; ?>" />
<input name="email" type="hidden" value="<?php echo $this->email; ?>" />
<?php foreach ($this->methods as $method): ?>
<fieldset id="method-<?php echo $method['slug']; ?>" data-role="controlgroup"<?php if ($method['position_mobile'] != '1'): echo ' style="display: none;"'; endif; ?>>
<legend>Select your package:</legend>
<?php foreach ($this->packages as $package): if ($package['method_id'] == $method['method_id']): ?>
<input type="radio" name="radio-package-<?php echo $method['slug']; ?>" id="radio-package-<?php echo $package['package_id']; ?>" value="<?php echo $package['package_id']; ?>"<?php if ($package['checked'] == '1'): echo ' checked="checked"'; endif; ?> />
<label for="radio-package-<?php echo $package['package_id']; ?>"><?php echo $package['price'],'$ - ',$package['name']; ?></label>
<?php endif; endforeach; ?>
</fieldset>
<?php endforeach; ?>
<fieldset data-role="controlgroup">
<legend>Select your payment method:</legend>
<?php foreach ($this->methods as $method): ?>
<input type="radio" name="radio-method" id="radio-method-<?php echo $method['method_id']; ?>" value="<?php echo $method['slug']; ?>"<?php if ($method['position_mobile'] == '1'): echo ' checked="checked"'; endif; ?> />
<label for="radio-method-<?php echo $method['method_id']; ?>"><?php echo __($method['translation']); ?></label>
<?php endforeach; ?>
</fieldset>
<center><button type="submit" data-theme="b"><?php echo __('register-premium'); ?></button></center>
</form>
<?php elseif ($this->action == 'redirect'): ?>
<script type="text/javascript">
$(document).ready(function() {
$("#payment-form").submit();
});
</script>
<h2><?php echo __('redirect-help'); ?></h2>
<?php echo $this->form; ?>
<center><button type="submit" data-theme="b"><?php echo __('redirect-payment'); ?></button></center>
</form>
<?php endif; ?>
</div>