protected void Page_Load(object sender, EventArgs e)
{
GridView2.Visible = false;
GridView2.AutoGenerateColumns = true;
team = PowerPlayUserProvider.getTeamByUsername(Page.User.Identity.Name)[0];
if (Page.User.Identity.IsAuthenticated)
{
if (filtr_stats.Items.Count == 0)
{
filtr_stats.Items.Add("Лидеры");
filtr_stats.Items.Add("Личная статистика");
filtr_stats.Items.Add("Командная статистика");
show_topplayers();
}
PlaceHolder1.Visible = true;
}
else
{
filtr_stats.Items.Clear();
filtr_stats.Items.Add("Вы не авторизированы");
filtr_stats.Enabled = false;
//filtr_stats.Text = "<select disabled><option value=\"Вы не авторизованы\">Вы не авторизованы</option></select>";
PlaceHolder1.Visible = false;
}
}
private void bomb()
{
if (table_bomb.Visible == true)
{
PowerPlayUserProvider.getReportOfPlayerByParams(null, "p", "C,RW,LW,OD,DD", GridView2, "khl20122013_1");
if (GridView2.Rows.Count > 0)
{
bomb_name.Text = GridView2.Rows[0].Cells[1].Text;
bomb_ind.Text = "<a style=\"font-size:33px\">" + GridView2.Rows[0].Cells[6].Text + "</a>";
bomb_team.Text = PowerPlayUserProvider.getTeamByAbb(GridView2.Rows[0].Cells[2].Text);
PowerPlayUserProvider.getPlayerByNameOrAll(GridView2, GridView2.Rows[0].Cells[1].Text);
if (GridView2.Rows[0].Cells[5].Text != null && GridView2.Rows[0].Cells[5].Text != "" && GridView2.Rows[0].Cells[5].Text != " ")
{
bomb_ava.Text = "<img id=\"bomb_photo\" src=\"" + GridView2.Rows[0].Cells[5].Text + "\" height=\"80px\" />";
}
else
{
bomb_ava.Text = "<img id=\"bomb_photo\" src=\"/img/players/default.jpg\" height=\"80px\" />";
}
}
else
{
bomb_name.Text = "Игрок не найден";
}
GridView2 = new GridView();
}
}
private void snip()
{
if (table_snip.Visible == true)
{
PowerPlayUserProvider.getReportOfPlayerByParams(null, "g", "C,RW,LW,OD,DD", GridView2, "khl20122013_1");
if (GridView2.Rows.Count > 0)
{
snip_name.Text = GridView2.Rows[0].Cells[1].Text;
snip_ind.Text = "<a style=\"font-size:33px\">" + GridView2.Rows[0].Cells[4].Text + "</a>";
snip_team.Text =PowerPlayUserProvider.getTeamByAbb(GridView2.Rows[0].Cells[2].Text);
PowerPlayUserProvider.getPlayerByNameOrAll(GridView2, GridView2.Rows[0].Cells[1].Text);
if (GridView2.Rows[0].Cells[5].Text != null && GridView2.Rows[0].Cells[5].Text != "" && GridView2.Rows[0].Cells[5].Text != " ")
{
snip_ava.Text = "<img id=\"ship_photo\" src=\"" + GridView2.Rows[0].Cells[5].Text + "\" height=\"80px\" />";
Уважаемый посетитель!
Чтобы распечатать файл, скачайте его (в формате Word).
Ссылка на скачивание - внизу страницы.