<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LeftControl.ascx.cs" Inherits="LeftControl" %>

<SCRIPT language=javascript1.2>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT>
<table border="0" cellpadding="0" cellspacing="0" width="252px">
    <tr>
        <td colspan="2">
            <img height="51" src="images/product1_01.gif" width="252" /></td>
    </tr>
    <tr>
        <td colspan="2"><asp:DataList ID="DataList6" runat="server" Width="100%">
            <ItemTemplate>
                <table align="center" border="0" cellpadding="0" cellspacing="0" width="95%">
                    <tr>
                        <td align="right" width="19%" style="height: 20px">
                            <img height="20" src="images/line.gif" width="25" /></td>
                        <td width="81%" style="height: 20px">
                            <a href="Showproduct.aspx?ID=<%#Eval("ProductID") %>" title="<%#Eval("ProductName") %>">
                                <%#GetStr(Eval("ProductName").ToString(),40) %>
                            </a>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList></td>
    </tr>
	
    <tr>
        <td colspan="2">
            <img height="42" src="images/product1_05.gif" width="252" /></td>
    </tr>
    <tr>
        <td colspan="2">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td align="center" width="75%">
                        <label for="textfield">
                            <asp:TextBox ID="txtKeyWord" runat="server"></asp:TextBox></label></td>
                    <td width="25%">
                        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="images/search.gif" OnClick="ImageButton1_Click" /><a href="#"></a></td>
                </tr>
            </table>
        </td>
    </tr>

	
	
	
	    <tr>
        <td colspan="2">
            <img height="42" src="images/product1_06.gif" width="252" /></td>
    </tr>
    <tr>
        <td align="center" width="19%">
            <img height="14" src="images/left_go.gif" width="14" onClick="showsubmenu(0)"  style="cursor:hand"/></td>
        <td width="81%">
            <a class="bottom_nav" href="javascript:void(0)" onClick="showsubmenu(0)" ><strong><span style="color: #00699b">音频仪器列表</span></strong></a></td>
    </tr>
    <tr style="color: #00699b;display:none" id="submenu0">
        <td colspan="2">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td>
                        <asp:DataList ID="DataList3" runat="server" Width="100%">
                            <ItemTemplate>
                                <table align="center" border="0" cellpadding="0" cellspacing="0" width="95%">
                                    <tr>
                                        <td align="right" width="19%" style="height: 20px">
                                            <img height="20" src="images/line.gif" width="25" /></td>
                                        <td width="81%" style="height: 20px">
                                        <a href="Product.aspx?ClassID=<%#Eval("ID") %>"> <%#Eval("ClassName")%></a>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:DataList>
                        </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td align="center" width="19%">
         <%
        if (myds_1.Tables[0].Rows.Count > 0)
        {
         %>
		  <img height="14" src="images/left_go.gif" width="14" onClick="showsubmenu(1)"  style="cursor:hand"/>
		 <%
		}
		else
		{
		%>
		  <img height="14" src="images/left_to.gif" width="14" />
		<%
		}
		%>
		</td>
        <td width="81%">
         <%
            if (myds_1.Tables[0].Rows.Count > 0)
            {
         %>
            <a class="bottom_nav" href="javascript:void(0)" onClick="showsubmenu(1)" ><strong><span style="color: #00699b">视频仪器列表</span></strong></a>
            
         <%
         
            }
            else
            {
                
          %>
                
                
            <a class="bottom_nav" href="Product.aspx?ClassID=4"><strong><span style="color: #00699b">视频仪器列表</span></strong></a>
                <%

            }
             
       %>   
    </tr>
     <tr style="color: #00699b;display:none" id="submenu1">
        <td colspan="2">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td>
             <asp:DataList ID="DataList4" runat="server" Width="100%">
             <ItemTemplate>
            <table align="center" border="0" cellpadding="0" cellspacing="0" width="95%">
                <tr>
                    <td align="right" width="19%" style="height: 20px">
                        <img height="20" src="images/line.gif" width="25" /></td>
                    <td width="81%" style="height: 20px">
                        <a href="Product.aspx?ClassID=<%#Eval("ID") %>"> <%#Eval("ClassName")%></a>
                    </td>
                </tr>

            </table>
                            </ItemTemplate>
                        </asp:DataList></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td align="center">
            
		 <%
            if (myds_2.Tables[0].Rows.Count > 0)
            {
         %>
		  <img height="14" src="images/left_go.gif" width="14" onClick="showsubmenu(2)"  style="cursor:hand"/>
		<%
		}
		
		else
		
            {
		%>
		  <img height="14" src="images/left_to.gif" width="14" />
		<%
		}
		%>
			</td>
        <td>
         <%
            if (myds_1.Tables[0].Rows.Count > 0)
            {
         %>
            <a class="bottom_nav" href="javascript:void(0)" onClick="showsubmenu(2)" ><strong><span style="color: #00699b">通用仪器列表</span></strong></a>
            
         <%
         
            }
            else
            {
                
                %>
                
                
            <a class="bottom_nav" href="Product.aspx?ClassID=5"><strong><span style="color: #00699b">通用仪器列表</span></strong></a>
                <%

            }
             
       %>   
        
            
    </tr>
     <tr style="color: #00699b;display:none" id="submenu2">
        <td colspan="2"><asp:DataList ID="DataList5" runat="server" Width="100%">
            <ItemTemplate>
                <table align="center" border="0" cellpadding="0" cellspacing="0" width="95%">
                    <tr>
                        <td align="right" width="19%" style="height: 20px">
                            <img height="20" src="images/line.gif" width="25" /></td>
                        <td width="81%" style="height: 20px">
                    <a href="Product.aspx?ClassID=<%#Eval("ID") %>"> <%#Eval("ClassName")%></a>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList></td>
    </tr>
</table>
