<?php
// PHP Script: index.asp
// Description: *.com index page
// DATE: 26-11-2009
// AUTHOR: 'Eugene Kerner' <ekerner@ekerner.com>
// REVISION: 1.0

require_once('../config/SetEnv.php');
require_once('EKerner/WebApp.php');

class webpage extends EKerner_WebApp
{

  public function render()
  {
    // html meta data ...
    $this->siteDetails->metaTitle       = 'Contact Us &middot; ' . $this->siteDetails->company . ' &middot; ' . $this->siteDetails->caption;
    $this->siteDetails->metaDescription = $this->siteDetails->company . ' are at your service 7 days per week with full support and pride in customer service.';
    $this->siteDetails->metaKeywords    = $this->siteDetails->company . ', application developer, application, developer, app, software, Australia, AU, AUS, OZ, AUD, ' .
                                          'information technology, contact, contact us, email, phone, numbers, post, mail, online';
    $this->panes->head->append('content', 
      '<link rel="stylesheet" type="text/css" href="/css/accordion.css" />' . "\n    " .
      '<script type="text/javascript" src="/js/accordion.jq"></script>'
    ); 
    $this->panes->onload->append('content', 
      "menu.init('mainMenu', ['Contact', 'All Meduim']);" 
    );
    
    // page content ...
    $this->panes->banner->append('widget', 'ContactLinks');
    $this->panes->left->append('widget', 'GenreMenu');
    $this->panes->heading->append('content', '
                      <img class="floatRight headingImage" src="/images/content/punch_contact_face.png" alt="Punch Contact Face" title="Contact Us" style="cursor:help;" width="118px" height="100px" />
                      <h2><img src="/images/icons/contact_us.png" alt="Contact Us" width="25" height="25" />Contact Us</h2>
                      <p>We are at your service 7 days per week with full support and pride in customer service.</p>
                      <p>Please dont hesitate to contact us via your preferred meduim with your order, enquiry, or feedback.</p>
                      <p class="alignRight"><a href="/contact/enquiry">Online Contact Form &raquo;</a></p>
    ');
    
    
    $this->panes->main->append('content', '
                      <div class="p yspaced">
                        <h3><img src="/images/icons/online.png" alt="Online Contact" width="25" height="25" />Online Contact Forms</h3>
                        <ul class="blueArrowList indented">
                          <li><a href="/bundle" title="Order Products and/or Services">Order Products &amp; Services</a></li>
                          <li><a href="/contact/booking" title="Make a booking">Book a Consultation</a></li>
                          <li><a href="/contact/quote" title="Recieve a quote">Request a Quotation</a></li>
                          <li><a href="/contact/enquiry" title="Make a general enquiry">Make an Enquiry</a></li>
                          <li><a href="/contact/submit" title="Send us information, details, or data">Submit Information</a></li>
                          <li><a href="/contact/jobs" title="Job Application">Apply for a Job</a></li>
                          <li><a href="/contact/feedback" title="Provide your feedback">Provide Feedback</a></li>
                          <li><a href="/contact/testimony" title="Offer your testimony">Offer Testimony</a></li>
                        </ul>
                      </div>
                      <div class="p yspaced">
                        <h3><img src="/images/icons/email.png" alt="Email Envelope" width="25" height="25" />Email Adrresses</h3>
                        <ul class="blueArrowList indented">
                          <li><b>Admin:</b> <a href="mailto:' . $this->siteDetails->email . '" title="Email Admin">' . $this->siteDetails->email . '</a></li>
                          <li><b>Support:</b> <a href="mailto:' . $this->siteDetails->supportEmail . '" title="Email Support">' . $this->siteDetails->supportEmail . '</a></li>
                          <li><b>Sales:</b> <a href="mailto:' . $this->siteDetails->salesEmail . '" title="Email Sales">' . $this->siteDetails->salesEmail . '</a></li>
                          <li><b>Management:</b> <a href="mailto:' . $this->siteDetails->bossEmail . '" title="Email Management">' . $this->siteDetails->bossEmail . '</a></li>
                        </ul>
                      </div>
                      <div class="p yspaced">
                        <h3><img src="/images/icons/phone.png" alt="Old Phone" width="25" height="25" />Phone Numbers</h3>
			<!--div class="p indented">NOTE: If you are not in my phone book then I probably wont answer. Send me a message or email. This is because I am too busy and dont have time drop what I am doing and analyse your requirements on the spot. You can also partly blame the plethora of marketers, scammers, and spammers that are constantly trying to hustle me.</div-->
                        <ul class="blueArrowList indented">
    ');
    // only display phone numbers if defined ...
    foreach (array(
      'Within Australia'  => 'freeCallNo',
      'Local Call' => 'localCallNo',
      'Mobile'     => 'mobileNo'
    ) as $label => $ref) {
      if ($this->siteDetails->$ref)
        $this->panes->main->append('content', str_repeat(' ', 26) . "<li><b>{$label}:</b> <a title=\"\" href=\"tel:" . $this->siteDetails->$ref . "\" onclick=\"goog_report_conversion();\">" . $this->siteDetails->$ref . "</a></li>\n");
    }
    $this->panes->main->append('content', '
                        </ul>
                      </div>
                      <div class="p">
                        <h3><img src="/images/icons/mail.png" alt="Mail Envelope" width="25" height="25" />Postal Address</h3>
                        <p class="indented">
			  eKerner<br />
                          C/- Springton Post Office<br />
                          Springton&nbsp;&nbsp;SA&nbsp;&nbsp;5235<br />
                          Australia
                        </p>
                      </div>
    ');
    $this->panes->main->append('widget', 'ServiceSelector');
    $this->panes->right->append('widget', 'BlockLinks');
    $this->panes->bottom->append('widget', 'Footer');

    $this->write();
  }

}


try {
  $webpage = new webpage();
  $webpage->render();
} catch (Exception $e) {
  die($e->getMessage());
}

?>
