麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁(yè) > 辦公 > Excel > 正文

生成Excel文件范例(1):服務(wù)端

2024-08-23 19:59:22
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
中國(guó)最大的web開(kāi)發(fā)資源網(wǎng)站及技術(shù)社區(qū),
<?php
    ob_start();

?>
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/tr/rec-html40">

<head>
<meta http-equiv=content-type content="text/html; charset=gb2312">
<meta name=progid content=excel.sheet>
<meta name=generator content="microsoft excel 10">
<link rel=file-list href="page.files/filelist.xml">
<style id="book1_10519_styles">
<!--table
    {mso-displayed-decimal-separator:"/.";
    mso-displayed-thousand-separator:"/,";}
.font510519
    {color:windowtext;
    font-size:9.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:宋體;
    mso-generic-font-family:auto;
    mso-font-charset:134;}
.xl1510519
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:12.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:宋體;
    mso-generic-font-family:auto;
    mso-font-charset:134;
    mso-number-format:general;
    text-align:general;
    vertical-align:middle;
    mso-background-source:auto;
    mso-pattern:auto;
    white-space:nowrap;}
.xl2210519
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:12.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:宋體;
    mso-generic-font-family:auto;
    mso-font-charset:134;
    mso-number-format:general;
    text-align:general;
    vertical-align:middle;
    border:.5pt solid windowtext;
    background:silver;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl2310519
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:12.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:宋體;
    mso-generic-font-family:auto;
    mso-font-charset:134;
    mso-number-format:general;
    text-align:general;
    vertical-align:middle;
    border:.5pt solid windowtext;
    mso-background-source:auto;
    mso-pattern:auto;
    white-space:nowrap;}
ruby
    {ruby-align:left;}
rt
    {color:windowtext;
    font-size:9.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:宋體;
    mso-generic-font-family:auto;
    mso-font-charset:134;
    mso-char-type:none;}
-->
</style>
</head>

<body>
<!--[if !excel]>  <![endif]-->
<!--下列信息由 microsoft excel 的“發(fā)布為 web 頁(yè)”向?qū)伞?->
<!--如果同一條目從 excel 中重新發(fā)布,則所有位于 div 標(biāo)記之間的信息均將被替換。-->
<!----------------------------->
<!--“從 excel 發(fā)布 web 頁(yè)”向?qū)ч_(kāi)始-->
<!----------------------------->

<div id="book1_10519" align=center x:publishsource="excel">
<?php
    if(false==isset($_post["data"]))
    {
        echo    "沒(méi)有要顯示的數(shù)據(jù)"    ;
        exit;
    }
?>
<table x:str border=0 cellpadding=0 cellspacing=0 width=519 style='border-collapse:
collapse;table-layout:fixed;width:389pt'>
<col width=72 span=2 style='width:54pt'>
<col width=163 style='mso-width-source:userset;mso-width-alt:5216;width:122pt'>
<col width=87 style='mso-width-source:userset;mso-width-alt:2784;width:65pt'>
<col width=125 style='mso-width-source:userset;mso-width-alt:4000;width:94pt'>
<tr height=19 style='height:14.25pt'>
  <td height=19 class=xl1510519 width=72 style='height:14.25pt;width:54pt'></td>
  <td class=xl1510519 width=72 style='width:54pt'></td>
  <td class=xl1510519 width=163 style='width:122pt'></td>
  <td class=xl1510519 width=87 style='width:65pt'></td>
  <td class=xl1510519 width=125 style='width:94pt'></td>
</tr>
<tr height=19 style='height:14.25pt'>
  <td height=19 class=xl1510519 style='height:14.25pt'></td>
  <td class=xl2210519>名稱(chēng)</td>
  <td class=xl2210519 style='border-left:none'>地址</td>
  <td class=xl2210519 style='border-left:none'>qq號(hào)</td>
  <td class=xl2210519 style='border-left:none'>電子郵件</td>
</tr>
<?php

    foreach($_post["data"] as $val)
    {
        extract($val)    ;
?>

<tr height=19 style='height:14.25pt'>
  <td height=19 class=xl1510519 style='height:14.25pt'></td>
  <td class=xl2310519 style='border-top:none'><?php echo $username ; ?></td>
  <td class=xl2310519 style='border-top:none;border-left:none'><?php echo $add ; ?></td>
  <td class=xl2310519 style='border-top:none;border-left:none'><?php echo $qq ; ?> </td>
  <td class=xl2310519 style='border-top:none;border-left:none'><?php echo $email ; ?></td>
</tr>
<?php
    }
?>

<![if supportmisalignedcolumns]>
<tr height=0 style='display:none'>
  <td width=72 style='width:54pt'></td>
  <td width=72 style='width:54pt'></td>
  <td width=163 style='width:122pt'></td>
  <td width=87 style='width:65pt'></td>
  <td width=125 style='width:94pt'></td>
</tr>
<![endif]>
</table>

</div>


<!----------------------------->
<!--“從 excel 發(fā)布 web 頁(yè)”向?qū)ЫY(jié)束-->
<!----------------------------->
</body>

</html>
<?php
    $outstr=ob_get_contents();
    ob_end_clean();
     
        header("content-type: application/octet-stream");
        header("accept-ranges: bytes");
        header("accept-length: ".strlen($outstr));
        header("content-disposition: attachment; filename=test.xls");
        // 輸出文件內(nèi)容          
        echo $outstr    ;
?> 
發(fā)表評(píng)論 共有條評(píng)論
用戶(hù)名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 免费毛片在线 | 日本欧美一区二区 | 国产88久久久国产精品免费二区 | 国产亚洲精品精 | 一级做a爱片性色毛片 | 一级片免费在线 | 1级毛片在线观看 | 欧洲精品色 | 久久成人视屏 | 1区2区3区国产| 精品亚洲视频在线 | 青青草最新网址 | 国产寡妇xxxxxxxx性开放 | 成人一级在线 | 国产精品自拍99 | 久草在线高清视频 | 久久噜噜噜 | av在线免费看网址 | 天天夜夜草 | 日本黄色一级视频 | 福利一区二区三区视频在线观看 | www.射| 日本a∨精品中文字幕在线 欧美1—12sexvideos | 中国av一级片 | 性欧美性欧美 | 国产色片在线观看 | a一级黄色毛片 | 国产亚洲美女精品久久久2020 | 日本精品久久久一区二区三区 | 91懂色 | 国产精品久久久久久久久久久久午夜 | 亚洲国产超高清a毛毛片 | 国产艳妇av视国产精选av一区 | 精品一区二区久久久久 | 激情宗合网 | 黄色网址免费在线播放 | 毛片视频在线免费观看 | 高清av在线 | av影片在线观看 | 亚洲成人入口 | 久久精品一级 |