var master=fr.account_ini.options; for (i=0; i<master.length; i++){ if (fr.account_ini.selectedIndex==i) { fr.account_fin.options[i]=new Option(master[i].text, master[i].value, false, true) } else { fr.account_fin.options[i]=new Option(master[i].text, master[i].value, false, false) } } } </script> "; echo "<form method=\"POST\" name=\"select\">\n"; echo "<input type=\"hidden\" value=\"".$form['hidden_req']."\" name=\"hidden_req\" />\n"; echo "<input type=\"hidden\" value=\"".$form['ritorno']."\" name=\"ritorno\" />\n"; //echo "<input type=\"hidden\" value=\"".$form['search']."\" name=\"search\" />\n"; $gForm = new contabForm(); echo "<div align=\"center\" class=\"FacetFormHeaderFont\">".$script_transl['title']; echo "</div>\n"; echo "<table class=\"Tmiddle\">\n"; if (!empty($msg)) { echo '<tr><td colspan="2" class="FacetDataTDred">'.$gForm->outputErrors($msg,$script_transl['errors'])."</td></tr>\n"; } echo "<tr>\n"; echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['date']."</td><td colspan=\"2\" class=\"FacetDataTD\">\n"; $gForm->CalendarPopup('this_date',$form['this_date_D'],$form['this_date_M'],$form['this_date_Y'],'FacetSelect',1); echo "</td>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['master_ini']."</td><td class=\"FacetDataTD\">\n"; $gForm->selMasterAcc('master_ini',$form['master_ini'],'master_ini'); echo "</td>\n";
$form["regiva"] = 0; $form["operat"] = 0; $form["pay_schedule"] = 0; for ($i=1; $i<=6; $i++) { $form["contr".$i] = 0; $form["tipim".$i] = ''; $form["daav_".$i] = ''; } } require("../../library/include/header.php"); $script_transl=HeadMain(); echo "<form method=\"POST\" name=\"select\">\n"; echo "<input type=\"hidden\" value=\"".$form['hidden_req']."\" name=\"hidden_req\" />\n"; echo "<input type=\"hidden\" value=\"".$form['ritorno']."\" name=\"ritorno\" />\n"; echo "<input type=\"hidden\" value=\"\" name=\"".ucfirst($toDo)."\">\n"; $gForm = new contabForm(); if ($toDo == 'insert') { echo "<div align=\"center\" class=\"FacetFormHeaderFont\">".$script_transl['ins_this']."</div>\n"; } else { echo "<div align=\"center\" class=\"FacetFormHeaderFont\">".$script_transl['upd_this']." '".$form['codice']."'</div>\n"; echo "<input type=\"hidden\" value=\"".$form['codice']."\" name=\"codice\" />\n"; } echo "<table class=\"Tmiddle\">\n"; if (!empty($msg)) { echo '<tr><td colspan="2" class="FacetDataTDred">'.$gForm->outputErrors($msg,$script_transl['errors'])."</td></tr>\n"; } if ($toDo == 'insert') { echo "<tr>\n"; echo "\t<td class=\"FacetFieldCaptionTD\" colspan=\"2\">".$script_transl['codice']."</td>\n"; echo "\t<td class=\"FacetDataTD\"><input type=\"text\" name=\"codice\" value=\"".$form['codice']."\" align=\"right\" maxlength=\"3\" size=\"3\" /></td>\n"; echo "</tr>\n";
} else { document.myform.tot_A.disabled=true; document.myform.tot_D.disabled=true; document.myform.tot_A.style.backgroundColor='#BBBBBB'; document.myform.tot_D.style.backgroundColor='#BBBBBB'; document.myform.ins.disabled=false; document.myform.diffV.value='".$script_transl['bal']."'; } document.myform.tot_A.value = (Math.round(sumA*100)/100).toFixed(2); document.myform.tot_D.value = (Math.round(sumD*100)/100).toFixed(2); }\n"; echo "</script>\n"; ?> <form method="POST" name="myform"> <?php $gForm = new contabForm(); echo "<input type=\"hidden\" name=\"ritorno\" value=\"".$form['ritorno']."\">"; echo "<input type=\"hidden\" value=\"".$form['hidden_req']."\" name=\"hidden_req\" />\n"; echo "<input type=\"hidden\" name=\"".ucfirst($toDo)."\" value=\"\">\n"; if ($toDo == 'insert') { echo "<div align=\"center\" class=\"FacetFormHeaderFont\">".$script_transl['ins_this']."</div>\n"; } else { echo "<div align=\"center\" class=\"FacetFormHeaderFont\">".$script_transl['upd_this']." n.".$form['id_testata']."</div>\n"; } ?> <table border="0" cellpadding="3" cellspacing="1" class="FacetFormTABLE" align="center"> <?php if (!empty($msg)) { echo '<tr><td colspan="6" class="FacetDataTDred">'.$gForm->outputErrors($msg,$script_transl['errors'])."</td></tr>\n";
} function setDate(name) { calName = name.toString(); var year = document.getElementById(calName+'_Y').value.toString(); var month = document.getElementById(calName+'_M').value.toString(); var day = document.getElementById(calName+'_D').value.toString(); var mdy = month+'/'+day+'/'+year; cal.setReturnFunction('setMultipleValues'); cal.showCalendar('anchor', mdy); } </script> "; echo "<form method=\"POST\" name=\"select\">\n"; echo "<input type=\"hidden\" value=\"".$form['hidden_req']."\" name=\"hidden_req\" />\n"; echo "<input type=\"hidden\" value=\"".$form['ritorno']."\" name=\"ritorno\" />\n"; $gForm = new contabForm(); echo "<div align=\"center\" class=\"FacetFormHeaderFont\">".$script_transl['title']; echo "</div>\n"; echo "<table class=\"Tmiddle\">\n"; if (!empty($msg)) { echo '<tr><td colspan="4" class="FacetDataTDred">'.$gForm->outputErrors($msg,$script_transl['errors'])."</td></tr>\n"; } echo "<tr>\n"; echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['vat_reg']."</td><td class=\"FacetDataTD\">\n"; $gForm->variousSelect('vat_reg',$script_transl['vat_reg_value'],$form['vat_reg'],'FacetSelect',false,'vat_reg'); echo "</td>\n"; echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['vat_section']."</td><td class=\"FacetDataTD\">\n"; $gForm->selectNumber('vat_section',$form['vat_section'],false,1,3,'FacetSelect','vat_section'); echo "\t</td>\n"; echo "</tr>\n"; echo "<tr>\n";
document.getElementById(calName+'_M').selectedIndex=m*1-1; document.getElementById(calName+'_D').selectedIndex=d*1-1; } function setDate(name) { calName = name.toString(); var year = document.getElementById(calName+'_Y').value.toString(); var month = document.getElementById(calName+'_M').value.toString(); var day = document.getElementById(calName+'_D').value.toString(); var mdy = month+'/'+day+'/'+year; cal.setReturnFunction('setMultipleValues'); cal.showCalendar('anchor', mdy); } </script> "; echo "<form method=\"GET\" name=\"select\">\n"; $gForm = new contabForm(); echo "<div align=\"center\" class=\"FacetFormHeaderFont\">".$script_transl['title']; echo "</div>\n"; echo "<table class=\"Tmiddle\">\n"; if (!empty($msg)) { echo '<tr><td colspan="4" class="FacetDataTDred">'.$gForm->outputErrors($msg,$script_transl['errors'])."</td></tr>\n"; } echo "<tr>\n"; echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['stadef']."</td><td class=\"FacetDataTD\">\n"; $gForm->selCheckbox('stadef',$form['stadef'],$script_transl['stadef_title']); echo "</td>\n"; echo "\t<td class=\"FacetFieldCaptionTD\">".$script_transl['pagini']."</td>\n"; echo "\t<td class=\"FacetDataTD\"><input type=\"text\" name=\"pagini\" value=\"".$form['pagini']."\" maxlength=\"5\" size=\"5\" /></td>\n"; echo "</td>\n"; echo "</tr>\n"; echo "<tr>\n";