<?php
// $Id: formwysiwygtextarea.php,V 1.0 pre release 29/Sep/2004 3:04 Samuels Exp $
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// 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. //
// //
// You may not change or alter any portion of this comment or credits //
// of supporting developers from this source code or any supporting //
// source code which is considered copyrighted (c) material of the //
// original comment or credit authors. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program; if not, write to the Free Software //
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------ //
// Author: Kazumi Ono (AKA onokazu) //
// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ //
// Project: The XOOPS Project //
// ------------------------------------------------------------------------- //
/**
*
*
* @package kernel
* @subpackage form
*
* @author phppp (D.J., php_PP@hotmail.com)
* @copyright copyright (c) 2000-2003 XOOPS.org
*/
/**
* Adapted HTMLarea wysiwyg editor
*
* @author phppp
* @copyright copyright (c) 2000-2003 XOOPS.org
*
* @package NewBB 2.0
* @subpackage form
*/
class XoopsFormHtmlarea extends XoopsFormTextArea
{
var $language = _LANGCODE;
var $width;
var $height;
/**
* Constructor
*
* @param string $caption Caption
* @param string $name "name" attribute
* @param string $value Initial text
* @param string $width iframe width
* @param string $height iframe height
* @param array $options Toolbar Options
*/
function XoopsFormHtmlarea($caption, $name, $value="", $width="100%", $height="300px")
{
$this->XoopsFormTextArea($caption, $name, $value);
$this->width=$width;
$this->height=$height;
}
/**
* get textarea width
*
* @return string
*/
function getWidth()
{
return $this->width;
}
/**
* get textarea height
*
* @return string
*/
function getHeight()
{
return $this->height;
}
/**
* get language
*
* @return string
*/
function getLanguage()
{
return str_replace('_','-',strtolower($this->language));
}
/**
* set language
*
* @return null
*/
function setLanguage($lang='en')
{
$this->language = $lang;
}
/**
* prepare HTML for output
*
* @return sting HTML
*/
function render()
{
static $isJsLoaded = false;
$ret = '';
if(!$isJsLoaded){
$ret .= "
<script type='text/javascript'>
_editor_url = '" . XOOPS_URL . "/class/htmlarea/';
_editor_lang='".$this->getLanguage()."';
</script>
<script src='" . XOOPS_URL . "/class/htmlarea/htmlarea.js'></script>\n
";
$isJsLoaded = true;
}
$ret .="<textarea name='".$this->getName()."' id='".$this->getName()."' rows='".$this->getRows()."' cols='".$this->getCols()."' ".$this->getExtra()." style='width:".$this->getWidth().";height:".$this->getHeight().";display:none;'>".$this->getValue()."</textarea>";
$ret .= "<script type='text/javascript'>
var config = new HTMLArea.Config();
config.width = '".$this->getWidth()."';
config.height = '".$this->getHeight()."';
HTMLArea.replace('".$this->getName()."',config);</script>\n
";
return $ret;
}
}
?>
没有合适的资源?快使用搜索试试~ 我知道了~
一个适合初学者的BBS模块源码
共187个文件
js:72个
gif:63个
asp:32个
需积分: 10 16 下载量 63 浏览量
2008-12-15
09:09:31
上传
评论
收藏 236KB RAR 举报
温馨提示
ASP+ACCESS网页制作,此系统是一个比较完善的,适合asp初学者的BBS模块。有利于提高初学者对数据库的分析与数据库之间的链接。数据库简单但巧妙的运用数据表之间的链接把数据表充分的运用起来。
资源推荐
资源详情
资源评论
收起资源包目录
一个适合初学者的BBS模块源码 (187个子文件)
Topic.asp 8KB
bbs_Register.asp 4KB
bbs_topicManage.asp 4KB
bbs_boardManage_index.asp 4KB
board.asp 4KB
bbs_search_go.asp 4KB
bbs_post.asp 4KB
bbs_MSG.asp 4KB
bbs_usermanager.asp 3KB
bbs_boardManage.asp 3KB
bbs_MSG_index.asp 3KB
bbs_UserInfo.asp 3KB
Default.asp 3KB
bbs_MSG_all.asp 3KB
bbs_header.asp 3KB
Topic_go.asp 3KB
bbs_Register_go.asp 2KB
bbs_sendMessage.asp 2KB
bbs_sendMessage_go.asp 2KB
bbs_UserExlogin.asp 2KB
bbs_search.asp 2KB
bbsAdmin_login_go.asp 2KB
bbsAdmin_login.asp 2KB
bbs_Userlogin.asp 2KB
bbs_boardManage_index_go.asp 1KB
bbs_Userlogout.asp 1KB
bbs_Adminlogout.asp 1KB
bbs_post_go.asp 1KB
bbs_topicManage_go.asp 863B
bbs_UserAct.asp 718B
bbs_bottom.asp 404B
conn.asp 307B
spell-check-logic.cgi 6KB
2-areas.cgi 430B
test.cgi 246B
ChangeLog 49KB
htmlarea.css 4KB
menu.css 1KB
custom.css 1KB
spell-check-style.css 449B
Thumbs.db 47KB
Thumbs.db 4KB
log.gif 2KB
newthread.gif 2KB
newreply.gif 2KB
p_up.gif 1KB
col-split.gif 908B
cell-split.gif 907B
cell-merge.gif 896B
row-split.gif 895B
jhinfo.gif 623B
docprop.gif 302B
ed_color_bg.gif 181B
forumme.gif 174B
ed_color_fg.gif 171B
cell-prop.gif 155B
row-prop.gif 149B
ed_image.gif 148B
table-prop.gif 145B
ed_splitcel.gif 143B
ed_save.gif 143B
ed_charmap.gif 143B
ed_paste.gif 139B
insert_table.gif 121B
cell-insert-before.gif 118B
cell-insert-after.gif 118B
row-insert-above.gif 116B
row-insert-under.gif 115B
col-insert-after.gif 111B
ed_copy.gif 110B
col-insert-before.gif 110B
spell-check.gif 107B
ed_show_border.gif 104B
row-delete.gif 104B
cell-delete.gif 101B
col-delete.gif 100B
fullscreen_maximize.gif 97B
ed_link.gif 97B
fullscreen_minimize.gif 97B
ed_cut.gif 91B
ed_delete.gif 90B
ed_left_to_right.gif 89B
ed_right_to_left.gif 88B
ed_about.gif 87B
ed_indent_less.gif 87B
ed_indent_more.gif 87B
ed_format_underline.gif 85B
ed_list_num.gif 82B
ed_undo.gif 81B
ed_redo.gif 80B
ed_list_bullet.gif 80B
ed_format_strike.gif 78B
ed_format_sub.gif 78B
ed_format_italic.gif 77B
ed_format_sup.gif 77B
ed_html.gif 75B
ed_format_bold.gif 74B
ed_help.gif 70B
ed_hr.gif 70B
ed_align_justify.gif 69B
共 187 条
- 1
- 2
资源评论
xingling277
- 粉丝: 1
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功