From: Steve Sutton
diff --git a/FileExchange/help_files/customer_login.hlp b/FileExchange/help_files/customer_login.hlp
new file mode 100644
index 0000000..d0655cb
--- /dev/null
+++ b/FileExchange/help_files/customer_login.hlp
@@ -0,0 +1,27 @@
+
+Once you login, you will be able to upload, download and delete files.
+If you don't know your ID and Password, you will need to contact the vendor who manages this file exchange
+for assistance.
+
+
+
+
diff --git a/FileExchange/help_files/delete_file.hlp b/FileExchange/help_files/delete_file.hlp
new file mode 100644
index 0000000..144b227
--- /dev/null
+++ b/FileExchange/help_files/delete_file.hlp
@@ -0,0 +1,7 @@
+
diff --git a/FileExchange/help_files/error.hlp b/FileExchange/help_files/error.hlp
new file mode 100644
index 0000000..c6114c0
--- /dev/null
+++ b/FileExchange/help_files/error.hlp
@@ -0,0 +1,6 @@
+
diff --git a/FileExchange/help_files/list_files.hlp b/FileExchange/help_files/list_files.hlp
new file mode 100644
index 0000000..3ae0744
--- /dev/null
+++ b/FileExchange/help_files/list_files.hlp
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/FileExchange/help_files/login_failure.hlp b/FileExchange/help_files/login_failure.hlp
new file mode 100644
index 0000000..d9c5934
--- /dev/null
+++ b/FileExchange/help_files/login_failure.hlp
@@ -0,0 +1,6 @@
+
diff --git a/FileExchange/help_files/upload_file.hlp b/FileExchange/help_files/upload_file.hlp
new file mode 100644
index 0000000..8b67463
--- /dev/null
+++ b/FileExchange/help_files/upload_file.hlp
@@ -0,0 +1,7 @@
+
diff --git a/FileExchange/help_files/upload_new_file.hlp b/FileExchange/help_files/upload_new_file.hlp
new file mode 100644
index 0000000..96fa708
--- /dev/null
+++ b/FileExchange/help_files/upload_new_file.hlp
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/FileExchange/images/closewindow.gif b/FileExchange/images/closewindow.gif
new file mode 100644
index 0000000..c54ed89
Binary files /dev/null and b/FileExchange/images/closewindow.gif differ
diff --git a/FileExchange/images/gaslight.gif b/FileExchange/images/gaslight.gif
new file mode 100644
index 0000000..7ca754f
Binary files /dev/null and b/FileExchange/images/gaslight.gif differ
diff --git a/FileExchange/images/gaslight_small.jpg b/FileExchange/images/gaslight_small.jpg
new file mode 100644
index 0000000..1179f68
Binary files /dev/null and b/FileExchange/images/gaslight_small.jpg differ
diff --git a/FileExchange/images/help.gif b/FileExchange/images/help.gif
new file mode 100644
index 0000000..4915678
Binary files /dev/null and b/FileExchange/images/help.gif differ
diff --git a/FileExchange/images/helpbg.gif b/FileExchange/images/helpbg.gif
new file mode 100644
index 0000000..0b62415
Binary files /dev/null and b/FileExchange/images/helpbg.gif differ
diff --git a/FileExchange/index.phtml b/FileExchange/index.phtml
new file mode 100644
index 0000000..55cac95
--- /dev/null
+++ b/FileExchange/index.phtml
@@ -0,0 +1,454 @@
+
+
+// FileExchange - Managed Customer File Exchange Application - User Side
+
+$header_sent = FALSE;
+$footer_sent = FALSE;
+$noupload = "FALSE";
+
+if( !isset($action) )
+ $action = "";
+
+
+include( "../siteinfo.inc" );
+
+
+
+function do_header()
+{
+
+ global $page_title, $current_page, $LF_BG_CLR, $LF_LINK_CLR, $LF_VLINK_CLR, $LF_ALINK_CLR, $LF_TABLE_CLR,
+ $LF_HEADER_CLR, $LF_TITLE_CLR, $LF_TITLE_2_CLR, $LF_NOLINK_CLR, $TOOLS_TITLE,
+ $TOOLS_URL, $session, $domains, $current_page, $header_sent, $domain, $cust, $usercode, $cust_data;
+
+ $header_sent = TRUE;
+
+ echo '
+
+
+ ';
+
+
+}
+
+function do_footer()
+{
+
+ global $LF_FOOTER_CLR, $LF_COPYWRIGHT_CLR, $GM_COPYWRIGHT;
+
+ echo '
+
+
+
+ Continue
+ ';
+
+ do_footer();
+ break;
+
+
+ case "Delete File":
+ $page_title = "Delete File";
+ $current_page = "delete_file";
+ do_header();
+
+ echo $LF_HEAD1.'Delete File
+ ';
+
+ do_footer();
+ break;
+
+
+ default:
+ $page_title = "Customer Login";
+ $current_page = "customer_login";
+ do_header();
+ echo $LF_HEAD1.'Please login...
+
+ An error occured: $error " );
+ do_footer();
+ exit;
+}
+
+function do_header()
+{
+
+ global $page_title, $current_page, $LF_BG_CLR, $LF_LINK_CLR, $LF_VLINK_CLR, $LF_ALINK_CLR, $LF_TABLE_CLR,
+ $LF_HEADER_CLR, $LF_TITLE_CLR, $LF_TITLE_2_CLR, $LF_NOLINK_CLR, $TOOLS_IMAGES_URL, $TOOLS_TITLE,
+ $TOOLS_URL, $session, $domains, $current_page, $header_sent, $domain, $cust, $usercode, $cust_data;
+
+ $header_sent = TRUE;
+
+ echo '
+
+
+ ';
+
+
+}
+
+function do_footer()
+{
+
+ global $LF_FOOTER_CLR, $LF_COPYWRIGHT_CLR, $GM_COPYWRIGHT;
+
+ echo '
+
+This page lists the existing Listings.
+
+Add A New Listing
+ This link will allow you to add new Listing
+List Listings
+ This link is the page you are currently viewing
+[Edit]
+ This link will let you edit an existing Listing
+This page is for editing and modifying an existing Listing in the database.
+When editing is complete, click on the "Submit Query" button. The database will
+be updated, and you will be directed back to the "List Listings" page.
+
+Name:
+This is the name of the listing.
+
+Category
+Choose the correct category for this listing. Default to the category that you
+have choosen to list.
+
+Description:
+ This is the text which will appear as a complete description of the Link,
+in the Detailed output of the Link
+Address:
+This is the address of the listing.
+
+Phone:
+This is the Phone Number of the listing.
+
+Fax:
+This is the Fax Number of the listing.
+
+Email:
+This is the Email of the listing.
+
+URL:
+ This is the web site 5 you want the users to go to when they click the
+link. Don't enter in http://.
+
+Picture for Listing:
+ If you choose, you may upload an image which will be displayed on the
+Detailed output for the Listing. To upload an image, click the "Browse" button.
+For the image to be displayed properly, it must be either a "GIF" or "JPEG"
+formatted image. Generally, these are saved as filename.gif or filename.jpg.
+If you receive an error message while trying to upload an image, the most
+common error is that the image is neither a JPEG nor a GIF. Also note that
+simply renaming the file from filename.foo to filename.gif will not reformat
+the image as a GIF.
+
+Submit Query
+ When you have made the changes you want to the Link,
+you can click "Submit Query." This will update the information about the
+Link in the database.
+
+This page is for Adding Links in the database.
+When form is complete, click on the "Submit Query" button. The database will
+be updated, and you will be directed back to the "List Links" page.
+
+Name:
+This is the name of the listing.
+
+Category
+Choose the correct category for this listing. Default to the category that you
+have choosen to list.
+
+Description:
+ This is the text which will appear as a complete description of the Link,
+in the Detailed output of the Link
+Address:
+This is the address of the listing.
+
+Phone:
+This is the Phone Number of the listing.
+
+Fax:
+This is the Fax Number of the listing.
+
+Email:
+This is the Email of the listing.
+
+URL:
+ This is the web site 5 you want the users to go to when they click the
+link. Don't enter in http://.
+
+Picture for Link:
+ If you choose, you may upload an image which will be displayed on the
+Detailed output for the Link. To upload an image, click the "Browse" button.
+For the image to be displayed properly, it must be either a "GIF" or "JPEG"
+formatted image. Generally, these are saved as filename.gif or filename.jpg.
+If you receive an error message while trying to upload an image, the most
+common error is that the image is neither a JPEG nor a GIF. Also note that
+simply renaming the file from filename.foo to filename.gif will not reformat
+the image as a GIF.
+
+Submit Query
+ When you have made the changes you want to the Link,
+you can click "Submit Query." This will update the information about the
+Link in the database.
+
+This page lists the existing Listings Categories in the database.
+
+Add A New Category
+ This link will allow you to add new Categories
+List Categories
+ This link is the page you are currently viewing
+[Edit]
+ This link will let you edit an existing Category
+[Listings]
+
+This link will list out the Listings Items associated with a particular Category
+
+
+ Confirm Delete File
+Logging in to File Exchange
+
+Menu Options
+
+
Delete File
+Error
+List files
+
+Fields listed
+
+
Login Failure
+Upload File
+Upload New File
+
+Fields
+
+
+
+
+
+
+
+
+
+
+
+
+
+ '.$TOOLS_TITLE.'
+
+ '.$page_title.'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
";
+
+ do_footer();
+ break;
+
+ case "Upload New File":
+ $page_title = "Upload New File";
+ $current_page = "upload_new_file";
+ do_header();
+
+ if( !($admin_result = pg_Exec( $conn, "SELECT * FROM admin;" )) )
+ error_msg( "Can't retrieve system information", __FILE__, __LINE__, "" );
+ if( !($admin_data = pg_fetch_array($admin_result, 0)) )
+ error_msg( "Can't retrieve system information", __FILE__, __LINE__, "" );
+
+
+ echo $LF_HEAD1.'Upload file for: '.$admin_data['name'].'
+ ';
+
+ // List each file with actions
+
+ if( ($num = pg_NumRows($files_result)) == 0 )
+ echo 'File Date Size Type Direction Action ';
+ else
+ for( $i=0 ; $i<$num ; $i++ )
+ {
+ $file_data = pg_Fetch_Array($files_result, $i);
+
+ echo 'No Files Listed
+
+ '
+ .$file_data['name'].'
+ '.$file_data['date'].'
+ '.$file_data['size'].'
+ '.$file_data['type'].'
+ '.($file_data['source']==0 ? 'To You' :
+ 'From You').'
+ ';
+
+ if( $cust_data['delete'] == "t" )
+ echo 'Delete';
+ else
+ echo ' ';
+
+ echo '
+
+
+ ';
+ }
+
+ echo " '
+ .($file_data['descr']!=""?$file_data['descr']:"(description not supplied)").'
+
+
+
+ ';
+
+ do_footer();
+ break;
+
+ case "Confirm Delete File":
+ $page_title = "Confirm Delete File";
+ $current_page = "confirm_delete_file";
+ do_header();
+
+ pg_Exec( $conn, "DELETE FROM file WHERE filenum = $file;" );
+
+ if( ! unlink($DATA_PATH.'/'.$cust_data['directory'].'/'.$file_data['name']) )
+ error_msg( "Unable to delete file", __FILE__, __LINE__, "" );
+
+
+ echo $file_data['name'].' DELETED
+ File Date Size Type Direction IP Address Action
+
+ '
+ .$file_data['name'].'
+ '.$file_data['date'].'
+ '.$file_data['size'].'
+ '.$file_data['type'].'
+ '.($file_data['source']==0 ? 'To Customer' :
+ 'From Customer').'
+ '.$file_data['ipaddr'].'
+
+ Confirm Delete
+
+ '
+ .($file_data['descr']!=""?$file_data['descr']:"(description not supplied)").'
" );
+ if( $DEBUG )
+ print( "File: $file
 
Line: $line
Other Info:
" );
+
+
+ if( is_array($other) )
+ while( list($key,$val) = each($other) )
+ print( $val );
+ else
+ print( $other );
+
+ print( "
+
+
+
+
+
+
+
+
+
+
+
+ '.$TOOLS_TITLE.'
+
+ '.$page_title.'
+
+
+
+
+
+
+
+
+
+
+
+ ";
+
+foreach($row as $key=>$value) {
+ switch($key) {
+
+ case "id":
+ echo "";
+ break;
+
+ case "pos":
+ echo "";
+ break;
+
+ case "parent":
+ echo "
";
+
+footer();
+?>
diff --git a/admin/Toolbox/help/bus.phtml b/admin/Toolbox/help/bus.phtml
new file mode 100755
index 0000000..7676d61
--- /dev/null
+++ b/admin/Toolbox/help/bus.phtml
@@ -0,0 +1,186 @@
+
+
+ ";
+ break;
+
+ case "category":
+
+ echo "
+
+ Parent Category: ";
+ $output = parent_select($value,$id);
+ if(!$dbd = db_connect()) html_error(DB_ERROR_MSG, 1);
+ echo "".$output." ";
+ echo " ";
+ break;
+
+ case "intro":
+
+ echo "Page Name: ";
+ text_box("category",$value);
+ echo " ";
+ break;
+
+ case "image":
+ echo "Page Header: ";
+ text_box("intro",$value);
+ echo "Current Image: ";
+ echo "
+ ";
+ if($value != "") {
+ echo "
+
+
+ ";
+ }
+ echo "Delete this image:
+
+ Yes
+ No
+
+ ";
+ break;
+
+ case "description":
+ echo "
+ New Image: ";
+ break;
+
+ case "keyword":
+ echo "Description: ";
+ text_area("description",htmlspecialchars($value),15,60);
+ echo " ";
+ break;
+
+ case "template":
+ echo "Keyword: ";
+ text_box("keyword",$value);
+ echo " ";
+ break;
+
+ default:
+ html_error("Incorrect Value -> ".$key,1);
+ break;
+ }
+}
+
+htmlcode();
+if(isset($id)) {
+ $qs = "SELECT count(*) as count
+ FROM bus_category_bus
+ WHERE catid = $id";
+
+ if(!$res = db_exec($dbd,$qs))
+ html_error(DB_ERROR_MSG.$qs,0);
+
+ $row = db_fetch_array($res,0,PGSQL_ASSOC);
+ ?>
+ Template: ";
+ echo "
+
+
+
+
+
+
+
+
+
+
+
+ ";
+ echo "1";
+ echo "
+ ";
+ echo "2";
+ echo "
+ ";
+ echo "3";
+ echo "
+ ";
+ echo "4";
+ echo "
+ ";
+ echo "5";
+ echo "
+
+
+}
+else {
+ form_footer("Insert","",2);
+}
+echo "
+
+
+
+ if(!CAT_LOCK && !check_lock($id))
+ {
+ ?>
+
+
+ }
+ ?>
+ Listings Help
+
+
+switch ($key) {
+ case "list":
+ ?>
+List Listings
+
+Edit a Listing
+ADD an Link
+
+Listings Help
+
+
+switch ($key) {
+ case "list":
+ ?>
+List Categories
+Notice:
The categories are Displayed in a order based on there
+hierarchy.
+
+This page is for editing and modifying the existing Listings Categories in the database. +When editing is complete, click on the "Update" button. The database will +be updated, and you will be directed back to the "List Categories" page. +
+ ++Title: +
+This is the title that will appear for the "Category" i.e. "Pictures of The Island"
++Intro: +
+This is the text which will introduce the Category. This text will be +displayed below the Category Title. +
+ ++Description: +
+This is the text which will fully describe the Category. This text will be +displayed below the Category Title and Intro. +
++Current Image: +
+If the record you are editing has an uploaded image, you will see the Current Image: header, and a small version of the image associated with this Category. +
+Delete This Image: + +If the record you are editing has an uploaded image, you will see the Delete This Image: header, and "Yes" and "No" radio buttons. If you choose "Yes" and then "Update" the Room Rate, you will have permanently removed the "Current Image". The default value is "No." +
++New Image: +
++If you choose, you may upload an image which will be displayed on the +output for the Category. To upload an image, click the "Browse" button. +For the image to be displayed properly, it must be either a "GIF" or "JPEG" +formatted image. Generally, these are saved as filename.gif or filename.jpg. +If you receive an error message while trying to upload an image, the most +common error is that the image is neither a JPEG nor a GIF. Also note that +simply renaming the file from filename.foo to filename.gif will not reformat +the image as a GIF. +
+ ++Update +
+When you have made the changes you want to the 0, +you can click "Update." This will update the information about the Category +in the database. +
++Delete +
+If you want to remove the current Category, press the "Delete" button. +
+ + break; + case "add": + ?> ++This page is for adding Listings Categories in the database. +When editing is complete, click on the "Insert" button. The database will +be updated, and you will be directed back to the "List Categories" page. +
++Title: +
+This is the title that will appear for the "Category" i.e. "Pictures of The Island"
++Intro: +
+This is the text which will introduce the Category. This text will be +displayed below the Category Title in the Gallery. +
+ ++Description: +
+This is the text which will fully describe the Category. This text will be +displayed below the Category Title and Intro in the Gallery. +
++Image: +
++If you choose, you may upload an image which will be displayed on the +output for the Category. To upload an image, click the "Browse" button. +For the image to be displayed properly, it must be either a "GIF" or "JPEG" +formatted image. Generally, these are saved as filename.gif or filename.jpg. +If you receive an error message while trying to upload an image, the most +common error is that the image is neither a JPEG nor a GIF. Also note that +simply renaming the file from filename.foo to filename.gif will not reformat +the image as a GIF. +
++Insert +
+When you have entered the information you want for the 0, +you can click "Insert." This will add the information about the new Category +in the database. +
+ + break; +} +?> ++ + Function + + | ++ + Records + + | +
---|---|
+ + | ++ |
+ + Function + + | ++ + Pos + + | ++ + Category + + | +
---|
+ + + |
A free WYSIWYG editor replacement for <textarea> fields.
+ +For full source code and docs, visit:
+http://www.interactivetools.com/products/htmlarea/
Version 3.0 developed and maintained by mishoo.
+ +© 2002, 2003 interactivetools.com, inc. All Rights Reserved.
+ ++ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |