Esempio n. 1
3
    $table->writeToCell(2, 1, $tanggal, $font, new PHPRtfLite_ParFormat('center'));
    $table->addRows(1, 0.4);
    $table->writeToCell(4, 1, $psikolog, $font, new PHPRtfLite_ParFormat('center'));
    $table->writeToCell(4, 2, $project_mgr, $font, new PHPRtfLite_ParFormat('center'));
    $table->writeToCell(4, 3, "", $font, new PHPRtfLite_ParFormat('center'));
    $table->writeToCell(4, 4, "", $font, new PHPRtfLite_ParFormat('center'));
}
$project_id = $_GET["project_id"];
$ps_id = $_GET["ps_id"];
$qup = mysql_query("select * from t_project where project_id = {$project_id}");
$project_info = mysql_fetch_object($qup);
$qup = mysql_query("select *,date_format(ps_test_tanggal,'%d-%b-%Y') ps_test_tanggal2 from t_project_source where ps_id = {$ps_id}");
$project_source_info = mysql_fetch_object($qup);
$pdf = new FPDF();
$pdf->AddPage();
// $pdf->SetMargins(18,10,20);
$pdf->SetMargins(1, 2, 1, 2);
$rtf->setMargins(1, 2, 1, 2);
_createHeader($project_info);
//$rtf->setMargins(3,2,3,2);
$sect =& $rtf->addSection();
//_createTitle($project_info);
_createTable(0, 3);
//
$sect =& $rtf->addSection();
_createTable(3, 3);
//
$sect =& $rtf->addSection();
_createUraian();
$namafile = "Psikogram_" . $ps_id . ".rtf";
$rtf->sendRtf($namafile);
Esempio n. 2
0
    	}*/
    /*$project_id = $_GET["project_id"];
    	$ps_id = $_GET["ps_id"];
    	
    	$qup = mysql_query("select * from t_project where project_id = $project_id");
    	$project_info = mysql_fetch_object($qup);
    	
    	$qup = mysql_query("select *,date_format(ps_test_tanggal,'%d-%b-%Y') ps_test_tanggal2 from t_project_source where ps_id = $ps_id");
    	$project_source_info = mysql_fetch_object($qup);*/
}
// Init
$null = null;
PHPRtfLite::registerAutoloader();
$parFormat = new PHPRtfLite_ParFormat();
$rtf = new PHPRtfLite();
//setLandscape()
$rtf->setLandscape();
//$rtf->setMargins(3,2,3,2);
//_createHeader($project_info);
$rtf->setMargins(3, 2, 3, 2);
$sect =& $rtf->addSection();
//_createTitle($project_info);
_createTable();
//
/*$sect = &$rtf->addSection();
	_createTable(3,3);
	//
	$sect = &$rtf->addSection();
	_createUraian();*/
$namafile = "Schedule.rtf";
$rtf->sendRtf($namafile);