here is the rest of the file
<!---Checks to see if the cookie variables have timed out or not--->
<cfinclude template="../templates/verifycookie.cfm">
<CFQUERY NAME="organizations" DATASOURCE="#application.bbtools#">
SELECT bb_organization.home_path
FROM bb_poc,
bb_poc_org,
bb_organization
WHERE bb_poc.poc_id = #cookie.poc_id#
AND bb_poc_org.poc_id = bb_poc.poc_id
AND bb_organization.org_id = bb_poc_org.org_id
ORDER BY bb_organization.title
</CFQUERY>
<CFSET #origroot# = "/isweb/www/ss/issapt/">
<CFSET #home_path# =
#Replace(ValueList(organizations.home_path),"/isprd/httpd/ss/issapt/",#origr
oot#,"all")#>
<CFIF NOT(IsDefined("baserootdir"))>
<CFSET #baserootdir# = #origroot#>
</CFIF>
<CFIF NOT(IsDefined("cookie.sortby"))>
<CFSET #cookie.sortby# = "type ASC, name asc">
</CFIF>
<CFDIRECTORY ACTION="list" DIRECTORY="#baserootdir#." NAME="currdir"
SORT="#cookie.sortby#">
<HTML>
<script LANGUAGE=JAVASCRIPT>
<!--
function listTypeChange() {
document.theform.listType.value = getNodeType();
}
function listTypeChangeDirectory() {
// document.theform.listType.value = getNodeType();
document.theform.kilobyte.value = "Change Directory";
}
function listTypeNewDirectory() {
// document.theform.listType.value = getNodeType();
document.theform.kilobyte.value = "Add New Sub-Directory";
}
function listTypeDeleteFile() {
// document.theform.listType.value = getNodeType();
document.theform.kilobyte.value = "Delete File";
}
function listTypeChangeRefreshFileStructure() {
// document.theform.listType.value = getNodeType();
document.theform.kilobyte.value = "Refresh File Structure";
}
function listTypeRenameFile() {
// document.theform.listType.value = getNodeType();
document.theform.kilobyte.value = "Rename File";
}
function listTypeSortByDate() {
// document.theform.listType.value = getNodeType();
document.theform.kilobyte.value = "Sort By Date";
}
function listTypeSortByName() {
// document.theform.listType.value = getNodeType();
document.theform.kilobyte.value = "Sort By Name";
}
function listTypeUploadFile() {
// document.theform.listType.value = getNodeType();
document.theform.kilobyte.value = "Upload File";
}
function listTypeBulkUpload() {
// document.theform.listType.value = getNodeType();
document.theform.kilobyte.value = "Bulk Upload Files";
}
function getNodeType() {
str = document.webserver.cf_getTreeForm();
nodestr = "";
if (str.indexOf("PATH=")+5 < str.length) {
nodestr = str.substring(str.indexOf("PATH=")+5,str.length);
}
returnstr = "";
if (nodestr.substring(0,3) == "Dir") {
returnstr = "Dir";
} else {
if (nodestr.substring(0,4) == "File") {
returnstr = "File";
}
}
return returnstr;
}
function getNodeType2(str) {
nodestr = "";
if (str.indexOf("PATH=")+5 < str.length) {
nodestr = str.substring(str.indexOf("PATH=")+5,str.length);
}
returnstr = "";
if (nodestr.substring(0,3) == "Dir") {
returnstr = "Dir";
} else {
if (nodestr.substring(0,4) == "File") {
returnstr = "File";
}
}
return returnstr;
}
function validateSubmit(obj) {
document.theform.listType.value = getNodeType2(obj);
if ((document.theform.kilobyte.value == "Upload File") ||
(document.theform.kilobyte.value == "Change Directory") ||
(document.theform.kilobyte.value == "Bulk Upload Files") ||
(document.theform.kilobyte.value == "Add New Sub-Directory")) {
if (document.theform.listType.value != "Dir") {
alert("You must select a directory from the file structure");
return false;
}
return true;
}
if (document.theform.kilobyte.value == "Download File") {
if (document.theform.listType.value != "File") {
alert("You must select a file from the file structure");
return false;
}
return true;
}
if ((document.theform.kilobyte.value == "Rename File") ||
(document.theform.kilobyte.value == "Delete File")) {
if (document.theform.listType.value != "File") {
alert("You must select a file from the file structure");
return false;
}
return true;
}
if ((document.theform.kilobyte.value == "Refresh File Structure") ||
(document.theform.kilobyte.value == "Sort By Name") ||
(document.theform.kilobyte.value == "Sort By Date") ||
(document.theform.kilobyte.value == "Delete
File")||(document.theform.kilobyte.value == "Rename File")) {
return true;
}
alert("You must select a function");
return false;
}
file://-->
</script>
<BODY BGCOLOR="white">
<CENTER>
<!--- Menu & Page Title headers --->
<CFSET first_link ="Select An Org.">
<CFSET first_link_anchor ="../org/selectorg.cfm">
<!--- <CFSET spt_admin_link ="yes"> --->
<CFINCLUDE template="../templates/menu_head.cfm">
<CFOUTPUT>
<img src="#application.image_path#/spacer.gif" width="1" height="20"><br>
</CFOUTPUT>
<CFSET pagetitle = "Site Maintenance">
<CFINCLUDE template="../templates/header_table.cfm">
<CFOUTPUT>
<img src="#application.image_path#/spacer.gif" width="1" height="20"><br>
</CFOUTPUT>
Select a directory or file from the File Structure, select a function, then
Submit.
<!--- border table --->
<table border="0" cellspacing="0" cellpadding="1">
<tr bgcolor="999999">
<td>
<table align="center" width="600" border="0" cellspacing="0"
cellpadding="2" bgcolor="#FFFFFF">
<tr>
<td>
<CFFORM NAME="theform"
ACTION="uploadmainbutton.cfm?RequestTimeout=<cfoutput>#application.timeout#<
/cfoutput>" onSubmit="return
validateSubmit(_CF_this.__CFTREE__theform__webserver.value)">
<TABLE>
<TR>
<TD VALIGN="bottom" ALIGN="right" bgcolor="CCCCCC">
<CFTREE NAME="webserver" HEIGHT="250" WIDTH="400">
<CFTREEITEM DISPLAY="File Structure - #baserootdir#"
VALUE="#baserootdir#" IMG="folder">
<!--- build the first two items in the tree manually. CF no
longer returns
"." and ".." as part of a directory listing --->
<CFIF #baserootdir# IS NOT #origroot#>
<CFTREEITEM DISPLAY=". <Current Directory> "
VALUE="Dir#baserootdir#" IMG="folder" PARENT="#baserootdir#">
</CFIF>
<CFIF #baserootdir# IS NOT #origroot#>
<CFSET #num# = #Len(baserootdir)#-1>
<CFSET #slash# = "/">
<CFLOOP CONDITION="(#num# GT 0) AND
(Mid(baserootdir,num,1) NEQ #slash#)">
<CFSET #num# = #num#-1>
</CFLOOP>
<CFIF #Mid(baserootdir,num,1)# IS #slash#>
<CFSET #num# = #num#-1>
</CFIF>
<CFTREEITEM DISPLAY=".. <Parent Directory> "
VALUE="Dir#Left(baserootdir,num)#" IMG="folder" PARENT="#baserootdir#">
</CFIF>
<CFLOOP QUERY="currdir">
<CFIF #type# IS "dir">
<CFIF baserootdir IS origroot>
<CFIF (#ListFind(home_path,"#baserootdir##name#")# GT
0)>
<CFTREEITEM DISPLAY="#name# -- Date:
#datelastmodified#" VALUE="#type##baserootdir##name#" IMG="folder"
PARENT="#baserootdir#">
</CFIF>
<CFELSE>
<CFTREEITEM DISPLAY="#name# -- Date:
#datelastmodified#" VALUE="#type##baserootdir##name#" IMG="folder"
PARENT="#baserootdir#">
</CFIF>
<CFELSE>
<CFIF #baserootdir# IS NOT #origroot#>
<CFTREEITEM DISPLAY="#name# -- Date: #datelastmodified#
-- Size: #size# bytes" VALUE="#type##baserootdir##name#" IMG="document"
PARENT="#baserootdir#">
</CFIF>
</CFIF>
</CFLOOP>
</CFTREE>
</TD>
<TD valign="top" align="left">
<INPUT TYPE="radio" NAME="afunction" VALUE="Change Directory"
onClick="listTypeChangeDirectory()">Change Directory
<BR>
<INPUT TYPE="radio" NAME="afunction" VALUE="Add New Sub-Directory"
onClick="listTypeNewDirectory()">Add New Sub-Directory
<P>
<INPUT TYPE="radio" NAME="afunction" VALUE="Upload File"
onClick="listTypeUploadFile()">Upload File
<BR>
<INPUT TYPE="radio" NAME="afunction" VALUE="Bulk Upload Files"
onClick="listTypeUploadFile()">Bulk Upload Files
<BR>
<INPUT TYPE="radio" NAME="afunction" VALUE="Rename File"
onClick="listTypeRenameFile()">Rename File
<BR>
<INPUT TYPE="radio" NAME="afunction" VALUE="Delete File"
onClick="listTypeDeleteFile()">Delete File
<P>
<INPUT TYPE="radio" NAME="afunction" VALUE="Refresh File Structure"
onClick="listTypeChangeRefreshFileStructure()">Refresh File Structure
<BR>
<INPUT TYPE="radio" NAME="afunction" VALUE="Sort By Name"
onClick="listTypeSortByName()">Sort By Name
<BR>
<INPUT TYPE="radio" NAME="afunction" VALUE="Sort By Date"
onClick="listTypeSortByDate()">Sort By Date
<p>
<INPUT TYPE="submit" VALUE="Submit">
<cfoutput><INPUT TYPE="hidden" NAME="baserootdir"
VALUE="#baserootdir#"></cfoutput>
<INPUT TYPE="hidden" NAME="kilobyte" VALUE="">
<INPUT TYPE="hidden" NAME="listType" VALUE="">
</TD>
</TR>
</TABLE>
</CFFORM>
<!--- end of border table --->
</td>
</tr>
</table>
</td>
</tr>
</table>
<CFSET pageno ="26">
<CFINCLUDE template="../templates/pocfooter.cfm">
</CENTER>
</BODY>
</HTML>
Steven Lancaster
Barrios Technology
NASA/JSC
281-244-2444 (voice)
[EMAIL PROTECTED]
-----Original Message-----
From: LANCASTER, STEVEN M. (JSC-OL) (BAR)
Sent: Monday, June 10, 2002 1:20 PM
To: CF-Talk
Subject: I am sooo confused!!
I have included a file we are trying to change and the file at one point has
this code and we are wondering if anyone has seen this before and what it
may be calling?
<CFFORM NAME="theform"
ACTION="uploadmainbutton.cfm?RequestTimeout=<cfoutput>#application.timeout#<
/cfoutput>" onSubmit="return
validateSubmit(_CF_this.__CFTREE__theform__webserver.value)">
Begin full file here
______________________________________________________________________
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