<%@ page title="" language="VB" masterpagefile="~/WebForm/MasterPage.master" autoeventwireup="false" inherits="WebRUDB_WebForm_Search, App_Web_lw0t2i4q" maintainscrollpositiononpostback="true" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .auto-style3 { text-align: center; } .auto-style4 { text-align: left; } .auto-style5 { text-align: left; font-size: medium; } .auto-style7 { width: 118px; } .auto-style8 { width: 112px; } .auto-style10 { text-align: right; } .auto-style12 { width: 118px; text-align: right; } .auto-style13 { margin-left: 0px; } .auto-style14 { width: 87%; height: 217px; } .auto-style15 { width: 735px; } .auto-style16 { width: 8px; } .auto-style17 { color: #808080; text-align: left; } .auto-style19 { height: 33px; background-color: #C0C0C0; } .auto-style21 { text-align: right; height: 33px; background-color: #C0C0C0; } .auto-style29 { height: 27px; text-align: center; } .auto-style28 { width: 100%; height: 50px; } </style> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="Main" Runat="Server"> <link href="../StyleSheet/StyleSheet.css" rel="stylesheet" /> <script type ="text/javascript"> function confirm_Delete() { if (confirm("ยืนยันการลบข้อมูล") == true) return true else return false } </script> <table class="style1"> <tr> <td class="auto-style5">ค้นหา <strong>:</strong></td> </tr> <tr> <td class="auto-style4"> <table class="style1"> <tr> <td> <table align="center" class="auto-style15" bgcolor="#EEEEEE"> <tr> <td class="auto-style21">Sort by:</td> <td class="auto-style19"> <asp:DropDownList ID="lbSortBy" runat="server"> <asp:ListItem Value="0">Select</asp:ListItem> <asp:ListItem Value="TitleName">ชื่อเรื่อง</asp:ListItem> <asp:ListItem Value="Author">ผู้แต่ง</asp:ListItem> <asp:ListItem Value="PublicYear">ปีที่พิมพ์</asp:ListItem> </asp:DropDownList> </td> <td class="auto-style21">In order:</td> <td class="auto-style19"> <asp:DropDownList ID="lbInOrder" runat="server"> <asp:ListItem>ASC</asp:ListItem> <asp:ListItem>DESC</asp:ListItem> </asp:DropDownList> </td> <td class="auto-style21">Result/Page:</td> <td class="auto-style19" colspan="2"> <asp:DropDownList ID="ddlResultPage" runat="server"> <asp:ListItem>10</asp:ListItem> <asp:ListItem>50</asp:ListItem> <asp:ListItem>100</asp:ListItem> <asp:ListItem>All</asp:ListItem> </asp:DropDownList> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td class="auto-style8"> </td> <td> </td> </tr> <tr> <td colspan="7"> <table align="center" class="auto-style14" bgcolor="#EEEEEE"> <tr> <td class="auto-style12">ชื่อเรื่อง/Keyword:</td> <td> <asp:TextBox ID="txtTitleName" runat="server" Width="350px"></asp:TextBox> </td> <td> </td> <td> </td> <td class="auto-style16"> </td> <td> </td> <td> </td> </tr> <tr> <td class="auto-style12">ผู้แต่ง:</td> <td> <asp:TextBox ID="txtAuthor" runat="server" Width="350px"></asp:TextBox> </td> <td> </td> <td> </td> <td class="auto-style16"> </td> <td> </td> <td> </td> </tr> <tr> <td class="auto-style12">ภาควิชา:</td> <td> <asp:TextBox ID="txtDept" runat="server" Width="350px"></asp:TextBox> </td> <td> </td> <td> </td> <td class="auto-style16"> </td> <td> </td> <td> </td> </tr> <tr> <td class="auto-style12">ปีที่พิมพ์:</td> <td> <asp:DropDownList ID="lbYear" runat="server" DataTextField="PublicYear" DataValueField="PublicYear"> </asp:DropDownList> </td> <td> </td> <td> </td> <td class="auto-style16"> </td> <td> </td> <td> </td> </tr> <tr> <td class="auto-style12">ประเภทสิ่งพิมพ์:</td> <td> <asp:DropDownList ID="lbType" runat="server"> <asp:ListItem Value="0">All</asp:ListItem> <asp:ListItem Value="1">หนังสือ/ตำรา</asp:ListItem> <asp:ListItem Value="2">บทความในหนังสือ</asp:ListItem> <asp:ListItem Value="3">วารสาร</asp:ListItem> <asp:ListItem Value="4">Proceedings</asp:ListItem> <asp:ListItem Value="5">โครงการวิจัย</asp:ListItem> </asp:DropDownList> </td> <td> </td> <td> </td> <td class="auto-style16"> </td> <td> </td> <td> </td> </tr> <tr> <td class="auto-style12">ระดับ:</td> <td> <asp:DropDownList ID="lbItemLevel" runat="server"> <asp:ListItem>All</asp:ListItem> <asp:ListItem>ชาติ</asp:ListItem> <asp:ListItem>International</asp:ListItem> </asp:DropDownList> </td> <td> </td> <td> </td> <td class="auto-style16"> </td> <td> </td> <td> </td> </tr> <tr> <td class="auto-style12"> </td> <td> </td> <td> </td> <td> </td> <td class="auto-style16"> </td> <td> </td> <td> </td> </tr> <tr> <td class="auto-style7"> </td> <td class="auto-style10" colspan="6"> <table class="style1"> <tr> <td class="auto-style17">กรุณาเลือกอย่างน้อย 1 เงื่อนไข หรือไม่เลือกเพื่อแสดงข้อมูลทั้งหมด</td> <td> <asp:Button ID="btnSearch" runat="server" Text="ค้นหา" CssClass="auto-style13" Height="30px" Width="80px" /> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td class="auto-style29"> </td> </tr> <tr> <td align="center"> <asp:GridView ID="gvItems" runat="server" AutoGenerateColumns="False" CellPadding="3" ForeColor="#333333" GridLines="None" Width="800px" DataKeyNames="ItemID" AllowPaging="True" AllowSorting="True" OnSorting="OnSorting" OnPageIndexChanging="OnPageIndexChanging" PageSize="10" > <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> <Columns> <asp:TemplateField HeaderText="ชื่อเรื่อง" SortExpression="TitleName"> <EditItemTemplate> <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("TitleName") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:HyperLink ID="hlTitleName" runat="server" Text='<%# Bind("TitleName") %>'></asp:HyperLink> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="Author" HeaderText="ผู้แต่ง" SortExpression="Author" /> <asp:BoundField DataField="ItemDept" HeaderText="ภาควิชา" SortExpression="ItemDept" /> <asp:BoundField DataField="PublicYear" HeaderText="ปีที่พิมพ์" SortExpression="PublicYear" /> <asp:BoundField DataField="PublicDesc" HeaderText="ประเภทสิ่งพิมพ์" SortExpression="PublicDesc" /> <asp:BoundField DataField="ItemLevel" HeaderText="ระดับ" SortExpression="ItemLevel" /> <asp:TemplateField HeaderText="ไฟล์แนบ"> <EditItemTemplate> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:ImageButton ID="imgbtnAttFile" runat="server" ImageUrl="~/Images/Circle-down-icon.png" Width="24px" CommandName="MyCommand" /> <asp:Label ID="lbFilePath" runat="server" Text='<%# Bind("GetFileUpload") %>' Visible="False"></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="ดูข้อมูล"> <EditItemTemplate> <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:ImageButton ID="imgbtnView" runat="server" ImageUrl="~/Images/Search2.png" Width="24px" /> <asp:Label ID="Label1" runat="server"></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:CoMMandField ShowEditButton="True" ButtonType="Image" CancelImageUrl="~/Images/Button-Cancel-icon-16.png" EditImageUrl="~/Images/Edit.jpg" UpdateImageUrl="~/Images/Button-Reload-icon-16.png" HeaderText="Edit" CausesValidation="False" /> <asp:TemplateField ShowHeader="False" HeaderText="ลบ"> <ItemTemplate> <asp:ImageButton ID="imgbtnDelete" runat="server" AlternateText="Delete" CausesValidation="False" CoMMandName="Delete" OnClientClick="return confirm_Delete()" ImageUrl="~/Images/Actions-edit-delete-icon-16.png" /> </ItemTemplate> </asp:TemplateField> </Columns> <EditRowStyle BackColor="#999999" /> <EmptyDataTemplate> <strong> <table class="auto-style28" style="border-style: solid; border-width: thin"> <tr> <td class="auto-style3"><strong>empty data</strong></td> </tr> </table> </strong> </EmptyDataTemplate> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#E9E7E2" /> <SortedAscendingHeaderStyle BackColor="#506C8C" /> <SortedDescendingCellStyle BackColor="#FFFDF8" /> <SortedDescendingHeaderStyle BackColor="#6F8DAE" /> </asp:GridView> </td> </tr> </table> </td> </tr> <tr> <td class="auto-style3"> </td> </tr> </table> </asp:Content>