Exemplo n.º 1
0
$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";
echo "<td rowspan=\"2\" class=\"FacetDataTD\">";
echo '<input type="submit" name="selall" value="';
echo $script_transl['selall'];
echo '">';
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['account_ini']."</td><td class=\"FacetDataTD\">\n";
$gForm->lockSubtoMaster($form['master_ini'],'account_ini');
$gForm->selSubAccount('account_ini',$form['account_ini'],$form['search']['account_ini'],$form['hidden_req'],$script_transl['mesg']);
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['master_fin']."</td><td class=\"FacetDataTD\">\n";
$gForm->selMasterAcc('master_fin',$form['master_fin'],'master_fin');
echo "</td>\n";
echo "<td rowspan=\"2\" class=\"FacetDataTD\">";
echo '<input type="button" onclick="copy(this)" value="';
echo $script_transl['selfin'];
echo '">';
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['account_fin']."</td><td class=\"FacetDataTD\">\n";
Exemplo n.º 2
0
        echo "<td class=\"FacetDataTDred\"><input type=\"text\" align=\"right\" name=\"impost_ri[$i]\" value=\"".sprintf("%01.2f",preg_replace("/\,/",'.',$form['impost_ri'][$i]))."\" maxlength=\"13\" size=\"13\"></td>\n";
        echo "<TD  class=\"FacetDataTD\" align=\"right\"><input type=\"image\" name=\"dei[$i]\"  src=\"../../library/images/xbut.gif\" title=\"".$script_transl['delrow']."!\" ><br></td></tr>\n";
        echo "</tr>";
    }
echo "</table>";
}
//inserimento movimento contabile
echo "<div align=\"center\" class=\"FacetFormHeaderFont\">".$script_transl['del_this']."</div>\n";
echo "<table class=\"Tlarge\">\n";
echo "<tr><td class=\"FacetColumnTD\">".$script_transl['mas']."</td><td class=\"FacetColumnTD\">".$script_transl['sub']."</td><td class=\"FacetColumnTD\">".$script_transl['amount']."</td><td class=\"FacetColumnTD\">".$script_transl['daav']."</td><td class=\"FacetColumnTD\">".$script_transl['addrow']."!</td></tr>\n";
echo "<tr>\n";
echo "<td class=\"FacetColumnTD\">\n#";
$gForm->selMasterAcc('insert_mastro',$form['insert_mastro'],'insert_mastro');
echo "</td>\n";
echo "<td class=\"FacetColumnTD\">\n";
$gForm->lockSubtoMaster($form['insert_mastro'],'insert_conto');
$gForm->sub_Account('insert_conto',$form['insert_conto'],$form['search']['insert_conto'],$form['hidden_req'],$script_transl['mesg']);
echo "</td>\n";
echo "<td class=\"FacetColumnTD\"><div onmousedown=\"toggleContent('insert')\" class=\"clickarea\" style=\"cursor:pointer;\">";
echo "<input style=\"text-align:right;\" type=\"text\" value=\"\" maxlength=\"13\" size=\"13\" id=\"insert_import\" name=\"insert_import\"> &crarr;</div>\n";
$gForm->settleAccount('insert',$form['insert_conto'],sprintf("%04d%02d%02d",$form['date_reg_Y'],$form['date_reg_M'],$form['date_reg_D']));
echo "</td>";
echo "\t<td  class=\"FacetDataTD\">\n";
$gForm->variousSelect('insert_darave',$script_transl['daav_value'],$form['insert_darave'],'FacetSelect',false);
echo "\t </td>\n";
echo "<td class=\"FacetColumnTD\" align=\"right\"><input type=\"image\" name=\"add\" src=\"../../library/images/vbut.gif\" title=\"".$script_transl['addrow']."\"></td></tr>\n";
echo "<TR><td class=\"FacetColumnTD\" colspan=\"5\"><hr></td></tr>";
//fine rigo inserimento

// inizio righi già inseriti
// faccio un primo ciclo del form per sommare e analizzare gli sbilanciamenti