421: bilan.php moved

This commit is contained in:
Dany De Bontridder 2011-10-29 12:53:53 +00:00
parent ccd70642fc
commit 80e5c54b0e
4 changed files with 12 additions and 4 deletions

View file

@ -22,7 +22,7 @@
/*!\file
* \brief manage all the export to CSV or PDF
* act can be
* act can be
*
*/
@ -46,7 +46,7 @@ if ( $act=='X' || ! isset($_GET['act']) )
exit();
}
switch( $_GET['act'])
switch( $_GET['act'])
{
case 'CSV/histo':
$user->can_request(IMPJRN,0);
@ -168,7 +168,11 @@ switch( $_GET['act'])
require_once('export_anc_balance_group_csv.php');
exit();
break;
case 'OTH/Bilan':
$user->can_request(IMPBIL);
require_once 'export_bilan_oth.php';
exit();
break;
default:
alert('Action inconnue '.$_GET['act']);
exit();

View file

@ -886,7 +886,10 @@ function put_global($array)
function compute_variable($p_string)
{
$array=array();
if ($p_string == '') return $array;
$var=explode("&",$p_string);
if (empty ($var)) return $array;
for ($i=0;$i < count($var);$i++)
{
$var2=explode('=',$var[$i]);

View file

@ -74,10 +74,11 @@ if ( isset($_GET['verif']))
$bilan->get_request_get();
$bilan->verify();
echo '<FORM METHOD="GET" ACTION="bilan.php">';
echo '<FORM METHOD="GET" ACTION="export.php">';
echo dossier::hidden();
echo HtmlInput::get_to_hidden(array('exercice'));
echo HtmlInput::hidden('b_id',$_GET['b_id']);
echo HtmlInput::hidden('act','OTH/Bilan');
echo HtmlInput::hidden('from_periode',$bilan->from);
echo HtmlInput::hidden('to_periode',$bilan->to);