コード例 #1
0
ファイル: index.aspx.cs プロジェクト: Rad3k/Experiences
 protected void Login_Click(object sender, EventArgs e)
 {
     transaction tran = new transaction();
     if (tran.loginVerification(nameText.Text, passwordText.Text) == true)
         Response.Redirect("admin.aspx");
     else
         Response.Write("Přihlašovací jméno nebo heslo je špatné.");
 }
コード例 #2
0
ファイル: orderAdd.aspx.cs プロジェクト: Rad3k/Experiences
        protected void addData_Click(object sender, EventArgs e)
        {
            transaction tran = new transaction();
            if (Orders.SelectedValue != "3")
            {
                if (tran.saveTicket(Orders.SelectedItem.Text, nextStep.SelectedItem.Text, doplnInformace.Text, typPotionu.SelectedItem.Text, nameText.Text, valueText.Text, emailText.Text).Contains("done"))
                {
                    dropDownList.Visible = false;
                    Orders.Visible = false;
                    nextStep.Visible = false;
                    Type.Visible = false;
                    doplnInformaceLabel.Visible = false;
                    doplnInformace.Visible = false;
                    addData.Visible = false;
                    name.Visible = false;
                    value.Visible = false;
                    email.Visible = false;
                    nameText.Visible = false;
                    valueText.Visible = false;
                    emailText.Visible = false;
                    typPotionu.Visible = false;
                    Obchod.Visible = false;
                    typZboziLabel.Visible = false;
                    typZbozi.Visible = false;

                    nadpis.ForeColor = System.Drawing.Color.DarkGreen;
                    nadpis.Text = "Transakce proběhla v pořádku";
                }
            }
            else
            {
                if (tran.saveBusiness(Orders.SelectedItem.Text, Obchod.SelectedItem.Text, doplnInformace.Text, typZbozi.SelectedItem.Text, nameText.Text, valueText.Text, emailText.Text).Contains("done"))
                {
                    dropDownList.Visible = false;
                    Orders.Visible = false;
                    nextStep.Visible = false;
                    Type.Visible = false;
                    doplnInformaceLabel.Visible = false;
                    doplnInformace.Visible = false;
                    addData.Visible = false;
                    name.Visible = false;
                    value.Visible = false;
                    email.Visible = false;
                    nameText.Visible = false;
                    valueText.Visible = false;
                    emailText.Visible = false;
                    typPotionu.Visible = false;
                    Obchod.Visible = false;
                    typZboziLabel.Visible = false;
                    typZbozi.Visible = false;

                    nadpis.ForeColor = System.Drawing.Color.DarkGreen;
                    nadpis.Text = "Transakce proběhla v pořádku";
                }
            }
            /*Email sEmail = new Email();
            sEmail.sendEmail(emailText.Text, "*****@*****.**", Orders.SelectedItem.Text + " " + nextStep.SelectedItem.Text, doplnInformace.Text);*/
        }
コード例 #3
0
ファイル: contact.aspx.cs プロジェクト: Rad3k/Experiences
 protected void Page_Load(object sender, EventArgs e)
 {
     transaction kontakt = new transaction();
     if (kontakt.selectPagesInformation('K'))
     {
         nadpis.Text = kontakt.nadpis;
         popis.Text = kontakt.text;
     }
     if (kontakt.selectQuickBar())
     {
         support_me.Text = kontakt.section[0];
         text.Text = kontakt.section[1];
         alias_1.Text = kontakt.section[3];
         alias_2.Text = kontakt.section[5];
         alias_3.Text = kontakt.section[7];
         alias_4.Text = kontakt.section[9];
     }
 }
コード例 #4
0
ファイル: index.aspx.cs プロジェクト: Rad3k/Experiences
 protected void Page_Load(object sender, EventArgs e)
 {
     transaction right = new transaction();
     transaction left = new transaction();
     if (right.selectHomePage('L'))
     {
         nadpisProgram.Text = right.title[0];
         casStream.Text = right.title[1];
         playerNadpis.Text = right.title[2];
         program_1.Text = right.section[0];
         program_2.Text = right.section[1];
         program_3.Text = right.section[2];
         program_4.Text = right.section[3];
         program_5.Text = right.section[4];
         program_6.Text = right.section[5];
         cas_1.Text = right.section[6];
         cas_2.Text = right.section[7];
         cas_3.Text = right.section[8];
         cas_4.Text = right.section[9];
         cas_5.Text = right.section[10];
         cas_6.Text = right.section[11];
         jmeno_1.Text = right.section[12];
         jmeno_2.Text = right.section[13];
         jmeno_3.Text = right.section[14];
     }
     if (left.selectHomePage('R'))
     {
         hlavniNadpis.Text = left.title[0];
         nadpisHry.Text = left.title[1];
         InformaceNadpis.Text = left.title[2];
         popisPrace.Text = left.description;
         hra_1.Text = left.section[0];
         hra_2.Text = left.section[1];
         hra_3.Text = left.section[2];
         hra_4.Text = left.section[3];
         hra_5.Text = left.section[4];
         rozliseniPC.Text = left.section[5];
         rozliseniStream.Text = left.section[6];
         Kvalita.Text = left.section[7];
         upload.Text = left.section[8];
         odezva.Text = left.section[9];
     }
 }
コード例 #5
0
ファイル: support.aspx.cs プロジェクト: Rad3k/Experiences
 protected void Page_Load(object sender, EventArgs e)
 {
     transaction support = new transaction();
     if (support.selectPagesInformation('P'))
     {
         podpora.Text = support.nadpis;
         popis.Text = support.text;
     }
     if (support.selectQuickBar())
     {
         support_me.Text = support.section[0];
         text.Text = support.section[1];
         /*program_1.Text = support.section[2];
         program_2.Text = support.section[4];
         program_3.Text = support.section[6];
         program_4.Text = support.section[8];*/
         alias_1.Text = support.section[3];
         alias_2.Text = support.section[5];
         alias_3.Text = support.section[7];
         alias_4.Text = support.section[9];
     }
 }
コード例 #6
0
ファイル: index.aspx.cs プロジェクト: Rad3k/Experiences
        protected void addData_Click(object sender, EventArgs e)
        {
            transaction tran = new transaction();
            if (tran.ulozeniSmlovuy(jmenoText.Text, prijmeniText.Text, pozice.Text, Calendar1.SelectedDate.Date, Calendar2.SelectedDate.Date, doplnInformaceText.Text).Contains("done"))
            {
                jmeno.Visible = false;
                jmenoText.Visible = false;
                prijmeni.Visible = false;
                prijmeniText.Visible = false;
                pozice.Visible = false;
                poziceText.Visible = false;
                Calendar1.Visible = false;
                Calendar2.Visible = false;
                datumNastupu.Visible = false;
                datumUkonceni.Visible = false;
                doplnInformaceLabel.Visible = false;
                doplnInformaceText.Visible = false;

                nadpis.ForeColor = System.Drawing.Color.DarkGreen;
                nadpis.Text = "Smlouva byla úspěšně přidána do evidence";
            }
        }
コード例 #7
0
ファイル: craft.aspx.cs プロジェクト: Rad3k/Experiences
        protected void FillPage()
        {
            string endTable = "</table>";
            transaction tran = new transaction();
            ArrayList craftList = new ArrayList();
            if (IsPostBack)
                labelOutputCraft.Text = "Při načítaní došlo k chybě";
            else
                craftList = tran.selectOrderCraft();

            StringBuilder data = new StringBuilder();
            StringBuilder table = new StringBuilder();

            table.Append(string.Format(@"<table>
                <tr>
                    <th width='100'>Typ</th>
                    <th width='80'>Druh</th>
                    <th width='800'>Zpráva</th>
                    <th width='350'>Potion</th>
                    <th width='80'>Počet kusů</th>
                    <th width='100'>Váš nick</th>
                    <th width='20'>Status</th>
                </tr>"));

            foreach (crafting craft in craftList)
            {
                data.Append(string.Format(@"
                <tr>
                    <td>{0}</td>
                    <td>{1}</td>
                    <td>{2}</td>
                    <td>{3}</td>
                    <td>{4}</td>
                    <td>{5}</td>
                    <td>{6}</td>
                </tr>", craft.typeTicket, craft.typeMethod, craft.message, craft.typePotion, craft.value, craft.nick, craft.status));
            }
            labelOutputCraft.Text = table.ToString() + data.ToString() + endTable;
        }
コード例 #8
0
ファイル: hry.aspx.cs プロジェクト: Rad3k/Experiences
        protected void FillPage()
        {
            string endTable = "</table>";
            transaction tran = new transaction();
            ArrayList gameList = new ArrayList();
            if (IsPostBack)
                labelOutput.Text = "Při načítaní došlo k chybě";
            else
                gameList = tran.selectOrderGame();

            StringBuilder data = new StringBuilder();
            StringBuilder table = new StringBuilder();

            table.Append(string.Format(@"<table>
                <tr>
                    <th width='100'>Typ</th>
                    <th width='80'>Druh</th>
                    <th width='800'>Zpráva</th>
                    <th width='350'>Hra</th>
                    <th width='80'>Počet kusů</th>
                    <th width='20'>Status</th>
                </tr>"));

            foreach (games game in gameList)
            {
                data.Append(string.Format(@"
                <tr>
                    <td>{0}</td>
                    <td>{1}</td>
                    <td>{2}</td>
                    <td>{3}</td>
                    <td>{4}</td>
                    <td>{5}</td>
                </tr>", game.typeTicket, game.typeMethod, game.message, game.typeName, game.value, game.status));
            }
            labelOutput.Text = table.ToString() + data.ToString() + endTable;
        }
コード例 #9
0
ファイル: about.aspx.cs プロジェクト: Rad3k/Experiences
        protected void Page_Load(object sender, EventArgs e)
        {
            transaction o_me = new transaction();
            if (o_me.selectPagesInformation('O'))
            {
                nadpis.Text = o_me.nadpis;
                popis.Text = o_me.text;
                doplnInformace.Text = o_me.informace;
            }
            else
            {
                nadpis.Text = o_me.nadpis;
                popis.Text = o_me.text;

            }
            if (o_me.selectFavouriteGames('O'))
            {
                titul.Text = o_me.title[0];
                hra_1.Text = o_me.section[0];
                hra_2.Text = o_me.section[1];
                hra_3.Text = o_me.section[2];
                hra_4.Text = o_me.section[3];
            }
            if (o_me.selectQuickBar())
            {
                support_me.Text = o_me.section[0];
                text.Text = o_me.section[1];
                /*program_1.Text = o_me.section[2];
                program_2.Text = o_me.section[4];
                program_3.Text = o_me.section[6];
                program_4.Text = o_me.section[8];*/
                alias_1.Text = o_me.section[3];
                alias_2.Text = o_me.section[5];
                alias_3.Text = o_me.section[7];
                alias_4.Text = o_me.section[9];
            }
        }
コード例 #10
0
 protected void Registration_Click(object sender, EventArgs e)
 {
     transaction tran = new transaction();
     Response.Write(tran.signInToSystem(nameText.Text, passwordText.Text));
 }