image.class.inc

来自「国外很不错的一个开源OA系统Group-Office」· INC 代码 · 共 44 行

INC
44
字号
<?php/** * @copyright Intermesh 2005 * @author Merijn Schering <mschering@intermesh.nl> * @version $Revision: 1.5 $ $Date: 2006/11/21 16:25:34 $ *   This program is free software; you can redistribute it and/or modify it   under the terms of the GNU General Public License as published by the   Free Software Foundation; either version 2 of the License, or (at your   option) any later version. * @package Framework * @subpackage Controls *//** * Create an image *  * @package Framework * @subpackage Controls *  * @access public */require_once($GO_CONFIG->class_path.'base/controls/html_element.class.inc');class image extends html_element{	function image($index, $src='')	{		global $GO_THEME;				$this->tagname = 'img';				$this->set_linebreak("\n");				if(empty($src))		{					$this->set_attribute('src', $GO_THEME->images[$index]);		}else		{			$this->set_attribute('src', $src);		}	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?