19 lines
716 B
PHP
19 lines
716 B
PHP
|
|
<?php
|
||
|
|
declare(strict_types=1);
|
||
|
|
/**
|
||
|
|
* The create view file of doc module of ZenTaoPMS.
|
||
|
|
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
|
||
|
|
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
|
||
|
|
* @author Sun Guangming<sunguangming@easycorp.ltd>
|
||
|
|
* @package doc
|
||
|
|
* @link https://www.zentao.net
|
||
|
|
*/
|
||
|
|
namespace zin;
|
||
|
|
|
||
|
|
include($this->app->getModuleRoot() . 'ai/ui/inputinject.html.php');
|
||
|
|
|
||
|
|
$isOfficeDoc = $docType != '' && strpos($config->doc->officeTypes, $docType) !== false;
|
||
|
|
|
||
|
|
if($isOfficeDoc) include 'create.office.html.php';
|
||
|
|
else include 'create.text.html.php';
|