| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>编辑打印标签设置</title>
- <link
- href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css"
- rel="stylesheet" type="text/css" />
- <script
- src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js"
- type="text/javascript"></script>
- <link href="${pageContext.request.contextPath}/main.css"
- rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
- <!-- <script -->
- <%-- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" --%>
- <!-- type="text/javascript"></script> -->
- <script type="text/javascript">
- $(function() {
- $("#p_paper_width").ligerTextBox({number:true,'float':'left'});
- $("#p_pager_height").ligerTextBox({number:true,'float':'left'});
- $("#p_image_x").ligerTextBox({number:true,'float':'left'});
- $("#p_image_y").ligerTextBox({number:true,'float':'left'});
- $("#p_image_able_area_width").ligerTextBox({number:true,'float':'left'});
- $("#p_image_able_area_height").ligerTextBox({number:true,'float':'left'});
- $("#p_code_image_width").ligerTextBox({number:true,'float':'left'});
- $("#p_code_image_height").ligerTextBox({number:true,'float':'left'});
- });
- function checkForm() {
- var rs = $.validate({
- name : "p_paper_width",
- model : [ {
- type : "require",
- msg : "纸张宽度不能为空!",
- }]
- });
- rs = $.validate({
- name : "p_pager_height",
- model : [ {
- type : "require",
- msg : "纸张高度不能为空!",
- }]
- })&& rs;
- rs = $.validate({
- name : "p_image_x",
- model : [ {
- type : "require",
- msg : "打印开始X坐标不能为空!",
- }]
- }) && rs;
- rs = $.validate({
- name : "p_image_y",
- model : [ {
- type : "require",
- msg : "打印开始Y坐标不能为空!"
- }]
- }) && rs;
- rs = $.validate({
- name : "p_image_able_area_width",
- model : [ {
- type : "require",
- msg : "可成像区域宽度不能为空!"
- }]
- }) && rs;
- rs = $.validate({
- name : "p_image_able_area_height",
- model : [ {
- type : "require",
- msg : "可成像区域高度不能为空!"
- }]
- }) && rs;
- rs = $.validate({
- name : "p_code_image_width",
- model : [ {
- type : "require",
- msg : "条码图像宽度不能为空!"
- }]
- }) && rs;
- rs = $.validate({
- name : "p_code_image_height",
- model : [ {
- type : "require",
- msg : "条码图像高度不能为空!"
- }]
- }) && rs;
-
- if (rs) {
- return true;
- }else{
- return false;
- }
- }
- </script>
- </head>
- <body>
- <%@ include file="/include/message.jsp"%>
- <form action="paperSettingAction.do" method="post" id="theForm" name="theForm" onsubmit="return checkForm();">
- <div id="title" class="form-button">
- <input type="submit" class="l-button" value="保存" />
- </div>
- <div class="container-layout">
- <div class="forum-container">
- <center>
- <table class="l-table-edit line">
- <tr>
- <th colspan="4">
- <c:if test="${requestScope.paperSetting.p_print_type == '1' }">条形码</c:if><c:if test="${requestScope.paperSetting.p_print_type == '2' }">二维码</c:if>打印设置
- </th>
- </tr>
- <tr>
- <td class="l-table-edit-text" width="15%">纸张宽度(毫米)<FONT COLOR="red">*</FONT> :
- </td>
- <td class="l-table-edit-td" width="35%">
- <input type="text" id="p_paper_width" name="p_paper_width" value="${requestScope.paperSetting.p_paper_width }" style="float: left;"><div style="float: none;"></div>
- </td>
- <td class="l-table-edit-text">纸张高度(毫米)<FONT COLOR="red">*</FONT>:
- </td>
- <td class="l-table-edit-td" width="35%">
- <input type="text" id="p_pager_height" name="p_pager_height" value="${requestScope.paperSetting.p_pager_height }" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">打印开始X坐标(毫米)<FONT COLOR="red">*</FONT>:
- </td>
- <td class="l-table-edit-td">
- <input type="text" id="p_image_x" name="p_image_x" value="${requestScope.paperSetting.p_image_x }" />
- </td>
- <td class="l-table-edit-text">打印开始Y坐标(毫米)<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" name="p_image_y" id="p_image_y" value="${requestScope.paperSetting.p_image_y }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">可成像区域宽度(毫米)<FONT COLOR="red">*</FONT> :</td>
- <td class="l-table-edit-td">
- <input type="text" name="p_image_able_area_width" id="p_image_able_area_width" value="${requestScope.paperSetting.p_image_able_area_width }">
- </td>
- <td class="l-table-edit-text">可成像区域高度(毫米)<FONT COLOR="red">*</FONT> :</td>
- <td class="l-table-edit-td">
- <input type="text" name="p_image_able_area_height" id="p_image_able_area_height" value="${requestScope.paperSetting.p_image_able_area_height }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">条码图像宽度(像素)<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input id="p_code_image_width" name="p_code_image_width" value="${requestScope.paperSetting.p_code_image_width }"></input>
- </td>
- <td class="l-table-edit-text">条码图像高度(像素)<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input id="p_code_image_height" name="p_code_image_height" value="${requestScope.paperSetting.p_code_image_height }"></input>
- </td>
- </tr>
- <!-- <tr> -->
- <!-- <td class="l-table-edit-text">备注:</td> -->
- <!-- <td colspan="3"><font color="blue">页面大小以点为计量单位,1点为1英寸的1/72,1英寸为25.4毫米。</font></td> -->
- <!-- </tr> -->
- </table>
- <input type="hidden" id="p_id" name="p_id" value="${requestScope.paperSetting.p_id }">
- <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
- <input type="hidden" id="task" name="task" value="doEditPaperSetting">
- </center>
- </div>
- </div>
- </form>
- </body>
- </html>
|