Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
32 | 2 | 6 | 0.987 | php_sequence[11] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 32 | 12 | templates/beez/html/com_content/article/form.php |
2 | 32 | 26 | 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); ?> |
| ||||
<?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); ?> |
| |||
<?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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4376ec60]] | "] = new Array( ' |
1 | 2 | [[#4376ec60]] | "] = new Array(' |
2 | 1 | [[#4376ec00]] | "' );\n\t\t" |
2 | 2 | [[#4376ec00]] | "');\n\t\t" |
3 | 1 | [[#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 = |
3 | 2 | [[#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 = |
4 | 1 | [[#4376eb40]] | if (form.title.value == '') { return alert ( " |
4 | 2 | [[#4376eb40]] | if (form.title.value == '') { return alert (" |
5 | 1 | [[#4376eaa0]] | " ); } else if (text == '') { return alert ( " |
5 | 2 | [[#4376eaa0]] | "); } else if (text == '') { return alert (" |
6 | 1 | [[#465544a0]] | ')) { // for articles if (form.catid && getSelectedValue('adminForm','catid') <1) { return alert ( " |
6 | 2 | [[#465544a0]] | ')) { // for articles if (form.catid && getSelectedValue('adminForm','catid') <1) { return alert (" |