<!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. curl和wget的区别和使用

    curl和wget基础功能有诸多重叠,如下载等. 非要说区别的话,curl由于可自定义各种请求参数所以在模拟web请求方面更擅长:wget由于支持ftp和Recursive所以在下载文件方面更擅长.类 ...

  2. C/C++ 全局变量的访问

    #include <iostream> using namespace std; ; int main(int argc, char **argv) { ; std::cout <& ...

  3. LY.JAVA面向对象编程.修饰符

    2018-07-18 09:20:25 /* 修饰符: 权限修饰符:private,默认的,protected,public 状态修饰符:static,final 抽象修饰符:abstract 类: ...

  4. laravel自定义公共函数的引入

    原文地址:http://blog.csdn.net/u011415782/article/details/78925048 步骤指导 1. 创建 functions.php 在 app/Helpers ...

  5. Win10系列:UWP界面布局基础5

    (2)编写后台代码访问资源 下面通过一个例子来演示如何编写后台代码引用资源.新建一个Windows应用商店的空白应用程序项目,将其命名为AccessResourceApplication,打开项目下的 ...

  6. day_07_python_1124

    01 昨日内容回顾 数据类型补充: str <---> list split join list <---> set set(list) list(set()) list &l ...

  7. 你应该这样理解JVM内存管理

    在进行Java程序设计时,一般不涉及内存的分配和内存回收的相关代码,此处引用一句话: Java和C++之间存在一堵由内存动态分配和垃圾收集技术所围成的高墙,墙外的人想进去,墙里面的人想出来 ,个人从这 ...

  8. 替代iframe

    1.jq中 通过JQuery的load()方法动态加载页面. $( "#result" ).load( "app/test.html" ); 2.vue.rea ...

  9. [转载]Java创建WebService服务及客户端实现

    Java创建WebService服务及客户端实现 Java创建WebService服务及客户端实现

  10. 7 Serial Configuration 理解(二)

    *Serial Configuration Mode 串行配置模式分为:Master Serial 和 Slave Serial (如下图)两类: 两者的区别在与CCLK的输入输出方向:主动模式下为输 ...