updates
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 5 Feb 2010 21:02:07 +0000 (21:02 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 5 Feb 2010 21:02:07 +0000 (21:02 +0000)
Toolkit/Page.php
admin/Toolbox/convert_files.php
admin/Toolbox/export-images-is0.php
templates/template.html

index 49ebe14..9b0ed48 100755 (executable)
@@ -155,13 +155,13 @@ class Toolkit_Page
         $this->pageTitle = $toolbox->get_catheader($topParent, $toolbox->DB);
 
                // Resources needed for every page.
-               $GLOBALS['styleSheets'][] = $this->baseURL . 'stylesNew.css';
+               $GLOBALS['styleSheets'][] = $this->baseURL . 'styles.css';
                $GLOBALS['scripts'][]
                        = $this->glmAppBaseURL . 'libjs/jquery-1.3.2.min.js';
                $GLOBALS['scripts'][] = $this->baseURL . 'libjs/newsletterSignup.js';
 
         // bread crumb navigation
-        $this->breadCrumbs = $toolbox->get_bread_crumbs($toolbox->catid);
+        //$this->breadCrumbs = $toolbox->get_bread_crumbs($toolbox->catid);
 
         // main nav
         $this->mainNav = $toolbox->get_main_nav();
@@ -173,15 +173,6 @@ class Toolkit_Page
             $this->sideNav = '';
         }
 
-        // urls used in the template set using get_seo_url
-        $this->glmAssociate     = $toolbox->get_seo_url(2);
-        $this->contactGLM       = $toolbox->get_seo_url(10);
-        $this->servicesOffered  = $toolbox->get_seo_url(81);
-        $this->aboutGLM         = $toolbox->get_seo_url(86);
-        $this->newsletterAction = $toolbox->get_seo_url(10);
-
-        $this->tripPlannerCount = count($_SESSION['wish_list']);
-        $this->tripPlannerUrl   = $toolbox->get_seo_url(MEMBER_SESSION_PAGE);
         // check if define for HOME_EVENTS is set
         if (defined("HOME_EVENTS") && HOME_EVENTS && $toolbox->catid == HOME_ID) {
             $this->events($toolbox);
index 26c751d..d896b5a 100644 (file)
@@ -41,19 +41,21 @@ if( is_array( $data ) )
                $filename = $row['1'];
                $urltext = $row['2'];
                $iFile = stat( UP_BASE.$filename );
-       //      echo '<p>File: '.UP_BASE.$filename.'</p>';
-               $query = "insert into files 
-               (filename,bytes,urltext,bus_id) 
-               values 
-               ('$filename','".$iFile['size']."','$urltext','$id');";
-               echo '<p>'.$query.'</p>';
-               if(! $res = $DB->db_exec( $query ) )
-               {
-                       die( pg_errormessage( $res ) );
-               }
+        if ($File) {
+        //     echo '<p>File: '.UP_BASE.$filename.'</p>';
+            $query = "insert into files 
+            (filename,bytes,urltext,bus_id) 
+            values 
+            ('$filename','".$iFile['size']."','$urltext','$id');";
+            echo '<p>'.$query.'</p>';
+            if(! $res = $DB->db_exec( $query ) )
+            {
+                die( pg_errormessage( $res ) );
+            }
+        }
        }
 }
-$res = $DB->db_exec( "ABORT WORK" );
+$res = $DB->db_exec( "COMMIT WORK" );
 /*
 echo '<pre>';
 print_r( $data );
index 9c795ee..8cce484 100755 (executable)
@@ -2,7 +2,7 @@
 require_once '../../setup.phtml';
 require_once BASE.'Toolkit/Image/Server.php';
 $db = new PDO('pgsql:'.CONN_STR);
-define('OLDORG', 'http://www.brewbakers.com/images/uploads/original/');
+define('OLDORG', 'http://www.troutcreek.com/images/original/');
 $db->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
 $sql = "
 SELECT id,image
@@ -37,8 +37,12 @@ if (is_array($data)) {
     $stmt3 = $db->prepare($prep2);
 
     foreach ($data as &$row) {
-        $image_URL = OLDORG.$row['image'];
-        $image = $IServer->imageUpload($image_URL);
+        try {
+            $image_URL = OLDORG.$row['image'];
+            $image = $IServer->imageUpload($image_URL);
+        } catch(Exception $e) {
+            die($e->getMessage());
+        }
         if ($image) {
             try {
                 $stmt3->bindParam(":image", $image, PDO::PARAM_STR);
@@ -63,9 +67,13 @@ if (is_array($data2)) {
         if (preg_match("/^is/",$row2['image'])) {
             continue;
         }
-        $image_URL = OLDORG.$row2['image'];
-        echo '<pre>'.print_r($image_URL, true).'</pre>';
-        $image = $IServer->imageUpload($image_URL);
+        try {
+            $image_URL = OLDORG.$row2['image'];
+            echo '<pre>'.print_r($image_URL, true).'</pre>';
+            $image = $IServer->imageUpload($image_URL);
+        } catch(Exception $e) {
+            die($e->getMessage());
+        }
         if ($image) {
             try {
                 $stmt4->bindParam(":image", $image, PDO::PARAM_STR);
index da8548e..4b194d1 100755 (executable)
 <head>
 <title>{title:h}</title>
 <meta http-equiv="content-type" content="text/html;charset=utf-8">
-<meta name="description" content="{metaTags:h}">
 <meta http-equiv="imagetoolbar" content="no">
 <meta http-equiv="imagetoolbar" content="false">
+<link rel="shortcut icon" href="baseurl/favicon.ico">
 {styles:h}
 {scripts:h}
-<!--[if lte IE 7]>
-<link rel="stylesheet" type="text/css" href="http://devsys2.gaslightmedia.com/demo.gaslightmedia.com/ie7.css">
-<![endif]-->
-<link rel="stylesheet" type="text/css" href="http://devsys2.gaslightmedia.com/demo.gaslightmedia.com/toolbox.css">
+<script type="text/javascript" src="http://app.gaslightmedia.com/libjs/jquery-1.3.2.min.js"></script>
+<script type="text/javascript" src="http://app.gaslightmedia.com/libjs/jquery.innerfade.js"></script>
+<script type="text/javascript"> $(document).ready(
+       function(){
+               $('ul#slideshow').innerfade({
+                       speed: 6000,
+                       timeout: 8000,
+                       type: 'sequence',
+                       containerheight: '250px'
+               });
+       }
+);
+</script>
 </head>
 <body>
-<div id="wrapper">
-       <div id="wrapperInner">
-               <div id="top">
-                       <a href="baseurl/index.php">
-                               <img id="logo" src="baseurl/assets/logo.gif">
-                       </a>
-               </div><!-- /#top -->
-               <div id="nav">
-      <ul>
-        <li><a href="baseurl/index.php">Home</a></li>
-        <li><a href="{glmAssociate}">The GLM Associate</a></li>
-        <li><a href="{contactGLM}">Contact Gaslight Media</a></li>
-        <li><a href="{servicesOffered}">Services Offered</a></li>
-        <li><a href="{aboutGLM}">About Gaslight Media</a></li>
-      </ul>
-               </div><!-- /#nav -->
-               <div id="main">
+       <div id="headerwrap">
+               <div id="header">
+                       <div id="logo">
+                               <a href="#.html">Trout Creek Condominium Resort</a>
+                       </div><!-- /#logo -->
+                       <div id="puremich">
+                               Pure Michigan
+                       </div><!-- /#puremich -->
+                       <div id="reservations">
+                               <a href="reservations">Make A Reservation</a>
+                       </div><!-- /#reservations -->
+               </div><!-- /#header -->
+               <div id="mainnav">
+                       <div id="centeredmenu">
+                               <ul>
+                                       <li><a href="#"  class="active">Home</a></li>
+                                       <li><a href="#">Accommodations</a></li>
+                                       <li><a href="#">Things To Do &amp; See</a></li>
+                                       <li><a href="#">Area Information</a></li>
+                                       <li><a href="#">Specials &amp; Packages</a></li>
+                                       <li><a href="#">Resort Information</a></li>
+                                       <li><a href="#">Guest Information</a></li>
+                                       <li><a href="#">Contact Us</a></li>
+                               </ul>
+                       </div><!-- /#centeredmenu -->
+               </div><!-- /#mainnav -->
+       </div><!-- /#headerwrap -->
+       <div id="contentwrap">
+<!-- content-home on inside only pages -->
+               <div id="content-home">
+                       <div id="rotating">
+                               <ul id="slideshow">
+               <!-- these images will have to be cropped on upload -->
+                                       <li><img src="baseurl/assets/rotating/01.jpg" alt="rotating photo" width="545" height="253"></li>
+                                       <li><img src="baseurl/assets/rotating/02.jpg" alt="rotating photo" width="545" height="253"></li>
+                                       <li><img src="baseurl/assets/rotating/03.jpg" alt="rotating photo" width="545" height="253"></li>
+                                       <li><img src="baseurl/assets/rotating/04.jpg" alt="rotating photo" width="545" height="253"></li>
+                                       <li><img src="baseurl/assets/rotating/05.jpg" alt="rotating photo" width="545" height="253"></li>
+                                       <li><img src="baseurl/assets/rotating/06.jpg" alt="rotating photo" width="545" height="253"></li>
+                               </ul>
+                       </div><!-- /#rotating -->
+                       <div id="category">
+<!-- prototyped with just category content, assume standard toolbox output -->
+                               <h1>Make Trout Creek Your Harbor Springs "Home-Away-From-Home"</h1>
+                               <p>
+                                       Visit us any time of the year for that memorable family vacation, ski trip, golf outing or family reunion.  Enjoy miles of state Snowmobile Trails &amp; next door you will find the Best Skiing in the Midwest at Nubs Nob &amp; Boyne Highlands. Trout Creek offers beautiful, clean &amp; convenient vacation condominiums close to premier golf and sandy beaches.
+                               </p>
+                               <p>
+                                       Enjoy resort amenities while you relax in our casual atmosphere. Just minutes to the charming Lake Michigan resort towns of Harbor Springs and Petoskey. Only 25 minutes to the Mackinac Bridge!
+                               </p>
+                               <p>
+                                       Get away this winter to Northern Michigan! Have fun skiing, snowmobiling and snowboardingwith your family and friends. Make plans for your vacation today. You will be so glad that you did!
+                               </p>
+                               <p>
+                                       A 2009 Summer guest had this to say in a recent email "I just wanted you to know what a wonderful trip we had this year at Trout Creek. Our condo had everything we needed! We really appreciated all of the updates, freshly tended footpaths, the new soccer nets and the stocked fishing ponds. Trout Creek has everything a busy family would need! All we had to do was unpack and start having fun! We have been coming to your resort for several years and it is always the highlight to our summer!" 
+                               </p>
+                       </div><!-- /#category -->
+                       <div id="whatsnew">
+                               <div class="row">
+                                       <div class="one">
+                                               <h3>Headline flagged from Toolbox</h3>
+                                               <img src="baseurl/assets/temp_newsphoto.jpg" alt="#" width="150" height="97">
+                                               Whether you spend the day boating on the Inland Waterway or Little Traverse Bay, it will be a day to remember.
+                                               <a href="#" class="readmore">Read More</a>
+                                       </div><!-- /.one -->
+                                       <div class="two">
+                                               <h3>Headline flagged from Toolbox</h3>
+                                               <img src="baseurl/assets/temp_newsphoto.jpg" alt="#" width="150" height="97">
+                                               Whether you spend the day boating on the Inland Waterway or Little Traverse Bay, it will be a day to remember.
+                                               <a href="#" class="readmore">Read More</a>
+                                       </div><!-- /.two -->
+                               </div><!-- /.row -->
+                               <div class="row">
+                                       <div class="one">
+                                               <h3>Headline flagged from Toolbox</h3>
+                                               <img src="baseurl/assets/temp_newsphoto.jpg" alt="#" width="150" height="97">
+                                               Whether you spend the day boating on the Inland Waterway or Little Traverse Bay, it will be a day to remember.
+                                               <a href="#" class="readmore">Read More</a>
+                                       </div><!-- /.one -->
+                                       <div class="two">
+                                               <h3>Headline flagged from Toolbox</h3>
+                                               <img src="baseurl/assets/temp_newsphoto.jpg" alt="#" width="150" height="97">
+                                               Whether you spend the day boating on the Inland Waterway or Little Traverse Bay, it will be a day to remember.
+                                               <a href="#" class="readmore">Read More</a>
+                                       </div><!-- /.two -->
+                               </div><!-- /#row -->
+                       </div><!-- #/whatsnew -->
+               </div><!-- /#content-home -->
+<!-- rightcol on inside only pages -->
+               <div id="rightcol">
+                       <img src="baseurl/assets/shadowtop-h.jpg" alt="feature items" width="220" height="20">
+                       <div id="specials">
+                               <a href="#.html" title="Specials and Packages">Specials and Packages</a>
+                       </div><!-- /#specials -->
+                       <div id="enews">
+                               <a href="#.html" title="Sign Up for Enews">Sign up for Enews</a>
+                       </div><!-- /#specials -->
+                       <div id="video">
+                               <a href="#.html" title="Watch Video">Experience Trout Creek</a>
+                       </div><!-- /#specials -->
+                       <div id="facebook">
+                               <a href="#.html" title="Become Our Fan">Facebook</a>
+                       </div><!-- /#specials -->
+                       <div id="blog">
+                               <a href="#.html" title="Trout Creek Blog">Trout Creek Blog</a>
+                       </div><!-- /#specials -->
+                       <img src="baseurl/assets/shadowbot-h.jpg" alt="feature items" width="220" height="25">
+               </div><!-- /#rightcol -->
+               <br clear="all"> <!-- this break just for breakout between home and inside pages -->
+               <!-- leftcol on inside only pages -->
+               <div id="leftcol">
+               <!-- sublevel block -->
+                       <div id="subnavwrapper">
+                               <div id="pagetitle">
+                                       <a href="#.html">Page Title</a>
+                                       <div id="pagetitlebot"></div><!-- /#pagetitlebot -->
+                               </div><!-- /#pagetitle -->
+                               <div id="sublevelwrap">
+                                       <ul id="sublevel">
+                                               <li><a href="#">Item one</a>
+                                                       <ul>
+                                                               <li><a href="#">Subitem one</a></li>
+                                                               <li><a href="#">Subitem two</a></li>
+                                                               <li><a href="#">Subitem three</a></li>
+                                                               <li><a href="#">Subitem four</a></li>
+                                                       </ul>
+                                               </li>
+                                               <li><a href="#">Item two</a></li>
+                                               <li><a href="#">Item three</a></li>
+                                               <li><a href="#">Item four</a></li>
+                                       </ul>
+                               </div><!-- /#sublevel -->
+                       </div><!-- /#sublevelwrap -->
+<!-- END sublevel block -->
+                       <div id="features">
+                               <img src="baseurl/assets/shadowtop.jpg" alt="feature items" width="180" height="20">
+                               <div id="specials">
+                                       <a href="#.html" title="Specials and Packages">Specials and Packages</a>
+                               </div><!-- /#specials -->
+                               <div id="enews">
+                                       <a href="#.html" title="Sign Up for Enews">Sign up for Enews</a>
+                               </div><!-- /#specials -->
+                               <div id="video">
+                                       <a href="#.html" title="Watch Video">Experience Trout Creek</a>
+                               </div><!-- /#specials -->
+                               <div id="facebook">
+                                       <a href="#.html" title="Become Our Fan">Facebook</a>
+                               </div><!-- /#specials -->
+                               <div id="blog">
+                                       <a href="#.html" title="Trout Creek Blog">Trout Creek Blog</a>
+                               </div><!-- /#specials -->
+                               <img src="baseurl/assets/shadowbot.jpg" alt="feature items" width="180" height="25">
+                       </div><!-- /#features -->               
+               </div><!-- /#leftcol -->
+               <!-- content on inside only pages -->
+               <div id="content">
                        <div id="toolbox">
-                               {toolboxContent:h}
-                               {if:rotatingImages}
-                                       {rotatingImages:h}
-                               {end:}
+                               <div id="breadcrumb">
+                                       <a href="#.html">Home</a> &nbsp;>&nbsp; <a href="#.html">Main Nav Item</a> &nbsp;>&nbsp; <span class="current">Sublevel Item</span>
+                               </div>
+                               <div id="category">
+                                       <h1>Updatable headline area, category headline</h1>
+                                       <div class="imageright">
+                                               <img src="baseurl/assets/temp_photo.jpg" alt="temporary photo" width="350" height="240">
+                                               <div class="imagecaption">
+                                                       <p>
+                                                               Photo caption area.
+                                                       </p>
+                                               </div><!-- /imagecaption -->
+                                       </div><!-- /imageright -->
+                                       <p>
+                                               Visit us any time of the year for that memorable family vacation, ski trip, golf outing or family reunion.  Enjoy miles of state Snowmobile Trails &amp; next door you will find the Best Skiing in the Midwest at Nubs Nob &amp; Boyne Highlands. Trout Creek offers beautiful, clean &amp; convenient vacation condominiums close to premier golf and sandy beaches.
+                                       </p>
+                                       <p>
+                                               Visit us any time of the year for that memorable family vacation, ski trip, golf outing or family reunion.  Enjoy miles of state Snowmobile Trails &amp; next door you will find the Best Skiing in the Midwest at Nubs Nob &amp; Boyne Highlands. Trout Creek offers beautiful, clean &amp; convenient vacation condominiums close to premier golf and sandy beaches.
+                                       </p>
+                               </div><!-- /#category -->
+                               <div class="listing">
+                                       <h2>Updatable listing headline area</h2>
+                                       <div class="imageleft">
+                                               <img src="baseurl/assets/temp_photo.jpg" alt="temporary photo" width="350" height="240">
+                                               <div class="imagecaption">
+                                                       <p>Photo caption area.</p>
+                                               </div><!-- /imagecaption -->
+                                       </div><!-- /imageleft -->
+                                       <p>
+                                               Visit us any time of the year for that memorable family vacation, ski trip, golf outing or family reunion.  Enjoy miles of state Snowmobile Trails &amp; next door you will find the Best Skiing in the Midwest at Nubs Nob &amp; Boyne Highlands. Trout Creek offers beautiful, clean &amp; convenient vacation condominiums close to premier golf and sandy beaches.
+                                       </p>
+                                       <p>
+                                               Visit us any time of the year for that memorable family vacation, ski trip, golf outing or family reunion.  Enjoy miles of state Snowmobile Trails &amp; next door you will find the Best Skiing in the Midwest at Nubs Nob &amp; Boyne Highlands. Trout Creek offers beautiful, clean &amp; convenient vacation condominiums close to premier golf and sandy beaches.
+                                       </p>
+                               </div><!-- /.listing -->
                        </div><!-- /#toolbox -->
-
-                       <div flexy:if="hasHeadlines" id="headlines">
-                               <h2>Headlines</h2>
-                               {foreach:features,v}
-                                       <div class="headlinesItem">
-                                               <h3>{v[intro]:h}</h3>
-                                               <img>
-                                               <p>
-                                                       {v[feature_intro]:h}
-                                                       <a href="{v[link]:h}">Read More...</a>
-                                               </p>
-                                       </div><!-- /.headlinesItem -->
-                       {end:}
-                       </div><!-- /#headlines -->
-                       <div flexy:if="hasBanner" id="banner">
-                               {bannerAds:h}
-                       </div><!-- /#banner -->
-               </div><!-- /#main -->
-               <div id="column">
-                       <div id="subnav">
-                               {sideNav:h}
-                       </div>
-            <div id="planyourtrip">
-                <p><a href="{tripPlannerUrl}"><span class="trip-list-count">{tripPlannerCount:h}</span> items in your trip</a></p>
-            </div><!-- /#planyourtrip -->
-
-<div id="events" flexy:if="hasEvents">
-       <div id="eventtitle">
-               <a href="{eventsUrl}" title="Events">EVENTS</a>
-       </div><!-- /#eventtitle -->
-       <div id="prev-event">Previous Event</div>
-       <ul class="events-rotator">
-               <li flexy:foreach="events,event">
-                       <p><a href="{event[href]:h}">{event[header]:h}</a></p>
-                       <p class="date">{event[dates]:h}</p>
-                       <p>{event[descr]:h}</p>
-               </li>
-       </ul>
-       <div id="next-event">Next Event</div>
-
-</div><!-- /#events -->
-                       <div id="guide">
-                               <a href="baseurl/request-our-brochure-42/">View Brochure</a>
-                       </div><!-- /#guide -->
-                       <div id="cReservations">
-                               <a href="baseurl/online-reservations-50/">
-                                       Book a Room Now
-                               </a>
-                       </div><!-- /#cReservations -->
-                       <div flexy:if="hasEvents" id="cEvents">
-                               <a flexy:foreach="events,v" href="{v[href]:h}" class="cEventItem">
-                                       <span class="cEventDate">{v[bdate]:h}</span>
-                                       <span class="cEventTitle">{v[header]:h}</span>
-                               </a><!-- /.cEventItem -->
-                       </div><!-- /#cEvents -->
-                       <form id="cNewsletter" action="{newsletterAction}" method="post">
-                               <input id="email-f" name="email" type="text" class="text" value="Your Email Address">
-                               <input type="hidden" name="verify_email" id="email-h">
-                               <input type="hidden" name="mail_ok" value="t">
-                               <input type="hidden" name="contact_type" value="6">
-                               <input type="image" src="baseurl/assets/go.gif" alt="" class="submit">
-                       </form><!-- /#cNewsletter -->
-            <div id="weather" flexy:if="hasWeather">
-            <img src="http://app.gaslightmedia.com/weather/{iconUrlName}" alt="" width="48" height="48">
-            <p class="top">{weather} <span class="temp">{tempF}&#176;</span></p>
-            <p>{location}</p>
-          </div><!-- /#weather -->
-               </div><!-- /#column -->
-               <div id="bottom">
-                       <img src="baseurl/assets/logoGlm.gif" id="logoGlm">
-                       <div id="address">
-                               <span>120 E. Lake Street</span>
-                               <span>Petoskey, MI 49770</span>
-                               <span>231.487.0692 - Phone</span>
-                               <span>231.487.0313 - Fax</span>
-                       </div><!-- /#address -->
-               </div><!-- /#bottom -->
-<div id="glmLoad" style="display:none;position:fixed;top:50%;width:208px;margin:-6px 0 0 -104px;left: 50%;height:13px;z-index: 103;"><img src="http://app.gaslightmedia.com/gallery/loadingAnimation.gif" /></div>
-               <div id="copyright">
-                       Copyright&copy;<?php echo date('Y');?> Gaslight Media, All Rights Reserved.
-               </div><!-- /#copyright -->
-       </div><!-- /#wrapperInner" -->
-</div><!-- /#wrapper -->
+               </div><!-- /#content -->
+       </div><!-- /#contentwrap -->
+       <div id="bottomwrap">
+               <div id="footer">
+                       <p>Trout Creek Condominium Resort 4749 Pleasantview | Harbor Springs, MI 49740</p>
+                       <p>231-526-2148 &bull; 1-800-748-0245 <a href="mailto:info@troutcreek.com" target="_blank">info@troutcreek.com</a>    <a href="#.html">Owners Section</a></p>
+                       <div id="copyright">
+                               Copyright &copy; 2010 Trout Creek All Rights Reserved |  Produced by <a href="http://www.gaslightmedia.com" target="_blank">Gaslight Media</a>
+                       </div><!-- copyright -->
+               </div><!-- /#footer -->
+       </div><!-- /#bottomwrap -->
 </body>
 </html>