<%@ page title="" language="VB" masterpagefile="~/WebForm/MasterPage.master" autoeventwireup="false" inherits="WebForm_ManageUser, App_Web_lw0t2i4q" maintainscrollpositiononpostback="true" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <link href="../StyleSheet/StyleSheet.css" rel="stylesheet" /> <style type="text/css"> .style7 { width: 81%; text-align: left; } .style16 { width: 44%; font-size: small; background-color: #DDF4FF; } .style17 { text-align: right; width: 171px; } .style18 { text-align: left; font-weight: bold; font-size: medium; color: #FFFFFF; background-color: #0080C0; } .auto-style5 { font-size: medium; font-weight: bold; } .auto-style6 { text-align: center; } .auto-style12 { width: 72%; } .auto-style17 { width: 200px; text-align: left; } .auto-style20 { font-weight: normal; } .auto-style21 { width: 240px; text-align: right; font-size: small; } .auto-style22 { font-size: small; } .auto-style28 { width: 100%; height: 50px; } .auto-style29 { text-align: center; font-weight: bold; font-size: medium; color: #000000; background-color: #FFFFFF; } .auto-style30 { font-size: small; text-align: left; height: 22px; } .auto-style13 { font-size: small; color: #FF0000; font-weight: normal; } .auto-style32 { font-size: small; text-align: left; height: 19px; } .auto-style33 { text-align: left; } .auto-style41 { font-weight: normal; font-size: small; width: 240px; text-align: right; } .auto-style42 { width: 240px; } .auto-style43 { font-weight: normal; font-size: small; text-align: right; } </style> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="Main" Runat="Server"> <link href="../StyleSheet/StyleSheet.css" rel="stylesheet" /> <script src="../javascript/selectionboxed.js" type="text/javascript"></script> <script type ="text/javascript"> function confirm_Delete() { if (confirm("ยืนยันการลบข้อมูล") == true) return true else return false } function confirm_LogOut() { if (confirm("ยืนยันการออกจากระบบ") == true) return true else return false } </script> <table class="style7"> <tr> <td> </td> <td class="auto-style5"> ลงทะเบบียนเพื่อขอสิทธิ์เข้าใช้งานระบบ : </td> </tr> <tr> <td> </td> <td class="auto-style5"> <table class="auto-style12" align="center"> <tr> <td class="auto-style30" colspan="2"></td> </tr> <tr> <td class="auto-style32" colspan="2"> <asp:Panel ID="Panel1" runat="server" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px"> <table class="style1"> <tr> <td colspan="2">ข้อมูลส่วนบุคคล <span class="auto-style13">(เฉพาะบุคลากรของคณะวิทยาศาสตร์ มหาวิทยาลัยรามคำแหง เท่านั้น!)</span></td> <td class="auto-style6" rowspan="11" valign="top"> <asp:Image ID="imgProfile" runat="server" Width="150px" ImageUrl="~/Images/icon-user.png" /> </td> </tr> <tr> <td class="auto-style42"> </td> <td> </td> </tr> <tr> <td class="auto-style41">คำนำหน้า:</td> <td> <asp:DropDownList ID="ddlTitle" runat="server" DataTextField="TitleName" DataValueField="TitleID"> </asp:DropDownList> <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="ddlTitle" ErrorMessage="*" Operator="NotEqual" ValueToCompare="กรุณาเลือก" ValidationGroup="1"></asp:CompareValidator> </td> </tr> <tr> <td class="auto-style41">ชื่อ-นามสกุล:</td> <td> <asp:TextBox ID="txtFullName" runat="server" Width="250px"></asp:TextBox> <span class="auto-style20"> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtFullName" CssClass="auto-style22" ErrorMessage="*" ValidationGroup="1"></asp:RequiredFieldValidator> </span> </td> </tr> <tr> <td class="auto-style41">สังกัด:</td> <td> <asp:DropDownList ID="ddlDept" runat="server" DataTextField="DeptName" DataValueField="DeptID"> </asp:DropDownList> <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToValidate="ddlDept" ErrorMessage="*" Operator="NotEqual" ValueToCompare="กรุณาเลือก" ValidationGroup="1"></asp:CompareValidator> </td> </tr> <tr> <td class="auto-style41" valign="top">ความถนัดหรือความเชี่ยวชาญ:</td> <td> <asp:TextBox ID="txtSpeciallist" runat="server" Height="50px" TextMode="MultiLine" Width="400px"></asp:TextBox> </td> </tr> <tr> <td class="auto-style41" valign="top">สถานที่ติดต่อ:</td> <td> <asp:TextBox ID="txtAddress" runat="server" Height="50px" TextMode="MultiLine" Width="400px"></asp:TextBox> </td> </tr> <tr> <td class="auto-style41">เบอร์โทรศัพท์:</td> <td> <asp:TextBox ID="txtPhone" runat="server" Width="250px"></asp:TextBox> <ajaxToolkit:FilteredTextBoxExtender ID="txtPhone_FilteredTextBoxExtender" runat="server" Enabled="True" FilterType="Numbers, Custom" ValidChars="-" TargetControlID="txtPhone"> </ajaxToolkit:FilteredTextBoxExtender> </td> </tr> <tr> <td class="auto-style41">อีเมลล์:</td> <td> <asp:TextBox ID="txtEmail" runat="server" Width="250px"></asp:TextBox> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail" ErrorMessage="* The email format is invalid." Font-Bold="False" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="1"></asp:RegularExpressionValidator> </td> </tr> <tr> <td class="auto-style43" colspan="2"> <asp:Panel ID="Panel3" runat="server" Visible="False"> <table class="style1"> <tr> <td>รูปโพรไฟล์(ไฟล์ประเภท .jpg หรือ .png):</td> <td class="auto-style33"> <asp:FileUpload ID="FileUpload1" runat="server" CssClass="auto-style22" Font-Bold="False" /> <asp:Button ID="btnUpload" runat="server" Text="Upload" /> <asp:Label ID="lbFileUploadName" runat="server" CssClass="auto-style22" Font-Bold="False"></asp:Label> </td> </tr> </table> </asp:Panel> </td> </tr> <tr> <td colspan="2"> </td> </tr> </table> </asp:Panel> </td> </tr> <tr> <td class="style2" colspan="2"> </td> </span> </tr> <tr> <td class="style2" colspan="2"> <asp:Panel ID="Panel2" runat="server" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px"> <table class="style1"> <tr> <td colspan="2"><span class="auto-style20"><strong>ข้อมูลการเข้าใช้งานระบบ</strong></span></td> </tr> <tr> <td class="auto-style42"> </td> <td> </td> </tr> <tr> <td class="auto-style41">User ID :</td> <td> <asp:TextBox ID="txtUserID" runat="server" CssClass="auto-style22" Width="250px"></asp:TextBox> <span class="auto-style20"> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtUserID" CssClass="auto-style22" ErrorMessage="*" ValidationGroup="1"></asp:RequiredFieldValidator> </span></td> </tr> <tr> <td class="auto-style41">User Name (Display Name) :</td> <td> <asp:TextBox ID="txtUserName" runat="server" CssClass="auto-style22" Width="250px"></asp:TextBox> <span class="auto-style20"> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtUserName" CssClass="auto-style22" ErrorMessage="*" ValidationGroup="1"></asp:RequiredFieldValidator> </span></td> </tr> <tr> <td class="auto-style41">Password :</td> <td> <asp:TextBox ID="txtPWD" runat="server" CssClass="auto-style22" TextMode="Password" Width="250px"></asp:TextBox> <span class="auto-style20"> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPWD" CssClass="auto-style22" ErrorMessage="*" ValidationGroup="2"></asp:RequiredFieldValidator> </span></td> </tr> <tr> <td class="auto-style41">Re-Password:</td> <td> <asp:TextBox ID="txtRePWD" runat="server" CssClass="auto-style22" TextMode="Password" Width="250px"></asp:TextBox> <span class="auto-style20"> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtRePWD" CssClass="auto-style22" ErrorMessage="*" ValidationGroup="2"></asp:RequiredFieldValidator> <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPWD" ControlToValidate="txtRePWD" CssClass="auto-style22" ErrorMessage="* password not match" ValidationGroup="2"></asp:CompareValidator> </span></td> </tr> <tr> <td class="auto-style21"><span class="auto-style20">User Role :</span></td> <td> <asp:RadioButtonList ID="rdolstUserRole" runat="server" CssClass="auto-style22" DataTextField="PerDesc" DataValueField="PerID" Font-Bold="False" RepeatDirection="Horizontal"> </asp:RadioButtonList> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="rdolstUserRole" CssClass="auto-style22" ErrorMessage="*" ValidationGroup="1"></asp:RequiredFieldValidator> </span></td> </tr> <tr> <td class="auto-style41">User Status :</td> <td> <asp:RadioButtonList ID="rdolstStatus" runat="server" CssClass="auto-style22" RepeatDirection="Horizontal"> <asp:ListItem Selected="True" Value="10">Active</asp:ListItem> <asp:ListItem Value="00">Inactive</asp:ListItem> </asp:RadioButtonList> </td> </tr> <tr> <td colspan="2"> </td> </tr> </table> </asp:Panel> </td> </tr> <tr> <td class="auto-style17"> </td> <td> </td> </tr> <tr> <td class="auto-style6" colspan="2"> <asp:Button ID="btnAdd" runat="server" Text="เพิ่ม" Width="60px" /> <asp:Button ID="btnUpdate" runat="server" Text="แก้ไข" Width="60px" ValidationGroup="1" /> <asp:Button ID="btnCancel" runat="server" CausesValidation="False" Text="ล้าง" Width="60px" /> </td> </tr> <tr> <td class="auto-style33" colspan="2"> </td> </tr> <tr> <td colspan="2" align="center"> <asp:GridView ID="gvUserList" runat="server" CellPadding="3" AutoGenerateColumns="False" DataKeyNames="UserID" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" style="font-size: small"> <RowStyle ForeColor="#000066" Font-Bold="False" /> <Columns> <asp:BoundField DataField="UserFullname" HeaderText="ชื่อ-นามสกุล" /> <asp:BoundField DataField="DeptName" HeaderText="สังกัด" /> <asp:TemplateField HeaderText="User ID"> <EditItemTemplate> <asp:Label ID="lbUserID_Edit" runat="server" Text='<%# Bind("UserID") %>'></asp:Label> </EditItemTemplate> <ItemTemplate> <asp:Label ID="lbUserID" runat="server" Text='<%# Bind("UserID") %>'></asp:Label> </ItemTemplate> <ItemStyle HorizontalAlign="Left" /> </asp:TemplateField> <asp:TemplateField HeaderText="User Name"> <EditItemTemplate> <asp:TextBox ID="txtUserName_Edit" runat="server" Text='<%# Bind("UserName") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label3" runat="server" Text='<%# Bind("UserName") %>'></asp:Label> </ItemTemplate> <ItemStyle HorizontalAlign="Left" /> </asp:TemplateField> <asp:TemplateField HeaderText="Permission"> <EditItemTemplate> <asp:RadioButtonList ID="rdolstUserRole_Edit" runat="server" RepeatDirection="Horizontal"> </asp:RadioButtonList> <asp:Label ID="lbPermission" runat="server" Text='<%# Bind("Permission") %>' Visible="False"></asp:Label> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%# Bind("PerDesc") %>'></asp:Label> </ItemTemplate> <ItemStyle HorizontalAlign="Left" /> </asp:TemplateField> <asp:TemplateField HeaderText="PWD"> <EditItemTemplate> <asp:HyperLink ID="hlPWD_Edit" runat="server" Text='<%#Bind("PWD") %>'></asp:HyperLink> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%# Bind("PWD") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Active Date" Visible="False"> <ItemTemplate> <asp:Label ID="Label4" runat="server" Text='<%# Bind("ActiveDate") %>'></asp:Label> </ItemTemplate> <ItemStyle HorizontalAlign="Left" /> </asp:TemplateField> <asp:TemplateField HeaderText="UserStatus"> <EditItemTemplate> <asp:RadioButtonList ID="rdolstStatus_Edit" runat="server" RepeatDirection="Horizontal"> <asp:ListItem Selected="True" Value="1">Active</asp:ListItem> <asp:ListItem Value="0">Inactive</asp:ListItem> </asp:RadioButtonList> <asp:Label ID="lbStatus" runat="server" Text='<%#Bind("UserStatus") %>' Visible="False"></asp:Label> </EditItemTemplate> <ItemTemplate> <asp:Label ID="lbStatus" runat="server" Text='<%# Bind("UserStatus") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:CommandField CausesValidation="False" HeaderText="Edit" ShowSelectButton="True" > <ItemStyle HorizontalAlign="Center" /> </asp:CommandField> <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" Visible="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> <EmptyDataTemplate> <strong> <table class="auto-style28" style="border-style: solid; border-width: thin"> <tr> <td class="auto-style29"><strong>empty data</strong></td> </tr> </table> </strong> </EmptyDataTemplate> <FooterStyle BackColor="White" ForeColor="#000066" /> <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" /> <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" /> </asp:GridView> </td> </tr> <tr> <td class="auto-style33" colspan="2"> </td> </tr> </table> </td> </tr> <tr> <td style="text-align: center"> </td> <td class="auto-style6"> <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </ajaxToolkit:ToolkitScriptManager> </td> </tr> </table> </asp:Content>