| Server IP : 172.67.201.108 / Your IP : 216.73.216.11 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/cgny/nympadmin/ |
Upload File : |
<Cfif not parameterexists(url.id) or not isnumeric(url.id)>
<cfabort></cfif>
<cfcontent type="text/html;charset=iso-8859-1">
<cfprocessingDirective pageencoding="iso-8859-1">
<cfset setEncoding("Form", "ISO-8859-15")>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel="stylesheet" type="text/css" href="/bwwstyles1.css" media="all">
<script type="text/javascript">
var wordLen = 100;
function checkWordLen(obj){
var len = obj.value.split(/[\s]+/);
if(len.length > wordLen){
alert("You cannot put more than "+wordLen+" words in this text area.");
obj.oldValue = obj.value!=obj.oldValue?obj.value:obj.oldValue;
obj.value = obj.oldValue?obj.oldValue:"";
return false;
}
return true;
}
</script>
<CFSET CurrentDateTime = #CreateODBCDateTime(Now())#><cfif session.email eq ''><cfset Session.email = -1></cfif><cfif IsDefined("Cookie.email")><cfset Session.email = Cookie.email></cfif>
<cfcontent type="text/html;charset=iso-8859-1">
<cfprocessingDirective pageencoding="iso-8859-1">
<cfset setEncoding("Form", "ISO-8859-15")>
<cfinclude template="header.cfm">
<div id="content">
<div id="content-header">
</div>
<div class="container-fluid" style="margin-left:200px;">
<cfoutput>
<span class="header">Edit Multipage Microsite Listing</span></strong><br>
<table width=100% cellspacing=0 cellpadding=0 bgcolor=#color#><tr><td></td></tr></table>
<font face=verdana size=-1>
</cfoutput>
<cfif parameterexists(url.edittype)>
<CFQUERY datasource="#ds#">
UPDATE #url.table#
SET
<Cfif #url.page# eq 2>
tab2type = '#form.typer#'
</Cfif>
<Cfif #url.page# eq 3>
tab3type = '#form.typer#'
</Cfif>
<Cfif #url.page# eq 4>
tab4type = '#form.typer#'
</Cfif>
WHERE ID = #form.id#
</CFQUERY>
<Cfif #url.page# eq 2>
<Cflocation url="/listingseditpk2017.cfm?id=#form.id#&table=ParentsListings&page=2" addToken="no">
</Cfif>
<Cfif #url.page# eq 3>
<Cflocation url="/listingseditpk2017.cfm?id=#form.id#&table=ParentsListings&page=3" addToken="no">
</Cfif>
<Cfif #url.page# eq 4>
<Cflocation url="/listingseditpk2017.cfm?id=#form.id#&table=ParentsListings&page=4" addToken="no">
</Cfif>
<cfabort>
<cfelseif parameterexists(url.template)>
<Cfif #url.page# eq 2>
<Cfquery name="upda1" dataSource="#ds#">
Update ParentsListings
set newtitle2 = '#form.newtitle2#',
newtoptitle2 = '#form.newtoptitle2#'
where id = #form.id#
</cfquery>
</Cfif>
<Cfif #url.page# eq 3>
<Cfquery name="upda1" dataSource="#ds#">
Update ParentsListings
set newtitle3 = '#form.newtitle3#',
newtoptitle3 = '#form.newtoptitle3#'
where id = #form.id#
</cfquery>
</Cfif>
<Cfif #url.page# eq 4>
<Cfquery name="upda1" dataSource="#ds#">
Update ParentsListings
set newtitle4 = '#form.newtitle4#',
newtoptitle4 = '#form.newtoptitle4#'
where id = #form.id#
</cfquery>
</Cfif>
<Cfif parameterexists(form.title1) and #form.title1# is not ''>1
<Cfquery name="upper" dataSource="#ds#">
update ParentsListingsTab
set title = '#form.title1#',
text = '#form.tabtext1#',
subhead = '#form.subhead1#',
image = '#form.image1#',
button1link = '#form.button1link1#',
button1title = '#form.button1title1#',
button2link = '#form.button2link1#',
button2title = '#form.button2title1#'
where micrositeid = #form.id# and orderid = 1
and type = 'Page#url.page#'
</cfquery>
</Cfif>
<cfparam name="form.title3" default=" ">
<cfparam name="form.title4" default=" ">
<cfparam name="form.title5" default=" ">
2
<Cfquery name="upper" dataSource="#ds#">
update ParentsListingsTab
set title = '#form.title2#',
text = '#reReplace(form.tabtext2, "[^\x20-\x7E]", " ", "ALL")#',
subhead = '#form.subhead2#',
image = '#form.image2#',
button1link = '#form.button1link2#',
button1title = '#form.button1title2#',
button2link = '#form.button2link2#',
button2title = '#form.button2title2#'
where micrositeid = #form.id# and orderid = 2
and type = 'Page#url.page#'
</cfquery>
<Cfquery name="upper" dataSource="#ds#">
update ParentsListingsTab
set title = '#form.title3#',
text = '#reReplace(form.tabtext3, "[^\x20-\x7E]", " ", "ALL")#',
subhead = '#form.subhead3#',
image = '#form.image3#',
button1link = '#form.button1link3#',
button1title = '#form.button1title3#',
button2link = '#form.button2link3#',
button2title = '#form.button2title3#'
where micrositeid = #form.id# and orderid = 3
and type = 'Page#url.page#'
</cfquery>
<Cfquery name="upper" dataSource="#ds#">
update ParentsListingsTab
set title = '#form.title4#',
text = '#reReplace(form.tabtext4, "[^\x20-\x7E]", " ", "ALL")#',
subhead = '#form.subhead4#',
image = '#form.image4#',
button1link = '#form.button1link4#',
button1title = '#form.button1title4#',
button2link = '#form.button2link4#',
button2title = '#form.button2title4#'
where micrositeid = #form.id# and orderid = 4
and type = 'Page#url.page#'
</cfquery>
<Cfquery name="upper" dataSource="#ds#">
update ParentsListingsTab
set title = '#form.title5#',
text = '#reReplace(form.tabtext5, "[^\x20-\x7E]", " ", "ALL")#',
subhead = '#form.subhead5#',
image = '#form.image5#',
button1link = '#form.button1link5#',
button1title = '#form.button1title5#',
button2link = '#form.button2link5#',
button2title = '#form.button2title5#'
where micrositeid = #form.id# and orderid = 5
and type = 'Page#url.page#'
</cfquery>
<Cfoutput>
<p>
<a href="listingseditpk2017.cfm?id=#form.id#&table=ParentsListings">Back to Multipage Microsite Editor</a>
<p>
<a href="listingseditpk.cfm?catid=1&cat=1&id=#form.id#&table=ParentsListings">Back to Main Microsite Editor</a></cfoutput>
<cfelseif parameterexists(url.edit)>
<cfparam name="form.newtitle1" default="">
<cfparam name="form.newtext1" default="">
<cfparam name="form.newtext1b" default="">
<cfparam name="form.newsubtitle1" default="">
<cfparam name="form.newsubtitle1b" default="">
<cfparam name="form.newtitle2" default="">
<cfparam name="form.newtext2" default="">
<cfparam name="form.newtitle3" default="">
<cfparam name="form.newtext3" default="">
<cfparam name="form.newtitle4" default="">
<cfparam name="form.newtext4" default="">
<cfparam name="form.slideshow" default="">
<CFQUERY datasource="#ds#">
UPDATE #url.table#
SET
<Cfif #url.page# eq 1>
newtitle1 = '#form.newtitle1#',
newsubtitle1 = '#form.newsubtitle1#',
newsubtitle1b = '#form.newsubtitle1b#',
slideshow = '#form.slideshow#',
newtext1 = '#form.newtext1#',
</Cfif>
<Cfif #url.page# eq 2>
newtext2 = '#form.newtext2#',
newtitle2 = '#form.newtitle2#',
newtoptitle2 = '#form.newtoptitle2#',
</Cfif>
<Cfif #url.page# eq 3>
newtitle3 = '#form.newtitle3#',
newtext3 = '#form.newtext3#',
newtoptitle3 = '#form.newtoptitle3#',
</Cfif>
<Cfif #url.page# eq 4>
newtitle4 = '#form.newtitle4#',
newtext4 = '#form.newtext4#',
newtoptitle4 = '#form.newtoptitle4#',
</Cfif>
id=#form.id#
WHERE ID = #form.id#
</CFQUERY>
<Cfif #url.page# eq 1>
<Cfquery name="upper" dataSource="#ds#">
update ParentsListingsTab
set title = '#form.title1#',
subhead = '#form.subhead1#',
text = '#reReplace(form.tabtext1, "[^\x20-\x7E]", " ", "ALL")#',
image = '#form.image1#'
where micrositeid = #form.id# and orderid = 1
and type = 'page1'
</cfquery>
<Cfquery name="upper" dataSource="#ds#">
update ParentsListingsTab
set title = '#form.title2#',
subhead = '#form.subhead2#',
text = '#reReplace(form.tabtext2, "[^\x20-\x7E]", " ", "ALL")#',
image = '#form.image2#'
where micrositeid = #form.id# and orderid = 2
and type = 'page1'
</cfquery>
<Cfquery name="upper" dataSource="#ds#">
update ParentsListingsTab
set title = '#form.title3#',
subhead = '#form.subhead3#',
text = '#reReplace(form.tabtext3, "[^\x20-\x7E]", " ", "ALL")#',
image = '#form.image3#'
where micrositeid = #form.id# and orderid = 3
and type = 'page1'
</cfquery>
<Cfquery name="upper" dataSource="#ds#">
update ParentsListingsTab
set title = '#form.title4#',
subhead = '#form.subhead4#',
text = '#reReplace(form.tabtext4, "[^\x20-\x7E]", " ", "ALL")#',
image = '#form.image4#'
where micrositeid = #form.id# and orderid = 4
and type = 'page1'
</cfquery>
<Cfquery name="upper" dataSource="#ds#">
update ParentsListingsTab
set title = '#form.title5#',
subhead = '#form.subhead5#',
text = '#reReplace(form.tabtext5, "[^\x20-\x7E]", " ", "ALL")#',
image = '#form.image5#'
where micrositeid = #form.id# and orderid = 5
and type = 'page1'
</cfquery>
</Cfif>
Saved!
<cfoutput>
<p>
<a href="listingseditpk2017.cfm?id=#form.id#&table=ParentsListings">Back to Multipage Microsite Editor</a>
<p>
<a href="listingseditpk.cfm?catid=1&cat=1&id=#form.id#&table=ParentsListings">Back to Main Microsite Editor</a></cfoutput>
<cfelse>
<cfquery name="getrecord" datasource="#ds#">
select ParentsListings.advertiser as advar,ParentsListings.*
from ParentsListings
where id = #url.id#
</cfquery>
<cfparam name="url.page" default="1">
<cfoutput> <cfif #url.page# is not 1><a href="listingseditpk2017.cfm?id=#url.id#&table=#url.table#&page=1"></cfif>Tab 1</a> |
<cfif #url.page# is not 2><a href="listingseditpk2017.cfm?id=#url.id#&table=#url.table#&page=2"></cfif>Tab 2</a> |
<cfif #url.page# is not 3>
<a href="listingseditpk2017.cfm?id=#url.id#&table=#url.table#&page=3"></cfif>Tab 3</a> |
<cfif #url.page# is not 4>
<a href="listingseditpk2017.cfm?id=#url.id#&table=#url.table#&page=4"></cfif>Tab 4</a>
| <b><A href="listingseditpk2017slideshow.cfm?id=#url.id#" target="_new">Slideshow Maker</A></b>
</cfoutput>
<cfif #url.page# is not 1>
<Cfif #url.page# eq 2 and #getrecord.tab2type# eq 'Template'>
<Cfset template = 'on'>
</Cfif>
<Cfif #url.page# eq 3 and #getrecord.tab3type# eq 'Template'>
<Cfset template = 'on'>
</Cfif>
<Cfif #url.page# eq 4 and #getrecord.tab4type# eq 'Template'>
<Cfset template = 'on'>
</Cfif>
<cfoutput><FORM action="listingseditpk2017.cfm?edittype=on&table=#url.table#&id=#url.id#&page=#url.page#" method="post"><input NAME="id" MAXLENGTH="10" TYPE="hidden" value="#url.id#"></cfoutput>
<br>
Type:
<select name="typer">
<Cfif #url.page# eq 2>
<cfoutput><option value="#getrecord.tab2type#">#ucase(getrecord.tab2type)#</option></cfoutput>
<cfelseif #url.page# eq 3>
<cfoutput><option value="#getrecord.tab3type#">#ucase(getrecord.tab3type)#</option></cfoutput>
<cfelseif #url.page# eq 4>
<cfoutput><option value="#getrecord.tab4type#">#ucase(getrecord.tab4type)#</option></cfoutput>
</Cfif>
<option value="Open">Open</option>
<option value="Template">Template</option>
<option value="Contact">Contact</option>
</select>
<input type="submit" value="Set Type">
</form>
<hr>
</cfif>
<table width="100%">
<tr><td colspan="2">
<font SIZE="-1" FACE="verdana">
<cfoutput><FORM action="listingseditpk2017.cfm?<Cfif parameterexists(template)>template<cfelse>edit</Cfif>=on&table=#url.table#&id=#url.id#&page=#url.page#" method="post"><input NAME="id" MAXLENGTH="10" TYPE="hidden" value="#url.id#"></cfoutput>
<CFOUTPUT>
<cfif #url.page# eq 1>
<tr>
<td VALIGN=TOP><b><font face="Arial" size="-1">Title 1 (Max 10 Characters):</font></b><input NAME="newtitle1" MAXLENGTH="10" TYPE="text" SIZE="15" value="<cfif #getrecord.newtitle1# eq ''>Home<cfelse>#getrecord.newtitle1#</cfif>"></td>
</tr>
<tr>
<td VALIGN=TOP><b><font face="Arial" size="-1">Section 1, Subtitle 1 (Max 40 Characters):</font></b><input NAME="newsubtitle1" MAXLENGTH="40" TYPE="text" SIZE="40" value="<cfif #getrecord.newsubtitle1# eq ''><cfelse>#getrecord.newsubtitle1#</cfif>"></td>
</tr>
<tr>
<Td colspan="2"> (Max 500 words)
<textarea name="newtext1" >#getrecord.newtext1#</textarea>
<br>
</Td>
</tr>
<tr>
<td VALIGN=TOP><b><font face="Arial" size="-1">Section 1, Subtitle 2 (Max 40 Characters):</font></b><input NAME="newsubtitle1b" MAXLENGTH="40" TYPE="text" SIZE="40" value="<cfif #getrecord.newsubtitle1b# eq ''><cfelse>#getrecord.newsubtitle1b#</cfif>"></td>
</tr>
<tr>
<Td colspan="2">
<br>
<cfquery name="getcontent" dataSource="#ds#">
select * from ParentsListingsTab
where type='Page1' and micrositeid = #url.id#
order by orderid
</cfquery>
<cfif #getcontent.recordcount# lt 5>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page1',1)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page1',2)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page1',3)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page1',4)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page1',5)
</cfquery>
<cfquery name="getcontent" dataSource="#ds#">
select * from ParentsListingsTab
where type='Page1' and micrositeid = #url.id#
order by orderid
</cfquery>
</cfif>
<table><tr><td>
<Cfloop from="1" to="5" index="i">
<input type="text" placeholder="Staff Name" value="#getcontent.title[i]#" name="title#i#"><br>
<input type="text" placeholder="Job Title" value="#getcontent.subhead[i]#" name="subhead#i#"><br>
(Max 100 Words)
<textarea name="tabtext#i#" style="width:500px;height:100px;" onchange="checkWordLen(this);">#getcontent.text[i]#</textarea><br>
<input type="text" placeholder="Image" value="#getcontent.image[i]#" name="image#i#" size="80"><br>
<p>
</Cfloop>
</td>
<td>
<iframe src="/jcropColdFusion_demo/upload.cfm?id=#url.id#&seo_friendly=#getrecord.seo_friendly#" style="width:800px;height:800px;"></iframe>
</td></tr></table>
<!--- <textarea name="newtext1b">#getrecord.newtext1b#</textarea>
<br><br>
---->
</Td>
</tr>
<tr><Td>
Slideshow/Video Embed<br>
<textarea name="slideshow" style="width:300px;height:100px;">#getrecord.slideshow#</textarea>
</Td></tr>
</cfif>
<Cfif #url.page# eq 2>
<Cfif #getrecord.tab2type# eq 'Contact'><cfabort></Cfif>
<tr>
<td VALIGN=TOP><b><font face="Arial" size="-1">Section Title 2 (Max 20 Characters):</font></b><input NAME="newtoptitle2" MAXLENGTH="20" TYPE="text" SIZE="20" value="#getrecord.newtoptitle2#"></td>
</tr>
<tr>
<td VALIGN=TOP><b><font face="Arial" size="-1">Tab Title 2 (Max 14 Characters):</font></b><input NAME="newtitle2" MAXLENGTH="14" TYPE="text" SIZE="10" value="#getrecord.newtitle2#"></td>
</tr>
<cfif #getrecord.tab2type# eq 'Open'>
<tr>
<Td colspan="2"> (Max 500 Words)
<textarea name="newtext2">#getrecord.newtext2#</textarea>
<br><br>
</Td>
</tr>
<cfelse>
<br>
<cfquery name="getcontent" dataSource="#ds#">
select * from ParentsListingsTab
where type='Page2' and micrositeid = #url.id#
order by orderid
</cfquery>
<cfif #getcontent.recordcount# lt 5>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page2',1)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page2',2)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page2',3)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page2',4)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page2',5)
</cfquery>
<cfquery name="getcontent" dataSource="#ds#">
select * from ParentsListingsTab
where type='Page2' and micrositeid = #url.id#
order by orderid
</cfquery>
</cfif>
<table><tr><td>
<Cfloop from="1" to="5" index="i">
<input type="text" placeholder="Title #i# Max 100 Characters" value="#getcontent.title[i]#" name="title#i#"><br>
<input type="text" placeholder="Subhead #i# Max 100 Characters" value="#getcontent.subhead[i]#" name="subhead#i#"><br>
<textarea name="tabtext#i#" style="width:500px;height:100px;">#getcontent.text[i]#</textarea><br>
<input type="text" placeholder="Image #i#" value="#getcontent.image[i]#" name="image#i#" size="75"><br>
<input type="text" placeholder="First Button Title Max 14 Characters" value="#getcontent.button1title[i]#" name="button1title#i#" maxlength="14"><br>
<input type="text" placeholder="First Button Link" value="#getcontent.button1link[i]#" name="button1link#i#"size="75"><br>
<input type="text" placeholder="Second Button Title Max 14 Characters" value="#getcontent.button2title[i]#" name="button2title#i#" maxlength="14"><br>
<input type="text" placeholder="Second Button Link" value="#getcontent.button2link[i]#" name="button2link#i#"size="75"><br>
<p><br>
</Cfloop>
</td>
<td valign="top">
<iframe src="/jcropColdFusion_demo/upload.cfm?id=#url.id#&seo_friendly=#getrecord.seo_friendly#" style="width:800px;height:800px;"></iframe>
</td></tr></table>
</cfif>
</Cfif>
<Cfif #url.page# eq 3>
<Cfif #getrecord.tab3type# eq 'Contact'><cfabort></Cfif>
<tr>
<td VALIGN=TOP><b><font face="Arial" size="-1">Section Title 3 (Max 20 Characters):</font></b><input NAME="newtoptitle3" MAXLENGTH="20" TYPE="text" SIZE="20" value="#getrecord.newtoptitle3#"></td>
</tr>
<tr>
<td VALIGN=TOP><b><font face="Arial" size="-1">Tab Title 3 (Max 14 Characters):</font></b><input NAME="newtitle3" MAXLENGTH="14" TYPE="text" SIZE="10" value="#getrecord.newtitle3#"></td>
</tr>
<cfif #getrecord.tab3type# eq 'Open'>
<tr>
<Td colspan="2">Max 500 Words Characters
<textarea name="newtext3">#getrecord.newtext3#</textarea>
<br><br>
</Td>
</tr>
<cfelse>
<br>
<cfquery name="getcontent" dataSource="#ds#">
select * from ParentsListingsTab
where type='Page3' and micrositeid = #url.id#
order by orderid
</cfquery>
<cfif #getcontent.recordcount# lt 5>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page3',1)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page3',2)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page3',3)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page3',4)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page3',5)
</cfquery>
<cfquery name="getcontent" dataSource="#ds#">
select * from ParentsListingsTab
where type='Page3' and micrositeid = #url.id#
order by orderid
</cfquery>
</cfif>
<table><tr><td>
<Cfloop from="1" to="5" index="i">
<input type="text" placeholder="Title #i# Max 30 Characters" value="#getcontent.title[i]#" name="title#i#" maxlength="30"><br>
<input type="text" placeholder="Subhead #i# Max 30 Characters" value="#getcontent.subhead[i]#" name="subhead#i#" maxlength="30"><br>
<textarea name="tabtext#i#" style="width:500px;height:100px;" placeholder="Max 100 Words">#getcontent.text[i]#</textarea><br>
<input type="text" placeholder="Image #i#" value="#getcontent.image[i]#" name="image#i#" size="75"><br>
<input type="text" placeholder="First Button Title Max 14 Characters" value="#getcontent.button1title[i]#" name="button1title#i#" MAXLENGTH="14" ><br>
<input type="text" placeholder="First Button Link" value="#getcontent.button1link[i]#" name="button1link#i#"size="75"><br>
<input type="text" placeholder="Second Button Title Max 14 Characters" value="#getcontent.button2title[i]#" name="button2title#i#" MAXLENGTH="14" ><br>
<input type="text" placeholder="Second Button Link" value="#getcontent.button2link[i]#" name="button2link#i#"size="75"><br>
<p><br>
</Cfloop>
</td>
<td valign="top">
<iframe src="/jcropColdFusion_demo/upload.cfm?id=#url.id#&seo_friendly=#getrecord.seo_friendly#" style="width:800px;height:800px;"></iframe>
</td></tr></table>
</cfif>
</Cfif>
<Cfif #url.page# eq 4>
<Cfif #getrecord.tab4type# eq 'Contact'><cfabort></Cfif>
<tr>
<td VALIGN=TOP><b><font face="Arial" size="-1">Section Title 4 (Max 20 Characters):</font></b><input NAME="newtoptitle4" MAXLENGTH="20" TYPE="text" SIZE="20" value="#getrecord.newtoptitle4#"></td>
</tr>
<tr>
<td VALIGN=TOP><b><font face="Arial" size="-1">Tab Title 4 (Max 14 Characters):</font></b><input NAME="newtitle4" MAXLENGTH="14" TYPE="text" SIZE="10" value="#getrecord.newtitle4#"></td>
</tr>
<cfif #getrecord.tab4type# eq 'Open'>
<tr>
<Td colspan="4">Max 500 Words<br>
<textarea name="newtext4">#getrecord.newtext4#</textarea>
<br><br>
</Td>
</tr>
<Cfelse>
<br>
<cfquery name="getcontent" dataSource="#ds#">
select * from ParentsListingsTab
where type='Page4' and micrositeid = #url.id#
order by orderid
</cfquery>
<cfif #getcontent.recordcount# lt 5>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page4',1)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page4',2)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page4',3)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page4',4)
</cfquery>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO ParentsListingsTab (micrositeid,type,orderid)
VALUES (#url.id#,'Page4',5)
</cfquery>
<cfquery name="getcontent" dataSource="#ds#">
select * from ParentsListingsTab
where type='Page4' and micrositeid = #url.id#
order by orderid
</cfquery>
</cfif>
<table><tr><td>
<Cfloop from="1" to="5" index="i">
<input type="text" placeholder="Title #i# Max 30 Characters" value="#getcontent.title[i]#" name="title#i#" maxlength="30"><br>
<input type="text" placeholder="Subhead #i# Max 30 Characters" value="#getcontent.subhead[i]#" name="subhead#i#" maxlength="30"><br>
<textarea name="tabtext#i#" style="width:500px;height:100px;">#getcontent.text[i]#</textarea><br>
<input type="text" placeholder="Image #i#" value="#getcontent.image[i]#" name="image#i#" size="75"><br>
<input type="text" placeholder="First Button Title Max 14 Characters" value="#getcontent.button1title[i]#" name="button1title#i#" MAXLENGTH="14" ><br>
<input type="text" placeholder="First Button Link" value="#getcontent.button1link[i]#" name="button1link#i#"size="75"><br>
<input type="text" placeholder="Second Button Title Max 14 Characters" value="#getcontent.button2title[i]#" name="button2title#i#" MAXLENGTH="14" ><br>
<input type="text" placeholder="Second Button Link" value="#getcontent.button2link[i]#" name="button2link#i#"size="75"><br>
<p><br>
</Cfloop>
</td>
<td valign="top">
<iframe src="/jcropColdFusion_demo/upload.cfm?id=#url.id#&seo_friendly=#getrecord.seo_friendly#" style="width:800px;height:800px;"></iframe>
</td></tr></table>
</Cfif>
</Cfif>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<cfcookie name = "folderme"
value = "#Now()#"
expires = "NOW">
<cfcookie name = "folderme" value = "/uploads2/#url.id#/">
<Cfparam name="url.beta" default="on">
<script src="ckeditor46z27e/ckeditor.js" charset="utf-8"></script>
<script type="text/javascript" src="ckfinder34/ckfinder.js" charset="utf-8"></script>
<textarea id="myarea12" class="ckeditor" name="copyedit" style="height:600px;">#htmlEditFormat(getrecord.enhancedlisting)#</textarea>
<script type="text/javascript">
CKEDITOR.on( 'dialogDefinition', function( ev ) {
// Take the dialog name and its definition from the event data.
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
// Check if the definition is from the dialog we're interested on (the "Link" dialog).
if ( dialogName == 'link' ){
var targetTab = dialogDefinition.getContents( 'target' );
var targetDropdown = targetTab.get( 'linkTargetType' );
targetDropdown.default = '_blank';
}
} );
CKFinder.setupCKEditor( editor, 'ckfinder34/' ) ;
var editor = CKEDITOR.replace( 'newtext1',{
height: '500px',
extraAllowedContent : 'object(*);param(*);embed(*);p(*);script(*);form(*);input(*);div(*);blockquote(*)'
});
editor.on( 'instanceReady', function() {
console.log( editor.filter.allowedContent );
} );
</script>
<!---
<script type="text/javascript" src="/tiny_mce_3.4/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "exact",
invalid_elements: "span",
elements: "newtext1,newtext2,newtext3,newtext4,newtext1b",
theme : "advanced",
<Cfif #url.page# eq 1>
height: "600px",
<Cfelse>
height: "300px",
</cfif>
width: "700px",
plugins : "imagemanager,style,layer,table,advhr,advimage,advlink,insertdatetime,preview,media,contextmenu,paste,directionality,noneditable",
theme_advanced_buttons1_add_before : "save,newdocument,separator",
theme_advanced_buttons2_add : "separator,insertimage,separator,forecolor,backcolor",
theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
theme_advanced_resize_horizontal : true,
theme_advanced_resizing : true,
apply_source_formatting : true,
content_css : "example_data/example_word.css",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
file_browser_callback : "mcFileManager.filebrowserCallBack",
paste_auto_cleanup_on_paste : true,
paste_convert_headers_to_strong : true,
relative_urls : false,
remove_script_host : false,
imagemanager_rootpath : "/home/home2/cgny/public_html/uploads2/<cfoutput>#url.id#</cfoutput>/"
});
</script>
--->
</td></tr></table>
<p>
</cfoutput>
<input type="submit" value="Save" style="font-size:125px;">
</Center>
</form></center>
</cfif>