Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index



On 12-02-11 21:08, Florian Effenberger [via Document Foundation Mail
Archive] wrote:
Hallo,

for the Foundation fundraising, I'd also like a countdown script to the
website, counting down remaining days and/or missing money.

Anyone has such a script or can write one so that it can be integrated
in Silverstripe? :-)

Thanks,
Florian


i dont know about integrating this in SilverStripe, but this PHP and
SilverStripe is also PHP -based...

This script shows days/hours/mins/seconds to the end of februari 2011

<?php
        // mktime ( Hours, Mins, Secs, Month, Day, Year )
        $to = mktime(23, 59, 59, 2, 28, 2011);
        $now = time();
        $interval = $to - $now;

        $days = floor ( $interval /  (24*3600) );
        $h = floor( ($interval-$days*24*3600) / 3600 );
        $m = floor( ($interval-$days*24*3600-$h*3600) / 60 );
        $s = ($interval-$days*24*3600-$h*3600-$m*60) ;
        echo "$days days, $h hours, $m minutes and $s seconds left......\n";
?>



-----
Windows7 / LibreOffice  3.3 330m19(Build:6)
-- 
View this message in context: 
http://nabble.documentfoundation.org/countdown-script-tp2482059p2482245.html
Sent from the Website mailing list archive at Nabble.com.

-- 
Unsubscribe instructions: E-mail to website+help@libreoffice.org
List archive: http://listarchives.libreoffice.org/www/website/
*** All posts to this list are publicly archived for eternity ***

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.