From: Steve Sutton
+This page lists the existing Banner Ads.
+
+Add A New Banner Ad
+ This link will allow you to add new Banner Ad
+List Banner Ads
+ This link is the page you are currently viewing
+[Edit]
+ This link will let you edit an existing Banner Ad
+[Delete]
+ This link will let you Delete an existing Banner Ad
+ON/OFF
+ There is either a green or red ball in line with each existing Banner Ad.
+If the ball is green, the Banner Ad is currently visable on the front end of your
+web site. If the ball is red, the banner ad is not visable on the front end of your
+web site. You can easily toggle Banner Ad visability by clicking on the ball. If the
+ball was red, and you clicked on it, it should turn green.
+This page is for editing and modifying an existing Banner Ad 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 Banner Ads" page.
+
+URL:
+ This is the web site url you want the users to go to when they click the
+banner. Don't enter in http://.
+
+Description:
+ This is the text which will appear as a complete description of the Banner Ad,
+in the Detailed output of the Banner Ad
+ Banner: ID -- $id
+
$url"?>
has been removed
+";
+
+
+ form_header("update_banner.phtml?".SID,"POST","");
+
+foreach($row as $key=>$value) {
+ switch($key) {
+
+ case "id":
+ echo "";
+ break;
+
+ case "member_id":
+ echo "
";
+
+footer();
+?>
diff --git a/admin/Banners/help/banner.phtml b/admin/Banners/help/banner.phtml
new file mode 100755
index 0000000..a94ab80
--- /dev/null
+++ b/admin/Banners/help/banner.phtml
@@ -0,0 +1,181 @@
+
+
+ ";
+ break;
+
+ case "url":
+ echo "Member ID: ";
+ text_box("member_id",$value);
+ echo " ";
+ break;
+
+ case "sdate":
+ echo "URL: ";
+ text_box("url",$value);
+ echo " ";
+ break;
+
+ case "edate":
+ echo "Start Date: ";
+ text_box("sdate",$value);
+ echo " ";
+ break;
+
+ case "active":
+ echo "End Date: ";
+ text_box("edate",$value);
+ echo " ";
+ break;
+
+ case "clicks":
+ echo "Active: ";
+ echo "";
+ echo " ";
+ break;
+
+ case "impressions":
+ echo "Clicks: ";
+ text_box("clicks",$value);
+ echo " ";
+ break;
+
+ case "description":
+ echo "Impressions: ";
+ text_box("impressions",$value);
+ echo " ";
+ break;
+
+ case "image":
+ ?>
+ Description: ";
+ text_area("description",$value);
+ echo "
+
+ echo "";
+ if($value != "") {
+ echo "
+ Current Image: ";
+ echo "
+
+
+ ";
+ }
+ echo "Delete this image:
+
+ Yes
+ No
+
+ ";
+ break;
+
+ default:
+ html_error("need case for ->".$key,1);
+ break;
+ }
+}
+if(isset($id)) {
+ form_footer("Update",1,2);
+}
+else {
+ form_footer("Insert","",2);
+}
+echo "New Image: ";
+ echo "";
+ echo " Banner Ads Help
+
+
+switch ($key) {
+ case "list":
+ ?>
+List Banner Ads
+
+Edit an Banner Ad
+
This is date upon which the Banner Ad will begin. It should be formatted in +the following manner: 05/15/2001 +
++End Date: +
+This is date upon which the Banner Ad will end. It should be formatted in +the following manner: 05/15/2001 +
++Active: +
+This Select Box will determine whether or not the Banner Ad is viewable +on the front end of you web site. +The Default value is "Yes" meaning that the banner ad will be visable. +
++Click and Impressions: +
+These are the counters for banner ads
++Picture for Banner Ad: +
+If you choose, you may upload an image which will be displayed on the +Detailed output for the Banner Ad. 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 Banner Ad, +you can click "Submit Query." This will update the information about the +Banner Ad in the database. +
+ + break; + case "add": + ?> ++This page is for Adding Banner Ads 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 Banner Ads" page. +
+ ++URL: +
+This is the web site url you want the users to go to when they click the +banner. Don't enter in http://. +
++Description: +
+This is the text which will appear as a complete description of the Banner Ad, +in the Detailed output of the Banner Ad
+Start Date: + +This is date upon which the Banner Ad will begin. It should be formatted in +the following manner: 05/15/2001 +
++End Date: +
+This is date upon which the Banner Ad will end. It should be formatted in +the following manner: 05/15/2001 +
++Active: +
+This Select Box will determine whether or not the Banner Ad is viewable +on the front end of you web site. +The Default value is "Yes" meaning that the banner ad will be visable. +
++Click and Impressions: +
+These are the counters for banner ads
++Picture for Banner Ad: +
+If you choose, you may upload an image which will be displayed on the +Detailed output for the Banner Ad. 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 Banner Ad, +you can click "Submit Query." This will update the information about the +Banner Ad in the database. +
+ + break; + +} +?> ++ + Function + + | ++ + On/Off + + | ++ + URL + + | ++ + Counters + + | ++ + Start Date + + | ++ + End Date + + | ++ + Image + + | +|
---|---|---|---|---|---|---|---|
+ [Edit] + + [Delete] + | +
+ ">
+ if($row[active] == "t")
+ echo " |
+ + |
+ Impressions: + Clicks: + |
+ + + | ++ + | + +if($row[image] != "") { +?> ++ +} +?> + |
+ + Parent Page: | "; + $output = parent_select($value,$id); + echo "".$output." | "; + echo "||||||||||
Page Name: | "; + text_box("category",$value); + echo "|||||||||||
Image Caption: | "; + text_box("imagename",$value); + echo "|||||||||||
Page Header: | "; + text_box("intro",$value); + echo "|||||||||||
Current Image: | "; + echo "
+ ";
+ if($value != "") {
+ echo " |
+ ||||||||||
Delete this image: | ++ Yes + No + | +||||||||||
+ New Image: | |||||||||||
Kiosk Description: | "; + echo ''; + //text_area("description",htmlspecialchars($value),15,60); + echo " | ||||||||||
Description: | "; + text_area("description",htmlspecialchars($value),15,60); + echo "|||||||||||
Keyword: | "; + text_box("keyword",$value); + echo "|||||||||||
Template: | "; + echo "
+
| ||||||||||
+ + + + if(!CAT_LOCK && !check_lock($id)) + { + ?> + + + } + ?> + |
+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
+ + break; + + case "edit": + ?> ++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. +
+ + break; + case "add": + ?> ++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. +
+ + break; + +} +?> ++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 +
++
+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; +} +?> ++ + | +
+ + + |
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.
+ ++ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
+ | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + |
This function does both the bus and bus category page parent select drop down boxes. + the backcount var is used to lock the list to a certain level set up with define of LEVELS_DEEP. + count varl starts at one and is generated in the function convertParent so we'll need to subtract one for proper results. + to unset backcount properly we'll need to check if count goes under or equals that of backcount. + then unset($backcount) cause if backcount is not empty then category won't get added to list. +
+ */ +function parent_select($catid,$id,$sel_name = "parent") + { + global $DB; + // select catid portion + if( $sel_name == "parent" ) + { + $qs = "SELECT id,category,parent + FROM bus_category + WHERE id != ".HOME_ID." + ORDER BY parent,pos"; + } + else + { + $qs = "SELECT id,category,parent + FROM bus_category + ORDER BY parent,pos"; + } + + $data = $DB->db_auto_get_data($qs,CONN_STR); + $data1 = sort_by_parent($data); + $select = "