[Phphtmllib-devel] SF.net SVN: phphtmllib:[3296] trunk/open2300/lib/modules/home/page/HomePage .inc
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2009-11-25 17:43:49
|
Revision: 3296 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3296&view=rev Author: hemna Date: 2009-11-25 17:43:41 +0000 (Wed, 25 Nov 2009) Log Message: ----------- added flash file time update 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 23:58:51 UTC (rev 3295) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2009-11-25 17:43:41 UTC (rev 3296) @@ -227,18 +227,21 @@ $cam_img_div = new DIVtag(array('id' => 'idCamImgDiv'), $cam_img); - $cam_title_div = new DIVtag(array('id' => 'idCamTitle', 'class' => 'camtitle'), 'Cam Updates from 4am to 10pm PST', - ' '); + $cam_title_div = new DIVtag(array('id' => 'idCamTitle', 'class' => 'camtitle'), '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")) { + $filename = "/home/waboring/wx.hemna.com/htdocs/video/".$curdate."/timelapse.flv"; + if (file_exists($filename)) { $cam_href = new Atag(array('href' => '/video/player.swf?file=/video/'.$curdate.'/timelapse.flv&autostart=1', 'class' => 'lightview', 'rel' => 'flash', 'title' => 'TimeLapse :: '.$curdate.' :: width:640, height:480'), "View Timelapse Video"); $cam_href->set_collapse(true); $cam_title_div->add($cam_href); - $cam_title_div->add(" every 30 min"); + $filetime = date ("H:i:s", filemtime($filename)); + $cam_title_div->add(" "); + $cam_title_div->add(new SPANtag(array('style' => 'font-size: .7em'), "(Updated ".$filetime." )")); } $cam_div = new DIVtag(array('id' => 'idCamDiv', 'style' => 'padding-bottom:10px;margin-bottom:5px;'), $cam_title_div, $cam_img_div); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |