CloneSet697


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25260.976statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
125213
administrator/components/com_banners/views/banner.php
225150
administrator/components/com_banners/views/client.php
Clone Instance
1
Line Count
25
Source Line
213
Source File
administrator/components/com_banners/views/banner.php

                JRequest::setVar('hidemainmenu', 1);
                JFilterOutput::objectHTMLSafe($row, ENT_QUOTES, 'custombannercode');
                ?>
<script language="javascript" type="text/javascript">
		<!--
		function changeDisplayImage() {
			if (document.adminForm.imageurl.value !='') {
				document.adminForm.imagelib.src='../images/banners/' + document.adminForm.imageurl.value;
			} else {
				document.adminForm.imagelib.src='images/blank.png';
			}
		}
		function submitbutton(pressbutton) {
			var form = document.adminForm;
			if (pressbutton == 'cancel') {
				submitform(pressbutton);
				return;
			}
			// do field validation
			if (form.name.value == "") {
				alert("<?php echo JText::_('You must provide a banner name.', TRUE); ?>"); } else if (getSelectedValue('adminForm','cid')
<1) { alert("<?php
                                             echo JText::_('Please select a client.', TRUE); ?>"); /*} else if (!getSelectedValue('adminForm','imageurl')) { alert("<?php


Clone Instance
2
Line Count
25
Source Line
150
Source File
administrator/components/com_banners/views/client.php

                JRequest::setVar('hidemainmenu', 1);
                JFilterOutput::objectHTMLSafe($row, ENT_QUOTES, 'extrainfo');
                ?>
<script language="javascript" type="text/javascript">
		<!--
		function submitbutton(pressbutton)
		{
			var form = document.adminForm;
			if (pressbutton == 'cancel')
			{
				submitform(pressbutton);
				return;
			}
			// do field validation
			if (form.name.value == "")
			{
				alert("<?php echo JText::_('Please fill in the Client Name.', TRUE); ?>"); } else if (form.contact.value == "") { alert("<?php



                                             echo JText::_('Please fill in the Contact Name.', TRUE); ?>"); } else if (form.email.value == "") { alert("<?php


Clone AbstractionParameter Count: 6Parameter Bindings

JRequest::setVar('hidemainmenu',1);
JFilterOutput::objectHTMLSafe($row,ENT_QUOTES, [[#variable456f8680]]);
?> [[#variable456f8600]]<?php
echo JText::_( [[#variable456f8580]],TRUE);
?> [[#variable456f84e0]]<?php
echo JText::_( [[#variable456f8480]],TRUE);
?> [[#variable456f83e0]]<?php
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#456f8680]]
'custombannercode' 
12[[#456f8680]]
'extrainfo' 
21[[#456f8600]]
<script language="javascript" type="text/javascript">
		<!--
		function changeDisplayImage() {
			if (document.adminForm.imageurl.value !='') {
				document.adminForm.imagelib.src='../images/banners/' + document.adminForm.imageurl.value;
			} else {
				document.adminForm.imagelib.src='images/blank.png';
			}
		}
		function submitbutton(pressbutton) {
			var form = document.adminForm;
			if (pressbutton == 'cancel') {
				submitform(pressbutton);
				return;
			}
			// do field validation
			if (form.name.value == "") {
				alert(" 
22[[#456f8600]]
<script language="javascript" type="text/javascript">
		<!--
		function submitbutton(pressbutton)
		{
			var form = document.adminForm;
			if (pressbutton == 'cancel')
			{
				submitform(pressbutton);
				return;
			}
			// do field validation
			if (form.name.value == "")
			{
				alert(" 
31[[#456f8580]]
'You must provide a banner name.' 
32[[#456f8580]]
'Please fill in the Client Name.' 
41[[#456f84e0]]
"); } else if (getSelectedValue('adminForm','cid')
<1) { alert(" 
42[[#456f84e0]]
"); } else if (form.contact.value == "") { alert(" 
51[[#456f8480]]
'Please select a client.' 
52[[#456f8480]]
'Please fill in the Contact Name.' 
61[[#456f83e0]]
"); /*} else if (!getSelectedValue('adminForm','imageurl')) { alert(" 
62[[#456f83e0]]
"); } else if (form.email.value == "") { alert("