[Phphtmllib-devel] SF.net SVN: phphtmllib:[3289] trunk/open2300/lib/modules/home/page/HomePage .inc
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2009-11-24 06:06:57
|
Revision: 3289 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3289&view=rev Author: hemna Date: 2009-11-24 06:06:48 +0000 (Tue, 24 Nov 2009) Log Message: ----------- updated layout to wrap with title Modified Paths: -------------- trunk/open2300/lib/modules/home/page/HomePage.inc Modified: trunk/open2300/lib/modules/home/page/HomePage.inc =================================================================== --- trunk/open2300/lib/modules/home/page/HomePage.inc 2009-11-24 06:06:14 UTC (rev 3288) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2009-11-24 06:06:48 UTC (rev 3289) @@ -217,16 +217,29 @@ 480,320); $radar_img->set_id('idRadarImg'); - + $this->add_js_link('/js/lightview/lightview.js'); $this->add_css_link('/css/lightview/lightview.css'); + + $curdate = date("Ymd"); + + $cam_img = new IMGtag(array('id' => 'idCamImg', 'src' => 'cam/cam.jpg', 'width' => '480', height => '320')); + $cam_img_div = new DIVtag(array('id' => 'idCamImgDiv'), $cam_img); - $cam_img = new IMGtag(array('id' => 'idCam', 'src' => 'cam/cam.jpg', 'width' => '480', height => '320')); - $cam_href = new Atag(array('href' => '/video/player.swf?file=/video/20091123/timelapse.flv&start=1', 'class' => 'lightview', - 'rel' => 'flash', 'title' => 'TimeLapse :: Test :: width:640, height:480'), - $cam_img); - $cam_href->set_collapse(true); - $cam_div = new DIVtag(array('id' => 'idCamDiv', 'style' => 'padding-bottom:10px;margin-bottom:5px;'), $cam_href); + + $cam_title_div = new DIVtag(array('id' => 'idCamTitle', 'class' => 'camtitle'), 'Cam Updates from 4am to 10pm PST', ' '); + + //only show the flash overlay if we + //have today's video file on disk + if (file_exists("/home/waboring/wx.hemna.com/htdocs/video/".$curdate."/timelapse.flv")) { + $cam_href = new Atag(array('href' => '/video/player.swf?file=/video/20091123/timelapse.flv&start=1', 'class' => 'lightview', + 'rel' => 'flash', 'title' => 'TimeLapse :: Test :: width:640, height:480'), + "View Timelapse Video"); + $cam_href->set_collapse(true); + $cam_title_div->add($cam_href); + } + + $cam_div = new DIVtag(array('id' => 'idCamDiv', 'style' => 'padding-bottom:10px;margin-bottom:5px;'), $cam_title_div, $cam_img_div); $radar_div = new DIVtag(array('id' => 'idRadardiv'),$radar_img); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |