<?php
/*
[UCenter Home] (C) 2007-2008 Comsenz Inc.
$Id: editor.php 10561 2008-12-09 07:44:46Z liguode $
*/
if(empty($_GET['charset']) || !in_array(strtolower($_GET['charset']), array('gbk', 'big5', 'utf-8'))) $_GET['charset'] = '';
$allowhtml = empty($_GET['allowhtml'])?0:1;
if(empty($_GET['op'])) {
//工具条
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=<?=$_GET['charset']?>" />
<title>Editor</title>
<script language="javascript" src="./editor/editor_base.js"></script>
<style type="text/css">
body{margin:0;padding:0;}
body, td, input, button, select {font: 12px/1.5em Tahoma, Arial, Helvetica, snas-serif;}
.submit { padding: 0 10px; height: 22px; border: 1px solid; border-color: #DDD #264F6E #264F6E #DDD; background: #2782D6; color: #FFF; line-height: 20px; letter-spacing: 1px; cursor: pointer; }
a.dm{text-decoration:none}
a.dm:hover{text-decoration:underline}
a{font-size:12px}
img{border:0}
td.icon{width:24px;height:24px;text-align:center;vertical-align:middle}
td.sp{width:8px;height:24px;text-align:center;vertical-align:middle}
td.xz{width:47px;height:24px;text-align:center;vertical-align:middle}
td.bq{width:49px;height:24px;text-align:center;vertical-align:middle}
div a.n{height:16px;line-height:16px;display:block;padding:2px;color:#000000;text-decoration:none}
div a.n:hover{background:#E5E5E5}
.r_op { float: right; }
.eMenu{position:absolute;margin-top: -2px;background:#FFFFFF;border:1px solid #C5C5C5;padding:4px}
.eMenu ul, .eMenu ul li { margin: 0; padding: 0; }
.eMenu ul li{list-style: none;float:left}
#editFaceBox { padding: 5px; }
#editFaceBox li { width: 25px; height: 25px; overflow: hidden; }
.t_input { padding: 3px 2px; border-style: solid; border-width: 1px; border-color: #7C7C7C #C3C3C3 #DDD; line-height: 16px; }
a.n1{height:16px;line-height:16px;display:block;padding:2px;color:#000000;text-decoration:none}
a.n1:hover{background:#E5E5E5}
a.cs{height:15px;position:relative}
*:lang(zh) a.cs{height:12px}
.cs .cb{font-size:0;display:block;width:10px;height:8px;position:absolute;left:4px;top:3px;cursor:hand!important;cursor:pointer}
.cs span{position:absolute;left:19px;top:0px;cursor:hand!important;cursor:pointer;color:#333}
.fRd1 .cb{background-color:#800}
.fRd2 .cb{background-color:#800080}
.fRd3 .cb{background-color:#F00}
.fRd4 .cb{background-color:#F0F}
.fBu1 .cb{background-color:#000080}
.fBu2 .cb{background-color:#00F}
.fBu3 .cb{background-color:#0FF}
.fGn1 .cb{background-color:#008080}
.fGn2 .cb{background-color:#008000}
.fGn3 .cb{background-color:#808000}
.fGn4 .cb{background-color:#0F0}
.fYl1 .cb{background-color:#FC0}
.fBk1 .cb{background-color:#000}
.fBk2 .cb{background-color:#808080}
.fBk3 .cb{background-color:#C0C0C0}
.fWt0 .cb{background-color:#FFF;border:1px solid #CCC}
.mf_nowchose{height:30px;background-color:#DFDFDF;border:1px solid #B5B5B5;border-left:none}
.mf_other{height:30px;border-left:1px solid #B5B5B5}
.mf_otherdiv{height:30px;width:30px;border:1px solid #FFF;border-right-color:#D6D6D6;border-bottom-color:#D6D6D6;background-color:#F8F8F8}
.mf_otherdiv2{height:30px;width:30px;border:1px solid #B5B5B5;border-left:none;border-top:none}
.mf_link{font-size:12px;color:#000000;text-decoration:none}
.mf_link:hover{font-size:12px;color:#000000;text-decoration:underline}
.ico{height:24px;width:24px;vertical-align:middle;text-align:center}
.ico2{height:24px;width:27px;vertical-align:middle;text-align:center}
.ico3{height:24px;width:25px;vertical-align:middle;text-align:center}
.ico4{height:24px;width:8px;vertical-align:middle;text-align:center}
.icons a,.edTb,.sepline,.switch,.tbri{background-image:url(./editor/editor_boolbar.gif)}
.toobar{position:relative;height:29px;overflow:hidden}
.tble{position:absolute;left:0;top:2px }
*:lang(zh) .tble{top:2px}
.tbri{width:20px;position:absolute;right:-3px;top:2px;background-position:0 -33px}
*:lang(zh) .tbri{top:2px;background-position:0 -31px}
.icons a{width:23px;height:23px;background-repeat:no-repeat;display:block;float:left;border:1px solid #efefef;border-top:1px solid #EFEFEF;border-bottom:1px solid #F2F3F2}
*:lang(zh) .icons a{margin-right:1px}
.icons a:hover{border-top:1px solid #CCC;border-right:1px solid #999;border-bottom:1px solid #999;border-left:1px solid #CCC;background-color:#FFF}
a.icoCut{background-position:1px 2px;}
a.icoCpy{background-position:-27px 1px;}
a.icoPse{background-position:-55px 1px}
a.icoFfm{background-position:-82px 1px;width:27px}
a.icoFsz{background-position:-111px 1px;}
*:lang(zh) a.icoFsz{margin:0}
a.icoWgt{background-position:-139px 0;}
*:lang(zh) a.icoWgt{width:21px}
a.icoIta{background-position:-166px 0;}
*:lang(zh) a.icoIta{width:21px}
a.icoUln{background-position:-196px 1px;}
*:lang(zh) a.icoUln{margin:0}
a.icoAgn{background-position:-224px 1px}
a.icoLst{background-position:-252px 1px}
a.icoOdt{background-position:-309px 1px}
a.icoIdt{background-position:-308px 1px}
a.icoFcl{background-position:-335px 1px}
a.icoBcl{background-position:-362px 1px}
a.icoUrl{background-position:-392px 1px;}
a.icoMoveUrl{background-position:-486px 1px}
a.icoRenew {background-position:-519px 1px}
a.icoFace {background-position:-553px 1px}
a.icoImg{background-position:-420px 1px}
a.icoSwf{background-position:-447px 1px}
a.icoSwitchTxt{background-position:-638px 0px;width:23px;float:right}
a.icoSwitchMdi{background-position:-671px 0px;width:23px}
.edTb{border-bottom:1px solid #c5c5c5;background-position:0 -28px}
.sepline{width:4px;height:20px;margin-top:2px;margin-right:3px;background-position:-476px 0;background-repeat:no-repeat;float:left }
-->
</style>
<script language="JavaScript">
<!--
function fontname(obj){format('fontname',obj.innerHTML);obj.parentNode.style.display='none'}
function fontsize(size,obj){format('fontsize',size);obj.parentNode.style.display='none'}
//-->
</SCRIPT>
</head>
<body style="overflow-y:hidden">
<table cellpadding="0" cellspacing="0" width="100%" id="dvHtmlLnk" style="display:none">
<tr>
<td height="31">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="edTb">
<tr>
<td height="31" style="padding-left:5px;">
<!--纯文本状态工具栏-->
<div class="toobar">
<div class="icons tble">
<a href="javascript:;" class="icoSwitchMdi" title="切换到多媒体" onClick="changeEditType(true);return false;"></a>
</div>
</div>
</td></tr></table>
</td></tr></table>
<textarea id="dvtext" style="height:91%;width:100%;border:0px;display:none;border-top:0px;padding:7px 4px 8px 8px;font-size:14px;font-family:Arial, Helvetica, sans-serif;line-height:1.8em;"></textarea>
<div >
<table cellpadding="0" cellspacing="0" width="100%" height="100%" id="dvhtml">
<tr>
<td height="31">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="edTb">
<tr>
<td height="31" style=" padding-left:3px">
<!--多媒体状态工具栏-->
<div class="toobar">
<div class="icons tble">
<a href="javascript:;" class="icoCut" title="剪切" onClick="format('Cut');return false;"></a>
<a href="javascript:;" class="icoCpy" title="复制" onClick="format('Copy');return false;"></a>
<a href="javascript:;" class="icoPse" title="粘贴" onClick="format('Paste');return false;"></a>
<div class="sepline"></div>
<a href="javascript:;" class="icoFfm" id="imgFontface" title="字体" onClick="fGetEv(event);fDisplayElement('fontface','');return false;"></a>
<a href="javascript:;" class="icoFsz" id="imgFontsize" title="字号" onClick="fGetEv(event);fDisplayElement('fontsize','');return false;"></a>
<a href="javascript:;" class="icoWgt" onClick="format('Bold');return false;" title="加粗"></a>
<a href="javascript:;" class="icoIta" title="斜体" onClick="format('Italic');return false;"></a>
<a href="javascript:;" class="icoUln" onClick="format('Underline');return false;" title="下划线"></a>
<a href="javascript:;" class="icoFcl" title="字体颜色" onClick="foreColor(event);return false;" id="imgFont
没有合适的资源?快使用搜索试试~ 我知道了~
与jqeury无冲突的uchome编辑器
共41个文件
gif:32个
js:5个
php:2个
4星 · 超过85%的资源 需积分: 3 12 下载量 57 浏览量
2010-08-03
14:59:30
上传
评论
收藏 109KB RAR 举报
温馨提示
已经修改和jquery同时引入没有$冲突。文件编码jbk,如需utf8,转码即可。
资源推荐
资源详情
资源评论
收起资源包目录
gbkedit.rar (41个子文件)
gbkedit
script_face.js 3KB
editor
editor_function.js 3KB
editor_base.js 19KB
editor_boolbar.gif 5KB
editor_none.gif 43B
jquery.js 118KB
test.php 129B
script_common.js 14KB
editor.php 19KB
image
face
1.gif 1KB
7.gif 2KB
5.gif 2KB
19.gif 250B
15.gif 1KB
23.gif 1KB
24.gif 2KB
22.gif 1KB
28.gif 1KB
2.gif 2KB
12.gif 2KB
6.gif 2KB
8.gif 1KB
26.gif 753B
13.gif 1KB
4.gif 1KB
27.gif 833B
29.gif 1KB
14.gif 1KB
11.gif 3KB
17.gif 2KB
3.gif 1KB
25.gif 2KB
9.gif 1KB
18.gif 1KB
10.gif 1KB
16.gif 1KB
30.gif 501B
20.gif 1KB
21.gif 1KB
Thumbs.db 47KB
edit.html 1KB
共 41 条
- 1
资源评论
- adan_user2013-11-12参照资料之一,依照此原理,自己修改了一个
- mingtao22222018-09-28不支持图片上传!
jackjie2009
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功