Merge remote-tracking branch 'origin/master'

This commit is contained in:
Vincent Danjean 2014-11-18 21:36:59 +01:00
commit 0ac146db07
228 changed files with 9685 additions and 1689 deletions

View file

@ -655,7 +655,7 @@ RECURSIVE = YES
# excluded from the INPUT source files. This way you can easily exclude a
# subdirectory from a directory tree whose root is specified with the INPUT tag.
EXCLUDE = ../../html/addon ../../include/tfpdf
EXCLUDE = ../../html/addon ../../include/tfpdf ../../unit-test
# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
# directories that are symbolic links (a Unix filesystem feature) are excluded

View file

@ -41,7 +41,7 @@ if (isset($_REQUEST['plugin_code']) )
exit();
}
/* call the ajax script */
require_once('ext'.DIRECTORY_SEPARATOR.dirname(trim($ext->get_parameter('me_file'))).DIRECTORY_SEPARATOR.'ajax.php');
require_once('ext'.DIRECTORY_SEPARATOR.dirname(trim($ext->getp('me_file'))).DIRECTORY_SEPARATOR.'ajax.php');
}
else
{

View file

@ -53,7 +53,7 @@
* - ref if we want to refresh the window
*\see fiche fiche::Save constant.php
*/
define ('ALLOWED',1);
if ( ! defined('ALLOWED')) define ('ALLOWED',1);
require_once '../include/constant.php';
require_once('class_database.php');
@ -94,6 +94,24 @@ $g_user=new User($cn);
$g_user->check(true);
$g_user->check_dossier($gDossier,true);
$html=var_export($_REQUEST,true);
if ( LOGINPUT)
{
$file_loginput=fopen($_ENV['TMP'].'/scenario-'.$_SERVER['REQUEST_TIME'].'.php','a+');
fwrite ($file_loginput,"<?php \n");
fwrite ($file_loginput,'//@description:'.$op."\n");
fwrite($file_loginput, '$_GET='.var_export($_GET,true));
fwrite($file_loginput,";\n");
fwrite($file_loginput, '$_POST='.var_export($_POST,true));
fwrite($file_loginput,";\n");
fwrite($file_loginput, '$_POST[\'gDossier\']=$gDossierLogInput;');
fwrite($file_loginput,"\n");
fwrite($file_loginput, '$_GET[\'gDossier\']=$gDossierLogInput;');
fwrite($file_loginput,"\n");
fwrite($file_loginput,' $_REQUEST=array_merge($_GET,$_POST);');
fwrite($file_loginput,"\n");
fwrite($file_loginput,"include '".basename(__FILE__)."';\n");
fclose($file_loginput);
}
switch($op)
{
/* ------------------------------------------------------------ */
@ -204,7 +222,7 @@ case 'bc':
/* Before inserting a new card, the type must be selected */
/* ------------------------------------------------------------ */
case 'st':
$sql="select fd_id,fd_label from fiche_def";
$sql="select fd_id,fd_label,fd_description from fiche_def";
/* if we filter thanks the ledger*/
if ( $ledger != -1 )
{
@ -257,7 +275,7 @@ case 'st':
}
$sql.=" ".$where." order by fd_label";
$array=$cn->make_array($sql);
$array=$cn->get_array($sql);
$html=HtmlInput::title_box(_("Choix de la catégorie"), $ctl);
if ( empty($array))
@ -269,22 +287,40 @@ case 'st':
else
{
$r='';
$r.='<p class="notice" style="padding-left:2em">';
$r.='<p style="padding-left:2em">';
$r.=_("Choississez la catégorie de fiche à laquelle vous aimeriez ajouter une fiche").'</p>';
$isel=new ISelect('fd_id');
$isel->value=$array;
$r.='<div style="text-align:center">';
$r.='<form id="sel_type" method="GET" onsubmit="this.ipopup='.$ctl.';dis_blank_card(this);return false;" >';
$msg=_('Choisissez une catégorie svp');
$r.='<form id="sel_type" method="GET" onsubmit="this.ipopup='.$ctl.";if ($('fd_id').value != 0 ) {dis_blank_card(this);return false;} else "
. "{ $('error_cat').innerHTML='".$msg."'; return false;}\">" ;
$r.='<span id="error_cat" class="notice"></span>';
$r.=dossier::hidden();
$r.=(isset($ref))?HtmlInput::hidden('ref',1):'';
$r.=$isel->input();
$r.=_('Filtrer').' '.HtmlInput::filter_table("cat_card_table", '0,1', 0);
$r.='<table id="cat_card_table" class="result">';
for ($i=0;$i<count($array);$i++)
{
$class=($i%2==0)?' class="even" ':' class="odd" ';
$r.='<tr '.$class.' id="select_cat_row_'.$array[$i]['fd_id'].'">';
$r.='<td >';
$r.='<a href="javascript:void(0)" onclick="select_cat(\''.$array[$i]['fd_id'].'\')">'.h($array[$i]['fd_label']).'</a>';
$r.='</td>';
$r.='<td>';
$r.='<a href="javascript:void(0)" onclick="select_cat(\''.$array[$i]['fd_id'].'\')">'.h($array[$i]['fd_description']).'</a>';
$r.='</td>';
$r.="</tr>";
}
$r.='</table>';
$r.=HtmlInput::hidden('fd_id',0);
$r.='<p>';
$r.=HtmlInput::submit('st','choix');
$r.=HtmlInput::button('Annuler',_('Annuler')," onclick=\"removeDiv('$ctl')\" ");
$r.='</p>';
$r.='</form>';
$r.='</div>';
$r.='</div>';
$html.=$r;
}
@ -404,6 +440,7 @@ case 'ac':
*
*----------------------------------------------------------------------*/
$ipopup=str_replace('_content','',$ctl);
$msg="";$base="";
switch($cat)
{
case FICHE_TYPE_CLIENT:
@ -418,9 +455,13 @@ case 'ac':
$msg=_(' d\'administration');
$base='';
break;
case FICHE_TYPE_CONTACT:
$msg=_(' de contacts');
$base='';
case FICHE_TYPE_CONTACT:
$msg=_(' de contacts');
$base='';
case FICHE_TYPE_FIN:
$msg=_(' Banque');
$base=$cn->get_value("select p_value from parm_code where p_code='BANQUE'");
}
$html='';
@ -514,13 +555,15 @@ case 'upc':
}
}
} // switch
$html=escape_xml($html);
$xml=escape_xml($html);
if (DEBUG && headers_sent()) {
echo $html;return;
}
header('Content-type: text/xml; charset=UTF-8');
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
<ctl>$ctl</ctl>
<code>$html</code>
<code>$xml</code>
</data>
EOF;

View file

@ -23,6 +23,8 @@
* \brief show the history of a card of an accounting
* for the card f_id is set and for an accounting : pcm_val
*/
if ( ! defined('ALLOWED')) define ('ALLOWED',1);
require_once '../include/constant.php';
require_once('class_database.php');
require_once('class_user.php');
@ -33,7 +35,6 @@ require_once('class_acc_account.php');
require_once('class_exercice.php');
$div=$_REQUEST['div'];
mb_internal_encoding("UTF-8");
define ('ALLOWED',1);
/**
*if $_SESSION['g_user'] is not set : echo a warning
@ -46,7 +47,24 @@ $g_user=new User($cn);
if ( $g_user->check_dossier(dossier::id(),true) == 'X' ) exit();
$from_div = (isset($_REQUEST['ajax'])) ? 1 : $_GET['l'];
if ( LOGINPUT)
{
$file_loginput=fopen($_ENV['TMP'].'/scenario-'.$_SERVER['REQUEST_TIME'].'.php','a+');
fwrite ($file_loginput,"<?php \n");
fwrite ($file_loginput,"//@description:\n");
fwrite($file_loginput, '$_GET='.var_export($_GET,true));
fwrite($file_loginput,";\n");
fwrite($file_loginput, '$_POST='.var_export($_POST,true));
fwrite($file_loginput,";\n");
fwrite($file_loginput, '$_POST[\'gDossier\']=$gDossierLogInput;');
fwrite($file_loginput,"\n");
fwrite($file_loginput, '$_GET[\'gDossier\']=$gDossierLogInput;');
fwrite($file_loginput,"\n");
fwrite($file_loginput,' $_REQUEST=array_merge($_GET,$_POST);');
fwrite($file_loginput,"\n");
fwrite($file_loginput,"include '".basename(__FILE__)."';\n");
fclose($file_loginput);
}
///////////////////////////////////////////////////////////////////////////
/* first detail for a card */
///////////////////////////////////////////////////////////////////////////
@ -189,12 +207,15 @@ if ( isset($_REQUEST['pcm_val']))
ob_end_clean();
}
}
$html=escape_xml($html);
$xml=escape_xml($html);
if (DEBUG && headers_sent()) {
echo $html;return;
}
header('Content-type: text/xml; charset=UTF-8');
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
<ctl>$div</ctl>
<code>$html</code>
<code>$xml</code>
</data>
EOF;

View file

@ -28,7 +28,8 @@
- for reconcialiation
- update of analytic content
*/
define ('ALLOWED',1);
if ( ! defined('ALLOWED')) define ('ALLOWED',1);
require_once '../include/constant.php';
require_once('class_database.php');
require_once('class_user.php');
@ -63,7 +64,24 @@ ajax_disconnected($div);
$cn=new Database(dossier::id());
$g_parameter=new Own($cn);
if ( LOGINPUT)
{
$file_loginput=fopen($_ENV['TMP'].'/scenario-'.$_SERVER['REQUEST_TIME'].'.php','a+');
fwrite ($file_loginput,"<?php \n");
fwrite ($file_loginput,'//@description:'.$action."\n");
fwrite($file_loginput, '$_GET='.var_export($_GET,true));
fwrite($file_loginput,";\n");
fwrite($file_loginput, '$_POST='.var_export($_POST,true));
fwrite($file_loginput,";\n");
fwrite($file_loginput, '$_POST[\'gDossier\']=$gDossierLogInput;');
fwrite($file_loginput,"\n");
fwrite($file_loginput, '$_GET[\'gDossier\']=$gDossierLogInput;');
fwrite($file_loginput,"\n");
fwrite($file_loginput,' $_REQUEST=array_merge($_GET,$_POST);');
fwrite($file_loginput,"\n");
fwrite($file_loginput,"include '".basename(__FILE__)."';\n");
fclose($file_loginput);
}
// check if the user is valid and can access this folder
global $g_user;
$g_user=new User($cn);
@ -104,7 +122,7 @@ if ($ledger=="")
ob_end_clean();
$html=escape_xml($html);
header('Content-type: text/xml; charset=UTF-8');
if ( ! headers_sent()) { header('Content-type: text/xml; charset=UTF-8');} else { echo "HTML".unescape_xml($html);}
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
@ -493,6 +511,12 @@ case 'save':
//////////////////////////////////////////////////////////////////
$op->save_info($_POST['OTHER'],'OTHER');
$op->save_info($_POST['BON_COMMANDE'],'BON_COMMANDE');
///////////////////////////////////////////////////////////////////
// Save related
//////////////////////////////////////////////////////////////////
$related=HtmlInput::default_value_post("related", "0");
if ($related == "0" ) throw new Exception('Parameter not send -> related'.__FILE__.__LINE__,10);
$op->insert_related_action($related);
}
echo _('Opération sauvée');
@ -556,8 +580,9 @@ case 'reverseop':
break;
}
$html=escape_xml($html);
header('Content-type: text/xml; charset=UTF-8');
echo <<<EOF
if ( ! headers_sent()) { header('Content-type: text/xml; charset=UTF-8');} else { echo "HTML".unescape_xml($html);}
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
<ctl>$div</ctl>

View file

@ -34,7 +34,8 @@
* dl : display form to modify, add and delete lettering for a given operation
*
*/
define ('ALLOWED',1);
if ( ! defined('ALLOWED')) define ('ALLOWED',1);
require_once '../include/constant.php';
require_once('class_database.php');
require_once ('class_fiche.php');
@ -69,6 +70,24 @@ if ($gDossier<>0) {
}
$html = var_export($_REQUEST, true);
if ( LOGINPUT)
{
$file_loginput=fopen($_ENV['TMP'].'/scenario-'.$_SERVER['REQUEST_TIME'].'.php','a+');
fwrite ($file_loginput,"<?php \n");
fwrite ($file_loginput,'//@description:'.$op."\n");
fwrite($file_loginput, '$_GET='.var_export($_GET,true));
fwrite($file_loginput,";\n");
fwrite($file_loginput, '$_POST='.var_export($_POST,true));
fwrite($file_loginput,";\n");
fwrite($file_loginput, '$_POST[\'gDossier\']=$gDossierLogInput;');
fwrite($file_loginput,"\n");
fwrite($file_loginput, '$_GET[\'gDossier\']=$gDossierLogInput;');
fwrite($file_loginput,"\n");
fwrite($file_loginput,' $_REQUEST=array_merge($_GET,$_POST);');
fwrite($file_loginput,"\n");
fwrite($file_loginput,"include '".basename(__FILE__)."';\n");
fclose($file_loginput);
}
switch ($op)
{
case "remove_anc":
@ -645,6 +664,12 @@ EOF;
*/
require_once 'ajax_anc_key_compute.php';
break;
case 'account_update':
/**
* update an accounting (from CFGPCMN)
*/
require_once 'ajax_account_update.php';
break;
default:
var_dump($_GET);
}

View file

@ -32,7 +32,8 @@
*
*
*/
define ('ALLOWED',1);
if ( ! defined('ALLOWED')) define ('ALLOWED',1);
require_once '../include/constant.php';
require_once ("ac_common.php");
require_once('class_acc_ledger.php');
@ -65,7 +66,24 @@ $g_user=new User($cn);
$g_user->Check();
if ($g_user->check_dossier(dossier::id()) == 'X') exit();
$xml="";
if ( LOGINPUT)
{
$file_loginput=fopen($_ENV['TMP'].'/scenario-'.$_SERVER['REQUEST_TIME'].'.php','a+');
fwrite ($file_loginput,"<?php \n");
fwrite ($file_loginput,'//@description:'.$op."\n");
fwrite($file_loginput, '$_GET='.var_export($_GET,true));
fwrite($file_loginput,";\n");
fwrite($file_loginput, '$_POST='.var_export($_POST,true));
fwrite($file_loginput,";\n");
fwrite($file_loginput, '$_POST[\'gDossier\']=$gDossierLogInput;');
fwrite($file_loginput,"\n");
fwrite($file_loginput, '$_GET[\'gDossier\']=$gDossierLogInput;');
fwrite($file_loginput,"\n");
fwrite($file_loginput,' $_REQUEST=array_merge($_GET,$_POST);');
fwrite($file_loginput,"\n");
fwrite($file_loginput,"include '".basename(__FILE__)."';\n");
fclose($file_loginput);
}
switch ($op)
{
/*----------------------------------------------------------------------

View file

@ -95,7 +95,7 @@ if ($cn->exist_table('version') == false)
{
echo '<h2 class="error" style="font-size:12px">' . _("Base de donnée invalide") . '</h2>';
$base = dirname($_SERVER['REQUEST_URI']);
echo HtmlInput::button_anchor('Retour', $base . '/user_login.php');
echo HtmlInput::button_anchor('Retour', $base . '/user_login.php');
exit();
}
if (DBVERSION < dossier::get_version($cn))
@ -150,11 +150,34 @@ if ( isset ($_POST['set_preference'])) {
$_SESSION['g_pagesize']=$p_size;
$_SESSION['g_lang']=$lang;
}
/*
* if an action is requested
*/
if (isset($_REQUEST['ac']))
{
// When debugging save all the input in a file
if ( LOGINPUT)
{
$file_loginput=fopen($_ENV['TMP'].'/scenario-'.$_SERVER['REQUEST_TIME'].'.php','a+');
$tmp_ac=explode('/',trim(strtoupper($_REQUEST['ac'])));
$last=count($tmp_ac);
if ($last > 0) $last--;
fwrite ($file_loginput,"<?php \n");
fwrite ($file_loginput,'//@description:'.$tmp_ac[$last]."\n");
fwrite($file_loginput, '$_GET='.var_export($_GET,true));
fwrite($file_loginput,";\n");
fwrite($file_loginput, '$_POST='.var_export($_POST,true));
fwrite($file_loginput,";\n");
fwrite($file_loginput, '$_POST[\'gDossier\']=$gDossierLogInput;');
fwrite($file_loginput,"\n");
fwrite($file_loginput, '$_GET[\'gDossier\']=$gDossierLogInput;');
fwrite($file_loginput,"\n");
fwrite($file_loginput,' $_REQUEST=array_merge($_GET,$_POST);');
fwrite($file_loginput,"\n");
fclose($file_loginput);
}
$_REQUEST['ac']= trim(strtoupper($_REQUEST['ac']));
$all = explode('/', $_REQUEST['ac']);
$module_selected = $all[0];

View file

@ -52,7 +52,7 @@ if ( $ext->search($_REQUEST['plugin_code']) != -1 )
exit();
}
/* call the ajax script */
require_once('ext'.DIRECTORY_SEPARATOR.dirname(trim($ext->get_parameter('me_file'))).DIRECTORY_SEPARATOR.'raw.php');
require_once('ext'.DIRECTORY_SEPARATOR.dirname(trim($ext->getp('me_file'))).DIRECTORY_SEPARATOR.'raw.php');
}
else
{

View file

@ -203,7 +203,7 @@ if ( strlen(domaine) > 0 )
echo '
<span style="background-color:#879ed4;color:white;padding-left:4px;padding-right:4px;">
version 6.7.2.1 - '.$my_domain.'
version 6.7.2.3 - '.$my_domain.'
</span>
<BR>
<BR>

View file

@ -645,8 +645,6 @@ function view_history_account(p_value,dossier)
{
success_box(req,xml);
g(id).style.top=calcy(140+(layer*3))+"px";
g(id).style.left="10%";
g(id).style.width='80%';
}
}
);
@ -667,8 +665,6 @@ function update_history_account(obj)
{
success_box(req,xml);
g(obj.div).style.top=calcy(140+(layer*3))+"px";
g(obj.div).style.left="10%";
g(obj.div).style.width='80%';
}
});
} catch (e)
@ -703,8 +699,6 @@ var popup={'id':
{
success_box(req,xml);
g(id).style.top=calcy(140+(layer*3))+"px";
g(id).style.left="10%";
g(id).style.width='80%';
}
}
);
@ -724,8 +718,6 @@ function update_history_card(obj)
{
success_box(req,xml);
g(obj.div).style.top=calcy(140+(layer*3))+"px";
g(obj.div).style.left="10%";
g(obj.div).style.width='80%';
}
});
} catch (e)
@ -804,8 +796,6 @@ function modifyOperation(p_value, dossier)
success_box(xml, txt);
$(id).style.position="absolute";
$(id).style.top = calcy(100 + (layer * 3))+"px";
g(id).style.left = '10%';
g(id).style.width = "80%";
}
}
);
@ -994,8 +984,8 @@ function op_save(obj)
parameters:queryString,
onFailure:null,
onSuccess:infodiv
}
);
}
);
}
return false;
} catch (e)

View file

@ -39,17 +39,37 @@ function set_jrn_parent(p_ctl,p_value)
f.value+=p_value;
}
}
/**
* Display a box with accounting detail for update, delete or add
* @param {type} p_value pcmn_val
* @param {type} p_lib pcmn_lib
* @param {type} p_parent pcmn_val_parent
* @param {type} p_type pcmn_val_type
* @param {type} p_dossier gDossier
* @param {type} p_top position of the box
* @param {type} p_action = new | update | delete
* @returns {undefined}
*/
function PcmnUpdate(p_value,p_lib,p_parent,p_type,p_dossier)
function PcmnUpdate(p_value,p_lib,p_parent,p_type,p_dossier,p_top,p_action)
{
console.log(p_type);
$('p_valu').value=p_value;
$('p_oldu').value=p_value;
$('p_libu').value=p_lib;
$('p_parentu').value=p_parent;
$('p_typeu').value=p_type;
$('acc_update').style.top=posY+offsetY+"px";
$('acc_update').style.left=posX+offsetX+"px";
var i=0;
for (i=0;i < $('p_typeu').options.length;i++) {
if ($('p_typeu').options[i].value== p_type) {$('p_typeu').options.selectedIndex= i; break; }
}
$('p_typeu').options.selectedIndex=p_type;
$('acc_update').style.top=(posY+offsetY+p_top)+"px";
$('acc_update').style.left="10%";
$('acc_update').style.width="80%";
$('acc_update_info').innerHTML="";
$('p_action').value=p_action;
$('delete_acc').checked=false;
$('acc_update').show();
}
/**
@ -248,3 +268,95 @@ function errorPoste()
{
alert('Ajax failed');
}
function pausecomp(millis)
{
var date = new Date();
var curDate = null;
do { curDate = new Date(); }
while(curDate-date < millis);
}
/**
* Update an accounting with the information in the form, called frmo
* param_pcmn.inc.php
* @param {type} p_obj_id id of the form
* @returns false
*/
function account_update(p_obj_id)
{
try {
waiting_box();
console.log('call account_update');
// initialize variables
var gDossier=0;
var p_action="";
var p_oldu=-1;
var p_valu="";
var p_libu="";
var p_parentu="";
var form=$('acc_update_frm_id');
var notfound="not found:";
var p_typeu=-1;
// get them
if ( form['gDossier']) { gDossier=form['gDossier'].value;}else { notfound+='gDossier';}
if ( form['p_action']) { action=form['p_action'].value;}else { notfound+=', p_action ';}
if ( form['p_oldu']) { p_oldu=form['p_oldu'].value;}else { notfound+=', p_oldu';}
if ( form['p_valu']) { p_valu=form['p_valu'].value;}else { notfound+=', p_valu';}
if ( form['p_libu']) { p_libu=form['p_libu'].value;}else { notfound+=', p_libu ';}
if ( form['p_parentu']) { p_parentu=form['p_parentu'].value;}else { notfound+='p_parentu';}
if ( form['delete_acc']) {
if (form['delete_acc'].checked) { acc_delete=1;} else {acc_delete=0} }
else {
notfound += ', delete_acc';
}
if ( form['p_typeu']) { p_typeu=form['p_typeu'].value;} else { notfound+=", p_typeu";}
console.log (notfound);
if ( notfound != "not found:") throw notfound;
var queryString = "op=account_update" + "&gDossier=" + gDossier+ "&action=" + action + "&p_oldu=" + p_oldu+"&p_valu="+p_valu+"&p_libu="+p_libu+"&p_parentu="+p_parentu+"&acc_delete="+acc_delete+"&p_typeu="+p_typeu;
var ajax_action = new Ajax.Request(
"ajax_misc.php",
{
method: 'get',
parameters: queryString,
onFailure: error_box,
onSuccess: function(req, json) {
try
{
var name_ctl = 'acc_update_info';
var answer = req.responseXML;
remove_waiting_box();
var html = answer.getElementsByTagName('code');
var ctl = answer.getElementsByTagName('ctl')[0].textContent;
if (html.length == 0) {
var rec = req.responseText;
alert('erreur :' + rec);
}
console.log("ctl ");console.log(ctl);
console.log('Received ajax_call');
var code_html = getNodeText(html[0]); // Firefox ne prend que les 4096 car.
code_html = unescape_xml(code_html);
console.log(code_html);
$(name_ctl).innerHTML = code_html;
if ( ctl == 'ok') {
window.location.reload();
}
} catch (e)
{
error_message(e.message);
return false;
}
}
}
);
}catch (e) {
if (console) { console.log('Account update'); }
return false;
}
return false;
}

View file

@ -106,8 +106,8 @@ function anc_refresh_remain(p_table, p_seq)
var tot_table = compute_total_table(p_table, p_seq);
var remain = tot_line - tot_table;
remain = Math.round(remain * 100) / 100;
var popup_table = p_table.toString();
p_table = popup_table.replace("popup", "");
// var popup_table = p_table.toString();
// p_table = popup_table.replace("popup", "");
$('remain' + p_table).innerHTML = remain;
if (remain == 0)
{
@ -432,19 +432,13 @@ function anc_key_compute(p_dossier, p_table, p_amount, p_key_id)
* @param p_amount amount to distribute
* @param p_ledger
*/
function anc_key_choice(p_dossier, p_table, p_amount)
function anc_key_choice(p_dossier, p_table, p_amount,p_ledger)
{
waiting_box();
var op = 'op=anc_key_choice';
var queryString = op + "&gDossier=" + p_dossier + "&t=" + p_table + "&amount=" + p_amount;
try {
var ledger=$('p_jrn');
if (ledger == null ) {
error_message('error : ledger is null ');
return;
}
queryString+='&led='+ledger.value;
queryString+='&led='+p_ledger;
var action = new Ajax.Request(
"ajax_misc.php",
{
@ -467,7 +461,8 @@ function anc_key_choice(p_dossier, p_table, p_amount)
var code_html = getNodeText(html[0]); // Firefox ne prend que les 4096 car.
code_html = unescape_xml(code_html);
console.log(code_html);
add_div({id: name_ctl, cssclass: 'inner_box', style: 'top:30%;right:35%;position:absolute', drag: 1});
var position=fixed_position(50,120);
add_div({id: name_ctl, cssclass: 'inner_box', style: position, drag: 1});
$(name_ctl).innerHTML = code_html;
} catch (e)
{

View file

@ -439,14 +439,14 @@ function select_card_type(obj)
var sx=0;
if ( window.scrollY)
{
sx=window.scrollY+40;
sx=window.scrollY+160;
}
else
{
sx=document.body.scrollTop+60;
sx=document.body.scrollTop+160;
}
var str_style="top:"+sx+"px;left:25%;height:30%";
var str_style="top:"+sx+"px;height:auto";
waiting_box();
var popup={'id': content,'cssclass':'inner_box','style':str_style,'html':"",'drag':true};
@ -510,7 +510,7 @@ function dis_blank_card(obj)
ref='&ref';
}
var content='div_new_card';
var nTop=calcy(30);
var nTop=calcy(150);
var nLeft=posX;
var str_style="top:"+nTop+"px;right:"+nLeft+"px;height:auto";

View file

@ -79,7 +79,7 @@ function update_document(p_dossier,p_id)
*/
function remove_operation(p_dossier,p_id)
{
queryString="gDossier="+p_dossier+"&a=rmop&id="+p_id;
var queryString="gDossier="+p_dossier+"&a=rmop&id="+p_id;
var action=new Ajax.Request (
"show_document.php",
{

View file

@ -772,9 +772,7 @@ function success_box(req, json)
g(name_ctl).innerHTML = code_html;
g(name_ctl).style.height = 'auto';
if (name_ctl != 'popup')
g(name_ctl).style.width = '60%';
else
if (name_ctl == 'popup')
g(name_ctl).style.width = 'auto';
}
catch (e)
@ -1373,7 +1371,7 @@ function mod_menu(gdossier, pm_id)
waiting_box();
removeDiv('divdm' + pm_id);
var qs = "op=det_menu&gDossier=" + gdossier + "&pm_id=" + pm_id + "&ctl=divdm" + pm_id;
var pos = fixed_position(250, 150);
var pos = fixed_position(50, 250);
var action = new Ajax.Request('ajax_misc.php',
{
method: 'get',
@ -1575,7 +1573,6 @@ function search_action(dossier, ctl_concern)
var target = "search_action_div";
removeDiv(target);
var str_style = fixed_position(77, 99);
str_style += ";width:80%";
var div = {id: target, cssclass: 'inner_box', style: str_style, html: loading(), drag: 1};
@ -1682,7 +1679,7 @@ function stock_repo_change(p_dossier, r_id)
var queryString = "gDossier=" + p_dossier + "&op=mod_stock_repo" + "&r_id=" + r_id;
var nTop = calcy(posY);
var nLeft = "200px";
var str_style = "top:" + nTop + "px;left:" + nLeft + ";width:50em;height:auto";
var str_style = "top:" + nTop + "px;left:" + nLeft + ";height:auto";
removeDiv('change_stock_repo_div');
waiting_box();
@ -1705,7 +1702,7 @@ function stock_inv_detail(p_dossier, p_id)
var queryString = "gDossier=" + p_dossier + "&op=view_mod_stock" + "&c_id=" + p_id + "&ctl=view_mod_stock_div";
var nTop = calcy(posY);
var nLeft = "200px";
var str_style = "top:" + nTop + "px;left:" + nLeft + ";width:75%;";
var str_style = "top:" + nTop + "px;left:" + nLeft + ";";
removeDiv('view_mod_stock_div');
waiting_box();
@ -1894,7 +1891,8 @@ function filter_table(phrase, _id, colnr, start_row) {
aCol[0] = colnr;
}
var ele;
var tot_found=0;
for (var r = start_row; r < table.rows.length; r++) {
var found = 0;
for (var col = 0; col < aCol.length; col++)
@ -1911,6 +1909,7 @@ function filter_table(phrase, _id, colnr, start_row) {
}
if (found === 1) {
tot_found++;
table.rows[r].style.display = '';
} else {
table.rows[r].style.display = 'none';
@ -1918,6 +1917,15 @@ function filter_table(phrase, _id, colnr, start_row) {
$('info_div').style.display = "none";
$('info_div').innerHTML = "";
}
if (tot_found == 0) {
if ($('info_'+_id)) {
$('info_'+_id).innerHTML=" Aucun résultat ";
}
} else {
if ($('info_'+_id)) {
$('info_'+_id).innerHTML=" ";
}
}
}
/**
* @brief
@ -2231,9 +2239,9 @@ function action_tag_select(p_dossier, ag_id)
}
var code_html = getNodeText(html[0]);
code_html = unescape_xml(code_html);
add_div({id: 'tag_div', style: '', cssclass: 'inner_box', drag: 1});
$('tag_div').style.top = (posY - 70)+"px";
$('tag_div').style.left = (posX - 70)+"px";
pos=fixed_position(35,229 );
add_div({id: 'tag_div', style: pos, cssclass: 'inner_box tag', drag: 1});
remove_waiting_box();
$('tag_div').innerHTML = code_html;
}
@ -2443,6 +2451,13 @@ function action_show_checkbox()
a[i].style.display = 'block';
}
}
function action_hide_checkbox()
{
var a = document.getElementsByName('ag_id_td');
for (var i = 0; i < a.length; i++) {
a[i].style.display = 'none';
}
}
/**
*
* @param {type} obj
@ -2542,4 +2557,64 @@ function show_description(p_id)
$('print_desc'+p_id).hide();
$('input_desc'+p_id).show();
}
/**
* Hightlight the row we select and restore previous one
* @param {type} x
* @returns {undefined}
*/
var old_class = null;
var old_select = null;
function select_cat(x)
{
if (old_select != null)
{
$(old_select).className = old_class;
}
old_select = $('select_cat_row_' + x);
old_class = old_select.className;
$(old_select).className = "highlight";
$('fd_id').value = x;
}
/**
* Show the DIV and hide the other, the array of possible DIV are
* in a_tabs,
* @param {array} a_tabs name of possible tabs
* @param {strng} p_display_tab tab to display
*/
function show_tabs(a_tabs,p_display_tab)
{
try
{
if ( a_tabs.length == 0 ) trow ('a_tabs in empty');
var i=0;
for ( i=0;i<a_tabs.length;i++) {
if ( console ) console.log(a_tabs[i]);
$(a_tabs[i]).hide();
}
if ( console )console.log(p_display_tab);
$(p_display_tab).show();
} catch(e) {
if ( console )console.log(e.message);
}
}
/**
* Change the class of all the "LI" element of a UL or OL
* @param node of ul (this)
*/
function unselect_other_tab(p_tab)
{
try {
var other = p_tab.getElementsByTagName("li");
var i=0;
var tab=null;
for (i=0;i<other.length;i++) {
tab=other[i];
tab.className="tabs";
}
} catch(e) {
if ( console ) console.log(e.message);
}
}

View file

@ -9,8 +9,8 @@ msgid ""
msgstr ""
"Project-Id-Version: NOALYSS 672\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-30 23:30+0100\n"
"PO-Revision-Date: 2014-10-30 23:32+0100\n"
"POT-Creation-Date: 2014-11-05 21:05+0100\n"
"PO-Revision-Date: 2014-11-05 21:09+0100\n"
"Last-Translator: Dany De Bontridder <danydb@noalyss.eu>\n"
"Language-Team: American English <kde-i18n-doc@kde.org>\n"
"Language: en_US\n"
@ -197,17 +197,24 @@ msgid "%s Vous avez ajouté %d mois depuis le %d/%d pour l'exercice %d "
msgstr "You have added% s% d months since% d /% d% d for the year"
#: include/class_acc_ledger.php:3234 include/class_acc_ledger.php:3303
#: include/class_acc_ledger.php:3302
msgid "'Journaux Financier"
msgstr "Financial"
#: include/class_acc_ledger.php:3235 include/class_acc_ledger.php:3304
#: include/class_acc_ledger.php:3303
msgid "'Journaux d'Opérations diverses"
msgstr "Miscellaneous ledger"
#: include/class_acc_ledger.php:3233 include/class_acc_ledger.php:3302
#: include/class_acc_ledger.php:3301
msgid "'Journaux d'achat"
msgstr "Purchase ledgers"
#: include/impress_rapport.inc.php:248
msgid "1 mois"
msgstr "1 month"
#: include/impress_bilan.inc.php:89
msgid ""
"<span class=\"notice\"> Attention : si le bilan n'est pas équilibré.<br> "
@ -313,6 +320,7 @@ msgid "Action interdite"
msgstr "Forbidden"
#: include/class_acc_ledger.php:3684 include/class_acc_ledger.php:3768
#: include/class_acc_ledger.php:3767
msgid "Action non accessible"
msgstr "Folder not available"
@ -667,6 +675,32 @@ msgstr "Warning : it is preferable to use card than accounting"
msgid "Attention : il y a %d enregistrements incorrects "
msgstr "Attention:% d records incorrect"
#: include/impress_bilan.inc.php:65
msgid ""
"Attention : si le bilan n'est pas équilibré.<br> Vérifiez <ul>\n"
" <li>L'affectation du résultat est fait</li>\n"
" <li>Vos comptes actifs ont un solde débiteur (sauf les comptes dit "
"inversés)</li>\n"
" <li> les comptes passifs ont un solde créditeur (sauf les comptes dit "
"inversés) </li>\n"
" </ul>\n"
" Utilisez la balance des comptes pour vérifier."
msgstr ""
"Attention : if the outcome is not balanced<br> check "
"<ul>\n"
"<li>You allocate the results </li>\n"
"<li>The asset has a saldo on debit (except the reverse accounting)</li> \n"
"<li> The liability has a saldo on credit(except the reverse accounting) </"
"li>\n"
"</ul> \n"
"Use the balance of accouting to check"
#: include/impress_rapport.inc.php:257
msgid ""
"Attention : vous ne pouvez pas utiliser les &eacute;tapes avec les dates "
"calendriers."
msgstr "Warning : you cannot use step with the calendar"
#: include/class_acc_ledger_purchase.php:1484
#: include/class_acc_ledger_sold.php:755
msgid "Attention Différence entre TVA calculée et donnée"
@ -735,6 +769,8 @@ msgstr "No VAT code corresponds to the rate"
#: include/class_acc_ledger.php:3416 include/class_acc_ledger.php:3461
#: include/class_acc_ledger.php:3594 include/class_acc_ledger.php:3486
#: include/class_acc_ledger.php:3531 include/class_acc_ledger.php:3678
#: include/class_acc_ledger.php:3485 include/class_acc_ledger.php:3530
#: include/class_acc_ledger.php:3677
msgid "Aucun compte en banque n'est donné"
msgstr "No bank account given"
@ -765,7 +801,7 @@ msgstr "No file"
msgid "Aucun fichier donné"
msgstr "Any given file"
#: include/balance.inc.php:101
#: include/balance.inc.php:101 include/balance.inc.php:102
msgid "Aucun filtre, tous les journaux"
msgstr "No filter, all ledgers"
@ -927,7 +963,7 @@ msgstr "Other info"
msgid "Autres actions"
msgstr "atiAdd Action"
#: include/database.item.php:117
#: include/database.item.php:117 include/balance.inc.php:86
msgid "Avancé"
msgstr "Advanced"
@ -959,7 +995,7 @@ msgstr "Date for every operation"
msgid "Avec date opérations"
msgstr "with date of operation "
#: include/balance.inc.php:172
#: include/balance.inc.php:172 include/balance.inc.php:173
msgid "Avec la balance de l'année précédente"
msgstr "With the balance of previous year"
@ -1096,10 +1132,15 @@ msgstr "calculator"
#: include/template/dashboard.php:9 include/ajax_calendar_zoom.php:23
#: include/class_html_input.php:779 include/template/dashboard.php:6
#: include/class_html_input.php:796
#: include/class_html_input.php:796 include/impress_rapport.inc.php:209
msgid "Calendrier"
msgstr "Calendar"
#: include/impress_rapport.inc.php:240
#, fuzzy
msgid "Calendrier depuis :"
msgstr "Calendar"
#: include/template/impress_cat_card.php:6 include/ajax_boxcard_search.php:57
msgid "Categorie"
msgstr "Category"
@ -1249,6 +1290,11 @@ msgstr "Expenses"
msgid "Chemin"
msgstr "Path"
#: include/fiche.inc.php:91
#, fuzzy
msgid "Chercher"
msgstr "Search"
#: html/ajax_misc.php:190
msgid "Choississez la TVA "
msgstr "Select the VAT"
@ -1258,8 +1304,15 @@ msgid ""
"Choississez la catégorie de fiche à laquelle vous aimeriez ajouter une fiche"
msgstr "Choose the category of card"
#: include/impress_rapport.inc.php:203
#, fuzzy
msgid "Choississez le rapport"
msgstr "Select the VAT"
#: include/balance.inc.php:45 include/impress_bilan.inc.php:48
#: include/impress_jrn.inc.php:84 include/impress_rapport.inc.php:182
#: include/balance.inc.php:47 include/impress_bilan.inc.php:51
#: include/impress_jrn.inc.php:86
msgid "Choississez un autre exercice"
msgstr "Choose another year"
@ -1748,7 +1801,7 @@ msgid "Credit"
msgstr "Credit"
#: include/class_acc_ledger.php:3280 include/user_menu.php:51
#: include/class_acc_ledger.php:3349
#: include/class_acc_ledger.php:3349 include/class_acc_ledger.php:3348
msgid "Création"
msgstr "Creation"
@ -1840,6 +1893,7 @@ msgstr "Credit"
#: include/ext/coprop/include/lot.inc.php:34 include/class_acc_ledger.php:1583
#: include/class_acc_ledger.php:3563 include/fiche.inc.php:113
#: include/ext/coprop/include/class_copro_budget.php:134
#: include/class_acc_ledger.php:3562
msgid "Créer une nouvelle fiche"
msgstr "Add a new card"
@ -2035,7 +2089,7 @@ msgstr "Disconnect"
#: include/class_acc_bilan.php:70 include/impress_gl_comptes.inc.php:62
#: include/impress_poste.inc.php:93 include/template/impress_cat_card.php:14
#: include/class_anc_print.php:146
#: include/class_anc_print.php:146 include/balance.inc.php:75
msgid "Depuis"
msgstr "From"
@ -2768,6 +2822,10 @@ msgstr "Step"
msgid "Etape 1/3"
msgstr "Step 1/3"
#: include/impress_bilan.inc.php:82
msgid "Etape 2 :Impression"
msgstr "Step 2 : printing"
#: include/ext/transform/include/intervat_listing_assujetti_step_2.inc.php:266
msgid "Etape 2/3"
msgstr "Step 2/3"
@ -2806,7 +2864,8 @@ msgid "Exclure Etat"
msgstr "Exclude State"
#: include/ext/tools/index.php:43 include/bank.inc.php:73
#: include/template/stock_state_search.php:35
#: include/template/stock_state_search.php:35 include/impress_bilan.inc.php:49
#: include/impress_jrn.inc.php:84 include/impress_rapport.inc.php:182
msgid "Exercice"
msgstr "Exercise"
@ -3091,7 +3150,7 @@ msgstr "File to include (from the folder \"include\")"
#: include/ext/amortis/include/template/listing_histo.php:10
#: include/ajax_boxcard_search.php:46
#: include/template/result_cat_card_summary.php:5 include/menu.inc.php:150
#: html/user_login.php:165
#: html/user_login.php:165 include/balance.inc.php:280
msgid "Filtre"
msgstr "Filter"
@ -3117,11 +3176,11 @@ msgstr "Filter"
msgid "Filtrer par "
msgstr "Filter by"
#: include/balance.inc.php:109
#: include/balance.inc.php:109 include/balance.inc.php:110
msgid "Filtré par catégorie"
msgstr "Filter on category"
#: include/balance.inc.php:104
#: include/balance.inc.php:104 include/balance.inc.php:105
msgid "Filtré par journal"
msgstr "filter on ledger"
@ -3559,6 +3618,7 @@ msgid "Importer ce rapport"
msgstr "Import this report"
#: include/class_acc_ledger.php:3611 include/class_acc_ledger.php:3695
#: include/class_acc_ledger.php:3694
msgid "Impossible d'effacer un journal qui contient des opérations"
msgstr "It is not possible to remove this ledger.It is still in use"
@ -3711,6 +3771,7 @@ msgid "Journal inexistant"
msgstr "No existent ledger"
#: include/class_acc_ledger.php:3305 include/class_acc_ledger.php:3374
#: include/class_acc_ledger.php:3373
msgid "Journal n'existe pas"
msgstr "The ledger does not exist"
@ -3719,6 +3780,7 @@ msgid "Journaux"
msgstr "Ledgers"
#: include/class_acc_ledger.php:3232 include/class_acc_ledger.php:3301
#: include/class_acc_ledger.php:3300
msgid "Journaux de vente"
msgstr "Ledger of sales"
@ -3838,6 +3900,10 @@ msgstr "Reading"
msgid "Les 2"
msgstr "Both"
#: include/impress_rapport.inc.php:259
msgid "Les clauses FROM sont ignorés avec les dates calendriers"
msgstr "statement FROM are ignored if you use calendar"
#: include/class_anc_print.php:120
msgid "Les dates sont en format DD.MM.YYYY"
msgstr "The date formats are DD.MM.YYYY"
@ -4133,6 +4199,7 @@ msgstr "Update plugin, could you check the parameter setting?"
#: include/class_acc_ledger_purchase.php:1689
#: include/class_acc_ledger_sold.php:954 include/history_operation.inc.php:140
#: include/history_operation.inc.php:141
msgid "Mise à jour paiement"
msgstr "Update payment"
@ -4185,7 +4252,7 @@ msgstr "Change the document type"
#: include/ajax_mod_periode.php:49 include/ajax_mod_periode.php:75
msgid "Modifier les dates de début et fin de période"
msgstr ""
msgstr "Modify start and end date"
#: include/forecast.inc.php:360
msgid "Modifier nom ou catégories"
@ -4346,7 +4413,7 @@ msgid "Montant initial"
msgstr "Initial amount"
#: include/ext/amortis/include/class_am_card.php:179
#: include/class_acc_compute.php:194
#: include/class_acc_compute.php:194 include/class_acc_compute.php:195
msgid "Montant invalide"
msgstr "Invalid amount"
@ -4443,15 +4510,15 @@ msgstr "Can not save"
msgid "Ne remplissez pas s'il n'y a pas de mandataire"
msgstr "Do not complete if there is no representative"
#: include/balance.inc.php:128
#: include/balance.inc.php:128 include/balance.inc.php:129
msgid "Niveau 1"
msgstr "Level 1"
#: include/balance.inc.php:129
#: include/balance.inc.php:129 include/balance.inc.php:130
msgid "Niveau 2"
msgstr "level 2"
#: include/balance.inc.php:130
#: include/balance.inc.php:130 include/balance.inc.php:131
msgid "Niveau 3"
msgstr "Level 3"
@ -4553,6 +4620,7 @@ msgid "Nombre d'unité"
msgstr "Number of unit"
#: include/class_acc_ledger.php:3406 include/class_acc_ledger.php:3476
#: include/class_acc_ledger.php:3475
msgid "Nombre de ligne incorrect"
msgstr "Number of incorrect rows"
@ -4952,6 +5020,16 @@ msgstr "Display order"
msgid "Oui"
msgstr "yes"
#: include/class_acc_bilan.php:635
#, fuzzy
msgid "Ouverture fichier impossible"
msgstr "Error opening file"
#: include/impress_rapport.inc.php:208
#, fuzzy
msgid "P&eacute;riode comptable"
msgstr "Accounting period"
#: include/class_acc_ledger.php:211 include/class_acc_ledger.php:210
msgid "PERIODE FERMEE"
msgstr "Close period"
@ -5032,6 +5110,11 @@ msgstr "Per file"
msgid "Par gérant ou administrateur"
msgstr "By the manager or administrator"
#: include/impress_rapport.inc.php:251
#, fuzzy
msgid "Par étape de"
msgstr "Per year"
#: html/ajax_card.php:106
msgid "Parametre ad_id est invalide"
msgstr "Invalid parameter"
@ -5096,6 +5179,10 @@ msgstr "No access"
msgid "Pas d'anomalie détectée"
msgstr "Correct"
#: include/impress_rapport.inc.php:247
msgid "Pas d'étape"
msgstr "No step"
#: include/ext/invoicing/include/invoice_send_mail.inc.php:75
#: include/ext/invoicing/include/invoice_send_mail.inc.php:80
#: include/ext/invoicing/include/invoice_send_mail.inc.php:103
@ -5133,6 +5220,7 @@ msgid "Payé"
msgstr "Paid"
#: include/class_acc_ledger.php:3478 include/class_acc_ledger.php:3548
#: include/class_acc_ledger.php:3547
msgid "Payé par"
msgstr "Paid by"
@ -5180,7 +5268,7 @@ msgstr "Receipt"
msgid "Pièces attachées"
msgstr "Attachment"
#: include/balance.inc.php:162
#: include/balance.inc.php:162 include/balance.inc.php:163
msgid "Plage de postes"
msgstr "Range accounting"
@ -6244,7 +6332,7 @@ msgstr "Total Debit"
msgid "Total lettré"
msgstr "Total of lettered"
#: include/balance.inc.php:334
#: include/balance.inc.php:334 include/balance.inc.php:336
msgid "Total niveau"
msgstr "Total level"
@ -6266,7 +6354,7 @@ msgstr "Actual total"
msgid "Totaux"
msgstr "Total"
#: include/balance.inc.php:111
#: include/balance.inc.php:111 include/balance.inc.php:112
msgid "Totaux par sous-niveaux"
msgstr "Subtotal"
@ -6395,6 +6483,7 @@ msgid "URL"
msgstr "URL"
#: include/class_acc_ledger.php:3410 include/class_acc_ledger.php:3480
#: include/class_acc_ledger.php:3479
msgid "Un journal avec ce nom existe déjà"
msgstr "This name is already used"
@ -6402,7 +6491,7 @@ msgstr "This name is already used"
msgid "Uniquement actions internes"
msgstr "Only internal actions"
#: include/balance.inc.php:169
#: include/balance.inc.php:169 include/balance.inc.php:170
msgid "Uniquement comptes non soldés"
msgstr "Only not balanced accounting"
@ -6511,7 +6600,7 @@ msgstr "Sales"
msgid "Ventes"
msgstr "Sales"
#: include/impress_bilan.inc.php:64
#: include/impress_bilan.inc.php:64 include/impress_bilan.inc.php:71
msgid "Verification comptabilite"
msgstr "Check accountancy"
@ -6541,6 +6630,7 @@ msgid "Visible Y ou N"
msgstr "Visible Y or N"
#: include/impress_rec.inc.php:79 include/balance.inc.php:175
#: include/balance.inc.php:177 include/impress_rapport.inc.php:261
msgid "Visualisation"
msgstr "View"
@ -6789,6 +6879,7 @@ msgid "choix des journaux"
msgstr "Ledgers"
#: include/class_acc_ledger.php:3527 include/class_acc_ledger.php:3610
#: include/class_acc_ledger.php:3609
msgid "choix du type de journal"
msgstr "Select the type of ledger"
@ -6860,7 +6951,8 @@ msgid "erreur"
msgstr "Error:"
#: include/class_acc_bilan.php:348 include/class_acc_bilan.php:656
#: include/class_acc_bilan.php:681
#: include/class_acc_bilan.php:681 include/class_acc_bilan.php:661
#: include/class_acc_bilan.php:686
msgid "erreur Ouverture fichier"
msgstr "Error opening file"
@ -6870,7 +6962,7 @@ msgid ""
"erreur aucune période par défaut, allez dans préférence pour en choisir une"
msgstr "Warning : no default period, choose one in your preference"
#: include/class_acc_bilan.php:662
#: include/class_acc_bilan.php:662 include/class_acc_bilan.php:667
msgid "erreur écriture fichier"
msgstr "Error writing file"
@ -6903,10 +6995,16 @@ msgstr "inexistent"
msgid "journaux"
msgstr "ledger"
#: include/balance.inc.php:164
#: include/balance.inc.php:164 include/balance.inc.php:84
#: include/balance.inc.php:165 include/impress_rapport.inc.php:242
msgid "jusque"
msgstr "Until"
#: include/class_acc_bilan.php:249
#, fuzzy
msgid "le formulaire id n'est pas donnee"
msgstr "rate is not a number"
#: include/dossier.inc.php:58
msgid "le modele "
msgstr "the template"
@ -7314,9 +7412,6 @@ msgstr "You cannot record to an ealier time"
#~ msgid "Changez vos préférences"
#~ msgstr "Change your preferences"
#~ msgid "Cherche"
#~ msgstr "Search"
#~ msgid "Choisir un autre journal"
#~ msgstr "Choose another ledger"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-04 15:15+0200\n"
"POT-Creation-Date: 2014-11-05 21:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -41,6 +41,7 @@ msgstr ""
#: html/ajax_card.php:199 html/ajax_card.php:311 html/ajax_card.php:446
#: html/ajax_card.php:483 html/ajax_card.php:491 html/ajax_card.php:312
#: html/ajax_card.php:447 html/ajax_card.php:484 html/ajax_card.php:492
#: html/ajax_card.php:448 html/ajax_card.php:485 html/ajax_card.php:493
msgid "Action interdite"
msgstr ""
@ -80,7 +81,7 @@ msgstr ""
#: include/anc_acc_balance.inc.php:12 include/class_anc_print.php:128
#: include/class_anc_print.php:134 include/lettering.gestion.inc.php:53
#: include/ext/tools/include/export_document_anc.inc.php:35
#: include/ext/tools/include/operation.inc.php:11
#: include/ext/tools/include/operation.inc.php:11 include/class_icard.php:310
#, php-format
msgid "Recherche"
msgstr ""
@ -94,15 +95,15 @@ msgstr ""
msgid "Recherche de fiche"
msgstr ""
#: html/ajax_card.php:408 html/ajax_card.php:409
#: html/ajax_card.php:408 html/ajax_card.php:409 html/ajax_card.php:410
msgid " de clients"
msgstr ""
#: html/ajax_card.php:412 html/ajax_card.php:413
#: html/ajax_card.php:412 html/ajax_card.php:413 html/ajax_card.php:414
msgid " de fournisseurs"
msgstr ""
#: html/ajax_card.php:416 html/ajax_card.php:417
#: html/ajax_card.php:416 html/ajax_card.php:417 html/ajax_card.php:418
msgid " d'administration"
msgstr ""
@ -119,6 +120,7 @@ msgstr ""
#: html/ajax_card.php:431
#: include/ext/rapport_avance/include/class_rapav_listing_formula.php:386
#: include/ext/rapport_avance/include/class_rapav_listing_formula.php:806
#: html/ajax_card.php:432
msgid "Recherche poste"
msgstr ""
@ -130,23 +132,23 @@ msgstr ""
#: html/ajax_card.php:438 include/ajax_mod_predf_op.php:55
#: include/cfgledger.inc.php:122 include/template/dashboard.php:321
#: include/company.inc.php:145 include/template/dashboard.php:325
#: include/template/detail-action.php:421
#: include/template/detail-action.php:421 html/ajax_card.php:439
msgid "Sauve"
msgstr ""
#: html/ajax_card.php:468 html/ajax_card.php:469
#: html/ajax_card.php:468 html/ajax_card.php:469 html/ajax_card.php:470
msgid "Catégorie existe déjà"
msgstr ""
#: html/ajax_card.php:470 html/ajax_card.php:471
#: html/ajax_card.php:470 html/ajax_card.php:471 html/ajax_card.php:472
msgid "Catégorie sauvée"
msgstr ""
#: html/ajax_card.php:475 html/ajax_card.php:476
#: html/ajax_card.php:475 html/ajax_card.php:476 html/ajax_card.php:477
msgid "Le nom et la classe base ne peuvent être vide"
msgstr ""
#: html/ajax_card.php:497 html/ajax_card.php:498
#: html/ajax_card.php:497 html/ajax_card.php:498 html/ajax_card.php:499
msgid "Fiche non valide"
msgstr ""
@ -268,6 +270,7 @@ msgstr ""
#: include/template/ledger_detail_bottom.php:116
#: include/ext/rapport_avance/ajax_listing_detail_modify.php:75
#: include/ext/amortis/include/template/material_detail.php:140
#: include/ext/amortis/include/template/material_detail.php:160
msgid "Sauver"
msgstr ""
@ -355,7 +358,7 @@ msgstr ""
#: include/ext/amortis/include/template/listing_histo.php:10
#: include/ajax_boxcard_search.php:46
#: include/template/result_cat_card_summary.php:5 include/menu.inc.php:150
#: html/user_login.php:165
#: html/user_login.php:165 include/balance.inc.php:280
msgid "Filtre"
msgstr ""
@ -440,6 +443,8 @@ msgstr ""
#: include/ext/coprop/include/class_copro_budget.php:114
#: include/ext/coprop/include/lot.inc.php:34 include/class_acc_ledger.php:1583
#: include/class_acc_ledger.php:3563 include/fiche.inc.php:113
#: include/ext/coprop/include/class_copro_budget.php:134
#: include/class_acc_ledger.php:3562
msgid "Créer une nouvelle fiche"
msgstr ""
@ -502,6 +507,7 @@ msgstr ""
#: include/ext/transform/include/intervat_listing_assujetti_step_1.inc.php:67
#: include/ajax_preference.php:115 include/class_acc_ledger_purchase.php:1731
#: include/class_acc_ledger_sold.php:1315
#: include/class_acc_ledger_sold.php:1313
msgid "Période"
msgstr ""
@ -581,6 +587,8 @@ msgstr ""
#: include/balance.inc.php:45 include/impress_bilan.inc.php:48
#: include/impress_jrn.inc.php:84 include/impress_rapport.inc.php:182
#: include/balance.inc.php:47 include/impress_bilan.inc.php:51
#: include/impress_jrn.inc.php:86
msgid "Choississez un autre exercice"
msgstr ""
@ -719,6 +727,7 @@ msgstr ""
#: include/template/ledger_detail_ven.php:79
#: include/template/ledger_detail_ven.php:280
#: include/ext/tools/include/class_anc_grandlivre_ext.php:122
#: include/class_acc_ledger_sold.php:1314
#, php-format
msgid "Libellé"
msgstr ""
@ -730,7 +739,7 @@ msgstr ""
#: include/class_acc_bilan.php:70 include/impress_gl_comptes.inc.php:62
#: include/impress_poste.inc.php:93 include/template/impress_cat_card.php:14
#: include/class_anc_print.php:146
#: include/class_anc_print.php:146 include/balance.inc.php:75
msgid "Depuis"
msgstr ""
@ -786,16 +795,18 @@ msgstr ""
#: include/template/ledger_detail_ven.php:144
#: include/class_acc_ledger.php:1442
#: include/template/ledger_detail_ven.php:150
#: include/class_acc_ledger_fin.php:552
msgid "Compt. Analytique"
msgstr ""
#: include/class_acc_ledger_fin.php:1002 include/class_acc_ledger.php:1594
#: include/class_acc_ledger_purchase.php:1035
#: include/class_acc_ledger_sold.php:1055 include/class_acc_ledger.php:1591
#: include/class_acc_ledger_fin.php:1003
msgid "Pas de journal disponible"
msgstr ""
#: include/class_acc_ledger_fin.php:1007
#: include/class_acc_ledger_fin.php:1007 include/class_acc_ledger_fin.php:1008
msgid "Tous les journaux financiers"
msgstr ""
@ -803,6 +814,7 @@ msgstr ""
#: include/anc_great_ledger.inc.php:19 include/class_acc_ledger.php:2911
#: include/class_anc_balance_double.php:342
#: include/class_anc_balance_simple.php:172 include/class_anc_listing.php:42
#: include/class_acc_ledger_fin.php:1038
msgid "Rechercher"
msgstr ""
@ -881,6 +893,7 @@ msgstr ""
#: include/ext/modop/template_ledger_fin.php:7
#: include/ext/invoicing/include/invoice_send_mail_input.inc.php:94
#: include/ext/tools/include/class_anc_grandlivre_ext.php:119
#: include/class_acc_ledger_sold.php:1310
msgid "Date"
msgstr ""
@ -907,6 +920,7 @@ msgstr ""
#: include/class_acc_ledger_sold.php:1320 include/class_anc_grandlivre.php:189
#: include/class_anc_listing.php:76
#: include/ext/tools/include/class_anc_grandlivre_ext.php:120
#: include/class_acc_ledger_sold.php:1318
msgid "Poste"
msgstr ""
@ -930,6 +944,7 @@ msgstr ""
#: include/class_acc_ledger.php:1433 include/class_acc_ledger.php:1687
#: include/class_anc_grandlivre.php:195 include/class_anticipation.php:420
#: include/template/ledger_detail_ven.php:281
#: include/ext/coprop/include/class_coprop_appel_fond.php:222
msgid "Débit"
msgstr ""
@ -949,6 +964,7 @@ msgstr ""
#: include/anc_od.inc.php:150 include/class_acc_ledger.php:1434
#: include/class_anc_grandlivre.php:196 include/class_anticipation.php:421
#: include/template/ledger_detail_ven.php:282
#: include/ext/coprop/include/class_coprop_appel_fond.php:223
msgid "Crédit"
msgstr ""
@ -995,6 +1011,7 @@ msgstr ""
#: include/class_acc_ledger_sold.php:1317 include/class_anc_grandlivre.php:193
#: include/template/ledger_detail_ven.php:70
#: include/ext/tools/include/class_anc_grandlivre_ext.php:124
#: include/class_acc_ledger_sold.php:1315
msgid "Pièce"
msgstr ""
@ -1068,15 +1085,17 @@ msgid "Filtrer"
msgstr ""
#: include/class_acc_ledger.php:3280 include/user_menu.php:51
#: include/class_acc_ledger.php:3349
#: include/class_acc_ledger.php:3349 include/class_acc_ledger.php:3348
msgid "Création"
msgstr ""
#: include/class_acc_ledger.php:3305 include/class_acc_ledger.php:3374
#: include/class_acc_ledger.php:3373
msgid "Journal n'existe pas"
msgstr ""
#: include/class_acc_ledger.php:3478 include/class_acc_ledger.php:3548
#: include/class_acc_ledger.php:3547
msgid "Payé par"
msgstr ""
@ -1189,6 +1208,7 @@ msgstr ""
#: include/class_acc_ledger_sold.php:1273 include/class_pre_op_ach.php:390
#: include/class_pre_op_ven.php:384 include/compta_fin.inc.php:142
#: include/ext/modop/modop_display.php:98
#: include/class_acc_ledger_sold.php:1271
msgid "Ajout article"
msgstr ""
@ -1261,6 +1281,7 @@ msgstr ""
#: include/class_acc_ledger_purchase.php:1751
#: include/class_acc_ledger_sold.php:1335
#: include/template/detail-action.php:306
#: include/class_acc_ledger_sold.php:1333
msgid "quantité"
msgstr ""
@ -1278,6 +1299,7 @@ msgstr ""
#: include/class_acc_ledger_purchase.php:1749
#: include/class_acc_ledger_sold.php:1333
#: include/template/detail-action.php:308
#: include/class_acc_ledger_sold.php:1331
msgid "Montant TVA"
msgstr ""
@ -1357,6 +1379,7 @@ msgstr ""
#: include/class_acc_ledger_purchase.php:1689
#: include/class_acc_ledger_sold.php:954 include/history_operation.inc.php:140
#: include/history_operation.inc.php:141
msgid "Mise à jour paiement"
msgstr ""
@ -1387,6 +1410,7 @@ msgstr ""
#: include/ext/transform/ajax_modify_intervat_assujetti.php:24
#: include/template/print_ledger_simple.php:10
#: include/template/ledger_detail_ven.php:58
#: include/class_acc_ledger_sold.php:1258
msgid "Client"
msgstr ""
@ -1652,6 +1676,7 @@ msgstr ""
#: include/template/detail-action.php:434
#: include/template/ledger_detail_bottom.php:125
#: include/ext/amortis/include/template/material_detail.php:142
#: include/ext/amortis/include/template/material_detail.php:162
msgid "Effacer"
msgstr ""
@ -1849,6 +1874,9 @@ msgstr ""
#: html/recherche.php:67 html/recherche.php:111
#: include/class_acc_ledger.php:2923
#: include/ext/amortis/include/template/material_detail.php:143
#: include/ajax_mod_periode.php:60 include/ajax_mod_periode.php:78
#: include/ajax_mod_periode.php:89 include/class_html_input.php:706
#: include/ext/amortis/include/template/material_detail.php:163
#, php-format
msgid "Fermer"
msgstr ""
@ -2711,7 +2739,7 @@ msgstr ""
msgid "Tableau de bord"
msgstr ""
#: include/database.item.php:117
#: include/database.item.php:117 include/balance.inc.php:86
msgid "Avancé"
msgstr ""
@ -3143,7 +3171,7 @@ msgstr ""
#: include/template/letter_all.php:29
#: include/class_acc_ledger_purchase.php:1734
#: include/class_acc_ledger_sold.php:1318 include/class_anc_grandlivre.php:194
#: include/fiche.inc.php:444
#: include/fiche.inc.php:444 include/class_acc_ledger_sold.php:1316
msgid "Interne"
msgstr ""
@ -3285,7 +3313,7 @@ msgstr ""
msgid "Vous devez corriger"
msgstr ""
#: include/impress_bilan.inc.php:64
#: include/impress_bilan.inc.php:64 include/impress_bilan.inc.php:71
msgid "Verification comptabilite"
msgstr ""
@ -3315,6 +3343,7 @@ msgid "Jusqu'au poste"
msgstr ""
#: include/impress_rec.inc.php:79 include/balance.inc.php:175
#: include/balance.inc.php:177 include/impress_rapport.inc.php:261
msgid "Visualisation"
msgstr ""
@ -3369,6 +3398,7 @@ msgstr ""
#: include/ext/coprop/include/appel_fond.inc.php:156
#: include/ext/coprop/include/class_coprop_appel_fond.php:204
#: include/anc_od.inc.php:151
#: include/ext/coprop/include/class_coprop_appel_fond.php:224
msgid "Difference"
msgstr ""
@ -3377,6 +3407,7 @@ msgstr ""
#: include/ext/coprop/include/appel_fond.inc.php:82
#: include/ext/coprop/include/appel_fond.inc.php:151
#: include/ext/coprop/include/class_coprop_appel_fond.php:199
#: include/ext/coprop/include/class_coprop_appel_fond.php:219
msgid "Ajout d'une ligne"
msgstr ""
@ -3612,6 +3643,7 @@ msgstr ""
#: include/template/dashboard.php:9 include/ajax_calendar_zoom.php:23
#: include/class_html_input.php:779 include/template/dashboard.php:6
#: include/class_html_input.php:796 include/impress_rapport.inc.php:209
msgid "Calendrier"
msgstr ""
@ -3703,6 +3735,7 @@ msgstr ""
#: include/class_acc_ledger_sold.php:1321
#: include/template/detail-action.php:231
#: include/ext/modop/template_ledger_fin.php:23
#: include/class_acc_ledger_sold.php:1319
msgid "Commentaire"
msgstr ""
@ -3725,6 +3758,7 @@ msgstr ""
#: include/class_acc_ledger_purchase.php:1748
#: include/class_acc_ledger_sold.php:1332
#: include/template/detail-action.php:307
#: include/class_acc_ledger_sold.php:1330
msgid "Code TVA"
msgstr ""
@ -3839,6 +3873,7 @@ msgstr ""
#: include/template/predf_ledger_detail.php:74
#: include/class_acc_ledger_purchase.php:1750
#: include/class_acc_ledger_sold.php:1334
#: include/class_acc_ledger_sold.php:1332
msgid "Total HTVA"
msgstr ""
@ -4464,7 +4499,8 @@ msgid "Rénuméroter des pièces justificative"
msgstr ""
#: include/ext/tools/index.php:43 include/bank.inc.php:73
#: include/template/stock_state_search.php:35
#: include/template/stock_state_search.php:35 include/impress_bilan.inc.php:49
#: include/impress_jrn.inc.php:84 include/impress_rapport.inc.php:182
msgid "Exercice"
msgstr ""
@ -4792,7 +4828,7 @@ msgid "Nombre annuités invalide"
msgstr ""
#: include/ext/amortis/include/class_am_card.php:179
#: include/class_acc_compute.php:194
#: include/class_acc_compute.php:194 include/class_acc_compute.php:195
msgid "Montant invalide"
msgstr ""
@ -5068,6 +5104,7 @@ msgid "le taux n'est pas un nombre"
msgstr ""
#: include/ext/importbank/include/class_bank_item.php:63
#: include/ext/importbank/include/class_bank_item.php:65
msgid "op. concernée"
msgstr ""
@ -5532,6 +5569,9 @@ msgstr ""
#: include/ext/import_doli/include/template/input_file.php:7
#: include/ext/import_doli/include/template/test_file.php:8
#: include/ext/import_doli/include/template/test_operation.php:8
#: include/ext/import_account/include/template/input_file.php:23
#: include/ext/import_account/include/template/test_file.php:23
#: include/ext/import_account/include/template/test_operation.php:23
msgid "Importation de données"
msgstr ""
@ -5678,11 +5718,11 @@ msgstr ""
msgid "Fiche sauvée"
msgstr ""
#: html/ajax_card.php:421
#: html/ajax_card.php:421 html/ajax_card.php:422
msgid " de contacts"
msgstr ""
#: html/ajax_card.php:504
#: html/ajax_card.php:504 html/ajax_card.php:505
msgid "Détail fiche (sauvée)"
msgstr ""
@ -6021,51 +6061,53 @@ msgid "Affiche aussi les actions fermées"
msgstr ""
#: include/template/action_search_result.php:32
#: include/template/action_search_result.php:88
#: include/template/action_search_result.php:88 include/search.inc.php:121
#: include/search.inc.php:125
msgid "Mettre à jour"
msgstr ""
#: include/balance.inc.php:101
#: include/balance.inc.php:101 include/balance.inc.php:102
msgid "Aucun filtre, tous les journaux"
msgstr ""
#: include/balance.inc.php:104
#: include/balance.inc.php:104 include/balance.inc.php:105
msgid "Filtré par journal"
msgstr ""
#: include/balance.inc.php:109
#: include/balance.inc.php:109 include/balance.inc.php:110
msgid "Filtré par catégorie"
msgstr ""
#: include/balance.inc.php:111
#: include/balance.inc.php:111 include/balance.inc.php:112
msgid "Totaux par sous-niveaux"
msgstr ""
#: include/balance.inc.php:128
#: include/balance.inc.php:128 include/balance.inc.php:129
msgid "Niveau 1"
msgstr ""
#: include/balance.inc.php:129
#: include/balance.inc.php:129 include/balance.inc.php:130
msgid "Niveau 2"
msgstr ""
#: include/balance.inc.php:130
#: include/balance.inc.php:130 include/balance.inc.php:131
msgid "Niveau 3"
msgstr ""
#: include/balance.inc.php:162
#: include/balance.inc.php:162 include/balance.inc.php:163
msgid "Plage de postes"
msgstr ""
#: include/balance.inc.php:164
#: include/balance.inc.php:164 include/balance.inc.php:84
#: include/balance.inc.php:165 include/impress_rapport.inc.php:242
msgid "jusque"
msgstr ""
#: include/balance.inc.php:169
#: include/balance.inc.php:169 include/balance.inc.php:170
msgid "Uniquement comptes non soldés"
msgstr ""
#: include/balance.inc.php:172
#: include/balance.inc.php:172 include/balance.inc.php:173
msgid "Avec la balance de l'année précédente"
msgstr ""
@ -6202,11 +6244,12 @@ msgid "Aucun enregistrement trouve"
msgstr ""
#: include/class_acc_bilan.php:348 include/class_acc_bilan.php:656
#: include/class_acc_bilan.php:681
#: include/class_acc_bilan.php:681 include/class_acc_bilan.php:661
#: include/class_acc_bilan.php:686
msgid "erreur Ouverture fichier"
msgstr ""
#: include/class_acc_bilan.php:662
#: include/class_acc_bilan.php:662 include/class_acc_bilan.php:667
msgid "erreur écriture fichier"
msgstr ""
@ -6273,44 +6316,55 @@ msgid "Pour la fiche %s le poste comptable [%s] n'existe pas"
msgstr ""
#: include/class_acc_ledger.php:3232 include/class_acc_ledger.php:3301
#: include/class_acc_ledger.php:3300
msgid "Journaux de vente"
msgstr ""
#: include/class_acc_ledger.php:3233 include/class_acc_ledger.php:3302
#: include/class_acc_ledger.php:3301
msgid "'Journaux d'achat"
msgstr ""
#: include/class_acc_ledger.php:3234 include/class_acc_ledger.php:3303
#: include/class_acc_ledger.php:3302
msgid "'Journaux Financier"
msgstr ""
#: include/class_acc_ledger.php:3235 include/class_acc_ledger.php:3304
#: include/class_acc_ledger.php:3303
msgid "'Journaux d'Opérations diverses"
msgstr ""
#: include/class_acc_ledger.php:3406 include/class_acc_ledger.php:3476
#: include/class_acc_ledger.php:3475
msgid "Nombre de ligne incorrect"
msgstr ""
#: include/class_acc_ledger.php:3410 include/class_acc_ledger.php:3480
#: include/class_acc_ledger.php:3479
msgid "Un journal avec ce nom existe déjà"
msgstr ""
#: include/class_acc_ledger.php:3416 include/class_acc_ledger.php:3461
#: include/class_acc_ledger.php:3594 include/class_acc_ledger.php:3486
#: include/class_acc_ledger.php:3531 include/class_acc_ledger.php:3678
#: include/class_acc_ledger.php:3485 include/class_acc_ledger.php:3530
#: include/class_acc_ledger.php:3677
msgid "Aucun compte en banque n'est donné"
msgstr ""
#: include/class_acc_ledger.php:3527 include/class_acc_ledger.php:3610
#: include/class_acc_ledger.php:3609
msgid "choix du type de journal"
msgstr ""
#: include/class_acc_ledger.php:3611 include/class_acc_ledger.php:3695
#: include/class_acc_ledger.php:3694
msgid "Impossible d'effacer un journal qui contient des opérations"
msgstr ""
#: include/class_acc_ledger.php:3684 include/class_acc_ledger.php:3768
#: include/class_acc_ledger.php:3767
msgid "Action non accessible"
msgstr ""
@ -6482,6 +6536,7 @@ msgstr ""
#: include/class_acc_ledger_purchase.php:1729
#: include/class_acc_ledger_sold.php:1313
#: include/template/ledger_detail_ven.php:44
#: include/class_acc_ledger_sold.php:1311
msgid "Date paiement"
msgstr ""
@ -6742,7 +6797,7 @@ msgstr ""
msgid "Choix des categories"
msgstr ""
#: include/class_html_input.php:804
#: include/class_html_input.php:804 include/class_html_input.php:821
msgid "choix des journaux"
msgstr ""
@ -6752,6 +6807,7 @@ msgstr ""
#: include/ext/amortis/include/template/material_detail.php:128
#: include/ext/amortis/include/template/material_detail.php:135
#: include/ext/amortis/include/template/material_detail.php:155
#, php-format
msgid "Différence entre le montant à amortir et le montant amorti = %d'</h2>"
msgstr ""
@ -6794,7 +6850,7 @@ msgstr ""
msgid "Clef invalide"
msgstr ""
#: include/balance.inc.php:334
#: include/balance.inc.php:334 include/balance.inc.php:336
msgid "Total niveau"
msgstr ""
@ -6804,71 +6860,85 @@ msgstr ""
#: include/class_acc_ledger_purchase.php:1727
#: include/class_acc_ledger_sold.php:1311
#: include/class_acc_ledger_sold.php:1309
msgid "Numéro opération"
msgstr ""
#: include/class_acc_ledger_purchase.php:1730
#: include/class_acc_ledger_sold.php:1314
#: include/class_acc_ledger_sold.php:1312
msgid "Date échéance"
msgstr ""
#: include/class_acc_ledger_purchase.php:1735
#: include/class_acc_ledger_sold.php:1319
#: include/class_acc_ledger_sold.php:1317
msgid "Code journal"
msgstr ""
#: include/class_acc_ledger_purchase.php:1738
#: include/class_acc_ledger_sold.php:1322
#: include/class_acc_ledger_sold.php:1320
msgid "Code Item"
msgstr ""
#: include/class_acc_ledger_purchase.php:1739
#: include/class_acc_ledger_sold.php:1323
#: include/class_acc_ledger_sold.php:1321
msgid "N° fiche"
msgstr ""
#: include/class_acc_ledger_purchase.php:1740
#: include/class_acc_ledger_sold.php:1324
#: include/class_acc_ledger_sold.php:1322
msgid "Nom fiche"
msgstr ""
#: include/class_acc_ledger_purchase.php:1741
#: include/class_acc_ledger_sold.php:1325
#: include/class_acc_ledger_sold.php:1323
msgid "N° fiche fournisseur"
msgstr ""
#: include/class_acc_ledger_purchase.php:1742
#: include/class_acc_ledger_sold.php:1326
#: include/class_acc_ledger_sold.php:1324
msgid "Nom fournisseur"
msgstr ""
#: include/class_acc_ledger_purchase.php:1743
#: include/class_acc_ledger_sold.php:1327
#: include/class_acc_ledger_sold.php:1325
msgid "Code fournisseur"
msgstr ""
#: include/class_acc_ledger_purchase.php:1744
#: include/class_acc_ledger_sold.php:1328
#: include/class_acc_ledger_sold.php:1326
msgid "Nom TVA"
msgstr ""
#: include/class_acc_ledger_purchase.php:1745
#: include/class_acc_ledger_sold.php:1329
#: include/class_acc_ledger_sold.php:1327
msgid "Commentaire TVA"
msgstr ""
#: include/class_acc_ledger_purchase.php:1746
#: include/class_acc_ledger_sold.php:1330
#: include/class_acc_ledger_sold.php:1328
msgid "TVA annulée"
msgstr ""
#: include/class_acc_ledger_purchase.php:1747
#: include/class_acc_ledger_sold.php:1331
#: include/class_acc_ledger_sold.php:1329
msgid "Retrait TVA"
msgstr ""
#: include/class_acc_ledger_purchase.php:1752
#: include/class_acc_ledger_sold.php:1336
#: include/class_acc_ledger_sold.php:1334
msgid "PU"
msgstr ""
@ -6886,11 +6956,13 @@ msgstr ""
#: include/class_acc_ledger_purchase.php:1756
#: include/class_acc_ledger_sold.php:1337
#: include/class_acc_ledger_sold.php:1335
msgid "HTVA Opération"
msgstr ""
#: include/class_acc_ledger_purchase.php:1757
#: include/class_acc_ledger_sold.php:1338
#: include/class_acc_ledger_sold.php:1336
msgid "TVA Opération"
msgstr ""
@ -7063,3 +7135,117 @@ msgstr ""
#: include/template/profile.php:45
msgid "Avec Direct Accès"
msgstr ""
#: include/ajax_mod_periode.php:48
msgid "Modification période"
msgstr ""
#: include/ajax_mod_periode.php:49 include/ajax_mod_periode.php:75
msgid "Modifier les dates de début et fin de période"
msgstr ""
#: include/ajax_mod_periode.php:50
msgid "Cela pourrait avoir un impact sur les opérations déjà existantes"
msgstr ""
#: include/ajax_mod_periode.php:55
msgid " Début période : "
msgstr ""
#: include/ajax_mod_periode.php:56
msgid " Fin période : "
msgstr ""
#: include/ajax_mod_periode.php:57
msgid " Exercice : "
msgstr ""
#: include/ajax_mod_periode.php:59
msgid "sauver"
msgstr ""
#: include/ajax_mod_periode.php:76
msgid "Erreur date invalide"
msgstr ""
#: include/search.inc.php:118
msgid "Liste limitée à "
msgstr ""
#: include/search.inc.php:118
msgid " enregistrements. Le nombre d'enregistrements trouvés est de "
msgstr ""
#: include/template/profile.php:45
msgid "Avec Accès Direct "
msgstr ""
#: include/ext/modop/modop_display.php:53
msgid "On ne peut pas modifier dans une période fermée"
msgstr ""
#: include/ext/rapport_avance/include/class_rapav.php:150
msgid " Erreur dans la formule "
msgstr ""
#: include/class_acc_bilan.php:249
msgid "le formulaire id n'est pas donnee"
msgstr ""
#: include/class_acc_bilan.php:635
msgid "Ouverture fichier impossible"
msgstr ""
#: include/fiche.inc.php:91
msgid "Chercher"
msgstr ""
#: include/impress_bilan.inc.php:65
msgid ""
"Attention : si le bilan n'est pas équilibré.<br> Vérifiez <ul>\n"
" <li>L'affectation du résultat est fait</li>\n"
" <li>Vos comptes actifs ont un solde débiteur (sauf les comptes dit "
"inversés)</li>\n"
" <li> les comptes passifs ont un solde créditeur (sauf les comptes dit "
"inversés) </li>\n"
" </ul>\n"
" Utilisez la balance des comptes pour vérifier."
msgstr ""
#: include/impress_bilan.inc.php:82
msgid "Etape 2 :Impression"
msgstr ""
#: include/impress_rapport.inc.php:203
msgid "Choississez le rapport"
msgstr ""
#: include/impress_rapport.inc.php:208
msgid "P&eacute;riode comptable"
msgstr ""
#: include/impress_rapport.inc.php:240
msgid "Calendrier depuis :"
msgstr ""
#: include/impress_rapport.inc.php:247
msgid "Pas d'étape"
msgstr ""
#: include/impress_rapport.inc.php:248
msgid "1 mois"
msgstr ""
#: include/impress_rapport.inc.php:251
msgid "Par étape de"
msgstr ""
#: include/impress_rapport.inc.php:257
msgid ""
"Attention : vous ne pouvez pas utiliser les &eacute;tapes avec les dates "
"calendriers."
msgstr ""
#: include/impress_rapport.inc.php:259
msgid "Les clauses FROM sont ignorés avec les dates calendriers"
msgstr ""

View file

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: NOALYSS\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-30 23:30+0100\n"
"POT-Creation-Date: 2014-11-05 21:05+0100\n"
"PO-Revision-Date: 2014-02-21 21:35+0100\n"
"Last-Translator: dany\n"
"Language-Team: American English <kde-i18n-doc@kde.org>\n"
@ -202,18 +202,25 @@ msgid "%s Vous avez ajouté %d mois depuis le %d/%d pour l'exercice %d "
msgstr "Je hebt% s% d maanden sinds% d /% d% d voor het jaar toegevoegd"
#: include/class_acc_ledger.php:3234 include/class_acc_ledger.php:3303
#: include/class_acc_ledger.php:3302
msgid "'Journaux Financier"
msgstr "Financiële"
#: include/class_acc_ledger.php:3235 include/class_acc_ledger.php:3304
#: include/class_acc_ledger.php:3303
msgid "'Journaux d'Opérations diverses"
msgstr "Menu verschillende bewerkingen"
#: include/class_acc_ledger.php:3233 include/class_acc_ledger.php:3302
#: include/class_acc_ledger.php:3301
#, fuzzy
msgid "'Journaux d'achat"
msgstr "Ver"
#: include/impress_rapport.inc.php:248
msgid "1 mois"
msgstr ""
#: include/impress_bilan.inc.php:89
#, fuzzy
msgid ""
@ -317,6 +324,7 @@ msgid "Action interdite"
msgstr "Verboden Actie"
#: include/class_acc_ledger.php:3684 include/class_acc_ledger.php:3768
#: include/class_acc_ledger.php:3767
#, fuzzy
msgid "Action non accessible"
msgstr "Folder niet Bereikbaar"
@ -693,6 +701,25 @@ msgstr ""
msgid "Attention : il y a %d enregistrements incorrects "
msgstr "Let op:% d administratie onjuist"
#: include/impress_bilan.inc.php:65
#, fuzzy
msgid ""
"Attention : si le bilan n'est pas équilibré.<br> Vérifiez <ul>\n"
" <li>L'affectation du résultat est fait</li>\n"
" <li>Vos comptes actifs ont un solde débiteur (sauf les comptes dit "
"inversés)</li>\n"
" <li> les comptes passifs ont un solde créditeur (sauf les comptes dit "
"inversés) </li>\n"
" </ul>\n"
" Utilisez la balance des comptes pour vérifier."
msgstr "Accepteren"
#: include/impress_rapport.inc.php:257
msgid ""
"Attention : vous ne pouvez pas utiliser les &eacute;tapes avec les dates "
"calendriers."
msgstr ""
#: include/class_acc_ledger_purchase.php:1484
#: include/class_acc_ledger_sold.php:755
msgid "Attention Différence entre TVA calculée et donnée"
@ -769,6 +796,8 @@ msgstr ""
#: include/class_acc_ledger.php:3416 include/class_acc_ledger.php:3461
#: include/class_acc_ledger.php:3594 include/class_acc_ledger.php:3486
#: include/class_acc_ledger.php:3531 include/class_acc_ledger.php:3678
#: include/class_acc_ledger.php:3485 include/class_acc_ledger.php:3530
#: include/class_acc_ledger.php:3677
#, fuzzy
msgid "Aucun compte en banque n'est donné"
msgstr "Geen Enkele analytisch kaart"
@ -804,7 +833,7 @@ msgstr "Geen bestand"
msgid "Aucun fichier donné"
msgstr "Geen Gegevens"
#: include/balance.inc.php:101
#: include/balance.inc.php:101 include/balance.inc.php:102
#, fuzzy
msgid "Aucun filtre, tous les journaux"
msgstr "Logging Configuratie"
@ -985,7 +1014,7 @@ msgstr "Andere Informatie"
msgid "Autres actions"
msgstr "Actie Toevoegen"
#: include/database.item.php:117
#: include/database.item.php:117 include/balance.inc.php:86
msgid "Avancé"
msgstr "Vergevorderd"
@ -1020,7 +1049,7 @@ msgstr "Nieuwe extract"
msgid "Avec date opérations"
msgstr "Operatie Doorsturen"
#: include/balance.inc.php:172
#: include/balance.inc.php:172 include/balance.inc.php:173
msgid "Avec la balance de l'année précédente"
msgstr ""
@ -1158,10 +1187,15 @@ msgstr "Rekenmachine"
#: include/template/dashboard.php:9 include/ajax_calendar_zoom.php:23
#: include/class_html_input.php:779 include/template/dashboard.php:6
#: include/class_html_input.php:796
#: include/class_html_input.php:796 include/impress_rapport.inc.php:209
msgid "Calendrier"
msgstr "Kalender"
#: include/impress_rapport.inc.php:240
#, fuzzy
msgid "Calendrier depuis :"
msgstr "Kalender"
#: include/template/impress_cat_card.php:6 include/ajax_boxcard_search.php:57
msgid "Categorie"
msgstr "Categorie"
@ -1322,6 +1356,11 @@ msgstr "Kosten"
msgid "Chemin"
msgstr "Pad"
#: include/fiche.inc.php:91
#, fuzzy
msgid "Chercher"
msgstr "Vinden"
#: html/ajax_misc.php:190
msgid "Choississez la TVA "
msgstr ""
@ -1331,8 +1370,15 @@ msgid ""
"Choississez la catégorie de fiche à laquelle vous aimeriez ajouter une fiche"
msgstr "Kies de categorie lijst waar u een record toe te voegen"
#: include/impress_rapport.inc.php:203
#, fuzzy
msgid "Choississez le rapport"
msgstr "Kiez UW map"
#: include/balance.inc.php:45 include/impress_bilan.inc.php:48
#: include/impress_jrn.inc.php:84 include/impress_rapport.inc.php:182
#: include/balance.inc.php:47 include/impress_bilan.inc.php:51
#: include/impress_jrn.inc.php:86
msgid "Choississez un autre exercice"
msgstr "Kies een jaar"
@ -1854,7 +1900,7 @@ msgid "Credit"
msgstr "Credit"
#: include/class_acc_ledger.php:3280 include/user_menu.php:51
#: include/class_acc_ledger.php:3349
#: include/class_acc_ledger.php:3349 include/class_acc_ledger.php:3348
msgid "Création"
msgstr "Schepping"
@ -1954,6 +2000,7 @@ msgstr "Creditzijde"
#: include/ext/coprop/include/lot.inc.php:34 include/class_acc_ledger.php:1583
#: include/class_acc_ledger.php:3563 include/fiche.inc.php:113
#: include/ext/coprop/include/class_copro_budget.php:134
#: include/class_acc_ledger.php:3562
msgid "Créer une nouvelle fiche"
msgstr "Maak EEN Nieuwe blad"
@ -2162,7 +2209,7 @@ msgstr "Afmelden"
#: include/class_acc_bilan.php:70 include/impress_gl_comptes.inc.php:62
#: include/impress_poste.inc.php:93 include/template/impress_cat_card.php:14
#: include/class_anc_print.php:146
#: include/class_anc_print.php:146 include/balance.inc.php:75
msgid "Depuis"
msgstr "VANAF"
@ -2929,6 +2976,11 @@ msgstr "Stap 1/3"
msgid "Etape 1/3"
msgstr "Stap 1/3"
#: include/impress_bilan.inc.php:82
#, fuzzy
msgid "Etape 2 :Impression"
msgstr "Indruk"
#: include/ext/transform/include/intervat_listing_assujetti_step_2.inc.php:266
msgid "Etape 2/3"
msgstr "Stap 2/3"
@ -2968,7 +3020,8 @@ msgid "Exclure Etat"
msgstr "Uitsluiten State"
#: include/ext/tools/index.php:43 include/bank.inc.php:73
#: include/template/stock_state_search.php:35
#: include/template/stock_state_search.php:35 include/impress_bilan.inc.php:49
#: include/impress_jrn.inc.php:84 include/impress_rapport.inc.php:182
msgid "Exercice"
msgstr "Oefening"
@ -3261,7 +3314,7 @@ msgstr ""
#: include/ext/amortis/include/template/listing_histo.php:10
#: include/ajax_boxcard_search.php:46
#: include/template/result_cat_card_summary.php:5 include/menu.inc.php:150
#: html/user_login.php:165
#: html/user_login.php:165 include/balance.inc.php:280
msgid "Filtre"
msgstr "Filter"
@ -3287,12 +3340,12 @@ msgstr "Filter"
msgid "Filtrer par "
msgstr "Filteren op"
#: include/balance.inc.php:109
#: include/balance.inc.php:109 include/balance.inc.php:110
#, fuzzy
msgid "Filtré par catégorie"
msgstr "Categorie Toevoegen"
#: include/balance.inc.php:104
#: include/balance.inc.php:104 include/balance.inc.php:105
#, fuzzy
msgid "Filtré par journal"
msgstr "Filteren op"
@ -3758,6 +3811,7 @@ msgid "Importer ce rapport"
msgstr "Importeer dit verslag"
#: include/class_acc_ledger.php:3611 include/class_acc_ledger.php:3695
#: include/class_acc_ledger.php:3694
msgid "Impossible d'effacer un journal qui contient des opérations"
msgstr ""
@ -3911,6 +3965,7 @@ msgid "Journal inexistant"
msgstr "Module bestaat niet"
#: include/class_acc_ledger.php:3305 include/class_acc_ledger.php:3374
#: include/class_acc_ledger.php:3373
msgid "Journal n'existe pas"
msgstr "Inloggen bestaat niet"
@ -3920,6 +3975,7 @@ msgid "Journaux"
msgstr "Kranten"
#: include/class_acc_ledger.php:3232 include/class_acc_ledger.php:3301
#: include/class_acc_ledger.php:3300
#, fuzzy
msgid "Journaux de vente"
msgstr "Sales Geschiedenis"
@ -4044,6 +4100,10 @@ msgstr "Lezing"
msgid "Les 2"
msgstr "2"
#: include/impress_rapport.inc.php:259
msgid "Les clauses FROM sont ignorés avec les dates calendriers"
msgstr ""
#: include/class_anc_print.php:120
msgid "Les dates sont en format DD.MM.YYYY"
msgstr "referentiepunt in formaat TT.MM.JJJJ"
@ -4350,6 +4410,7 @@ msgstr "Werk plugin, kunt u de parameter instelling te controleren?"
#: include/class_acc_ledger_purchase.php:1689
#: include/class_acc_ledger_sold.php:954 include/history_operation.inc.php:140
#: include/history_operation.inc.php:141
msgid "Mise à jour paiement"
msgstr "OPSLAAN"
@ -4580,7 +4641,7 @@ msgid "Montant initial"
msgstr "Oorspronkelijk bedrag"
#: include/ext/amortis/include/class_am_card.php:179
#: include/class_acc_compute.php:194
#: include/class_acc_compute.php:194 include/class_acc_compute.php:195
#, fuzzy
msgid "Montant invalide"
msgstr "has EEN verkeerde Bedrag"
@ -4683,17 +4744,17 @@ msgstr "Het kan-niet OPSLAAN"
msgid "Ne remplissez pas s'il n'y a pas de mandataire"
msgstr "Niet compleet als er geen vertegenwoordiger"
#: include/balance.inc.php:128
#: include/balance.inc.php:128 include/balance.inc.php:129
#, fuzzy
msgid "Niveau 1"
msgstr "Nieuw"
#: include/balance.inc.php:129
#: include/balance.inc.php:129 include/balance.inc.php:130
#, fuzzy
msgid "Niveau 2"
msgstr "Nieuw"
#: include/balance.inc.php:130
#: include/balance.inc.php:130 include/balance.inc.php:131
#, fuzzy
msgid "Niveau 3"
msgstr "Nieuw"
@ -4802,6 +4863,7 @@ msgid "Nombre d'unité"
msgstr "Aantal eenheid"
#: include/class_acc_ledger.php:3406 include/class_acc_ledger.php:3476
#: include/class_acc_ledger.php:3475
#, fuzzy
msgid "Nombre de ligne incorrect"
msgstr "Aantal geregistreerde lijnen"
@ -5237,6 +5299,16 @@ msgstr "Volgorde van verschijning"
msgid "Oui"
msgstr "Ja"
#: include/class_acc_bilan.php:635
#, fuzzy
msgid "Ouverture fichier impossible"
msgstr "Opening Schrift"
#: include/impress_rapport.inc.php:208
#, fuzzy
msgid "P&eacute;riode comptable"
msgstr "Boekhoudingsperiode"
#: include/class_acc_ledger.php:211 include/class_acc_ledger.php:210
msgid "PERIODE FERMEE"
msgstr "Gesloten periode"
@ -5326,6 +5398,11 @@ msgstr "Het blad"
msgid "Par gérant ou administrateur"
msgstr "Door de manager of beheerder"
#: include/impress_rapport.inc.php:251
#, fuzzy
msgid "Par étape de"
msgstr "Per jaar"
#: html/ajax_card.php:106
#, fuzzy
msgid "Parametre ad_id est invalide"
@ -5394,6 +5471,10 @@ msgstr "Geen Toegang"
msgid "Pas d'anomalie détectée"
msgstr ""
#: include/impress_rapport.inc.php:247
msgid "Pas d'étape"
msgstr ""
#: include/ext/invoicing/include/invoice_send_mail.inc.php:75
#: include/ext/invoicing/include/invoice_send_mail.inc.php:80
#: include/ext/invoicing/include/invoice_send_mail.inc.php:103
@ -5433,6 +5514,7 @@ msgid "Payé"
msgstr "Betaald"
#: include/class_acc_ledger.php:3478 include/class_acc_ledger.php:3548
#: include/class_acc_ledger.php:3547
msgid "Payé par"
msgstr "Betaald deur"
@ -5480,7 +5562,7 @@ msgstr "Bewijs"
msgid "Pièces attachées"
msgstr "Documenten"
#: include/balance.inc.php:162
#: include/balance.inc.php:162 include/balance.inc.php:163
#, fuzzy
msgid "Plage de postes"
msgstr "Basisklasse"
@ -6593,7 +6675,7 @@ msgstr "Debet Totaal"
msgid "Total lettré"
msgstr "Werkelijke totale"
#: include/balance.inc.php:334
#: include/balance.inc.php:334 include/balance.inc.php:336
#, fuzzy
msgid "Total niveau"
msgstr "Totaal"
@ -6618,7 +6700,7 @@ msgstr "Werkelijke totale"
msgid "Totaux"
msgstr "Totalen"
#: include/balance.inc.php:111
#: include/balance.inc.php:111 include/balance.inc.php:112
msgid "Totaux par sous-niveaux"
msgstr ""
@ -6752,6 +6834,7 @@ msgid "URL"
msgstr ""
#: include/class_acc_ledger.php:3410 include/class_acc_ledger.php:3480
#: include/class_acc_ledger.php:3479
msgid "Un journal avec ce nom existe déjà"
msgstr ""
@ -6759,7 +6842,7 @@ msgstr ""
msgid "Uniquement actions internes"
msgstr "Alleen interne acties"
#: include/balance.inc.php:169
#: include/balance.inc.php:169 include/balance.inc.php:170
#, fuzzy
msgid "Uniquement comptes non soldés"
msgstr "Alleen interne acties"
@ -6871,7 +6954,7 @@ msgstr "Sales / Recepten"
msgid "Ventes"
msgstr "Verkoop"
#: include/impress_bilan.inc.php:64
#: include/impress_bilan.inc.php:64 include/impress_bilan.inc.php:71
msgid "Verification comptabilite"
msgstr "Verificatie vand van Boekhouding"
@ -6902,6 +6985,7 @@ msgid "Visible Y ou N"
msgstr "Zichtbare Y of N"
#: include/impress_rec.inc.php:79 include/balance.inc.php:175
#: include/balance.inc.php:177 include/impress_rapport.inc.php:261
msgid "Visualisation"
msgstr "Visualisatie"
@ -7159,6 +7243,7 @@ msgid "choix des journaux"
msgstr "Financiele"
#: include/class_acc_ledger.php:3527 include/class_acc_ledger.php:3610
#: include/class_acc_ledger.php:3609
#, fuzzy
msgid "choix du type de journal"
msgstr "For the boek van soort"
@ -7235,7 +7320,8 @@ msgid "erreur"
msgstr "Fout:"
#: include/class_acc_bilan.php:348 include/class_acc_bilan.php:656
#: include/class_acc_bilan.php:681
#: include/class_acc_bilan.php:681 include/class_acc_bilan.php:661
#: include/class_acc_bilan.php:686
#, fuzzy
msgid "erreur Ouverture fichier"
msgstr "Opening Schrift"
@ -7247,7 +7333,7 @@ msgid ""
msgstr ""
"enig verzuim periode gemaakte fout, ga dan naar een voorkeur voor kiezen"
#: include/class_acc_bilan.php:662
#: include/class_acc_bilan.php:662 include/class_acc_bilan.php:667
msgid "erreur écriture fichier"
msgstr ""
@ -7280,11 +7366,17 @@ msgstr "onbestaand"
msgid "journaux"
msgstr "Kranten"
#: include/balance.inc.php:164
#: include/balance.inc.php:164 include/balance.inc.php:84
#: include/balance.inc.php:165 include/impress_rapport.inc.php:242
#, fuzzy
msgid "jusque"
msgstr "peuter"
#: include/class_acc_bilan.php:249
#, fuzzy
msgid "le formulaire id n'est pas donnee"
msgstr "tarief is geen getal"
#: include/dossier.inc.php:58
msgid "le modele "
msgstr "Het model"

View file

@ -1,11 +1,10 @@
/* <style type="text/css"> */
BODY {
background-color:#EDF3FF;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
padding: 0px 0px 0px 0px ;
margin:0px;
color:#0000FF;
color:#0000FF;
font-size:100%;
}
.notice {
@ -15,10 +14,12 @@ BODY {
table.sortable, table.table_large, table.result ,table.resultfooter {
color:#0000FF;
width:100%;
border-spacing: 0px;
border-collapse:collapse;
width:99%;
border-spacing: 1px;
/*border-collapse:collapse; */
margin :0.5%;
border:1px #5D90CD solid;
border-radius: 10px;
}
table.resultfooter tfoot {
font-weight: bold;
@ -28,7 +29,7 @@ table.resultfooter tfoot {
table.sortable th, table.table_large th,table.result th {
font-weight:bold;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
border-bottom:1px solid #0000FF;
border-bottom:2px #5d90cd groove;
border-top:0;
color:#202267;
@ -51,7 +52,6 @@ div.info {
color:#FFFFFF;
text-align:center;
}
content h2.info {
background:#879ED4;
color:#000000;
@ -254,13 +254,29 @@ td.mshort {
color:#5D90CD ;
background-color:#DDE6FF;
}
td.mtitle {
text-align:center;
width:250px;
height :30px;
background-color:#DDE6FF;
/* background-color:#DDE6FF;*/
border:1px solid #99B1DF;
border-radius:5px;
background: #C2E3FC; /* Old browsers */
background: -moz-linear-gradient(top, #C2E3FC 0%, #6393c1 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#C2E3FC), color-stop(100%,#6393c1)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #C2E3FC 0%,#6393c1 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #C2E3FC 0%,#6393c1 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #C2E3FC 0%,#6393c1 100%); /* IE10+ */
background: linear-gradient(to bottom, #C2E3FC 0%,#6393c1 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#C2E3FC', endColorstr='#6393c1',GradientType=0 ); /* IE6-9 */
}
td.vert_mtitle {
text-align:center;
border:1px solid #99B1DF;
border-radius:5px;
}
td.msubtitle {
text-align:center;
@ -284,6 +300,10 @@ span.even {
tr.odd {
background-color: #DDE6FF;
}
.highlight {
font-weight: bolder;
font-size:14px;
}
tr.highlight {
font-weight: bold;
}
@ -303,14 +323,22 @@ td.cell{
}
td.selectedcell{
border-style:solid;
border-color:#0000FF;
/* border-color:#0000FF;*/
border-width:1px ;
font-weight: bold;
background:#5D90CD ;
/* background:#5D90CD ;*/
color:#FFFFFF;
width:250px;
text-align:center;
width:120px;
border-radius:5px;
background: #b8c6df; /* Old browsers */
background: -moz-linear-gradient(top, #b8c6df 0%, #6d88b7 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b8c6df), color-stop(100%,#6d88b7)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #b8c6df 0%,#6d88b7 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #b8c6df 0%,#6d88b7 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #b8c6df 0%,#6d88b7 100%); /* IE10+ */
background: linear-gradient(to bottom, #b8c6df 0%,#6d88b7 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b8c6df', endColorstr='#6d88b7',GradientType=0 ); /* IE6-9 */
}
a.mtitle {
text-decoration:none;
@ -330,7 +358,6 @@ td.selectedcell a.mtitle,div.content td.selectedcell a.mtitle {
text-decoration:none;
display:block;
color:#FFFFFF;
width: 250px;
}
a.dossier {
text-decoration:none;
@ -352,7 +379,7 @@ tr.even:hover td
}
td.mtitle:hover,td.mtitle:hover a
{
background-color:#a9d6e4;
background:#a9d6e4;
color:#FFFFFF;
}
td.msubtitle:hover,td.msubtitle:hover a
@ -437,7 +464,7 @@ div.content a {
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
text-decoration: none;
display: block;
color: #0000FF;
color: #0000FF;
padding: 0px;
}
@ -680,7 +707,6 @@ div.popup_content {
filter:alpha(opacity=100);*/
}
div.autocomplete {
position:absolute;
background-color:#FFFFFF;
border:1px solid #888;
margin:0px;
@ -814,8 +840,6 @@ a#anchorbutton, .button, a.button,div.content a.button {
cursor:pointer;
margin:1px 2px 1px 2px;
border-radius: 5px;
moz-border-radius:5px;
}
a#anchorbutton:hover, .button:hover,a.button:hover,div.content a.button:hover {
cursor:pointer;
@ -847,15 +871,13 @@ a#smallanchorbutton, .smallbutton, a.smallbutton,div.content a.smallbutton {
cursor:pointer;
margin:1px 2px 1px 2px;
border-radius: 2px;
moz-border-radius:2px;
}
a#smallanchorbutton:hover, .smallbutton:hover,a.smallbutton:hover,div.content a.smallbutton:hover {
cursor:pointer;
background-color:#FFFFFF;
/* border-style: inset ; */
color:#FF0000;
color:whitesmoke;
margin:1px 2px 1px 2px;
background-image: url("image/bg-submit3.gif");
}
td.tool {
@ -949,16 +971,9 @@ box-shadow: 10px 10px 5px #888;
font-size:14.4px;
font-size:0.90rem;
}
@media only screen and (min-width: 1024px) {
@media only screen and (min-width: 1281px) {
div.inner_box {
width: 35%;
}
}
@media only screen and (max-width: 1024px) {
div.inner_box {
width: 90%;
left:5%;
margin-bottom: 5%;
width: 85%;
}
}
div.op_detail_title {
@ -971,7 +986,7 @@ div.op_detail_title {
div#div_cat{
position:absolute;
border:1px solid #000000;
top:15%;left:100;
top:15%;left:100px;
visibility:hidden;
z-index:2;
width:50em;
@ -1050,7 +1065,7 @@ span.remain {
}
#predef_form {
margin-left:20%;
margin-left:35%;
width:60%;
position: absolute;
}
@ -1081,16 +1096,11 @@ div#wait_box
margin:0px;
overflow:hidden;
z-index:10;
position:absolute;
left:30%;
top:30%;
border:1px solid #00008B;
width: 260px;
widt: 260px;
}
#wait_box h2
{
@ -1223,11 +1233,19 @@ h1.title {
text-transform: uppercase;
}
h2.title {
background-color:#879ED4;
/* background-color:#879ED4; */
color:#FFFFFF;
text-align:center;
padding:0.24%;
border:1px solid #00008B;
background: #606c88; /* Old browsers */
background: -moz-linear-gradient(top, #606c88 0%, #3f4c6b 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#606c88), color-stop(100%,#3f4c6b)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #606c88 0%,#3f4c6b 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #606c88 0%,#3f4c6b 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #606c88 0%,#3f4c6b 100%); /* IE10+ */
background: linear-gradient(to bottom, #606c88 0%,#3f4c6b 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#606c88', endColorstr='#3f4c6b',GradientType=0 ); /* IE6-9 */
}
h3.title {
@ -1478,46 +1496,170 @@ fieldset {
#mod_predf_op {
width: 80%;
overflow: auto;
overflow-style: panner;
}
ul.tabs {
padding-top: 5px;
padding-top: 15px;
display:block;
border-bottom: 1px solid #879ed4;
padding-left: 10px
padding-left: 2px
}
ul.tabs a {
display:inline;
}
li.tabs_selected {
display:inline;
background: #C2E3FC; /* Old browsers */
background: -moz-linear-gradient(top, #C2E3FC 0%, #6393c1 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#C2E3FC), color-stop(100%,#6393c1)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #C2E3FC 0%,#6393c1 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #C2E3FC 0%,#6393c1 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #C2E3FC 0%,#6393c1 100%); /* IE10+ */
background: linear-gradient(to bottom, #C2E3FC 0%,#6393c1 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#C2E3FC', endColorstr='#6393c1',GradientType=0 ); /* IE6-9 */
color:whitesmoke;
margin-left: 2px;
padding: 12px 15px 15px 15px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border:1px #879ed4 solid;
font-weight: bold;
}
li.tabs {
display:inline;
background-color: grey;
color:wheat;margin-left: 2px;
padding: 15px 15px 0px 15px;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
background-color: inherit;
color:inherit;margin-left: 0px;
padding: 10px 10px 0px 10px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border:1px #879ed4 solid;
}
li.tabs:hover {
display:inline;
background-color: blue;
background-color: lightblue;
color:wheat;margin-left: 2px;
padding: 15px 15px 0px 15px;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
padding: 10px 10px 0px 10px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border:1px #879ed4 solid;
}
li.tabs a {
ul.tabs a {
text-decoration: none;
color:white;
color:inherit;
display:inline;
}
li.tabs a:hover {
ul.tabs a:hover {
text-decoration: none;
color:white;
display:inline;
background-color: lightblue;
}
.previous_year
{
text-align:right;
color:black;
}
}
div.autocomplete_fixed {
background-color:#FFFFFF;
border:1px solid #888;
margin:0px;
padding:0px;
text-align:left;
}
div.autocomplete_fixed em {
color:#0000FF;
font-weight:bold;
}
@media only screen and (max-width: 1280px) {
div.autocomplete_fixed ul {
list-style-type:none;
background-color:#FFFFFF;
border:1px solid blue;
width:300px;
margin:0px;
padding:0px;
}
div.tag {
}
}
@media only screen and (min-width: 1281px) {
div.autocomplete_fixed ul {
list-style-type:none;
background-color:#FFFFFF;
border:1px solid blue;
width:500px;
margin:0px;
padding:0px;
}
div.tag {
width: 50%;
}
}
div.autocomplete_fixed ul li.selected {
background-color: #DDE6FF;
border-bottom: 1px solid black;
}
div.autocomplete_fixed ul li {
list-style-type:none;
display:block;
margin:0px;
padding:0px;
cursor:pointer;
}
#popup {
font-size:0.9rem;
}
hr {
width:95%;
margin-left:2.5%;
background:#5d90cd;
height:5px;
}
tr.highlight{
font-weight: bolder;
font-size:14px;
background-color: navy;
color:white !important;
border-width: 2px;
border-style: solid;
border-color: blue;
}
*|*:link {
color: inherit;
}
@media only screen and (max-width: 1280px) {
div.inner_box {
width: 95%;
left:2%;
margin-bottom: 2%;
}
li.tabs {
display:inline;
background-color: inherit;
color:inherit;margin-left: 0px;
padding: 5px 5px 0px 5px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border:1px #879ed4 solid;
}
li.tabs:hover {
display:inline;
background-color: lightblue;
color:wheat;margin-left: 2px;
padding: 5px 5px 0px 5px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border:1px #879ed4 solid;
}
}

View file

@ -5,7 +5,7 @@ BODY {
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
padding: 0px 0px 0px 0px ;
margin:0px;
color:#0000FF;
color:#605D5D;
font-size:100%;
}
.notice {
@ -15,7 +15,7 @@ BODY {
}
table.sortable, table.table_large, table.result ,table.resultfooter {
color:#0000FF;
color:#333030;
width:100%;
border-spacing: 0px;
border-collapse:collapse;
@ -29,10 +29,8 @@ table.resultfooter tfoot {
table.sortable th, table.table_large th,table.result th {
font-weight:bold;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
border-bottom:1px solid #0000FF;
border-bottom:1px solid #605D5D;
border-top:0;
color:#202267;
text-align: left;
font-style: italic;
@ -84,7 +82,7 @@ h3.info {
}
h2.info2 {
color:#0000FF;
color:#605D5D;
text-align:center;
}
@ -127,7 +125,7 @@ div.u_tool #name {
td.tool a.mtitle {
text-decoration:none;
display:inline;
color: #0000FF;
color: #605D5D;
text-align:center;
@ -224,7 +222,7 @@ div.no span{
}
table.document {
color:#0000FF;
color:#605D5D;
width:100%;
border-spacing: 0px;
border-collapse:collapse;
@ -233,7 +231,7 @@ table.document {
table.document th{
font-weight:bold;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
border-bottom:2px solid #0000FF;
border-bottom:2px solid #605D5D;
border-top:0px;
color:#202267;
text-align: left;
@ -270,7 +268,15 @@ td.mtitle {
text-align:center;
width:250px;
height :30px;
background-color: #F1F1F1;
background: rgb(206,220,231); /* Old browsers */
background: -moz-linear-gradient(top, rgba(206,220,231,1) 0%, rgba(89,106,114,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(206,220,231,1)), color-stop(100%,rgba(89,106,114,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(206,220,231,1) 0%,rgba(89,106,114,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(206,220,231,1) 0%,rgba(89,106,114,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(206,220,231,1) 0%,rgba(89,106,114,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(206,220,231,1) 0%,rgba(89,106,114,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cedce7', endColorstr='#596a72',GradientType=0 ); /* IE6-9 */
color:#F7F8FC;
}
td.msubtitle {
text-align:center;
@ -279,7 +285,7 @@ td.msubtitle {
}
span.mtitle {
color:#888;
background-color:#0000FF;
background-color:#605D5D;
border-style:groove
}
span.odd {
@ -312,18 +318,28 @@ td.cell{
}
td.selectedcell{
background: rgb(96,108,136); /* Old browsers */
background: -moz-linear-gradient(top, rgba(96,108,136,1) 40%, rgba(63,76,107,1) 70%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(40%,rgba(96,108,136,1)), color-stop(70%,rgba(63,76,107,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(96,108,136,1) 40%,rgba(63,76,107,1) 70%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(96,108,136,1) 40%,rgba(63,76,107,1) 70%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(96,108,136,1) 40%,rgba(63,76,107,1) 70%); /* IE10+ */
background: linear-gradient(to bottom, rgba(96,108,136,1) 40%,rgba(63,76,107,1) 70%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#606c88', endColorstr='#3f4c6b',GradientType=0 ); /* IE6-9 */
font-weight: bold;
background: #909BA7;
color:#FFFFFF;
text-align:center;
width:120px;
}
td.mtitle a.mtitle {
color : white;
}
a.mtitle {
text-decoration:none;
display:inline;
color: #0000FF;
color: #605D5D;
}
a.mtitle:hover {
@ -366,10 +382,24 @@ tr.even:hover td
background-color: #a9d6e4;
color:#FFFFFF;
}
td.mtitle:hover,td.mtitle:hover a
td.mtitle:hover
{
background-color:#a9d6e4;
background: rgb(89,106,114); /* Old browsers */
background: -moz-linear-gradient(top, rgba(89,106,114,1) 0%, rgba(206,220,231,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(89,106,114,1)), color-stop(100%,rgba(206,220,231,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(89,106,114,1) 0%,rgba(206,220,231,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(89,106,114,1) 0%,rgba(206,220,231,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(89,106,114,1) 0%,rgba(206,220,231,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(89,106,114,1) 0%,rgba(206,220,231,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#596a72', endColorstr='#cedce7',GradientType=0 ); /* IE6-9 */
color:#FFFFFF;
border-radius: 0;
border-width: 0;
background-color:blue;
}
td.mtitle:hover a {
background:transparent;
}
td.msubtitle:hover,td.msubtitle:hover a
{
@ -379,7 +409,7 @@ td.msubtitle:hover,td.msubtitle:hover a
a.cell {
text-decoration:none;
display:block;
color:#0000FF;
color:#333030;
background-color:#FFFFFF;
}
@ -393,20 +423,20 @@ a.cell:hover {
a.one:link {
text-decoration:underline;
color:#0000FF;
color:#333030;
}
a.one:visited {
text-decoration:none;
color:#0000FF;
color:#333030;
}
a.one:active {
background: #0000FF;
background: #333030;
}
a.one:hover {
text-decoration:underline;
background:#0000FF;
background:#605D5D;
color:#FFFFFF;
}
@ -416,7 +446,7 @@ a.detail
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
text-decoration: none;
display: block;
color: #0000FF;
color: #333030;
}
a.detail:hover
@ -437,7 +467,7 @@ div.redcontent a {
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
text-decoration: none;
display: block;
color: #0000FF;
color: #605D5D;
}
@ -453,7 +483,7 @@ div.content a {
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
text-decoration: none;
display: block;
color: #0000FF;
color: #333030;
padding: 0px;
}
@ -488,7 +518,7 @@ div.redcontent a.mtitle:hover {
div.content a.mtitle {
text-decoration:none;
display:inline;
color:#0000FF;
color:#605D5D;
@ -509,7 +539,7 @@ div.redcontent input.text {
border-style:solid;
background-color: #F93;
border-width:1px;
color:#0000FF;
color:#605D5D;
}
div.content input.text {
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
@ -518,7 +548,7 @@ div.content input.text {
border-style:solid;
border-width:1px;
background-color: #F93;
color:#0000FF;
color:#605D5D;
}
@ -547,17 +577,17 @@ a.document:hover {
}
.input_text_ro {
border:solid 1px #0000FF;
border:solid 1px #605D5D;
background:#EDEDED;
color:#0000FF;
color:#605D5D;
margin:1px;
}
.input_text {
border:groove 1px #0000FF;
border:groove 1px #605D5D;
margin:1px;
}
.input_text:hover {
border:groove 1px #0000FF;
border:groove 1px #605D5D;
margin:1px;
background-color: #F93;
}
@ -571,7 +601,7 @@ fieldset fieldset legend {
color:#888;
}
select {
border: 1px solid #0000FF;
border: 1px solid #605D5D;
margin:2px;
background-color:#FFFFFF;
@ -704,7 +734,7 @@ div.autocomplete {
text-align:left;
}
div.autocomplete em {
color:#0000FF;
color:#605D5D;
font-weight:bold;
}
div.autocomplete ul {
@ -820,10 +850,15 @@ a#anchorbutton, .button, a.button,div.content a.button {
font-weight: bold;
text-decoration:none;
font-family: arial,verdana,sans-serif,helvetica;
background-image: url("image/bg-submit5.png");
background-repeat: repeat-x;
background-position: left;
border-color: #0000FF;
background: rgb(174,188,191); /* Old browsers */
background: -moz-linear-gradient(top, rgba(174,188,191,1) 0%, rgba(110,119,116,1) 50%, rgba(10,14,10,1) 51%, rgba(10,8,9,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(174,188,191,1)), color-stop(50%,rgba(110,119,116,1)), color-stop(51%,rgba(10,14,10,1)), color-stop(100%,rgba(10,8,9,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(174,188,191,1) 0%,rgba(110,119,116,1) 50%,rgba(10,14,10,1) 51%,rgba(10,8,9,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(174,188,191,1) 0%,rgba(110,119,116,1) 50%,rgba(10,14,10,1) 51%,rgba(10,8,9,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(174,188,191,1) 0%,rgba(110,119,116,1) 50%,rgba(10,14,10,1) 51%,rgba(10,8,9,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(174,188,191,1) 0%,rgba(110,119,116,1) 50%,rgba(10,14,10,1) 51%,rgba(10,8,9,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#aebcbf', endColorstr='#0a0809',GradientType=0 ); /* IE6-9 */
border-color: #605D5D;
border-width:0px;
padding:4px;
margin:3px;
@ -846,14 +881,12 @@ a#smallanchorbutton, .smallbutton, a.smallbutton,div.content a.smallbutton {
font-weight: bold;
text-decoration:none;
font-family: arial,verdana,sans-serif,helvetica;
background-image: url("image/bg-submit5.png");
background-repeat: repeat-x;
background-position: left;
font-size:12px;
font-size:0.75rem;
border-style: outset ;
border-color: #0000FF;
border-color: #605D5D;
border-width:0;
padding-bottom: 3px;
padding-top: 3px;
@ -864,6 +897,14 @@ a#smallanchorbutton, .smallbutton, a.smallbutton,div.content a.smallbutton {
margin:1px 2px 1px 2px;
border-radius: 2px;
moz-border-radius:2px;
background: rgb(174,188,191); /* Old browsers */
background: -moz-linear-gradient(top, rgba(174,188,191,1) 0%, rgba(110,119,116,1) 50%, rgba(10,14,10,1) 51%, rgba(10,8,9,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(174,188,191,1)), color-stop(50%,rgba(110,119,116,1)), color-stop(51%,rgba(10,14,10,1)), color-stop(100%,rgba(10,8,9,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(174,188,191,1) 0%,rgba(110,119,116,1) 50%,rgba(10,14,10,1) 51%,rgba(10,8,9,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(174,188,191,1) 0%,rgba(110,119,116,1) 50%,rgba(10,14,10,1) 51%,rgba(10,8,9,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(174,188,191,1) 0%,rgba(110,119,116,1) 50%,rgba(10,14,10,1) 51%,rgba(10,8,9,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(174,188,191,1) 0%,rgba(110,119,116,1) 50%,rgba(10,14,10,1) 51%,rgba(10,8,9,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#aebcbf', endColorstr='#0a0809',GradientType=0 ); /* IE6-9 */
}
a#smallanchorbutton:hover, .smallbutton:hover,a.smallbutton:hover,div.content a.smallbutton:hover {
@ -900,6 +941,8 @@ div.topmenu td {
border-width:0px;
border-radius:0px;
}
#dossier h2{
color:#00008B;
display:inline;
@ -909,7 +952,7 @@ div.topmenu td {
}
/* </style> */
#add_todo_list {
border:1px solid #0000FF;
border:1px solid #605D5D;
display:none;
background-color:#DDE6FF;
padding:0.07%;
@ -961,16 +1004,16 @@ box-shadow: 10px 10px 5px #888;
font-size:14.4px;
font-size:0.90rem;
}
@media only screen and (min-width: 1024px) {
@media only screen and (min-width: 1281px) {
div.inner_box {
width: 35%;
width: 55%;
}
}
@media only screen and (max-width: 1024px) {
@media only screen and (max-width: 1280px) {
div.inner_box {
width: 90%;
left:5%;
margin-bottom: 5%;
width: 95%;
left:2%;
margin-bottom: 2%;
}
}
div.op_detail_title {
@ -1039,7 +1082,7 @@ table.info_op tr
}
h2#jrn_name
{
color:#0000FF;
color:#605D5D;
margin-right:30%;
float: right;
}
@ -1126,7 +1169,7 @@ a.line,div.content a.line
{
text-decoration:underline;
display:inline;
/* color: #0000FF; */
/* color: #605D5D; */
}
a.line:hover,div_content a.line
{
@ -1138,9 +1181,9 @@ a.line:hover,div_content a.line
#close_div
{
background-color:#FFFFFF;
color:#0000FF;
color:#605D5D;
text-decoration:none;
border:1px solid #0000FF;
border:1px solid #605D5D;
margin-left: 2px;
margin-right:2px;
margin-top:0px;
@ -1154,9 +1197,9 @@ a.line:hover,div_content a.line
#popmeout
{
background-color:#FFFFFF;
color:#0000FF;
color:#605D5D;
text-decoration:none;
border:1px solid #0000FF;
border:1px solid #605D5D;
margin-left: 2px;
margin-right:18px;
font-size:12px;
@ -1229,13 +1272,21 @@ div.foldercontent {
}
h1.title {
color: #0000FF;
color: #605D5D;
font-style: italic;
text-align:center;
text-transform: uppercase;
}
h2.title {
background-color: #C4CBDB;
background: rgb(149,149,149); /* Old browsers */
background: -moz-linear-gradient(top, rgba(149,149,149,1) 0%, rgba(13,13,13,1) 46%, rgba(1,1,1,1) 50%, rgba(10,10,10,1) 53%, rgba(78,78,78,1) 76%, rgba(56,56,56,1) 87%, rgba(27,27,27,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(149,149,149,1)), color-stop(46%,rgba(13,13,13,1)), color-stop(50%,rgba(1,1,1,1)), color-stop(53%,rgba(10,10,10,1)), color-stop(76%,rgba(78,78,78,1)), color-stop(87%,rgba(56,56,56,1)), color-stop(100%,rgba(27,27,27,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(149,149,149,1) 0%,rgba(13,13,13,1) 46%,rgba(1,1,1,1) 50%,rgba(10,10,10,1) 53%,rgba(78,78,78,1) 76%,rgba(56,56,56,1) 87%,rgba(27,27,27,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(149,149,149,1) 0%,rgba(13,13,13,1) 46%,rgba(1,1,1,1) 50%,rgba(10,10,10,1) 53%,rgba(78,78,78,1) 76%,rgba(56,56,56,1) 87%,rgba(27,27,27,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(149,149,149,1) 0%,rgba(13,13,13,1) 46%,rgba(1,1,1,1) 50%,rgba(10,10,10,1) 53%,rgba(78,78,78,1) 76%,rgba(56,56,56,1) 87%,rgba(27,27,27,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(149,149,149,1) 0%,rgba(13,13,13,1) 46%,rgba(1,1,1,1) 50%,rgba(10,10,10,1) 53%,rgba(78,78,78,1) 76%,rgba(56,56,56,1) 87%,rgba(27,27,27,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#959595', endColorstr='#1b1b1b',GradientType=0 ); /* IE6-9 */
color:#FFFFFF;
text-align:center;
padding:0.24%;
@ -1243,16 +1294,16 @@ h2.title {
}
h3.title {
color: #0000FF;
color: #605D5D;
margin-left: 30px;
}
h4.title {
color: #0000FF;
color: #605D5D;
margin-left: 45px;
text-decoration: underline;
}
h5.title {
color: #0000FF;
color: #605D5D;
margin-left: 45px;
text-decoration: none;
font-style: italic;
@ -1300,7 +1351,7 @@ div.menu3 {
font-size : 1.2em;
}*/
textarea.itextarea{
border:solid #0000FF 1px;
border:solid #605D5D 1px;
width:90%;
margin-left:5%;
height:120px;
@ -1433,7 +1484,7 @@ td.workday ol {
}
input.inum {
text-align:right;
border:1px solid #0000FF;
border:1px solid #605D5D;
margin:2px
}
div.box {

View file

@ -2,7 +2,7 @@
BODY {
background-color: #FFF1ED;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
padding: 0px 0px 0px 0px ;
margin:0px;
color: #A52A2A;
@ -27,7 +27,7 @@ table.resultfooter tfoot {
}
table.sortable th, table.table_large th,table.result th {
font-weight:bold;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
border-bottom:1px solid #FF7F50;
border-top:0;
@ -38,7 +38,7 @@ table.sortable th, table.table_large th,table.result th {
}
h2 {
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
color: #E95353;
margin:1px;
padding:1px;
@ -164,7 +164,7 @@ div.lmenu {
div.lextmenu {
float:left;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
}
div.searchmenu {
@ -177,7 +177,7 @@ div.searchmenu {
div.recherche_form{
width:700px;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
border-style:outset;
border-width:1px;
@ -186,7 +186,7 @@ div.redcontent{
float:left;
padding-top:7px;
padding-left:8px;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
width:75%;
}
@ -194,7 +194,7 @@ div.content{
padding-top:0.0030%;
margin-top:0.0030%;
width:100%;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
font-size:14.4px;
font-size:0.90rem;
@ -204,12 +204,12 @@ div.content30{
float:left;
padding-top:7px;
width:35%;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
}
div.no span{
position:static;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
font-weight:bold;
color:#FF0000;
@ -224,7 +224,7 @@ table.document {
}
table.document th{
font-weight:bold;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
border-bottom:2px solid #FF7F50;
border-top:0px;
color:#6D3F2E;
@ -259,8 +259,9 @@ td.mtitle {
width:250px;
height :30px;
background-color: #FFD299;
border:1px solid #99B1DF;
border:0px;
border-radius:5px;
font-weight: bold;
}
td.msubtitle {
text-align:center;
@ -282,7 +283,7 @@ span.even {
}
tr.odd {
background-color: #FFCC99;
background-color: #FFE9D6;
}
tr.highlight {
font-weight: bold;
@ -407,7 +408,7 @@ a.one:hover {
a.detail
{
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
text-decoration: none;
display: block;
color: #DB6906;
@ -415,7 +416,7 @@ a.detail
a.detail:hover
{
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
color: #FFFFFF;
background-color: #FF6600;
text-decoration: none;
@ -428,7 +429,7 @@ li.menuv,ol.menuv {
padding:1rem 1rem;
}
div.redcontent a {
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
text-decoration: none;
display: block;
color: #A52A2A;
@ -436,7 +437,7 @@ div.redcontent a {
}
div.redcontent a:hover {
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
color: #FFFFFF;
background-color:#336699;
text-decoration: none;
@ -444,7 +445,7 @@ div.redcontent a:hover {
}
div.content a {
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
text-decoration: none;
display: block;
color: #EF5F2B;
@ -454,7 +455,7 @@ div.content a {
div.content a:hover {
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
color: #FFFFFF;
background-color: #C76626;
text-decoration: none;
@ -497,7 +498,7 @@ div.content a.mtitle:hover {
}
div.redcontent input.text {
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
font-weight:normal;
border-color:#336699;
border-style:solid;
@ -506,7 +507,7 @@ div.redcontent input.text {
color:#FF7F50;
}
div.content input.text {
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
font-weight:normal;
border-color:#336699;
border-style:solid;
@ -827,11 +828,18 @@ a#anchorbutton, .button, a.button,div.content a.button {
margin:1px 2px 1px 2px;
border-radius: 5px;
moz-border-radius:5px;
background-color: #EEBC8B;
border-radius: 2px;
border-width: 1px;
border-color: #6D3F2E;
background: #feccb1; /* Old browsers */
background: -moz-linear-gradient(top, #feccb1 0%, #f17432 50%, #ea5507 51%, #fb955e 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#feccb1), color-stop(50%,#f17432), color-stop(51%,#ea5507), color-stop(100%,#fb955e)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #feccb1 0%,#f17432 50%,#ea5507 51%,#fb955e 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #feccb1 0%,#f17432 50%,#ea5507 51%,#fb955e 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #feccb1 0%,#f17432 50%,#ea5507 51%,#fb955e 100%); /* IE10+ */
background: linear-gradient(to bottom, #feccb1 0%,#f17432 50%,#ea5507 51%,#fb955e 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#feccb1', endColorstr='#fb955e',GradientType=0 ); /* IE6-9 */
}
a#anchorbutton:hover, .button:hover,a.button:hover,div.content a.button:hover {
cursor:pointer;
@ -848,7 +856,7 @@ a#smallanchorbutton, .smallbutton, a.smallbutton,div.content a.smallbutton {
font-family: arial,verdana,sans-serif,helvetica;
font-size:12px;
font-size:0.75rem;
border-color: #6D3F2E;
border-color: orange;
border-style: solid;
border-width: 1px;
@ -861,8 +869,14 @@ a#smallanchorbutton, .smallbutton, a.smallbutton,div.content a.smallbutton {
margin:1px 2px 1px 2px;
border-radius: 2px;
moz-border-radius:2px;
background-color: #EEBC8B;
background: #feccb1; /* Old browsers */
background: -moz-linear-gradient(top, #feccb1 0%, #f17432 50%, #ea5507 51%, #fb955e 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#feccb1), color-stop(50%,#f17432), color-stop(51%,#ea5507), color-stop(100%,#fb955e)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #feccb1 0%,#f17432 50%,#ea5507 51%,#fb955e 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #feccb1 0%,#f17432 50%,#ea5507 51%,#fb955e 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #feccb1 0%,#f17432 50%,#ea5507 51%,#fb955e 100%); /* IE10+ */
background: linear-gradient(to bottom, #feccb1 0%,#f17432 50%,#ea5507 51%,#fb955e 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#feccb1', endColorstr='#fb955e',GradientType=0 ); /* IE6-9 */
}
a#smallanchorbutton:hover, .smallbutton:hover,a.smallbutton:hover,div.content a.smallbutton:hover {
cursor:pointer;
@ -940,7 +954,7 @@ box-shadow: 10px 10px 5px #888;
}
div.inner_box {
background-color: #FAF3EC;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
padding:2px;
margin:0px;
overflow:hidden;
@ -954,16 +968,16 @@ box-shadow: 10px 10px 5px #888;
font-size:14.4px;
font-size:0.90rem;
}
@media only screen and (min-width: 1024px) {
@media only screen and (min-width: 1281px) {
div.inner_box {
width: 35%;
width: 55%;
}
}
@media only screen and (max-width: 1024px) {
@media only screen and (max-width: 1280px) {
div.inner_box {
width: 90%;
left:5%;
margin-bottom: 5%;
width: 95%;
left:2%;
margin-bottom: 2%;
}
}
div.op_detail_title {
@ -1228,7 +1242,15 @@ h1.title {
text-transform: uppercase;
}
h2.title {
background-color: #FFB483;
background: -moz-linear-gradient(top, rgba(242,130,91,0.94) 0%, rgba(229,91,43,0.98) 62%, rgba(240,113,70,0.99) 73%, rgba(240,113,70,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(242,130,91,0.94)), color-stop(62%,rgba(229,91,43,0.98)), color-stop(73%,rgba(240,113,70,0.99)), color-stop(100%,rgba(240,113,70,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(242,130,91,0.94) 0%,rgba(229,91,43,0.98) 62%,rgba(240,113,70,0.99) 73%,rgba(240,113,70,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(242,130,91,0.94) 0%,rgba(229,91,43,0.98) 62%,rgba(240,113,70,0.99) 73%,rgba(240,113,70,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(242,130,91,0.94) 0%,rgba(229,91,43,0.98) 62%,rgba(240,113,70,0.99) 73%,rgba(240,113,70,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(242,130,91,0.94) 0%,rgba(229,91,43,0.98) 62%,rgba(240,113,70,0.99) 73%,rgba(240,113,70,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0f2825b', endColorstr='#f07146',GradientType=0 ); /* IE6-9 */
color:#FFFFFF;
text-align:center;
padding:0.24%;
@ -1315,7 +1337,7 @@ div#notice {
div#modele_op_div{
display: none;
background-color:#FFF1ED;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
padding:0px;
margin:0px;
overflow:hidden;
@ -1336,7 +1358,7 @@ div#notice {
div#modele_op_div{
display: none;
background-color:#FFF1ED;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
padding:0px;
margin:0px;
overflow:hidden;
@ -1362,15 +1384,13 @@ div.bxbutton
margin-right:0.48%;
}
div.inner_box tr.odd {
background: #FEFFE0;
color: br;
}
#modele_op_tab tr.odd {
background: #FFFFCC;
}
div#bookmark_div {
background-color:#FFF1ED;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
padding:2px;
margin:0px;
overflow:hidden;
@ -1384,7 +1404,7 @@ div#bookmark_div {
}
div#preference_div {
background-color:#FFF1ED;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
padding:0px;
margin:0px;
overflow:hidden;
@ -1432,7 +1452,7 @@ input.inum {
}
div.box {
background-color:#FFF1ED;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Liberation Sans", FreeSans, sans-serif,Arial, Helvetica;
margin-top:10px;
margin-left:3px;
margin-right:3px;

View file

@ -1,4 +1,5 @@
<?php
/*
* This file is part of NOALYSS.
*
@ -15,62 +16,172 @@
* You should have received a copy of the GNU General Public License
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
*/
// Copyright Author Dany De Bontridder danydb@aevalys.eu
/*!\file
*\brief this file let you debug and test the different functionnalities, there are 2 important things to do
* It is only a quick and dirty testing. You should use a tool as PHPUNIT for the unit testing
/* !\file
* \brief this file let you debug and test the different functionnalities, there are 2 important things to do
* It is only a quick and dirty testing. You should use a tool as PHPUNIT for the unit testing
*
* - first do not forget to create the authorized_debug file in the html folder
* - secund the test must adapted to this page : if you do a post (or get) from a test, you won't get any result
* if the $_REQUEST[test_select] is not set, so set it .
*/
* - first do not forget to create the authorized_debug file in the html folder
* - secund the test must adapted to this page : if you do a post (or get) from a test, you won't get any result
* if the $_REQUEST[test_select] is not set, so set it .
*/
include_once("../include/constant.php");
include_once("ac_common.php");
include_once("constant.php");
require_once('class_database.php');
require_once ('class_dossier.php');
require_once('class_html_input.php');
require_once ('function_javascript.php');
require_once 'class_user.php';
load_all_script();
global $cn,$g_user,$g_succeed,$g_failed;
if ( ! file_exists('authorized_debug') )
$gDossier=HtmlInput::default_value_get('gDossier', -1);
if ($gDossier==-1)
{
echo " Vous devez donner le dossier avec paramètre gDossier dans l'url, exemple http://localhost/noalyss/html/test.php?gDossier=25";
exit();
}
$gDossierLogInput=$gDossier;
global $cn, $g_user, $g_succeed, $g_failed;
$cn=new Database($_GET['gDossier']);
$g_parameter=new Own($cn);
$g_user=new User($cn);
if (!file_exists('authorized_debug'))
{
echo "Pour pouvoir utiliser ce fichier vous devez creer un fichier nomme authorized_debug
dans le repertoire html du server";
exit();
}
define('ALLOWED', 1);
html_page_start();
function start_test($p_array)
{
echo '<h1>'.$p_array['desc'].'</h1>';
require $p_array['file'];
call_user_func($p_array['function']);
}
// Test the connection
echo __FILE__.":".__LINE__;
print_r($_REQUEST);
if ( ! isset($_REQUEST['gDossier']))
{
echo "Vous avez oublie de specifier le gDossier ;)";
echo "L'url aurait du etre test.php?gDossier=xx";
exit();
}
$cn=new Database($_GET['gDossier']);
$a_route[]=array('desc'=>'test sur les menus par défauts','file'=>'class_default_menu.php','function'=>'Default_Menu::test_me');
$a_route[]=array('desc'=>'test sur Acc_Operations','file'=>'class_acc_operation.php','function'=>'Acc_Operation::test_me');
$a_route[]=array('desc'=>'test sur INVOICING','file'=>'../include/ext/invoicing/include/class_acc_ledger_sold_generate.php','function'=>'Acc_Ledger_Sold_Generate::test_me');
$a_route[]=array('desc'=>'test sur menu_ref','file'=>'class_menu_ref_sql.php','function'=>'Menu_Ref_SQL::test_me');
$called=HtmlInput::default_value_get("called", -1);
if ($called == -1 )
{
for ($i=0;$i< count($a_route);$i++)
/*
* Loading of all scenario
*/
$scan=scandir('../scenario/');
$maxscan=count($scan);
$cnt_scenario=0;$scenario=array();
for ($e_scan=0; $e_scan<$maxscan; $e_scan++)
{
start_test($a_route[$i]);
if (is_file('../scenario/'.$scan[$e_scan])&&strpos($scan[$e_scan], '.php')==true)
{
$description="";
$a_description=file('../scenario/'.$scan[$e_scan]);
$max_description=count($a_description);
for ($w=0; $w<$max_description; $w++)
{
if (strpos($a_description[$w], '@description:')==true)
{
$description=$a_description[$w];
$description=str_replace('//@description:', '', $description);
}
}
$scenario[$cnt_scenario]['file']=$scan[$e_scan];
$scenario[$cnt_scenario]['desc']=$description;
$cnt_scenario++;
}
}
}
else
$script=HtmlInput::default_value_get('script', '');
if ($script=="")
{
start_test($a_route[$called]);
}
echo "<h1>Test NOALYSS</h1>";
/*
* cherche pour fichier a include, s'il y en a alors les affiche
* avec une description
*/
echo '<table>';
$get='test.php?'.http_build_query(array('script'=>"all", 'gDossier'=>$gDossierLogInput, 'description'=>"Tous les scripts"));
echo '<tr>';
echo '<td>';
echo '<a href="'.$get.'" target="_blank">';
echo "Tous ";
echo '</a>';
echo '</td>';
echo '<td>Tous les scripts</td>';
echo '</tr>';
for ($e=0; $e<$cnt_scenario; $e++)
{
$get='test.php?'.http_build_query(array('script'=>$scenario[$e]['file'], 'gDossier'=>$gDossierLogInput, 'description'=>$scenario[$e]['desc']));
echo '<tr>';
echo '<td>';
echo $e;
echo '</td>';
echo '<td>';
echo '<a href="'.$get.'" target="_blank">';
echo $scenario[$e]['file'];
echo '</a>';
echo '</td>';
echo '<td>'.$scenario[$e]['desc'].'</td>';
echo '</tr>';
}
echo '</table>';
}
else if ($script=='all')
{
$nb=HtmlInput::default_value_get('nb_script', 0);
$start_mem=memory_get_usage();
$start_time=microtime(true);
$script=str_replace('../', '', $script);
echo '<h1>'.$nb." ".$scenario[$nb]['file']."</h1>";
echo '<h2> description = '.$scenario[$nb]["desc"].'</h2>';
include '../scenario/'.$scenario[$nb]['file'];
echo '</div>';
echo '</div>';
$end_mem=memory_get_usage();
$end_time=microtime(true);
echo "<p>start mem : ".$start_mem;
echo '</p>';
echo "<p>end mem : ".$end_mem;
echo '</p>';
echo "<p>Diff = ".($end_mem-$start_mem)." bytes ";
echo "<p>Diff = ".(round(($end_mem-$start_mem)/1024, 2))." kbytes ";
echo "<p>Diff = ".(round(($end_mem-$start_mem)/1024/1024, 2))." Mbytes ";
echo '</p>';
echo "<p>Execution script ".$script." time = ".(round(($end_time-$start_time), 4))." secondes</p>";
$nb++;
if ( $nb == $maxscan ) {
echo "Dernier test";
} else {
$get='test.php?'.http_build_query(array('script'=>"all", 'gDossier'=>$gDossierLogInput, 'nb_script'=>$nb));
echo '<a href="'.$get.'" target="_blank">';
echo $scenario[$nb]['file'];
}
}
else
{
$start_mem=memory_get_usage();
$start_time=microtime(true);
$script=str_replace('../', '', $script);
$description=HtmlInput::default_value_get("description", "aucune description");
echo '<h1>'.$script."</h1>";
echo '<p> description = '.$description.'<p>';
include '../scenario/'.$script;
$end_mem=memory_get_usage();
$end_time=microtime(true);
echo "<p>start mem : ".$start_mem;
echo '</p>';
echo "<p>end mem : ".$end_mem;
echo '</p>';
echo "<p>Diff = ".($end_mem-$start_mem)." bytes ";
echo "<p>Diff = ".(round(($end_mem-$start_mem)/1024, 2))." kbytes ";
echo "<p>Diff = ".(round(($end_mem-$start_mem)/1024/1024, 2))." Mbytes ";
echo '</p>';
echo "<p>Execution script ".$script." time = ".(round(($end_time-$start_time), 4))." secondes</p>";
}

View file

@ -983,7 +983,15 @@ function show_menu($module, $idx)
$array=compute_variable($file[0]['me_parameter']);
put_global($array);
}
/*
* Log the file we input to put in the folder test-noalyss for replaying it
*/
if (LOGINPUT) {
$file_loginput=fopen($_ENV['TMP'].'/scenario-'.$_SERVER['REQUEST_TIME'].'.php','a+');
fwrite($file_loginput, "include '".$file[0]['me_file']."';");
fwrite($file_loginput,"\n");
fclose($file_loginput);
}
// if file is not a plugin, include the file, otherwise
// include the plugin launcher
if ( $file[0]['me_type'] != 'PL')

View file

@ -52,7 +52,7 @@ if ( isset ($_POST['other_action_bt'])) {
case 'IMP':
//Impression
Follow_Up::action_print($cn,$_POST);
exit(0);
return;
break;
case 'ST':
// Etat
@ -124,7 +124,7 @@ if ($sub_action == "update")
echo '<div class="redcontent">';
echo '<h2 class="error">'._('Cette action ne vous est pas autorisée Contactez votre responsable').'</h2>';
echo '</div>';
exit();
return;
}
$sub_action = "detail";
put_global(array(array('key' => "sa", "value" => "detail")));
@ -195,7 +195,7 @@ if ($sub_action == 'detail')
else
{
echo h2info(_("Ce document n'est pas accessible"));
exit();
return;
}
@ -216,7 +216,7 @@ if ($sub_action == 'delete')
Follow_Up::show_action_list($cn, $base);
if (isset($act->ag_ref))
echo hb(_('Action ') . $act->ag_ref . _(' effacée'));
exit();
return;
}
//--------------------------------------------------------------------------------

View file

@ -142,7 +142,7 @@ if ( $low_action == 'detail')
{
/* Menu */
require_once('category_card.inc.php');
exit();
return;
}

View file

@ -0,0 +1,213 @@
<?php
/*
* 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
*/
// Copyright (2014) Author Dany De Bontridder <dany@alchimerys.be>
if (!defined('ALLOWED')) die('Appel direct ne sont pas permis');
/**
* @file
* @brief delete insert or update data from account_update (need right CFGPCMN)
* called from ajax_misc.php
* @param array
* @code
* 'op' => string 'account_update' (length=14)
'gDossier' => string '44' (length=2)
'action' => string 'update' (length=6)
'p_oldu' => string '4124' (length=4)
'p_valu' => string '4124' (length=4)
'p_libu' => string 'Impôt belge sur le résultat' (length=29)
'p_parentu' => string '412' (length=3)
'acc_delete' => string '0' (length=1)
'p_typeu' => string '0' (length=1)
* @endcode
*/
if ($g_user->check_module('CFGPCMN') == 0)
exit();
$var=array('action', 'p_oldu', 'p_valu', 'p_libu', 'p_parentu', 'acc_delete', 'p_typeu');
for ($i=0; $i<count($var); $i++)
{
$name=$var[$i];
if (!isset($$name))
throw new Exception($name." is not set");
}
$ctl='ok';
extract($_GET);
//----------------------------------------------------------------------
// Modification
//----------------------------------------------------------------------
$message=_("opération réussie");
if ($action=="update" &&$acc_delete==0)
{
// Check if the data are correct
try
{
$p_val=trim($p_valu);
$p_lib=trim($p_libu);
$p_parent=trim($p_parentu);
$old_line=trim($p_oldu);
$p_type=htmlentities($p_typeu);
$acc=new Acc_Account($cn);
$acc->set_parameter('libelle', $p_lib);
$acc->set_parameter('value', $p_val);
$acc->set_parameter('parent', $p_parent);
$acc->set_parameter('type', $p_type);
$acc->check();
}
catch (Exception $e)
{
$message=_("Valeurs invalides, pas de changement")." \n ".
$e->getMessage();
$ctl='nok';
}
if (strlen($p_val)!=0&&strlen($p_lib)!=0&&strlen($old_line)!=0)
{
if (strlen($p_val)==1)
{
$p_parent=0;
}
else
{
if (strlen($p_parent)==0)
{
$p_parent=substr($p_val, 0, strlen($p_val)-1);
}
}
/* Parent existe */
$Ret=$cn->exec_sql("select pcm_val from tmp_pcmn where pcm_val=$1", array($p_parent));
if (($p_parent!=0&&Database::num_row($Ret)==0)||$p_parent==$old_line)
{
$message=_("Ne peut pas modifier; aucun poste parent");
$ctl='nok';
}
else
{
try
{
$acc->update($old_line);
}
catch (Exception $e)
{
$message=$e->getMessage();
$ctl='nok';
}
}
}
else
{
$message=_('Update Valeurs invalides');
$ctl='nok';
}
}
//-----------------------------------------------------
/* Ajout d'une ligne */
if ($action=="new")
{
$p_val=trim($p_valu);
$p_parent=trim($p_parentu);
if (isset($p_valu)&&isset($p_libu))
{
$p_val=trim($p_valu);
if (strlen($p_valu)!=0&&strlen($p_libu)!=0)
{
if (strlen($p_valu)==1)
{
$p_parentu=0;
}
else
{
if (strlen(trim($p_parentu))==0&&
(string) $p_parentu!=(string) (int) $p_parentu)
{
$p_parentu=substr($p_val, 0, strlen($p_valu)-1);
}
}
/* Parent existe */
$Ret=$cn->exec_sql("select pcm_val from tmp_pcmn where pcm_val=$1", array($p_parentu));
if ($p_parent!=0&&Database::num_row($Ret)==0)
{
$message=_(" Ne peut pas modifier; aucun poste parent");
$ctl='nok';
}
else
{
// Check if the account already exists
$Count=$cn->get_value("select count(*) from tmp_pcmn where pcm_val=$1", array($p_val));
if ($Count!=0)
{
// Alert message account already exists
$message=_("Ce poste existe déjà ");
$ctl='nok';
}
else
{
$Ret=$cn->exec_sql("insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values ($1,$2,$3,$4)", array($p_val, $p_libu, $p_parent, $p_typeu));
}
}
}
else
{
$message=_("Valeurs invalides ");
$ctl='nok';
}
}
}
//-----------------------------------------------------
// Action == remove a line
if ($action=="update"&&$acc_delete==1)
{
/* Ligne a enfant */
$R=$cn->exec_sql("select pcm_val from tmp_pcmn where pcm_val_parent=$1", array($p_valu));
if (Database::num_row($R)!=0)
{
$message=_("Ne peut pas effacer le poste: d'autres postes en dépendent");
$ctl='nok';
}
else
{
/* Vérifier que le poste n'est pas utilisé qq part dans les journaux */
$Res=$cn->exec_sql("select * from jrnx where j_poste=$1", array($p_valu));
if (Database::num_row($Res)!=0)
{
$message=_("Ne peut pas effacer le poste: il est utilisé dans les journaux");
$ctl='nok';
}
else
{
$Del=$cn->exec_sql("delete from tmp_pcmn where pcm_val=$1", array($p_valu));
} // if Database::num_row
} // if Database::num_row
} //$action == del
$message=escape_xml($message);
if ( ! headers_sent()) { header('Content-type: text/xml; charset=UTF-8');} else { echo "HTML".unescape_xml($html);}
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
<ctl>$ctl</ctl>
<code>$message</code>
</data>
EOF;
?>

View file

@ -25,7 +25,11 @@
* @brief show the form to add a menu
*/
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
$type=$_GET['type'];
$type=HtmlInput::default_value_get('type','XX');
if ($type == 'XX') {
throw new Exception('invalid call');
return;
}
if ( $type=='me')
{
$ame_code_dep=$cn->make_array("

View file

@ -33,15 +33,21 @@ $profile=new Profile_sql($cn,$p_id);
$gDossier=Dossier::id();
$add_menu=HtmlInput::button("add", "Ajout Menu","onclick=\"add_menu({dossier:$gDossier,p_id:$p_id,type:'me'})\"");
$add_impression=HtmlInput::button("add", "Ajout Menu","onclick=\"add_menu({dossier:$gDossier,p_id:$p_id,type:'pr'})\"");
$call_tab=HtmlInput::default_value_post('tab', 'none');
$a_tab=array('profile_gen_div'=>'tabs','profile_menu_div'=>'tabs','profile_print_div'=>'tabs','profile_gestion_div'=>'tabs','profile_repo_div'=>'tabs');
$a_tab[$call_tab]='tabs_selected';
?>
<hr>
<h1>Profil <?php echo $profile->p_name?></h1>
<?php if ($p_id > 0 ) : ?>
<a href="javascript:void(0)" class="line" onclick="profile_show('profile_gen_div')"><?php echo _('Nom')?></a>&nbsp;
<a href="javascript:void(0)" class="line" onclick="profile_show('profile_menu_div')"><?php echo _('Détail Menus')?></a>&nbsp;
<a href="javascript:void(0)" class="line" onclick="profile_show('profile_print_div')"><?php echo _('Détail Impressions')?></a>&nbsp;
<a href="javascript:void(0)" class="line" style="" onclick="profile_show('profile_gestion_div')"><?php echo _('Action Gestion')?> </a>&nbsp;
<a href="javascript:void(0)" class="line" onclick="profile_show('profile_repo_div')"><?php echo _('Dépôts')?></a>&nbsp;
<ul class="tabs">
<li class="<?php echo $a_tab['profile_gen_div']?>"><a href="javascript:void(0)" onclick="unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_gen_div')"><?php echo _('Nom')?></a></li>
<li class="<?php echo $a_tab['profile_menu_div']?>"><a href="javascript:void(0)" onclick="unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_menu_div')"><?php echo _('Détail Menus')?></a></li>
<li class="<?php echo $a_tab['profile_print_div']?>"><a href="javascript:void(0)" onclick="unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_print_div')"><?php echo _('Détail Impressions')?></a></li>
<li class="<?php echo $a_tab['profile_gestion_div']?>"><a href="javascript:void(0)" style="" onclick="unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_gestion_div')"><?php echo _('Action Gestion')?> </a></li>
<li class="<?php echo $a_tab['profile_repo_div']?>"><a href="javascript:void(0)" onclick="unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_repo_div')"><?php echo _('Dépôts')?></a>&nbsp;
</ul>
<?php endif; ?>
<?php
@ -61,7 +67,7 @@ if ( $p_id > 0 )
}
else
{
echo '<div id="profile_gen_div">';
echo '<div class="myfieldset" id="profile_gen_div">';
}
echo '<form method="POST" onsubmit="return confirm (\'vous confirmez\')">';
echo HtmlInput::hidden('tab','profile_gen_div');
@ -81,30 +87,30 @@ if ($profile->p_id > 0)
echo '<form method="POST" onsubmit="return confirm (\''._("vous confirmez").'\')">';
echo 'Effacer ce profil';
echo _('Effacer ce profil');
echo HtmlInput::hidden('p_id', $profile->p_id);
echo HtmlInput::submit("delete_profil", _("Effacer ce profil"));
echo '</form>';
echo '</div>';
echo '<div style="display:none" id="profile_menu_div">';
echo '<div class="myfieldset" style="display:none" id="profile_menu_div">';
//Menu / Module /plugin in this profile
echo "<h2>Menu</h2>";
echo "<h1 class=\"legend\">"."Menu"."</h2>";
echo $add_menu;
$profile_menu = new Profile_Menu($cn);
$profile_menu->listing_profile($p_id);
echo '</div>';
echo '<div style="display:none" id="profile_print_div">';
echo "<h2>"._("Impression")."</h2>";
echo '<div class="myfieldset" style="display:none" id="profile_print_div">';
echo "<h1 class=\"legend\">"._("Impression")."</h1>";
$profile_menu->printing($p_id);
echo $add_impression;
echo '</div>';
echo '<div style="display:none" id="profile_gestion_div">';
echo "<h2>Action gestion accessible</h2>";
echo '<div class="myfieldset" style="display:none" id="profile_gestion_div">';
echo "<h1 class=\"legend\">Action gestion accessible</h1>";
$profile_menu->available_profile($p_id);
echo '</div>';
echo '<div style="display:none" id="profile_repo_div">';
echo "<h2>Dépôt de stock accessible</h2>";
echo '<div class="myfieldset" style="display:none" id="profile_repo_div">';
echo "<h1 class=\"legend\">"."Dépôt de stock accessible"."</h1>";
$profile_menu->available_repository($p_id);
echo '</div>';
if ( isset ($_POST['tab']))

View file

@ -41,6 +41,7 @@ if ($g_user->can_write_action($ag_id) == true || $g_user->can_read_action($ag_id
//$action=HtmlInput::array_to_string(array("gDossier","ag_id"), $_GET)."&ac=FOLLOW&sa=detail";
$action= "do.php?".http_build_query(array("gDossier"=>Dossier::id(),"ag_id"=>$ag_id,"ac"=>$menu->get('code_follow'),"sa"=>"detail"));
if ( $_GET['mod']== 1) :
$forbidden=_("Accès interdit : vous n'avez pas accès à cette information, contactez votre responsable");
?>
<a href="<?php echo $action?>" target="_blank" class="smallbutton"><?php echo _("Modifier")?> </a>
<?php
@ -51,7 +52,7 @@ else
echo h2(_("Ce document n'est pas accessible"),"error");
?>
<div style="margin:0px;padding:0px;background-color:red;text-align:center;">
<h2 class="error">Accès interdit : vous n'avez pas accès à cette information, contactez votre responsable</h2>;
<h2 class="error"><?php echo $forbidden ?></h2>;
</div>
<?php
}

View file

@ -41,7 +41,7 @@ if ( ! $m )
{
echo '<div style="float:left;width:60%;margin-left:20%"><h2 class="error">'._('Aucun plan analytique défini').'</h2></div>';
exit();
return;
}
@ -111,7 +111,7 @@ if ( isset($_GET['see']))
echo '<div class="redcontent" style="margin-left:12%">';
echo $a->html_table($current);
echo '</div>';
exit();
return;
}
if ( isset($_POST['save']))
{
@ -127,7 +127,7 @@ if ( isset($_POST['save']))
$a->save();
echo $a->show();
echo '</div>';
exit();
return;
}
if ( isset($_GET['new']))
@ -153,7 +153,7 @@ if ( isset($_GET['new']))
';
echo '</div>';
exit();
return;
}
?>

View file

@ -110,7 +110,7 @@ if ( isset($_REQUEST['sa']))
$new->description=$_POST['pa_description'];
$new->update();
$ret='<div class="redcontent">';
$ret.='<h2 class="info">Mis &agrave; jour</h2>';
$ret.='<h2 class="info">'._('Mis à jour').'</h2>';
$ret.="</div>";
}
// show the form for add a poste
@ -207,7 +207,7 @@ if ( isset($_REQUEST['sa']))
$class="odd";
$ret.="<TR class=\"$class\">";
$ret.="<TD >".
$ret.="<TD class=\"vert_mtitle\">".
'<a style="text-decoration:underline;" href="?ac='.$_REQUEST['ac'].'&sa=po_detail&po_id='.$obj->id.'&pa_id='.$_REQUEST['pa_id'].'&'.
$str_dossier.'">'.
h($obj->name).
@ -244,7 +244,7 @@ if ( empty($list) )
{
echo '<div class="lmenu">';
echo '<TABLE>';
echo '<TR><TD class="mtitle">';
echo '<TR><TD class="vert_mtitle">';
echo '<a class="mtitle" href="?ac='.$_REQUEST['ac'].'&sa=add_pa&'.$str_dossier.'">'._("Ajout d'un plan comptable").'</a>';
echo '</TD></TR>';
echo '</TABLE>';
@ -264,11 +264,11 @@ else
foreach ($list as $line)
{
echo '<TR>';
echo '<TD >'.
echo '<TD class="vert_mtitle">'.
'<a class="mtitle" href="?ac='.$_REQUEST['ac'].'&sa=pa_detail&pa_id='.$line['id'].'&'.$str_dossier.'">'.
h($line['name']).
'</TD>';
echo '<td class="mtitle">'.
echo '<td class="vert_mtitle">'.
'<a class="mtitle" href="?ac='.$_REQUEST['ac'].'&sa=list&pa_id='.$line['id'].'&'.$str_dossier.'">'.
"Activités".
"</a></td>";
@ -281,7 +281,7 @@ else
if ($obj->isAppend()==true )
{
echo '<TABLE>';
echo '<TR><TD class="mtitle">';
echo '<TR><TD class="vert_mtitle">';
echo '<a class="mtitle" href="?ac='.$_REQUEST['ac'].'&sa=add_pa&'.$str_dossier.'">'._("Ajout d'un plan comptable").'</a>';
echo '</TD></TR>';
echo '</TABLE>';

View file

@ -16,7 +16,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
// Auteur Dany De Bontridder danydb@aevalys.eu
// Copyright(2004) Dany De Bontridder danydb@aevalys.eu
/*! \file
* \brief Show the balance and let you print it or export to PDF
* file included by user_impress
@ -42,9 +42,9 @@ echo '<div class="content">';
/*
* Let you change the exercice
*/
echo '<fieldset class="noprint"><legend>'._('Choississez un autre exercice').'</legend>';;
echo '<fieldset class="noprint"><legend>'._('Exercice').'</legend>';;
echo '<form method="GET">';
echo 'Choississez un autre exercice :';
echo _('Choississez un autre exercice')." : ";
$ex=new Exercice($cn);
$wex=$ex->select('exercice',$exercice,' onchange="submit(this)"');
echo $wex->input();
@ -72,7 +72,7 @@ $input_from->cn=$cn;
$input_from->filter_year=true;
$input_from->user=$g_user;
echo 'Depuis :'.$input_from->input();
echo _('Depuis').' :'.$input_from->input();
// filter on the current year
$to=(isset($_GET["to_periode"]))?$_GET['to_periode']:"";
$input_to=new IPeriod("to_periode",$to,$exercice);
@ -81,13 +81,14 @@ $input_to->filter_year=true;
$input_to->type=ALL;
$input_to->cn=$cn;
$input_to->user=$g_user;
echo ' jusque :'.$input_to->input();
echo " "._('jusque').' :'.$input_to->input();
echo '<br>';
echo HtmlInput::button_action(_('Avancé'), " if (\$('balance_advanced_div').style.display=='none') { \$('balance_advanced_div').show();} else { \$('balance_advanced_div').hide();}");
//-------------------------------------------------
echo '<div id="balance_advanced_div" style="display:none">';
/* add a all ledger choice */
echo 'Filtre ';
echo _('Filtre')." ";
$rad=new IRadio();
$array_ledger=$g_user->get_ledger('ALL',3);
$array=get_array_column($array_ledger,'jrn_def_id');
@ -172,6 +173,7 @@ echo '<p>';
echo _("Avec la balance de l'année précédente")." ".$previous_exc->input();
echo '</p>';
echo '</div>';
echo '</div>';
echo HtmlInput::submit("view",_("Visualisation"));
echo '</form>';
echo '<hr>';

View file

@ -101,7 +101,7 @@ if ( $low_action == "list" )
$noop=(isset($_GET['noop']))?false:true;
echo '<div class="content">';
echo $supplier->Summary($search,'supplier',$sql,$noop);
echo $supplier->Summary($search,'bank',$sql,$noop);
echo '<br>';
@ -139,7 +139,7 @@ if ( $low_action == 'detail')
{
/* Menu */
require_once('category_card.inc.php');
exit();
return;
}

View file

@ -124,7 +124,7 @@ if ( $ss_action == 'cn')
echo '<span class="notice">';
echo _("Vous devez aller dans fiche et créer une catégorie pour les contacts");
echo '</span>';
exit();
return;
}
/* Add button */
$f_add_button=new IButton('add_card');

View file

@ -43,7 +43,7 @@ if ( isset($_POST['add_line']))
$fiche_def->InsertAttribut($_REQUEST['ad_id']);
echo $fiche_def->input_detail();
echo $retour;
exit();
return;
}
/*******************************************************************************************/
// Remove an attribut
@ -55,28 +55,35 @@ if ( isset ($_POST['remove_line']))
$fiche_def->RemoveAttribut($_REQUEST['chk_remove']);
echo $fiche_def->input_detail();
echo $retour;
exit();
return;
}
/*******************************************************************************************/
// Try to remove a category
/*******************************************************************************************/
if ( isset ($_POST['remove_cat']))
{
$fd_id=new Fiche_Def($cn,$_POST['fd_id']);
$remains=$fd_id->remove();
if ( $remains != 0 )
/* some card are not removed because it is used */
alert(_('Impossible d\'enlever cette catégorie, certaines fiches sont encore utilisées'."\n".
'Les fiches non utilisées ont cependant été effacées'));
$post_id=HtmlInput::default_value_post('fd_id', 0);
if ($post_id == 0 || $post_id >= 500000)
{
alert(_('Impossible d\'enlever cette catégorie'));
} else {
$fd_id=new Fiche_Def($cn,$post_id);
$remains=$fd_id->remove();
if ( $remains != 0 ) {
/* some card are not removed because it is used */
alert(_('Impossible d\'enlever cette catégorie, certaines fiches sont encore utilisées'."\n".
'Les fiches non utilisées ont cependant été effacées'));
}
}
}
/*******************************************************************************************/
// Change some basis info
/*******************************************************************************************/
if ( isset ($_POST['change_name']))
{
if (isset ($_REQUEST['label']) )
if (isset ($_REQUEST['label']) )
{
$fiche_def=new Fiche_Def($cn,$_REQUEST['fd_id']);
$fiche_def=new Fiche_Def($cn,$_REQUEST['fd_id']);
$fiche_def->SaveLabel($_REQUEST['label']);
if ( isset($_REQUEST['create']))
{
@ -87,12 +94,12 @@ if ( isset ($_POST['change_name']))
$fiche_def->set_autocreate(false);
}
$fiche_def->save_class_base($_REQUEST['class_base']);
$fiche_def->save_description($_REQUEST['fd_description']);
$fiche_def->save_description($_REQUEST['fd_description']);
}
echo $fiche_def->input_detail();
echo $retour;
exit();
return;
}
/*******************************************************************************************/
// Save order of the attributes
@ -103,7 +110,7 @@ if ( isset($_POST['save_line']))
$fiche_def->save_order($_POST);
echo $fiche_def->input_detail();
echo $retour;
exit();
return;
}
/*******************************************************************************************/
// Save a new category of card
@ -119,13 +126,13 @@ if ( isset($_POST['add_modele']))
{
echo $fiche_def->input_detail();
echo $retour;
exit();
return;
}
else
{
$fiche_def->input_new();
echo $retour;
exit();
return;
}
}
else

154
include/cfgplugin.inc.php Normal file
View file

@ -0,0 +1,154 @@
<?php
/*
* 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
*/
// Copyright (2014) Author Dany De Bontridder <dany@alchimerys.be>
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once 'class_extension.php';
/**
* @file
* @brief Automatic installation of plugins and activation
*/
global $cn;
/******************************************************************************
* Scan the plugin folder and file in each subfolder a property file and
* store them into an array a_plugin
******************************************************************************
*/
$dirscan=scandir('../include/ext/');
$nb_dirscan=count($dirscan);
$a_plugin=array();
for ($e=0;$e<$nb_dirscan;$e++) {
if ($dirscan[$e] != '.' && $dirscan[$e]!='..' && is_dir('../include/ext/'.$dirscan[$e])) {
$dir_plugin=$dirscan[$e];
if (file_exists('../include/ext/'.$dir_plugin.'/plugin.xml')) {
$extension=Extension::read_definition('../include/ext/'.$dir_plugin.'/plugin.xml');
for ($i=0;$i<count($extension);$i++)
{
$a_plugin[]=clone $extension[$i];
}
}
}
}
$nb_plugin=count($a_plugin);
/**
* available profiles
*/
$a_profile=$cn->get_array('select p_id,p_name from profile where p_id > 0 order by p_name');
$nb_profile=count($a_profile);
/******************************************************************************
* save
******************************************************************************/
if ( isset ($_POST['save_plugin'])){
// retrieve array of plugin
$plugin=HtmlInput::default_value_post('plugin', array());
// for each extension
for ($i=0;$i<$nb_plugin;$i++) {
$code=$a_plugin[$i]->me_code;
// for each profile
for ($e=0;$e<$nb_profile;$e++)
{
$profile=$a_profile[$e]['p_id'];
if ( isset ($plugin[$code][$profile])) {
// insert or update into db
$count = $cn->get_value("select count(*) from menu_ref where me_code=$1", array($code));
if ( $count == 0 ) {
$a_plugin[$i]->insert();
}
$a_plugin[$i]->insert_profile_menu($profile,'EXT');
} else {
// delete
$a_plugin[$i]->remove_from_profile_menu ($profile);
}
}
}
}
/******************************************************************************
* Display the Plugin and for each profile were it is installed or not
******************************************************************************/
?>
<div class="content">
<?php echo _('Nombre de plugins trouvés')." ".$nb_plugin; ?>
<form method="post">
<table class="result">
<tr>
<th><?php echo _('Extension')?></th>
<th><?php echo _('Menu')?></th>
<th><?php echo _('Description')?></th>
<th><?php echo _('Chemin')?></th>
<th><?php echo _('Disponible')?></th>
</tr>
<?php for ($e=0;$e<$nb_plugin;$e++) :
//-----
$a_profile=$cn->get_array("select distinct
p_id,p_name,
(select count(*) from profile_menu as a where a.p_id=b.p_id and me_code=$1 )+
(select count(*) from menu_ref as c join profile_menu as d on (d.me_code=c.me_code) where d.p_id=b.p_id and me_file=$2 ) as cnt
from profile as b
where p_id > 0
order by p_name",array($a_plugin[$e]->me_code,$a_plugin[$e]->me_file));
$class=($e%2==0)?'odd':'even';
?>
<tr class="<?php echo $class?>">
<td>
<?php echo h($a_plugin[$e]->me_code); ?>
</td>
<td>
<?php echo h($a_plugin[$e]->me_menu); ?>
</td>
<td>
<?php echo h($a_plugin[$e]->me_description); ?>
</td>
<td>
<?php echo h($a_plugin[$e]->me_file); ?>
</td>
<td>
<?php
for ($w=0;$w<$nb_profile;$w++) :
?>
<span style="display:block">
<?php
$a=new ICheckBox('plugin['.$a_plugin[$e]->me_code.']['.$a_profile[$w]['p_id'].']');
if ($a_profile[$w]['cnt']>0) $a->selected=true;
echo $a->input();
echo $a_profile[$w]['p_name'];
?>
</span>
<?php
endfor;
?>
</td>
</tr>
<?php endfor; ?>
</table>
<?php echo HtmlInput::submit('save_plugin', _('Valider')); ?>
</form>
</div>

View file

@ -63,7 +63,7 @@ class Acc_Account
return $this->$idx;
}
else
exit (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
throw new Exception (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
}
function set_parameter($p_string,$p_value)
@ -74,7 +74,7 @@ class Acc_Account
if ($this->check($idx,$p_value) == true ) $this->$idx=$p_value;
}
else
exit (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
throw new Exception (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
}

View file

@ -283,7 +283,7 @@ class Acc_Account_Ledger
return array('debit'=>$r['sum_deb'],
'credit'=>$r['sum_cred'],
'solde'=>abs($r['sum_deb']-$r['sum_cred']));
'solde'=>abs(bcsub($r['sum_deb'],$r['sum_cred'])));
}
/*!
* \brief isTva tell is a poste is used for VAT
@ -464,7 +464,6 @@ class Acc_Account_Ledger
break;
default:
throw new Exception(" Fonction HtmlTableHeader argument actiontarget invalid");
exit;
}
$hid=new IHidden();
@ -652,6 +651,7 @@ class Acc_Account_Ledger
$cn=new Database(dossier::id());
$a=new Acc_Account_Ledger($cn,550);
echo ' Journal 4 '.$a->belong_ledger(4);
return $a->belong_ledger(4);;
}
}

View file

@ -248,12 +248,13 @@ class Acc_Balance
}
/**
* set the $this->jrn to the cat
* @todo Cette function semble ne pas fonctionner correctement
*/
function filter_cat($p_array)
{
if ( empty($p_array) )
{
$bal->jn=null;
$this->jrn=null;
return;
}
/* get the list of jrn of the cat. */

View file

@ -86,10 +86,11 @@ class Acc_Bilan
$r.= '</TABLE>';
return $r;
}
/*!\brief check and warn if an accound has the wrong saldo
* \param $p_message legend of the fieldset
* \param $p_type type of the Acccount ACT actif, ACTINV...
* \param $p_type the saldo must debit or credit
/**
* @brief check and warn if an accound has the wrong saldo
* @param $p_message legend of the fieldset
* @param $p_type type of the Acccount ACT actif, ACTINV...
* @param $p_type the saldo must debit or credit
*/
private function warning($p_message,$p_type,$p_deb)
{
@ -111,7 +112,7 @@ class Acc_Bilan
$obj->id=$line['pcm_val'];
$solde=$obj->get_solde_detail($sql);
$solde_signed=$solde['debit']-$solde['credit'];
$solde_signed=bcsub($solde['debit'],$solde['credit']);
if (
($solde_signed < 0 && $p_deb == 'D' ) ||
@ -246,7 +247,7 @@ class Acc_Bilan
try
{
if ( $this->b_id=="")
throw new Exception("le formulaire id n'est pas donnee");
throw new Exception(_("le formulaire id n'est pas donnee"));
$sql="select b_name,b_file_template,b_file_form,lower(b_type) as b_type from bilan where".
" b_id = ".$this->b_id;
@ -262,7 +263,7 @@ class Acc_Bilan
catch(Exception $Ex)
{
echo $Ex->getMessage();
exit();
throw $Ex;
}
}
/*!\brief open the file of the form */
@ -273,7 +274,7 @@ class Acc_Bilan
if ( $form == false)
{
echo 'Cannot Open';
exit();
throw new Exception(_('Echec ouverture fichier '.$this->b_file_form));
}
return $form;
}
@ -285,7 +286,7 @@ class Acc_Bilan
if ( $templ == false)
{
echo 'Cannot Open';
exit();
throw new Exception(_('Echec ouverture fichier '.$this->b_file_template));
}
return $templ;
@ -346,7 +347,7 @@ class Acc_Bilan
if ( copy ($file_base,$work_file) == false )
{
echo _("erreur Ouverture fichier");
exit();
throw new Exception(_('Echec ouverture fichier '.$file_base));
}
ob_start();
/* unzip the document */
@ -367,8 +368,7 @@ class Acc_Bilan
if ( $p_file == false)
{
echo 'Cannot Open';
exit();
throw new Exception(_('Echec ouverture fichier '.$p_file));
}
$r="";
@ -603,16 +603,21 @@ class Acc_Bilan
break;
case 'odt':
case 'ods':
/* header("Pragma: public");
header("Pragma: public");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: must-revalidate");
if ( $this->b_type == 'odt' )
header('Content-type: application/vnd.oasis.opendocument.text');
{
header('Content-type: application/vnd.oasis.opendocument.text');
header('Content-Disposition: attachment;filename="'.$this->b_name.'.odt"',FALSE);
}
if ( $this->b_type == 'ods' )
header('Content-type: application/vnd.oasis.opendocument.spreadsheet');
header('Content-Disposition: attachment;filename="'.$this->b_name.'.odt"',FALSE);
{
header('Content-type: application/vnd.oasis.opendocument.spreadsheet');
header('Content-Disposition: attachment;filename="'.$this->b_name.'.ods"',FALSE);
}
header("Accept-Ranges: bytes");
*/
ob_start();
// save the file in a temp folder
// create a temp directory in /tmp to unpack file and to parse it
@ -627,8 +632,7 @@ class Acc_Bilan
$work_file=basename($file_base);
if ( copy ($file_base,$work_file) == false )
{
echo "Je ne peux pas ouvrir ce fichier ";
exit();
throw new Exception ( _("Ouverture fichier impossible"));
}
/*
* unzip the document
@ -653,22 +657,20 @@ class Acc_Bilan
$p_file=fopen($dirname.DIRECTORY_SEPARATOR.'content.xml','wb');
if ( $p_file == false )
{
exit ( _("erreur Ouverture fichier").' content.xml');
throw new Exception ( _("erreur Ouverture fichier").' content.xml');
}
$a=fwrite($p_file,$p_result);
if ( $a==false)
{
echo _("erreur écriture fichier").' content.xml';
exit();
throw new Exception ( _("erreur écriture fichier").' content.xml');
}
// repack
$zip = new Zip_Extended;
$res = $zip->open($this->b_name.".".$this->b_type, ZipArchive::CREATE);
if($res !== TRUE)
{
echo __FILE__.":".__LINE__."cannot recreate zip";
exit;
throw new Exception (__FILE__.":".__LINE__."cannot recreate zip");
}
$zip->add_recurse_folder($dirname.DIRECTORY_SEPARATOR);
$zip->close();
@ -678,7 +680,7 @@ class Acc_Bilan
$fdoc=fopen($dirname.DIRECTORY_SEPARATOR.$this->b_name.'.'.$this->b_type,'r');
if ( $fdoc == false )
{
exit (_("erreur Ouverture fichier"));
throw new Exception (_("erreur Ouverture fichier"));
}
$buffer=fread ($fdoc,filesize($dirname.DIRECTORY_SEPARATOR.$this->b_name.'.'.$this->b_type));
echo $buffer;

View file

@ -91,7 +91,7 @@ class Acc_Compute
return $this->$idx;
}
else
exit (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
throw new Exception (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
}
public function set_parameter($p_string,$p_value)
{
@ -101,7 +101,7 @@ class Acc_Compute
$this->$idx=$p_value;
}
else
exit (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
throw new Exception (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
}
@ -179,7 +179,8 @@ class Acc_Compute
}
/*!\brief verify that all the amount are positive or null
/**!
* \brief verify that all the amount are positive or null
* otherwise throw a exception and the sum of amount + vat must
* equal to the sum of all the amount of the current object
* so you have to copy the object before computing anything and pass

View file

@ -131,6 +131,8 @@ class Acc_Ledger extends jrn_def_sql
* - letter
* - reconciliation
* @bug the attached document is not deleted
* @bug Normally it should be named delete_operation, cause the id is the ledger_id
* (jrn_def_id) and not the operation id
*/
function delete()
{
@ -175,6 +177,8 @@ class Acc_Ledger extends jrn_def_sql
* @exception if date is invalid or other prob
* @note automatically create a reconciliation between operation
* You must set the ledger_id $this->jrn_def_id
* This function should be in operation or call an acc_operation object
*
*/
function reverse($p_date)
{
@ -596,7 +600,7 @@ class Acc_Ledger extends jrn_def_sql
* @param$sql is the sql stmt, normally created by build_search_sql
* @param$offset the offset
* @param$p_paid if we want to see info about payment
\code
@code
// Example
// Build the sql
list($sql,$where)=$Ledger->build_search_sql($_GET);
@ -614,12 +618,12 @@ class Acc_Ledger extends jrn_def_sql
// show nav bar
echo $bar;
\endcode
* \see build_search_sql
* \see display_search_form
* \see search_form
@endcode
* @see build_search_sql
* @see display_search_form
* @see search_form
* \return HTML string
* @return HTML string
*/
public function list_operation_to_reconcile($sql)
@ -851,8 +855,8 @@ class Acc_Ledger extends jrn_def_sql
$r.=th('Journal');
}
$r.='<th>' . $table->get_header(0) . '</th>';
$r.='<th>' . $table->get_header(1) . '</td>';
$r.='<th>' . $table->get_header(2) . '</th>';
if ($p_paid != 0 ) $r.='<th>' . $table->get_header(1) . '</td>';
if ($p_paid != 0 ) $r.='<th>' . $table->get_header(2) . '</th>';
$r.='<th>' . $table->get_header(3) . '</th>';
$r.='<th>' . $table->get_header(4) . '</th>';
$r.='<th>' . $table->get_header(6) . '</th>';
@ -898,12 +902,15 @@ class Acc_Ledger extends jrn_def_sql
$r.=$row['str_jr_date'];
$r.="</TD>";
// echeance
$r.="<TD>";
$r.=$row['str_jr_ech'];
$r.="</TD>";
$r.="<TD>";
$r.=$row['str_jr_date_paid'];
$r.="</TD>";
if ($p_paid != 0 )
{
$r.="<TD>";
$r.=$row['str_jr_ech'];
$r.="</TD>";
$r.="<TD>";
$r.=$row['str_jr_date_paid'];
$r.="</TD>";
}
// pj
$r.="<TD>";
@ -1552,7 +1559,7 @@ class Acc_Ledger extends jrn_def_sql
* @brief Show the form to encode your operation
* @param$p_array if you correct or use a predef operation (default = null)
* @param$p_readonly 1 for readonly 0 for writable (default 0)
*
*@exception if ledger not found
* \return a string containing the form
*/
@ -1588,7 +1595,7 @@ class Acc_Ledger extends jrn_def_sql
}
$wLedger = $this->select_ledger('ODS', 2);
if ($wLedger == null)
exit(_('Pas de journal disponible'));
throw new Exception(_('Pas de journal disponible'));
$wLedger->javascript = "onChange='update_name();update_predef(\"ods\",\"t\",\"".$_REQUEST['ac']."\");$add_js'";
$label = " Journal " . HtmlInput::infobulle(2);
@ -1815,6 +1822,13 @@ class Acc_Ledger extends jrn_def_sql
function verify($p_array)
{
if (is_array($p_array ) == false || empty($p_array))
throw new Exception ("Array empty");
/*
* Check needed value
*/
check_parameter($p_array,'p_jrn,e_date');
extract($p_array);
global $g_user;
$tot_cred = 0;
@ -2194,7 +2208,7 @@ class Acc_Ledger extends jrn_def_sql
function update_internal_code($p_internal)
{
if (!isset($this->grpt_id))
exit('ERREUR ' . __FILE__ . ":" . __LINE__);
throw new Exception(('ERREUR ' . __FILE__ . ":" . __LINE__));
$Res = $this->db->exec_sql("update jrn set jr_internal='" . $p_internal . "' where " .
" jr_grpt_id = " . $this->grpt_id);
}
@ -2349,7 +2363,7 @@ class Acc_Ledger extends jrn_def_sql
return true;
if ($g_parameter->MY_STRICT == 'N')
return false;
exit("Valeur invalid " . __FILE__ . ':' . __LINE__);
throw Exception("Valeur invalid " . __FILE__ . ':' . __LINE__);
}
/**
@ -2365,7 +2379,7 @@ class Acc_Ledger extends jrn_def_sql
return true;
if ($g_parameter->MY_CHECK_PERIODE == 'N')
return false;
exit("Valeur invalid " . __FILE__ . ':' . __LINE__);
throw Exception("Valeur invalid " . __FILE__ . ':' . __LINE__);
}
/**
@ -2930,7 +2944,6 @@ class Acc_Ledger extends jrn_def_sql
$button->javascript = "toggleHideShow('search_form','tfs');";
$r.=$button->input();
$r.='<hr>';
return $r;
}
@ -3201,7 +3214,7 @@ class Acc_Ledger extends jrn_def_sql
echo $op->show_button();
}
echo '</form>';
exit();
exit('test_me');
}
if (isset($_POST['post_id']))
@ -3212,7 +3225,7 @@ class Acc_Ledger extends jrn_def_sql
echo HtmlInput::button('add', 'Ajout d\'une ligne', 'onClick="quick_writing_add_row()"');
echo HtmlInput::submit('save_it', "Sauver");
echo '</form>';
exit();
exit('test_me');
}
if (isset($_POST['save_it']))
{
@ -3232,7 +3245,7 @@ class Acc_Ledger extends jrn_def_sql
echo HtmlInput::submit('post_id', 'Try me');
echo '</form>';
}
exit();
return;
}
// The GET at the end because automatically repost when you don't
// specify the url in the METHOD field
@ -3249,7 +3262,7 @@ class Acc_Ledger extends jrn_def_sql
echo $a->show_form($p_post);
echo HtmlInput::submit('post_id', 'Use predefined operation');
echo '</form>';
exit();
return;
}
}// if case = ''
///////////////////////////////////////////////////////////////////////////
@ -3346,7 +3359,7 @@ class Acc_Ledger extends jrn_def_sql
$r = "";
$r.='<TABLE>';
$r.='<TR><TD class="mtitle"><A class="mtitle" HREF="' . $base_url . '&sa=add">' . _('Création') . ' </A></TD></TR>';
$r.='<TR><TD class="vert_mtitle"><A class="mtitle" HREF="' . $base_url . '&sa=add">' . _('Création') . ' </A></TD></TR>';
$ret = $this->db->exec_sql("select distinct jrn_def_id,jrn_def_name,
jrn_def_class_deb,jrn_def_class_cred,jrn_def_type
from jrn_def order by jrn_def_name");
@ -3357,7 +3370,7 @@ class Acc_Ledger extends jrn_def_sql
{
$l_line = Database::fetch_array($ret, $i);
$url = $base_url . "&sa=detail&p_jrn=" . $l_line['jrn_def_id'];
$r.=sprintf('<TR><TD class="mtitle"><A class="mtitle" HREF="%s">%s</A></TD></TR>', $url, h($l_line['jrn_def_name']));
$r.=sprintf('<TR><TD class="vert_mtitle"><A class="mtitle" HREF="%s">%s</A></TD></TR>', $url, h($l_line['jrn_def_name']));
}
$r.= "</TABLE>";
return $r;

View file

@ -45,15 +45,25 @@ class Acc_Ledger_Fin extends Acc_Ledger
$this->type = 'FIN';
}
/**\brief verify that the data are correct before inserting or confirming
* \param an array (usually $_POST)
* \return String
* \throw Exception on error occurs
/**
* Verify that the data are correct before inserting or confirming
* @brief verify the data
* @param an array (usually $_POST)
* @return String
* @throw Exception on error occurs
*/
public function verify($p_array)
{
global $g_user;
if (is_array($p_array ) == false || empty($p_array))
throw new Exception ("Array empty");
/*
* Check needed value
*/
check_parameter($p_array,'p_jrn');
extract($p_array);
/* check for a double reload */
if (isset($mt) && $this->db->count_sql('select jr_mt from jrn where jr_mt=$1', array($mt)) != 0)
@ -282,8 +292,8 @@ class Acc_Ledger_Fin extends Acc_Ledger
{
if ($e->getCode() == 1)
{
echo "Aucune période ouverte";
exit();
throw Exception(_("Aucune période ouverte"));
}
}
$label = HtmlInput::infobulle(3);
@ -302,7 +312,7 @@ class Acc_Ledger_Fin extends Acc_Ledger
$add_js = 'onchange="'.$onchange.'"';
$wLedger = $this->select_ledger('FIN', 2);
if ($wLedger == null)
exit('Pas de journal disponible');
throw Exception(_('Pas de journal disponible'));
$wLedger->javascript = $add_js;
@ -950,12 +960,12 @@ class Acc_Ledger_Fin extends Acc_Ledger
}
catch (Exception $e)
{
echo '<span class="error">' .
$r = '<span class="error">' .
'Erreur dans l\'enregistrement ' .
__FILE__ . ':' . __LINE__ . ' ' .
$e->getMessage();
$this->db->rollback();
exit();
throw Exception($r);
}
$this->db->commit();
$r = "";
@ -1000,7 +1010,7 @@ class Acc_Ledger_Fin extends Acc_Ledger
$wLedger = $this->select_ledger('fin', 3);
if ($wLedger == null)
exit(_('Pas de journal disponible'));
throw Exception(_('Pas de journal disponible'));
if (count($wLedger->value) > 1)
{

View file

@ -51,7 +51,7 @@ class Acc_Ledger_Info
{
echo 'Appel incorrecte '.__FILE__.__LINE__;
var_dump($this);
exit();
throw Exception(_('appel incorrect'));
}
try
{
@ -75,7 +75,7 @@ class Acc_Ledger_Info
{
echo 'Appel incorrecte '.__FILE__.__LINE__;
var_dump($this);
exit();
throw Exception('appel incorrect');
}
try
{
@ -136,7 +136,7 @@ class Acc_Ledger_Info
if ( ! isset ($this->jr_id) )
{
echo "jr_id is not set ".__FILE__.__LINE__;
exit();
throw Exception('Error : jr_id not set');
}
$sql="select ji_id from jrn_info where jr_id=".$this->jr_id;

View file

@ -61,6 +61,14 @@ class Acc_Ledger_Purchase extends Acc_Ledger
public function verify($p_array)
{
global $g_parameter,$g_user;
if (is_array($p_array ) == false || empty($p_array))
throw new Exception ("Array empty");
/*
* Check needed value
*/
check_parameter($p_array,'p_jrn,e_date,e_client');
extract ($p_array);
/* check if we can write into this ledger */
if ( $g_user->check_jrn($p_jrn) != 'W' )
@ -900,7 +908,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
$e->getMessage().$e->getTraceAsString();
$this->db->rollback();
exit();
throw new Exception($e);
}
$this->db->commit();
return $internal;
@ -1006,8 +1014,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
{
if ($e->getCode() == 1 )
{
echo _("Aucune période ouverte");
exit();
throw Exception( _("Aucune période ouverte"));
}
}
@ -1032,7 +1039,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
$add_js.='update_row("sold_item");';
$wLedger=$this->select_ledger('ACH',2);
if ($wLedger == null) exit (_('Pas de journal disponible'));
if ($wLedger == null) throw Exception(_('Pas de journal disponible'));
$wLedger->javascript="onChange='update_predef(\"ach\",\"f\",\"".$_REQUEST['ac']."\");$add_js'";
$wLedger->table=1;
$f_jrn=$wLedger->input();
@ -1605,7 +1612,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
'<p>'._('Déduction acompte ').h($acompte).'</p>'.
_('Libellé :' ).h($e_comm_paiement).'</div>';*/
$r.='<h2>' . "Payé par " . ${'e_mp_qcode_' . $e_mp} .
" " . $fname->getName() . '</H2> ' . '<p class="decale">' . _('Déduction acompte ') . h($acompte) . '</p>' .
" " . $fname->getName() . '</h2> ' . '<p class="decale">' . _('Déduction acompte ') . h($acompte) . '</p>' .
_('Libellé :') . h($e_comm_paiement) ;
$r.='<br>';
$r.='<br>';
@ -1653,9 +1660,12 @@ class Acc_Ledger_Purchase extends Acc_Ledger
}
/*!\brief update the payment
/**
* @brief update the payment
* @todo to remove, obsolete
* @deprecated
*/
function show_unpaid()
function show_unpaid_deprecated()
{
// Show list of unpaid sell
// Date - date of payment - Customer - amount
@ -1666,9 +1676,9 @@ class Acc_Ledger_Purchase extends Acc_Ledger
$sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=".$this->id ;
list($max_line,$list)=ListJrn($this->db,$sql,null,$offset,1);
list($max_line,$list)=$this->list_operation($sql,null,$offset,1);
$sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=".$this->id ;
list($max_line2,$list2)=ListJrn($this->db,$sql,null,$offset,1);
list($max_line2,$list2)=$this->list_operation($sql,null,$offset,1);
// Get the max line
$m=($max_line2>$max_line)?$max_line2:$max_line;

View file

@ -61,7 +61,17 @@ class Acc_Ledger_Sold extends Acc_Ledger {
public function verify($p_array) {
global $g_parameter, $g_user;
if (is_array($p_array ) == false || empty($p_array))
throw new Exception ("Array empty");
extract($p_array);
/*
* Check needed value
*/
check_parameter($p_array,'p_jrn,e_date,e_client');
/* check for a double reload */
if (isset($mt) && $this->db->count_sql('select jr_mt from jrn where jr_mt=$1', array($mt)) != 0)
throw new Exception(_('Double Encodage'), 5);
@ -572,7 +582,7 @@ class Acc_Ledger_Sold extends Acc_Ledger {
echo $e->getTrace();
$this->db->rollback();
exit();
throw new Exception ($e);
}
$this->db->commit();
@ -861,7 +871,7 @@ class Acc_Ledger_Sold extends Acc_Ledger {
$fname = new Fiche($this->db);
$fname->get_by_qcode(${'e_mp_qcode_' . $e_mp});
$r.='<h2>' . "Payé par " . ${'e_mp_qcode_' . $e_mp} .
" " . $fname->getName() . '</H2> ' . '<p class="decale">' . _('Déduction acompte ') . h($acompte) . '</p>' .
" " . $fname->getName() . '</h2> ' . '<p class="decale">' . _('Déduction acompte ') . h($acompte) . '</p>' .
_('Libellé :') . h($e_comm_paiement) ;
$r.='<br>';
}
@ -918,7 +928,10 @@ class Acc_Ledger_Sold extends Acc_Ledger {
return $r;
}
/* !\brief update the payment
/**
* @brief update the payment
* @deprecated
*
*/
function show_unpaid() {
@ -1031,8 +1044,7 @@ class Acc_Ledger_Sold extends Acc_Ledger {
$l_form_per = $period->input();
} catch (Exception $e) {
if ($e->getCode() == 1) {
echo _("Aucune période ouverte");
exit();
throw Exception( _("Aucune période ouverte") );
}
}
$label = HtmlInput::infobulle(3);
@ -1052,7 +1064,7 @@ class Acc_Ledger_Sold extends Acc_Ledger {
$wLedger = $this->select_ledger('VEN', 2);
if ($wLedger == null)
exit(_('Pas de journal disponible'));
throw Exception(_('Pas de journal disponible'));
$wLedger->table = 1;
$wLedger->javascript = "onChange='update_predef(\"ven\",\"f\",\"".$_REQUEST['ac']."\");$add_js'";
$wLedger->label = " Journal " . HtmlInput::infobulle(2);

View file

@ -561,6 +561,18 @@ class Acc_Operation
array($this->jr_id,$p_type,$p_info));
}
}
function insert_related_action($p_string)
{
if ($p_string == "") return;
$a_action=explode(',',$p_string);
for ($i=0;$i<count($a_action);$i++)
{
$action = new Follow_Up($this->db,$a_action[$i]);
$action->operation=$this->jr_id;
$action->insert_operation();
}
}
static function test_me()
{
$_SESSION['g_user']='phpcompta';

View file

@ -84,7 +84,7 @@ class Acc_Parm_Code
$acc=new Acc_Account_Ledger($this->db,$this->p_value);
if ( $acc->load() == false )
{
alert("Ce compte n'existe pas");
alert(_("Ce compte n'existe pas"));
}
else
{

View file

@ -70,7 +70,6 @@ class Acc_Payment
else
{
throw new Exception("Attribut inexistant $p_string");
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
}
}
public function set_parameter($p_string,$p_value)
@ -81,7 +80,7 @@ class Acc_Payment
$this->$idx=$p_value;
}
else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}

View file

@ -517,7 +517,7 @@ j1.j_poste as poste
break;
default:
echo "Choix invalid";
exit();
throw new Exception("invalide");
}
return $array;
}

View file

@ -49,7 +49,7 @@ class Acc_Report_Row
return $this->$idx;
}
else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}
public function set_parameter($p_string,$p_value)
{
@ -59,7 +59,7 @@ class Acc_Report_Row
$this->$idx=$p_value;
}
else
exit (__FILE__.":".__LINE__."$p_string ".'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}

View file

@ -69,7 +69,7 @@ class Acc_Tva
$this->$idx=$p_value;
}
else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}

View file

@ -427,7 +427,7 @@ END) <> 0::numeric order by name,po_name",array($this->pa_id));
function export_csv()
{
bcscale(2);
if ( $this->check () != 0 ) {echo "DATE INVALIDE";exit();}
if ( $this->check () != 0 ) {throw new Exception (_("date invalide"));}
//---------------------------------------------------------------------------
// Card - Acc
//---------------------------------------------------------------------------

View file

@ -76,7 +76,7 @@ class Anc_Group_Operation
{
echo $e->getTrace();
$this->db->rollback();
exit();
throw new Exception($e);
}
$this->db->commit();
}
@ -244,7 +244,7 @@ class Anc_Group_Operation
__FILE__.':'.__LINE__.' '.
$ex->getMessage();
$p_cn->rollback();
exit();
throw new Exception("Erreur ".$ex->getMessage());
}
$this->db->commit();
@ -263,7 +263,7 @@ class Anc_Group_Operation
{
$b=new Anc_Group_Operation($cn);
$b->get_from_array($_POST);
exit();
return;
}
$a=new Anc_Group_Operation($cn);

View file

@ -32,7 +32,7 @@ require_once 'class_noalyss_sql.php';
class Anc_Key_SQL extends Noalyss_SQL
{
function __construct($cn, $p_id = -1)
function __construct($p_cn, $p_id = -1)
{
$this->table = "public.key_distribution";
$this->primary_key = "kd_id";
@ -52,9 +52,10 @@ class Anc_Key_SQL extends Noalyss_SQL
$this->default = array(
"kd_id" => "auto"
);
global $cn;
// PHPUNIT seems to have a problem with this line
//global $cn;
parent::__construct($cn, $p_id);
parent::__construct($p_cn, $p_id);
}
}
@ -63,7 +64,7 @@ class Anc_Key_SQL extends Noalyss_SQL
*/
class Anc_Key_Ledger_SQL extends Noalyss_SQL
{
function __construct($cn, $p_id = -1)
function __construct(&$p_cn, $p_id = -1)
{
$this->table = "public.key_distribution_ledger";
$this->primary_key = "kl_id";
@ -83,9 +84,10 @@ class Anc_Key_Ledger_SQL extends Noalyss_SQL
$this->default = array(
"kl_id" => "auto"
);
global $cn;
// PHPUNIT seems to have a problem with this line
//global $cn;
parent::__construct($cn, $p_id);
parent::__construct($p_cn, $p_id);
}
}
/**
@ -93,8 +95,9 @@ class Anc_Key_Ledger_SQL extends Noalyss_SQL
*/
class Anc_Key_Detail_SQL extends Noalyss_SQL
{
function __construct($cn, $p_id = -1)
function __construct(&$p_cn, $p_id = -1)
{
$this->table = "public.key_distribution_detail";
$this->primary_key = "ke_id";
@ -115,9 +118,11 @@ class Anc_Key_Detail_SQL extends Noalyss_SQL
$this->default = array(
"ke_id" => "auto"
);
global $cn;
// PHPUNIT seems to have a problem with this line
//global $cn;
parent::__construct($cn, $p_id);
parent::__construct($p_cn, $p_id);
}
}
/**
@ -125,7 +130,7 @@ class Anc_Key_Detail_SQL extends Noalyss_SQL
*/
class Anc_Key_Activity_SQL extends Noalyss_SQL
{
function __construct($cn, $p_id = -1)
function __construct($p_cn, $p_id = -1)
{
$this->table = "public.key_distribution_activity";
$this->primary_key = "ka_id";
@ -148,8 +153,7 @@ class Anc_Key_Activity_SQL extends Noalyss_SQL
$this->default = array(
"ka_id" => "auto"
);
global $cn;
parent::__construct($cn, $p_id);
parent::__construct($p_cn, $p_id);
}
}

View file

@ -59,7 +59,7 @@ class Anc_Operation
* @brief signed of the amount
*/
var $oa_positive;
var $in_div; /*< name of the div if any, default empty string*/
/*!\brief constructor
*
*/
@ -70,6 +70,7 @@ class Anc_Operation
$this->oa_jrnx_id_source=null;
$this->oa_positive='Y';
$this->has_data=0;
$this->in_div="";
}
/*!\brief add a row to the table operation_analytique
* \note if $this->oa_group if 0 then a sequence id will be computed for
@ -542,7 +543,7 @@ class Anc_Operation
$count=0;
$remain=$p_amount;
$ctrl_remain="remain".$table_id;
$ctrl_remain="remain".$this->in_div.$table_id;
for ( $i=0; $i < $nb_row;$i++)
{
@ -585,7 +586,7 @@ class Anc_Operation
}
$value=new INum();
$value->javascript='onchange="format_number(this);anc_refresh_remain(\''.$table_id.'\',\''.$p_seq.'\')"';
$value->javascript='onchange="format_number(this);anc_refresh_remain(\''.$this->in_div.$table_id.'\',\''.$p_seq.'\')"';
$value->name="val[".$p_seq."][]";
$value->size=6;
$value->value=(isset($val[$p_seq][$i]))?$val[$p_seq][$i]:$p_amount;
@ -602,7 +603,7 @@ class Anc_Operation
{
$style_remain=($remain==0)?'style="color:green"':' style="color:red"';
$result.=" Reste à imputer = ".
'<span class="remain" '.$style_remain.' id="'.$ctrl_remain.'">'.
'<span class="remain" '.$style_remain.' id="'.$ctrl_remain.'">'.
$remain.'</span>';
// add a button to add a row
$button=new IButton();
@ -615,9 +616,13 @@ class Anc_Operation
* Add a button for distribution key
*
*/
$ledger=HtmlInput::default_value_post("p_jrn", 0);
if ($ledger==0) {
$ledger=$this->db->get_value('select j_jrn_def from jrnx where j_id=$1',array($this->j_id));
}
$gDossier=Dossier::id();
$button_key=new IButton();
$button_key->javascript="anc_key_choice(".$gDossier.",'".$p_id."$table_id',$p_amount);";
$button_key->javascript="anc_key_choice(".$gDossier.",'".$p_id."$table_id',$p_amount,'".$ledger."');";
$button_key->name="js".$p_id.$p_seq;
$button_key->label=_("Clef");
$result .= $button_key->input();

View file

@ -93,7 +93,7 @@ class Anc_Print
echo '<div class="content">';
echo '<h2 class="error">'._('Aucun plan défini').'</h2>';
echo '</div>';
exit();
return;
}
$from=new IDate('from','from');

View file

@ -239,7 +239,7 @@ class Anc_Table extends Anc_Acc_Link
function export_csv()
{
bcscale(2);
if ( $this->check () != 0 ) {echo "DATE INVALIDE";exit();}
if ( $this->check () != 0 ) {throw new Exception ( "DATE INVALIDE");}
if ( $this->card_poste=='1')
{

View file

@ -61,7 +61,7 @@ class Anticipation
return $this->$idx;
}
else
exit (__FILE__.":".__LINE__."[$p_string]".'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}
public function set_parameter($p_string,$p_value)
{
@ -71,7 +71,7 @@ class Anticipation
$this->$idx=$p_value;
}
else
exit (__FILE__.":".__LINE__."[$p_string]".'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}

View file

@ -99,7 +99,7 @@ class Database
echo "Utilisateur : $noalyss_user <br>";
echo '</p>';
exit("Connection impossible : v&eacute;rifiez vos param&egrave;tres de base
die("Connection impossible : v&eacute;rifiez vos param&egrave;tres de base
de donn&eacute;es");
}
else
@ -264,8 +264,7 @@ class Database
$hf=fopen($script, 'r');
if ($hf==false)
{
echo 'Ne peut ouvrir '.$script;
exit();
throw new Exception ( 'Ne peut ouvrir '.$script);
}
$sql="";
$flag_function=false;
@ -327,7 +326,7 @@ class Database
if (!DEBUG)
ob_end_clean();
print "ERROR : $sql";
exit();
throw new Exception("ERROR : $sql");
}
$sql="";
$flag_function=false;
@ -619,7 +618,7 @@ class Database
break;
default:
echo_error(__FILE__." format_name invalid type ".$p_type, __LINE__);
exit();
throw new Exception(__FILE__." format_name invalid type ".$p_type. __LINE__);
}
return $sys_name;
}

View file

@ -146,8 +146,7 @@ class Document
$res = $zip->open($filename, ZipArchive::CREATE);
if($res !== TRUE)
{
echo __FILE__.":".__LINE__."cannot recreate zip";
exit;
throw new Exception ( __FILE__.":".__LINE__."cannot recreate zip");
}
$zip->add_recurse_folder($dirname.DIRECTORY_SEPARATOR);
$zip->close();
@ -197,8 +196,8 @@ class Document
{
if ( mkdir($temp_dir) == false )
{
echo "Ne peut pas créer le répertoire ".$temp_dir;
exit();
$msg=_("Ne peut pas créer le répertoire ".$temp_dir);
throw new Exception($msg);
}
}
// Compute output_name
@ -208,12 +207,14 @@ class Document
if ( $h === false )
{
echo __FILE__.":".__LINE__."cannot open $p_dir $p_file ";
exit();
$msg=_("Ne peut pas ouvrir $p_dir $p_file");
throw new Exception($msg);
}
if ( $output_file == false)
{
echo "ne peut pas ouvrir le fichier de sortie";
exit();
$msg=_("Ne peut pas ouvrir $p_dir $p_file");
echo $msg;
throw new Exception($msg);
}
// compute the regex
if ( $p_type=='OOo')

View file

@ -52,21 +52,31 @@ class Document_Export
*/
function concatenate_pdf()
{
$this->check_file();
$stmt = PDFTK . " " . $this->store_pdf . '/stamp_*pdf output ' . $this->store_pdf . '/result.pdf';
$status = 0;
echo $stmt;
passthru($stmt, $status);
if ($status <> 0)
try
{
$cnt_feedback = count($this->feedback);
$this->feedback[$cnt_feedback]['file'] = 'result.pdf';
$this->feedback[$cnt_feedback]['message'] = ' cannot concatenate PDF';
$this->feedback[$cnt_feedback]['error'] = $status;
$this->check_file();
$stmt=PDFTK." ".$this->store_pdf.'/stamp_*pdf output '.$this->store_pdf.'/result.pdf';
$status=0;
echo $stmt;
passthru($stmt, $status);
if ($status<>0)
{
$cnt_feedback=count($this->feedback);
$this->feedback[$cnt_feedback]['file']='result.pdf';
$this->feedback[$cnt_feedback]['message']=' cannot concatenate PDF';
$this->feedback[$cnt_feedback]['error']=$status;
}
}
catch (Exception $exc)
{
$cnt_feedback=count($this->feedback);
$this->feedback[$cnt_feedback]['file']=' ';
$this->feedback[$cnt_feedback]['message']=$exc->getMessage();
$this->feedback[$cnt_feedback]['error']=0;
}
}
function move_file($p_source, $target)
{
$this->check_file();

View file

@ -183,7 +183,7 @@ class Document_modele
{
echo "<H1>Error</H1>";
$this->cn->rollback();
exit;
throw new Exception("Erreur".__FILE__.__LINE__);
}
}
}
@ -348,7 +348,7 @@ class Document_modele
{
echo "<H1>Error</H1>";
$this->cn->rollback();
exit;
throw new Exception("Erreur".__FILE__.__LINE__);
}
}
}

View file

@ -181,7 +181,7 @@ class Dossier
return $this->$idx;
}
else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}
public function set_parameter($p_string,$p_value)
{
@ -191,7 +191,7 @@ class Dossier
$this->$idx=$p_value;
}
else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}

View file

@ -36,6 +36,9 @@
* - filepath (extension.ex_file)
*/
require_once 'class_menu_ref_sql.php';
include_once 'class_profile_sql.php';
require_once 'class_menu_ref.php';
require_once 'class_profile_menu.php';
class Extension extends Menu_Ref_sql
{
@ -92,10 +95,57 @@ class Extension extends Menu_Ref_sql
{
alert('Cette extension ne fonctionne pas sur cette version de NOALYSS'.
' Veuillez mettre votre programme a jour. Version minimum '.$i);
exit();
return;
}
Extension::check_plugin_version();
}
/**
* insert into the table profile_menu for the given profile id and depending
* of the module $p_module
* @global type $cn
* @param type $p_id profile.p_id
* @param type $p_module menu_ref.me_code
* @throws Exception 10 : profile absent 20 module absent
*/
function insert_profile_menu($p_id=1,$p_module='EXT')
{
global $cn;
//profile exists ?
$profile=new Profile_sql($cn,$p_id);
if ( $profile->p_id != $p_id) {
throw new Exception(_('Profil inexistant'),10);
}
// Menu exists
$module=new Menu_Ref($cn,$p_module);
if ($module->me_code==null) {
throw new Exception(_('Module inexistant'),20);
}
$profil_menu=new Profile_Menu($cn);
$profil_menu->me_code=$this->me_code;
$profil_menu->me_code_dep=$p_module;
$profil_menu->p_type_display='S';
$profil_menu->p_id=$p_id;
$cnt=$profil_menu->count(' where p_id=$1 and me_code = $2',array($p_id,$this->me_code));
if ( $cnt==0) {
$profil_menu->insert();
}
}
function remove_from_profile_menu($p_id)
{
global $cn;
$cn->exec_sql('delete from profile_menu where (me_code = $1 or me_code in (select me_code from menu_ref where me_file=$2)) and p_id=$3',array($this->me_code,$this->me_file,$p_id));
}
/**
* Insert a plugin into the given profile, by default always insert into EXT
*
* @param type $p_id profile.p_id
* @throws Exception if duplicate or error db
*/
function insert_plugin()
{
try
@ -109,11 +159,6 @@ class Extension extends Menu_Ref_sql
throw new Exception("Doublon");
$this->me_type = 'PL';
$this->insert();
/**
* insert into default profile
*/
$this->cn->exec_sql("insert into profile_menu(me_code,me_code_dep,p_type_display,p_id)
values ($1,$2,$3,$4)",array($this->me_code,'EXT','S',1));
$this->cn->commit();
}
catch (Exception $exc)
@ -181,5 +226,69 @@ class Extension extends Menu_Ref_sql
}
}
}
/**
* Check that the xml contains all the needed information to change them into
* a extension, the exception code is 0 if the element is optional
* @brief Check XML.
* @param SimpleXMLElement $xml
* @throws Exception
*/
function check_xml(SimpleXMLElement $xml)
{
try {
if ( !isset ($xml->plugin)) throw new Exception(_('Manque plugin'),1);
$nb_plugin=count($xml->plugin);
for ($i=0;$i<$nb_plugin;$i++)
{
if ( !isset ($xml->plugin[$i]->name)) throw new Exception(_('Manque nom'),1);
if ( !isset ($xml->plugin[$i]->description)) throw new Exception(_('Manque description'),0);
if ( !isset ($xml->plugin[$i]->code)) throw new Exception(_('Manque code'),1);
if ( !isset ($xml->plugin[$i]->author)) throw new Exception(_('Manque auteur'),0);
if ( !isset ($xml->plugin[$i]->root)) throw new Exception(_('Manque répertoire racine'),1);
if ( !isset ($xml->plugin[$i]->file)) throw new Exception(_('Manque fichier à inclure'),1);
}
} catch (Exception $ex) {
throw $ex;
}
}
/**
* Parse a XML file to complete an array of extension objects
* @brief Create extension from XML.
* @param type $p_file filename
* @return array of Extension
*/
static function read_definition($p_file)
{
global $cn;
$dom=new DomDocument('1.0');
$dom->load($p_file);
$xml=simplexml_import_dom($dom);
$nb_plugin=count($xml->plugin);
$a_extension=array();
for ($i=0;$i<$nb_plugin;$i++)
{
$extension=new Extension($cn);
try {
$extension->check_xml($xml);
} catch (Exception $ex) {
echo_warning($e->getMessage());
if ( $ex->getCode()==1) {
continue;
}
}
$extension->me_file=trim($xml->plugin[$i]->root).'/'.trim($xml->plugin[$i]->file);
$extension->me_code=trim($xml->plugin[$i]->code);
$extension->me_description=(isset ($xml->plugin[$i]->description))?$xml->plugin[$i]->description:"";
$extension->me_description_etendue=($xml->plugin[$i]->author)?$xml->plugin[$i]->author:"";
$extension->me_type='PL';
$extension->me_menu=$xml->plugin[$i]->name;
$extension->me_parameter='plugin_code='.trim($xml->plugin[$i]->code);
$a_extension[]=clone $extension;
}
return $a_extension;
}
}

View file

@ -59,7 +59,7 @@ class Fiche
/**
*@brief used with a usort function, to sort an array of Fiche on the name
*/
static function cmp_name($o1,$o2)
static function cmp_name(Fiche $o1,Fiche $o2)
{
return strcmp($o1->strAttribut(ATTR_DEF_NAME),$o2->strAttribut(ATTR_DEF_NAME));
}
@ -1464,7 +1464,7 @@ class Fiche
*/
function get_bk_balance($p_cond="")
{
if ( $this->id == 0 ) exit('fiche->id est nul');
if ( $this->id == 0 ) throw new Exception('fiche->id est nul');
$qcode=$this->strAttribut(ATTR_DEF_QUICKCODE);
if ( $p_cond != "") $p_cond=" and ".$p_cond;
@ -1512,7 +1512,7 @@ class Fiche
* \brief show the default screen
*
* \param $p_search (filter)
* \param $p_action show the action column
* \param $p_action used for specific action bank, red if credit < debit
* \param $p_sql SQL to filter the number of card must start with AND
* \param $p_amount true : only cards with at least one operation default : false
* \return: string to display
@ -1520,6 +1520,10 @@ class Fiche
function Summary($p_search="",$p_action="",$p_sql="",$p_amount=false)
{
global $g_user;
$bank=new Acc_Parm_Code($this->cn,'BANQUE');
$cash=new Acc_Parm_Code($this->cn,'CAISSE');
$cc=new Acc_Parm_Code($this->cn,'COMPTE_COURANT');
bcscale(4);
$str_dossier=dossier::get();
$p_search=sql_string($p_search);
@ -1560,13 +1564,14 @@ class Fiche
if ( $all_tiers == 0 || count($step_tiers)==0 ) return "";
$r="";
$r.="Filtre rapide ".HtmlInput::filter_table("tiers_tb", '0,1', 1);
$r.=_("Filtre rapide ").HtmlInput::filter_table("tiers_tb", '0,1', 1);
$r.=$bar;
$r.='<table id="tiers_tb" class="sortable" style="width:90%;margin-left:5%">
<TR >
<TH>'._('Quick Code').HtmlInput::infobulle(17).'</TH>
<th class="sorttable_sorted_reverse">'._('Nom').'<span id="sorttable_sortrevind">&nbsp;&blacktriangle;</span>'.'</th>
<TH>'._('Quick Code').HtmlInput::infobulle(17).'</TH>'.
'<th>'._('Poste comptable').'</th>'.
'<th class="sorttable_sorted_reverse">'._('Nom').'<span id="sorttable_sortrevind">&nbsp;&blacktriangle;</span>'.'</th>
<th>'._('Adresse').'</th>
<th style="text-align:right">'._('Total débit').'</th>
<th style="text-align:right">'._('Total crédit').'</th>
@ -1580,20 +1585,30 @@ class Fiche
foreach ($step_tiers as $tiers )
{
$i++;
$odd="";
$odd = ($i % 2 == 0 ) ? 'class="odd"': ' class="even" ';
/* Filter on the default year */
$amount=$tiers->get_solde_detail($filter_year);
/* Filter on the default year */
$amount=$tiers->get_solde_detail($filter_year);
/* skip the tiers without operation */
if ( $p_amount && $amount['debit']==0 && $amount['credit'] == 0 && $amount['solde'] == 0 ) continue;
$odd="";
$odd = ($i % 2 == 0 ) ? ' odd ': ' even ';
$accounting=$tiers->strAttribut(ATTR_DEF_ACCOUNT);
if ( $p_action == 'bank' && $amount['debit'] < $amount['credit'] ){
if ( strpos($accounting,$bank->p_value)===0 || strpos($accounting,$cash->p_value)===0 || strpos($accounting,$cc->p_value)===0){
//put in red if c>d
$odd.=" notice ";
}
}
$odd=' class="'.$odd.'"';
$r.="<TR $odd>";
$e=sprintf('<A HREF="%s?ac=%s&sb=detail&f_id=%d&%s&sc=sv" title="Détail" class="line"> ',
$script,$_REQUEST['ac'],$tiers->id,$str_dossier);
$r.="<TD> $e".$tiers->strAttribut(ATTR_DEF_QUICKCODE)."</A></TD>";
$r.="<TD> $e".$accounting."</TD>";
$r.="<TD>".h($tiers->strAttribut(ATTR_DEF_NAME))."</TD>";
$r.="<TD>".h($tiers->strAttribut(ATTR_DEF_ADRESS).
" ".$tiers->strAttribut(ATTR_DEF_CP).
@ -1611,10 +1626,12 @@ class Fiche
$r.="</TR>";
}
$r.="<tfoot>";
$r.="<tfoot >";
$solde=abs(bcsub($deb,$cred));
$side=($deb > $cred)?'Débit':'Crédit';
$r.=td("").td("").td("Totaux").td(nbm($deb),'class="num"').td(nbm($cred),'class="num"').td(" $side ".nbm($solde),'class="num"');
$r.='<tr class="highlight">';
$r.=td("").td("").td("").td("Totaux").td(nbm($deb),'class="num"').td(nbm($cred),'class="num"').td(" $side ".nbm($solde),'class="num"');
$r.='</tr>';
$r.="</tfoot>";
$r.="</TABLE>";
$r.=$bar;
@ -1625,7 +1642,7 @@ class Fiche
*/
function get_categorie()
{
if ( $this->id == 0 ) exit('class_fiche : f_id = 0 ');
if ( $this->id == 0 ) throw new Exception('class_fiche : f_id = 0 ');
$sql='select fd_id from fiche where f_id='.$this->id;
$R=$this->cn->get_value($sql);
if ( $R == "" )
@ -1654,8 +1671,7 @@ class Fiche
if (($this->quick_code==null || $this->quick_code == "" )
&& $this->id == 0 )
{
echo 'erreur ni quick_code ni f_id ne sont donnes';
exit();
throw new Exception( 'erreur ni quick_code ni f_id ne sont donnes');
}
//retrieve the quick_code

View file

@ -169,10 +169,10 @@ class Fiche_Def
$tab = new Sort_Table();
$url = HtmlInput::get_to_string(array('ac', 'gDossier'));
$tab->add("Nom de fiche", $url, "order by fd_label asc", "order by fd_label desc", "na", "nd");
$tab->add("Basé sur le poste comptable", $url, "order by fd_class_base asc", "order by fd_class_base desc", "pa", "pd");
$tab->add("Calcul automatique du poste comptable", $url, "order by fd_create_account asc", "order by fd_create_account desc", "ca", "cd");
$tab->add("Basé sur le modèle", $url, "order by frd_text asc", "order by frd_text desc", "ma", "md");
$tab->add(_("Nom de fiche"), $url, "order by fd_label asc", "order by fd_label desc", "na", "nd");
$tab->add(_("Basé sur le poste comptable"), $url, "order by fd_class_base asc", "order by fd_class_base desc", "pa", "pd");
$tab->add(_("Calcul automatique du poste comptable"), $url, "order by fd_create_account asc", "order by fd_create_account desc", "ca", "cd");
$tab->add(_("Basé sur le modèle"), $url, "order by frd_text asc", "order by frd_text desc", "ma", "md");
$order = (isset($_GET['ord'])) ? $tab->get_sql_order($_GET["ord"]) : $tab->get_sql_order("na");
@ -683,6 +683,9 @@ $order
*/
function remove()
{
if ( $this->id >= 500000 ) {
throw new Exception(_('Catégorie verrouillée '));
}
$remain=0;
/* get all the card */
$aFiche=fiche::get_fiche_def($this->cn,$this->id);
@ -761,7 +764,7 @@ $order
$this->get();
$this->GetAttribut();
$r.= '<H2 class="info">' . $this->id . " " . h($this->label) . '</H2>';
$r.='<fieldset><legend>Données générales</legend>';
$r.='<fieldset><legend>'._('Données générales').'</legend>';
/* show the values label class_base and create account */
$r.='<form method="post">';
@ -774,7 +777,7 @@ $order
$r.='</form>';
$r.='</fieldset>';
/* attributes */
$r.='<fieldset><legend>Détails</legend>';
$r.='<fieldset><legend>'._('Détails').'</legend>';
$r.= '<FORM method="POST">';
$r.=dossier::hidden();
@ -802,7 +805,7 @@ $order
echo HtmlInput::hidden("p_action","fiche");
echo dossier::hidden();
echo $this->input(); // CreateCategory($cn,$search);
echo HtmlInput::submit("add_modele" ,"Sauve");
echo HtmlInput::submit("add_modele" ,_("Sauve"));
echo '</FORM>';
}

View file

@ -95,9 +95,9 @@ class Fiche_Def_Ref
$h=new IHidden();
$r.='<li>Id :'.$h->input('frd_id',$this->frd_id).$this->frd_id."</li>";
$w=new IText();
$r.='<li>Commentaire :'.$w->input('frd_text',$this->frd_text)."</li>";
$r.='<li>'._('Commentaire ').' :'.$w->input('frd_text',$this->frd_text)."</li>";
$t=new IText();
$r.='<li>Poste de base:'.$t->input('frd_class_base',$this->frd_class_base)."</li>";
$r.='<li>'._('Poste de base').':'.$t->input('frd_class_base',$this->frd_class_base)."</li>";
return $r;
}

View file

@ -158,7 +158,7 @@ class Follow_Up
}
else
{
exit('class_action' . __LINE__ . 'Follow_Up::Display error unknown parameter' . $p_view);
throw new Exception('class_action' . __LINE__ . 'Follow_Up::Display error unknown parameter' . $p_view);
}
// Compute the widget
// Date
@ -1448,7 +1448,7 @@ class Follow_Up
where true $p_search order by ag.ag_timestamp,ag.ag_id";
$ret=$this->db->exec_sql($sql);
if ( Database::num_row($ret)==0)exit();
if ( Database::num_row($ret)==0) return;
$this->db->query_to_csv($ret,array(
array("title"=>"doc id","type"=>"string"),
array("title"=>"date","type"=>"date"),
@ -1469,7 +1469,7 @@ class Follow_Up
{
global $cn;
$array=$cn->get_array("
select ag_id,ag_ref,
select ag_id,ag_ref,ago_id,
ag_title
from action_gestion
join action_gestion_operation using(ag_id)
@ -1531,9 +1531,7 @@ class Follow_Up
$a_tag[$e]['t_id']);
echo '<span style="border:1px solid black;margin-right:5px;">';
echo $a_tag[$e]['t_tag'];
echo '</span>';
echo '<span style="background-color:red;text-align:center;border-top:1px solid black; border-right:1px solid black;border-bottom:1px solid black;">';
echo HtmlInput::anchor("X", "javascript:void(0)", $js_remove);
echo HtmlInput::anchor( " &#x2D5D; ", "javascript:void(0)", $js_remove, ' class="smallbutton " style="padding:0px;display:inline" ');
echo '</span>';
echo '&nbsp;';
echo '&nbsp;';

View file

@ -64,7 +64,7 @@ class Follow_Up_Detail
return $this->$idx;
}
else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}
public function set_parameter($p_string,$p_value)
{
@ -74,7 +74,7 @@ class Follow_Up_Detail
$this->$idx=$p_value;
}
else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}

View file

@ -46,7 +46,7 @@ class Forecast
return $this->$idx;
}
else
exit (__FILE__.":".__LINE__."[$p_string]".'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}
public function set_parameter($p_string,$p_value)
{
@ -56,7 +56,7 @@ class Forecast
$this->$idx=$p_value;
}
else
exit (__FILE__.":".__LINE__."[$p_string]".'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}
public function get_info()
{

View file

@ -52,7 +52,7 @@ class Forecast_Cat
return $this->$idx;
}
else
exit (__FILE__.":".__LINE__."[$p_string]".'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}
public function set_parameter($p_string,$p_value)
{
@ -62,7 +62,7 @@ class Forecast_Cat
$this->$idx=$p_value;
}
else
exit (__FILE__.":".__LINE__."[$p_string]".'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}

View file

@ -54,7 +54,7 @@ class Forecast_Item
return $this->$idx;
}
else
exit (__FILE__.":".__LINE__."[$p_string]".'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}
public function set_parameter($p_string,$p_value)
{
@ -64,7 +64,7 @@ class Forecast_Item
$this->$idx=$p_value;
}
else
exit (__FILE__.":".__LINE__."[$p_string]".'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}

View file

@ -52,7 +52,7 @@ class gestion_purchase extends gestion_table
function get_list()
{
if ($this->qp_internal=="")
exit (__FILE__.__LINE__." qs_internal est vide");
throw new Exception(__FILE__.__LINE__." qs_internal est vide");
$sql="select qp_id,
qp_internal,
qp_fiche,

View file

@ -48,7 +48,7 @@ class gestion_sold extends gestion_table
function get_list()
{
if ($this->qs_internal=="")
exit (__FILE__.__LINE__." qs_internal est vide");
throw new Exception(__FILE__.__LINE__." qs_internal est vide");
$sql="select qs_id,
qs_internal,
qs_fiche,

View file

@ -700,10 +700,18 @@ class HtmlInput
}
return $_REQUEST[$ind];
}
static function title_box($name,$div,$mod="close")
/**
* Title for boxes
* @param type $name Title
* @param type $div element id
* @param type $mod hide or close
* @param type $p_js if $mod is hide then you can add a javascript
* @return type
*/
static function title_box($name,$div,$mod="close",$p_js="")
{
if ($mod=='close') $r=HtmlInput::anchor_close($div);
if ($mod=='hide') $r=HtmlInput::anchor_hide(_('Fermer'),"$('$div').hide()");
if ($mod=='hide') $r=HtmlInput::anchor_hide(_('Fermer'),"$('$div').hide();$p_js");
if ( $mod == 'none') $r="";
$r.=h2($name,' class="title" ');
return $r;
@ -716,8 +724,9 @@ class HtmlInput
* @param string $p_text text of the anchor
* @param string $p_url url
* @param string $p_js javascript
* @param string $p_style is the visuable effect (class, style...)
*/
static function anchor($p_text,$p_url="",$p_js="")
static function anchor($p_text,$p_url="",$p_js="",$p_style=' class="line" ')
{
if ($p_js != "")
{
@ -725,8 +734,8 @@ class HtmlInput
}
$str=sprintf('<a class="line" href="%s" %s>%s</a>',
$p_url,$p_js,$p_text);
$str=sprintf('<a %s href="%s" %s>%s</a>',
$p_style,$p_url,$p_js,$p_text);
return $str;
}
/**
@ -778,6 +787,7 @@ class HtmlInput
<input type=\"button\" class=\"smallbutton\" onclick=\"$('lk_".$p_table_id."').value='';filter_table($('lk_".$p_table_id."'), '$p_table_id','$p_col',$start_row );\" value=\"X\">
</span>
";
$r.=' <span class="notice" id="info_'.$p_table_id.'"></span>';
return $r;
}
@ -859,5 +869,16 @@ class HtmlInput
return $r;
}
/**
*
* @param type $p_operation_jr_id action_gestion_operation.ago_id
*/
static function button_action_remove_operation($p_operation)
{
$rmOperation=sprintf("javascript:if ( confirm('"._('Voulez-vous effacer cette relation ')."')==true ) {remove_operation('%s','%s');}",
dossier::id(),
$p_operation);
$js= '<a class="smallbutton" style="padding:0px;display:inline" style="color:orange" id="acop'.$p_operation.'" href="'.$rmOperation.'">'."&#x2D5D;".'</a>';
return $js;
}
}

View file

@ -48,9 +48,9 @@ class IConcerned extends HtmlInput
$r=sprintf("
<INPUT TYPE=\"button\" onClick=\"search_reconcile(".dossier::id().",'%s','%s','%s')\" value=\"?\">
<INPUT TYPE=\"button\" class=\"smallbutton\" onClick=\"search_reconcile(".dossier::id().",'%s','%s','%s')\" value=\"?\">
<INPUT TYPE=\"text\" style=\"color:black;background:lightyellow;border:solid 1px grey;\" NAME=\"%s\" ID=\"%s\" VALUE=\"%s\" SIZE=\"8\" readonly>
<INPUT TYPE=\"button\" onClick=\"$('%s').value=''\" value=\"X\">
<INPUT class=\"smallbutton\" TYPE=\"button\" onClick=\"$('%s').value=''\" value=\"X\">
",
$this->name,

View file

@ -39,6 +39,7 @@ class IRadio extends HtmlInput
$check = ( $this->selected == true || $this->selected == 't' ) ? "checked" : "unchecked";
$r = '<input type="RADIO" name="' . $this->name . '"';
$r.=" VALUE=\"$this->value\"";
$r.=' class="css-checkbox" ';
$r.=($this->javascript != '') ? 'onclick="' . $this->javascript . '"' : '';
$r.=" $check > ";
return $r;

View file

@ -46,9 +46,9 @@ class IRelated_Action extends HtmlInput
$r=sprintf("
<INPUT TYPE=\"button\" onClick=\"search_action(".dossier::id().",'%s')\" value=\"?\">
<INPUT class=\"smallbutton\" TYPE=\"button\" onClick=\"search_action(".dossier::id().",'%s')\" value=\"?\">
<INPUT TYPE=\"text\" style=\"color:black;background:lightyellow;border:solid 1px grey;\" NAME=\"%s\" ID=\"%s\" VALUE=\"%s\" SIZE=\"8\" readonly>
<INPUT TYPE=\"button\" onClick=\"$('%s').value=''\" value=\"X\">
<INPUT class=\"smallbutton\" TYPE=\"button\" onClick=\"$('%s').value=''\" value=\"X\">
",
$this->id,

View file

@ -44,6 +44,7 @@ class Menu_Ref_SQL extends Noalyss_SQL
, "me_parameter" => "me_parameter"
, "me_javascript" => "me_javascript"
, "me_type" => "me_type"
, 'me_description_etendue'=>'me_description_etendue'
);
protected $type=array(
"me_code" => "text"
@ -54,26 +55,12 @@ class Menu_Ref_SQL extends Noalyss_SQL
, "me_parameter" => "text"
, "me_javascript" => "text"
, "me_type" => "text"
,"me_description_etendue"=>"text"
);
function __construct($p_id=null)
function __construct(Database &$p_cn,$p_id=-1)
{
global $cn;
parent::__construct($cn,$p_id);
}
static function test_me()
{
$a=new Menu_Ref_sql();
$a->setp('me_code','test');
$a->insert();
$a->setp('me_menu','update');
$a->update();
$a->delete();
$b=$a->collect_objects(' where me_type = $1',array('PR'));
echo "size ".count($b);
$a->verify();
$a->setp('me_code','ACH');
$a->load();
echo $a->get_info();
parent::__construct($p_cn,$p_id);
}
}
?>

View file

@ -22,8 +22,7 @@
/**
* @file
* @brief
* this wrapper is used to created easily a wrapper to a table
* @brief this wrapper is used to created easily a wrapper to a table
*
* @class
* Match a table into an object, you need to add the code for each table
@ -70,7 +69,7 @@
* @endcode
*
*/
class Noalyss_SQL
abstract class Noalyss_SQL
{
function __construct(&$p_cn, $p_id=-1)
@ -86,13 +85,17 @@ class Noalyss_SQL
}
$this->$pk=$p_id;
/* load it */
$this->load();
if ($p_id != -1 )$this->load();
}
/**
* Insert or update : if the row already exists, update otherwise insert
*/
public function save()
{
$pk=$this->primary_key;
if ($this->$pk==-1)
$count=$this->cn->get_value('select count(*) from '.$this->table.' where '.$this->primary_key.'=$1',array($this->$pk));
if ($count == 0)
$this->insert();
else
$this->update();
@ -100,8 +103,7 @@ class Noalyss_SQL
public function getp($p_string)
{
if (array_key_exists($p_string, $this->name))
{
if (array_key_exists($p_string, $this->name)) {
$idx=$this->name[$p_string];
return $this->$idx;
}
@ -111,12 +113,10 @@ class Noalyss_SQL
public function setp($p_string, $p_value)
{
if (array_key_exists($p_string, $this->name))
{
if (array_key_exists($p_string, $this->name)) {
$idx=$this->name[$p_string];
$this->$idx=$p_value;
}
else
} else
throw new Exception(__FILE__.":".__LINE__.$p_string.'Erreur attribut inexistant '.$p_string);
}
@ -171,8 +171,7 @@ class Noalyss_SQL
$idx=1;
$array=array();
$set=" set ";
foreach ($this->name as $key=> $value)
{
foreach ($this->name as $key=> $value) {
if (isset($this->default[$value])&&$this->default[$value]=="auto")
continue;
switch ($this->type[$value])
@ -198,11 +197,7 @@ class Noalyss_SQL
{
$sql=" select ";
$sep="";
$par="";
foreach ($this->name as $key)
{
foreach ($this->name as $key) {
switch ($this->type[$key])
{
case "date":
@ -217,7 +212,7 @@ class Noalyss_SQL
$sql.=" from ".$this->table;
$sql.=" where ".$this->primary_key." = $1";
$result=$this->cn->get_array($sql,array ($this->$pk));
if ($this->cn->count()==0)
{
@ -235,7 +230,10 @@ class Noalyss_SQL
{
return var_export($this, true);
}
/**
* @todo ajout vérification type (date, text ou numeric)
* @return int
*/
public function verify()
{
foreach ($this->name as $key)
@ -315,18 +313,21 @@ class Noalyss_SQL
{
if ($p_array != null && ! is_array($p_array) )
{
throw new Exception("Erreur : exec_sql attend un array");
throw new Exception(_("Erreur : exec_sql attend un array"));
}
$ret=$this->seek($cond, $p_array);
$max=Database::num_row($ret);
$a_return=array();
for ($i=0; $i<$max; $i++)
{
$a_return[$i]=$this->next($ret, $i);
$a_return[$i]=clone $this->next($ret, $i);
}
return $a_return;
}
public function count($p_where="",$p_array=null) {
$count=$this->cn->get_value("select count(*) from $this->table".$p_where,$p_array);
return $count;
}
}
?>

View file

@ -45,8 +45,10 @@ class Pre_Op_Advanced extends Pre_operation_detail
{
if ( ! isset ($_POST['poste'.$i]) && ! isset ($_POST['qc_'.$i]))
continue;
$this->{'poste'.$i}=(trim($_POST['qc_'.$i]) != "" )?$_POST['qc_'.$i]:$_POST['poste'.$i];
$this->{'isqc'.$i}=(trim($_POST['qc_'.$i]) != "")?'t':'f';
if (isset ($this->{'poste'.$i}))
$this->{'poste'.$i}=(trim($_POST['qc_'.$i]) != "" )?$_POST['qc_'.$i]:$_POST['poste'.$i];
if ( isset($this->{'qc'.$i}))
$this->{'isqc'.$i}=(trim($_POST['qc_'.$i]) != "")?'t':'f';
$this->{"amount".$i}=$_POST['amount'.$i];
$this->{"ck".$i}=(isset($_POST['ck'.$i]))?'t':'f';

View file

@ -305,8 +305,8 @@ class Pre_operation_detail
{
if ( ! isset ($this->valid[$p_param] ) )
{
echo(" le parametre $p_param n'existe pas ".__FILE__.':'.__LINE__);
exit();
$msg=_(" le parametre $p_param n'existe pas ".__FILE__.':'.__LINE__);
throw new Exception($msg);
}
$attr=$this->valid[$p_param];
$this->$attr=$value;
@ -316,8 +316,8 @@ class Pre_operation_detail
if ( ! isset ($this->valid[$p_param] ) )
{
echo(" le parametre $p_param n'existe pas ".__FILE__.':'.__LINE__);
exit();
$msg=_(" le parametre $p_param n'existe pas ".__FILE__.':'.__LINE__);
throw new Exception($msg);
}
$attr=$this->valid[$p_param];
return $this->$attr;

View file

@ -19,18 +19,18 @@
// Copyright Author Dany De Bontridder danydb@aevalys.eu
require_once 'class_profile_menu_sql.php';
/**
* Manage the menu of a profile
*
* @author dany
*/
class Profile_Menu
class Profile_Menu extends Profile_Menu_sql
{
function __construct($p_cn)
function __construct($p_cn,$p_id=-1)
{
$this->cn = $p_cn;
parent::__construct($p_cn, $p_id);
}
/**
* Display the content of a profile

View file

@ -1,4 +1,5 @@
<?php
/*
* This file is part of NOALYSS.
*
@ -18,269 +19,56 @@
*/
// Copyright Author Dany De Bontridder danydb@aevalys.eu
/**
*@file
*@brief Manage the table public.profile_menu
* @file
* @brief Manage the table public.profile_menu
*
*
Example
@code
Example
@code
@endcode
@endcode
*/
require_once('class_database.php');
require_once('ac_common.php');
require_once 'class_noalyss_sql.php';
/**
*@brief Manage the table public.profile_menu
*/
class Profile_Menu_sql
{
/* example private $variable=array("easy_name"=>column_name,"email"=>"column_name_email","val3"=>0); */
protected $variable=array("pm_id"=>"pm_id","me_code"=>"me_code"
,"me_code_dep"=>"me_code_dep"
,"p_id"=>"p_id"
,"p_order"=>"p_order"
,"p_type_display"=>"p_type_display"
,"pm_default"=>"pm_default"
);
function __construct ( & $p_cn,$p_id=-1) {
$this->cn=$p_cn;
$this->pm_id=$p_id;
if ( $p_id == -1 ) {
/* Initialize an empty object */
foreach ($this->variable as $key=>$value) $this->$value=null;
$this->pm_id=$p_id;
} else {
/* load it */
$this->load();
}
}
public function get_parameter($p_string) {
if ( array_key_exists($p_string,$this->variable) ) {
$idx=$this->variable[$p_string];
return $this->$idx;
}
else
throw new Exception (__FILE__.":".__LINE__.$p_string.'Erreur attribut inexistant');
}
public function set_parameter($p_string,$p_value) {
if ( array_key_exists($p_string,$this->variable) ) {
$idx=$this->variable[$p_string];
$this->$idx=$p_value;
}
else
throw new Exception (__FILE__.":".__LINE__.$p_string.'Erreur attribut inexistant');
}
public function get_info() { return var_export($this,true); }
public function verify() {
// Verify that the elt we want to add is correct
/* verify only the datatype */
if ( trim($this->me_code) == '') $this->me_code=null;
if ( trim($this->me_code_dep) == '') $this->me_code_dep=null;
if ( trim($this->p_id) == '') $this->p_id=null;
if ( $this->p_id!== null && settype($this->p_id,'float') == false )
throw new Exception('DATATYPE p_id $this->p_id non numerique');
if ( trim($this->p_order) == '') $this->p_order=null;
if ( $this->p_order!== null && settype($this->p_order,'float') == false )
throw new Exception('DATATYPE p_order $this->p_order non numerique');
if ( trim($this->p_type_display) == '') $this->p_type_display=null;
if ( trim($this->pm_default) == '') $this->pm_default=null;
if ( $this->pm_default!== null && settype($this->pm_default,'float') == false )
throw new Exception('DATATYPE pm_default $this->pm_default non numerique');
}
public function save() {
/* please adapt */
if ( $this->pm_id == -1 )
$this->insert();
else
$this->update();
}
/**
*@brief retrieve array of object thanks a condition
*@param $cond condition (where clause) (optional by default all the rows are fetched)
* you can use this parameter for the order or subselect
*@param $p_array array for the SQL stmt
*@see Database::exec_sql get_object Database::num_row
*@return the return value of exec_sql
*/
public function seek($cond='',$p_array=null)
{
$sql="select * from public.profile_menu $cond";
$aobj=array();
$ret= $this->cn->exec_sql($sql,$p_array);
return $ret;
}
/**
*get_seek return the next object, the return of the query must have all the column
* of the object
*@param $p_ret is the return value of an exec_sql
*@param $idx is the index
*@see seek
*@return object
*/
public function get_object($p_ret,$idx)
{
// map each row in a object
$oobj=new Profile_Menu_sql ($this->cn);
$array=Database::fetch_array($p_ret,$idx);
foreach ($array as $idx=>$value) { $oobj->$idx=$value; }
return $oobj;
}
public function insert() {
if ( $this->verify() != 0 ) return;
if( $this->pm_id==-1 ){
/* please adapt */
$sql="insert into public.profile_menu(me_code
,me_code_dep
,p_id
,p_order
,p_type_display
,pm_default
) values ($1
,$2
,$3
,$4
,$5
,$6
) returning pm_id";
$this->pm_id=$this->cn->get_value(
$sql,
array( $this->me_code
,$this->me_code_dep
,$this->p_id
,$this->p_order
,$this->p_type_display
,$this->pm_default
)
);
} else {
$sql="insert into public.profile_menu(me_code
,me_code_dep
,p_id
,p_order
,p_type_display
,pm_default
,pm_id) values ($1
,$2
,$3
,$4
,$5
,$6
,$7
) returning pm_id";
$this->pm_id=$this->cn->get_value(
$sql,
array( $this->me_code
,$this->me_code_dep
,$this->p_id
,$this->p_order
,$this->p_type_display
,$this->pm_default
,$this->pm_id)
);
}
}
public function update() {
if ( $this->verify() != 0 ) return;
/* please adapt */
$sql=" update public.profile_menu set me_code = $1
,me_code_dep = $2
,p_id = $3
,p_order = $4
,p_type_display = $5
,pm_default = $6
where pm_id= $7";
$res=$this->cn->exec_sql(
$sql,
array($this->me_code
,$this->me_code_dep
,$this->p_id
,$this->p_order
,$this->p_type_display
,$this->pm_default
,$this->pm_id)
);
}
/**
*@brief load a object
*@return 0 on success -1 the object is not found
* @brief Manage the table public.profile_menu
*/
public function load() {
class Profile_Menu_sql extends Noalyss_SQL
{
$sql="select me_code
,me_code_dep
,p_id
,p_order
,p_type_display
,pm_default
from public.profile_menu where pm_id=$1";
/* please adapt */
$res=$this->cn->get_array(
$sql,
array($this->pm_id)
);
if ( count($res) == 0 ) {
/* Initialize an empty object */
foreach ($this->variable as $key=>$value) $this->$key='';
function __construct(&$p_cn,$p_id=-1)
{
$this->table="public.profile_menu";
$this->primary_key="pm_id";
return -1;
}
foreach ($res[0] as $idx=>$value) { $this->$idx=$value; }
return 0;
}
$this->name=array(
"pm_id"=>"pm_id", "me_code"=>"me_code"
, "me_code_dep"=>"me_code_dep"
, "p_id"=>"p_id"
, "p_order"=>"p_order"
, "p_type_display"=>"p_type_display"
, "pm_default"=>"pm_default"
);
public function delete() {
$sql="delete from public.profile_menu where pm_id=$1";
$res=$this->cn->exec_sql($sql,array($this->pm_id));
}
/**
* Unit test for the class
*/
static function test_me() {
$cn=new Database(25);
$cn->start();
echo h2info('Test object vide');
$obj=new Profile_Menu_sql($cn);
var_dump($obj);
$this->type=array(
"pm_id"=>"number",
"me_code"=>"text"
, "me_code_dep"=>"text"
, "p_id"=>"number"
, "p_order"=>"number"
, "p_type_display"=>"text"
, "pm_default"=>"text"
);
echo h2info('Test object NON vide');
$obj->set_parameter('j_id',3);
$obj->load();
var_dump($obj);
$this->default=array(
"pm_id"=>"auto"
);
echo h2info('Update');
$obj->set_parameter('j_qcode','NOUVEAU CODE');
$obj->save();
$obj->load();
var_dump($obj);
parent::__construct($p_cn, $p_id);
}
echo h2info('Insert');
$obj->set_parameter('j_id',0);
$obj->save();
$obj->load();
var_dump($obj);
echo h2info('Delete');
$obj->delete();
echo (($obj->load()==0)?'Trouve':'non trouve');
var_dump($obj);
$cn->rollback();
}
}
// Profile_Menu_sql::test_me();
?>

View file

@ -61,9 +61,8 @@ class Profile_sql extends Noalyss_SQL
$this->default = array(
"p_id" => "auto",
);
global $cn;
parent::__construct($cn,$p_id);
parent::__construct($p_cn,$p_id);
}

View file

@ -26,7 +26,7 @@
*
*
*/
require 'class_stock_sql.php';
require_once 'class_stock_sql.php';
class Stock extends Stock_Sql
{
@ -328,8 +328,9 @@ class Stock extends Stock_Sql
sg_type='c'
and j_id is null
and r_id in (select r_id from profile_sec_repository where p_id=$1)
and sg_date <= to_date($2,'DD.MM.YYYY')
group by r_id,trim(sg_code),f_id
and sg_date >= ( select min(p_start) from parm_periode where p_exercice=$2)
and sg_date <= ( select max(p_end) from parm_periode where p_exercice=$2)
group by r_id,trim(sg_code),f_id
";
$cn->exec_sql($sql_repo_detail, array($g_user->get_profile(), $periode->p_exercice));
return $tmp_id;

View file

@ -71,7 +71,7 @@ class Stock_Goods extends Stock_Goods_Sql
if (count($idepo->value) == 0)
{
NoAccess();
exit();
die();
}
$idepo->selected = $p_depot;
if ($p_readonly ) {

View file

@ -100,9 +100,7 @@ class Tag
echo h($this->data->t_tag);
echo HtmlInput::hidden($p_prefix.'tag[]', $this->data->t_id);
$js=sprintf("$('sp_".$p_prefix.$this->data->t_id."').remove();");
echo '<span style="background-color:red;text-align:center;border-top:1px solid black; border-right:1px solid black;border-bottom:1px solid black;">';
echo HtmlInput::anchor('X', "javascript:void(0)", "onclick=\"$js\"");
echo '</span>';
echo HtmlInput::anchor( " &#x2D5D; ", "javascript:void(0)", "onclick=\"$js\"", ' class="smallbutton " style="padding:0px;display:inline" ');
echo '</span>';
}
/**

View file

@ -45,9 +45,8 @@ class Tag_SQL extends Noalyss_SQL
$this->default = array(
"t_id" => "auto",
);
global $cn;
parent::__construct($cn,$p_id);
parent::__construct($p_cn,$p_id);
}

View file

@ -67,7 +67,7 @@ class Todo_List
return $this->$idx;
}
else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}
public function check($p_idx,&$p_value)
{
@ -99,7 +99,7 @@ class Todo_List
if ($this->check($idx,$p_value) == true ) $this->$idx=$p_value;
}
else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
throw new Exception("Attribut inexistant $p_string");
}

View file

@ -354,6 +354,7 @@ class User
function Admin()
{
$this->admin = 0;
if ($this->login != 'phpcompta')
{
$pass5 = md5($this->pass);
@ -363,7 +364,7 @@ class User
$cn = new Database();
$res = $cn->exec_sql($sql, array($this->login));
if (Database::num_row($res) == 0)
exit(__FILE__ . " " . __LINE__ . " aucun resultat");
throw new Exception(__FILE__ . " " . __LINE__ . " aucun resultat");
$this->admin = Database::fetch_result($res, 0);
}
else
@ -402,8 +403,7 @@ class User
$pid = Database::fetch_result($Res2, 0, 0);
if ($pid == null)
{
echo _("Aucune période trouvéee !!!");
exit(1);
throw new Exception( _("Aucune période trouvéee !!!"));
}
$pid = Database::fetch_result($Res2, 0, 0);
@ -799,7 +799,7 @@ class User
$r=array();
if ($p_access=='R')
{
$r=$this->db->get_array("select u.r_id,r_name
$r=$this->db->get_array("select distinct u.r_id,r_name
from
profile_sec_repository as u
join stock_repository as s on(u.r_id=s.r_id)
@ -811,7 +811,7 @@ class User
}
if ($p_access == 'W')
{
$r=$this->db->get_array("select u.r_id,r_name
$r=$this->db->get_array("select distinct u.r_id,r_name
from
profile_sec_repository as u
join stock_repository as s on(u.r_id=s.r_id)

View file

@ -145,5 +145,5 @@ echo "</table>";
echo HtmlInput::submit("record_company", _("Sauve"));
echo "</form>";
echo '</div>';
exit();
return;
?>

View file

@ -43,7 +43,7 @@ if (isset($_REQUEST['p_jrn']))
NoAccess();
exit - 1;
}
$p_msg="";
/* if a new invoice is encoded, we display a form for confirmation */
if (isset($_POST['view_invoice']))
{
@ -55,6 +55,7 @@ if (isset($_POST['view_invoice']))
catch (Exception $e)
{
alert($e->getMessage());
$p_msg=$e->getMessage();
$correct = 1;
}
// if correct is not set it means it is correct
@ -80,7 +81,7 @@ if (isset($_POST['view_invoice']))
echo '</div>';
echo '</div>';
exit();
return;
}
}
//------------------------------
@ -97,6 +98,7 @@ if (isset($_POST['record']))
catch (Exception $e)
{
alert($e->getMessage());
$p_msg=$e->getMessage();
$correct = 1;
}
// record the invoice
@ -141,7 +143,7 @@ if (isset($_POST['record']))
}
echo '</div>';
exit();
return;
}
}
// ------------------------------
@ -186,6 +188,7 @@ echo '</div>';
echo '</div>';
echo '<div class="content">';
echo '<p class="notice">'.$p_msg.'</p>';
echo "<FORM class=\"print\"NAME=\"form_detail\" METHOD=\"POST\" >";
/* request for a predefined operation */
if ( isset($_REQUEST['pre_def']) && !isset($_POST['correct']))
@ -230,6 +233,6 @@ echo create_script(" update_name()");
echo '</div>';
exit();
return;
// end record invoice
?>

View file

@ -57,7 +57,7 @@ if ( isset($_REQUEST['p_jrn']) && ( $jrn_priv == 'X'))
NoAccess();
exit -1;
}
$p_msg="";
//----------------------------------------
// Confirm the operations
//----------------------------------------
@ -70,13 +70,14 @@ if ( isset($_POST['save']))
catch (Exception $e)
{
alert($e->getMessage());
$p_msg=$e->getMessage();
$correct=1;
}
if ( ! isset ($correct ))
{
echo '<div class="content">';
echo h1('Confirmation','');
echo_warning("Attention, cette opération n'est pas encore sauvée : vous devez encore confirmer");
echo h1(_('Confirmation'),'');
echo_warning(_("Attention, cette opération n'est pas encore sauvée : vous devez encore confirmer"));
echo '<form name="form_detail" class="print" enctype="multipart/form-data" class="print" METHOD="POST">';
echo HtmlInput::hidden('ac',$_REQUEST['ac']);
echo $Ledger->confirm($_POST);
@ -85,7 +86,7 @@ if ( isset($_POST['save']))
echo '</form>';
echo '</div>';
exit();
return;
}
}
//----------------------------------------
@ -101,6 +102,7 @@ if ( isset($_POST['confirm']))
catch (Exception $e)
{
alert($e->getMessage());
$p_msg=$e->getMessage();
$correct=1;
}
if ( !isset($correct))
@ -116,7 +118,7 @@ if ( isset($_POST['confirm']))
echo $a;
echo '</div>';
echo '</div>';
exit();
return;
}
}
//----------------------------------------
@ -131,6 +133,7 @@ if ( isset($_POST['correct']))
//----------------------------------------
echo '<div class="content">';
echo '<p class="notice">'.$p_msg.'</p>';
echo '<form class="print" name="form_detail" enctype="multipart/form-data" class="print" METHOD="POST">';
echo HtmlInput::hidden('ledger_type','fin');
@ -150,4 +153,4 @@ if ( ! isset ($_POST['e_date'])&& $g_parameter->MY_DATE_SUGGEST=='Y')
echo create_script(" ajax_saldo('first_sold');");
}
echo create_script(" update_name()");
exit();
return;

View file

@ -43,7 +43,7 @@ $jrn_priv = $g_user->get_ledger_access($Ledger->id);
if (isset($_GET["p_jrn"]) && $jrn_priv == "X")
{
NoAccess();
exit();
return;
}
//-------------------------
// save
@ -131,7 +131,7 @@ echo '<span style="display:block">';
echo '</span>';
echo '<table id="t_rec_bk" class="sortable" style="width:80%;margin-left:10%">';
echo '<table id="t_rec_bk" class="sortable" style="width:90%;margin-left:5%">';
$r ='<th class=" sorttable_sorted_reverse">'.'Date '.HtmlInput::infobulle(17).'<span id="sorttable_sortrevind">&nbsp;&blacktriangle;</span>'.'</th>';
$r.=th('Libellé');
$r.=th('N° interne');
@ -214,5 +214,5 @@ echo '</table>';
echo HtmlInput::submit('save', 'Mettre à jour le n° de relevé bancaire');
echo '</form>';
echo '</div>';
exit();
return;
?>

View file

@ -36,7 +36,7 @@ require_once ('class_acc_parm_code.php');
echo '<div class="content">';
echo dossier::hidden();
echo _('Filtre :').HtmlInput::filter_table("fin_saldo_tb", '0,1,2,3', '1');
echo '<table class="sortable" style="margin-left:10%;width:60%" class="result" id="fin_saldo_tb">';
echo '<table class="sortable" style="margin-left:10%;width:80%" class="result" id="fin_saldo_tb">';
echo tr(th('Quick Code',' class=" sorttable_sorted_reverse"',HtmlInput::infobulle(17).'<span id="sorttable_sortrevind">&nbsp;&blacktriangle;</span>')
.th('Compte en banque',' style="text-align:left"')
.th('Journal',' style="text-align:center"')
@ -123,5 +123,5 @@ require_once ('class_acc_parm_code.php');
echo '</tfoot>';
echo "</table>";
echo "</div>";
exit();
return;
?>

View file

@ -61,10 +61,11 @@ if ($g_user->check_jrn($ledger->id) == 'X')
NoAccess();
exit - 1;
}
$p_msg="";
if (!isset($_POST['summary']) && !isset($_POST['save']))
{
require('operation_ods_new.inc.php');
exit();
return;
}
elseif (isset($_POST['summary']))
{
@ -74,10 +75,11 @@ elseif (isset($_POST['summary']))
} catch (Exception $e)
{
echo alert($e->getMessage());
$p_msg=$e->getMessage();
require('operation_ods_new.inc.php');
}
exit();
return;
}
elseif (isset($_POST['save']))
{
@ -103,8 +105,9 @@ elseif (isset($_POST['save']))
{
require('operation_ods_new.inc.php');
alert($e->getMessage());
$p_msg=$e->getMessage();
}
exit();
return;
}
exit();
return;

View file

@ -36,7 +36,7 @@ $cn=new Database(dossier::id());
$str_dossier=dossier::get();
$ac="ac=".$_REQUEST['ac'];
global $g_parameter;
$p_msg="";
//----------------------------------------------------------------------
// Encode a new invoice
// empty form for encoding
@ -64,14 +64,15 @@ global $g_parameter;
catch (Exception $e)
{
alert($e->getMessage());
$p_msg=$e->getMessage();
$correct=1;
}
// if correct is not set it means it is correct
if ( ! isset($correct))
{
echo '<div class="content">';
echo h1('Confirmation','');
echo_warning("Attention, cette opération n'est pas encore sauvée : vous devez encore confirmer");
echo h1(_("Confirmation"),'');
echo_warning(_("Attention, cette opération n'est pas encore sauvée : vous devez encore confirmer"));
echo '<form class="print" enctype="multipart/form-data" method="post">';
@ -88,7 +89,7 @@ global $g_parameter;
echo '</form>';
echo '</div>';
exit();
return;
}
}
//------------------------------
@ -148,7 +149,7 @@ global $g_parameter;
echo '</div>';
exit();
return;
}
}
// ------------------------------
@ -187,6 +188,7 @@ echo '<div class="content">';
echo '</div>';
echo '<div class="content">';
echo '<p class="notice">'.$p_msg.'</p>';
echo "<FORM class=\"print\" NAME=\"form_detail\" METHOD=\"POST\" >";
/* request for a predefined operation */
if ( isset($_REQUEST['pre_def']) && ! isset($_POST['correct']) )
@ -234,6 +236,8 @@ echo '<div class="content">';
echo '</script>';
}
echo '<div class="content">';
echo HtmlInput::button('act',_('Actualiser'),'onClick="compute_all_ledger();"');
echo HtmlInput::submit("view_invoice",_("Enregistrer"));
echo HtmlInput::reset(_('Effacer '));
@ -250,5 +254,5 @@ echo '<div class="content">';
echo create_script(" get_last_date()");
}
echo create_script(" update_name()");
exit();
return;
?>

Some files were not shown because too many files have changed in this diff Show more