newsEdit.jsp 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  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. <%@page import="com.ccgj.platform.util.GlobalDefine"%>
  4. <%@page import="com.opensymphony.xwork2.ActionContext"%>
  5. <%@ page import="com.ccgj.database.beans.*"%>
  6. <%@ page language="java" import="java.util.*"%>
  7. <%@ page import=" com.ccgj.database.manager.*" %>
  8. <%@ page import=" com.ccgj.database.factory.*" %>
  9. <%@ page import=" com.ccgj.platform.util.*" %>
  10. <%@taglib uri="/struts-tags" prefix="s"%>
  11. <%
  12. String path = request.getContextPath();
  13. String basePath = request.getScheme() + "://"
  14. + request.getServerName() + ":" + request.getServerPort()
  15. + path + "/";
  16. %>
  17. <%
  18. LMBManager lmManager= DatabaseFactory.getLMBIF().getLMBService().getLmbManager();
  19. String id="";
  20. LMB lmb = (LMB)request.getAttribute("lmb");
  21. String qx_check ="news"+lmb.getId()+"_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. function setFormat(){
  80. var htmlContent = autoFormat(UE.getEditor('editor').getContent());
  81. var ss = UE.getEditor('editor').setContent(htmlContent);
  82. }
  83. function autoFormat(p_sWordHtml){
  84. var htm = p_sWordHtml;
  85. htm = formattext(htm);
  86. return htm;
  87. }
  88. function formattext(text){
  89. text = text.replace(/<br(\/?)>/gi, "<p>");//替换成<p>
  90. text = text.replace(/<\/p>/gi, "\n");
  91. text = text.replace(/<p([^>]*)>/gi, "<p>");
  92. text = text.replace(/<div([^>]*)>/gi, "<p>"); //消除DIV格式 替换成<p>
  93. text = text.replace(/<\/div>/gi, "\n");
  94. text = text.replace(/<IMG/gi,"<p><IMG");
  95. text = text.replace(/<EMBED/gi,"<p><EMBED");
  96. var naivete_array =text.split("<p>");
  97. if (naivete_array.length >0){
  98. text="";
  99. for (loop=0; loop < naivete_array.length;loop++){
  100. text = text + mytrim(naivete_array[loop]);
  101. }
  102. }
  103. return text;
  104. }
  105. function mytrim(text){
  106. text = text.replace(/(^[\s(&nbsp;) ]*)|(\s*$)/gi,"");
  107. var img_Str = text.match(/^(<IMG|EMBED\gi)([\s\S]*?)>/);
  108. if(img_Str!=null){
  109. text = text.replace(img_Str[0],"<p align=center>"+img_Str[0]+"</p>"+"<p style='margin-bottom:13px;text-indent: 2em;text-align: justify;'>");
  110. return (text!="")? text + "</p>": "";
  111. }else{
  112. // 首行缩进2
  113. return (text!="")? "<p style='margin-bottom:13px;color:#323036;text-indent: 2em;text-align: justify;'>" + text + "</p>" : ""
  114. }
  115. }
  116. //初始化
  117. $(function ()
  118. {
  119. $("#tjsj").ligerDateEditor({ showTime: true });
  120. $("#shsj").ligerDateEditor({ showTime: true });
  121. // var content = ${wzb.wznr} ; //获取文章内容
  122. // UE.getEditor('editor').setContent(content); //内容显示
  123. $.metadata.setType("attr", "validate");
  124. var v = $("form").validate({
  125. debug: true,
  126. errorPlacement: function (lable, element)
  127. {
  128. if (element.hasClass("l-textarea"))
  129. {
  130. element.ligerTip({ content: lable.html(), target: element[0] });
  131. }
  132. else if (element.hasClass("l-text-field"))
  133. {
  134. element.parent().ligerTip({ content: lable.html(), target: element[0] });
  135. }
  136. else
  137. {
  138. lable.appendTo(element.parents("td:first").next("td"));
  139. }
  140. },
  141. success: function (lable)
  142. {
  143. lable.ligerHideTip();
  144. lable.remove();
  145. },
  146. submitHandler: function ()
  147. {
  148. var content = UE.getEditor('editor').getContentTxt();
  149. if(false){
  150. alert("请添加内容!");
  151. return false;
  152. }else{
  153. var bsUser = '<s:property value="bsUser" escape="false"/>';
  154. if(bsUser == "bsAdmin"){
  155. var abc = $("#by1").val();
  156. if(abc.length >= 16){
  157. alert("请选择唯一栏目进行采用!");
  158. return;
  159. }else if(abc.length == 0){
  160. alert("请选择采用栏目!");
  161. return;
  162. }else{
  163. $("#wznr").val(UE.getEditor('editor').getContent());
  164. $("form .l-text,.l-textarea").ligerHideTip();
  165. document.form.submit();
  166. alert("采用成功!")
  167. }
  168. }else{
  169. $("#wznr").val(UE.getEditor('editor').getContent());
  170. $("form .l-text,.l-textarea").ligerHideTip();
  171. document.form.submit();
  172. alert("修改成功!")
  173. }
  174. }
  175. }
  176. });
  177. $("form").ligerForm();
  178. $(".l-button-test").click(function ()
  179. {
  180. alert(v.element($("#txtName")));
  181. });
  182. });
  183. //修改页ajax上传
  184. function ajaxFileUpload_edit()
  185. {
  186. // $("#loading").ajaxStart(function(){
  187. // $(this).show();
  188. // })//开始上传文件时显示一个图片
  189. // .ajaxComplete(function(){
  190. // $(this).hide();
  191. // });//文件上传完成将图片隐藏起来
  192. if($("#txtFoo").val()==""){
  193. // alert('请选择图片!');
  194. //return false;
  195. }
  196. $.ajaxFileUpload
  197. (
  198. {
  199. url:'../file/file!fileupload',//用于文件上传的服务器端请求地址
  200. secureuri:false,//一般设置为false
  201. fileElementId:'file',//文件上传空间的id属性 <input type="file" id="file" name="file" />
  202. dataType: 'json',//返回值类型 一般设置为json
  203. success: function (data, status) //服务器成功响应处理函数
  204. {
  205. //从服务器返回的json中取出message中的数据,其中message为在struts2中定义的成员变量
  206. if(typeof(data.error) != 'undefined')
  207. {
  208. if(data.error != '')
  209. {
  210. alert(data.error);
  211. }
  212. }else{
  213. if(data.message=='clean'){
  214. alert('图片已清除!');
  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(data.message);
  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 toScan(){
  243. var fjdz = $('#fjdz').val();
  244. if(fjdz!=""){
  245. var url = "<%=basePath%>uploadfile/"+fjdz;
  246. //alert(url);
  247. window.open(url,'newwindow','');
  248. }else{
  249. alert('暂无上传图片,无法预览,请上传后再试!');
  250. }
  251. }
  252. function toExpand(){
  253. //本质调用expandNew.jsp中getChecked方法,多用一层调用目的兼容更多浏览器版本写法
  254. $("#expandIframe").contents().find("#btn1").click();
  255. $("#div1").attr("style","display:none");
  256. }
  257. function openExpand(){
  258. var mAdd = $.ligerDialog.open({
  259. height: 450,
  260. url: 'expandNews.jsp',
  261. width: 320,
  262. showMax: true,
  263. showToggle: true, //showMin: true,
  264. isResize: true,
  265. modal: true,
  266. slide:true
  267. });
  268. // mAdd.max ();
  269. return;
  270. }
  271. function openExpand2(){
  272. $('#div1').attr('style','display:block');
  273. }
  274. </script>
  275. <style type="text/css">
  276. body {
  277. font-size: 12px;
  278. }
  279. .l-table-edit {
  280. }
  281. .l-table-edit-td {
  282. padding-top: 4px;
  283. padding-bottom: 4px;
  284. padding-left: 10px;
  285. padding-right: 10px;
  286. }
  287. .l-button-submit,.l-button-test {
  288. width: 80px;
  289. float: left;
  290. margin-left: 10px;
  291. padding-bottom: 2px;
  292. }
  293. .l-verify-tip {
  294. left: 230px;
  295. top: 120px;
  296. }
  297. </style>
  298. <style type="text/css">
  299. * {
  300. font-size: 12px;
  301. }
  302. .div {
  303. margin: 0 auto;
  304. width: 100%;
  305. overflow: hidden;
  306. padding: 0px;
  307. }
  308. .line {
  309. position: relative;
  310. margin: 0 auto;
  311. text-align: left
  312. }
  313. .line span.span {
  314. float: left;
  315. padding-top: 2px;
  316. }
  317. .file {
  318. position: absolute;
  319. left: 0;
  320. width: 265px ! important;
  321. top: 0;
  322. height: 28px;
  323. filter: alpha(opacity = 0);
  324. opacity: 0;
  325. cursor: pointer
  326. }
  327. .file1 {
  328. float: left;
  329. margin-left: 0px;
  330. margin-right: 4px;
  331. z-index: 1;
  332. width: 70px;
  333. height: 28px;
  334. line-height: 28px;
  335. background: url(../image/liulan.gif) no-repeat 0 0;
  336. text-indent: -9999px;
  337. cursor: pointer
  338. }
  339. .file2 {
  340. float: left;
  341. z-index: 1;
  342. width: 70px;
  343. height: 28px;
  344. line-height: 28px;
  345. background: url(../image/sc.gif) no-repeat 0 0;
  346. text-indent: -9999px;
  347. cursor: pointer
  348. }
  349. .file3 {
  350. float: left;
  351. z-index: 1;
  352. width: 70px;
  353. height: 28px;
  354. line-height: 28px;
  355. background: url(../image/tpyl.gif) no-repeat 0 0;
  356. text-indent: -9999px;
  357. cursor: pointer
  358. }
  359. .inputstyle {
  360. border: 1px solid #BEBEBE;
  361. margin-left: -3px;
  362. margin-top: -1px;
  363. width: 196px ! important;
  364. float: left;
  365. height: 23px;
  366. line-height: 23px;
  367. background: #FFF;
  368. z-index: 99
  369. }
  370. #n {
  371. margin: 10px auto;
  372. width: 920px;
  373. border: 1px solid #CCC;
  374. font-size: 14px;
  375. line-height: 30px;
  376. }
  377. #n a {
  378. padding: 0 4px;
  379. color: #333
  380. }
  381. input{
  382. line-height:15px;
  383. height:15px;
  384. }
  385. .div1{
  386. 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;
  387. }
  388. div2{
  389. height:445px; overflow:hidden;border:1px solid #ccc; position:absolute; left:50%; margin-left:-250px; z-index:1000; }
  390. </style>
  391. </head>
  392. <body style="padding: 10px">
  393. <div class="div1" id="div1">
  394. <input type="button" value="确定" class="l-button l-button-test"/ style="margin-left:60px;z-index:1000;" onclick="toExpand();">
  395. <input type="button" value="关闭" class="l-button l-button-test" onclick="javascript:$('#div1').attr('style','display:none');"/>
  396. <iframe src="../news/expandNews.jsp" height="445" id="expandIframe" marginheight="0" marginwidth="0" frameborder="no" border="0"></iframe>
  397. </div>
  398. <form name="form" method="post" action="../wzb/wzb!updateWZB"
  399. id="form1">
  400. <table cellpadding="0" cellspacing="0" class="l-table-edit" border="1" bordercolor="#c7d4e2" style="margin-left:10px" >
  401. <input name="wzb.lmid" type="hidden" id="lmid" value="<%=lmb.getId()%>"/>
  402. <tr style="height:32px;">
  403. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7" >
  404. 栏目名称:
  405. </td>
  406. <td align="left" class="l-table-edit-td" colspan="4">
  407. <span style="margin-bottom:8px;">
  408. <s:property value="lmb.lmmc"/>
  409. </span>
  410. </td>
  411. </tr>
  412. <tr>
  413. <td align="center" class="l-table-edit-td">
  414. 文章标题:
  415. </td>
  416. <td align="left" class="l-table-edit-td" colspan="4">
  417. <input name="wzb.wzbt" type="text" id="wzbt" ltype="text"
  418. style="width: 777px"
  419. value="<s:property value="wzb.wzbt" escape="false"/>"
  420. validate="{required:true,minlength:0,maxlength:100}" />
  421. </td>
  422. <td align="left"></td>
  423. </tr>
  424. <%if(b){%>
  425. <tr>
  426. <%}else{%>
  427. <tr style="display:none">
  428. <%}%>
  429. <td align="center" class="l-table-edit-td">
  430. 添加日期:
  431. </td>
  432. <td align="left" class="l-table-edit-td">
  433. <input name="wzb.tjsj" type="text" id="tjsj" ltype="date"
  434. value="<s:property value="wzb.tjsj"/>" validate="{required:true}" />
  435. </td>
  436. <td align="left"></td>
  437. <td align="center" class="l-table-edit-td">
  438. 责任编辑:
  439. </td>
  440. <% if(yhbBean.getYhzh().equals("bsAdmin")){%>
  441. <td align="left" class="l-table-edit-td">
  442. <input name="wzb.tjyhmc" type="text" id="tjyhmc" ltype="text"
  443. value="" style="width: 330px" />
  444. </td>
  445. <% }else{%>
  446. <td align="left" class="l-table-edit-td">
  447. <input name="wzb.tjyhmc" type="text" id="tjyhmc" ltype="text"
  448. value="<s:property value="wzb.tjyhmc"/>" style="width: 330px" />
  449. </td>
  450. <%} %>
  451. <td align="left"></td>
  452. </tr>
  453. <%if(b){%>
  454. <tr>
  455. <%}else{%>
  456. <tr style="display:none">
  457. <%}%>
  458. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
  459. 发布日期:
  460. </td>
  461. <td align="left" class="l-table-edit-td">
  462. <input name="wzb.shsj" type="text" id="shsj" ltype="date"
  463. value="<s:property value="wzb.shsj"/>" />
  464. </td>
  465. <td align="left"></td>
  466. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
  467. 审  核:
  468. </td>
  469. <td align="left" class="l-table-edit-td">
  470. <input name="wzb.shyhmc" type="text" id="shyhmc" ltype="text"
  471. value="<s:property value="wzb.shyhmc"/>" style="width: 330px" />
  472. </td>
  473. <td align="left"></td>
  474. </tr>
  475. <%if(b){%>
  476. <tr>
  477. <%}else{%>
  478. <tr style="display:none">
  479. <%}%>
  480. <td align="center" class="l-table-edit-td">
  481. 排  序:
  482. </td>
  483. <td align="left" class="l-table-edit-td">
  484. <input name="wzb.wzpx" type="text" id="wzpx" ltype="text"
  485. value="<s:property value="wzb.wzpx"/>" style="width: 330px"
  486. validate="{required:true,minlength:0,maxlength:100}" />
  487. </td>
  488. <td align="left"></td>
  489. <td align="center" class="l-table-edit-td">
  490. 作 者 :
  491. </td>
  492. <td align="left" class="l-table-edit-td">
  493. <input name="wzb.wzgjz" type="text" id="wzgjz" ltype="text"
  494. value="<s:property value="wzb.wzgjz"/>" style="width: 330px" />
  495. </td>
  496. <td align="left"></td>
  497. </tr>
  498. <%if(b){%>
  499. <tr>
  500. <%}else{%>
  501. <tr style="display:none">
  502. <%}%>
  503. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
  504. 来  源:
  505. </td>
  506. <% if(yhbBean.getYhzh().equals("bsAdmin")){%>
  507. <td align="left" class="l-table-edit-td">
  508. <input name="wzb.wzly" type="text" id="wzly" ltype="text" value="<s:property value="wzb.bmmc"/>" style="width: 330px" />
  509. </td>
  510. <% }else{%>
  511. <td align="left" class="l-table-edit-td">
  512. <input name="wzb.wzly" type="text" id="wzly" ltype="text" value="<s:property value="wzb.wzly"/>" style="width: 330px" />
  513. </td>
  514. <%} %>
  515. <td align="left"></td>
  516. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
  517. 题目标红:
  518. </td>
  519. <td align="left" class="l-table-edit-td">
  520. <input type="radio" name="wzb.xsbt" <s:property value="wzb.xsbt==1?'checked':''"/> value="1">
  521. 是</input>
  522.  <input type="radio" name="wzb.xsbt" <s:property value="wzb.xsbt==2?'checked':''"/> value="2">
  523. 否</input>
  524. </td>
  525. <td align="left"></td>
  526. </tr>
  527. <!-- 老样式
  528. <tr>
  529. <td align="right" class="l-table-edit-td">图 片:</td>
  530. <td align="left" class="l-table-edit-td">
  531. <input name="file" type="file" id="file" ltype="text" style="width:330px;height: 20px;float:left;" />
  532. <input type="button" value="上传" class="l-button l-button-submit" onclick="return ajaxFileUpload();"/>
  533. <td align="left"></td>
  534. </tr>
  535. onmousemove="mouseStyle();"
  536. -->
  537. <%if(b){%>
  538. <tr>
  539. <%}else{%>
  540. <tr style="display:none">
  541. <%}%>
  542. <td align="center" class="l-table-edit-td">
  543. 图  片:
  544. </td>
  545. <td align="left" class="l-table-edit-td" colspan="4">
  546. <div class="div">
  547. <div class="line">
  548. <span class="span" style="margin-right: 4px">
  549. <input type="text" id="txtFoo"
  550. onmouseout="document.getElementById('file').style.display='none';"
  551. class="inputstyle" /> </span>
  552. <label for="scan" style="margin-right: 4px"
  553. onmouseover="document.getElementById('file').style.display='block';"
  554. class="file1">
  555. 浏览
  556. </label>
  557. <label for="unload" onclick="return ajaxFileUpload_edit();"
  558. class="file2">
  559. 上传
  560. </label>
  561. <s:if test='wzb.fjdz!=null'>
  562. <label for="scan" id="scan" onclick="toScan();" style="margin-left:4px;display:block"
  563. class="file3">
  564. 图片预览
  565. </label>
  566. </s:if>
  567. <s:else>
  568. <label for="scan" id="scan" onclick="toScan();" style="margin-left:4px;display:none"
  569. class="file3">
  570. 图片预览
  571. </label>
  572. </s:else>
  573. <input type="file" id="file" name="file" contenteditable="false"
  574. onchange="document.getElementById('txtFoo').value=this.value;this.style.display='block';"
  575. value="<s:property value="wzb.fjdz"/>" class="file"
  576. />
  577. </div>
  578. </div>
  579. <span id="picMsg"></span>
  580. </td>
  581. <td align="left"></td>
  582. </tr>
  583. <%if(yhbBean.getYhqx().indexOf(qx_check)>0){ %>
  584. <tr style="height:32px;">
  585. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
  586. 状  态:
  587. </td>
  588. <td align="left" class="l-table-edit-td" colspan="4">
  589. <input type="radio" name="wzb.wzzt" <s:property value="wzb.wzzt==1?'checked':''"/> value="1">
  590. 已发布</input>
  591.  <input type="radio" name="wzb.wzzt" <s:property value="wzb.wzzt==2?'checked':''"/> value="2">
  592. 未发布</input>
  593. </td>
  594. <td align="left"></td>
  595. </tr>
  596. <%} %>
  597. <!--
  598. <tr>
  599. <td align="center" class="l-table-edit-td" >
  600. 文章摘要:
  601. </td>
  602. <td align="left" class="l-table-edit-td" colspan="4">
  603. <textarea cols="100" rows="4" class="l-textarea" id="wzzy"
  604. name="wzb.wzzy" style="width: 777px; height: 100px"><s:property value="wzb.wzzy" escape="false" /></textarea>
  605. </td>
  606. <td align="left"></td>
  607. </tr>
  608. -->
  609. <tr style="">
  610. <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
  611. 文章内容:
  612. </td>
  613. <td align="left" class="l-table-edit-td" colspan="4">
  614. <div>
  615. <script id="editor" type="text/plain"
  616. style="width:777px;height:350px;"><s:property value="wzb.wznr" escape="false"/></script>
  617. </div>
  618. <!-- ======================hidden =========================== -->
  619. <input type="hidden" name="wzb.wznr" id="wznr" value="<s:property value="wzb.wznr"/>"/>
  620. <input type="hidden" name="wzb.fjdz" id="fjdz" value="<s:property value="wzb.fjdz"/>"/>
  621. <input type="hidden" name="wzb.id" value="<s:property value="wzb.id" escape="false"/>" />
  622. <input type="hidden" name="wzb.by1" id="by1" value="<s:property value="wzb.by1"/>"/>
  623. <input type="hidden" name="wzb.by2" id="by2" value="<s:property value="wzb.by2"/>"/>
  624. <!-- 报送部门ID -->
  625. <input type="hidden" name="wzb.bmid" id="by2" value="<s:property value="wzb.bmid"/>"/>
  626. <!-- ======================================================= -->
  627. <span style="display: none" id="id_htmlParser"></span>
  628. </td>
  629. <td align="left"></td>
  630. </tr>
  631. <tr>
  632. <td align="right" class="l-table-edit-td" colspan="11"
  633. style="padding-left: 40%">
  634. <input type="submit" value="提交" id="btnSubmit"
  635. class="l-button l-button-submit" />
  636. <input type="button" value="返回" id="btnBack"
  637. onclick="javascript:window.location.href='../wzb/wzb!init?lmid=<%=lmb.getId()%>';"
  638. class="l-button l-button-test" />
  639. <input type="button" value="统一格式" id="auto"
  640. onclick="setFormat()"
  641. class="l-button l-button-test" />
  642. </td>
  643. </tr>
  644. </table>
  645. <div style="display: none">
  646. </div>
  647. </form>
  648. </body>
  649. <script type="text/javascript" charset="utf-8"
  650. src="<%=basePath%>ueditor/uEditorContent.js"></script>
  651. </html>