<%@ Language=VBScript %> Search Result <% Dim strOpt,strType,sqlText,strYear set Conn=server.createobject("adodb.connection") Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("../database/Tariff.mdb") strOpt = Request.QueryString("opt") strType = Request.QueryString("Type") strYear = Request.QueryString("Year") %>
Bangladesh Customs Bangladesh Flags


<% if strOpt="A" And strType <> "" then sqlText="SELECT * FROM ChapterDesc WHERE Sec_Index ='" & strType & _ "' and Year ='" & strYear & "' order by ChapId ASC" set rsChap = Server.CreateObject("ADODB.Recordset") rsChap.Open sqlText,Conn if rsChap.EOF = false then Response.Write "Details of " & strType & " in year " & strYear Response.Write"

" %>
<% do while not rsChap.EOF %> <% rsChap.MoveNext Loop rsChap.Close 'end if %>
 
Chapter
 
Chapter Description
 
 
PageNo
 
   
<%=rsChap("ChapterDesc")%>
 
<%=rsChap("PageNo")%>
<% end if end if %> <% if strOpt="B" And strType <> "" then sqlText="SELECT * FROM ChapterDesc WHERE ChapId ='" & strType & _ "' and Year ='" & strYear & "'" set rsChap = Server.CreateObject("ADODB.Recordset") rsChap.Open sqlText,Conn if rsChap.EOF = false then Response.Write "Details of " & strType & " in year " & strYear Response.Write"

" %>
<% do while not rsChap.EOF %> <% rsChap.MoveNext Loop rsChap.Close 'end if %>
 
Chapter
 
Chapter Description
 
 
Section
 
 
PageNo
 
   
<%=rsChap("ChapterDesc")%>
 
<%=rsChap("Sec_Index")%>
 
<%=rsChap("PageNo")%>
<% end if end if %> <% if strOpt="C" And strType <> "" then sqlText="SELECT * FROM ChapterDesc WHERE ChapterDesc like '%" & strType & "%'" & _ " and Year ='" & strYear & "' order by ChapId ASC" set rsChap = Server.CreateObject("ADODB.Recordset") rsChap.Open sqlText,Conn if rsChap.EOF = false then Response.Write "Details of " & strType & " in year " & strYear Response.Write"

" %>
<% do while not rsChap.EOF %> <% rsChap.MoveNext Loop rsChap.Close 'end if %>
 
Chapter
 
Chapter Description
 
 
Section
 
 
PageNo
 
   
<%=rsChap("ChapterDesc")%>
 
<%=rsChap("Sec_Index")%>
 
<%=rsChap("PageNo")%>
<% end if end if %> <% if strOpt="D" then %>
<% sqlText = "select Sec_Type from Section_Type WHERE Year ='" & strYear & "'" set rsAll = Server.CreateObject("ADODB.Recordset") rsAll.Open sqlText,Conn Response.Write "Details of All Bangladesh Customs Tariff in year " & strYear Response.Write"

" %>
    <%while not rsAll.EOF%>
  • <%=rsAll("Sec_Type")%>
      <% sqlText = "select ChapId,Filename from ChapterDesc where Sec_Index ='" & rsAll("Sec_Type") & "'" & _ " AND Year ='" & strYear & "'" set rsChap = Server.CreateObject("ADODB.Recordset") rsChap.Open sqlText,Conn while not rsChap.EOF%>
    • " title="Detail Information"> <%=rsChap("ChapId")%> <%rsChap.MoveNext wend rsAll.movenext %>
    <% wend end if %>