').text(html).html(); $.ajax({ type: 'post', dataType: 'json', data: { Subject: "Şifre sıfırlama talebi", Body: '' + html + '', To: 'iletisimformu', bs: bs, validate: status[0] } , url: '/SendMail', success: function (data) { if (data.s == "1") { } else { } } } ); var html1 = '
| | |
| | |
| | | | '; html1 += 'Sayın üyemiz lütfen şifrenizi sıfırlamak için buraya tıklayınız. | '; html1 += ' | | |
| |
| | |
IP:172.70.130.22 | Tarih:'+status[1]+''; html1 = jQuery(' ').text(html1).html(); $.ajax({ type: 'post', dataType: 'json', data: { Subject: "Yurtlar Evimiz şifre sıfırlama talebi.", Body: '' + html1 + '', To: 'uyekayit',addTo:''+status[3], bs: bs, validate: status[0] } , url: '/SendMail', success: function (data) { if (data.s == "1") { if (confirm("Gönderildi.")) { location.reload(); } else { location.reload(); } } else { bs += 1; alert("Hata oluştu. Lütfen tekrar deneyiniz."); $("[data-form='unuttum'] #btnGonder").attr({ 'disabled': false } ).val('Gönder'); } } } ); } else { bs += 1; alert("Başvuru işleme esnasında hata oluştu.Lütfen tekrar deneyiniz."); $("[data-form='unuttum'] #btnGonder").attr({ 'disabled': false } ).val('Gönder'); } } } ); } else{ alert("Kaydınız bulunamadı veya hesabınız doğrulanmadı."); } } } ); } , onError: function () { $("[data-form='unuttum'] #btnGonder").attr({ 'disabled': false } ); } } ); $("[data-form='uye-ol']").validation({ button: "#btnGonder", onSubmit: function () { $("[data-form='uye-ol'] #btnGonder").attr({ 'disabled': true } ); } , onCompleted: function () { $("[data-form='uye-ol'] #btnGonder").attr({ 'disabled': false } ); var bs = 0; var dd = new Date(); var status = [11]; status[0] = $("[data-form='uye-ol'] #txtDogrulama").val(); status[1] = dd.getDate() + '.' + (dd.getMonth() + 1) + '.' + dd.getFullYear() + ' ' + dd.getHours() + ':' + dd.getMinutes(); status[2] = $("[data-form='uye-ol'] #txtAdSoyad").val(); status[3] = $("[data-form='uye-ol'] #txtTelefon").val(); status[4] = $("[data-form='uye-ol'] #txtEposta").val(); status[5] = $("[data-form='uye-ol'] #txtSifre").val(); status[6] = $("[data-form='uye-ol'] #txtSifreTekrar").val(); status[7] = Math.floor(Math.random()* new Date().getFullYear()); status[8] = $("[data-form='uye-ol'] #cxSozlesme").is(":checked"); status[9] = $("[data-form='uye-ol'] #slcUyeTuru").val(); if(status[8]==1){ $.ajax({ type: 'post', dataType: 'json', data: { email: '' + status[4] } , url: '/EmailKontrol', success: function (data) { if(data.s==0){ if(status[5]!=status[6]){ alert("Uyarı: Lütfen şifrenizi doğru girdiğinize emin olunuz."); } else{ $.ajax({ type: 'post', dataType: 'json', data: { IP: '172.70.130.22', Tarih: '' + status[1], AdSoyad: '' + status[2], Telefon: '' + status[3], Eposta: '' + status[4], Sifre:''+status[5],DogrulamaKodu:''+status[7],Firma:'',Fax:'',GSM:'',Adres:'',Gorsel:'',Aciklama:'',Durumu:0,UyeTurID:'' + status[9] } , headers: { name: "Uyeler", islem: 0 } , url: '/Api', success: function (data) { if (data.s == "1") { var style = 'font-weight: bold; text-align: center; background-color: #f3f3f3; height: 30px; border-top: solid 1px #dddddd; border-left: solid 1px #dddddd; border-right: solid 1px #dddddd;"'; var style1 = 'padding: 5px; border-left: solid 1px #dddddd; border: solid 1px #dddddd; border-right: solid 1px #dddddd;'; var html = ' | | |
|  | | Yeni Üye Kaydı |
| |
| | | | '; html += 'Adı Soyadı: | '+status[2]+' | '; html += 'Telefon Numarası: | '+status[3]+' | '; html += 'E-Mail Adresi: | '+status[4]+' | '; html += ' | | |
| |
| | |
IP:172.70.130.22 | Tarih:'+status[1]+''; html = jQuery(' ').text(html).html(); $.ajax({ type: 'post', dataType: 'json', data: { Subject: "Yeni Üye Kaydı", Body: '' + html + '', To: 'iletisimformu', bs: bs, validate: status[0] } , url: '/SendMail', success: function (data) { if (data.s == "1") { } else { } } } ); var html1 = ' | | |
| | |
| | | | '; html1 += 'Merhaba '+status[2]+', lütfen e-mail adresinizi doğrulamak için buraya tıklayınız. | '; html1 += ' | | |
| |
| | |
IP:172.70.130.22 | Tarih:'+status[1]+''; html1 = jQuery(' ').text(html1).html(); $.ajax({ type: 'post', dataType: 'json', data: { Subject: "Yurtlar Evimiz e-mail doğrulama.", Body: '' + html1 + '', To: 'uyekayit',addTo:''+status[4], bs: bs, validate: status[0] } , url: '/SendMail', success: function (data) { if (data.s == "1") { if (confirm("Teşekkürler. Üye kaydınız alındı.")) { location.reload(); } else { location.reload(); } } else { bs += 1; alert("Hata oluştu. Lütfen tekrar deneyiniz."); $("[data-form='uye-ol'] #btnGonder").attr({ 'disabled': false } ).val('Gönder'); } } } ); } else { bs += 1; alert("Başvuru işleme esnasında hata oluştu.Lütfen tekrar deneyiniz."); $("[data-form='uye-ol'] #btnGonder").attr({ 'disabled': false } ).val('Gönder'); } } } ); } } else{ alert("E-Mail adresiniz kayıtlı."); } } } ); } else{ alert("Lütfen üyelik sözleşmesini okuduğunuzu kabul ediniz."); } } , onError: function () { $("[data-form='uye-ol'] #btnGonder").attr({ 'disabled': false } ); } } );