ajaxFileUpload与KindEditor
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ajaxFileUpload与KindEditor相关的知识,希望对你有一定的参考价值。
<!DOCTYPE html> <html> <head> <TITLE>项目管理</TITLE> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <LINK href="../images/favicon.ico" rel="shortcut icon" type="image/png"> <LINK href="../css/xfback.css" rel="stylesheet" type="text/css"> <LINK href="../css/temp.css" rel="stylesheet" type="text/css"> <SCRIPT src="../js/jquery-1.4.2.min.js" type="text/javascript"></SCRIPT> <SCRIPT src="../js/index.js" type="text/javascript"></SCRIPT> <script type="text/javascript" src="/p2p/back/js/ticket/common.js" ></script> <script type="text/javascript" src="/p2p/back/js/ticket/ticket.js" ></script> <script type="text/javascript" src="/p2p/back/js/ticket/ticketctl.js" ></script> <SCRIPT src="../js/ajaxfileupload.js" charset="utf-8"></SCRIPT> <script src="../js/base-js.js" type="text/javascript"></script><!--日历--> <script src="../js/js-date.js" type="text/javascript"></script><!--日历--> <script src="../js/city.js" type="text/javascript"></script><!--城市二级联动脚本--> <script type="text/javascript" src="/p2p/front/js/Validform_v5.2.1.js"></script> <link href="../kindeditor/themes/default/default.css" type="text/css" charset="utf-8" rel="stylesheet"/> <script src="../kindeditor/kindeditor-min.js" type="text/javascript" charset="utf-8"></script> <script src="../kindeditor/lang/zh_CN.js" type="text/javascript" charset="utf-8"></script> <SCRIPT src="admin-item-add.js" type="text/javascript"></SCRIPT> <BODY> <!-- 头部 --> <!-- 头部开始 --> <div> <!-- iframe框架引入head.html文件 --> <iframe align="center" src="/p2p/back/common/head.html" style="width:100%; height:106px;" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe> </div> <!-- 头部End --> <DIV class="xn_c_top_02"> <DIV class="top_span" id="mg_sys"><A href="#">系统设置</A></DIV></DIV><!-- 头部end --> <!-- 内容区域 --> <DIV class="xn_c_contentwarp"> <DIV class="xn_c_contentlist"> <DIV class="xn_c_content_left"> <DIV class="xn_c_content_leftul"> <UL> <LI> <DIV class="xn_c_li_head_one"><!-- 展开样式:xn_c_li_bg_jian --> <DIV class="xn_c_li_bg" id="lab_1"></DIV> 众筹项目发布</DIV> <DIV class="xn_c_li_head_two" id="hi_1"><!-- 当前样式:xn_c_li_head_ishow --> <A class="xn_c_li_head_ishow" id="mg_2" href="/p2p/back/item/admin-item.html">项目列表</A> </DIV></LI> <LI> <DIV class="xn_c_li_head_one"> <DIV class="xn_c_li_bg" id="lab_2"></DIV> 客户提交管理</DIV> <DIV class="xn_c_li_head_two" id="hi_2"> <A class="xn_c_li_head_twoli" id="mg_3" href="/p2p/back/finance/admin-releaselList.html">众筹申请管理</A> <A class="xn_c_li_head_twoli" id="mg_5" href="/p2p/back/channel/admin-channelList.html">渠道招商管理</A></DIV></LI> <LI> <DIV class="xn_c_li_head_one"> <DIV class="xn_c_li_bg" id="lab_2"></DIV> 公告管理</DIV> <DIV class="xn_c_li_head_two" id="hi_2"> <A class="xn_c_li_head_twoli" id="mg_3" href="/p2p/back/news/admin-content.html">公告列表</A></DIV></LI> </UL></DIV> <DIV class="xn_c_con_leftbutton"> <DIV class="xn_c_con_enimg">导航点击</DIV></DIV></DIV> <FORM id="myform" name="myform" enctype="multipart/form-data" method="post" > <DIV class="xn_c_content"> <DIV class="xf_content_add"> <DIV class="xfht_t_j_y_2"><!--右上--> <DIV class="xf_ht_obu_fklm" id="myTitle">添加项目</DIV><!-- 借款标基本信息 --> <DIV class="xf_ht_news_content"> <DIV class="xf_ht_news_content_t"> <TABLE class="xf_ht_news_content_t_t" border="0" cellspacing="0" cellpadding="0"> <INPUT name="id" id="id" type="hidden"> <TBODY> <TR> <TD width="200" align="right" valign="middle" style="padding-right: 5px;">合同编号:</TD> <TD width="739"> <INPUT id="contractNo" name="contractNo" class="xfht_zr_input" style="width: 600px;" type="text" datatype="contractNo" nullmsg="请填写合同编号"> <span class="Validform_checktip"></span> </TD> </TR> <TR> <TR> <TD width="200" align="right" valign="middle" style="padding-right: 5px;">项目标题:</TD> <TD> <INPUT id="title" name="title" class="xfht_zr_input" id="edittitle" style="width: 600px;" type="text" datatype="title" nullmsg="请填写项目标题"> <span class="Validform_checktip"></span> </TD> </TR> <TR> <TR> <TD width="200" align="right" valign="middle" style="padding-right: 5px;">发起人:</TD> <TD> <INPUT id="name" name="name" class="xfht_zr_input" style="width: 600px;" type="text" datatype="name" nullmsg="请填写发起人"> <span class="Validform_checktip"></span> </TD> </TR> <TR> <TD width="200" align="right" valign="middle" style="padding-right: 5px;">联系电话:</TD> <TD> <INPUT id="mobile" name="mobile" class="xfht_zr_input" style="width: 600px;" type="text" datatype="mobile" nullmsg="请填写联系电话"> <span class="Validform_checktip"></span> </TD> </TR> <TR> <TD width="200" align="right" valign="middle" style="padding-right: 5px;">项目周期:</TD> <TD> <INPUT name="startTime" id="startTime" class="xfht_zr_input" style="width: 130px;" type="text" datatype="startTime" errormsg="项目起期不能小于当天" nullmsg="请填写项目起期" onClick="return Calendar(‘startTime‘);"> - <INPUT name="endTime" id="endTime" class="xfht_zr_input" style="width: 130px;" type="text" datatype="endTime" errormsg="项目止期至少大于项目起期7天" nullmsg="请填写项目止期" onClick="return Calendar(‘endTime‘);"> <span class="Validform_checktip"></span> </TD> </TR> <TR> <TD width="200" align="right" valign="middle" style="padding-right: 5px;">所属地区:</TD> <TD> <select name="city" id="city" onChange="selectcityarea(‘city‘,‘area‘,‘myform‘);" class="xfht_zr_input" style="width:143px; padding:0;" > <option selected="selected" value="0">--请选择城市--</option> </select> - <select name="area" id="area" class="xfht_zr_input" style="width:143px; padding:0;" datatype="area" nullmsg="请选择所属地区"> <option selected="selected" value="0">--请选择地区--</option> </select> <span class="Validform_checktip"></span> <script language="javascript"> first("city","area","myform",0,0); </script> </TD> </TR> <TR> <TD width="200" align="right" valign="middle" style="padding-right: 5px;">所属行业:</TD> <TD> <select id="industry" name="industry" class="xfht_zr_input" style="width: 310px; padding:0;" datatype="industry" nullmsg="请选择所属行业"> <option value="0">--请选择--</option> <option value="1">金融</option> <option value="2">美食</option> <option value="3">娱乐</option> <option value="4">体育</option> <option value="5">影视</option> <option value="6">科技</option> <option value="7">文化</option> </select> <span class="Validform_checktip"></span> </TD> </TR> <!-- <TR> <TD width="200" align="right" valign="middle" style="padding-right: 5px;">项目状态:</TD> <TD> <select id="state" name="state" class="xfht_zr_input" style="width: 310px; padding:0;" datatype="state" nullmsg="请选择项目状态"> <option value="0">--请选择--</option> <option value="1">预热项目</option> <option value="2">融资项目</option> <option value="3">完成项目</option> </select> <span class="Validform_checktip"></span> </TD> </TR> --> <TR> <TD width="200" align="right" valign="middle" style="padding-right: 5px;">项目估值:</TD> <TD> <INPUT id="valuation" name="valuation" class="xfht_zr_input" style="width: 297px;" type="text" datatype="valuation" errormsg="请填写数字" nullmsg="请填写项目估值"> <span class="Validform_checktip"></span> </TD> </TR> <TR> <TD width="200" align="right" valign="middle" style="padding-right: 5px;">募集金额:</TD> <TD> <INPUT id="money" name="money" class="xfht_zr_input" style="width: 297px;" type="text" datatype="money" errormsg="请填写数字" nullmsg="请填写募集金额"> <span class="Validform_checktip"></span> </TD> </TR> <TR> <TD width="200" align="right" valign="middle" style="padding-right: 5px;">回报方式:</TD> <TD width="739"> <select id="returnWay" name="returnWay" class="xfht_zr_input" style="width: 310px; padding:0;" datatype="returnWay" nullmsg="请选择回报方式"> <option value="0">--请选择--</option> <option value="1">现金</option> <option value="2">非现金</option> </select> <span class="Validform_checktip"></span> </TD> </TR> <TR id="repay_date" style="display: none"> <TD width="200" align="right" valign="middle" style=" padding-right: 5px;">回报周期:</TD> <TD width="739"> <select id="returnPeriod" name="returnPeriod" class="xfht_zr_input" style="width: 310px; padding:0;" datatype="returnPeriod" nullmsg="请选择回报周期"> <option value="0">--请选择--</option> <option value="1">1月</option> <option value="2">2月</option> <option value="3">3月</option> <option value="4">4月</option> <option value="5">5月</option> <option value="6">6月</option> <option value="7">7月</option> <option value="8">8月</option> <option value="9">9月</option> <option value="10">10月</option> <option value="11">11月</option> <option value="12">12月</option> </select> <span class="Validform_checktip"></span> </TD> </TR> <TR id="bonus" style="display: none"> <TD width="200" align="right" valign="middle" style="padding-right: 5px;">分红比例:</TD> <TD width="739"> <INPUT id="dividendRatio" name="dividendRatio" class="xfht_zr_input" style="width: 297px;" type="text" datatype="dividendRatio" nullmsg="请填写分红比例" errormsg="请填写数字"> % <span class="Validform_checktip"></span> </TD> </TR> <!-- <TR> <TD width="200" align="right" valign="middle" style="padding-right: 5px;">项目视频:</TD> <TD> <input type="file" id="videoFile" name="videoFile" style="width:600px;height:28px;position:absolute;opacity:0;filter:alpha(opacity=0);" onchange="document.getElementById(‘video‘).value=this.value"/> <input type="inp以上是关于ajaxFileUpload与KindEditor的主要内容,如果未能解决你的问题,请参考以下文章
如何使 ajaxfileupload 与动态生成的文件输入一起工作
ajaxfileupload.js与struts2文件上传文件报错
使用ajaxFileUpload这个控件上传文件,返回json数据出错?
为KindEditor编辑器中的内容添加样式,使得自己定义前台页面显示效果与编辑器效果一致