Changeset 50 for trunk/dictionary.php


Ignore:
Timestamp:
Jan 30, 2009, 11:31:01 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Správné zobrazování kódování znaků v jiných prohlížečích než firefox.
  • Upraveno: XHTML 1.0 a grafický styl okna Slovníček.
  • Opraveno: Chybné formulářové odkazy při zobrazování seznamu překladů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dictionary.php

    r49 r50  
    5050}
    5151
    52 echo('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    53 <HTML>
    54 <HEAD>
    55   <META http-equiv="Content-Language" content="cs">
    56   <META http-equiv="Content-Type" content="text/html; charset='.$Config['Web']['Charset'].'">
    57   <META HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">
    58   <link rel="SHORTCUT ICON" href="/images/favicon.ico">
    59   <TITLE>Projekt překládání textů do WoW</TITLE>
    60 </HEAD> 
    61   <body>');
     52echo('<?xml version="1.0" encoding="'.$Config['Web']['Charset'].'"?>
     53<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     54<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     55<head>
     56<meta http-equiv="content-type" content="text/html; charset=utf-8" />
     57<link rel="stylesheet" href="'.$Config['Web']['BaseURL'].'style.css" type="text/css" media="all" />
     58<script type="text/javascript" src="'.$Config['Web']['BaseURL'].'global.js"></script>
     59<link rel="SHORTCUT ICON" href="'.$Config['Web']['BaseURL'].'images/favicon.ico" />
     60<title>Projekt překládání textů WoW - slovníček</title>
     61</head>
     62<body>');
    6263 
    6364if(array_key_exists('insert', $_GET))
    6465{
    6566  echo('<form action="dictionary.php" method="post">
    66           <input type="text" name="AJWord"> Anglické slovo<br>
    67           <input type="text" name="CZWord"> České slovo<br>
    68           <input type="text" name="description">  Popis<br>
     67          <input type="text" name="AJWord"> Anglické slovo<br />
     68          <input type="text" name="CZWord"> České slovo<br />
     69          <input type="text" name="description">  Popis<br />
    6970          <input type="submit" value="Uložit">
    7071          </form>');   
     
    8586}
    8687
    87 echo('<table border="1" width="100%">');
     88echo('<form action="dictionary.php" method="get">
     89<table border="1" width="100%">');
    8890 
    8991if(array_key_exists('search', $_GET))
     
    9597}
    9698       
    97 echo('<tr><td><form action="dictionary.php" method="get">
    98   <input type="text" value="'.$Search.'" name="search" size="30">
    99   <input type="submit" value="Vyhledat">');
     99echo('<tr><td>
     100  <input type="text" value="'.$Search.'" name="search" size="30" />
     101  <input type="submit" value="Vyhledat" />');
    100102if(Licence(0))
    101103  echo(' <a href="dictionary.php?insert">Vložit slovo</a>');
    102104           
    103 echo('</form></td></tr>');
     105echo('</td></tr>');
    104106echo('<tr><td>
    105 <p style="  overflow: auto;  width: 100%; height: '.$WinWidth.'px;">');
     107<div style="  overflow: auto;  width: 100%; height: '.$WinWidth.'px;">');
    106108//todo select   
    107109if($Search <> '')
     
    126128echo('</table>'); 
    127129
    128 echo('</td></tr>');
     130echo('</div></td></tr>');
    129131
    130 echo('</table></body>');
     132echo('</table></form></body></html>');
    131133
    132134?>
Note: See TracChangeset for help on using the changeset viewer.