?? seeclasstable.aspx.cs
字號(hào):
?using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Model;
using Server;
public partial class SeeClassTable : System.Web.UI.Page
{
public string[] class_tb = new string[10];
public string classroom;
public string class_people;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
class_tb ac = new class_tb();
ac.Class_id = Request.QueryString["id"].Trim();
class_tb = ClassManage.SeeClassTable(ac);
string[] info = class_tb[6].Split('#');
classroom = info[0];
for (int i = 0; i < 84; i++)
{
if ((i == 0) || (i % 7 == 0))
{
int j = i / 7;
if (j == 0)
{
this.CheckBoxList1.Items.Add(" 第1節(jié)課");
}
else
{
if (j < 9)
{
this.CheckBoxList1.Items.Add(" 第" + (j + 1) + "節(jié)課");
}
else
{
this.CheckBoxList1.Items.Add("第" + (j + 1) + "節(jié)課");
}
}
}
else
{
this.CheckBoxList1.Items.Add("");
}
this.CheckBoxList1.Items[i].Value = i.ToString();
}
//
for(int i=1;i<info.Length ;i++)
{
for (int j = 0; j < 84; j++)
{
if (this.CheckBoxList1.Items[j].Value.Trim() == info[i].Trim())
{
this.CheckBoxList1.Items[j].Selected = true;
continue;
}
}
}
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -