Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
59 | 2 | 6 | 0.990 | php_sequence[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 63 | 1 | components/com_users/views/profile/tmpl/edit.php |
2 | 59 | 1 | components/com_users/views/registration/tmpl/default.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> |
| ||||
<?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> |
| |||
<?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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4667e600]] | <form id="member-registration" action=" |
1 | 2 | [[#4667e600]] | <form id="member-profile" action=" |
2 | 1 | [[#4667e560]] | 'index.php?option=com_users&task=registration.register' |
2 | 2 | [[#4667e560]] | 'index.php?option=com_users&task=profile.save' |
3 | 1 | [[#4667e4e0]] | <button type="submit" class="validate"> |
3 | 2 | [[#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"/> |
4 | 1 | [[#4667e3e0]] | JText |
4 | 2 | [[#4667e3e0]] | JHtml |
5 | 1 | [[#4667e460]] | 'REGISTER' |
5 | 2 | [[#4667e460]] | 'form.token' |
6 | 1 | [[#4667e440]] | </button> |
6 | 2 | [[#4667e440]] | </form> |