((Literal)(this.LoginView_userinfo.FindControl("positionppl"))).Text = posrep[0].ToString();
}
else
{
((Literal)(this.LoginView_userinfo.FindControl("ratingppl"))).Text = "Рейтинг PPL: 0 / ";
((Literal)(this.LoginView_userinfo.FindControl("positionppl"))).Text = "0";
}
float []reputation = PowerPlayUserProvider.getReputation(Page.User.Identity.Name);
if (reputation != null)
{
((Literal)(this.LoginView_userinfo.FindControl("reputation"))).Text = "Репутация: " + reputation[1].ToString() + " / ";
((Literal)(this.LoginView_userinfo.FindControl("positionrep"))).Text = reputation[0].ToString();
}
else
{
((Literal)(this.LoginView_userinfo.FindControl("reputation"))).Text = "Репутация: 0 / ";
((Literal)(this.LoginView_userinfo.FindControl("positionrep"))).Text = "0";
}
}
year.Text = "POWERPLAY © " + DateTime.Now.Year;
}
}
}
namespace powerplay.account.office
{
public partial class report : System.Web.UI.Page
{
GridView GridView2 = new GridView();
string team="";
protected void Page_Load(object sender, EventArgs e)
{
GridView2.Visible = false;
GridView2.AutoGenerateColumns = true;
team = PowerPlayUserProvider.getTeamByUsername(Page.User.Identity.Name)[0];
if (!team.Equals(""))
{
select_teams.Text = "<select disabled><option value=\"" + team + "\">" + team + "</option></select>";
PlaceHolder1.Visible = true;
PowerPlayUserProvider.getReportOfTeam(GridView1, team,"khl20122013_1");
bomb();
snip();
ass();
goalk_per();
def_bomb();
def_snip();
plus_minus();
goalk_kf();
game_prev();
game_next();
}
else
{
select_teams.Text = "<select disabled><option value=\"У вас нет команды\">У вас нет команды</option></select>";
PlaceHolder1.Visible = false;
}
}
private void bomb()
{
if (table_bomb.Visible == true)
{
PowerPlayUserProvider.getReportOfPlayerByParams(team, "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_pos.Text = "В лиге: " + GridView2.Rows[0].Cells[0].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\" />";
}
Уважаемый посетитель!
Чтобы распечатать файл, скачайте его (в формате Word).
Ссылка на скачивание - внизу страницы.