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