📄 student.aspx
字号:
<%@ page language="C#" autoeventwireup="true" inherits="ChinaedaCRM.ASPX.student, App_Web_bsmann3t" %>
<!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">
<title>学生信息</title>
<script type="text/javascript" >
function CheckALL_onclick()
{
var GridView1 = document.getElementById("<%=gvStlist.ClientID %>");
for(i = 1;i < GridView1.rows.length; i++)
{
GridView1.rows[i].cells[0].getElementsByTagName("INPUT")[0].checked = document.getElementById("CheckALL").checked;
}
}
function openeditwindow() {
document.getElementById("hidsub").value="1";
var id=openeditwindow.arguments[0];
window.showModalDialog ("StudentList.aspx?state=1&studentid="+id.toString(),"null","dialogHeight: 450px;dialogWidth: 450px;status:no;scroll:no;help:no");
document.form1.submit();
}
function openfollowwindow() {
var id=openfollowwindow.arguments[0];
window.showModalDialog ("fillStFollow.aspx?state=1&id="+id.toString(),"null","dialogHeight: 450px;dialogWidth: 450px;status:no;scroll:no;help:no");
}
function openadd()
{
document.getElementById("state").value=1;
var stid=openadd.arguments[0];
window.showModalDialog ("fillStFollow.aspx?state=0&stid="+stid.toString(),"null","dialogHeight: 250px;dialogWidth: 450px;status:no;scroll:no;help:no");
}
</script>
<style type="text/css" >
#mainDiv
{
margin-left: auto;
margin-right: auto;
width:750px;
height: 600px
}
body{font-size:12px;color:#3C4D82;margin:0;}
.mainTable
{
border:0px #3C4D82 solid;
border-collapse : collapse ;
cellpadding:0 ;
cellspacing:0;
width: 100%;
text-align: center;
}
.mainTable td
{ border:1px #3C4D82 solid;
border-collapse : collapse ;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div id="mainDiv">
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td >
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td style="width: 40%">
学生姓名:<asp:TextBox ID="txtStudentName" runat="server" Width="114px"></asp:TextBox>
<asp:LinkButton ID="btnFind" runat="server" OnClick="btnFind_Click">搜 索</asp:LinkButton>
</td>
<td align="right" style="width: 40%">
<asp:HiddenField ID="hidsub" runat="server" Value="0" />
跟踪状态:</td>
<td style="width: 20%">
<asp:DropDownList ID="drSign" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem Value="0">未跟踪</asp:ListItem>
<asp:ListItem Value="1">跟进中</asp:ListItem>
<asp:ListItem Value="2">已报名</asp:ListItem>
<asp:ListItem Value="3">下期报名</asp:ListItem>
<asp:ListItem Value="4">继续跟进</asp:ListItem>
<asp:ListItem Value="5">放弃</asp:ListItem>
<asp:ListItem Selected="True" Value="6">未选择</asp:ListItem>
</asp:DropDownList></td>
</tr>
</table>
</td>
</tr>
<tr>
<td >
<asp:GridView ID="gvStlist" runat="server" AutoGenerateColumns="False" OnRowDataBound="gvStlist_RowDataBound" AllowPaging="True" PageSize="15" DataKeyNames="id" Width="95%" CssClass="mainTable" OnSelectedIndexChanging="gvStlist_SelectedIndexChanging">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="check" runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="序号">
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text="<%# this.gvStlist.PageIndex * this.gvStlist.PageSize + this.gvStlist.Rows.Count+ 1 %>"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="StudentName" HeaderText="学生姓名" />
<asp:BoundField DataField="Areas" HeaderText="专业" />
<asp:BoundField DataField="Sex" HeaderText="性别" />
<asp:TemplateField HeaderText="学历">
<ItemTemplate>
<asp:Label ID="labXueLi" runat="server" Text='<%# Eval("xueli") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Age" HeaderText="年龄" />
<asp:BoundField DataField="tel" HeaderText="电话" />
<asp:BoundField DataField="QQNum" HeaderText="QQ" />
<asp:BoundField DataField="Email" HeaderText="Email" />
<asp:TemplateField HeaderText="跟进状态">
<ItemTemplate>
<asp:Label ID="labSign" runat="server" Text='<%# Eval("sign") %>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="FollowUser" HeaderText="跟进者" />
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="delete" runat="server" CommandArgument='<%# Eval("id") %>' OnClick="delete_Click">删除</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:CommandField SelectText="跟踪信息" ShowSelectButton="True" />
</Columns>
<PagerSettings FirstPageText="第一页" LastPageText="最后一页" Mode="NextPreviousFirstLast"
NextPageText="下一页" PreviousPageText="上一页" />
<PagerStyle HorizontalAlign="Center" />
<PagerTemplate>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
<tr >
<td align="left" width="15%" style="height: 34px" >
<input id="CheckALL" type="checkbox" language="javascript" onclick="return CheckALL_onclick()" /><label for=" CheckALL">全选</label>
</td>
<td align="left" width="15%" style="height: 34px">
<asp:LinkButton ID="deleteall" runat="server" OnClick="deleteall_Click">删除所选</asp:LinkButton></td>
<td colspan="4" align=right width="70%" style="height: 34px">
<asp:LinkButton ID="first" runat="server" OnClick="first_Click">第一页</asp:LinkButton> <asp:LinkButton ID="privor" runat="server" OnClick="privor_Click">前一页</asp:LinkButton> <asp:LinkButton ID="next" runat="server" OnClick="next_Click">下一页</asp:LinkButton> <asp:LinkButton ID="last" runat="server" OnClick="last_Click">最后一页</asp:LinkButton></td>
</tr>
</table>
</PagerTemplate>
</asp:GridView>
<table bgcolor="silver" border="0" cellpadding="0" cellspacing="0" style="width: 95%" id="tabTitle" runat="server">
<tr>
<td style="width: 100px; height: 30px;">
<asp:Label ID="lblStName" runat="server"></asp:Label></td>
<td style="width: 100px; height: 30px;">
<asp:HiddenField ID="state" runat="server" Value="0" />
</td>
<td align="right" style="width: 100px; height: 30px;">
<asp:LinkButton ID="linkAdd" runat="server">添加跟踪信息</asp:LinkButton></td>
</tr>
</table>
</td>
</tr>
<tr>
<td >
<asp:GridView ID="gvList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
CssClass="mainTable" OnPageIndexChanging="gvList_PageIndexChanging" OnRowDataBound="gvList_RowDataBound" Width="95%">
<PagerSettings FirstPageText="第一页" LastPageText="最后一页" Mode="NextPreviousFirstLast"
NextPageText="下一页" PreviousPageText="上一页" />
<Columns>
<asp:TemplateField>
<ItemTemplate>
<table border="1" cellpadding="0" cellspacing="0" style="width: 100%;" class="mainTable">
<tr>
<td align="left" style="width: 40%">
跟踪时间:<asp:Label ID="Label1" runat="server" Text='<%# Eval("FollowDate","{0:yyyy-MM-dd}") %>'></asp:Label></td>
<td align="left" style="width: 40%">
预约时间:<asp:Label ID="Label2" runat="server" Text='<%# Eval("BookingDate","{0:yyyy-MM-dd}") %>'></asp:Label></td>
<td align="right" style="width: 20%">
<asp:ImageButton ID="btnEdit" runat="server" CommandArgument='<%# Eval("id") %>'
ImageUrl="~/image/write.gif" />
<asp:ImageButton ID="btnDelete" runat="server" CommandArgument='<%# Eval("id") %>'
ImageUrl="~/image/images.jpg" OnClick="btnDelete_Click" /></td>
</tr>
<tr>
<td colspan="3" style="height: 17px" align="left">
<asp:Literal ID="Literal1" runat="server" Text='<%# Eval("memo") %>'></asp:Literal><div>
</div>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
<tr>
<td style="width: 100px">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -