diff --git a/html/compute.js b/html/compute.js deleted file mode 100644 index 9ecec77b0..000000000 --- a/html/compute.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * This file is part of PhpCompta. - * - * PhpCompta is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * PhpCompta is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with PhpCompta; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ -function CheckTotal() { -var ie4=false; -if ( document.all ) { - ie4=true; -}// Ajouter getElementById par document.all[str] -var deb=0; - for (var i=0;1;i++) { - a=document.getElementById("mont_deb"+i); - if ( a == null ) { - document.forms[0].sum_deb.value=deb; - break; - } else { - if ( isNaN(a.value) == true) { - a.value=0; - alert ("Not a Number !!! "); - } - deb+=eval(a.value); - } - } -var cred=0; - for (var i=0;1;i++) { - a=document.getElementById("mont_cred"+i); - if ( a == null ) { - document.forms[0].sum_cred.value=cred; - break; - } else { - if ( isNaN(a.value) == true) { - a.value=0; - alert ("Not a Number !!! "); - } - cred+=eval(a.value); - } - } -if ( deb != cred ) { - document.getElementById("diff").style.color="red"; - document.getElementById("diff").style.fontWeight="bold"; - document.getElementById("diff").innerHTML="Différence"; - -} else { - document.getElementById("diff").innerHTML=""; -} -} - diff --git a/html/jrn_add.php b/html/jrn_add.php deleted file mode 100644 index 8eb17ab41..000000000 --- a/html/jrn_add.php +++ /dev/null @@ -1,194 +0,0 @@ -Check(); -include_once("check_priv.php"); -include_once ("user_menu.php"); - -echo '
'; - - - -$cn=DbConnect($gDossier); -$User->can_request($cn,GJRN); - - -echo JS_SEARCH_POSTE; - -If ( isset ($_POST["JRN_ADD"]) ) { - if ( !isset($_POST["p_jrn_name"]) || ! isset($_POST["p_jrn_type"] )) { - echo '