PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Dannel   PHP Language Change   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Main example
Class: PHP Language Change
Change application language using arrays of text
Author: By
Last change:
Date: 4 years ago
Size: 1,374 bytes


Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

<html xmlns="">

    text-decoration: none;
    color: white;
    top: 0;
    left: 0;
    position: fixed;
    width: 100%;
    background-color: #666666;
    color: white;
    display: inline-block;
     text-align: center;
     font-size: 2em;
     display: inline;
     margin: 5px;
     background-color: #8D8D8D;
     cursor: pointer;


<?php include 'src/langclass.php'; $obj= new lang;?>

<span class="menu">

<span class="option">
<span class="option">
<?php if($_COOKIE['lang']=='esp'){$l='eng';}else{$l='esp';} ?>
<a href="language.change.php?lang=<?=$l?>"><?=$obj->setLang()['lang']?></a>
<span class="option">
<a><?=$obj->setLang()['edit']?> </a>
<span class="option">
<span class="option">
<h2 align="center"><?=$obj->setLang()['welcome']?></h2>
        <p style="padding-top:110px;">The rest of the page. . .</p>