1 | @model Portal.Core.Models.DilekOneri.DilekOneriModel |
---|
2 | @using Portal.Data.Adres; |
---|
3 | @{ |
---|
4 | ViewBag.Title = @Html.Raw(Resources.Lang.DILEK_VE_ONERILERINIZ); |
---|
5 | Layout = "~/Views/Shared/" + Ayarlar.Template() + "/_ColumnsTwo.cshtml"; |
---|
6 | } |
---|
7 | <div class="Content_Title"> |
---|
8 | @Html.Raw(Resources.Lang.DILEK_VE_ONERILERINIZ) |
---|
9 | </div> |
---|
10 | <div class="Content_Body"> |
---|
11 | <script src="@Url.Content("~/Scripts/jquery.maskedinput-1.3.min.js")" type="text/javascript"></script> |
---|
12 | <script type="text/javascript"> |
---|
13 | jQuery(function ($) { |
---|
14 | $("#SABIT_TELEFON").mask("0(999) 999-9999"); |
---|
15 | $("#CEP_TELEFON").mask("0(999) 999-9999"); |
---|
16 | }); |
---|
17 | </script> |
---|
18 | @using (Html.BeginForm("Index", "DilekOneri", FormMethod.Post, new { @id = "frmData" })) |
---|
19 | { |
---|
20 | @Html.AntiForgeryToken() |
---|
21 | @Html.ValidationSummary(true) |
---|
22 | |
---|
23 | if (ViewData["Sonuc"] != null) |
---|
24 | { |
---|
25 | <div class="message">@Html.Raw(ViewData["Sonuc"].ToString())</div> |
---|
26 | } |
---|
27 | |
---|
28 | <div class="dilek_oneri_item"> |
---|
29 | <div class="dilek_oneri_item_key"> |
---|
30 | @Html.Raw(Resources.Lang.ADINIZ) |
---|
31 | </div> |
---|
32 | <div class="dilek_oneri_item_input"> |
---|
33 | @Html.TextBoxFor(model => model.ADI, new { @class = "dilek_oneri_adi" }) |
---|
34 | <span class="validation">@Html.ValidationMessageFor(model => model.ADI)</span> |
---|
35 | </div> |
---|
36 | <div class="clr"> |
---|
37 | </div> |
---|
38 | </div> |
---|
39 | |
---|
40 | <div class="dilek_oneri_item"> |
---|
41 | <div class="dilek_oneri_item_key"> |
---|
42 | @Html.Raw(Resources.Lang.SOYADINIZ) |
---|
43 | </div> |
---|
44 | <div class="dilek_oneri_item_input"> |
---|
45 | @Html.TextBoxFor(model => model.SOYADI, new { @class = "dilek_oneri_soyadi" }) |
---|
46 | <span class="validation">@Html.ValidationMessageFor(model => model.SOYADI)</span> |
---|
47 | </div> |
---|
48 | <div class="clr"> |
---|
49 | </div> |
---|
50 | </div> |
---|
51 | |
---|
52 | <div class="dilek_oneri_item"> |
---|
53 | <div class="dilek_oneri_item_key"> |
---|
54 | @Html.Raw(Resources.Lang.E_POSTA) |
---|
55 | </div> |
---|
56 | <div class="dilek_oneri_item_input"> |
---|
57 | @Html.TextBoxFor(model => model.EPOSTA_ADRESI, new { @class = "dilek_oneri_ePosta" }) |
---|
58 | <span class="validation">@Html.ValidationMessageFor(model => model.EPOSTA_ADRESI)</span> |
---|
59 | </div> |
---|
60 | <div class="clr"> |
---|
61 | </div> |
---|
62 | </div> |
---|
63 | |
---|
64 | <div class="dilek_oneri_item"> |
---|
65 | <div class="dilek_oneri_item_key"> |
---|
66 | @Html.Raw(Resources.Lang.SABIT_TELEFON) |
---|
67 | </div> |
---|
68 | <div class="dilek_oneri_item_input"> |
---|
69 | @Html.TextBoxFor(model => model.SABIT_TELEFON, new { @class = "dilek_oneri_sabit_Telefon", @maxlength = 15 }) |
---|
70 | <span class="validation">@Html.ValidationMessageFor(model => model.SABIT_TELEFON)</span> |
---|
71 | </div> |
---|
72 | <div class="clr"> |
---|
73 | </div> |
---|
74 | </div> |
---|
75 | |
---|
76 | <div class="dilek_oneri_item"> |
---|
77 | <div class="dilek_oneri_item_key"> |
---|
78 | @Html.Raw(Resources.Lang.CEP_TELEFONU) |
---|
79 | </div> |
---|
80 | <div class="dilek_oneri_item_input"> |
---|
81 | @Html.TextBoxFor(model => model.CEP_TELEFON, new { @class = "dilek_oneri_cep_Telefon", @maxlength = 15 }) |
---|
82 | <span class="validation">@Html.ValidationMessageFor(model => model.CEP_TELEFON)</span> |
---|
83 | </div> |
---|
84 | <div class="clr"> |
---|
85 | </div> |
---|
86 | </div> |
---|
87 | |
---|
88 | <div class="dilek_oneri_item"> |
---|
89 | <div class="dilek_oneri_item_key"> |
---|
90 | @Html.Raw(Resources.Lang.IL) |
---|
91 | </div> |
---|
92 | <div class="dilek_oneri_item_input"> |
---|
93 | @Html.DropDownListFor(model => model.IL_ID, IlData.SelectListItem(), "--" + @Html.Raw(Resources.Lang.SECINIZ) + "--", new { @onchange = "javascript:GetIlceler('ILCE_ID',this.value);" }) |
---|
94 | <span class="validation">@Html.ValidationMessageFor(model => model.IL_ID)</span> |
---|
95 | </div> |
---|
96 | <div class="clr"> |
---|
97 | </div> |
---|
98 | </div> |
---|
99 | |
---|
100 | <div class="dilek_oneri_item"> |
---|
101 | <div class="dilek_oneri_item_key"> |
---|
102 | @Html.Raw(Resources.Lang.ILCE) |
---|
103 | </div> |
---|
104 | <div class="dilek_oneri_item_input"> |
---|
105 | @Html.DropDownListFor(model => model.ILCE_ID, IlceData.SelectListItem(Model.IL_ID != null ? Model.IL_ID.Value : 0), "--" + @Html.Raw(Resources.Lang.SECINIZ) + "--", new { @onchange = "javascript:GetSemtMah('SEMTMAH_ID',this.value);" }) |
---|
106 | <span class="validation">@Html.ValidationMessageFor(model => model.ILCE_ID)</span> |
---|
107 | </div> |
---|
108 | <div class="clr"> |
---|
109 | </div> |
---|
110 | </div> |
---|
111 | |
---|
112 | <div class="dilek_oneri_item"> |
---|
113 | <div class="dilek_oneri_item_key"> |
---|
114 | @Html.Raw(Resources.Lang.SEMT_MAH) |
---|
115 | </div> |
---|
116 | <div class="dilek_oneri_item_input"> |
---|
117 | @Html.DropDownListFor(model => model.SEMTMAH_ID, SemtMahalleData.SelectListItem(Model.ILCE_ID != null ? Model.ILCE_ID.Value : 0), "--" + @Html.Raw(Resources.Lang.SECINIZ) + "--") |
---|
118 | <span class="validation">@Html.ValidationMessageFor(model => model.SEMTMAH_ID)</span> |
---|
119 | </div> |
---|
120 | <div class="clr"> |
---|
121 | </div> |
---|
122 | </div> |
---|
123 | |
---|
124 | <div class="dilek_oneri_item"> |
---|
125 | <div class="dilek_oneri_item_key"> |
---|
126 | @Html.Raw(Resources.Lang.ADRES) |
---|
127 | </div> |
---|
128 | <div class="dilek_oneri_item_input"> |
---|
129 | @Html.TextAreaFor(model => model.ADRES, new { @class = "dilek_oneri_adres" }) |
---|
130 | <span class="validation">@Html.ValidationMessageFor(model => model.ADRES)</span> |
---|
131 | </div> |
---|
132 | <div class="clr"> |
---|
133 | </div> |
---|
134 | </div> |
---|
135 | |
---|
136 | <div class="dilek_oneri_item"> |
---|
137 | <div class="dilek_oneri_item_key"> |
---|
138 | @Html.Raw(Resources.Lang.KONU) |
---|
139 | </div> |
---|
140 | <div class="dilek_oneri_item_input"> |
---|
141 | @Html.TextBoxFor(model => model.MESAJ_KONUSU, new { @class = "dilek_oneri_mesaj_konusu" }) |
---|
142 | <span class="validation">@Html.ValidationMessageFor(model => model.MESAJ_KONUSU)</span> |
---|
143 | </div> |
---|
144 | <div class="clr"> |
---|
145 | </div> |
---|
146 | </div> |
---|
147 | |
---|
148 | <div class="dilek_oneri_item"> |
---|
149 | <div class="dilek_oneri_item_key"> |
---|
150 | @Html.Raw(Resources.Lang.MESAJ) |
---|
151 | </div> |
---|
152 | <div class="dilek_oneri_item_input"> |
---|
153 | @Html.TextAreaFor(model => model.MESAJ, new { @class = "dilek_oneri_mesaj" }) |
---|
154 | <span class="validation">@Html.ValidationMessageFor(model => model.MESAJ)</span> |
---|
155 | </div> |
---|
156 | <div class="clr"> |
---|
157 | </div> |
---|
158 | </div> |
---|
159 | |
---|
160 | <div class="dilek_oneri_item"> |
---|
161 | <div class="dilek_oneri_item_key"> |
---|
162 | @Html.Raw(Resources.Lang.GUVENLIK_KODU) |
---|
163 | </div> |
---|
164 | <div class="dilek_oneri_item_input"> |
---|
165 | <input type="text" name="GUVENLIK" value="" class="GuvenlikKodu" maxlength="6" data-val-required="Güvenlik Kodunu Giriniz" |
---|
166 | data-val-length-min="6" data-val-length-max="6" data-val-length="Güvenlik kodu 6 karakter olmalıdır." |
---|
167 | data-val="true" /> <img src="/com_modules/GuvenlikCode" align="absmiddle" /> |
---|
168 | <span data-valmsg-replace="true" data-valmsg-for="GUVENLIK" class="field-validation-valid validation"> |
---|
169 | </span> |
---|
170 | </div> |
---|
171 | <div class="clr"> |
---|
172 | </div> |
---|
173 | </div> |
---|
174 | |
---|
175 | <div class="submit_button"> |
---|
176 | <input type="button" name="namesubmit" class="button" onclick="javascript:submitform();" value="@Html.Raw(Resources.Lang.GONDER)" /> |
---|
177 | </div> |
---|
178 | } |
---|
179 | </div> |
---|
180 | <script type="text/javascript"> |
---|
181 | |
---|
182 | function submitform() { |
---|
183 | if ($("#frmData").valid()) { |
---|
184 | $("input.button").attr("onclick", ""); |
---|
185 | document.forms["frmData"].submit(); |
---|
186 | $("input.button").attr("onclick", "javascript:submitform();"); |
---|
187 | } |
---|
188 | } |
---|
189 | |
---|
190 | |
---|
191 | function GetIlceler(ddlIlceId, ilId) { |
---|
192 | var ilv = ilId; |
---|
193 | if (ilv != "") { |
---|
194 | $("#" + ddlIlceId).get(0).options.length = 0; |
---|
195 | $("#" + ddlIlceId).get(0).options[0] = new Option("Yükleniyor...", ""); |
---|
196 | $("#SEMTMAH_ID").get(0).options.length = 0; |
---|
197 | $("#SEMTMAH_ID").get(0).options[0] = new Option("--Seçiniz--", ""); |
---|
198 | $.ajax({ |
---|
199 | type: "POST", |
---|
200 | url: "/IEAHWS.asmx/GetIlceler", |
---|
201 | data: "{ilvalue:" + ilv + "}", |
---|
202 | contentType: "application/json; charset=utf-8", |
---|
203 | success: function (msg) { |
---|
204 | $("#" + ddlIlceId).get(0).options.length = 0; |
---|
205 | $("#" + ddlIlceId).get(0).options[0] = new Option("--Seçiniz--", ""); |
---|
206 | $.each(msg.d, function (index, item) { |
---|
207 | $("#" + ddlIlceId).get(0).options[$("#" + ddlIlceId).get(0).options.length] = new Option(item.Text, item.Value); |
---|
208 | }); |
---|
209 | }, |
---|
210 | error: function () { |
---|
211 | $("#" + ddlIlceId).get(0).options.length = 0; |
---|
212 | alert("İlçeler yüklenirken hata oluştu!"); |
---|
213 | } |
---|
214 | }); |
---|
215 | } |
---|
216 | else { |
---|
217 | $("#" + ddlIlceId).get(0).options.length = 0; |
---|
218 | $("#" + ddlIlceId).get(0).options[0] = new Option("--Seçiniz--", ""); |
---|
219 | $("#SEMTMAH_ID").get(0).options.length = 0; |
---|
220 | $("#SEMTMAH_ID").get(0).options[0] = new Option("--Seçiniz--", ""); |
---|
221 | } |
---|
222 | } |
---|
223 | |
---|
224 | |
---|
225 | function GetSemtMah(ddId, ilcevalue) { |
---|
226 | if (ilcevalue > 0) { |
---|
227 | $("#" + ddId).get(0).options.length = 0; |
---|
228 | $("#" + ddId).get(0).options[0] = new Option("Yükleniyor...", ""); |
---|
229 | $.ajax({ |
---|
230 | type: "POST", |
---|
231 | url: "/IEAHWS.asmx/GetSemtMah", |
---|
232 | data: "{ilcevalue:" + ilcevalue + "}", |
---|
233 | contentType: "application/json; charset=utf-8", |
---|
234 | success: function (msg) { |
---|
235 | $("#" + ddId).get(0).options.length = 0; |
---|
236 | $("#" + ddId).get(0).options[0] = new Option("--Seçiniz--", ""); |
---|
237 | $.each(msg.d, function (index, item) { |
---|
238 | $("#" + ddId).get(0).options[$("#" + ddId).get(0).options.length] = new Option(item.Text, item.Value); |
---|
239 | }); |
---|
240 | }, |
---|
241 | error: function () { |
---|
242 | $("#" + ddId).get(0).options.length = 0; |
---|
243 | alert("İlçeler yüklenirken hata oluştu!"); |
---|
244 | } |
---|
245 | }); |
---|
246 | } |
---|
247 | else { |
---|
248 | $("#" + ddId).get(0).options.length = 0; |
---|
249 | $("#" + ddId).get(0).options[0] = new Option("--Seçiniz--", ""); |
---|
250 | } |
---|
251 | } |
---|
252 | </script> |
---|