From: Steve Sutton "
+ .""
+ ."$TDFT Delete Item Image? Yes "
+ ." "
+ ."$TDFT No "
+ ." "
+ .""
+ ."$TDFT Delete Item Image? Yes "
+ ." "
+ ."$TDFT No "
+ ." "
+ .""
+ ."$TDFT Delete Item Image? Yes "
+ ." "
+ ."$TDFT No "
+ ."
+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
+
+
";
+ }
+
+// default query on create_date
+$c_date_from = contact_date_entry("","","","fc_month","fc_day","fc_year");
+$c_date_to = contact_date_entry("","","","tc_month","tc_day","tc_year");
+/* The following is for setting up the defines and arrays that are needed
+ * based on which table ( customer or contact ) in use
+ * formats for arrays
+ * $DB_fields[] = array( name =>"{FIELD NAME}", title => "{FIELD TITLE}", type => "{FIELD TYPE}")
+ * $fields["{FIELD_NAME}"] = "{FIELD TITLE}";
+ *
+ * must have these defines
+ * ID - The primary key
+ * SEQUENCE - sequence name
+ * WHERE - where clause
+ */
+if(TABLE==CUSTOMER_TABLE)
+ {
+ define("ID","cust_id");
+ define("MAILOK","mail_ok");
+ define("SEQUENCE","custkey");
+ define("WHERE","fname != '-Guest-'");
+ // $DB_fields are used for edit and updating contacts
+ $DB_fields[] = array( name => "cust_id", title => "cust_id", type => "hide");
+ $DB_fields[] = array( name => "purch_date",title => "Last Purchase Date", type => "static");
+ $DB_fields[] = array( name => "access_date",title => "Last Access Date",type => "static");
+ $DB_fields[] = array( name => "create_date",title => "Create Date",type => "static");
+ $DB_fields[] = array( name => "fname", title => "First Name", type => "text");
+ $DB_fields[] = array( name => "lname", title => "Last Name", type => "text");
+ $DB_fields[] = array( name => "add1", title => "Address 1", type => "text");
+ $DB_fields[] = array( name => "add2", title => "Address 2", type => "text");
+ $DB_fields[] = array( name => "city", title => "City", type => "text");
+ $DB_fields[] = array( name => "state", title => "State", type => "text");
+ $DB_fields[] = array( name => "zip", title => "Zip", type => "text");
+ $DB_fields[] = array( name => "email", title => "Email", type => "text");
+ $DB_fields[] = array( name => "phone", title => "Phone", type => "text");
+ $DB_fields[] = array( name => "fax", title => "Fax", type => "text");
+ $DB_fields[] = array( name => "org", title => "Org", type => "text");
+ $DB_fields[] = array( name => "referred_by",title => "Refered By", type => "text");
+ $DB_fields[] = array( name => "mail_ok", title => "Mail Ok?", type => "radio");
+ // $fields are used for building the query page
+ foreach($DB_fields as $key=>$value){
+ if($value['type'] == "text")
+ $fields[$value['name']] = $value['title'];
+ }
+ // date query fields
+ $p_date_from = contact_date_entry("","","","fp_month","fp_day","fp_year");
+ $p_date_to = contact_date_entry("","","","tp_month","tp_day","tp_year");
+ $a_date_from = contact_date_entry("","","","fa_month","fa_day","fa_year");
+ $a_date_to = contact_date_entry("","","","ta_month","ta_day","ta_year");
+ }
+else
+ {
+ define("ID","id");
+ define("MAILOK","mail_ok");
+ define("SEQUENCE","contact_id_seq");
+ define("WHERE",ID." IS NOT NULL");
+ // $DB_fields are used for edit and updating contacts
+ $DB_fields[] = array( name => "id", title => "id", type => "hide");
+ $DB_fields[] = array( name => "create_date",title => "Create Date",type => "static");
+ $DB_fields[] = array( name => "remote_addr",title => "Remot Address",type => "static");
+ $DB_fields[] = array( name => "user_agent",title => "User Agent",type => "static");
+ $DB_fields[] = array( name => "fname", title => "Name", type => "text");
+ $DB_fields[] = array( name => "title", title => "Title", type => "text");
+ $DB_fields[] = array( name => "company", title => "Company", type => "text");
+ //$DB_fields[] = array( name => "lname", title => "Last Name", type => "text");
+ $DB_fields[] = array( name => "address", title => "Address", type => "text");
+ $DB_fields[] = array( name => "address2", title => "Address 2", type => "text");
+ $DB_fields[] = array( name => "address3", title => "Address 3", type => "text");
+ $DB_fields[] = array( name => "city", title => "City", type => "text");
+ $DB_fields[] = array( name => "state", title => "State/Province/Region", type => "text");
+ $DB_fields[] = array( name => "zip", title => "Zip/Postal", type => "text");
+ $DB_fields[] = array( name => "country", title => "Country", type => "country");
+ $DB_fields[] = array( name => "phone", title => "Telephone Number", type => "text");
+ $DB_fields[] = array( name => "fax", title => "Fax Number", type => "text");
+ $DB_fields[] = array( name => "email", title => "Email Address", type => "text");
+ $DB_fields[] = array( name => "contact_method", title => "Preferred Contact Method", type => "text");
+ $DB_fields[] = array( name => "mail_ok", title => "Mail Ok?", type => "radio");
+ // $fields are used for building the query page
+ foreach($DB_fields as $key=>$value){
+ if($value['type'] == "text" || $value['type'] == "state")
+ $fields[$value['name']] = $value['title'];
+ }
+ }
+$data['bailout'] = "";
+ $count = 0;
+ foreach($int_array as $key=>$value)
+ {
+ if($count==0)
+ echo " ";
+ echo "$value
";
+ if($count==5)
+ echo "";
+ if($count==11)
+ echo " ";
+ $count++;
+ }
+ echo "
";
+$data['bailout'] .= "You are receiving this message because you have expressed an interest in ";
+$data['bailout'] .= "receiving specials and information from ".SITENAME.". If you do not ";
+$data['bailout'] .= "wish to receive future items of this nature, please reply to this e-mail ";
+$data['bailout'] .= "with the word \"CANCEL\" on the subject line. You will then be removed ";
+$data['bailout'] .= "from future mailings. ";
+$data['bailout'] .= "".OWNER_EMAIL." ";
+$data['bailout'] .= "
";
+?>
diff --git a/admin/Contact/del_query.phtml b/admin/Contact/del_query.phtml
new file mode 100755
index 0000000..c0a6581
--- /dev/null
+++ b/admin/Contact/del_query.phtml
@@ -0,0 +1,18 @@
+
+
+Query is Deleted
+";
+echo '
+ ';
+echo '';
+echo '';
+echo '';
+echo '';
+?>
+
+
+
+
+footer();
+?>
+
+
diff --git a/admin/Contact/edit_contact.phtml b/admin/Contact/edit_contact.phtml
new file mode 100755
index 0000000..8be55c1
--- /dev/null
+++ b/admin/Contact/edit_contact.phtml
@@ -0,0 +1,180 @@
+
+//$Id: edit_contact.phtml,v 1.1.1.1 2006/07/13 13:53:50 matrix Exp $
+include("../../setup.phtml");
+include("contact_setup.inc");
+
+if(!$dbd = db_connect()) html_error(DB_ERROR_MSG, 1);
+
+if($id) { // If there's $id then editing
+ $qs = "SET DATESTYLE TO 'SQL,".DATEFORMAT."';";
+ $qs .= "SELECT ";
+ for($i=0;$i
+
+for($i = 0; $i < db_numrows($res); $i++) {
+ $row = db_fetch_array($res,$i, PGSQL_ASSOC);
+
+ if(!$row[id])
+ html_error(DB_ERROR_MSG,1);
+
+ foreach($row as $key=>$value) {
+ switch($key) {
+
+ case "id":
+ echo "";
+ break;
+
+ case "subject":
+ echo "
+
+ ";
+ break;
+
+ case "response":
+ echo "Subject: ";
+ text_box("subject",$value);
+ echo " ";
+echo "Response: ";
+ echo '';
+ //text_area("response",$value,8,60);
+ echo " ";
+ break;
+
+ case "image":
+ case "image2":
+ case "image3":
+ break;
+
+ default:
+ break;
+ }
+ }
+}
+
+echo "";
+
+ if ($row["image"] != "")
+ {
+ echo " NOTE: Insert IMAGE1 IMAGE2 IMAGE3 etc. in the body of
+ your text where you want the images to appear. "
+ ." ";
+ }
+
+?>
+ "
+ .""
+ ." "
+ ."
"
+ ."
"
+ ."
"
+ ."
"
+ .""
+ ."$FT1 This is the current image attached to this newsletter."
+ ."To change the image, select a new one by clicking the browse button below."
+ ."To delete the image without uploading a new one, select "
+ ."Yes below and click the Update Category button."
+ ."
"
+ ."
+
+
+ if ($row["image2"] != "")
+ {
+ echo "Image:
+
+
+ "
+ ." ";
+ }
+
+?>
+ "
+ .""
+ ." "
+ ."
"
+ ."
"
+ ."
"
+ ."
"
+ .""
+ ."$FT1 This is the second image attached to this newsletter."
+ ."To change the image, select a new one by clicking the browse button below."
+ ."To delete the image without uploading a new one, select "
+ ."Yes below and click the Update Category button."
+ ."
"
+ ."
+
+
+ if ($row["image3"] != "")
+ {
+ echo "Image2:
+
+
+ "
+ ." ";
+ }
+
+?>
+ "
+ .""
+ ." "
+ ."
"
+ ."
"
+ ."
"
+ ."
"
+ .""
+ ."$FT1 This is the third image attached to this newsletter."
+ ."To change the image, select a new one by clicking the browse button below."
+ ."To delete the image without uploading a new one, select "
+ ."Yes below and click the Update Category button."
+ ."
"
+ ."
+
+Image3:
+
+
+
+
+
+
+
+ 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.
+ +Image URL: | ++ + | +
Alternate text: | ++ |
Rows: | ++ | + | + | + |
Cols: | ++ | Width: | ++ | + |
+ | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |