<!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. Qt中漂亮的几款QSS

    /* === Shared === */QStackedWidget, QLabel, QPushButton, QRadioButton, QCheckBox, QGroupBox, QStatus ...

  2. js--阻止冒泡,捕获,默认行为

    防止冒泡和捕获 w3c的方法是e.stopPropagation(),IE则是使用e.cancelBubble = true· var el = window.document.getElementB ...

  3. 和的java程序

  4. VSTO - 使用Excel加载项生成表和图表

    此示例显示如何创建Excel的加载项,使用户可以在其工作表中选择库存符号,然后生成一个新工作表,显示库存的历史性能. 工作表包含数据表和图表. 介绍Excel加载项通常不知道工作表包含什么.典型的加载 ...

  5. node连接myslq

    var mysql = require('mysql'); var connection = mysql.createConnection({ host : 'localhost', user : ' ...

  6. 1.4socket服务器打印信息的四种不同方式()

    方式一 socker 服务器 # -*- coding: utf-8 -*- import sys,os,multiprocessing from socket import * serverHost ...

  7. SQL-19 查找所有员工的last_name和first_name以及对应的dept_name,也包括暂时没有分配部门的员工

    题目描述 查找所有员工的last_name和first_name以及对应的dept_name,也包括暂时没有分配部门的员工CREATE TABLE `departments` (`dept_no` c ...

  8. jsch上传文件到服务器

    需求就是上传文件到服务器,服务器的存储地址由程序决定然后可以自动创建. 使用第三方:jsch JSch 是SSH2的一个纯Java实现.它允许你连接到一个sshd 服务器,使用端口转发,X11转发,文 ...

  9. sac cut

    Put a perl script here in order to remind myself of its correct usage:

  10. activiti 插件安装,以及初始化配置

    1.安装插件 2.添加pom 3.配置activiti.cfg.xml 4.绘制业务流程图 MyProcess.bpmn 5.加载activiti数据表 6.创建流程 1.安装eclipse acti ...