⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 css_print.php

📁 十大精典PHP项目开发全程案例+代码
💻 PHP
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>物流配送信息网</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<style>
@media print{
div{display:none}
.bgnoprint{
	background:display:none;
}
.noprint{
	display:none
}
}
body {
	margin-top: 0px;
}
</style>
<script>     
  function printview()     
  {     
  document.all.WebBrowser1.ExecWB(7,1) ;
  window.close();  
  }     
 </script> 
<object   ID='WebBrowser1'   WIDTH=0   HEIGHT=0   CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></object>
<body class="bgnoprint">
<table width="935" height="145" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td background="images/index_03.gif" class="bgnoprint">&nbsp;</td>
  </tr>
</table>
<table  class="ziti" width="935" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#666666">
  
  <tr>
    <td width="128" height="26" align="center" bgcolor="#FFFFFF">客户姓名</td>
    <td width="177" align="center" bgcolor="#FFFFFF">电话</td>
    <td width="257" align="center" bgcolor="#FFFFFF">联系地址</td>
    <td width="100" align="center" bgcolor="#FFFFFF">操作</td>
  </tr>
 <?php 
 include("conn/conn.php");
 $query=mysql_query("select * from tb_customer ");
 while($myrow=mysql_fetch_array($query)){
  ?>
  <tr>
    <td height="26" align="center" bgcolor="#FFFFFF"><?php echo $myrow[customer_user];?></td>
    <td align="center" bgcolor="#FFFFFF"><?php echo $myrow[customer_tel];?></td>
    <td align="center" bgcolor="#FFFFFF"><?php echo $myrow[customer_address];?></td>
    <td align="center" bgcolor="#FFFFFF"><a href="delete_customer.php?delete=<?php echo $myrow[customer_id];?>">删除</a></td>
  </tr>

  <?php }?>
<tr>
    <td height="26" colspan="4" align="center" bgcolor="#FFFFFF"><div><a href="#" onClick="window.print();">客户详单打印</a>&nbsp;<a href="#" onClick="printview();">打印预览</a></div></td>
  </tr>
</table>
<table class="bgnoprint" width="935" height="50" border="0" cellpadding="0" cellspacing="0" background="images/index_07.gif">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -