CloneSet195


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
34230.968php_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13415
modules/mod_search/tmpl/default.php
23410
templates/beez/html/mod_search/default.php
Clone Instance
1
Line Count
34
Source Line
15
Source File
modules/mod_search/tmpl/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>


Clone Instance
2
Line Count
34
Source Line
10
Source File
templates/beez/html/mod_search/default.php

        <?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>


Clone AbstractionParameter Count: 3Parameter Bindings

<?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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58d1d2a0]]
'<input name="searchword" id="mod_search_searchword" maxlength="20" class="inputbox' 
12[[#58d1d2a0]]
'<input name="searchword" id="mod_search_searchword" maxlength="'
. $maxlength
. '" alt="'
. $button_text
. '" class="inputbox' 
21[[#58d1d3e0]]
'"/>' 
22[[#58d1d3e0]]
'" onclick="this.form.searchword.focus();"/>' 
31[[#58d1d3c0]]
<input type="hidden" name="option" value="com_search"/>
<input type="hidden" name="task" value="search"/>
</form> 
32[[#58d1d3c0]]
</div>
<input type="hidden" name="task" value="search"/>
<input type="hidden" name="option" value="com_search"/>
</form>