<%@ Page Language="C#" AutoEventWireup="true" CodeFile="person.aspx.cs" Inherits="person" ValidateRequest="false" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>客户询盘翻译后台</title>
<link rel="stylesheet" type="text/css" href="css.css" />
<style type="text/css">
.table01{ background:#E8EFF5; width:100%; line-height:30px;}
</style>
</head>
<body>
<form runat="server">
<div id="right">
  <div id="title">人员管理</div>
  <div id="con">
       <table border="0" width="99%" class="table01">
        <tr>
          <td colspan="3" style="text-align:center; font-size:14px;"><strong>添加人员</strong></td>
        </tr>
        <tr>
          <td width="214"></td>
          <td align="right">职位类型:&nbsp;</td>
          <td>&nbsp;
              <asp:DropDownList ID="role" runat="server"></asp:DropDownList>
          </td>
        </tr>
        <tr id="trans">
          <td></td>
          <td width="94" style="text-align:right"> 翻译语种:&nbsp;</td>
          <td width="462">&nbsp;&nbsp;
              <asp:DropDownList ID="langlist" runat="server">
              </asp:DropDownList></td>
        </tr>
        <tr>
          <td></td>
          <td width="94" style="text-align:right"> 人员姓名:&nbsp;</td>
          <td width="462">&nbsp;
              <asp:TextBox ID="realname" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td  style="text-align:right">登陆用户名:&nbsp;</td>
          <td>&nbsp;
              <asp:TextBox ID="etwadminname" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
          <td></td>
          <td  style="text-align:right">初始密码:&nbsp;</td>
          <td>&nbsp;
              <asp:TextBox ID="etwadminpwd" runat="server">888888</asp:TextBox></td>
        </tr>
        <tr>
          <td></td>
          <td>&nbsp;</td>
          <td>&nbsp;&nbsp;
              <asp:Button ID="Button1" runat="server" Text="添加" OnClick="Button1_Click" /></td>
        </tr>
      </table>
    <p> 信息如下表</p>
    <table width="99%" border="1" class="tables" cellpadding="0" cellspacing="0" style="font-size:13px; text-align:center;">
             <tr class="gren">
               <th width="5%">序号</th>
               <th width="25%" >姓 名</th>
               <th width="10%" >职位名称</th>
               <th width="20%" >用户名</th>
               <th width="10%" >修改/删除</th> 
             </tr>
             <asp:Repeater ID="Repeater1" runat="server" >
              <ItemTemplate>
                <tr>
                 <td><%#Container.ItemIndex + 1 %></td>
                 <td><%#Eval("realname")%></td>
                 <td><%#Cutrole(Eval("roleid").ToString())%></td>  
                 <td><%#Eval("etwadminname")%></td>
                 <td><a href="personedit.aspx?userid=<%#Eval("id") %>">修改</a>/<a href="persondel.aspx?userid=<%#Eval("id") %>" onclick="return confirm('真的要删除吗？');">删除</a></td>
                </tr>
             </ItemTemplate>
            </asp:Repeater>
       </table>
      <webdiyer:AspNetPager ID="Pager1" runat="server" HorizontalAlign="Center" 
      NumericButtonType="Text" PageSize="20"  ShowNavigationToolTip="false" 
      UrlPageIndexName="page" UrlPaging="True"  CssClass="pagerer" 
      ShowDisabledButtons="true" ShowInputBox="Never" SubmitButtonText="Go" 
      NumericButtonTextFormatString="{0}" FirstPageText="首页" LastPageText="尾页" 
      NextPageText="下一页" PrevPageText="上一页" 
      OnPageChanging="Pager1_PageChanging1" ShowPageIndexBox="Always" LayoutType="Table" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到"></webdiyer:AspNetPager>
  </div>
</div>
  <br /><br />
</form>
</body>
</html>
