From: Steve Sutton Date: Fri, 5 Feb 2010 21:02:07 +0000 (+0000) Subject: updates X-Git-Tag: v1.0.0~124 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=174c64efa949a0215a3bda062f39d83c1d18b05d;p=web%2FTroutCreek.git updates --- diff --git a/Toolkit/Page.php b/Toolkit/Page.php index 49ebe14..9b0ed48 100755 --- a/Toolkit/Page.php +++ b/Toolkit/Page.php @@ -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); diff --git a/admin/Toolbox/convert_files.php b/admin/Toolbox/convert_files.php index 26c751d..d896b5a 100644 --- a/admin/Toolbox/convert_files.php +++ b/admin/Toolbox/convert_files.php @@ -41,19 +41,21 @@ if( is_array( $data ) ) $filename = $row['1']; $urltext = $row['2']; $iFile = stat( UP_BASE.$filename ); - // echo '

File: '.UP_BASE.$filename.'

'; - $query = "insert into files - (filename,bytes,urltext,bus_id) - values - ('$filename','".$iFile['size']."','$urltext','$id');"; - echo '

'.$query.'

'; - if(! $res = $DB->db_exec( $query ) ) - { - die( pg_errormessage( $res ) ); - } + if ($File) { + // echo '

File: '.UP_BASE.$filename.'

'; + $query = "insert into files + (filename,bytes,urltext,bus_id) + values + ('$filename','".$iFile['size']."','$urltext','$id');"; + echo '

'.$query.'

'; + if(! $res = $DB->db_exec( $query ) ) + { + die( pg_errormessage( $res ) ); + } + } } } -$res = $DB->db_exec( "ABORT WORK" ); +$res = $DB->db_exec( "COMMIT WORK" ); /* echo '
';
 print_r( $data );
diff --git a/admin/Toolbox/export-images-is0.php b/admin/Toolbox/export-images-is0.php
index 9c795ee..8cce484 100755
--- a/admin/Toolbox/export-images-is0.php
+++ b/admin/Toolbox/export-images-is0.php
@@ -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 '
'.print_r($image_URL, true).'
'; - $image = $IServer->imageUpload($image_URL); + try { + $image_URL = OLDORG.$row2['image']; + echo '
'.print_r($image_URL, true).'
'; + $image = $IServer->imageUpload($image_URL); + } catch(Exception $e) { + die($e->getMessage()); + } if ($image) { try { $stmt4->bindParam(":image", $image, PDO::PARAM_STR); diff --git a/templates/template.html b/templates/template.html index da8548e..4b194d1 100755 --- a/templates/template.html +++ b/templates/template.html @@ -4,122 +4,229 @@ {title:h} - + {styles:h} {scripts:h} - - + + + -
-
-
- - - -
- -
+ +
+ +
+
+
    + +
  • rotating photo
  • +
  • rotating photo
  • +
  • rotating photo
  • +
  • rotating photo
  • +
  • rotating photo
  • +
  • rotating photo
  • +
+
+
+ +

Make Trout Creek Your Harbor Springs "Home-Away-From-Home"

+

+ 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 & next door you will find the Best Skiing in the Midwest at Nubs Nob & Boyne Highlands. Trout Creek offers beautiful, clean & convenient vacation condominiums close to premier golf and sandy beaches. +

+

+ 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! +

+

+ 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! +

+

+ 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!" +

+
+
+
+
+

Headline flagged from Toolbox

+ # + Whether you spend the day boating on the Inland Waterway or Little Traverse Bay, it will be a day to remember. + Read More +
+
+

Headline flagged from Toolbox

+ # + Whether you spend the day boating on the Inland Waterway or Little Traverse Bay, it will be a day to remember. + Read More +
+
+
+
+

Headline flagged from Toolbox

+ # + Whether you spend the day boating on the Inland Waterway or Little Traverse Bay, it will be a day to remember. + Read More +
+
+

Headline flagged from Toolbox

+ # + Whether you spend the day boating on the Inland Waterway or Little Traverse Bay, it will be a day to remember. + Read More +
+
+
+
+ + +
+ + + +
- {toolboxContent:h} - {if:rotatingImages} - {rotatingImages:h} - {end:} + +
+

Updatable headline area, category headline

+
+ temporary photo +
+

+ Photo caption area. +

+
+
+

+ 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 & next door you will find the Best Skiing in the Midwest at Nubs Nob & Boyne Highlands. Trout Creek offers beautiful, clean & convenient vacation condominiums close to premier golf and sandy beaches. +

+

+ 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 & next door you will find the Best Skiing in the Midwest at Nubs Nob & Boyne Highlands. Trout Creek offers beautiful, clean & convenient vacation condominiums close to premier golf and sandy beaches. +

+
+
+

Updatable listing headline area

+
+ temporary photo +
+

Photo caption area.

+
+
+

+ 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 & next door you will find the Best Skiing in the Midwest at Nubs Nob & Boyne Highlands. Trout Creek offers beautiful, clean & convenient vacation condominiums close to premier golf and sandy beaches. +

+

+ 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 & next door you will find the Best Skiing in the Midwest at Nubs Nob & Boyne Highlands. Trout Creek offers beautiful, clean & convenient vacation condominiums close to premier golf and sandy beaches. +

+
- -
-

Headlines

- {foreach:features,v} -
-

{v[intro]:h}

- -

- {v[feature_intro]:h} - Read More... -

-
- {end:} -
- -
-
- - - -
-
- EVENTS -
-
Previous Event
- -
Next Event
- -
- - - -
- - - - - -
-
- -

{weather} {tempF}°

-

{location}

-
-
-
- -
- 120 E. Lake Street - Petoskey, MI 49770 - 231.487.0692 - Phone - 231.487.0313 - Fax -
-
- - -
-
+
+
+
+ +