我想在导出(系统)的pdf页面中使用单独的表格视图,但是表格在视图上并未完全分开
我试图更改我的代码,但没有成功 控制器代码:
public function exportpdf(){
$post=true;
//webservice data pegawai
$data['ws_user']='9Gf4H3pkLBjs';
$url='https://pegawai.pcr.ac.id/services/get_pegawai_json';
$data = array('ws_user' => '9Gf4H3pkLBjs');
// use key 'http' even if you send the request to https://...
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($data)
)
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
$datpeg=json_decode($result, True);
//untuk data pegawai di array datpeg
$data['tpl']=$datpeg['data'];
$this->load->view("admin/exportpdf",$data);
}
我希望表实际上是分开的,没有任何错误
答案 0 :(得分:0)
如果您希望表格行不被拆分,则应使用此标记开始表格。
<table nobr="true">
我希望这能解决您的问题。