122 lines
2.1 KiB
PHP
122 lines
2.1 KiB
PHP
|
<?php
|
||
|
|
||
|
require_once( '../../../../../includes/global.inc.php' );
|
||
|
require_once( '../../../../GovernmentForms/GovernmentForms.class.php' );
|
||
|
|
||
|
$gf = new GovernmentForms();
|
||
|
|
||
|
$f941sb_obj = $gf->getFormObject( '941sb', 'US' );
|
||
|
$f941sb_obj->setDebug(FALSE);
|
||
|
$f941sb_obj->setShowBackground(TRUE);
|
||
|
$f941sb_obj->year = 2009;
|
||
|
$f941sb_obj->ein = '12-3456789';
|
||
|
$f941sb_obj->name = 'John Doe';
|
||
|
$f941sb_obj->trade_name = 'ABC Company';
|
||
|
$f941sb_obj->address = '#1232 Main St';
|
||
|
$f941sb_obj->city = 'New York';
|
||
|
$f941sb_obj->state = 'NY';
|
||
|
$f941sb_obj->zip_code = '12345';
|
||
|
$f941sb_obj->quarter = array(1,2,3,4);
|
||
|
$f941sb_obj->month1 = array(
|
||
|
1 => 9999.99,
|
||
|
2 => 9999.99,
|
||
|
3 => 9999.99,
|
||
|
4 => 9999.99,
|
||
|
5 => 9999.99,
|
||
|
6 => 9999.99,
|
||
|
7 => 9999.99,
|
||
|
8 => 9999.99,
|
||
|
9 => 9999.99,
|
||
|
10 => 9999.99,
|
||
|
11 => 9999.99,
|
||
|
12 => 9999.99,
|
||
|
13 => 9999.99,
|
||
|
14 => 9999.99,
|
||
|
15 => 9999.99,
|
||
|
16 => 9999.99,
|
||
|
17 => 9999.99,
|
||
|
18 => 9999.99,
|
||
|
19 => 9999.99,
|
||
|
20 => 9999.99,
|
||
|
21 => 9999.99,
|
||
|
22 => 9999.99,
|
||
|
23 => 9999.99,
|
||
|
24 => 9999.99,
|
||
|
25 => 9999.99,
|
||
|
26 => 9999.99,
|
||
|
27 => 9999.99,
|
||
|
28 => 9999.99,
|
||
|
29 => 9999.99,
|
||
|
30 => 9999.99,
|
||
|
31 => 9999.99,
|
||
|
);
|
||
|
$f941sb_obj->month2 = array(
|
||
|
1 => 9999.99,
|
||
|
2 => 9999.99,
|
||
|
3 => 9999.99,
|
||
|
4 => 9999.99,
|
||
|
5 => 9999.99,
|
||
|
6 => 9999.99,
|
||
|
7 => 9999.99,
|
||
|
8 => 9999.99,
|
||
|
9 => 9999.99,
|
||
|
10 => 9999.99,
|
||
|
11 => 9999.99,
|
||
|
12 => 9999.99,
|
||
|
13 => 9999.99,
|
||
|
14 => 9999.99,
|
||
|
15 => 9999.99,
|
||
|
16 => 9999.99,
|
||
|
17 => 9999.99,
|
||
|
18 => 9999.99,
|
||
|
19 => 9999.99,
|
||
|
20 => 9999.99,
|
||
|
21 => 9999.99,
|
||
|
22 => 9999.99,
|
||
|
23 => 9999.99,
|
||
|
24 => 9999.99,
|
||
|
25 => 9999.99,
|
||
|
26 => 9999.99,
|
||
|
27 => 9999.99,
|
||
|
28 => 9999.99,
|
||
|
29 => 9999.99,
|
||
|
30 => 9999.99,
|
||
|
31 => 9999.99,
|
||
|
);
|
||
|
$f941sb_obj->month3 = array(
|
||
|
1 => 9999.99,
|
||
|
2 => 9999.99,
|
||
|
3 => 9999.99,
|
||
|
4 => 9999.99,
|
||
|
5 => 9999.99,
|
||
|
6 => 9999.99,
|
||
|
7 => 9999.99,
|
||
|
8 => 9999.99,
|
||
|
9 => 9999.99,
|
||
|
10 => 9999.99,
|
||
|
11 => 9999.99,
|
||
|
12 => 9999.99,
|
||
|
13 => 9999.99,
|
||
|
14 => 9999.99,
|
||
|
15 => 9999.99,
|
||
|
16 => 9999.99,
|
||
|
17 => 9999.99,
|
||
|
18 => 9999.99,
|
||
|
19 => 9999.99,
|
||
|
20 => 9999.99,
|
||
|
21 => 9999.99,
|
||
|
22 => 9999.99,
|
||
|
23 => 9999.99,
|
||
|
24 => 9999.99,
|
||
|
25 => 9999.99,
|
||
|
26 => 9999.99,
|
||
|
27 => 9999.99,
|
||
|
28 => 9999.99,
|
||
|
29 => 9999.99,
|
||
|
30 => 9999.99,
|
||
|
31 => 9999.99,
|
||
|
);
|
||
|
$gf->addForm( $f941sb_obj );
|
||
|
$output = $gf->output( 'PDF' );
|
||
|
file_put_contents( '941sb.pdf', $output );
|
||
|
?>
|