CloneSet312


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
32260.987php_sequence[11]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13212
templates/beez/html/com_content/article/form.php
23226
templates/rhuk_milkyway/html/com_content/article/form.php
Clone Instance
1
Line Count
32
Source Line
12
Source File
templates/beez/html/com_content/article/form.php

<?php
$i=  0;
foreach ($this->lists['sectioncategories'] as $k => $items) {
        foreach ($items as $v) {
                echo "sectioncategories["
                     .                    $i ++
                     .                         "] = new Array('$k','"
                     .                                                addslashes($v->id)
                     .                                                                   "','"
                     .                                                                         addslashes($v->title)
                     .                                                                                               "');\n\t\t";
              }
      }
?> function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton == 'cancel') { submitform(pressbutton);
return; } try { form.onsubmit(); } catch(e) { alert(e); } // do field validation var text = <?php echo $this->editor->getContent('text'); ?> if (form.title.value == '') { return alert ("<?php echo JText::_('Article must have a title', TRUE); ?>"); } else if (text == '') { return alert ("<?php echo JText::_('Article must have some text', TRUE); ?>"); } else if (parseInt('<?php echo $this->article->sectionid;?>')) { // for articles if (form.catid && getSelectedValue('adminForm','catid')
<1) { return alert ("<?php echo JText::_('Please select a category', TRUE); ?>


Clone Instance
2
Line Count
32
Source Line
26
Source File
templates/rhuk_milkyway/html/com_content/article/form.php

<?php
$i=  0;
foreach ($this->lists['sectioncategories'] as $k => $items) {
        foreach ($items as $v) {
                echo "sectioncategories["
                     .                    $i ++
                     .                         "] = new Array( '$k','"
                     .                                                 addslashes( $v->id)
                     .                                                                      "','"
                     .                                                                            addslashes( $v->title)
                     .                                                                                                    "' );\n\t\t";
              }
      }
?> function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton == 'cancel') { submitform(
pressbutton ); return; } try { form.onsubmit(); } catch(e) { alert(e); } // do field validation var text
= <?php echo $this->editor->getContent( 'text');  ?> if (form.title.value == '') { return alert ( "<?php echo JText::_( 'Article must have a title', TRUE);  ?>" ); } else if (text == '') { return alert ( "<?php echo JText::_( 'Article must have some text', TRUE);  ?>"); } else if (parseInt('<?php echo $this->article->sectionid;?>')) { // for articles if (form.catid && getSelectedValue('adminForm','catid')
<1) { return alert ( "<?php echo JText::_( 'Please select a category', TRUE);  ?>


Clone AbstractionParameter Count: 6Parameter Bindings

<?php
  $i=0;
  foreach ($this->lists['sectioncategories'] as $k => $items) {
    foreach ($items as $v) {
      echo "sectioncategories["
           . $i ++
           .  [[#variable4376ec60]]$k','"
           . addslashes($v->id)
           . "','"
           . addslashes($v->title)
           .  [[#variable4376ec00]];
    }
  }
?> [[#variable4376eb80]]<?php
                          echo $this->editor->getContent('text');
                        ?> [[#variable4376eb40]]<?php
                                                  echo JText::_('Article must have a title',TRUE);
                                                ?> [[#variable4376eaa0]]<?php
                                                                          echo JText::_('Article must have some text',TRUE);
                                                                        ?>"); } else if (parseInt('<?php
                                                                                                     echo $this->article->sectionid;
                                                                                                   ?> [[#variable465544a0]]<?php
                                                                                                                             echo JText::_('Please select a category',TRUE);
                                                                                                                           ?>
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4376ec60]]
"] = new Array( ' 
12[[#4376ec60]]
"] = new Array(' 
21[[#4376ec00]]
"' );\n\t\t" 
22[[#4376ec00]]
"');\n\t\t" 
31[[#4376eb80]]
 function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton == 'cancel') { submitform(
pressbutton ); return; } try { form.onsubmit(); } catch(e) { alert(e); } // do field validation var text
=  
32[[#4376eb80]]
 function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton == 'cancel') { submitform(pressbutton);
return; } try { form.onsubmit(); } catch(e) { alert(e); } // do field validation var text =  
41[[#4376eb40]]
 if (form.title.value == '') { return alert ( " 
42[[#4376eb40]]
 if (form.title.value == '') { return alert (" 
51[[#4376eaa0]]
" ); } else if (text == '') { return alert ( " 
52[[#4376eaa0]]
"); } else if (text == '') { return alert (" 
61[[#465544a0]]
')) { // for articles if (form.catid && getSelectedValue('adminForm','catid')
<1) { return alert ( " 
62[[#465544a0]]
')) { // for articles if (form.catid && getSelectedValue('adminForm','catid')
<1) { return alert ("