File: /home/awaldron/www/archive/demo/button_buddy.php
<?php session_start(); ?>
<html>
<head>
<title>HELP : Button Help</title>
</head>
<link rel="stylesheet" type="text/css" href="default.css">
<body style="margin:4px;"><center>
<table border=0 width=100% cellspacing=5 cellpadding=0>
<tr>
<?php
function nbsp($n) {
$nbsp = "";
for ($i=0; $i < $n; $i++) $nbsp .= " ";
return $nbsp;
}
include("_functions.php");
echo "<table border=\"0\" width=625 height=400 cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#EBEFF5\" style=\"border:solid 1px #999999;\">\n";
echo "<tr><td valign=\"top\">\n";
echo "<table border=\"0\" cellspacing=\"5\" cellpadding=\"0\">\n";
echo "<tr><td colspan=6><a href=\"button_buddy.php?b=fsize\"><img src=\"/gui/buttons/bb_fsize.gif\" border=0></a> <a href=\"button_buddy.php?b=fcolor\"><img src=\"/gui/buttons/bb_fcolor.gif\" border=0></a></td>\n";
echo " <td colspan=4 nowrap=\"nowrap\" align=\"right\"><a href=\"button_buddy.php?b=upload\"><img src=\"/gui/buttons/bb_upload.gif\" border=0></a></td>\n";
echo "</tr>\n";
echo "<tr align=\"center\" valign=\"middle\"> \n";
echo "<td><a href=\"button_buddy.php?b=bold\"><img src=\"/gui/buttons/bb_bold.gif\" border=0></a></td>\n";
echo "<td><a href=\"button_buddy.php?b=italic\"><img src=\"/gui/buttons/bb_italic.gif\" border=0></a></td>\n";
echo "<td><a href=\"button_buddy.php?b=under\"><img src=\"/gui/buttons/bb_under.gif\" border=0></a></td>\n";
echo "<td><a href=\"button_buddy.php?b=center\"><img src=\"/gui/buttons/bb_center.gif\" border=0></a></td>\n";
echo "<td><a href=\"button_buddy.php?b=quote\"><img src=\"/gui/buttons/bb_quote.gif\" border=0></a></td>\n";
echo "<td><a href=\"button_buddy.php?b=code\"><img src=\"/gui/buttons/bb_code.gif\" border=0></a></td>\n";
echo "<td><a href=\"button_buddy.php?b=bl\"><img src=\"/gui/buttons/bb_bl.gif\" border=0></a></td>\n";
echo "<td><a href=\"button_buddy.php?b=nl\"><img src=\"/gui/buttons/bb_nl.gif\" border=0></a></td>\n";
echo "<td><a href=\"button_buddy.php?b=img\"><img src=\"/gui/buttons/bb_img.gif\" border=0></a></td>\n";
echo "<td><a href=\"button_buddy.php?b=url\"><img src=\"/gui/buttons/bb_url.gif\" border=0></a></td>\n";
echo "</tr></table>\n";
echo "<center>\n";
if (!isset($_GET["b"])) {
echo "<div style=\"width:605px;text-align:left;color:#009900;\">\n";
echo "<br><br><br><li> <b>Please click on one of the buttons above to view examples of its use.</b>\n";
echo "</div>\n";
} else if ($_GET["b"] == "file") {
echo "<div style=\"width:605px;text-align:left;\">\n";
echo "<br><br><br><li> The File button is a special feature for users who maintain many documents on an intranet website.\n";
echo "<br><br><li> For most users, it is recommended that the <a href=\"button_buddy.php?b=upload\">Upload/Insert</a> functionality is utilized.\n";
echo "</div>\n";
} else if ($_GET["b"] == "upload") {
echo "<div style=\"width:605px;text-align:left;\">\n";
echo "<br><br><br><ul style=\"margin:0px 0px 0px 20px;\"><li> This button is used whan a user wants to post an image or file from a local drive to the intranet.\n";
echo "<li> To do so, click on either the <b>Image</b> or <b>File</b> link.\n";
echo "<li> A file upload window will pop up.\n";
echo "<li> Follow the instructions in the pop up window to upload your file.\n";
echo "<li> Once the upload is complete, copy and paste the generated code into the content editor.\n";
echo "</ul>\n";
echo "</div>\n";
} else {
echo "<div style=\"width:605px;text-align:left;\">\n";
if ($_GET["b"] == "fsize") {
$h1 = 115;
echo "<ul style=\"margin:0px 0px 0px 20px;\"><li> <b>Font Size</b> : Changes the size of the font.\n";
echo "<li> <b>To Use</b> : Highlight the text with your mouse, and select the size you would like it to be from the Font Size dropdown box.\n";
echo "</ul>\n";
$code = "[size=9]This Font Size is Small[/size]\nThis Font Size is Normal\n[size=14]This Font Size is Large[/size]\n[size=18]This Font Size is Extra Large[/size]\n[size=22]This Font Size is Headline[/size]";
}
if ($_GET["b"] == "fcolor") {
$h1 = 115;
echo "<ul style=\"margin:0px 0px 0px 20px;\"><li> <b>Font Color</b> : Changes the color of the font.\n";
echo "<li> <b>To Use</b> : Highlight the text with your mouse, and select the color you would like it to be from the Font Color dropdown box.\n";
echo "</ul>\n";
$code = "Normal Text\n[color=red]Red Text[/color]\n[color=darkblue]Dark Blue Text[/color]\n[color=green]Green Text[/color]\n[color=#C73EAF]Custom Color Using Hex Value #C73EAF[/color]";
}
if ($_GET["b"] == "bold") {
$h1 = 115;
echo "<ul style=\"margin:0px 0px 0px 20px;\"><li> <b>Bold</b> : Makes any text within the [b] [/b] tags bold.\n";
echo "<li> <b>To Use</b> : Using your mouse, highlight the text that you would like to be bold and click the Bold button.\n";
echo "</ul>\n";
$code = "Let's make some bold text:\n[b]Make your message stand out with bold text![/b]";
}
if ($_GET["b"] == "italic") {
$h1 = 115;
echo "<ul style=\"margin:0px 0px 0px 20px;\"><li> <b>Italic</b> : Makes any text within the [i] [/i] tags italic.\n";
echo "<li> <b>To Use</b> : Using your mouse, highlight the text that you would like to be italicized and click the <i>Italic</i> button.\n";
echo "</ul>\n";
$code = "Let's make some italicized text:\n[i]Place emphasis on your message with italic text![/i]";
}
if ($_GET["b"] == "under") {
$h1 = 115;
echo "<ul style=\"margin:0px 0px 0px 20px;\"><li> <b>Underline</b> : Underlines any text within the [u] [/u] tags.\n";
echo "<li> <b>To Use</b> : Using your mouse, highlight the text that you would like to underline and click the <u>Under</u> button.\n";
echo "</ul>\n";
$code = "Let's underline some text:\n[u]Underlines are good for page section headers.[/u]";
}
if ($_GET["b"] == "center") {
$h1 = 115;
echo "<ul style=\"margin:0px 0px 0px 20px;\"><li> <b>Center</b> : Centers any code within the [center] [/center] tags.\n";
echo "<li> <b>To Use</b> : Using your mouse, highlight the block of text that you would like to center and click the Center button.\n";
echo "</ul>\n";
$code = "Let's center the following text:\n\n[center]Centering text is an easy way to\nmake text more readable on a page\nagainst the rest of the text.[/center]";
}
if ($_GET["b"] == "quote") {
$h1 = 100;
echo "<ul style=\"margin:0px 0px 0px 20px;\"><li> <b>Quote</b> : Creates a quote box around text.\n";
echo "<li> <b>To Use</b> : Using your mouse, highlight the block of text that you would like to specify as a quote and click the Quote button.\n";
echo "<li> <b>Source</b> : Use [quote=<i>name</i>] to specify who wrote the quote you are citing.\n";
echo "</ul>\n";
$code = "[quote]Quote boxes are a great way to cite a reference[/quote]\n[quote=Ben Franklin]A penny saved is a penny earned.[/quote]";
}
if ($_GET["b"] == "code") {
$h1 = 115;
echo "<ul style=\"margin:0px 0px 0px 20px;\"><li> <b>Code</b> : Creates a box around text and prints special HTML characters.\n";
echo "<li> <b>To Use</b> : Using your mouse, highlight the block of text that you would like to specify as code and click the Code button.\n";
echo "</ul>\n";
$code = "Use this code to print 'Hello World!' in C++\n[code]#include <iostream>\nusing namespace std;\nint main() {\n cout << \"Hello World!\";\n}[/code]";
}
if ($_GET["b"] == "bl") {
$h1 = 115;
echo "<ul style=\"margin:0px 0px 0px 20px;\"><li> <b>Bulleted List</b> : Specifies that a block of code is to be a bulleted list.\n";
echo "<li> <b>To Use</b> : Type out all of the items in your list and use the plus sign as a temporary bullet (+). Then with your mouse, highlight all of your list items and click the BL button.\n";
echo "</ul>\n";
$code = "A simple bulleted list:\n[bl]\n+ This is my first list item\n+ This is my second list item\n+ This is my third list item\n[/bl]";
}
if ($_GET["b"] == "nl") {
$h1 = 115;
echo "<ul style=\"margin:0px 0px 0px 20px;\"><li> <b>Numbered List</b> : Specifies that a block of code is to be a numbered list.\n";
echo "<li> <b>To Use</b> : Type out all of the items in your list and use the plus sign as a temporary bullet (+). Then with your mouse, highlight all of your list items and click the NL button.\n";
echo "</ul>\n";
$code = "A simple numbered list:\n[nl]\n+ This is my first list item\n+ This is my second list item\n+ This is my third list item\n[/nl]";
}
if ($_GET["b"] == "img") {
$h1 = 115;
echo "<ul style=\"margin:0px 0px 0px 20px;\"><li> <b>Image</b> : Inserts an image into the body.\n";
echo "<li> <b>To Use</b> : Type the full URL of the image, highlight the URL and then click the IMG button.\n";
echo "</ul>\n";
$code = "Insert the Intrabreeze logo:\n[img]http://demo.intrabreeze.com/gui/demo_logo.gif[/img]";
}
if ($_GET["b"] == "url") {
$h1 = 115;
echo "<ul style=\"margin:0px 0px 0px 20px;\"><li> <b>URL</b> : Create a hyperlink to a website, document or email address.\n";
echo "<li> <b>To Use</b> : Type the full URL of the website or document, or a valid email address, highlight the URL or email address and then click the <u>URL</u> button.\n";
echo "</ul>\n";
$code = "[url]http://www.intrabreeze.com[/url]\n[url=http://www.intrabreeze.com]Intrabreeze.com Home Page[/url]\n\n[url]help@intrabreeze.com[/url]\n[url=help@intrabreeze.com]Email the Intrabreeze Help Center[/url]";
}
echo "</div>\n";
echo "<br><table width=96% height=260 border=0 cellspacing=10 cellpadding=5>\n";
echo "<tr><td width=100% height=".$h1." bgcolor=\"#FFFFFF\" valign=\"top\" style=\"font:12px courier new;border:solid 1px #999999;\">".str_replace("\n","<br>",$code)."</td></tr>\n";
echo "<tr><td width=100% height=".(230-$h1)." bgcolor=\"#".COLOR_BG."\" valign=\"top\" style=\"border:solid 1px #999999;line-height:15px;\">".format_body($code)."</td></tr>\n";
echo "</table>\n";
}
echo "</center>\n";
echo "</td></tr></table>\n";
?>
</center>
</body>
</html>