Add a print button to impress

This commit is contained in:
Dany De Bontridder 2012-06-19 19:31:18 +00:00
parent 679ad15afa
commit e942d8b7d7
6 changed files with 21 additions and 3 deletions

View file

@ -216,7 +216,9 @@ if ( isset ($_GET['view'] ) )
echo HtmlInput::get_to_hidden(array('unsold'));
echo "</form></TD>";
echo '<td style="vertical-align:top">';
echo HtmlInput::print_window();
echo '</td>';
echo "</TR>";
echo "</table>";

View file

@ -531,6 +531,10 @@ class Acc_Account_Ledger
if (isset($_REQUEST['poste_id'])) echo $hid->input("poste_id",$_REQUEST['poste_id']);
echo "</form></TD>";
echo "</form></TD>";
echo '<td style="vertical-align:top">';
echo HtmlInput::print_window();
echo '</td>';
echo '</tr>';
echo "</table>";

View file

@ -1444,6 +1444,10 @@ class Fiche
echo $hid->input('oper_detail','on');
echo "</form></TD>";
echo "</form></TD>";
echo '<td style="vertical-align:top">';
echo HtmlInput::print_window();
echo '</td>';
echo "</table>";
echo '</div>';

View file

@ -130,6 +130,8 @@ $export_pdf.=dossier::hidden();
$export_pdf.=HtmlInput::submit('pdf','Export en PDF');
$export_pdf.='</FORM>';
$export_print=HtmlInput::print_window();
$export_csv='<FORM METHOD="get" ACTION="export.php" style="display:inline">';
$export_csv.=HtmlInput::hidden('cat',$_GET['cat']);
$export_csv.=HtmlInput::hidden('act','CSV:fiche_balance');
@ -152,7 +154,7 @@ if ( $_GET['histo'] == 4 || $_GET['histo']==5 )
}
echo $export_pdf;
echo $export_csv;
echo $export_print;
$fd=new Fiche_Def($cn,$_REQUEST['cat']);
if ( $allcard==0 && $fd->hasAttribute(ATTR_DEF_ACCOUNT) == false )
@ -220,6 +222,7 @@ if ( $_GET['histo'] == 4 || $_GET['histo']==5 )
}
echo $export_pdf;
echo $export_csv;
echo $export_print;
exit();
}
@ -244,6 +247,7 @@ else
}
echo $export_csv;
echo $export_pdf;
echo $export_print;
$fiche=new Fiche($cn);
for ($e = 0; $e < count($afiche); $e++)
{
@ -357,6 +361,7 @@ for ($e = 0; $e < count($afiche); $e++)
}
echo $export_csv;
echo $export_pdf;
echo $export_print;
?>

View file

@ -188,7 +188,9 @@ if ( isset( $_REQUEST['bt_html'] ) )
echo $hid->input("p_simple",$_GET['p_simple']);
echo HtmlInput::get_to_hidden(array('ac','type'));
echo "</form></TD>";
echo '<td style="vertical-align:top">';
echo HtmlInput::print_window();
echo '</td>';
echo "</TR>";
echo "</table>";

View file

@ -388,3 +388,4 @@ CREATE TABLE stock_change
ALTER TABLE stock_goods ADD CONSTRAINT stock_goods_c_id_fkey FOREIGN KEY (c_id) REFERENCES stock_change (c_id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE;
update action_gestion set ag_id=-1 ;