newsAdd.jsp 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
  3. <%@taglib uri="/struts-tags" prefix="s"%>
  4. <%@page import="com.ccgj.platform.util.GlobalDefine"%>
  5. <%@page import="com.opensymphony.xwork2.ActionContext"%>
  6. <%@ page import="com.ccgj.database.beans.YHB"%>
  7. <%
  8. response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1.
  9. response.setHeader("Pragma", "no-cache"); // HTTP 1.0.
  10. response.setDateHeader("Expires", 0); // Proxies.
  11. %>
  12. <%
  13. String path = request.getContextPath();
  14. String basePath = request.getScheme() + "://"
  15. + request.getServerName() + ":" + request.getServerPort()
  16. + path + "/";
  17. %>
  18. <%
  19. String id="";
  20. String lmid = request.getParameter("lmid");
  21. String qx_check ="news"+lmid+"_check";
  22. YHB yhbBean =null;
  23. if(ActionContext.getContext().getSession().get(GlobalDefine.USER) != null){
  24. yhbBean= (YHB) ActionContext.getContext().getSession().get(GlobalDefine.USER);
  25. id = yhbBean.getId().toString();
  26. }else{
  27. response.sendRedirect("login.jsp");
  28. }
  29. boolean b = "admin".equals(yhbBean.getYhzh())||"gwhbgs".equals(yhbBean.getYhzh())||"sooka".equals(yhbBean.getYhzh())||"yshjj".equals(yhbBean.getYhzh())||"srhwj".equals(yhbBean.getYhzh())||"dgwbgs".equals(yhbBean.getYhzh());
  30. %>
  31. <html xmlns="http://www.w3.org/1999/xhtml">
  32. <head>
  33. <title></title>
  34. <link href="../../ligerui/lib/ligerUI/skins/Aqua/css/ligerui-all.css"
  35. rel="stylesheet" type="text/css" />
  36. <link href="../../ligerui/lib/ligerUI/skins/Silvery/css/style.css"
  37. rel="stylesheet" type="text/css" />
  38. <script src="../../ligerui/lib/jquery/jquery-1.3.2.min.js"
  39. type="text/javascript"></script>
  40. <script src="../../ligerui/lib/ligerUI/js/core/base.js"
  41. type="text/javascript"></script>
  42. <script src="../../ligerui/lib/ligerUI/js/plugins/ligerForm.js"
  43. type="text/javascript"></script>
  44. <script src="../../ligerui/lib/ligerUI/js/plugins/ligerDateEditor.js"
  45. type="text/javascript"></script>
  46. <script src="../../ligerui/lib/ligerUI/js/plugins/ligerComboBox.js"
  47. type="text/javascript"></script>
  48. <script src="../../ligerui/lib/ligerUI/js/plugins/ligerCheckBox.js"
  49. type="text/javascript"></script>
  50. <script src="../../ligerui/lib/ligerUI/js/plugins/ligerButton.js"
  51. type="text/javascript"></script>
  52. <script src="../../ligerui/lib/ligerUI/js/plugins/ligerDialog.js"
  53. type="text/javascript"></script>
  54. <script src="../../ligerui/lib/ligerUI/js/plugins/ligerRadio.js"
  55. type="text/javascript"></script>
  56. <script src="../../ligerui/lib/ligerUI/js/plugins/ligerSpinner.js"
  57. type="text/javascript"></script>
  58. <script src="../../ligerui/lib/ligerUI/js/plugins/ligerTextBox.js"
  59. type="text/javascript"></script>
  60. <script src="../../ligerui/lib/ligerUI/js/plugins/ligerTip.js"
  61. type="text/javascript"></script>
  62. <script
  63. src="../../ligerui/lib/jquery-validation/jquery.validate.min.js"
  64. type="text/javascript"></script>
  65. <script src="../../ligerui/lib/jquery-validation/jquery.metadata.js"
  66. type="text/javascript"></script>
  67. <script src="../../ligerui/lib/jquery-validation/messages_cn.js"
  68. type="text/javascript"></script>
  69. <script src="../../ligerui/ajaxfileupload.js" type="text/javascript"></script>
  70. <script type="text/javascript" charset="utf-8"
  71. src="../../ueditor/ueditor.config.js"></script>
  72. <script type="text/javascript" charset="utf-8"
  73. src="../../ueditor/ueditor.all.min.js"> </script>
  74. <!--建议手动加在语言,避免在ie下有时因为加载语言失败导致编辑器加载失败-->
  75. <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型,比如你在配置项目里配置的是英文,这里加载的中文,那最后就是中文-->
  76. <script type="text/javascript" charset="utf-8"
  77. src="../../ueditor/lang/zh-cn/zh-cn.js"></script>
  78. <script type="text/javascript">
  79. //时间空间初始化
  80. Date.prototype.format = function(format){
  81. var o = {
  82. "M+" : this.getMonth()+1, //month
  83. "d+" : this.getDate(), //day
  84. "h+" : this.getHours(), //hour
  85. "m+" : this.getMinutes(), //minute
  86. "s+" : this.getSeconds(), //second
  87. "q+" : Math.floor((this.getMonth()+3)/3), //quarter
  88. "S" : this.getMilliseconds() //millisecond
  89. }
  90. if(/(y+)/.test(format)) {
  91. format = format.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
  92. }
  93. for(var k in o) {
  94. if(new RegExp("("+ k +")").test(format)) {
  95. format = format.replace(RegExp.$1, RegExp.$1.length==1 ? o[k] : ("00"+ o[k]).substr((""+ o[k]).length));
  96. }
  97. }
  98. return format;
  99. }
  100. //初始化
  101. $(function ()
  102. {
  103. $("#tjsj").ligerDateEditor({ showTime: true });
  104. $("#shsj").ligerDateEditor({ showTime: true });
  105. var lmid = "<%=request.getParameter("lmid")%>" ;
  106. var now = new Date();
  107. var addTime = now.format("yyyy-MM-dd hh:mm");
  108. $("#tjsj").val(addTime);
  109. $("#lmid").val(lmid);
  110. $.metadata.setType("attr", "validate");
  111. var v = $("form").validate({
  112. debug: true,
  113. errorPlacement: function (lable, element)
  114. {
  115. if (element.hasClass("l-textarea"))
  116. {
  117. element.ligerTip({ content: lable.html(), target: element[0] });
  118. }
  119. else if (element.hasClass("l-text-field"))
  120. {
  121. element.parent().ligerTip({ content: lable.html(), target: element[0] });
  122. }
  123. else
  124. {
  125. lable.appendTo(element.parents("td:first").next("td"));
  126. }
  127. },
  128. success: function (lable)
  129. {
  130. lable.ligerHideTip();
  131. lable.remove();
  132. },
  133. submitHandler: function ()
  134. {
  135. var content = UE.getEditor('editor').getContentTxt();
  136. //return false;
  137. //alert(autoFormat(htmlContent));
  138. //if(content == null||content ==""){
  139. if(false){
  140. alert("请添加内容!");
  141. return false;
  142. }else{
  143. $("#wznr").val(UE.getEditor('editor').getContent());
  144. $("form .l-text,.l-textarea").ligerHideTip();
  145. document.form.submit();
  146. alert("添加成功!")
  147. }
  148. }
  149. });
  150. $("form").ligerForm();
  151. $(".l-button-test").click(function ()
  152. {
  153. alert(v.element($("#txtName")));
  154. });
  155. });
  156. function toExpand(){
  157. //本质调用expandNew.jsp中getChecked方法,多用一层调用目的兼容更多浏览器版本写法
  158. $("#expandIframe").contents().find("#btn1").click();
  159. $("#div1").attr("style","display:none");
  160. }
  161. //扩展栏目:形式1,预留
  162. function openExpand(){
  163. var mAdd = $.ligerDialog.open({
  164. height: 450,
  165. url: '../news/expandNews.jsp',
  166. width: 320,
  167. showMax: true,
  168. showToggle: true, //showMin: true,
  169. isResize: true,
  170. modal: true,
  171. slide:true
  172. });
  173. // mAdd.max ();
  174. return;
  175. }
  176. //扩展栏目:形式2
  177. function openExpand2(){
  178. $('#div1').attr('style','display:block');
  179. }
  180. </script>
  181. <script type="text/javascript">
  182. //添加页ajax上传
  183. function ajaxFileUpload_add()
  184. {
  185. // $("#loading").ajaxStart(function(){
  186. // $(this).show();
  187. // })//开始上传文件时显示一个图片
  188. // .ajaxComplete(function(){
  189. // $(this).hide();
  190. // });//文件上传完成将图片隐藏起来
  191. if($("#txtFoo").val()==""){
  192. //alert('请选择图片!');
  193. //return false;
  194. }
  195. $.ajaxFileUpload
  196. (
  197. {
  198. url:'../file/file!fileupload',//用于文件上传的服务器端请求地址
  199. secureuri:false,//一般设置为false
  200. fileElementId:'file',//文件上传空间的id属性 <input type="file" id="file" name="file" />
  201. dataType: 'json',//返回值类型 一般设置为json
  202. success: function (data, status) //服务器成功响应处理函数
  203. {
  204. //从服务器返回的json中取出message中的数据,其中message为在struts2中定义的成员变量
  205. if(typeof(data.error) != 'undefined')
  206. {
  207. if(data.error != '')
  208. {
  209. alert(data.error);
  210. }
  211. }else{
  212. if(data.message=='clean'){
  213. alert('请选择图片上传!');
  214. return;
  215. $("#fjdz").val('');
  216. $("#txtFoo").val('');
  217. $("#scan").attr("style","display:none;");
  218. }else if(data.message=='error'){
  219. alert('上传异常,请稍后再试!');
  220. }else if(data.message=='typeError'){
  221. alert('上传图片类型错误!');
  222. }else if(data.message=='size'){
  223. alert('上传图片请不要大于100kb!');
  224. }else{
  225. alert('上传成功!');
  226. $("#fjdz").val(data.message);
  227. $("#txtFoo").val('');
  228. $("#scan").attr("style","display:block;margin-left:4px;");
  229. }
  230. }
  231. },
  232. error: function (data, status, e)//服务器响应失败处理函数
  233. {
  234. alert('上传有误,请重试!');
  235. }
  236. }
  237. )
  238. return false;
  239. }
  240. </script>
  241. <script type="text/javascript">
  242. function setFormat(){
  243. //alert('123');
  244. var htmlContent = autoFormat(UE.getEditor('editor').getContent());
  245. var ss = UE.getEditor('editor').setContent(htmlContent);
  246. }
  247. function autoFormat(p_sWordHtml){
  248. var htm = p_sWordHtml;
  249. htm = formattext(htm);
  250. return htm;
  251. }
  252. function formattext(text){
  253. text = text.replace(/<br(\/?)>/gi, "<p>");//替换成<p>
  254. text = text.replace(/<\/p>/gi, "\n");
  255. text = text.replace(/<p([^>]*)>/gi, "<p>");
  256. text = text.replace(/<div([^>]*)>/gi, "<p>"); //消除DIV格式 替换成<p>
  257. text = text.replace(/<\/div>/gi, "\n");
  258. text = text.replace(/<IMG/gi,"<p><IMG");
  259. text = text.replace(/<EMBED/gi,"<p><EMBED");
  260. var naivete_array =text.split("<p>");
  261. if (naivete_array.length >0){
  262. text="";
  263. for (loop=0; loop < naivete_array.length;loop++){
  264. text = text + mytrim(naivete_array[loop]);
  265. }
  266. }
  267. return text;
  268. }
  269. function mytrim(text){
  270. text = text.replace(/(^[\s(&nbsp;) ]*)|(\s*$)/gi,"");
  271. var img_Str = text.match(/^(<IMG|EMBED\gi)([\s\S]*?)>/);
  272. if(img_Str!=null){
  273. text = text.replace(img_Str[0],"<p align=center>"+img_Str[0]+"</p>"+"<p style='margin-bottom:13px;text-indent: 2em;text-align: justify;'>");
  274. return (text!="")? text + "</p>": "";
  275. }else{
  276. // 首行缩进2
  277. return (text!="")? "<p style='margin-bottom:13px;color:#323036;text-indent: 2em;text-align: justify;'>" + text + "</p>" : ""
  278. }
  279. }
  280. function toScan(){
  281. var fjdz = $('#fjdz').val();
  282. if(fjdz!=""){
  283. var url = "<%=basePath%>uploadfile/"+fjdz;
  284. //alert(url);
  285. window.open(url,'newwindow','');
  286. }else{
  287. alert('暂无上传图片,无法预览,请上传后再试!');
  288. }
  289. }
  290. </script>
  291. <style type="text/css">
  292. body {
  293. font-size: 12px;
  294. }
  295. .l-table-edit {
  296. }
  297. .l-table-edit-td {
  298. padding-top: 4px;
  299. padding-bottom: 4px;
  300. padding-left: 10px;
  301. padding-right: 10px;
  302. }
  303. .l-button-submit,.l-button-test {
  304. width: 80px;
  305. float: left;
  306. margin-left: 10px;
  307. padding-bottom: 2px;
  308. }
  309. .l-verify-tip {
  310. left: 230px;
  311. top: 120px;
  312. }
  313. </style>
  314. <style type="text/css">
  315. * {
  316. font-size: 12px;
  317. }
  318. .div {
  319. margin: 0 auto;
  320. width: 100%;
  321. overflow: hidden;
  322. padding: 0px;
  323. }
  324. .line {
  325. position: relative;
  326. margin: 0 auto;
  327. text-align: left
  328. }
  329. .line span.span {
  330. float: left;
  331. padding-top: 2px;
  332. }
  333. .file {
  334. position: absolute;
  335. left: 0;
  336. width: 265px ! important;
  337. top: 0;
  338. height: 28px;
  339. filter: alpha(opacity = 0);
  340. opacity: 0;
  341. cursor: pointer
  342. }
  343. .file1 {
  344. float: left;
  345. margin-left: 0px;
  346. margin-right: 4px;
  347. z-index: 1;
  348. width: 70px;
  349. height: 28px;
  350. line-height: 28px;
  351. background: url(../image/liulan.gif) no-repeat 0 0;
  352. text-indent: -9999px;
  353. cursor: pointer
  354. }
  355. .file2 {
  356. float: left;
  357. z-index: 1;
  358. width: 70px;
  359. height: 28px;
  360. line-height: 28px;
  361. background: url(../image/sc.gif) no-repeat 0 0;
  362. text-indent: -9999px;
  363. cursor: pointer
  364. }
  365. .file3 {
  366. float: left;
  367. z-index: 1;
  368. width: 70px;
  369. height: 28px;
  370. line-height: 28px;
  371. background: url(../image/tpyl.gif) no-repeat 0 0;
  372. text-indent: -9999px;
  373. cursor: pointer
  374. }
  375. .inputstyle {
  376. border: 1px solid #BEBEBE;
  377. margin-left: -3px;
  378. margin-top: -1px;
  379. width: 196px ! important;
  380. float: left;
  381. height: 22px;
  382. line-height: 22px;
  383. background: #FFF;
  384. z-index: 99
  385. }
  386. #n {
  387. margin: 10px auto;
  388. width: 920px;
  389. border: 1px solid #CCC;
  390. font-size: 14px;
  391. line-height: 30px;
  392. }
  393. #n a {
  394. padding: 0 4px;
  395. color: #333
  396. }
  397. input{
  398. line-height:15px;
  399. height:15px;
  400. }
  401. .div1{
  402. height:455px;width:300px; overflow:hidden;border:1px solid #ccc; position:absolute;left:60%;margin-top:-10px;margin-left:-250px; z-index:1100; text-align:center;display:none;
  403. }
  404. div2{
  405. height:445px; overflow:hidden;border:1px solid #ccc; position:absolute; left:50%; margin-left:-250px; z-index:1000; }
  406. </style>
  407. </head>
  408. <body style="padding: 10px;">
  409. <div class="div1" id="div1">
  410. <input type="button" value="确定" class="l-button l-button-test" style="margin-left:60px;z-index:1000;" onclick="toExpand();">
  411. <input type="button" value="关闭" class="l-button l-button-test" onclick="javascript:$('#div1').attr('style','display:none');"/>
  412. <iframe src="../news/expandNews.jsp" height="445" id="expandIframe" marginheight="0" marginwidth="0" frameborder="no" border="0"></iframe>
  413. </div>
  414. <form name="form" method="post" action="../wzb/wzb!saveWZB" id="form1">
  415. <input name="wzb.lmid" type="hidden" id="lmid" value="<%=lmid%>"/>
  416. <table cellpadding="0" cellspacing="0" class="l-table-edit" border="1" bordercolor="#c7d4e2" style="margin-left:10px">
  417. <tr >
  418. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7" >
  419. 栏目名称:
  420. </td>
  421. <td align="left" class="l-table-edit-td" colspan="4" >
  422. <span style="margin-bottom:8px;"><s:property value="lmb.lmmc" /></span>
  423. <%if("admin".equals(yhbBean.getYhzh())||"sooka".equals(yhbBean.getYhzh())){%>
  424. <input type="button" id="extends" value="扩展栏目_new" style="width:110px;height:20px;" onclick="openExpand2(); "/>
  425. <%}%>
  426. </td>
  427. </tr>
  428. <tr>
  429. <td align="center" class="l-table-edit-td">
  430. 文章标题:
  431. </td>
  432. <td align="left" class="l-table-edit-td" colspan="4" >
  433. <input name="wzb.wzbt" type="text" id="wzbt" ltype="text"
  434. style="width: 782px;"
  435. validate="{required:true,minlength:0,maxlength:100}" />
  436. </td>
  437. <td align="left"></td>
  438. </tr>
  439. <!--
  440. <tr>
  441. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
  442. 副 标 题:
  443. </td>
  444. <td align="left" class="l-table-edit-td" colspan="4">
  445. <input name="wzb.wzfbt" type="text" id="wzfbt" ltype="text"
  446. style="width: 782px;" />
  447. </td>
  448. <td align="left"></td>
  449. </tr>
  450. -->
  451. <%if(b){%>
  452. <tr>
  453. <%}else{%>
  454. <tr style="display:none">
  455. <%}%>
  456. <td align="center" class="l-table-edit-td" >
  457. 添加日期:
  458. </td>
  459. <td align="left" class="l-table-edit-td">
  460. <input name="wzb.tjsj" type="text" id="tjsj" ltype="date"
  461. validate="{required:true}" />
  462. </td>
  463. <td align="left"></td>
  464. <td align="center" class="l-table-edit-td">
  465. 责任编辑:
  466. </td>
  467. <td align="left" class="l-table-edit-td">
  468. <input name="wzb.tjyhmc" type="text" id="tjyhmc" ltype="text"
  469. style="width: 330px" />
  470. </td>
  471. <td align="left"></td>
  472. </tr>
  473. <%if(b){%>
  474. <tr>
  475. <%}else{%>
  476. <tr style="display:none">
  477. <%}%>
  478. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
  479. 发布日期:
  480. </td>
  481. <td align="left" class="l-table-edit-td">
  482. <input name="wzb.shsj" type="text" id="shsj" ltype="date" />
  483. </td>
  484. <td align="left"></td>
  485. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
  486. 审  核:
  487. </td>
  488. <td align="left" class="l-table-edit-td">
  489. <input name="wzb.shyhmc" type="text" id="shyhmc" ltype="text"
  490. style="width: 330px" />
  491. </td>
  492. <td align="left"></td>
  493. </tr>
  494. <%if(b){%>
  495. <tr>
  496. <%}else{%>
  497. <tr style="display:none">
  498. <%}%>
  499. <td align="center" class="l-table-edit-td">
  500. 排  序:
  501. </td>
  502. <td align="left" class="l-table-edit-td">
  503. <input name="wzb.wzpx" type="text" id="wzpx" ltype="text"
  504. value="999" style="width: 330px"
  505. validate="{required:true,minlength:0,maxlength:100}" />
  506. </td>
  507. <td align="left"></td>
  508. <td align="center" class="l-table-edit-td">
  509. 作 者:
  510. </td>
  511. <td align="left" class="l-table-edit-td">
  512. <input name="wzb.wzgjz" type="text" id="wzgjz" ltype="text"
  513. style="width: 330px" />
  514. </td>
  515. <td align="left"></td>
  516. </tr>
  517. <%if(b){%>
  518. <tr>
  519. <%}else{%>
  520. <tr style="display:none">
  521. <%}%>
  522. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
  523. 来  源:
  524. </td>
  525. <td align="left" class="l-table-edit-td">
  526. <input name="wzb.wzly" type="text" id="zxdz" ltype="text" value="<%=yhbBean.getYhmc()%>"
  527. style="width: 330px" />
  528. </td>
  529. <td align="left"></td>
  530. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
  531. 题目标红:
  532. </td>
  533. <td align="left" class="l-table-edit-td">
  534. <input type="radio" name="wzb.xsbt" value="1">
  535. 是</input>
  536.  <input type="radio" name="wzb.xsbt" checked="checked" value="2">
  537. 否</input>
  538. </td>
  539. <td align="left"></td>
  540. </tr>
  541. <!-- 老样式
  542. <tr>
  543. <td align="right" class="l-table-edit-td">图 片:</td>
  544. <td align="left" class="l-table-edit-td">
  545. <input name="file" type="file" id="file" ltype="text" style="width:330px;height: 20px;float:left;" />
  546. <input type="button" value="上传" class="l-button l-button-submit" onclick="return ajaxFileUpload();"/>
  547. <td align="left"></td>
  548. </tr>
  549. onmousemove="mouseStyle();"
  550. -->
  551. <%if(b){%>
  552. <tr>
  553. <%}else{%>
  554. <tr style="display:none">
  555. <%}%>
  556. <td align="center" class="l-table-edit-td">
  557. 图  片:
  558. </td>
  559. <td align="left" class="l-table-edit-td" colspan="4">
  560. <!-- <input type="text" id="txtFoo" onclick="toUrl();" onchange="this.value=file.value;" ltype="text" style="background:url(../images/form/text.gif);width:330px;" readonly="true" />
  561. <div style="padding-top:5px;margin-left:25px;" id="div_pic">
  562. <input type="button" onclick="document.getElementById('file').click()" value="浏览" class="l-button l-button-submit" style="float:left"/>
  563. <input type="button" value="上传" class="l-button l-button-submit" style="float:left" onclick="return ajaxFileUpload();"/>
  564. <input name="file" type="file" id="file" ltype="text" onchange="txtFoo.value=this.value;" />
  565. </div>
  566. -->
  567. <div class="div">
  568. <div class="line">
  569. <span class="span" style="margin-right:4px">
  570. <input name="" type="text"
  571. id="txtFoo"
  572. onmouseout="document.getElementById('file').style.display='none';"
  573. class="inputstyle"
  574. style="z-index:100"
  575. /> </span>
  576. <label for="unload" style="margin-right:4px"
  577. onmouseover="document.getElementById('file').style.display='block';"
  578. class="file1">
  579. 浏览...
  580. </label>
  581. <label for="unload2" onclick="return ajaxFileUpload_add();"
  582. class="file2">
  583. 上传
  584. </label>
  585. <label for="scan" id="scan" onclick="toScan();" style="margin-left:4px;display:none"
  586. class="file3">
  587. 图片预览
  588. </label>
  589. <input type="file" id="file" name="file" style="z-index:10"
  590. onchange="document.getElementById('txtFoo').value=this.value;this.style.display='block';"
  591. class="file" />
  592. </div>
  593. </div>
  594. <span id="picMsg"></span>
  595. </td>
  596. <td align="left"></td>
  597. </tr>
  598. <tr style="height:32px;">
  599. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
  600. 状  态:
  601. </td>
  602. <td align="left" class="l-table-edit-td" colspan="4">
  603. <%if(yhbBean.getYhqx().indexOf(qx_check)!=-1){%>
  604. <input type="radio" name="wzb.wzzt" value="1" <%=yhbBean.getYhqx().indexOf(qx_check)==-1?"disabled":"" %> <%=yhbBean.getYhqx().indexOf(qx_check)==-1?"":"checked" %> >
  605. 已发布</input>
  606. <%}%>
  607.  <input type="radio" name="wzb.wzzt" <%=yhbBean.getYhqx().indexOf(qx_check)==-1?"checked":"" %> value="2">
  608. <%=yhbBean.getYhqx().indexOf(qx_check)==-1?"提交":"未发布" %></input>
  609. </td>
  610. <td align="left"></td>
  611. </tr>
  612. <!--
  613. <tr>
  614. <td align="center" class="l-table-edit-td" >
  615. 文章摘要:
  616. </td>
  617. <td align="left" class="l-table-edit-td" colspan="4">
  618. <textarea cols="100" rows="4" class="l-textarea" id="wzzy"
  619. name="wzb.wzzy" style="width: 777px; height: 100px"></textarea>
  620. </td>
  621. <td align="left"></td>
  622. </tr>
  623. -->
  624. <tr style="">
  625. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
  626. 文章内容:
  627. </td>
  628. <td align="left" class="l-table-edit-td" colspan="4">
  629. <div>
  630. <script id="editor" type="text/plain"
  631. style="width:777px;height:350px;"></script>
  632. </div>
  633. <!-- ======================hidden =========================== -->
  634. <input type="hidden" name="wzb.wznr" id="wznr" />
  635. <input type="hidden" name="wzb.fjdz" id="fjdz" />
  636. <input type="hidden" name="wzb.by1" id="by1"/>
  637. <!-- ======================================================= -->
  638. <span style="display: none" id="id_htmlParser"></span>
  639. </td>
  640. <td align="left"></td>
  641. </tr>
  642. <tr>
  643. <td align="right" class="l-table-edit-td" colspan="11" style="padding-left: 40%">
  644. <input type="submit" value="提交" id="btnSubmit"
  645. class="l-button l-button-submit" />
  646. <input type="button" value="返回" id="btnBack"
  647. onclick="javascript:window.location.href='../wzb/wzb!init?lmid=<s:property value="#parameters.lmid" />';"
  648. class="l-button l-button-test" id="test" />
  649. <input type="button" value="统一格式" id="auto"
  650. onclick="setFormat()" class="l-button l-button-test" />
  651. </td>
  652. </tr>
  653. </table>
  654. <div style="display: none">
  655. </div>
  656. </form>
  657. </body>
  658. <script type="text/javascript" charset="utf-8"
  659. src="../../ueditor/uEditorContent.js"></script>
  660. </html>