home *** CD-ROM | disk | FTP | other *** search
/ 61.19.244.139 / 61.19.244.139.zip / 61.19.244.139 / 2015-02-19 / views / sale-online-report.jsp < prev    next >
Text File  |  2015-02-19  |  7KB  |  154 lines

  1.  
  2. <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
  3. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  4. <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
  5. <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
  6. <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
  7. <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  8. <tiles:insertDefinition name="defaultTemplate">
  9.     <tiles:putAttribute name="body">
  10.         <ul class="breadcrumb">
  11.             <li><a href="#">α╕½α╕Öα╣ëα╕▓α╕½α╕Ñα╕▒α╕ü</a><span class="divider">»</span></li>
  12.             <li class="active">α╕úα╕▓α╕óα╕çα╕▓α╕Öα╕üα╕▓α╕úα╕éα╕▓α╕óα╕üα╕úα╕íα╕ÿα╕úα╕úα╕íα╣î</li>
  13.         </ul>
  14.  
  15.         <div class="dashboard-widget">
  16.             <div class="row-fluid">
  17.  
  18.                 <form:form class="form-horizontal well" target="_blank" id="frmSaleOnlineReport" modelAttribute="saleOnlineReportBean" action="sale-online-report-print" method="get">
  19.  
  20.                     <fieldset>
  21.                         <div class="control-group">
  22.                             <label class="control-label" for="input01">α╕úα╕½α╕▒α╕¬α╕òα╕▒α╕ºα╣üα╕ùα╕Ö</label>
  23.                             <div class="controls">
  24.                                 <form:input path="agentIdStart" id="agentIdStart" class="input-medium" type="text" placeholder="α╕úα╕½α╕▒α╕¬α╕òα╕▒α╕ºα╣üα╕ùα╕Ö" maxlength="15" />
  25.                                 -
  26.                                 <form:input path="agentIdEnd" id="agentIdEnd" cssClass="input-medium" type="text" placeholder="α╕úα╕½α╕▒α╕¬α╕òα╕▒α╕ºα╣üα╕ùα╕Ö" maxlength="15"/>
  27.  
  28.  
  29.                             </div>
  30.                         </div>
  31.  
  32.                         <div class="control-group">
  33.                             <label class="control-label" for="input01">α╕ºα╕▒α╕Öα╕ùα╕╡α╣êα╣Çα╕úα╕┤α╣êα╕íα╕äα╕╕α╣ëα╕íα╕äα╕úα╕¡α╕ç</label>
  34.                             <div class="controls">
  35.                                 <form:input class="input-small" type="text" path="covStartDate" id="covStartDate" placeholder="α╕ºα╕▒α╕Öα╕ùα╕╡α╣êα╣Çα╕úα╕┤α╣êα╕íα╕äα╕╕α╣ëα╕íα╕äα╕úα╕¡α╕ç" maxlength="10" />
  36.                                 -
  37.                                 <form:input class="input-small" type="text" path="covEndDate" id="covEndDate" placeholder="α╕ºα╕▒α╕Öα╕ùα╕╡α╣êα╣Çα╕úα╕┤α╣êα╕íα╕äα╕╕α╣ëα╕íα╕äα╕úα╕¡α╕ç" maxlength="10"  />
  38.  
  39.  
  40.                             </div>
  41.                         </div>
  42.  
  43.                         <div class="control-group">
  44.                             <label class="control-label" for="input01">α╕ºα╕▒α╕Öα╕ùα╕╡α╣êα╕¡α╕¡α╕üα╕üα╕úα╕íα╕ÿα╕úα╕úα╕íα╣î</label>
  45.                             <div class="controls">
  46.                                 <form:input path="polStartDate" id="polStartDate" class="input-small" type="text" placeholder="α╕ºα╕▒α╕Öα╕ùα╕╡α╣êα╕¡α╕¡α╕üα╕üα╕úα╕íα╕ÿα╕úα╕úα╕íα╣î" maxlength="10"/>
  47.                                 -
  48.                                 <form:input path="polEndDate" id="polEndDate" cliass="input-small" type="text" placeholder="α╕ºα╕▒α╕Öα╕ùα╕╡α╣êα╕¡α╕¡α╕üα╕üα╕úα╕íα╕ÿα╕úα╕úα╕íα╣î" maxlength="10"/>
  49.  
  50.  
  51.                             </div>
  52.                         </div>
  53.  
  54.                         <div class="control-group">
  55.                             <label class="control-label" for="input01">α╕¢α╕úα╕░α╣Çα╕áα╕ùα╕úα╕▓α╕óα╕çα╕▓α╕Ö</label>
  56.                             <div class="controls">
  57.                                 <form:select path="reportType">
  58.                                     <form:option value="PDF">PDF</form:option>                                 
  59.                                 </form:select>
  60.  
  61.                             </div>
  62.                         </div>
  63.  
  64.  
  65.                         <div class="control-group">
  66.                             <div class="controls">
  67.                                 <button class="btn btn-success">α╕₧α╕┤α╕íα╕₧α╣î</button>
  68.  
  69.                             </div>
  70.                         </div>
  71.  
  72.                     </fieldset>
  73.                 </form:form>
  74.  
  75.  
  76.             </div>
  77.         </div>
  78.  
  79.  
  80.     </tiles:putAttribute><tiles:putAttribute name="customScript">
  81.  
  82.         <style>
  83.  
  84.  
  85.             #frmSaleOnlineReport label.error, #frmSaleOnlineReport input.submit {
  86.                 margin-left: 253px;
  87.             }
  88.  
  89.         </style>
  90.  
  91.         <script>
  92.  
  93.  
  94.             $.validator.setDefaults({
  95.                 submitHandler: function () {
  96.  
  97.                     $("#frmSaleOnlineReport").submit();
  98.                 }
  99.             });
  100.  
  101.             function dddd(value, decPlaces) {
  102.  
  103.  
  104.                 return Math.round(value * Math.pow(10, decPlaces)) / Math.pow(10, decPlaces);
  105.             }
  106.  
  107.             $(function () {
  108.  
  109.  
  110.  
  111.                 $("#frmSaleOnlineReport").validate({
  112.                     
  113.                     rules: {
  114. //                        agentIdStart: "required",
  115. //                        agentIdEnd: "required",
  116. //                        covStartDate: "required",
  117. //                        covEndDate: "required",
  118. //                        polStartDate: "required",
  119. //                        polEndDate: "required"
  120.                     },
  121.                    
  122.                     messages: {
  123. //                        agentIdStart: 'α╕üα╕úα╕╕α╕ôα╕▓α╕úα╕░α╕Üα╕╕α╕èα╣êα╕ºα╕çα╕úα╕½α╕▒α╕¬α╕òα╕▒α╕ºα╣üα╕ùα╕Ö',
  124. //                        agentIdEnd: 'α╕üα╕úα╕╕α╕ôα╕▓α╕úα╕░α╕Üα╕╕α╕èα╣êα╕ºα╕çα╕úα╕½α╕▒α╕¬α╕òα╕▒α╕ºα╣üα╕ùα╕Ö',
  125. //                        covStartDate: 'α╕üα╕úα╕╕α╕ôα╕▓α╕úα╕░α╕Üα╕╕α╕èα╣êα╕ºα╕çα╕ºα╕▒α╕Öα╕ùα╕╡α╣êα╕äα╕╕α╣ëα╕íα╕äα╕úα╕¡α╕ç',
  126. //                        covEndDate: 'α╕üα╕úα╕╕α╕ôα╕▓α╕úα╕░α╕Üα╕╕α╕èα╣êα╕ºα╕çα╕ºα╕▒α╕Öα╕ùα╕╡α╣êα╕äα╕╕α╣ëα╕íα╕äα╕úα╕¡α╕ç',
  127. //                        polStartDate: 'α╕üα╕úα╕╕α╕ôα╕▓α╕úα╕░α╕Üα╕╕α╕èα╣êα╕ºα╕çα╕ºα╕▒α╕Öα╕ùα╕╡α╣êα╕¡α╕¡α╕üα╕üα╕úα╕íα╕ÿα╕úα╕úα╕íα╣î',
  128. //                        polEndDate: 'α╕üα╕úα╕╕α╕ôα╕▓α╕úα╕░α╕Üα╕╕α╕èα╣êα╕ºα╕çα╕ºα╕▒α╕Öα╕ùα╕╡α╣êα╕¡α╕¡α╕üα╕üα╕úα╕íα╕ÿα╕úα╕úα╕íα╣î'
  129.                     }
  130.                 });
  131.  
  132.  
  133.  
  134.  
  135.                 var covStartDate = $('#covStartDate').datepicker({dateFormat: 'dd/mm/yy', onSelect: function (selectedDate) {
  136.                         $("#covEndDate").datepicker("option", "minDate", selectedDate);
  137.                     }});
  138.  
  139.                 var covEndDate = $('#covEndDate').datepicker({dateFormat: 'dd/mm/yy', onSelect: function (selectedDate) {
  140.                         $("#covStartDate").datepicker("option", "maxDate", selectedDate);
  141.                     }});
  142.  
  143.                 var polStartDate = $('#polStartDate').datepicker({dateFormat: 'dd/mm/yy', onSelect: function (selectedDate) {
  144.                         $("#polEndDate").datepicker("option", "minDate", selectedDate);
  145.                     }});
  146.  
  147.                 var polEndDate = $('#polEndDate').datepicker({dateFormat: 'dd/mm/yy', onSelect: function (selectedDate) {
  148.                         $("#polStartDate").datepicker("option", "maxDate", selectedDate);
  149.                     }});
  150.                
  151.  
  152.             });
  153.         </script></tiles:putAttribute>
  154. </tiles:insertDefinition>