<!DOCTYPE html>
<html >
<head>
<title>发布</title>
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1" />
<link href="../../../css/jquerymobile/jquery.mobile-1.3.2.min.css" rel="stylesheet" type="text/css" />
<script src="../../../js/jquery.js" type="text/javascript"></script>
<script src="../../../js/jquerymobile/jquery.mobile-1.3.2.js" type="text/javascript"></script>
<script src="../../../fckeditor/fckeditor.js" type="text/javascript"></script> <style type="text/css">
p{ padding:0px; margin:0px}
</style> <script type="text/javascript">
$(document).bind('pagebeforechange', function (e, data) {
if (typeof data.toPage !== "string") {
var url = e.target.baseURI;
var o = getUrlParam(url);
window.localStorage.setItem("local_artid", o.id); getArt(o.id);
}
}); $(function () {
$("#btnSend").click(function () {
saveMyArt();
});
$("input[type='checkbox']").bind('click', function () {
if ($(this).prop("checked")) {
$(this).attr("checked", true).checkboxradio("refresh");
} else {
$(this).attr("checked", false).checkboxradio("refresh");
}
});
})
function getUrlParam(string) {
var obj = {};
if (string.indexOf("?") != -) {
var string = string.substr(string.indexOf("?") + );
var strs = string.split("&");
for (var i = ; i < strs.length; i++) {
var tempArr = strs[i].split("=");
obj[tempArr[]] = unescape(tempArr[]);
}
}
return obj;
}
function getArt(id) {
$.ajax({
url: "../../service/salesarts.ashx",
type: "POST",
dataType: "json",
data: "artid=" + id + "&method=getartbyartid&arttype=2",
success: function (data) {
var s = "";
$.each(data.ds, function (index, content) {
$("#title").text(content.Topic);
$("#artcontent").html(content.ArtContent);
window.localStorage.setItem("local_keyword",content.KeyWord);
})
}
});
}
function saveMyArt() {
var result=;
var artid=window.localStorage.getItem("local_artid");
var disid=window.localStorage.getItem("local_disid");
var disno = window.localStorage.getItem("local_disno");
var sendstatus = ;
var title = $("#topic").val();
var topic = "";
if (title == "") {
topic = $("#title").text();
} else {
topic = title;
}
var keyword = window.localStorage.getItem("local_keyword");
var artcontent = $("#artcontent").html(); if ($("#IsSales").prop("checked") == true) {
result = ;
}
var issales=result;
if ($("#IsProduct").prop("checked") == true) {
result=;
}
var isproduct=result;
if ($("#IsContact").prop("checked") == true) {
result=;
}
var iscontact=result;
if ($("#IsOrder").prop("checked") == true) {
result=;
}
var isorder = result; $.ajax({
url: "../../service/salesarts.ashx",
type:"POST",
dataType:"text",
data: "artid=" + artid + "&disid=" + disid + "&disno=" + disno + "&topic=" + topic + "&keyword=" + keyword + "&sendstatus=" + sendstatus + "&artcontent=" + escape(artcontent) + "&issales=" + issales + "&isproduct=" + isproduct + "&iscontact=" + iscontact + "&isorder=" + isorder + "&method=savemyart&arttype=2",
success:function(data){
//data:1保存成功 2发布成功 0失败
if(data=="true"){
alert("发布成功!");
window.location.href = "list.html"
}else{
alert("发布失败");
}
}
});
}
</script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<p>
<a href="../../member/member.html" data-role="button" data-inline="true">会员主页</a>
<a href="../../member/contact.html" data-role="button" data-inline="true">联系客户</a>
<a href="../../member/login.html" data-role="button" data-inline="true"> 退出</a>
</p>
</div>
<form id="form1">
<div data-role="content">
<div data-role="fieldcontain">
<span>原标题</span>
<label id="title"></label>
</div>
<div data-role="fieldcontain">
<input type="text" id="topic" placeholder="新标题" />
</div>
<div data-role="fieldcontain">
<script type="text/javascript">
var oFCKeditor = new FCKeditor('FCKeditor1');
            oFCKeditor.BasePath = "/fckeditor/";
oFCKeditor.Create();
</script>
</div>
<div data-role="fieldcontain" data-type="horizontal">
<label><input type="checkbox" name="IsSales" id="IsSales" data-mini="true" />营销信息</label>
<label><input type="checkbox" name="IsProduct" id="IsProduct" data-mini="true" />产品信息</label>
<label><input type="checkbox" name="IsContact" id="IsContact" data-mini="true" />联系信息</label>
<label><input type="checkbox" name="IsOrder" id="IsOrder" data-mini="true" />订购信息</label>
</div>
<div data-role="fieldcontain">
<input type="button" id="btnSend" value="发布" />
</div> </div>
</form>
</div>
</body>
</html>

fckeditor配置的更多相关文章

  1. 在线富文本编辑器FckEditor配置(.Net Framework 3.5)

    进入FCKeditor文件夹,编辑 fckconfig.js 文件.1.上传设置  .  var _FileBrowserLanguage         = 'php' ;         // a ...

  2. fckeditor 配置

    因为下载下来的压缩包里面有包含很多在我们使用时,用不到的,不删除也行.看个人喜好下面以PHP为例,进行程序瘦身 删除所有”_”开头的文件和文件夹   删除FCKeditor的目录下:   fckedi ...

  3. FCKeditor配置与使用

    fckeditor - (1)资料介绍与安装 fckeditor介绍  FCKeditor是一个专门使用在网页上属于开放源代码的所见即所得文字编辑器.  1.fckeditor官网:http://ww ...

  4. FckEditor 配置手册中文教程详细说明

    http://www.jb51.net/article/17965.htm 首先,FCKEDITOR的性能是非常好的,用户只需很少的时间就可以载入 FCKEDITOR所需文件.对于其他在线编辑器来说, ...

  5. fckeditor配置详解

    使用配置设置: . FCKConfig.CustomConfigurationsPath = '' ; // 自定义配置文件路径和名称 . FCKConfigFCKConfig.EditorAreaC ...

  6. JavaWEB开发时FCKeditor类似office界面的ajax框架,加入后就能做界面类似office,能进行简单的文本编辑操作+配置手册...

    2019独角兽企业重金招聘Python工程师标准>>> FCKeditor是一款功能强大的开源在线文本编辑器(DHTML editor),它使你在web上可以使用类似微软Word 的 ...

  7. asp.net文本编辑器(FCKeditor)

    FCKeditor介绍 FCKeditor是一个功能强大支持所见即所得功能的文本编辑器,可以为用户提供微软office软件一样的在线文档编辑服务.它不需要安装任何形式的客户端,兼容绝大多数主流浏览器, ...

  8. FCKEDITOR在.NET中的使用

    FCKEDITOR在.NET中的使用 FCKeditor介绍 FCKeditor是一个功能强大支持所见即所得功能的文本编辑器,可以为用户提供微软office软件一样的在线文档编辑服务.它不需要安装任何 ...

  9. FCKeditor jsp配置

    FCKeditor jsp配置 FCKeditor是sourceforge.net上面的一个开源项目,主要是实现在线网页编辑器的功能,可以让web程序拥有如MS Word这样强大的编辑功能.官方网站为 ...

随机推荐

  1. ie edge 自动给数字加下划线

    <meta name="format-detection" content="telephone=no,email=no,address=no">

  2. git Please move or remove them before you can merge.

    git clean -d -fx "" 其中  x -----删除忽略文件已经对git来说不识别的文件 d -----删除未被添加到git的路径中的文件 f -----强制运行

  3. DDR3和eMMC区别

    DDR3内存条和eMMC存储器区别: 1. 存储性质不同:2. 存储容量不同:3. 运行速度不同:4. 用途不同. 具体区别如下: 1.存储性质不同:eMMC是非易失性存储器,不论在通电或断电状态下, ...

  4. learning at command AT+CIMI

    AT command AT+CIMI [Purpose]        Learning how to get the International Mobile Subscriber Identity ...

  5. spoj220

    题解: 后缀数组 把所有串连接起来 二分答案 代码: #include<cstdio> #include<cstring> #include<algorithm> ...

  6. java 实现单向链表

    package cn.com.factroy2; /** * 可以看做是操作链表的工具类,链表的核心结构就是节点的数据结构 * @author wanjn * */ public class Sing ...

  7. Linux文件系统中的inode节点详细介绍

    这篇文章主要介绍了Linux文件系统中的inode节点,详细讲解了inode是什么.inode包含的信息.inode号码的相关资料等,需要的朋友可以参考下 一.inode是什么? 理解inode,要从 ...

  8. jmeter中添加压力机

    在压测的时候,可能并发比较大,一台机子已经启动不了那么多并发了,这个时候就是有多台机子一起来并发,就要添加压力机 如何添加压力机呢: 1.其他电脑上也安装了jmeter,和其他电脑都能ping通当前电 ...

  9. Mybatis学习笔记三

    一.延迟加载 延迟加载即加载延迟了,并不是一次性加载完而是按需加载,感觉应该是针对多表查询而言的,即先查询单表等需要另一张表的信息时再去加载,这样能提高数据库的性能: 需要注意的是,mybatis提供 ...

  10. <HBase><Scan>

    Overview The Scan operation for HBase. Scan API All operations are identical to Get with the excepti ...