create.html.php 993 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * The create view file of flow module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2024 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  5. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  6. * @author Gang Liu <liugang@easycorp.ltd>
  7. * @package flow
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. include 'header.html.php';
  12. $fieldList = defineFieldList("{$flow->module}.create");
  13. $fieldList = $this->flow->buildFormFields($fieldList, $fields, $childFields, null, array(), $relations, 'create');
  14. formGridPanel
  15. (
  16. on::change('.prevField', 'loadPrevData(e.target, e.target.value)'),
  17. on::init()->call('loadAllPrevData'),
  18. set::title($title),
  19. set::url($actionURL),
  20. set::defaultMode('full'),
  21. set::ajax(array('submitDisabledValue' => false)),
  22. set::modeSwitcher(false),
  23. set::fields($fieldList)
  24. );
  25. html($formulaScript);
  26. html($linkageScript);