154 |
echo_debug ("user_action_ach.php"); |
echo_debug ("user_action_ach.php"); |
155 |
// Date - date of payment - Customer - amount |
// Date - date of payment - Customer - amount |
156 |
$sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn']; |
$sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn']; |
|
$list=ListJrn($cn,$_GET['p_jrn'],$sql); |
|
157 |
|
|
158 |
|
$step=$_SESSION['g_pagesize']; |
159 |
|
$page=(isset($_GET['offset']))?$_GET['page']:1; |
160 |
|
$offset=(isset($_GET['offset']))?$_GET['offset']:0; |
161 |
|
|
162 |
|
list ($max_ligne,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset); |
163 |
|
$bar=jrn_navigation_bar($offset,$max_ligne,$step,$page); |
164 |
|
|
165 |
|
echo $bar; |
166 |
echo $list; |
echo $list; |
167 |
|
echo $bar; |
168 |
|
|
169 |
echo '</div>'; |
echo '</div>'; |
170 |
} |
} |
171 |
if ( $action == 'voir_jrn_non_paye' ) { |
if ( $action == 'voir_jrn_non_paye' ) { |
178 |
// Show list of unpaid sell |
// Show list of unpaid sell |
179 |
// Date - date of payment - Customer - amount |
// Date - date of payment - Customer - amount |
180 |
$sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=".$_GET['p_jrn'] ; |
$sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=".$_GET['p_jrn'] ; |
181 |
$list=ListJrn($cn,$_GET['p_jrn'],$sql); |
$offset=(isset($_GET['offset']))?$_GET['offset']:0; |
182 |
|
$step=$_SESSION['g_pagesize']; |
183 |
|
$page=(isset($_GET['offset']))?$_GET['page']:1; |
184 |
|
|
185 |
|
list ($max_line,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset); |
186 |
|
// $bar=jrn_navigation_bar($offset,$max_ligne,$step,$page); |
187 |
|
|
188 |
|
|
189 |
$sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=".$_GET['p_jrn'] ; |
$sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=".$_GET['p_jrn'] ; |
190 |
$list2=ListJrn($cn,$_GET['p_jrn'],$sql); |
list ($max_line2,$list2)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset); |
191 |
|
|
192 |
|
// Get the max line |
193 |
|
$m=($max_line2>$max_line)?$max_line2:$max_line; |
194 |
|
$bar2=jrn_navigation_bar($offset,$m,$step,$page); |
195 |
|
|
196 |
echo '<div class="u_redcontent">'; |
echo '<div class="u_redcontent">'; |
197 |
echo '<h2 class="info"> Echeance dépassée </h2>'; |
echo '<h2 class="info"> Echeance dépassée </h2>'; |
198 |
|
echo $bar2; |
199 |
echo $list; |
echo $list; |
200 |
|
|
201 |
|
|
202 |
echo '<h2 class="info"> Non Payée </h2>'; |
echo '<h2 class="info"> Non Payée </h2>'; |
203 |
echo $list2; |
echo $list2; |
204 |
|
echo $bar2; |
205 |
echo '</div>'; |
echo '</div>'; |
206 |
} |
} |
207 |
|
|
214 |
} |
} |
215 |
|
|
216 |
// PhpSessid |
// PhpSessid |
217 |
$sessid=(isset ($_POST['PHPSESSID']))?$_POST['PHPSESSID']:$_GET['PHPSESSID']; |
$sessid=$_REQUEST['PHPSESSID']; |
218 |
|
// Search modules |
219 |
|
$offset=(isset($_GET['offset']))?$_GET['offset']:0; |
220 |
|
$step=$_SESSION['g_pagesize']; |
221 |
|
$page=(isset($_GET['offset']))?$_GET['page']:1; |
222 |
|
|
223 |
// display a search box |
// display a search box |
224 |
$search_box=u_ShowMenuRecherche($cn,$_GET['p_jrn'],$sessid,$HTTP_POST_VARS); |
$search_box=u_ShowMenuRecherche($cn,$_GET['p_jrn'],$sessid,$_POST); |
225 |
echo '<DIV class="u_redcontent">'; |
echo '<DIV class="u_redcontent">'; |
226 |
echo $search_box; |
echo $search_box; |
227 |
// if nofirst is set then show result |
// if nofirst is set then show result |
228 |
if ( isset ($_GET['nofirst'] ) ) { |
if ( isset ($_GET['nofirst'] ) ) { |
229 |
$a=ListJrn($cn,$_GET['p_jrn'],"",$HTTP_POST_VARS); |
list ($max_line,$a)=ListJrn($cn,$_GET['p_jrn'],"",$_POST); |
230 |
echo $a; |
echo $a; |
231 |
} |
} |
232 |
echo '</DIV>'; |
echo '</DIV>'; |