Browse Source

fix page bug

GGican 8 years ago
parent
commit
18dda3bff2

+ 9 - 1
resources/views/admin/print/table_1_eight.blade.php

@@ -319,10 +319,18 @@
 	</table>
 	</table>
  </div>
  </div>
   <div align="center"> 
   <div align="center"> 
-     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="javascrīpt:window.print()">
+     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="printed()">
   </div>
   </div>
   <style>
   <style>
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
   </style>
   </style>
+
+<script>
+	function printed(){
+		document.getElementById('datasubmit').style.display = "none";
+		window.print();
+		document.getElementById('datasubmit').style.display = "block";
+	}
+</script>
  </body>
  </body>
    <html>
    <html>

+ 8 - 1
resources/views/admin/print/table_2_nine.blade.php

@@ -288,10 +288,17 @@
 	</table>
 	</table>
  </div>
  </div>
   <div align="center"> 
   <div align="center"> 
-     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="javascrīpt:window.print()">
+     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="printed()">
   </div>
   </div>
   <style>
   <style>
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
   </style>
   </style>
+<script>
+	function printed(){
+		document.getElementById('datasubmit').style.display = "none";
+		window.print();
+		document.getElementById('datasubmit').style.display = "block";
+	}
+</script>
  </body>
  </body>
    <html>
    <html>

+ 8 - 1
resources/views/admin/print/table_3_seven.blade.php

@@ -246,10 +246,17 @@
 	</table>
 	</table>
  </div>
  </div>
   <div align="center"> 
   <div align="center"> 
-     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="javascrīpt:window.print()">
+     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="printed()">
   </div>
   </div>
   <style>
   <style>
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
   </style>
   </style>
+   <script>
+	   function printed(){
+		   document.getElementById('datasubmit').style.display = "none";
+		   window.print();
+		   document.getElementById('datasubmit').style.display = "block";
+	   }
+   </script>
  </body>
  </body>
    <html>
    <html>

+ 16 - 6
resources/views/admin/print/table_4_one.blade.php

@@ -43,21 +43,21 @@
 	<table border="1" cellspacing="0" cellpadding="0" width="980" align="center" style="margin-top:10px;">
 	<table border="1" cellspacing="0" cellpadding="0" width="980" align="center" style="margin-top:10px;">
 		<tr height="50">
 		<tr height="50">
 			<td width="140" align="center">被征收人姓名</td>
 			<td width="140" align="center">被征收人姓名</td>
-			<td  align="center" colspan="2">{{ $table->bzc_name }}</td>
+			<td align="center" colspan="2">{{ $table->bzc_name }}</td>
 			<td width="140" align="center">被征收房屋地址</td>
 			<td width="140" align="center">被征收房屋地址</td>
-			<td colspan="3">{{ $table->bzc_addr }}</td>
+			<td colspan="3" align="center">{{ $table->bzc_addr }}</td>
 		</tr>
 		</tr>
 		<tr height="50">
 		<tr height="50">
 			<td width="140" align="center">联系电话</td>
 			<td width="140" align="center">联系电话</td>
-			<td  align="center" colspan="2">{{ $table->bzc_tel }}</td>
+			<td colspan="2" align="center">{{ $table->bzc_tel }}</td>
 			<td width="140" align="center">被征收人身份证号</td>
 			<td width="140" align="center">被征收人身份证号</td>
-			<td colspan="3">{{ $table->bzc_cardid }}</td>
+			<td colspan="3" align="center">{{ $table->bzc_cardid }}</td>
 		</tr>
 		</tr>
 		<tr height="50">
 		<tr height="50">
 			<td width="140" align="center">产权性质</td>
 			<td width="140" align="center">产权性质</td>
 			<td  align="center" colspan="2">{{ $table->property }}</td>
 			<td  align="center" colspan="2">{{ $table->property }}</td>
 			<td width="140" align="center">用途</td>
 			<td width="140" align="center">用途</td>
-			<td colspan="3">{{ $table->used }}</td>
+			<td colspan="3" align="center">{{ $table->used }}</td>
 		</tr>
 		</tr>
 		<tr height="50">
 		<tr height="50">
 			<td width="140" align="center">拆迁补偿总金额</td>
 			<td width="140" align="center">拆迁补偿总金额</td>
@@ -122,11 +122,21 @@
 		</tr>
 		</tr>
 	</table>
 	</table>
  </div>
  </div>
+
   <div align="center"> 
   <div align="center"> 
-     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="javascrīpt:window.print()">
+     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="printed()">
   </div>
   </div>
   <style>
   <style>
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
   </style>
   </style>
+
+	<script>
+		function printed(){
+			document.getElementById('datasubmit').style.display = "none";
+			window.print();
+			document.getElementById('datasubmit').style.display = "block";
+		}
+	</script>
+
  </body>
  </body>
    <html>
    <html>

+ 8 - 1
resources/views/admin/print/table_5_six.blade.php

@@ -116,10 +116,17 @@
 	</table>
 	</table>
  </div>
  </div>
   <div align="center"> 
   <div align="center"> 
-     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="javascrīpt:window.print()">
+     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="printed()">
   </div>
   </div>
   <style>
   <style>
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
   </style>
   </style>
+   <script>
+	   function printed(){
+		   document.getElementById('datasubmit').style.display = "none";
+		   window.print();
+		   document.getElementById('datasubmit').style.display = "block";
+	   }
+   </script>
  </body>
  </body>
    <html>
    <html>

+ 8 - 1
resources/views/admin/print/table_6_four.blade.php

@@ -91,10 +91,17 @@
 	</table>
 	</table>
  </div>
  </div>
   <div align="center"> 
   <div align="center"> 
-     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="javascrīpt:window.print()">
+     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="printed()">
   </div>
   </div>
   <style>
   <style>
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
   </style>
   </style>
+   <script>
+	   function printed(){
+		   document.getElementById('datasubmit').style.display = "none";
+		   window.print();
+		   document.getElementById('datasubmit').style.display = "block";
+	   }
+   </script>
  </body>
  </body>
    <html>
    <html>

+ 8 - 1
resources/views/admin/print/table_7_two.blade.php

@@ -124,10 +124,17 @@
 	</table>
 	</table>
  </div>
  </div>
   <div align="center" style="margin-top:20px;margin-left:"> 
   <div align="center" style="margin-top:20px;margin-left:"> 
-     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="javascrīpt:window.print()">
+     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="printed()">
   </div>
   </div>
   <style>
   <style>
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
   </style>
   </style>
+   <script>
+	   function printed(){
+		   document.getElementById('datasubmit').style.display = "none";
+		   window.print();
+		   document.getElementById('datasubmit').style.display = "block";
+	   }
+   </script>
  </body>
  </body>
    <html>
    <html>

+ 8 - 1
resources/views/admin/print/table_8_three.blade.php

@@ -118,10 +118,17 @@
 	</table>
 	</table>
  </div>
  </div>
   <div align="center"> 
   <div align="center"> 
-     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="javascrīpt:window.print()">
+     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="printed()">
   </div>
   </div>
   <style>
   <style>
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
   </style>
   </style>
+   <script>
+	   function printed(){
+		   document.getElementById('datasubmit').style.display = "none";
+		   window.print();
+		   document.getElementById('datasubmit').style.display = "block";
+	   }
+   </script>
  </body>
  </body>
    <html>
    <html>

+ 8 - 1
resources/views/admin/print/table_9_five.blade.php

@@ -110,10 +110,17 @@
 	</table>
 	</table>
  </div>
  </div>
   <div align="center"> 
   <div align="center"> 
-     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="javascrīpt:window.print()">
+     <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="printed()">
   </div>
   </div>
   <style>
   <style>
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
     .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
   </style>
   </style>
+   <script>
+	   function printed(){
+		   document.getElementById('datasubmit').style.display = "none";
+		   window.print();
+		   document.getElementById('datasubmit').style.display = "block";
+	   }
+   </script>
  </body>
  </body>
    <html>
    <html>