<?php 
function containsHTML($post_text)
   {
   $hasHTML = FALSE;
   $arr = array("</",
		"http://");

   foreach ($arr as $val) 
      {
      if (strstr($post_text,$val))
         {
         $hasHTML = TRUE;
         break;
         }
      }

   return $hasHTML;
   }

	$title = "Design by WebFu";
	$tagline = "Quality Web Design";
	include "begin.php";
	
	if (isset($_POST['submit']))
	{
	$to = "email@greghowley.com";
	$quote_dt = $_POST['quote_dt'];
	$site_dt = $_POST['site_dt'];
	$domain = $_POST['domain']; //(y/n/o)
	$name = $_POST['name'];
	$company = $_POST['company'];
	$city_st = $_POST['city_st'];
	$referred = $_POST['referred'];
	$phone = $_POST['phone'];
	$email = $_POST['email'];
	$pages = $_POST['pages'];
	$chk_contact = $_POST['chk_contact'];
	$chk_poll = $_POST['chk_poll'];
	$chk_cms = $_POST['chk_cms'];
	$chk_photo = $_POST['chk_photo'];
	$chk_forum = $_POST['chk_forum'];
	$chk_pads = $_POST['chk_pads'];
	$chk_calendar = $_POST['chk_calendar'];
	$chk_mail = $_POST['chk_mail'];
	$chk_cart = $_POST['chk_cart'];
	$chk_catalog = $_POST['chk_catalog'];
	$sites = $_POST['sites'];
	$comments = $_POST['comments'];

	if (containsHTML($quote_dt) ||
		containsHTML($site_dt) ||
		containsHTML($referred) ||
		containsHTML($email))
	{die("The content of your message has been interpreted as spam.");}
	
	$message = "Website Quote Request\n\n";
	$message = $message . "Quote Required by $quote_dt\n";
	$message = $message . "Finished Site Required by $site_dt\n";
	
	switch ($domain)
		{
		case "y": $has_domain = "Already Have Domain\n"; break;
		case "n": $has_domain = "Needs Domain Name\n";	break;
		case "o": $has_domain = "Domain Name: *OTHER*\n"; break;
		}
	
	$message = $message . $has_domain;
	$message = $message . "City/State: $city_st\n";
	$message = $message . "Referred by $referred\n";
	$message = $message . "Phone: $phone\n";
	$message = $message . "EMail: $email\n\n";
	
	$message = $message . "# of Pages: $pages\n";
	$message = $message . "*EXTRAS*\n";
	
	if ($chk_contact == "on" ) {$message = $message . "Contact Form\n";}
	if ($chk_poll == "on" ) {$message = $message . "Poll/Survey\n";}
	if ($chk_cms == "on" ) {$message = $message . "CMS\n";}
	if ($chk_photo == "on" ) {$message = $message . "Photo Gallery\n";}
	if ($chk_forum == "on" ) {$message = $message . "Discussion Forum\n";}
	if ($$chk_pads == "on" ) {$message = $message . "Ad Management Package\n";}
	if ($chk_calendar == "on" ) {$message = $message . "Calendar\n";}
	if ($chk_mail == "on" ) {$message = $message . "Mailing List\n";}
	if ($chk_cart == "on" ) {$message = $message . "Shopping Cart\n";}
	if ($chk_catalog == "on" ) {$message = $message . "Searchable Catalog with Database\n";}
	
	$message = $message . "*OTHER SITES*\n$sites\n\n";
	$message = $message . "*COMMENTS*\n$comments\n";
	$message = $message . "IP ADDRESS: " . $_SERVER['REMOTE_ADDR'];
	
	$subject = "*** Web Design Quote Request ***";
	$from = $name." : ".$company;
	$extras = "From: $email\r\n" .
     "Reply-To: $email\r\n" .
     "X-Mailer: PHP/" . phpversion();
	
	//$success = mail ($to, $subject, $message, $extras);
	$success=FALSE;
	if ($success)
		{
		echo("<p class=\"spaced\">Mail successfully sent.</p>");
		}
	else
		{
		echo("<p class=\"spaced\">Error sending email. ($success)</p>");
		}
	
	include "end.php"; 
	die();
	}
?>

<div id="main" class="design">

	<div id="side">
	<div id="side_h"></div>
	<h4>Web Design</h4>
	<ul>
	<li><a href="http://webfu.greghowley.com/design#features">Features</a></li>
	<li><a href="http://webfu.greghowley.com/design#portf">Portfolio</a></li>
	<li><a href="http://webfu.greghowley.com/design#pricing">Pricing</a></li>
	<!--<li><a href="<?=$PHP_SELF?>#quote">Get a Quote</a></li>-->
	</ul>
	</div> <!-- end body_rightcol -->

<div id="body_main">
<p class="intro">Whether you're looking to set up a simple personal site, a dynamic web portal for your business, or simply make revisions to a pre-existing site, I can provide quality design at inexpensive rates.</p>
<p class="intro">When you have a site designed, it should be done right the first time. You shouldn't need to pay a &quot;webmaster&quot; every time you need two sentences added. If your site is going to require regular updates, it should be designed with this in mind so that you can make them yourself with no technical knowledge.</p>
<p class="intro">I specialize in dynamic design using php, javascript, and css-based layouts. Ideally, once your site is active, content updates can be easily handled by you via a simple administrative interface rather than by a webmaster.</p>
<a id="features"></a> <!-- bookmark -->
<h3>Features</h3>
<dl>
<dt>Simple, Accessible Design</dt>
<dd>In the context of web design, accessibility is a measure of how easy it is to access and understand a page's content. 
While this may seem relatively straightforward, accessibility is much different for a living document such as a web page than it would be for print media. 
Web pages can be experienced in a variety of ways, through a number of browsers, via wireless devices such as <acronym title="personal digital assistant">PDA</acronym>s and phones, speech browsers for the blind, and <acronym title="Used by search engines to find pages for web searches">indexing robots</acronym>. 
If a page is not designed correctly, it may not be accessible to the blind, may render incorrectly in browsers such as Opera of Firefox, or may not be indexed properly and thus not show up in internet searches.
There are many elements and features which cannot be displayed or can be turned off in your browser. Javascript, stylesheets, frames, and even images. If a page is designed correctly, the content does not suffer when those elements are disabled.</dd>
<dt>100% Custom Websites - from scratch</dt>
<dd>I do not use prefabricated templates, unappealing stock photos, or design software such as Frontpage or Dreamweaver. All websites I design are completely custom, totally unique.</dd>
<dt>Forward-compatible code</dt>
<dd>I code in <a href="http://greghowley.com/test_anyrib/articles/xhtml_in_a_nutshell" title="eXtensible HyperText Markup Language">XHTML</a>, an XML-compatible language which not only enhances accessibility, but also ensures that your site will display properly in the web browsers of tomorrow.</dd>
<dt>Spam-Proof email posting</dt>
<dd>When posting email addresses online, spam is a major concern. Any time an email address shows up online, it is vulnerable to email harvesting <a href="http://en.wikipedia.org/wiki/Internet_Bot">bots</a>, programs which search the internet for email addresses which are compiled into databases, sold, and spammed relentlessly. There are many techniques for disguising your email address and harassing spam-bots so that the address you post remains spam-free.</dd>
<dt>Customized RSS Feeds</dt>
<dd>I can also create a <a title="Really Simple Syndication" href="http://www.google.com/search?q=define%3Arss">RSS Feed</a> for your site. <acronym title="Really Simple Syndication">RSS</acronym> is a technology quickly gaining in popularity. Using RSS, you can easily syndicate your content and make it available to other sites and to anyone with a RSS Reader.</dd>
</dl>

<a id="portf"></a> <!-- bookmark -->
<h3>Portfolio</h3>
<dl>
<dt><a href="http://beadslouise.com/">Beads Louise</a></dt>
<dd><img class="floatright" src="images/portfolio/beadslouise.jpg" alt="" />A small bead shop in Buena Vista, Colorado. Their site includes pages they can easily update, a calendar, and a custom online inventory system.<br/><br/><br/><br/></dd>

<dt><a href="http://lakecountyco.com/">Lake County, Colorado government website</a></dt>
<dd><img class="floatright" src="images/portfolio/lakecountyco.jpg" alt="Lake County, CO" />The Lake County government wanted a multi-department site that they could easily update with separate permission structures for each department. They also wanted a photo and video gallery, custom database for the assessor's department, multiple calendars, and a user configurable per-department contact directory.<br/><br/></dd>

<dt><a href="http://kyfurniture.com/">Kentucky Furniture Wholesale</a></dt>
<dd><img class="floatright" src="images/portfolio/kyfurn.jpg" alt="Kentucky Furniture Wholesale" />A wholesale furniture company located in Lexington, Kentucky.<br/><br/><br/><br/><br/><br/></dd>
</dl>


<a id="pricing"></a> <!-- bookmark -->
<h3>Pricing</h3>
<p>There are three main costs associated with establishing a web site: Domain Name, Hosting, and Design.</p>
<dl id="pricing_dl">
<dt>Domain Name</dt>
<dd>If you already have a domain name, great! If you do not, and you want your site to be hosted at your own domain, for example <strong>PablosMexicanRestaurant.com</strong> or <strong>XYZautoParts.net</strong>, you will need to purchase a domain name. Domains typically cost $35/year, although I can get you free domain registration should you purchase hosting with the company I use.</dd>
<dt>Hosting</dt>
<dd>If you want to have a web site, it must be hosted with someone. Should you have a host with whom you're happy, I can certainly work with you. If not, you'll find that hosting prices vary greatly, from free to hundreds of dollars per month, although the free hosts generally force you to place ugly advertisments or pop-ups on the site. After having tried many hosts, I've found a very reliable one which costs only $6.95/month, or less should you purchase hosting for over one year.</dd>
<dt>Design</dt>
<dd>This is my part. The design is the construction of the site, which may include entry of content, organization of layout, drafting of graphics, and design of the database should one exist.</dd>
</dl>
<p>Pricing the design of a website can be complicated, as there are many factors to take into account. The ultimate factor in affecting pricing is how many hours it will take to create the site. Factors include the amount of content (number of pages), graphic work, and amount of programming for interactivity.</p>

<!--
<p>Please use the following form to contact me for a price quote on your site design.</p>


<a id="quote"></a> <!-- bookmark -->
<h3>Web Design Quotation Form</h3>
<form id="pricing_form" method="post" action="<?=$PHP_SELF?>">
<table>
<tr>
	<td class="leftcol">Need Quote By:</td>
	<td><input type="text" name="quote_dt"/></td>
</tr>
<tr>
	<td class="leftcol">Need Finished Site By:</td>
	<td><input type="text" name="site_dt"/></td>
</tr>
<tr>
	<td class="leftcol">Have You Purchased a Domain Name?</td>
	<td class="tiny">
	<input type="radio" name="domain" value="y" />Yes
	<input type="radio" name="domain" value="n" />Not&nbsp;Yet
	<input type="radio" name="domain" value="o" />Other&nbsp;(Explain&nbsp;Below)
	</td>
</tr>
<tr>
	<td colspan="2" class="leftcol title">Contact Info</td>
</tr>
<tr>
	<td class="leftcol">Name</td>
	<td><input type="text" name="name"/></td>
</tr>
<tr>
	<td class="leftcol">Company</td>
	<td><input type="text" name="company"/></td>
</tr>
<tr>
	<td class="leftcol">City/State</td>
	<td><input type="text" name="city_st"/></td>
</tr>
<tr>
	<td class="leftcol">Referred By</td>
	<td><input type="text" name="referred"/></td>
</tr>
<tr>
	<td class="leftcol">Phone</td>
	<td><input type="text" name="phone"/></td>
</tr>
<tr>
	<td class="leftcol">Email</td>
	<td><input type="text" name="email"/></td>
</tr>
<tr>
	<td colspan="2" class="leftcol title">Details</td>
</tr>
<tr>
	<td class="leftcol">Number of Pages</td>
	<td><input type="text" name="pages"/></td>
</tr>
<tr>
	<td class="leftcol">Contact Form</td>
	<td><input type="checkbox" name="chk_contact"/></td>
</tr>
<tr>
	<td class="leftcol">Poll/Survey</td>
	<td><input type="checkbox" name="chk_poll"/></td>
</tr>
<tr>
	<td class="leftcol">Content Management System</td>
	<td><input type="checkbox" name="chk_cms"/></td>
</tr>
<tr>
	<td class="leftcol">Photo Gallery</td>
	<td><input type="checkbox" name="chk_photo"/></td>
</tr>
<tr>
	<td class="leftcol">Discussion Forum</td>
	<td><input type="checkbox" name="chk_forum"/></td>
</tr>
<tr>
	<td class="leftcol">Advertising Management Package</td>
	<td><input type="checkbox" name="chk_pads"/></td>
</tr>
<tr>
	<td class="leftcol">Web Calendar</td>
	<td><input type="checkbox" name="chk_calendar"/></td>
</tr>
<tr>
	<td class="leftcol">Web-based Mailing List</td>
	<td><input type="checkbox" name="chk_mail"/></td>
</tr>
<tr>
	<td class="leftcol">Shopping Cart</td>
	<td><input type="checkbox" name="chk_cart"/></td>
</tr>
<tr>
	<td class="leftcol">Searchable Catalog with Database</td>
	<td><input type="checkbox" name="chk_catalog"/></td>
</tr>
<tr>
	<td class="leftcol">Other Sites with similar features/functionality</td>
	<td><textarea rows="12" cols="55" name="sites"></textarea></td>
</tr>
<tr>
	<td class="leftcol">Comments</td>
	<td><textarea rows="12" cols="55" name="comments"></textarea></td>
</tr>
<tr>
	<td colspan="2" class="send"><input type="submit" id="submit" name="submit" value="Send" /></td>
</tr>
</table>
</form>
-->

</div> <!-- end body_main -->
</div> <!-- end main -->

<?php include "end.php"; ?>