CloneSet206


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
59260.990php_sequence[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1631
components/com_users/views/profile/tmpl/edit.php
2591
components/com_users/views/registration/tmpl/default.php
Clone Instance
1
Line Count
63
Source Line
1
Source File
components/com_users/views/profile/tmpl/edit.php

<?php
/**
 * @version             $Id: edit.php 11952 2009-06-01 03:21:19Z robs $
 * @package             Joomla.Site
 * @subpackage  com_users
 * @copyright   Copyright (C) 2005 - 2009 Open Source Matters, Inc. All rights reserved.
 * @license             GNU General Public License version 2 or later; see LICENSE.txt
 */

defined( "_JEXEC") or exit;

JHtml::_('behavior.mootools');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
?>
<form id="member-profile" action="<?php echo JRoute::_('index.php?option=com_users&task=profile.save'); ?>" method="post" class="form-validate">
<?php
// Iterate through the form fieldsets and display each one.
foreach ($this->form->getFieldsets() as $group => $fieldset):
;
?>
<fieldset>
<?php
        // If the fieldset has a label set, display it as the legend.
        if ( isset ($fieldset['label'])):
        ;
        ?>
<legend><?php         echo JText::_($fieldset['label']); ?></legend>
<dl>
<?php
        endif;
        // Iterate through the fields in the set and display them.
        foreach ($this->form->getFields($group) as $field):
                // If the field is hidden, just display the input.
                if ($field->hidden):
                        echo $field->input;
                else :
                ;
                ?>
<dt>
<?php                                 echo $field->label; ?>
<?php                                 if (!$field->required): ;
                                                              ?>
<span class="optional"><?php                                 echo JText::_('USERS OPTIONAL'); ?></span>
<?php
                                      endif; ?>
</dt>
<dd>
<?php                                 echo $field->input; ?>
</dd>
<?php
                endif;
        endforeach
        ;
        ?>
</dl>
</fieldset>
<?php
endforeach
;
?>
<button type="submit" class="validate"><span>Submit</span></button>
<input type="hidden" name="option" value="com_users"/>
<input type="hidden" name="task" value="profile.save"/>
<?php echo JHtml::_('form.token'); ?>
</form>


Clone Instance
2
Line Count
59
Source Line
1
Source File
components/com_users/views/registration/tmpl/default.php

<?php
/**
 * @version             $Id: default.php 11952 2009-06-01 03:21:19Z robs $
 * @package             Joomla.Site
 * @subpackage  com_users
 * @copyright   Copyright (C) 2005 - 2009 Open Source Matters, Inc. All rights reserved.
 * @license             GNU General Public License version 2 or later; see LICENSE.txt
 */

defined( "_JEXEC") or exit;

JHtml::_('behavior.mootools');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
?>
<form id="member-registration" action="<?php echo JRoute::_('index.php?option=com_users&task=registration.register'); ?>" method="post" class="form-validate">
<?php
// Iterate through the form fieldsets and display each one.
foreach ($this->form->getFieldsets() as $group => $fieldset):
;
?>
<fieldset>
<?php
        // If the fieldset has a label set, display it as the legend.
        if ( isset ($fieldset['label'])):
        ;
        ?>
<legend><?php         echo JText::_($fieldset['label']); ?></legend>
<dl>
<?php
        endif;
        // Iterate through the fields in the set and display them.
        foreach ($this->form->getFields($group) as $field):
                // If the field is hidden, just display the input.
                if ($field->hidden):
                        echo $field->input;
                else :
                ;
                ?>
<dt>
<?php                                 echo $field->label; ?>
<?php                                 if (!$field->required): ;
                                                              ?>
<span class="optional"><?php                                 echo JText::_('USERS OPTIONAL'); ?></span>
<?php
                                      endif; ?>
</dt>
<dd>
<?php                                 echo $field->input; ?>
</dd>
<?php
                endif;
        endforeach
        ;
        ?>
</dl>
</fieldset>
<?php
endforeach
;
?>
<button type="submit" class="validate"><?php echo JText::_('REGISTER'); ?></button>


Clone AbstractionParameter Count: 6Parameter Bindings

<?php
  /**
   * @version             $Id: default.php 11952 2009-06-01 03:21:19Z robs $
   * @package             Joomla.Site
   * @subpackage  com_users
   * @copyright   Copyright (C) 2005 - 2009 Open Source Matters, Inc. All rights reserved.
   * @license             GNU General Public License version 2 or later; see LICENSE.txt
   */
  /**
   * @version             $Id: edit.php 11952 2009-06-01 03:21:19Z robs $
   * @package             Joomla.Site
   * @subpackage  com_users
   * @copyright   Copyright (C) 2005 - 2009 Open Source Matters, Inc. All rights reserved.
   * @license             GNU General Public License version 2 or later; see LICENSE.txt
   */
  defined( "_JEXEC") or exit;
  JHtml::_('behavior.mootools');
  JHtml::_('behavior.tooltip');
  JHtml::_('behavior.formvalidation');
?> [[#variable4667e600]]<?php
                          echo JRoute::_( [[#variable4667e560]]);
                        ?>" method="post" class="form-validate">
<?php
  // Iterate through the form fieldsets and display each one.
  foreach ($this->form->getFieldsets() as $group => $fieldset):
    ;
    ?>
<fieldset>
<?php
    // If the fieldset has a label set, display it as the legend.
    if ( isset ($fieldset['label'])):
      ;
      ?>
<legend><?php
      echo JText::_($fieldset['label']);
      ?></legend>
<dl>
<?php
    endif;
    // Iterate through the fields in the set and display them.
    foreach ($this->form->getFields($group) as $field):
      // If the field is hidden, just display the input.
      if ($field->hidden):
        echo $field->input;
      else :
        ;
        ?>
<dt>
<?php
        echo $field->label;
        ?>
<?php
        if (!$field->required):
          ;
          ?>
<span class="optional"><?php
          echo JText::_('USERS OPTIONAL');
          ?></span>
<?php
        endif;
        ?>
</dt>
<dd>
<?php
        echo $field->input;
        ?>
</dd>
<?php
      endif;
    endforeach
    ;
    ?>
</dl>
</fieldset>
<?php
  endforeach
  ;
?> [[#variable4667e4e0]]<?php
                          echo [[#variable4667e3e0]]::_( [[#variable4667e460]]);
                        ?> [[#variable4667e440]]
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4667e600]]
<form id="member-registration" action=" 
12[[#4667e600]]
<form id="member-profile" action=" 
21[[#4667e560]]
'index.php?option=com_users&task=registration.register' 
22[[#4667e560]]
'index.php?option=com_users&task=profile.save' 
31[[#4667e4e0]]
<button type="submit" class="validate"> 
32[[#4667e4e0]]
<button type="submit" class="validate"><span>Submit</span></button>
<input type="hidden" name="option" value="com_users"/>
<input type="hidden" name="task" value="profile.save"/> 
41[[#4667e3e0]]
JText 
42[[#4667e3e0]]
JHtml 
51[[#4667e460]]
'REGISTER' 
52[[#4667e460]]
'form.token' 
61[[#4667e440]]
</button> 
62[[#4667e440]]
</form>