* [story#69837,0.5h] add preview post.

This commit is contained in:
qixinzhi
2024-12-04 15:45:23 +08:00
committed by 周鑫
parent 813963d33a
commit eed026361c
+8
View File
@@ -53,6 +53,14 @@ class doc extends control
*/
public function zentaoList(string $type)
{
$this->view->cols = array();
$this->view->data = array();
if(!empty($_POST))
{
$funcName = "preview$type";
if(method_exists($this->docZen, $funcName)) $this->docZen->$funcName();
}
$this->view->title = sprintf($this->lang->doc->insertTitle, $this->lang->doc->zentaoList[$type]);
$this->view->type = $type;
$this->display();