Welcome Guest ( Log In | Register)



3 Pages V   1 2 3 >  
Closed TopicStart new topic
> World Time Wap Page, Page that tells many times ;-)
Rating 5 V
wappy
post Jul 4 2006, 08:38 PM
Post #1


Premium Member
********

Group: Members
Posts: 164
Joined: 2-July 06
From: England
Member No.: 25,974



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
post Jul 5 2006, 05:27 PM
Post #2


Newbie
*

Group: Members
Posts: 9
Joined: 5-July 06
Member No.: 26,116



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
post Jul 6 2006, 09:50 AM
Post #3


Premium Member
********

Group: Members
Posts: 164
Joined: 2-July 06
From: England
Member No.: 25,974



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
post Jul 6 2006, 09:56 AM
Post #4


Super Member
*********

Group: Members
Posts: 245
Joined: 11-June 05
From: india-mumbai
Member No.: 8,095



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
post Jul 31 2006, 03:45 PM
Post #5


Premium Member
********

Group: Members
Posts: 183
Joined: 24-July 06
From: Cape Town
Member No.: 27,194



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
post Aug 1 2006, 05:26 AM
Post #6


Premium Member
********

Group: Members
Posts: 164
Joined: 2-July 06
From: England
Member No.: 25,974



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
post Aug 1 2006, 07:47 AM
Post #7


Newbie [Level 1]
*

Group: Members
Posts: 12
Joined: 31-July 06
Member No.: 27,609



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
post Aug 12 2006, 12:23 AM
Post #8


Premium Member
********

Group: Members
Posts: 183
Joined: 24-July 06
From: Cape Town
Member No.: 27,194



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