svn+ssh://ns352270.ovh.net/svn/phpcompta/tags/rel660 ........ r5324 | danydb | 2013-06-10 18:17:15 +0200 (Mon, 10 Jun 2013) | 1 line Probleme journaux ODS: mauvais filtre pour les fiches ........ r5326 | danydb | 2013-06-26 21:25:42 +0200 (Wed, 26 Jun 2013) | 1 line bug : use POST instead of array ........ r5327 | danydb | 2013-06-29 00:24:33 +0200 (Sat, 29 Jun 2013) | 1 line Bug : missing php path ........ r5328 | danydb | 2013-06-29 00:34:51 +0200 (Sat, 29 Jun 2013) | 1 line Bug : mixed 2 variables : cannot save Analytic operation ........ r5329 | danydb | 2013-06-29 00:56:50 +0200 (Sat, 29 Jun 2013) | 1 line Bug #0000859: FORECAST ; bug Total Categorie reel ........ r5330 | danydb | 2013-07-03 22:08:41 +0200 (Wed, 03 Jul 2013) | 1 line Bug #0000860: creation de comptes utilisateurs sur serveur mutualisé (mono dossier) ........ r5331 | danydb | 2013-07-10 19:12:32 +0200 (Wed, 10 Jul 2013) | 1 line Card ordered by name ........ r5332 | danydb | 2013-07-10 19:13:44 +0200 (Wed, 10 Jul 2013) | 1 line Card ordered by name ........
67 lines
2.2 KiB
PHP
67 lines
2.2 KiB
PHP
<?php
|
|
|
|
require_once('../include/ac_common.php');
|
|
require_once('function_javascript.php');
|
|
require_once('class_html_input.php');
|
|
require_once('class_dossier.php');
|
|
require_once('class_database.php');
|
|
require_once('class_user.php');
|
|
require_once('class_periode.php');
|
|
echo '<div style="float:left;">'.HtmlInput::print_window();
|
|
|
|
html_page_start($_SESSION['g_theme']);
|
|
global $g_user;
|
|
if ( basename($_GET['ajax']) == 'ajax_history.php' )
|
|
{
|
|
$href=dossier::get();
|
|
$cn=new Database(dossier::id());
|
|
/* current year */
|
|
$g_user=new User($cn);
|
|
$exercice=$g_user->get_exercice();
|
|
|
|
/* get date limit */
|
|
$periode=new Periode($cn);
|
|
$limit=$periode->get_limit($exercice);
|
|
|
|
$from_periode='from_periode='.format_date($limit[0]->p_start);
|
|
$to_periode='to_periode='.format_date($limit[1]->p_end);
|
|
if (isset($_GET['ex']))
|
|
{
|
|
if ( $exercice > $_GET['ex'])
|
|
{
|
|
$limit_periode=$periode->get_limit($_GET['ex']);
|
|
$from_periode='from_periode='.format_date($limit_periode[0]->p_start);
|
|
}
|
|
else
|
|
{
|
|
$limit_periode=$periode->get_limit($_GET['ex']);
|
|
$to_periode='to_periode='.format_date($limit_periode[1]->p_end);
|
|
|
|
}
|
|
}
|
|
|
|
if (isset($_GET['pcm_val']) )
|
|
{
|
|
$href_csv="export.php?".$href.'&poste_id='.$_GET['pcm_val'].'&ople=0&type=poste&'.$from_periode.'&'.$to_periode."&act=CSV:postedetail";
|
|
$href_pdf="export.php?".$href.'&poste_id='.$_GET['pcm_val'].'&ople=0&type=poste&'.$from_periode.'&'.$to_periode."&act=PDF:postedetail";;
|
|
}
|
|
else
|
|
{
|
|
$href_csv="export.php?".$href.'&f_id='.$_GET['f_id'].'&ople=0&type=poste&'.$from_periode.'&'.$to_periode."&act=CSV:fichedetail";
|
|
$href_pdf="export.php?".$href.'&f_id='.$_GET['f_id'].'&ople=0&type=poste&'.$from_periode.'&'.$to_periode."&act=PDF:fichedetail";
|
|
}
|
|
|
|
echo '<a class="button" href="'.$href_csv.'">Export CSV</a>';
|
|
echo '<a class="button" href="'.$href_pdf.'">Export PDF</a>';
|
|
}
|
|
echo '</div>';
|
|
echo HtmlInput::hidden('inpopup',1);
|
|
load_all_script();
|
|
|
|
$str=$_SERVER['QUERY_STRING']."&div=popup";
|
|
$script="
|
|
var obj={'id':'popup','fixed':1,'class':'content',style:'width:auto','html':loading(),'qs':'$str',js_success:'success_box','js_error':null,'callback':'".$_GET['ajax']."'};
|
|
show_box(obj);
|
|
";
|
|
echo create_script($script);
|
|
?>
|