Advertisement
Guest User

PHP APO CITYBON

a guest
May 13th, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.50 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @version     $Id: register.php 1492 2012-02-22 17:40:09Z joomlaworks@gmail.com $
  4.  * @package     K2
  5.  * @author      JoomlaWorks http://www.joomlaworks.net
  6.  * @copyright   Copyright (c) 2006 - 2012 JoomlaWorks Ltd. All rights reserved.
  7.  * @license     GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
  8.  */
  9.  
  10. // no direct access
  11. defined('_JEXEC') or die('Restricted access');
  12.  
  13. ?>
  14.  
  15. <!-- K2 user register form -->
  16. <?php if(isset($this->message)) $this->display('message'); ?>
  17.  
  18. <form action="<?php echo JRoute::_('index.php'); ?>" enctype="multipart/form-data" method="post" id="josForm" name="josForm" class="form-validate">
  19.     <?php if($this->params->def('show_page_title',1)): ?>
  20.     <div class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  21.         <?php echo $this->escape($this->params->get('page_title')); ?>
  22.     </div>
  23.     <?php endif; ?>
  24.     <div id="k2Container" class="k2AccountPage">
  25.         <table class="admintable" cellpadding="0" cellspacing="0">
  26.             <tr>
  27.                 <th colspan="2" class="k2ProfileHeading">
  28.                     <?php echo JText::_('K2_ACCOUNT_DETAILS'); ?>
  29.                 </th>
  30.             </tr>
  31.             <tr>
  32.                 <td class="key">
  33.                     <label id="namemsg" for="name"><?php echo JText::_('K2_NAME'); ?></label>
  34.                 </td>
  35.                 <td>
  36.                     <input type="text" name="<?php echo (K2_JVERSION=='16')?'jform[name]':'name'?>" id="name" size="40" value="<?php echo $this->escape($this->user->get( 'name' )); ?>" class="inputbox required" maxlength="50" />
  37.                     *
  38.                 </td>
  39.             </tr>
  40.             <tr>
  41.                 <td class="key">
  42.                     <label id="usernamemsg" for="username"><?php echo JText::_('K2_USER_NAME'); ?></label>
  43.                 </td>
  44.                 <td>
  45.                     <input type="text" id="username" name="<?php echo (K2_JVERSION=='16')?'jform[username]':'username'?>" size="40" value="<?php echo $this->escape($this->user->get( 'username' )); ?>" class="inputbox required validate-username" maxlength="25" />
  46.                     *
  47.                 </td>
  48.             </tr>
  49.             <tr>
  50.                 <td class="key">
  51.                     <label id="emailmsg" for="email"><?php echo JText::_('K2_EMAIL'); ?></label>
  52.                 </td>
  53.                 <td>
  54.                     <input type="text" id="email" name="<?php echo (K2_JVERSION=='16')?'jform[email1]':'email'?>" size="40" value="<?php echo $this->escape($this->user->get( 'email' )); ?>" class="inputbox required validate-email" maxlength="100" />
  55.                     *
  56.                 </td>
  57.             </tr>
  58.             <?php if(K2_JVERSION == '16'): ?>
  59.             <tr>
  60.                 <td class="key">
  61.                     <label id="email2msg" for="email2"><?php echo JText::_('K2_CONFIRM_EMAIL'); ?></label>
  62.                 </td>
  63.                 <td>
  64.                     <input type="text" id="email2" name="jform[email2]" size="40" value="" class="inputbox required validate-email" maxlength="100" />
  65.                     *
  66.                 </td>
  67.             </tr>
  68.             <?php endif; ?>
  69.             <tr>
  70.                 <td class="key">
  71.                     <label id="pwmsg" for="password"><?php echo JText::_('K2_PASSWORD'); ?></label>
  72.                 </td>
  73.                 <td>
  74.                     <input class="inputbox required validate-password" type="password" id="password" name="<?php echo (K2_JVERSION=='16')?'jform[password1]':'password'?>" size="40" value="" />
  75.                     *
  76.                 </td>
  77.             </tr>
  78.             <tr>
  79.                 <td class="key">
  80.                     <label id="pw2msg" for="password2"><?php echo JText::_('K2_VERIFY_PASSWORD'); ?></label>
  81.                 </td>
  82.                 <td>
  83.                     <input class="inputbox required validate-passverify" type="password" id="password2" name="<?php echo (K2_JVERSION=='16')?'jform[password2]':'password2'?>" size="40" value="" />
  84.                     *
  85.                 </td>
  86.             </tr>
  87.             <tr>
  88.                 <th colspan="2" class="k2ProfileHeading">
  89.                     <?php echo JText::_('K2_PERSONAL_DETAILS'); ?>
  90.                 </th>
  91.             </tr>
  92.             <!-- K2 attached fields -->
  93.             <tr>
  94.                 <td class="key">
  95.                     <label id="gendermsg" for="gender"><?php echo JText::_('K2_GENDER'); ?></label>
  96.                 </td>
  97.                 <td>
  98.                     <?php echo $this->lists['gender']; ?>
  99.                 </td>
  100.             </tr>
  101.             <tr>
  102.                 <td class="key">
  103.                     <label id="descriptionmsg" for="description"><?php echo JText::_('K2_DESCRIPTION'); ?></label>
  104.                 </td>
  105.                 <td>
  106.                     <?php echo $this->editor; ?>
  107.                 </td>
  108.             </tr>
  109.             <tr>
  110.                 <td class="key">
  111.                     <label id="imagemsg" for="image"><?php echo JText::_( 'K2_USER_IMAGE_AVATAR' ); ?></label>
  112.                 </td>
  113.                 <td>
  114.                     <input type="file" id="image" name="image"/>
  115.                     <?php if ($this->K2User->image): ?>
  116.                     <img class="k2AdminImage" src="<?php echo JURI::root().'media/k2/users/'.$this->K2User->image; ?>" alt="<?php echo $this->user->name; ?>" />
  117.                     <input type="checkbox" name="del_image" id="del_image" />
  118.                     <label for="del_image"><?php echo JText::_('K2_CHECK_THIS_BOX_TO_DELETE_CURRENT_IMAGE_OR_JUST_UPLOAD_A_NEW_IMAGE_TO_REPLACE_THE_EXISTING_ONE'); ?></label>
  119.                     <?php endif; ?>
  120.                 </td>
  121.             </tr>
  122.             <tr>
  123.                 <td class="key">
  124.                     <label id="urlmsg" for="url"><?php echo JText::_('K2_URL'); ?></label>
  125.                 </td>
  126.                 <td>
  127.                     <input type="text" size="50" value="<?php echo $this->K2User->url; ?>" name="url" id="url"/>
  128.                 </td>
  129.             </tr>
  130.             <?php if(count(array_filter($this->K2Plugins))): ?>
  131.             <!-- K2 Plugin attached fields -->
  132.             <tr>
  133.                 <th colspan="2" class="k2ProfileHeading">
  134.                     <?php echo JText::_('K2_ADDITIONAL_DETAILS'); ?>
  135.                 </th>
  136.             </tr>
  137.             <?php foreach ($this->K2Plugins as $K2Plugin): ?>
  138.             <?php if(!is_null($K2Plugin)): ?>
  139.             <tr>
  140.                 <td colspan="2">
  141.                     <?php echo $K2Plugin->fields; ?>
  142.                 </td>
  143.             </tr>
  144.             <?php endif; ?>
  145.             <?php endforeach; ?>
  146.             <?php endif; ?>
  147.            
  148.             <!-- Joomla! 1.6+ JForm implementation -->
  149.             <?php if(K2_JVERSION == '16'): ?>
  150.             <?php foreach ($this->form->getFieldsets() as $fieldset): // Iterate through the form fieldsets and display each one.?>
  151.                 <?php if($fieldset->name != 'default'): ?>
  152.                 <?php $fields = $this->form->getFieldset($fieldset->name);?>
  153.                 <?php if (count($fields)):?>
  154.                     <?php if (isset($fieldset->label)):// If the fieldset has a label set, display it as the legend.?>
  155.                     <tr>
  156.                         <th colspan="2" class="k2ProfileHeading">
  157.                             <?php echo JText::_($fieldset->label);?>
  158.                         </th>
  159.                     </tr>
  160.                     <?php endif;?>
  161.                     <?php foreach($fields as $field):// Iterate through the fields in the set and display them.?>
  162.                         <?php if ($field->hidden):// If the field is hidden, just display the input.?>
  163.                             <tr><td colspan="2"><?php echo $field->input;?></td></tr>
  164.                         <?php else:?>
  165.                             <tr>
  166.                                 <td class="key">
  167.                                     <?php echo $field->label; ?>
  168.                                     <?php if (!$field->required && $field->type != 'Spacer'): ?>
  169.                                         <span class="optional"><?php echo JText::_('COM_USERS_OPTIONAL');?></span>
  170.                                     <?php endif; ?>
  171.                                 </td>
  172.                                 <td><?php echo $field->input;?></td>
  173.                             </tr>
  174.                         <?php endif;?>
  175.                     <?php endforeach;?>
  176.                 <?php endif;?>
  177.                 <?php endif; ?>
  178.             <?php endforeach;?>
  179.             <?php endif; ?>
  180.            
  181.         </table>
  182.        
  183.         <?php if($this->K2Params->get('recaptchaOnRegistration') && $this->K2Params->get('recaptcha_public_key')): ?>
  184.         <label class="formRecaptcha"><?php echo JText::_('K2_ENTER_THE_TWO_WORDS_YOU_SEE_BELOW'); ?></label>
  185.         <div id="recaptcha"></div>
  186.         <?php endif; ?>
  187.        
  188.         <div class="k2AccountPageNotice"><?php echo JText::_('K2_REGISTER_REQUIRED'); ?></div>
  189.         <div class="k2AccountPageUpdate">
  190.             <button class="button validate" type="submit">
  191.                 <?php echo JText::_('K2_REGISTER'); ?>
  192.             </button>
  193.         </div>
  194.     </div>
  195.     <input type="hidden" name="option" value="<?php echo (K2_JVERSION=='16')?'com_users':'com_user'?>" />
  196.     <input type="hidden" name="task" value="<?php echo (K2_JVERSION=='16')?'registration.register':'register_save'?>" />
  197.     <input type="hidden" name="id" value="0" />
  198.     <input type="hidden" name="gid" value="0" />
  199.     <input type="hidden" name="K2UserForm" value="1" />
  200.     <?php echo JHTML::_( 'form.token' ); ?>
  201. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement