[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/sitemgr/modules/ -> class.module_applet.inc.php (source)

   1  <?php
   2       /**************************************************************************\
   3       * eGroupWare SiteMgr - Web Content Management                              *
   4       * http://www.egroupware.org                                                *
   5       * --------------------------------------------                             *
   6       *  This program is free software; you can redistribute it and/or modify it *
   7       *  under the terms of the GNU General Public License as published by the   *
   8       *  Free Software Foundation; either version 2 of the License, or (at your  *
   9       *  option) any later version.                                              *
  10       \**************************************************************************/
  11  
  12       /* $Id: class.module_applet.inc.php 20295 2006-02-15 12:31:25Z  $ */
  13  
  14  class module_applet extends Module 
  15  {
  16  	 function module_applet()
  17       {
  18              $this->arguments = array(
  19                   'code' => array(
  20                          'type' => 'textfield',
  21                          'params' => array('size' => 100),
  22                          'label' => lang('Code file')
  23                   ),
  24                   'codebase' => array(
  25                          'type' => 'textfield',
  26                          'params' => array('size' => 100),
  27                          'label' => lang('Codebase URL')
  28                   ),
  29                   'width' => array(
  30                          'type' => 'textfield',
  31                          'label' => lang('Width')
  32                   ),
  33                   'height' => array(
  34                          'type' => 'textfield',
  35                          'label' => lang('Height')
  36                   )
  37              );
  38              $this->title = lang('Applet');
  39              $this->description = lang('This module lets you include an applet into the page.');
  40       }
  41  
  42  	 function get_content(&$arguments,$properties) 
  43       {
  44              return '<applet code="'.$arguments['code'].'" codebase="'.$arguments['codebase'].
  45                  '" width="'.$arguments['width'].'" height="'.$arguments['height'].'"></applet>';
  46       }
  47  }


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7