Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Nöbet 2019"
Bootstrap 4.1.1 Snippet by
pcmy
4.1.1
Preview
HTML
JS
View Full Screen
Fork
Fork this
1.7K
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2> </div> </div> <form class="form-horizontal" name="nobetformu"> <fieldset> <!-- Form Name --> <legend>Nöbet Ücreti Hesaplama</legend> <!-- Select Basic --> <div class="form-group"> <label class="col-md-4 control-label" for="Yıl">Yıl</label> <div class="col-md-4"> <select id="Yıl" name="Yıl" class="form-control"> <option value="ocak">2019</option> </select> </div> </div> <!-- Select Basic --> <div class="form-group"> <label class="col-md-4 control-label" for="unvan">Unvanı</label> <div class="col-md-4"> <select id="unvan" name="unvan" class="form-control"> <option value="bos" selected>Lütfen Seçim Yapınız.</option> <option value="uzman" name="unvan">Uzman Tabip</option> <option value="pratisyen" name="unvan">Pratisyen Tabip</option> <option value="dis" name="unvan">Diş Tabibi ve Eczacı</option> <option value="saglikyo" name="unvan">Sağlık Personeli Y.Ö</option> <option value="sagliklise" name="unvan">Sağlık Personeli Lise</option> <option value="diger" name="unvan">Diğer Personeller</option> </select> </div> </div> <!-- Prepended checkbox --> <div class="form-group"> <label class="col-md-4 control-label" for="normalnobet">Normal Nöbet</label> <div class="col-md-4"> <div class="input-group"> <span class="input-group-addon"> <input type="checkbox" checked="checked" id="normalcheck" name="normalcheck"> </span> <input id="normalnobet" name="normalnobet" class="form-control" type="text" onKeyUp="SayisalDeger(this);" placeholder="Nöbet Süresi"> </div> </div> </div> <!-- Prepended checkbox --> <div class="form-group"> <label class="col-md-4 control-label" for="acilnobet">Ameliyathane Diyaliz Yoğun Bakım Acil Servis 112 vb.</label> <div class="col-md-4"> <div class="input-group"> <span class="input-group-addon"> <input type="checkbox" name="acilcheck" id="acilcheck"> </span> <input id="acilnobet" name="acilnobet" class="form-control" type="text" onKeyUp="SayisalDeger(this);" placeholder="Nöbet Süresi"> </div> </div> </div> <!-- Prepended checkbox --> <div class="form-group"> <label class="col-md-4 control-label" for="diniacil">Dini Bayram Ameliyathane Diyaliz Acil 112 vb.</label> <div class="col-md-4"> <div class="input-group"> <span class="input-group-addon"> <input type="checkbox" id="diniacilcheck" name="diniacilcheck"> </span> <input id="diniacil" name="diniacil" class="form-control" type="text" onKeyUp="SayisalDeger(this);" placeholder="Nöbet Süresi"> </div> </div> </div> <!-- Prepended checkbox --> <div class="form-group"> <label class="col-md-4 control-label" for="dininormal">Dini Bayram Normal Nöbet</label> <div class="col-md-4"> <div class="input-group"> <span class="input-group-addon"> <input type="checkbox" id="dininormalcheck" name="dininormalcheck"> </span> <input id="dininormal" name="dininormal" class="form-control" type="text" onKeyUp="SayisalDeger(this);" placeholder="Nöbet Süresi"> </div> </div> </div> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="Hesaplama">Hesaplama Sonucu</label> <div class="col-md-4"> <input id="sonucu" name="islemsonucu" type="text" placeholder="Nöbet Ücreti" class="form-control input-md"> </div> </div> <!-- Button (Double) --> <div class="form-group"> <label class="col-md-4 control-label" for="hesapla"></label> <div class="col-md-8"> <button id="hesapla" type="button" name="hesapla" class="btn btn-success" onclick="Hesapla()" >Hesapla</button> <button id="reset" name="reset" class="btn btn-danger">Temizle</button> </div> </div> </fieldset> </form>
function Hesapla() { var unvani = document.nobetformu.unvan.value; var normalnobet = document.nobetformu.normalnobet.value; var acilnobet = document.nobetformu.acilnobet.value; var diniacil = document.nobetformu.diniacil.value; var dininormal = document.nobetformu.dininormal.value; var checkednormal = document.nobetformu.normalcheck.value; //var normaluzman = 13.22; var maaskatsayi = 0.130597; var damgavergisi= 0.00759; //var uzmankatsayi, prakatsayi, diskatsayi, syokatsayi, slisekatsayi, diger // 150, 135, 120, 90, 75, 55; var uzmankatsayi = 150; var prakatsayi = 135; var diskatsayi = 120; var syokatsayi = 90; var slisekatsayi = 75; var digerkatsayi = 55; //uzman tabip if (unvani=='uzman' && normalnobet!=='' && normalcheck.checked==true){ //var sonuc = (normaluzman) * (normalnobet) var unn = ((maaskatsayi * uzmankatsayi)- ((maaskatsayi * uzmankatsayi)* damgavergisi)) * parseInt(normalnobet) document.nobetformu.sonucu.value = (unn.toFixed(2) + " "+"TL") } else { document.nobetformu.sonucu.value = ("Lütfen Hesaplama Yapacağınız Kutucuğu İşaretleyiniz.") } if (unvani=='uzman' && acilnobet!='' && acilcheck.checked==true){ var uan = ((uzmankatsayi*maaskatsayi+(uzmankatsayi*maaskatsayi)*0.5)-((uzmankatsayi*maaskatsayi+(uzmankatsayi*maaskatsayi)*0.5)*damgavergisi))* parseInt(acilnobet) document.nobetformu.sonucu.value = (uan.toFixed(2) + " "+"TL") } if (unvani=='uzman' && diniacil!='' && diniacilcheck.checked==true){ var udan = ((uzmankatsayi*maaskatsayi+(uzmankatsayi*maaskatsayi)*0.7)-((uzmankatsayi*maaskatsayi+(uzmankatsayi*maaskatsayi)*0.7)*damgavergisi))* parseInt(diniacil) document.nobetformu.sonucu.value = (udan.toFixed(2) + " "+"TL") } if (unvani=='uzman' && dininormal!='' && dininormalcheck.checked==true){ var udnn = ((uzmankatsayi*maaskatsayi+(uzmankatsayi*maaskatsayi)*0.2)-((uzmankatsayi*maaskatsayi+(uzmankatsayi*maaskatsayi)*0.2)*damgavergisi))* parseInt(dininormal) document.nobetformu.sonucu.value = (udnn.toFixed(2) + " "+"TL") } ////////////////////pratisyen ////// if (unvani=='pratisyen' && normalnobet!=='' && normalcheck.checked==true){ var pnn = ((maaskatsayi * prakatsayi)- ((maaskatsayi * prakatsayi)* damgavergisi)) * parseInt(normalnobet) document.nobetformu.sonucu.value = (pnn.toFixed(2) + " "+"TL") } if (unvani=='pratisyen' && acilnobet!='' && acilcheck.checked==true){ var pan = ((prakatsayi*maaskatsayi+(prakatsayi*maaskatsayi)*0.5)-((prakatsayi*maaskatsayi+(prakatsayi*maaskatsayi)*0.5)*damgavergisi))* parseInt(acilnobet) document.nobetformu.sonucu.value = (pan.toFixed(2) + " "+"TL") } if (unvani=='pratisyen' && diniacil!='' && diniacilcheck.checked==true){ var pdan = ((prakatsayi*maaskatsayi+(prakatsayi*maaskatsayi)*0.7)-((prakatsayi*maaskatsayi+(prakatsayi*maaskatsayi)*0.7)*damgavergisi))* parseInt(diniacil) document.nobetformu.sonucu.value = (pdan.toFixed(2) + " "+"TL") } if (unvani=='pratisyen' && dininormal!='' && dininormalcheck.checked==true){ var pdnn = ((prakatsayi*maaskatsayi+(prakatsayi*maaskatsayi)*0.2)-((prakatsayi*maaskatsayi+(prakatsayi*maaskatsayi)*0.2)*damgavergisi))* parseInt(dininormal) document.nobetformu.sonucu.value = (pdnn.toFixed(2) + " "+"TL") } //////Diş Eczacı/////// if (unvani=='dis' && normalnobet!='' && normalcheck.checked==true){ var dnn = ((maaskatsayi * diskatsayi)- ((maaskatsayi * diskatsayi)* damgavergisi)) * parseInt(normalnobet) document.nobetformu.sonucu.value = (dnn.toFixed(2) + " "+"TL") } if (unvani=='dis' && acilnobet!='' && acilcheck.checked==true){ var dan = ((diskatsayi*maaskatsayi+(diskatsayi*maaskatsayi)*0.5)-((diskatsayi*maaskatsayi+(diskatsayi*maaskatsayi)*0.5)*damgavergisi))* parseInt(acilnobet) document.nobetformu.sonucu.value = (dan.toFixed(2) + " "+"TL") } if (unvani=='dis' && diniacil!='' && diniacilcheck.checked==true){ var ddan = ((diskatsayi*maaskatsayi+(diskatsayi*maaskatsayi)*0.7)-((diskatsayi*maaskatsayi+(diskatsayi*maaskatsayi)*0.7)*damgavergisi))* parseInt(diniacil) document.nobetformu.sonucu.value = (ddan.toFixed(2) + " "+"TL") } if (unvani=='dis' && dininormal!='' && dininormalcheck.checked==true){ var ddnn = ((diskatsayi*maaskatsayi+(diskatsayi*maaskatsayi)*0.2)-((diskatsayi*maaskatsayi+(diskatsayi*maaskatsayi)*0.2)*damgavergisi))* parseInt(dininormal) document.nobetformu.sonucu.value = (ddnn.toFixed(2) + " "+"TL") } ////Sağlık Personeli Yüksekokul///// if (unvani=='saglikyo' && normalnobet!='' && normalcheck.checked==true){ var synn = ((syokatsayi * maaskatsayi)- ((maaskatsayi * syokatsayi)* damgavergisi)) * parseInt(normalnobet) document.nobetformu.sonucu.value = (synn.toFixed(2) + " "+"TL") } if (unvani=='saglikyo' && acilnobet!='' && acilcheck.checked==true){ var syan = ((syokatsayi*maaskatsayi+(syokatsayi*maaskatsayi)*0.5)-((syokatsayi*maaskatsayi+(syokatsayi*maaskatsayi)*0.5)*damgavergisi))* parseInt(acilnobet) document.nobetformu.sonucu.value = (syan.toFixed(2) + " "+"TL") } if (unvani=='saglikyo' && diniacil!='' && diniacilcheck.checked==true){ var sydan = ((syokatsayi*maaskatsayi+(syokatsayi*maaskatsayi)*0.7)-((syokatsayi*maaskatsayi+(syokatsayi*maaskatsayi)*0.7)*damgavergisi))* parseInt(diniacil) document.nobetformu.sonucu.value = (sydan.toFixed(2) + " "+"TL") } if (unvani=='saglikyo' && dininormal!='' && dininormalcheck.checked==true){ var sydnn = ((syokatsayi*maaskatsayi+(syokatsayi*maaskatsayi)*0.2)-((syokatsayi*maaskatsayi+(syokatsayi*maaskatsayi)*0.2)*damgavergisi))* parseInt(dininormal) document.nobetformu.sonucu.value = (sydnn.toFixed(2) + " "+"TL") } /////Sağlık Personeli Lise/////// if (unvani=='sagliklise' && normalnobet!='' && normalcheck.checked==true){ var slnn = ((maaskatsayi * slisekatsayi)- ((maaskatsayi * slisekatsayi)* damgavergisi)) * parseInt(normalnobet) document.nobetformu.sonucu.value = (slnn.toFixed(2) + " "+"TL") } if (unvani=='sagliklise' && acilnobet!='' && acilcheck.checked==true){ var slan = ((slisekatsayi*maaskatsayi+(slisekatsayi*maaskatsayi)*0.5)-((slisekatsayi*maaskatsayi+(slisekatsayi*maaskatsayi)*0.5)*damgavergisi))* parseInt(acilnobet) document.nobetformu.sonucu.value = (slan.toFixed(2) + " "+"TL") } if (unvani=='sagliklise' && diniacil!='' && diniacilcheck.checked==true){ var sldan = ((slisekatsayi*maaskatsayi+(slisekatsayi*maaskatsayi)*0.7)-((slisekatsayi*maaskatsayi+(slisekatsayi*maaskatsayi)*0.7)*damgavergisi))* parseInt(diniacil) document.nobetformu.sonucu.value = (sldan.toFixed(2) + " "+"TL") } if (unvani=='sagliklise' && dininormal!='' && dininormalcheck.checked==true){ var sldnn = ((slisekatsayi*maaskatsayi+(slisekatsayi*maaskatsayi)*0.2)-((slisekatsayi*maaskatsayi+(slisekatsayi*maaskatsayi)*0.2)*damgavergisi))* parseInt(dininormal) document.nobetformu.sonucu.value = (sldnn.toFixed(2) + " "+"TL") } /////Diğer Personel/////// if (unvani=='diger' && normalnobet!='' && normalcheck.checked==true){ var dnn = ((maaskatsayi * digerkatsayi)- ((maaskatsayi * digerkatsayi)* damgavergisi)) * parseInt(normalnobet) document.nobetformu.sonucu.value = (dnn.toFixed(2) + " "+"TL") } if (unvani=='diger' && acilnobet!=''&& acilcheck.checked==true){ var dan = ((digerkatsayi*maaskatsayi+(digerkatsayi*maaskatsayi)*0.5)-((digerkatsayi*maaskatsayi+(digerkatsayi*maaskatsayi)*0.5)*damgavergisi))* parseInt(acilnobet) document.nobetformu.sonucu.value = (dan.toFixed(2) + " "+"TL") } if (unvani=='diger' && diniacil!='' && diniacilcheck.checked==true){ var ddan = ((digerkatsayi*maaskatsayi+(digerkatsayi*maaskatsayi)*0.7)-((digerkatsayi*maaskatsayi+(digerkatsayi*maaskatsayi)*0.7)*damgavergisi))* parseInt(diniacil) document.nobetformu.sonucu.value = (ddan.toFixed(2) + " "+"TL") } if (unvani=='diger' && dininormal!='' && dininormalcheck.checked==true){ var ddnn = ((digerkatsayi*maaskatsayi+(digerkatsayi*maaskatsayi)*0.2)-((digerkatsayi*maaskatsayi+(digerkatsayi*maaskatsayi)*0.2)*damgavergisi))* parseInt(dininormal) document.nobetformu.sonucu.value = (ddnn.toFixed(2) + " "+"TL") } function SayisalDeger(nesne) { var Gecerlikaraketer = "0123456789."; var Sayisal=true; var Kisim; for (i = 0; i < nesne.value.length && Sayisal == true; i++) { Kisim = nesne.value.charAt(i); if (Gecerlikaraketer.indexOf(Kisim) == -1) { // alert('Lütfen Sadece Sayisal Deger Giriniz') nesne.value = nesne.value.substring(0,i); break; } } return Sayisal; } }
Related:
See More
Template
Vue Light Bootstrap Dashboard PRO
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76