IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
3 Pages V   1 2 3 >  
Closed TopicStart new topic

World Time Wap Page

, Page that tells many times ;-)


Rating 5 V
wappy
no avatar
Premium Member
********
Group: Members
Posts: 164
Joined: 2-July 06
From: England
Member No.: 25,974



Post #1 post Jul 4 2006, 08:38 PM
Here is a page created for wap that tells many different times around the world....
CODE

<?php
header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
echo "<!-- wappyTIME v1.00 -->\n";
echo "<!-- Copyright (C) wappyCULT 2006-2007 -->\n";

echo "<wml>";
echo "<card title=\"wappyTIME\">";
echo "<p>\n";
echo "<small>\n";

global $timezone;
        $valandos=date("H")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "London - $data<br/>";
$timezone=+1;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "Berlin - $data<br/>";

$timezone=+2;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "Kiew - $data<br/>";

$timezone=+3;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "Moscow - $data<br/>";

$timezone=+7;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "Hong Kong - $data<br/>";

$timezone=+8;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "Tokio - $data<br/>";

$timezone=+9;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "Sydney - $data<br/>";

$timezone=+19;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "New York - $data<br/>";

$timezone=-10;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "Alaska/Hawaii - $data<br/>";

echo "---<br/><a href=\"index.php\">wappyCULT</a><br/>---<br/>© wappyTIME 2006-2007";

echo "</small>\n";
echo "</p>";
echo "</card>";
echo "</wml>";
?>

Go to the top of the page
+Quote Post
dj.dance
no avatar
Newbie
*
Group: Members
Posts: 9
Joined: 5-July 06
Member No.: 26,116



Post #2 post Jul 5 2006, 05:27 PM
this one is better

CODE

<?php
header("Content-type: text/vnd.wap.wml");
header("display_errors=0");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">";
echo "<!-- eat *BLEEP* mother*BLEEP*ers -->\n";

$New_Time = time() + (0 * 60 * 60);
$time=date("H:i",$New_Time);
echo "<wml>";
?>
<card id="card1" title="World time">
<p align="center">
<small>
<b>World Wide Time</b><br/>
<?
$gerNew_Time = time() + (0 * 60 * 60);
$gertime=date("H:i",$gerNew_Time);
echo "<br/>Berlin, Paris, Rome, Johhanesburg: $gertime";
$helNew_Time = time() + (1 * 60 * 60);
$heltime=date("H:i",$helNew_Time);
echo "<br/>Helsinki, Ankara, Capetown: $heltime";
$mosNew_Time = time() + (2 * 60 * 60);
$mostime=date("H:i",$mosNew_Time);
echo "<br/>Moscow, St. Petersburg, Baghdad: $mostime";
$banNew_Time = time() + (6 * 60 * 60);
$bantime=date("H:i",$banNew_Time);
echo "<br/>Bangkok, Jakarta: $bantime";
$bjinNew_Time = time() + (7 * 60 * 60);
$bjintime=date("H:i",$bjinNew_Time);
echo "<br/>Beijing: $bjintime";
$tokNew_Time = time() + (8 * 60 * 60);
$toktime=date("H:i",$tokNew_Time);
echo "<br/>Tokyo, Seoul: $toktime";
$sydNew_Time = time() + (9 * 60 * 60);
$sydtime=date("H:i",$sydNew_Time);
echo "<br/>Sydney: $sydtime";
$welNew_Time = time() + (11 * 60 * 60);
$weltime=date("H:i",$welNew_Time);
echo "<br/>Wellington, Auckland: $weltime";
$alsNew_Time = time() + (14 * 60 * 60);
$alstime=date("H:i",$alsNew_Time);
echo "<br/>Alaska: $alstime";
$seaNew_Time = time() + (15 * 60 * 60);
$seatime=date("H:i",$seaNew_Time);
echo "<br/>Seattle, San Fransisco, LA: $seatime";
$slcNew_Time = time() + (16 * 60 * 60);
$slctime=date("H:i",$slcNew_Time);
echo "<br/>SaltLake City, Phoenix, LA: $slctime";
$chicNew_Time = time() + (17 * 60 * 60);
$chictime=date("H:i",$chicNew_Time);
echo "<br/>Chicago, Dallas, Mexico LA: $chictime";
$nycNew_Time = time() + (18 * 60 * 60);
$nyctime=date("H:i",$nycNew_Time);
echo "<br/>New York, Miami, Quebec: $nyctime";
$bNew_Time = time() + (20 * 60 * 60);
$btime=date("H:i",$bNew_Time);
echo "<br/>Beunos Aires, Brasilia: $btime";
$hereNew_Time = time() + (23 * 60 * 60);
$heretime=date("H:i",$hereNew_Time);
echo "<br/>London, Dublin, Lisbon: $heretime";

echo "<br/>";


?>
</small>
</p>
</card>
</wml>


biggrin.gif

This post has been edited by dj.dance: Jul 5 2006, 05:28 PM
Go to the top of the page
+Quote Post
wappy
no avatar
Premium Member
********
Group: Members
Posts: 164
Joined: 2-July 06
From: England
Member No.: 25,974



Post #3 post Jul 6 2006, 09:50 AM
Very nice, i like the extra times but think its a little clutted on smaller phones ;-)
Go to the top of the page
+Quote Post
apurva
no avatar
Super Member
*********
Group: Members
Posts: 245
Joined: 11-June 05
From: india-mumbai
Member No.: 8,095



Post #4 post Jul 6 2006, 09:56 AM
according to me dj has posted the better one..
btw are u the same one of neocult.com? ben?
Go to the top of the page
+Quote Post
juice
no avatar
Premium Member
********
Group: Members
Posts: 183
Joined: 24-July 06
From: Cape Town
Member No.: 27,194



Post #5 post Jul 31 2006, 03:45 PM
Wappy's script is a bit easier on the eyes and easier to change, thanx for the script wappy smile.gif
Go to the top of the page
+Quote Post
wappy
no avatar
Premium Member
********
Group: Members
Posts: 164
Joined: 2-July 06
From: England
Member No.: 25,974



Post #6 post Aug 1 2006, 05:26 AM
no problem juice / and no im not ben from that site im chris from wappyCULT i found my neo cult logo on google image search. / yes dj.dance would post a better one if you look at it its my one updated. Dj.dance is my little stalker. Has hacked a few of my previous sites and goes round following me copying/and trying to out do my work all the time. You will notice i didn't bite at any of this here so he went away. And as juice says it looks messy, take a look with your mobile not a pc. Screen layout and fitting is very important when working with wap sites. My standard is to make sure it looks tidy on a series 40 nokia and it will look fine then on most phones. To me it looks like my little friend used a bigger nokia s60 screen as standard resulting in it looking messy on many phones ok :-)
---
infact i will tell you who wrote it first: toddy (a good friend) from toddywap.net (wap) wrote it for me a long time ago as back then it confused me.

This post has been edited by wappy: Aug 1 2006, 05:34 AM
Go to the top of the page
+Quote Post
toddy
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 12
Joined: 31-July 06
Member No.: 27,609



Post #7 post Aug 1 2006, 07:47 AM
Lol ye I wrote it, but I wrote it when on PC so hard to get layout, but it was just to give the general idea of the code!
Go to the top of the page
+Quote Post
juice
no avatar
Premium Member
********
Group: Members
Posts: 183
Joined: 24-July 06
From: Cape Town
Member No.: 27,194



Post #8 post Aug 12 2006, 12:23 AM
QUOTE
Parse error: syntax error, unexpected T_VARIABLE in /public_html/time.php on line 13

I don't know whats going on? huh.gif
Go to the top of the page
+Quote Post
FirefoxRocks
no avatar
Super Member
*********
Group: Members
Posts: 273
Joined: 14-April 06
From: Ontario, Canada, North America, Planet Earth
Member No.: 21,845
myCENT:82.22



Post #9 post Aug 12 2006, 04:47 PM
Pretty nice WAP. I think it will be too cluttered on a cell phone to read the data. By the way, I don't have a cell phone smile.gif
Go to the top of the page
+Quote Post
juice
no avatar
Premium Member
********
Group: Members
Posts: 183
Joined: 24-July 06
From: Cape Town
Member No.: 27,194



Post #10 post Aug 13 2006, 08:37 PM
It would be nice if some one would help with this world time page because I realy prefer wappy's one to dj's. So please wont some one help? blink.gif
Go to the top of the page
+Quote Post

3 Pages V   1 2 3 >
Closed TopicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new   44 chelcy 6,272 29th December 2008 - 02:33 PM
Last post by: surbjit
No new 19 templest 1,505 16th August 2004 - 08:19 AM
Last post by: psp-playstation
No New Posts   6 galexcd 612 27th June 2007 - 03:56 PM
Last post by: alex7h3pr0gr4m3r
No New Posts   13 Panzer 1,133 11th July 2006 - 11:52 AM
Last post by: aaronajimal
No New Posts   5 saitunes 330 26th September 2008 - 12:35 AM
Last post by: jlhaslip
No new 193 nosoup4u 52,711 6th January 2009 - 07:43 AM
Last post by: Tks
No New Posts 2 satyaparija 755 28th January 2008 - 05:57 PM
Last post by: musicmaza
No new   15 -prodigy- 1,174 15th September 2004 - 08:14 AM
Last post by: -prodigy-
No New Posts 1 NuHoaXuLa 586 27th August 2004 - 05:43 PM
Last post by: odomike
No New Posts 0 synderoxide 736 8th September 2004 - 04:53 AM
Last post by: synderoxide
No New Posts