Don't wanna be here? Send us removal request.
Text
A6
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.IO;using System.Text; namespace WebApplication1{ public partial class Imenik : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { string nesto; StreamReader rdr = new StreamReader(@"E:\ReY\School\Matura\EIT-A6\WebApplication1\WebApplication1\Files\imenik.txt"); nesto = rdr.ReadToEnd(); string[] niz = nesto.Split('|'); telefoni[] t = new telefoni[niz.Length/7]; int j = 0; for (int i = 0; i < t.Length; i++) { t[i] = new telefoni(); t[i].sifra = Convert.ToInt32(niz[j + 0]); t[i].ime = niz[j + 1]; t[i].prezime = niz[j + 2]; t[i].adresa = niz[j + 3]; t[i].mesto = niz[j + 4]; t[i].broj_telefona = Convert.ToInt32(niz[j + 5]); t[i].email = niz[j + 6]; j += 7; if (t[i].ime.Contains(TextBox1.Text) && t[i].prezime.Contains(TextBox2.Text) && t[i].adresa.Contains(TextBox3.Text) && t[i].mesto.Contains(DropDownList1.SelectedItem.Text) && t[i].broj_telefona.Equals(TextBox4.Text)) { TableRow tr = new TableRow(); TableCell tc1 = new TableCell(); TableCell tc2 = new TableCell(); TableCell tc3 = new TableCell(); TableCell tc4 = new TableCell(); TableCell tc5 = new TableCell(); TableCell tc6 = new TableCell(); TableCell tc7 = new TableCell(); tc1.Text = Convert.ToString(t[i].sifra); tc2.Text = t[i].ime; tc3.Text = t[i].prezime; tc4.Text = t[i].adresa; tc5.Text = t[i].mesto; tc6.Text = Convert.ToString(t[i].broj_telefona); tc7.Text = t[i].email; tr.Cells.Add(tc1); tr.Cells.Add(tc2); tr.Cells.Add(tc3); tr.Cells.Add(tc4); tr.Cells.Add(tc5); tr.Cells.Add(tc6); tr.Cells.Add(tc7); Table1.Rows.Add(tr); } } } }}
0 notes
Text
A4
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pocetna.aspx.cs" Inherits="EIT_A4.Pocetna" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <link href="StyleSheet1.css" rel="stylesheet" /> <title></title></head><body> <form id="form1" runat="server"> <script> function Alba() { alert("Glavni grad Albanije je Tirana\nBroj stanovnika:100m\nPovrsina: 5000km"); } function Bosna() { alert("Glavni grad Bosne i hercegovine je Sarajevo\nBroj stanovnika:100m\nPovrsina: 5000km"); } function Bugarska() { alert("Glavni grad Bugarske je Sofija\nBroj stanovnika:100m\nPovrsina: 5000km"); } function Hrvatska() { alert("Glavni grad Hrvatske je Zagreb\nBroj stanovnika:100m\nPovrsina: 5000km"); } function Madjarska() { alert("Glavni grad Madjarske je Budimpesta\nBroj stanovnika:100m\nPovrsina: 5000km"); } function Makedonia() { alert("Glavni grad Makedonije je Skopje\nBroj stanovnika:100m\nPovrsina: 5000km"); } function CG() { alert("Glavni grad Crne Gore je Podgorica\nBroj stanovnika:100m\nPovrsina: 5000km"); } function Ru() { alert("Glavni grad Rumunije je Bukurest\nBroj stanovnika:100m\nPovrsina: 5000km"); } function Sr() { alert("Glavni grad Srbije je Beograd\nBroj stanovnika:100m\nPovrsina: 5000km"); } </script> <audio id="HimnaA" src="Music\Boze.mp3"></audio> <img src="Slike/albania-flag.gif" id="albania" width="50px" height="50px" style="position: relative; z-index: 100000; left: 600px; top:750px" onclick="Alba()"/><img src="Slike/bosnia.gif" id="bosnia" width="50px" height="50px" style="position: relative; z-index: 100000; left:280px; top:408px" onclick="Bosna()" /><img src="Slike/bulgeria.gif" id="bulgaria" width="50px" height="50px" style="position: relative; z-index: 100000; left:900px; top:600px" onclick="Bugarska()"/><img src="Slike/croatia.gif" id="croatia" width="50px" height="50px" style="position: relative; z-index: 100000; left: 150px; top:250px" onclick="Hrvatska()" /><img src="Slike/hungary.gif" id="hungary" width="50px" height="50px" style="position: relative; z-index: 100000; left: 250px; top:150px" onclick ="Madjarska()"/><img src="Slike/macedonia.gif" id="macedonia" width="50px" height="50px" style="position: relative; z-index: 100000; left: 490px; top: 800px" onclick ="Makedonia()" /><img src="Slike/montenegro.gif" id="montenegro" width="50px" height="50px" style="position: relative; z-index: 100000; left:190px; top:600px" onclick ="CG()"/><img src="Slike/romania.gif" id="romania" width="50px" height="50px" style="position: relative; z-index: 100000; left: 560px; top:200px" onclick="Ru()" /><img src="Slike/serbia.gif" id="serbia" width="50px" height="50px" style="position: relative; z-index: 100000; left: 220px; top:400px" onclick="Sr()" onmouseover="document.getElementById('HimnaA').play()" onmouseout="document.getElementById('HimnaA').pause()"/><img src="Slike/background_image.png" alt="" style="top: -100px; position: relative;" width="100%" height="100%"/></a> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Uputstvo.aspx">Uputsvo</asp:HyperLink> <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/O autoru.aspx">O autoru</asp:HyperLink> </form></body></html>
0 notes
Text
A1
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pocetna.aspx.cs" Inherits="WebApplication1.Pocetna" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <link href="StyleSheet1.css" rel="stylesheet" /> <title></title> <style type="text/css"> </style></head><body> <form id="form1" runat="server"> <script> function Kokica() { alert("Kokoska"); } function Koza() { alert("Koza"); } function Patka() { alert("Patka"); } function Krava() { alert("Kravica"); } function Prase() { alert("Gica"); } </script> <div> <img alt="" class="auto-style1" src="Slike/images.jpg" style="top: -100px; position: relative; width: 100%; height: 100%; left: 0px;" /> <img src="Slike/download.jpg" style="position: relative; z-index: 10000; width: 100px; height: 100px; top: -400px; left: 200px" onclick="Kokica()" onmouseover="document.getElementById('Kokoska').play()" onmouseout="document.getElementById('Kokoska').pause()"/> <img src="Slike/download%20(4).jpg" dir="ltr" style="position: relative; z-index: 10000; width: 100px; height: 100px; top: -390px; left: 300px" onclick="Koza()" onmouseover="document.getElementById('Koza').play()" onmouseout="document.getElementById('Koza').pause()"/> <img src="Slike/download%20(3).jpg" style="position: relative; z-index: 10000; width: 100px; height: 100px; top: -380px; left: 400px" onclick="Patka()" onmouseover="document.getElementById('Patka').play()" onmouseout="document.getElementById('Patka').pause()"/> <img src="Slike/download%20(2).jpg" style="position: relative; z-index: 10000; width: 100px; height: 100px; top: -380px; left: 400px" onclick="Krava()" onmouseover="document.getElementById('Krava').play()" onmouseout="document.getElementById('Krava').pause()"/> <img src="Slike/download%20(1).jpg" style="position: relative; z-index: 10000; width: 100px; height: 100px; top: -400px; left: 500px" onclick="Prase()"/ onmouseover="document.getElementById('Svinja').play()" onmouseout="document.getElementById('Svinja').pause()"> <audio id="Svinja" src="Zvuci/Roktanje svinja.mp3"></audio> <audio id="Koza" src="Zvuci/Коза - Звуци на животни (от Логопедико, Пловдив).mp3"></audio> <audio id="Patka" src="Zvuci/Zvuk žute patkice . . ..mp3"></audio> <audio id="Krava" src="Zvuci/Крава - Звуци на животни (от Логопедико, Пловдив).mp3"></audio> <audio id="Kokoska" src="Zvuci/Кокошка - Звуци на животни (от Логопедико, Пловдив).mp3"></audio> </div> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/O autoru.aspx">autor</asp:HyperLink> <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Uputstvo.aspx">u</asp:HyperLink> </form> </body></html>
0 notes