| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 34 | 2 | 3 | 0.968 | php_sequence[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 34 | 15 | modules/mod_search/tmpl/default.php |
| 2 | 34 | 10 | templates/beez/html/mod_search/default.php |
| ||||
<?php
$output= '<input name="searchword" id="mod_search_searchword" maxlength="'
. $maxlength
. '" alt="'
. $button_text
. '" class="inputbox'
. $moduleclass_sfx
. '" type="text" size="'
. $width
. '" value="'
. $text
. '" onblur="if (this.value==\'\') this.value=\''
. $text
. '\';" onfocus="if (this.value==\''
. $text
. '\') this.value=\'\';" />';
if ($button):
if ($imagebutton):
$button= '<input type="image" value="'
. $button_text
. '" class="button'
. $moduleclass_sfx
. '" src="'
. $img
. '" onclick="this.form.searchword.focus();"/>';
else :
$button= '<input type="submit" value="'
. $button_text
. '" class="button'
. $moduleclass_sfx
. '" onclick="this.form.searchword.focus();"/>';
endif;
endif;
switch ($button_pos):
case 'top' :
$button= $button
. '<br />';
$output= $button
. $output;
break;
case 'bottom' :
$button= '<br />'
. $button;
$output= $output
. $button;
break;
case 'right' :
$output= $output
. $button;
break;
case 'left' :
default :
$output= $button
. $output;
break;
endswitch
;
echo $output;
?>
</div>
<input type="hidden" name="task" value="search"/>
<input type="hidden" name="option" value="com_search"/>
</form>
|
| ||||
<?php
$output= '<input name="searchword" id="mod_search_searchword" maxlength="20" class="inputbox'
. $moduleclass_sfx
. '" type="text" size="'
. $width
. '" value="'
. $text
. '" onblur="if (this.value==\'\') this.value=\''
. $text
. '\';" onfocus="if (this.value==\''
. $text
. '\') this.value=\'\';" />';
if ($button):
if ($imagebutton):
$button= '<input type="image" value="'
. $button_text
. '" class="button'
. $moduleclass_sfx
. '" src="'
. $img
. '"/>';
else :
$button= '<input type="submit" value="'
. $button_text
. '" class="button'
. $moduleclass_sfx
. '"/>';
endif;
endif;
switch ($button_pos):
case 'top' :
$button= $button
. '<br />';
$output= $button
. $output;
break;
case 'bottom' :
$button= '<br />'
. $button;
$output= $output
. $button;
break;
case 'right' :
$output= $output
. $button;
break;
case 'left' :
default :
$output= $button
. $output;
break;
endswitch
;
echo $output;
?>
<input type="hidden" name="option" value="com_search"/>
<input type="hidden" name="task" value="search"/>
</form>
|
| |||
<?php
$output= [[#variable58d1d2a0]]
. $moduleclass_sfx
. '" type="text" size="'
. $width
. '" value="'
. $text
. '" onblur="if (this.value==\'\') this.value=\''
. $text
. '\';" onfocus="if (this.value==\''
. $text
. '\') this.value=\'\';" />';
if ($button):
if ($imagebutton):
$button='<input type="image" value="'
. $button_text
. '" class="button'
. $moduleclass_sfx
. '" src="'
. $img
. [[#variable58d1d3e0]];
else :
$button='<input type="submit" value="'
. $button_text
. '" class="button'
. $moduleclass_sfx
. [[#variable58d1d3e0]];
endif;
endif;
switch ($button_pos):
case 'top':
$button=$button
. '<br />';
$output=$button
. $output;
break;
case 'bottom':
$button='<br />'
. $button;
$output=$output
. $button;
break;
case 'right':
$output=$output
. $button;
break;
case 'left':
default :
$output=$button
. $output;
break;
endswitch
;
echo $output;
?> [[#variable58d1d3c0]]
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#58d1d2a0]] | '<input name="searchword" id="mod_search_searchword" maxlength="20" class="inputbox' |
| 1 | 2 | [[#58d1d2a0]] | '<input name="searchword" id="mod_search_searchword" maxlength="' . $maxlength . '" alt="' . $button_text . '" class="inputbox' |
| 2 | 1 | [[#58d1d3e0]] | '"/>' |
| 2 | 2 | [[#58d1d3e0]] | '" onclick="this.form.searchword.focus();"/>' |
| 3 | 1 | [[#58d1d3c0]] | <input type="hidden" name="option" value="com_search"/> <input type="hidden" name="task" value="search"/> </form> |
| 3 | 2 | [[#58d1d3c0]] | </div> <input type="hidden" name="task" value="search"/> <input type="hidden" name="option" value="com_search"/> </form> |