Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Stona www w dwóch językach., Stona www w dwóch językach.
ALIASpl
post
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 4.12.2006

Ostrzeżenie: (0%)
-----


Witam wszystkich.
Odnotowuje coraz więcej wejsć z zagranicznych portali. Strone mam tylko w języku ojczystym chcizłbym aby był też angielski.
Czy jest jakiś program php zmieniający zawartosć strony czy poprostu dublujemy strony i zmieniamy text?
Poza tym bedzie problem z menu - jest stałe.

www.solarint.pl to strona w której bedzie jezyk ang.

Proszę o pomoc.

Ten post edytował ALIASpl 24.09.2007, 09:57:44
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
ALIASpl
post
Post #2





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 4.12.2006

Ostrzeżenie: (0%)
-----


Czy nie bedzie problemu z text, który jest wczytywany?
Text jest pobierany z bazy MySQL.
  1. <?
  2. function head_1() {
  3. global $EN;
  4. $t .= '<head>';
  5.  
  6. $vs = array(
  7. array("title", "<title>", "</title>"),
  8. array("metaopis", "<meta name=\"Description\" content=\"", "\">"),
  9. array("keywords", "<meta name=\"Keywords\" content=\"", "\">"));
  10.  
  11. foreach($vs as $v) {
  12. $t1 = ($EN['page'][$v[0]]) ? $EN['page'][$v[0]] : $EN['www'][$v[0]];
  13. $t .= $v[1] . stripslashes(zz($t1)) . $v[2] ."\n";
  14. }
  15.  
  16. $t .= '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
  17. <meta http-equiv="content-language" content="pl">
  18. <META name="Author" content="Laventhar Consulting">
  19. <META name="Robots" content="index, follow" >
  20. <META name="revisit-after" content="7 Day" >
  21.  
  22. <meta http-equiv="Content-Style-Type" content="text/css">
  23. <LINK HREF="style.css" TYPE="text/css" REL="stylesheet"> 
  24. <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">';
  25.  
  26. $t .= '
  27. <script language="JavaScript">
  28. <!-- Begin
  29. function movepic(img_name,img_src) {
  30. document[img_name].src=img_src;
  31. }
  32. // End -->
  33. </SCRIPT>';
  34. $t .= '</HEAD>';
  35. return $t;
  36. }
  37.  
  38. function page_top_1() {
  39. $t .= '<tr>';
  40. $t .= '<td width="100%" style="background-image: url('images/head.jpg');" height="130">';
  41. $t .= '<table cellpadding="0" cellspacing="0"> <tr>';
  42. $t .= '<td width=255>';
  43. $t .= '<a href="index.php"><img width="255" height="130" src="images/blank.gif" border="0"></a>';
  44. $t .= '</td>';
  45. $t .= '<td width=366>';
  46. $t .= menu_top_1();
  47. $t .= '</td>';
  48.  
  49. $t .= '<td width="70">';
  50. $t .= '<div align="center" style="padding-top: 20px" class="top">';
  51. $t .= 'katalog<br /><br /> <a href="images/katalog_SolarInt.pdf" class="top" target="_blank"><img border="0" src="images/pdf_icon.gif"></a>';
  52. $t .= '</div> </td>';
  53.  
  54. $t .= '<td width="75">';
  55. $t .= '<div align="center" style="padding-top: 20px" class="top">';
  56. $t .= 'Firma w TV<br /><br /> <a href="index.php?n=121" class="top"><img border="0" src="images/wmp.gif"></a>';
  57. $t .= '</div> </td>';
  58.  
  59.  
  60. $t .= '</tr></table>';
  61. $t .= '</td>';
  62. $t .= '</tr>';
  63. return $t;
  64. }
  65.  
  66. function menu_top_1() {
  67. global $EN;
  68. $t .= '<div align="center" style="padding-top:25px; line-height:30px;">';
  69. if ($EN['menu_top']) foreach($EN['menu_top'] as $el) if ($el['lang']) {
  70. $class = ($el['id'] == $_GET['n']) ? "top1" : "top";
  71. $t1[] = '<a href="index.php?n=' . $el['id'] . '" class="'.$class.'">'. zz($el['lang']). '</a>';
  72. }
  73. $t .= join("       ", $t1);
  74. $t .= '</div>';
  75. return $t;
  76. }
  77.  
  78. function menu_left_1() {
  79. global $EN;
  80. $srcs = array(1 => "menu1.jpg", 2 => "menu8.jpg", 3 => "menu7.jpg", 4 => "menu10.jpg", 5 => "menu11.jpg", 6 => "menu12.jpg", 7 => "menu13.jpg" );
  81. $srcs1 = array(1 => "menu1b.jpg", 2 => "menu8b.jpg", 3 => "menu7b.jpg", 4 => "menu10b.jpg", 5 => "menu11b.jpg", 6 => "menu12b.jpg", 7 => "menu13b.jpg");
  82. $t .= '<table width="200" cellpadding=0 cellspacing=0>';
  83. if ($EN['menu_dzial1']) foreach($EN['menu_dzial1'] as $el) if ($el['lang']) {
  84. $i++;
  85. if ($i <= 7) {
  86. $t1 = '<tr>';
  87. $t1 .= '<td width="110" style="text-align: left" class="middle">';
  88. $class = ($el['id'] == $_GET['n']) ? "left1" : "left";
  89. $t1 .= '<a href="index.php?n=' . $el['id'] . '" class="'.$class.'">'. zz($el['lang']). ' </a>';
  90. $t1 .= '</td>';
  91. $t1 .= '<td width="90" align=right>';
  92. $src = ($el['id'] == $_GET['n']) ? $srcs1[$i] : $srcs[$i];
  93. $t1 .= '<a href="index.php?n=' . $el['id'] . '" onmouseover="movepic('img'.$i.'','images/'.$srcs1[$i].'')" onmouseout="movepic('img'.$i.'','images/'.$src.'')">';
  94.  
  95. $t1 .= '<img width=80 height=80 border="0" src="images/'.$src.'" name="img'.$i.'"></a>';
  96. $t1 .= '</td>';
  97. $t1 .= '</tr>';
  98. $t2[] = $t1;
  99. }
  100. }
  101. if ($t2) {
  102. $t1 = '<tr><td height=5></td></tr><tr><td colspan="2" style="background-image: url('images/line.gif'); margin-top:5px" width="100%" height="1"> </td></tr><tr><td height=5></td></tr>';
  103. $t .= join($t1, $t2);
  104. }
  105. $t .= '</table>';
  106. return $t;
  107. }
  108.  
  109. ?>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 10.10.2025 - 15:52