public async Task <IActionResult> Aktivacija(int userID, string code) { if (userID == null || code == null) { return(RedirectToPage("/Index")); } Polaznik p = db.Polaznik.Include(x => x.KorisničkiNalog_ID).Where(x => x.PolaznikID == userID).Select(x => new Polaznik() { Datum_Rodjenja = x.Datum_Rodjenja, Broj_Dosijea = x.Broj_Dosijea, Mail = x.Mail, KorisničkiNalog_ID = x.KorisničkiNalog_ID }).FirstOrDefault(); if (p == null) { return(NotFound($"Unable to load user with ID '{userID}'.")); } var result = HelperFunctions.CalculateMD5Hash(p.Broj_Dosijea + p.Datum_Rodjenja + p.Mail + p.KorisničkiNalog_ID.KorisnickoIme); if (result.Equals(code)) { p.KorisničkiNalog_ID.Aktivan = true; db.SaveChanges(); await _emailSender.sendEMailAsync(p.Mail, "Aktivacija korisnickog racuna", $"Uspješno ste aktivirali Vaš račun. Dobrodošli u IT Academy tim."); return(Redirect("/Home/Contact")); } return(RedirectToAction("About", "Home")); }
public ActionResult Ukloni(int trazeni) { if (trazeni < 0) { throw new Exception("Unesen je negativni broj za ID!"); } Polaznik temp = db.Polaznik.Where(x => x.PolaznikID == trazeni).SingleOrDefault(); if (temp == null) { return(View("Error")); } try { db.Remove(temp); db.SaveChanges(); TempData["uspjesno"] = "USPJEŠNO STE UKLONULI"; return(Redirect("Prikaz")); } catch (Exception) { TempData["greska"] = "PRVO UKLONITE DETALJE"; return(Redirect("Prikaz")); } }
public ActionResult Create(Polaznik model) { string ConnStr = @"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=dbAlgebra;Integrated Security=True"; try { using (SqlConnection conn = new SqlConnection(ConnStr)) { string cmdText = ""; cmdText += "INSERT INTO tblPolaznici "; cmdText += "(Ime, Prezime, Email) "; cmdText += "VALUES "; cmdText += "('" + model.Ime + "', '" + model.Prezime + "', '" + model.Email + "') "; SqlCommand cmd = new SqlCommand(cmdText, conn); cmd.Connection.Open(); int brojDodanihRedaka = cmd.ExecuteNonQuery(); ViewBag.Message = "Broj dodanih redaka: " + brojDodanihRedaka; } } catch (SqlException sqlex) { ViewBag.Message = "SQL greška:" + sqlex.Message; } catch (Exception ex) { ViewBag.Message = "Greška:" + ex.Message; } return(View(model)); }
public IActionResult Uredi(int id, string ime, string prezime, string mail, DateTime datum_rodjenja, string adresa, string telefon, string spol, string broj_dosijea, string status, string nacin_studiranja, int upisan_semestar, int ovjeren_semestar, int godina_upisa, int godina_studija, string obnavlja_godinu, float prosjecna_ocjena) { Polaznik tmp = db.Polaznik.Where(x => x.PolaznikID == id).SingleOrDefault(); tmp.Adresa = adresa; tmp.Broj_Dosijea = broj_dosijea; tmp.Datum_Rodjenja = datum_rodjenja; tmp.Godina_Studija = godina_studija; tmp.Godina_Upisa = godina_upisa; tmp.Ime = ime; tmp.Mail = mail; tmp.Nacin_Studiranja = nacin_studiranja; tmp.Obnavlja_Godinu = obnavlja_godinu; tmp.Ovjeren_Semestar = ovjeren_semestar; tmp.Prezime = prezime; tmp.Prosjecna_Ocjena = prosjecna_ocjena; tmp.Spol = spol; tmp.Status = status; tmp.Telefon = telefon; tmp.Upisan_Semestar = upisan_semestar; TempData["uspjesno"] = "USPJEŠNO STE UREDILI"; db.SaveChanges(); return(Redirect("/Polaznici/Prikaz")); }
public ActionResult List() { //instanciranje konekcije SqlConnection conn = new SqlConnection(ConnStr); //string cmdTxt = ""; //cmdTxt += "SELECT * FROM tblPolaznici"; SqlCommand cmd = new SqlCommand(); cmd.Connection = conn; cmd.CommandText = "SELECT * FROM tblPolaznici"; SqlDataReader dr = null; List <Polaznik> lstPolaznici = new List <Polaznik>(); try { conn.Open(); dr = cmd.ExecuteReader(); if (dr != null) { if (dr.HasRows) { while (dr.Read()) { Polaznik polaznik = new Polaznik(); polaznik.IdPolaznik = int.Parse(dr["IdPolaznik"].ToString()); polaznik.Ime = dr["Ime"].ToString(); polaznik.Prezime = dr["Prezime"].ToString(); polaznik.Email = dr["Email"].ToString(); lstPolaznici.Add(polaznik); } } } } catch (SqlException sqlex) { ViewBag.Message = "SQL greška:" + sqlex.Message; } catch (Exception ex) { ViewBag.Message = "Greška:" + ex.Message; } finally { if (dr != null) { dr.Close(); } if (conn.State == ConnectionState.Open) { conn.Close(); } } return(View(lstPolaznici)); }
public void ObrisiPolaznika(Polaznik polaznik) { Komunikacija.Instance.PosaljiZahtev(new Zahtev() { Operacija = Operacija.ObrisiPolaznika, Objekat = polaznik }); }
public IActionResult UrediForm(int id) { Polaznik tmp = db.Polaznik.Where(x => x.PolaznikID == id).SingleOrDefault(); ViewData["uredi"] = tmp; return(View()); }
public ActionResult Details(int idPolaznik) { SqlConnection conn = new SqlConnection(ConnStr); string cmdText = "SELECT * FROM tblPolaznici WHERE" + " IdPolaznik=@IdPolaznik"; SqlCommand cmd = new SqlCommand(cmdText, conn); SqlParameter param = new SqlParameter(); param.ParameterName = "@IdPolaznik"; param.DbType = DbType.Int32; param.Direction = ParameterDirection.Input; param.Value = idPolaznik; cmd.Parameters.Add(param); SqlDataReader dr = null; Polaznik polaznik = new Polaznik(); try { conn.Open(); dr = cmd.ExecuteReader(); if (dr != null) { if (dr.HasRows) { while (dr.Read()) { polaznik.IdPolaznik = int.Parse(dr["IdPolaznik"].ToString()); polaznik.Ime = dr["Ime"].ToString(); polaznik.Prezime = dr["Prezime"].ToString(); polaznik.Email = dr["Email"].ToString(); } } } } catch (SqlException sqlex) { ViewBag.Message = "SQL greška:" + sqlex.Message; } catch (Exception ex) { ViewBag.Message = "Greška:" + ex.Message; } finally { if (dr != null) { dr.Close(); } if (conn.State == ConnectionState.Open) { conn.Close(); } } return(View(polaznik)); }
public FrmIzmenaPolaznika(Polaznik polaznik) { InitializeComponent(); this.polaznik = polaznik; textBox1.Text = polaznik.BrojTelefona; numGodine.Value = polaznik.Godine; cbPol.SelectedItem = polaznik.Pol; CenterToScreen(); }
public IActionResult Snimi(PolaznikDodajVM VM) { var userId = User.FindFirstValue(ClaimTypes.NameIdentifier); var polaznik = new Polaznik { KorisnikId = userId, Fakultet = VM.Fakultet }; db.Studenti.Add(polaznik); db.SaveChanges(); return(Redirect("/Home/Index")); }
private void btnPIzmena_Click(object sender, EventArgs e) { if (dvgPolaznici.SelectedRows.Count == 0) { MessageBox.Show("Morate izabrati polaznika!"); } else { int id = (int)dvgPolaznici.SelectedRows[0].Cells[0].Value; Polaznik polaznik = KontrolerKI.Instance.polaznici.Single(p => p.IDKorisnika == id); (frmIzmenaPolaznika = new FrmIzmenaPolaznika(polaznik)).ShowDialog(); KontrolerKI.Instance.NadjiPolaznike(txtPolaznici.Text); } }
private void btnPPracenja_Click(object sender, EventArgs e) { if (dvgPolaznici.SelectedRows.Count == 0) { (frmPracenja = new FrmPracenja()).ShowDialog(); } else { Polaznik kurs = new Polaznik() { IDKorisnika = (int)dvgPolaznici.SelectedRows[0].Cells[0].Value }; (frmPracenja = new FrmPracenja(kurs)).ShowDialog(); } }
public IActionResult DetaljiUplate(int UplataID) { Uplata u = db.Uplata.Include(x => x.Polaznik_ID).Include(x => x.Administracija_ID).Where(x => x.UplataID == UplataID).FirstOrDefault(); Polaznik p = db.Polaznik.Find(u.Polaznik_ID_FK); Administracija a = db.Administracija.Find(u.Administracija_ID_FK); UplataDetaljiVM vm = new UplataDetaljiVM { Svrha = u.Svrha, Datum_uplate = u.Datum_uplate, Iznos = u.Iznos, Ovjereno = u.Ovjereno, Polaznik = p.Ime + " " + p.Prezime, Administracija = a.Ime + " " + a.Prezime }; return(PartialView(vm)); }
public async Task <IActionResult> Dodaj(string ime, string prezime, string mail, DateTime datum_rodjenja, string adresa, string telefon, string spol, string broj_dosijea, string status, string nacin_studiranja, int upisan_semestar, int ovjeren_semestar, int godina_upisa, int godina_studija, string obnavlja_godinu, float prosjecna_ocjena) { Random rand = new Random(); Polaznik temp = new Polaznik { Adresa = adresa, Broj_Dosijea = broj_dosijea, Datum_Rodjenja = datum_rodjenja, Godina_Studija = godina_studija, Godina_Upisa = godina_upisa, Ime = ime, Mail = mail, Nacin_Studiranja = nacin_studiranja, Obnavlja_Godinu = obnavlja_godinu, Ovjeren_Semestar = ovjeren_semestar, Prezime = prezime, Prosjecna_Ocjena = prosjecna_ocjena, Spol = spol, Status = status, Telefon = telefon, Upisan_Semestar = upisan_semestar, KorisničkiNalog_ID = new KorisničkiNalog() { Aktivan = false, KorisnickoIme = ime + "." + prezime, Sifra = ime.Substring(0, 1) + prezime.Substring(0, 1) + "_" + rand.Next().ToString().Substring(0, 5) } }; if (temp == null) { return(View("Error")); } db.Add(temp); db.SaveChanges(); TempData["uspjesno"] = "USPJEŠNO STE DODALI"; var code = HelperFunctions.CalculateMD5Hash(temp.Broj_Dosijea + temp.Datum_Rodjenja + temp.Mail + temp.KorisničkiNalog_ID.KorisnickoIme); var callbackUrl = HelperFunctions.GetBaseUrl(_httpCA) + $"/KorisnickiNalog/Aktivacija?userID={temp.PolaznikID}&&code={code}"; TempData["uspjesno"] = "USPJEŠNO STE DODALI"; await _emailSender.sendEMailAsync(temp.Mail, "Mail aktivacija", $"Vaši podaci su: {temp.KorisničkiNalog_ID.KorisnickoIme}, {temp.KorisničkiNalog_ID.Sifra}. Potrebno je još da izvršite aktivaciju Vašeg računa klikom <a href='{callbackUrl.ToString()}'> ovdje</a>"); return(Redirect("Prikaz")); }
private static void RepositoryDemo() { StudentRepository studentRepository = new StudentRepository(); Student student = studentRepository.GetById(150051); Student denis = new Student() { DigitalniId = "asdopasdklčas13213" }; studentRepository.Insert(denis); studentRepository.Delete(150051); PolaznikRepository polaznikRepository = new PolaznikRepository(); Polaznik polaznik = new Polaznik(); polaznikRepository.Insert(polaznik); }
protected override object IzvrsiKonkretnuOperaciju(object objekat) { Polaznik p = objekat as Polaznik; Korisnik k = new Korisnik() { KorisnickoIme = p.KorisnickoIme, Lozinka = p.Lozinka, Ime = p.Ime, Prezime = p.Prezime, Email = p.Email }; object id = Broker.Instance.Insert(k); if (id == null) { throw new SOException("Greska prilikom registracije!"); } p.IDKorisnika = (int)id; Broker.Instance.Insert(p); return("Uspesno kreiran nalog."); }
protected override object IzvrsiKonkretnuOperaciju(object objekat) { Polaznik p = (Polaznik)objekat; object obj = Broker.Instance.Select(new Kurs() { BrojRaspolozivihMesta = -1 }, p.IDKorisnika.ToString()); if (obj != null) { List <Kurs> kursevi = ((List <IDomenskiObjekat>)obj).ConvertAll(k => (Kurs)k); foreach (Kurs k in kursevi) { k.BrojRaspolozivihMesta += 1; Broker.Instance.Update(k, k.IDKursa.ToString()); } } Broker.Instance.Delete(new Pracenje(), $"IDKorisnika = {p.IDKorisnika.ToString()}"); Broker.Instance.Delete(new Polaznik(), p.IDKorisnika.ToString()); Broker.Instance.Delete(new Korisnik(), p.IDKorisnika.ToString()); return("Uspesno obrisan polaznik"); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(0, 73, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "4ae81ee36555784b360962ea17b99b2ef7e6f6195683", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(73, 2, true); WriteLiteral("\r\n"); EndContext(); #line 3 "C:\Users\User\Desktop\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" ViewData["Title"] = "DodajDetaljePolaznik"; Polaznik polaznik = (Polaznik)ViewData["polaznik"]; int Polaznik_ID = (int)ViewData["polaznik_ID"]; #line default #line hidden BeginContext(304, 54, true); WriteLiteral("\r\n<center>\r\n <h2>Dodajte detalje za polazni(ka/cu) "); EndContext(); BeginContext(359, 12, false); #line 12 "C:\Users\User\Desktop\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" Write(polaznik.Ime); #line default #line hidden EndContext(); BeginContext(371, 1, true); WriteLiteral(" "); EndContext(); BeginContext(373, 16, false); #line 12 "C:\Users\User\Desktop\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" Write(polaznik.Prezime); #line default #line hidden EndContext(); BeginContext(389, 13, true); WriteLiteral("</h2>\r\n\r\n "); EndContext(); BeginContext(402, 2073, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4ae81ee36555784b360962ea17b99b2ef7e6f6198179", async() => { BeginContext(419, 62, true); WriteLiteral("\r\n <input type=\"text\" hidden=\"hidden\" name=\"polaznikID\""); EndContext(); BeginWriteAttribute("value", " value=\"", 481, "\"", 506, 1); #line 15 "C:\Users\User\Desktop\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" WriteAttributeValue("", 489, Model.polaznikID, 489, 17, false); #line default #line hidden EndWriteAttribute(); BeginContext(507, 183, true); WriteLiteral(" />\r\n <table>\r\n <tr>\r\n <td><lable><b>Kurs</b></lable></td>\r\n <td>\r\n <select name=\"kursID\">\r\n "); EndContext(); BeginContext(690, 32, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4ae81ee36555784b360962ea17b99b2ef7e6f6199261", async() => { BeginContext(698, 15, true); WriteLiteral("---Odaberite---"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(722, 26, true); WriteLiteral("\r\n "); EndContext(); BeginContext(748, 51, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4ae81ee36555784b360962ea17b99b2ef7e6f61910548", async() => { BeginContext(776, 14, true); WriteLiteral("--------------"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(799, 2, true); WriteLiteral("\r\n"); EndContext(); #line 23 "C:\Users\User\Desktop\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" foreach (var x in Model.lista) { #line default #line hidden BeginContext(885, 28, true); WriteLiteral(" "); EndContext(); BeginContext(913, 43, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4ae81ee36555784b360962ea17b99b2ef7e6f61912263", async() => { BeginContext(940, 7, false); #line 25 "C:\Users\User\Desktop\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" Write(x.Naziv); #line default #line hidden EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); BeginWriteTagHelperAttribute(); #line 25 "C:\Users\User\Desktop\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" WriteLiteral(x.KursID); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(956, 2, true); WriteLiteral("\r\n"); EndContext(); #line 26 "C:\Users\User\Desktop\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" } #line default #line hidden BeginContext(985, 725, true); WriteLiteral(@" </select> </td> </tr> <tr> <td> <label>Početak</label> </td> <td> <input type=""date"" name=""pocetak"" /> </td> </tr> <tr> <td> <label>Kraj</label> </td> <td> <input type=""date"" name=""kraj"" /> </td> </tr> <tr> <td> <label>Obnavlja</label> </td> <td> <select name=""obnavlja""> "); EndContext(); BeginContext(1710, 32, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4ae81ee36555784b360962ea17b99b2ef7e6f61915355", async() => { BeginContext(1718, 15, true); WriteLiteral("---Odaberite---"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1742, 26, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1768, 51, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4ae81ee36555784b360962ea17b99b2ef7e6f61916646", async() => { BeginContext(1796, 14, true); WriteLiteral("--------------"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1819, 26, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1845, 30, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4ae81ee36555784b360962ea17b99b2ef7e6f61918023", async() => { BeginContext(1864, 2, true); WriteLiteral("DA"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1875, 26, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1901, 30, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4ae81ee36555784b360962ea17b99b2ef7e6f61919509", async() => { BeginContext(1920, 2, true); WriteLiteral("NE"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1931, 537, true); WriteLiteral(@" </select> </td> </tr> <tr> <td> <label> Broj obnavljanja </label> </td> <td> <input type=""number"" name=""broj_obnavljanja"" /> </td> </tr> </table> <br/> <br/> <a id=""save"" class=""btn btn-primary"">Snimi</a> <a class=""btn btn-default"" id=""nazad"">Nazad</a> "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(2475, 437, true); WriteLiteral(@" </center> <script> $(""#save"").click(function (event) { var forma = $(""#forma""); $.ajax({ type: ""POST"", url: ""/Ajax/DetaljiPolaznikSnimi"", data: forma.serialize(), success: function (result) { $(""#box"").html(result); } }); }); $(""#nazad"").click(function (event) { $.get(""/Ajax/DetaljiPolaznik?id="); EndContext(); BeginContext(2913, 11, false); #line 92 "C:\Users\User\Desktop\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" Write(Polaznik_ID); #line default #line hidden EndContext(); BeginContext(2924, 92, true); WriteLiteral("\", function (result) {\r\n $(\"#box\").html(result);\r\n });\r\n });\r\n</script>"); EndContext(); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(0, 73, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "cf053e89f66c41c399135babba8dca07", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(73, 2, true); WriteLiteral("\r\n"); EndContext(); #line 3 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" ViewData["Title"] = "DodajDetaljePolaznik"; Polaznik polaznik = (Polaznik)ViewData["polaznik"]; int Polaznik_ID = (int)ViewData["polaznik_ID"]; #line default #line hidden BeginContext(304, 54, true); WriteLiteral("\r\n<center>\r\n <h2>Dodajte detalje za polazni(ka/cu) "); EndContext(); BeginContext(359, 12, false); #line 12 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" Write(polaznik.Ime); #line default #line hidden EndContext(); BeginContext(371, 1, true); WriteLiteral(" "); EndContext(); BeginContext(373, 16, false); #line 12 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" Write(polaznik.Prezime); #line default #line hidden EndContext(); BeginContext(389, 13, true); WriteLiteral("</h2>\r\n\r\n "); EndContext(); BeginContext(402, 2073, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "025a61722b614293a53a0208f60a1091", async() => { BeginContext(419, 62, true); WriteLiteral("\r\n <input type=\"text\" hidden=\"hidden\" name=\"polaznikID\""); EndContext(); BeginWriteAttribute("value", " value=\"", 481, "\"", 506, 1); #line 15 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" WriteAttributeValue("", 489, Model.polaznikID, 489, 17, false); #line default #line hidden EndWriteAttribute(); BeginContext(507, 183, true); WriteLiteral(" />\r\n <table>\r\n <tr>\r\n <td><lable><b>Kurs</b></lable></td>\r\n <td>\r\n <select name=\"kursID\">\r\n "); EndContext(); BeginContext(690, 32, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6bed40b250f348b19074b5c43a1e92a7", async() => { BeginContext(698, 15, true); WriteLiteral("---Odaberite---"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(722, 26, true); WriteLiteral("\r\n "); EndContext(); BeginContext(748, 51, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2c9f36efaf694252ab4fd2211c213da4", async() => { BeginContext(776, 14, true); WriteLiteral("--------------"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(799, 2, true); WriteLiteral("\r\n"); EndContext(); #line 23 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" foreach (var x in Model.lista) { #line default #line hidden BeginContext(885, 28, true); WriteLiteral(" "); EndContext(); BeginContext(913, 43, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b9e02306b15c48988d6134d4faed28ea", async() => { BeginContext(940, 7, false); #line 25 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" Write(x.Naziv); #line default #line hidden EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); BeginWriteTagHelperAttribute(); #line 25 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" WriteLiteral(x.KursID); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(956, 2, true); WriteLiteral("\r\n"); EndContext(); #line 26 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" } #line default #line hidden BeginContext(985, 725, true); WriteLiteral(@" </select> </td> </tr> <tr> <td> <label>Početak</label> </td> <td> <input type=""date"" name=""pocetak"" /> </td> </tr> <tr> <td> <label>Kraj</label> </td> <td> <input type=""date"" name=""kraj"" /> </td> </tr> <tr> <td> <label>Obnavlja</label> </td> <td> <select name=""obnavlja""> "); EndContext(); BeginContext(1710, 32, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bf482064895e40a3a8ef4f92306c2389", async() => { BeginContext(1718, 15, true); WriteLiteral("---Odaberite---"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1742, 26, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1768, 51, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "cc1534b1162e4bb2a088448506e7e466", async() => { BeginContext(1796, 14, true); WriteLiteral("--------------"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1819, 26, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1845, 30, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e7fd6e7c437942c7afbad9198dc16844", async() => { BeginContext(1864, 2, true); WriteLiteral("DA"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1875, 26, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1901, 30, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c19029e56f3f42ad81dc3a2eec4782cd", async() => { BeginContext(1920, 2, true); WriteLiteral("NE"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1931, 537, true); WriteLiteral(@" </select> </td> </tr> <tr> <td> <label> Broj obnavljanja </label> </td> <td> <input type=""number"" name=""broj_obnavljanja"" /> </td> </tr> </table> <br/> <br/> <a id=""save"" class=""btn btn-primary"">Snimi</a> <a class=""btn btn-default"" id=""nazad"">Nazad</a> "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(2475, 437, true); WriteLiteral(@" </center> <script> $(""#save"").click(function (event) { var forma = $(""#forma""); $.ajax({ type: ""POST"", url: ""/Ajax/DetaljiPolaznikSnimi"", data: forma.serialize(), success: function (result) { $(""#box"").html(result); } }); }); $(""#nazad"").click(function (event) { $.get(""/Ajax/DetaljiPolaznik?id="); EndContext(); BeginContext(2913, 11, false); #line 92 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" Write(Polaznik_ID); #line default #line hidden EndContext(); BeginContext(2924, 92, true); WriteLiteral("\", function (result) {\r\n $(\"#box\").html(result);\r\n });\r\n });\r\n</script>"); EndContext(); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(0, 73, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "2c1d4ba0bf944b97969bd57f7d05e225", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(73, 2, true); WriteLiteral("\r\n"); EndContext(); #line 3 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" ViewData["Title"] = "DodajDetaljePolaznik"; Polaznik polaznik = (Polaznik)ViewData["polaznik"]; int Polaznik_ID = (int)ViewData["polaznik_ID"]; #line default #line hidden BeginContext(304, 54, true); WriteLiteral("\r\n<center>\r\n <h2>Dodajte detalje za polazni(ka/cu) "); EndContext(); BeginContext(359, 12, false); #line 12 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" Write(polaznik.Ime); #line default #line hidden EndContext(); BeginContext(371, 1, true); WriteLiteral(" "); EndContext(); BeginContext(373, 16, false); #line 12 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" Write(polaznik.Prezime); #line default #line hidden EndContext(); BeginContext(389, 13, true); WriteLiteral("</h2>\r\n\r\n "); EndContext(); BeginContext(402, 2073, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6d12d3c9ff7e4bb5a7ca2b2483123cca", async() => { BeginContext(419, 62, true); WriteLiteral("\r\n <input type=\"text\" hidden=\"hidden\" name=\"polaznikID\""); EndContext(); BeginWriteAttribute("value", " value=\"", 481, "\"", 506, 1); #line 15 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" WriteAttributeValue("", 489, Model.polaznikID, 489, 17, false); #line default #line hidden EndWriteAttribute(); BeginContext(507, 183, true); WriteLiteral(" />\r\n <table>\r\n <tr>\r\n <td><lable><b>Kurs</b></lable></td>\r\n <td>\r\n <select name=\"kursID\">\r\n "); EndContext(); BeginContext(690, 32, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d72f29c63b4d4cdd80c337df439c0f66", async() => { BeginContext(698, 15, true); WriteLiteral("---Odaberite---"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(722, 26, true); WriteLiteral("\r\n "); EndContext(); BeginContext(748, 51, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "947538d6ebf04294962f113dd91227a1", async() => { BeginContext(776, 14, true); WriteLiteral("--------------"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(799, 2, true); WriteLiteral("\r\n"); EndContext(); #line 23 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" foreach (var x in Model.lista) { #line default #line hidden BeginContext(885, 28, true); WriteLiteral(" "); EndContext(); BeginContext(913, 43, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d00d4756847e471088b26c99064ce7da", async() => { BeginContext(940, 7, false); #line 25 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" Write(x.Naziv); #line default #line hidden EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); BeginWriteTagHelperAttribute(); #line 25 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" WriteLiteral(x.KursID); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(956, 2, true); WriteLiteral("\r\n"); EndContext(); #line 26 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" } #line default #line hidden BeginContext(985, 725, true); WriteLiteral(@" </select> </td> </tr> <tr> <td> <label>Početak</label> </td> <td> <input type=""date"" name=""pocetak"" /> </td> </tr> <tr> <td> <label>Kraj</label> </td> <td> <input type=""date"" name=""kraj"" /> </td> </tr> <tr> <td> <label>Obnavlja</label> </td> <td> <select name=""obnavlja""> "); EndContext(); BeginContext(1710, 32, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5c7a74304ce7447892c1b87cb3462ba3", async() => { BeginContext(1718, 15, true); WriteLiteral("---Odaberite---"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1742, 26, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1768, 51, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52778020b16741848edc85bca035017b", async() => { BeginContext(1796, 14, true); WriteLiteral("--------------"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1819, 26, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1845, 30, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0313a1fe609449cc8a6b7d947d2cf052", async() => { BeginContext(1864, 2, true); WriteLiteral("DA"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1875, 26, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1901, 30, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "184f9215075b4bf09988744ea28f66b3", async() => { BeginContext(1920, 2, true); WriteLiteral("NE"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1931, 537, true); WriteLiteral(@" </select> </td> </tr> <tr> <td> <label> Broj obnavljanja </label> </td> <td> <input type=""number"" name=""broj_obnavljanja"" /> </td> </tr> </table> <br/> <br/> <a id=""save"" class=""btn btn-primary"">Snimi</a> <a class=""btn btn-default"" id=""nazad"">Nazad</a> "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(2475, 437, true); WriteLiteral(@" </center> <script> $(""#save"").click(function (event) { var forma = $(""#forma""); $.ajax({ type: ""POST"", url: ""/Ajax/DetaljiPolaznikSnimi"", data: forma.serialize(), success: function (result) { $(""#box"").html(result); } }); }); $(""#nazad"").click(function (event) { $.get(""/Ajax/DetaljiPolaznik?id="); EndContext(); BeginContext(2913, 11, false); #line 92 "E:\Fakultet\RS I\Seminarski rad\seminarski_rad\webapp\WebApplication1\Views\Ajax\DodajDetaljePolaznik.cshtml" Write(Polaznik_ID); #line default #line hidden EndContext(); BeginContext(2924, 92, true); WriteLiteral("\", function (result) {\r\n $(\"#box\").html(result);\r\n });\r\n });\r\n</script>"); EndContext(); }