Here's the code:
-------------------------------------------------
<cfif ParameterExists(m) IS "No">
<cfset m="d">
</cfif>
<cfif ParameterExists(s) IS "No">
<cfset s="photo_date">
</cfif>
<cfquery name="ygt_gallery" datasource="cgg" maxrows="10">
SELECT *
FROM gallery
ORDER BY #s#
<cfif m IS "d">DESC<cfelse>ASC</cfif>
</cfquery>
<html>
<head>
<title>Photo Gallery</title>
<SCRIPT LANGUAGE=JavaScript>
<!--
function SetAll()
{
}
function launchModify(int_num) {
terms = window.open("ygt_gallery_modify.cfm?int_num=" +
int_num, "mini",
"scrollbars=yes,resizable=yes,status=yes,width=800,height=600");
self.mini = terms
}
function launchAdd() {
terms = window.open("ygt_gallery_modify.cfm", "mini",
"scrollbars=yes,resizable=yes,status=yes,width=800,height=600");
self.mini = terms
}
function launchDelete(int_num) {
terms = window.open("ygt_gallery_delete.cfm?int_num=" +
int_num, "mini",
"scrollbars=yes,resizable=yes,status=yes,width=800,height=250");
self.mini = terms
}
//-->
</SCRIPT>
</head>
<body OnLoad="SetAll()" LANGUAGE=JavaScript>
<cfset flag=0>
<div align="center">
<A href="JavaScript:launchAdd()"><font size="2" face="arial">Add
New</a></font>
</div>
<table align="center" border=1 bordercolor="black" cellspacing="0"
cellpadding="0"><tr><td>
<table>
<cf_clickable_header
column_headers = "Photo Date,Title,Caption,Filename,Active?,,"
field_names = "photo_date,title,caption,file_name,active_rec"
column_sort = "Y,Y,N,Y,N"
file_name = "ygt_gallery_admin.cfm"
m="#m#"
s="#s#"
bg_color="a8a8ff">
<cfoutput query="ygt_gallery">
<cfif flag IS 1>
<CFSET flag=0>
<tr bgcolor=ffffc1 >
<cfelse>
<CFSET flag=1>
<tr>
</cfif>
<td><font size="2" face="arial">#DateFormat(photo_date,
"m/d/yyyy")#</td>
<td><font size="2" face="arial">#title#</td>
<td><font size="2" face="arial">#caption#</a></td>
<td align="center"><font size="2" face="arial">#file_name#</td>
<td align="center"><font size="2" face="arial">#active_rec#</td>
<td>
<A href="JavaScript:launchModify('#int_num#')">
<font size="2" face="arial">edit</a> :
<A href="JavaScript:launchDelete('#int_num#')">
<font size="2" face="arial">delete</a>
</td>
</tr>
</cfoutput>
</table>
</td></tr></table>
</body>
</html>
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 9:52 AM
To: CF-Talk
Subject: RE: inetinfo.exe taking 99% of CPU?
[snip]
this suggest that the problem is a coding problem and not related to file
corruption or a service pack fix. I would suggest you look at you code more
closly or post it here for all the gang to take a crack at.
Anthony Petruzzi
Webmaster
954-321-4703
http://www.sheriff.org
-----Original Message-----
From: David Grabbe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 9:45 AM
To: CF-Talk
Subject: RE: inetinfo.exe taking 99% of CPU?
Nope -- ANY CF script, even without any database processing, loops, etc.
David
------------------------------------
David Grabbe
Manager, Information Systems
Church of the Great God
[EMAIL PROTECTED]
http://www.cgg.org
-----Original Message-----
From: Christopher Olive [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 9:46 AM
To: CF-Talk
Subject: RE: inetinfo.exe taking 99% of CPU?
is it any particular CF script? if so, perhaps there's an infinite loop or
somesuch.
christopher olive
cto, vp of web development, vp it security
atnet solutions, inc.
410.931.4092
http://www.atnetsolutions.com
-----Original Message-----
From: David Grabbe [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 9:53 PM
To: CF-Talk
Subject: SOT: inetinfo.exe taking 99% of CPU?
Hello all,
I've run into a problem with my local development machine (Win2k, IIS, CF
4.5). For some bizarre reason today whenever I try to run a CF script, the
INETINFO.exe service suddenly pegs out at 99% of the CPU, and the only way I
can get it to release is to reboot. I have tried uninstalling and
reinstalling IIS, but that didn't help. Has anyone else run into this
problem with inetinfo before? Any ideas why this started happening, and how
I can make it stop? :)
TIA,
David
------------------------------------
David Grabbe
Manager, Information Systems
Church of the Great God
[EMAIL PROTECTED]
http://www.cgg.org
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists