📄 textarea.class.inc
字号:
<?php/** * @copyright Intermesh 2005 * @author Merijn Schering <mschering@intermesh.nl> * @version $Revision: 1.2 $ $Date: 2005/06/30 12:55:25 $ * 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 a textarea field * * @package Framework * @subpackage Controls * * @access public */class textarea extends html_element{ var $value; function textarea($name, $value) { $this->tagname = 'textarea'; $this->set_linebreak("\n"); $this->set_attribute('name', $name); $this->value = htmlspecialchars($value); } function get_html() { if(!isset($this->attributes['class'])) { $this->set_attribute('class','textbox'); } $html = '<textarea'; foreach($this->attributes as $name=>$value) { $html .= ' '.$name.'="'.$value.'"'; } $html .= '>'.$this->value."</textarea>".$this->lb; return $html; }}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -