<! -- # Include file = "connsql. asp" -->
<! -- Author: Yan zhonghui -->
<! -- Time: 2004-03-22 -->
<! -- Modified by: Yan zhonghui -->
<! -- Modification time: --> <HTML>
<Head>
<Title> envelope report printing </title>
</Head>
<Script language = "JavaScript" src = "JS/screen. js"> </SCRIPT>
</Head>
<Body>
<Br>
<%
'It will not be displayed until the text is buffered.
Dim Yb (6)
Response. Buffer = true
Crmid = request ("crm_id ")
SQL = "select crm_id, crm_xm, crm_xxdz, crm_gzdw, crm_yb from crm_khxx where crm_id =" & crmid
Set rs = conn. doexecute (SQL)
If (Rs. recordcount = 0) then
Response. Write "<script language = JavaScript> alert ('No data you want! '); History. Go (-1); </SCRIPT>"
Response. End
Else
Crm_yb = RS ("crm_yb ")
For I = 0 to 5
Yb (I) = mid (crm_yb, I + 1, 1)
Next
'Tell the browser to use word to display the document content
Response. contenttype = "application/MSWord"
'Document settings
Response. addheader "content-disposition", "inline; filepassword1_khxf.doc"
%>
<Div align = "center">
<Table border = "0" width = "600" id = "table7" Height = "340" bgcolor = "# ffffff">
<Tr>
<TD colspan = "5" Height = "30" width = "578">
<Table border = "0" width = "203" id = "table8" Height = "36">
<Tr>
<TD width = "16" align = "center">
<P> <font size = "4" color = "#000080"> <B> <% = Yb (0) %> </B> </font> </P>
</TD>
<TD width = "16" align = "center">
<P> <font size = "4" color = "#000080"> <B> <% = Yb (1) %> </B> </font> </P>
</TD>
<TD width = "16" align = "center">
<P> <font size = "4" color = "#000080"> <B> <% = Yb (2) %> </B> </font> </P>
</TD>
<TD width = "16" align = "center">
<P> <font size = "4" color = "#000080"> <B> <% = Yb (3) %> </B> </font> </P>
</TD>
<TD width = "16" align = "center">
<P> <font size = "4" color = "#000080"> <B> <% = Yb (4) %> </B> </font> </P>
</TD>
<TD width = "16" align = "center">
<P> <B> <font color = "#000080" size = "4"> <% = Yb (5) %> </font> </B> </P>
</TD>
</Tr>
</Table>
</TD>
<TD Height = "108" width = "150" rowspan = "3">
<Table border = "0" width = "100%" id = "table9" Height = "100">
<Tr>
<TD>
<P align = "center"> <font color = "# ffffff"> post </font> </P>
<P align = "center"> <font color = "# ffffff"> mail </font> </P>
</TD>
<TD>
<P align = "center"> <font color = "# ffffff"> ticket </font> </P>
<P align = "center"> <font color = "# ffffff"> location </font> </P>
</TD>
</Tr>
</Table>
</TD>
</Tr>
<Tr>
<TD width = "18" Height = "44"> </TD>
<TD width = "550" Height = "44" colspan = "4"> </TD>
</Tr>
<Tr>
<TD width = "18" Height = "40" rowspan = "2"> </TD>
<TD width = "550" Height = "22" colspan = "4"> <B> <% = RS ("crm_gzdw") %> </B> </TD>
</Tr>
<Tr>
<TD width = "550" Height = "16" colspan = "4"> <HR color = "#000000" size = "0" align = "right">
</TD>
<TD Height = "16" width = "150"> </TD>
</Tr>
<Tr>
<TD width = "18" Height = "49" rowspan = "2"> </TD>
<TD width = "550" colspan = "4" Height = "31"> <B> <% = RS ("crm_xxdz") %> </B> </TD>
<TD width = "150" Height = "49" rowspan = "2"> </TD>
</Tr>
<Tr>
<TD width = "550" colspan = "4" Height = "16"> <HR color = "#000000" size = "0" align = "right">
</TD>
</Tr>
<Tr>
<TD width = "18"> </TD>
<TD width = "176"> </TD>
& Lt; TD width = "248" colspan = "3" & gt;
<P align = "center"> <B> <font size = "5"> <% = RS ("crm_xm ") %> </font> <font size = "5" color = "# ff0000"> </font> <font size = "5"> & lt; accept & gt; </font> </B> </P>
</TD>
<TD width = "150"> </TD>
</Tr>
<Tr>
<TD width = "18" rowspan = "6"> </TD>
<TD width = "176" Height = "33" rowspan = "2"> </TD>
<TD width = "248" colspan = "3" Height = "16"> <HR color = "#000000" size = "0" noshade>
</TD>
<TD width = "150" Height = "33" rowspan = "2"> </TD>
</Tr>
<Tr>
<TD width = "248" colspan = "3" Height = "15"> </TD>
</Tr>
<Tr>
<TD width = "176" Height = "19"> </TD>
<TD width = "49" Height = "19"> </TD>
<TD width = "339" colspan = "3" Height = "19">
<P align = "right"> <font color = "# ffffff" size = "4"> <B> Ltd. & nbsp; </B>
</Font> </P>
</TD>
</Tr>
<Tr>
<TD width = "176" Height = "20"> </TD>
<TD width = "49" Height = "20">
<P align = "right"> </P>
</TD>
<TD width = "339" colspan = "3" Height = "20">
<P align = "right"> <font color = "# ffffff"> <font size = "2"> address: floor 2, Building 6, Hongshan Science Park, North Section of Fuzhou Industrial Road </font> & nbsp;
</Font> </P>
</TD>
</Tr>
<Tr>
& Lt; TD width = "176" Height = "18" & gt; & lt;/TD & gt;
<TD width = "49" Height = "18"> </TD>
& Lt; TD width = "185" Height = "18" & gt; & lt;/TD & gt;
<TD width = "145" Height = "18" colspan = "2">
<P align = "Left"> <font color = "# ffffff"> </font> </P>
</TD>
</Tr>
<Tr>
<TD width = "176" Height = "11"> </TD>
<TD width = "49" Height = "11"> </TD>
<TD width = "339" Height = "11" colspan = "3">
<P align = "right"> <font color = "# ffffff"> zip code: 350002 & nbsp; </font> </P>
</TD>
</Tr>
</Table>
</Div>
</Body>
<% 'disable record set
Rs. close
set rs = nothing
response. flush
response. end
end if %>