20if ( ! defined (
'ALLOWED') ) die(_(
'Non autorisé'));
36echo
'<div class="content">';
38echo
'<FORM action="?" METHOD="GET">';
41echo dossier::hidden();
46$w->set_attribute(
'ipopup',
'ipop_account');
47$w->set_attribute(
'label',
'poste_id_label');
48$w->set_attribute(
'account',
'poste_id');
50$w->value=
$http->request(
"poste_id",
"string",
"");
51$w->label=_(
"Choisissez le poste");
52print td(_(
'Choisissez un poste')).td(
$w->input());
53echo
td(
$span->input(
'poste_id_label'));
59echo
td(_(
"Ou Choisissez la fiche"));
60$w_poste->set_attribute(
'label',
'f_id_label');
61$w_poste->set_attribute(
'ipopup',
'ipop_card');
63$w_poste->set_attribute(
'typecard',
'all');
65$w_poste->set_dblclick(
"fill_ipopcard(this);");
70echo
td(
$span->input(
'f_id_label'));
84$all->label=_(
"Tous les postes qui en dépendent");
87echo
$all->input(
"poste_fille");
88echo
'</TD></TR><TR><TD>';
90$detail->label=_(
"Détail des opérations");
93echo
$detail->input(
"oper_detail");
96 array(
'value'=>0,
'label'=>_(
'Toutes les opérations')),
97 array(
'value'=>1,
'label'=>_(
'Opérations lettrées')),
98 array(
'value'=>2,
'label'=>_(
'Opérations non lettrées'))
122 echo
alert(_(
'Date malformée, désolée'));
129 if ( isset (
$_GET[
'poste_fille']) )
132 $a_poste=
$cn->get_array(
"select pcm_val from tmp_pcmn where pcm_val::text like '$parent%' order by pcm_val::text");
136 elseif (
$cn->count_sql(
'select * from tmp_pcmn where pcm_val=$1',array(
$_GET[
'poste_id'])) != 0 )
157 echo
'<div class="content">';
161 echo
'<div class="content">';
167 echo
'<h2 class="">'.$Poste->id.
" ".
h($Poste->label).
'</h2>';
180 $Poste->get_row_date(
$_GET[
'from_periode'],
$_GET[
'to_periode'],
$_GET[
'ople']);
181 if ( empty($Poste->row))
return;
184 echo
'<table class="result" >';
185 echo
'<tr><td class="mtitle" style="width:auto" colspan="6"><h2 class="info">'.
$_GET[
'poste_id'].
' '.
h($Poste->label).
'</h2></td></tr>';
188 foreach ($Poste->row as
$detail)
190 if ( in_array(
$detail[
'jr_id'],
$old) == TRUE )
continue;
192 echo
'<tr><td style="text-align:center;background-color:lightgrey" colspan="6">'.$detail[
'j_date'].
' '.
$detail[
'jr_internal'].h(
$detail[
'description']).
'</td></tr>';
197 echo
$op->display_jrnx_detail(1);
212 echo
'<div class="content">';
213 echo
'<h2 class=""> ' .
216 ' [ ' .
$fiche->get_quick_code() .
' ] ' .
218 $fiche->HtmlTableHeader();
220 $fiche->HtmlTableHeader();
226 echo
'<div class="content">';
227 echo
'<h2 class=""> ' .
230 ' [ ' .
$fiche->get_quick_code() .
' ] ' .
233 $fiche->HtmlTableHeader();
234 $fiche->HtmlTableDetail();
235 $fiche->HtmlTableHeader();
247 echo
'<div class="content">';
263 echo
'<h2 class="">'.$Poste->id.
" ".
h($Poste->label).
'</h2>';
277 echo
'<table style="width:100%;margin-left:0%">';
282 $Poste->get_row_date(
$_GET[
'from_periode'],
$_GET[
'to_periode'],
$_GET[
'ople']);
283 if ( empty($Poste->row))
continue;
284 echo
'<tr><td class="mtitle" style="width:auto" colspan="6"><h2 class="title">'.
$poste_id[
'pcm_val'].
' '.
h($Poste->label).
'</h2></td></tr>';
290 foreach ($Poste->row as
$detail)
293 if ( in_array(
$detail[
'jr_id'],
$old) == TRUE )
continue;
295 echo
tr(
td(
"Journal :".
$detail[
'jrn_def_name'],
''),
'style="width:auto" colspan="6"');
296 echo
'<tr><td class="mtitle" style="width:auto;color:whitesmoke" colspan="6">'.
$detail[
'j_date'].
' '.
$detail[
'jr_internal'].
' '.
hb(
$detail[
'description']).
' '.
hi(
$detail[
'jr_pj_number']).
'</td></tr>';
302 echo
$op->display_jrnx_detail(1);
noalyss_strlentrim($p_string)
tr($p_string, $p_extra='')
sql_string($p_string)
Fix the problem with the quote char for the database.
td($p_string='', $p_extra='')
surround the string with td
alert($p_msg, $buffer=false)
alert in javascript
h( $row[ 'oa_description'])
Manage the account from the table jrn, jrnx or tmp_pcmn.
static HtmlTableHeader($actiontarget="poste")
Display HTML Table Header (button)
this file match the tables jrn & jrnx the purpose is to remove or save accountant writing to these ta...
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...
Input HTML for the card show buttons, in the file, you have to add card.js How to use :
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
show a button, for selecting a account and a input text for manually inserting an account the differe...
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
const NOTFOUND(!defined("SYSINFO_DISPLAY"))
for($e=0; $e< count($afiche); $e++) exit
if( $delta< 0) elseif( $delta==0)