You are here: Re: Too match text I think. « All PHP « IT news, forums, messages
Re: Too match text I think.

Posted by Frits van Leeuwen on 10/18/06 07:40

That's mutch nicer and better. That's the way to help. Thanks.

> 1. you have to separate style from you html code - don't listen to steve
(he
> is right, you can use both, but there is no sense - your code should be
> clean)
Ther are many ways to program a site. steve tells thing what are usefull,
and you are als doing so. I have to choose.

> 2. cookies is not good idea as i wrote at the begining - some1 can turn
off
> this option - session is much better - works always
I use 1 cookie. I need one. And it's not a problem anymore. Cookies are
working now. It's only for visitor who look many times from one pc. Where a
cookie not is working, I want to do it like your way, so I need to make a
combination. Perhaps I need to check it.

> 3. make clean layout for example
I'll take a look to this. I have already chenged my html-code. I had take a
look to css and it is usefull. Now I use it. The html-code looks mutch
better now.
Thanks.

> session_start();
>
> $languages = array(
> 1 => 'en',
> 2 => 'nl',
> 3 => 'default'
> }
>
> if(!isset($_SESSION['ln'])){
> $_SESSION['ln'] = $languages[3];
> }
>
> if(isset($_GET['ln']) && in_array($languages)){
> $_SESSION['ln'] = $_GET['ln'];
> }
>
> unset($languages[array_search($_SESSION['ln'],$languages)]);
>
> <html>
> <head>
> <title>Begin Leeuwendeel.info</title>
> </head>
> <body>
> <div>
> <table id="table1">
> <tr>
>
> foreach($languages as $lang){
> if(isset($langData[$lang]['info'])) print "
> <td>".$langData[$lang]['info']."</td>";
> else print "<td>underconsturction</td>";
> }
>
> </tr>
> <tr>
>
> foreach($languages as $lang){
> if(isset($langData[$lang][alt])) print ' <td><a
> href="/language.php?ln='.$lang.'"><img src="knoppen/vlag'.$lang.'.jpg"
> alt="'.$langData[$lang]['alt'].'"></a></td>';
> else print "<td>underconsturction</td>";
> }
>
> </tr>
> </table>
> </div>
> <p>Laatste wijziging / Last change:
> <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d-%m-%Y"
> startspan -->11-10-2006<!--webbot bot="Timestamp" i-checksum="12558"
> endspan --></p>
> </body>
> </html>
>
>
> DONE
>
> ofc you should to use template - there where is php you can set {info}
{alt}
> and later you can replace it with value, try to use classes if you can,
make
> requestMaper for handle PGC, make class for handle language and make
printer
> for show parsed php code into webbrower
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl
>
> 2be || !2be $this => mysql_query();
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация