<!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. iperf测试工具

    一.iperf工具安装: 1.获取iperf源码安装包(iperf-3.0.5.tar.gz) 2.将iperf安装包上传到服务器/tmp/目录并解压 [root@localhost /]#cd /t ...

  2. 使用Postman在Chrome下进行rest请求测试

    1.首先下载postman,我已经下载好,放在云盘里了. http://pan.baidu.com/s/1c1YoGKS 密码 dgfw 2.打开Chrome,点击更多工具->扩展程序~打开. ...

  3. 延时显示(类QQ头像显示)

    <!doctype html> <html> <head> <meta charset="utf-8"> <meta name ...

  4. [BZOJ3173]最长上升子序列

    Problem 给你n个数A1~An,每次将i插入第Ai位后,最后输出每次插入后这个数列的最长上升子序列 Solution 这道题非常的妙.首先如果新加入的这个数构成了最长上升子序列,由于在它插入之前 ...

  5. [HDU2475]Box

    Problem 先告诉你每个盒子在哪个盒子的内部 接下来有M个操作: 可以把一个盒子及里面的盒子移到另外一个盒子的内部 或者询问你某个盒子最外面的盒子是哪个 Solution 首先可以建成一个图,然后 ...

  6. CF712E [Memort and Casinos]

    题意 每次询问一段区间[l,r],求从最左边走到最右边(r+1)的概率(若走到l-1,则GG了),每个点上写有向右走的概率.支持单点修改. 思考 若只查询一次,那只要知道每个点在不走到l-1的情况下, ...

  7. Docker安装websphere(四)

    在Docker容器里安装webshpere <!--前提:已经安装好了docker,能够正常使用.--> (1)docker安装websphere(需要账号和密码登录,不挂载数据卷) 获取 ...

  8. jenkins使用jacoco插件检测代码覆盖率(八)

    代码覆盖率:类覆盖,方法覆盖,行覆盖,指令覆盖……(简而言之,就是判断有没有被执行) 覆盖率 = 已经执行的代码 / 总代码 (1)创建maven项目,配置pom.xml如下 pom.xml < ...

  9. .net core 在扩展中使用接口实例之IServiceProvider

    在.net core 2.0中,我们使用的对象实例大多数都是通过构造函数依赖注入进来的,但那是在一般的类中使用. 如果需要在静态/扩展类中使用某些服务类的对象实例,可以使用如下方式: 1.新建一个Se ...

  10. 3.1 Makefile

    安装make 安装make sudo apt-get install make make -v