PHP Classes

File: _enhancedTab1.php

Recommend this page to a friend!
  Classes of Filippo Toso   Enhanched UI   _enhancedTab1.php   Download  
File: _enhancedTab1.php
Role: Example script
Content type: text/plain
Description: his example shows how to use the enhancedTab class and its method getUpdateTab.
Class: Enhanched UI
A class library for an enhanced User Interface
Author: By
Last change:
Date: 19 years ago
Size: 2,434 bytes
 

Contents

Class file image Download
<?php
   
/**
    * enhancedTab Example 1
    *
    * This example shows how to use the enhancedTab class and its method {@link enhancedTab::getUpdateTab enhancedTab::getUpdateTab}
    * to have a TabSheet behaviour on the client side.
    *
    * @package enhancedUI
    * @subpackage examples
     * @example enhancedTab1.php This file source code
    */

   
require_once (dirname (__FILE__)."/enhancedUI.php");
   
   
$enhancedTab = new enhancedTab ();
   
$enhancedTab->default_sheet = "main";

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>enhancedTab Example 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php print ($enhancedTab->getJS (true)); ?>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="5" width="430">
  <tr>
    <td width="80"><a href="#" onClick="<?php print ($enhancedTab->getUpdateTab("main")); ?>">Main</a></td>
    <td width="80"><a href="#" onClick="<?php print ($enhancedTab->getUpdateTab("options")); ?>">Options</a></td>
    <td width="190"><a href="#" onClick="<?php print ($enhancedTab->getUpdateTab("system_preferences")); ?>">System
      preferences</a></td>
    <td width="80"><a href="#" onClick="<?php print ($enhancedTab->getUpdateTab("status")); ?>">Status</a></td>
  </tr>
  <tr>
    <td colspan="4"> <?php print ($enhancedTab->getOpenSheet ("main", "div", true)); ?>
      <h3>Main</h3>
      <p>This is the main sheet, here you can put whatever you want!</p>
      <?php print ($enhancedTab->getCloseSheet ()); ?> <?php print ($enhancedTab->getOpenSheet ("options", "div", false)); ?>
      <h3>Options</h3>
      <p>This is the options sheet, here you can put whatever you want!</p>
      <?php print ($enhancedTab->getCloseSheet ()); ?> <?php print ($enhancedTab->getOpenSheet ("system_preferences", "div", false)); ?>
      <h3>System preferences</h3>
      <p>This is the system preferences sheet, here you can put whatever you want!</p>
      <?php print ($enhancedTab->getCloseSheet ()); ?> <?php print ($enhancedTab->getOpenSheet ("status", "div", false)); ?>
      <h3>Status</h3>
      <p>This is the status sheet, here you can put whatever you want!</p>
      <?php print ($enhancedTab->getCloseSheet ()); ?> </td>
  </tr>
</table>
<?php print ($enhancedTab->getHiddenForm ()); ?>
<?php
print ($enhancedTab->getInitializationJS (true)); ?>
</body>
</html>