batchcreate.html.php 1.4 KB

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * The batchCreate view of budget module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Guangming Sun<sunguangming@chandao.com>
  8. * @package budget
  9. * @link http://www.zentao.net
  10. */
  11. namespace zin;
  12. $items = array();
  13. $items[] = array('name' => 'id', 'label' => $lang->idAB, 'control' => 'index', 'width' => '40px');
  14. $items[] = array('name' => 'stage', 'label' => $lang->budget->stage, 'control' => array('control' => 'picker', 'items' => $plans), 'width' => '200px', 'required' => true);
  15. $items[] = array('name' => 'subject', 'label' => $lang->budget->subject, 'control' => array('control' => 'picker', 'items' => $subjects), 'width' => '200px', 'required' => true);
  16. $items[] = array('name' => 'name', 'label' => $lang->budget->name, 'control' => 'input', 'width' => '250px', 'required' => true);
  17. $items[] = array('name' => 'amount', 'label' => $lang->budget->amount, 'control' => 'input', 'width' => '150px');
  18. $items[] = array('name' => 'desc', 'label' => $lang->budget->desc, 'control' => 'input', 'width' => '180px');
  19. formBatchPanel
  20. (
  21. set::title($lang->budget->batchCreate),
  22. set::url(createLink('budget', 'batchCreate', "projectID=$projectID")),
  23. set::items($items),
  24. set::minRows(10)
  25. );