设想
我正在尝试从 PHP 数组在 OpenTBS(.docx 文件)中创建多个页面,每个数组元素对应于一页数据。
问题
如何为每个数据元素插入新页面?
任何帮助,将不胜感激。
PHP 代码
foreach($actionItems as $actionItem)
{
array_push($data, array(
'ActionItemID' => $actionItemID,
'ActionItemTitle' => $actionItemTitle,
'Assignor' => $assignorLastFirst,
'Criticality' => $criticality,
'Owner' => $ownerLastFirst,
'AltOwner' => $altOwnerLastFirst,
'AssignedDate' => $assignedDate,
'DueDate' => $originalDueDate,
'ECD' => $ecd,
'ClosureDate' => $closureDate,
'Team' => $team,
'Department' => $department,
'Source' => $source,
'Project_Phase' =>$projectPhase,
'ActionItemStatement' => $actionItemStatement,
'ClosureCriteria' => $closureCriteria,
'Notes' => $notes,
'ClosureStatement' => $closureStatement
));
}
$TBS->MergeBlock('a', $data);
模板截图