Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Asokan Sivasubramanian  >  Language Convert class  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Language Convert class
Let users choose site idiom
Author: By
Last change:
Date: 5 years ago
Size: 3,189 bytes
 

Contents

Class file image Download
<?PHP
    
/**
    * This is the the Test File for Language_Convert.clss.php. It shows how to create and used
    * the website based on Language
    * @package Language_Convert_Class
    * @subpackage Language_Convert
    * @author Asokan Sivasubramanian <asokanstar@gmail.com>
    * @version 1.0
    */
?>
<html>
 <head>
   <meta http-equiv="Content-Language" content="en-us">
   <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
   <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
   <meta name="ProgId" content="FrontPage.Editor.Document">
<title>Language Conversion</title>
<style>
<!--
.link1:link {
    font-family: Arial;
    font-size: 11px;
    color: #800000;
    text-decoration: none;
}
.link1:visited {
    font-family: Arial;
    font-size: 11px;
    color: #800000;
    text-decoration: none;
}
.link1:hover {
    font-family: Arial;
    font-size: 11px;
    color: #1E90FF;
    text-decoration: none;
}
.link1:active {
    font-family: Arial;
    font-size: 11px;
    color: #800000;
    text-decoration: none;
}
.pipeline {
    font-family: Arial;
    font-size: 11px;
    color: #000000;
}
.text {
    font-family: Arial;
    font-size: 13px;
    color: #297AAF;
}
-->
</style>
</head>

<body topmargin="1" bgcolor="#D4D4D4">
<br />
<br />

<?php

    
#Include Class Files
    
include_once('Language_Convert.class.php');
    
    
#Object creation for Language
    
$langObj = new Language;
    
    
#Session Initiate 
    
$langObj->get_session_handler();

    
#Language Conversion for session Language
    
$lang $langObj->language_convert();
    
?>

<div align="center">
 <center>
    <table border="0" width="500"  cellspacing="0" cellpadding="0">
        <tr>
            <td width="100%" valign="top" bgcolor="#FFFFFF">
            
                <table border="0" width="100%" cellspacing="0" cellpadding="0" height="300" >
                    <tr>
                        <td  align="right" colspan="3" >
                            <? echo $langObj->get_language_list() ?>
                        </td>
                    </tr>
                    <tr><td colspan="3">&nbsp;</td></tr>
                    <tr>
                        <td colspan="3" class="text">&nbsp;&nbsp;&nbsp;<?php echo $lang[HELLO?></td>
                    </tr>
                    <tr>
                        <td width="10%"></td>
                        <td width="40%" class="text"><?php echo $lang['WELCOME'?></td>
                        <td width="40%"></td>
                    </tr>
                    <tr><td colspan="3">&nbsp;</td></tr>
                    <tr>
                        <td width="60%" colspan="2"></td>
                        <td width="40%" class="text"><?php echo $lang['THANKS'?></td>
                    </tr>
                    <tr>
                        <td width="40%" colspan="2"></td>
                        <td width="40%" class="text">&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $lang['DEVELOPER'?></td>
                    </tr>
                </table>
                
            </td>
        </tr>
    </table>
 </center>
</div>


</body>

</html>