1/* see test.html for example matchHeight usage */ 2 3/* testing page code only, you wont need this! */ 4 5$('document').ready(function(e) { 6 if($('.equal').height ){ 7 $('.equal .postinfo-box').matchHeight();} 8 if($('.equal').height ){ 9 $('.equal_box').matchHeight();} 10 11 if($('.equal_height').height ){ 12 $('.equal_height').matchHeight();} 13 14 15 16}); 17 18 19 $(document).ready(function () { 20 //toggle the component with class accordion_body 21 $(".accordion_head").click(function () { 22 if ($('.accordion_body').is(':visible')) { 23 $(".accordion_body").slideUp(300); 24 $(".plusminus").text('+'); 25 } 26 if ($(this).next(".accordion_body").is(':visible')) { 27 $(this).next(".accordion_body").slideUp(300); 28 $(this).children(".plusminus").text('+'); 29 } else { 30 $(this).next(".accordion_body").slideDown(300); 31 $(this).children(".plusminus").text('-'); 32 } 33 }); 34}); 35 36 37/*****focntion simulation****/ 38function affiche_simulation(m,montant_periode,dl,endDateMoment,n,taux_periode) 39{ 40 41 var html=''; 42 43 44 var html='<div class="pricetable-holder"><div class="inner-holder">Vous avez demandé la somme de <b>'+m+'</b> DT. <br> Chaque période, vous allez rembourser : <b>'+montant_periode.toFixed(3)+' DT</b> <br> de la date première échéance <b>('+dl+')</b><br><br>'; 45 46 47 var html=html+'<table width="100%" border="0" cellspacing="1" cellpadding="0" style="font-family:Arial;color:#000;"><tr style="background-color:#ccc;font-weight:bold;"><td class="entete_devise_interne" style="padding:5px;">Echeance</td><td align="center" style="padding:5px;">Reliquat Capital </td><td align="center" style="padding:5px;">Principal</td><td align="center" style="padding:5px;">Intérêts</td><td align="center" style="padding:5px;">Montant échéance</td></tr>'; 48 49 var i=1; 50 var reliquat=m; 51 var principal=0; 52 //console.log("nombre:"+n); 53 //console.log("montant:"+m); 54 date_echeance=moment(dl, "DD-MM-YYYY"); 55 date_initiale=''; 56 while(i<=n){ 57 reliquat=reliquat-principal; 58 //console.log("reliquat:"+reliquat); 59 interet=(reliquat*taux_periode).toFixed(3); 60 if(i==n) 61 { 62 principal=reliquat; 63 interet=montant_periode-principal; 64 } 65 else principal=(montant_periode-interet).toFixed(3); 66 67 if(i%2==0) style_ligne="#f9f9f9"; 68 else style_ligne="#fff"; 69 70 //console.log("date_initiale:"+date_initiale); 71 //console.log("principal:"+principal); 72 principal=parseFloat(principal); 73 interet=parseFloat(interet); 74 montant_periode=parseFloat(montant_periode); 75 76 77 /*$i=1; 78$ti=explode('-',$timestamp); 79$j1=$ti[0]; 80$m1=$ti[1]; 81$a1=$ti[2]; 82$timestamp_echeance=mktime(0,0,0,$m1,$j1,$a1); 83$date_echeance=date("d.m.Y",$timestamp_echeance);*/ 84 85 86 87 88 89 90 91 92 var html=html+'<tr style="padding:5px;"><td style="background-color:'+ style_ligne +';padding:5px;">'; 93 94 //var html=html+date_echeance.format("DD-MM-YYYY"); 95 var html=html+i; 96 97 /*<?php /// Calcul echeance 98 echo $date_echeance; 99 $timestamp_echeance = mktime(0,0,0,date("m",$timestamp_echeance)+$periodicite,date("d",$timestamp_echeance) ,date("Y",$timestamp_echeance) ); 100 $date_echeance=date("d.m.Y",$timestamp_echeance); 101 102 103 ?>*/ 104 var html=html+'</td>'; 105 var html=html+'<td align="center" style="background-color:'+ style_ligne +';padding:5px;">'+ reliquat.toFixed(3) +'</td><td align="center" style="background-color:'+ style_ligne +';padding:5px;">'+ principal.toFixed(3) +'</td><td align="center" style="background-color:'+ style_ligne +';padding:5px;">'+interet.toFixed(3)+'</td><td align="center" style="background-color:'+ style_ligne +';padding:5px;"> '+ montant_periode.toFixed(3)+'</td></tr>'; 106 date_initiale=moment(dl, "DD-MM-YYYY"); 107 date_echeance=date_initiale.add(i, 'months'); 108 i=i+1; 109 } 110 111 var html=html+'</table>'; 112 113 var html=html+'<br><br><em style="font-style: italic;font-size: 12px;line-height:14px;display: inline-block;">Le résultat de cette simulation est à caractère indicatif et ne constitue en aucun cas un engagement contractuel de la part de la BTK.</em></div></div>'; 114 return html; 115 116} 117 118
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.