planblock.php 1.5 KB

1234567891011121314
  1. <?php
  2. global $lang, $app;
  3. $app->loadLang('productplan');
  4. $config->block->plan = new stdclass();
  5. $config->block->plan->dtable = new stdclass();
  6. $config->block->plan->dtable->fieldList = array();
  7. $config->block->plan->dtable->fieldList['id'] = array('name' => 'id', 'title' => $lang->idAB, 'type' => 'id', 'sort' => 'number');
  8. $config->block->plan->dtable->fieldList['title'] = array('name' => 'title', 'title' => $lang->productplan->title, 'type' => 'title', 'sort' => true, 'flex' => 1, 'link' => array('module' => 'productplan', 'method' => 'view', 'params' => 'planID={id}'));
  9. $config->block->plan->dtable->fieldList['product'] = array('name' => 'product', 'title' => $lang->productplan->product, 'type' => 'text', 'sort' => true, 'minWidth' => 100, 'link' => array('module' => 'product', 'method' => 'browse', 'params' => 'productID={product}'));
  10. $config->block->plan->dtable->fieldList['hour'] = array('name' => 'hour', 'title' => $lang->productplan->hour, 'type' => 'text', 'sort' => 'number', 'align' => 'right');
  11. $config->block->plan->dtable->fieldList['bugs'] = array('name' => 'bugs', 'title' => $lang->productplan->bugs, 'type' => 'number', 'sort' => true);
  12. $config->block->plan->dtable->fieldList['begin'] = array('name' => 'begin', 'title' => $lang->productplan->begin, 'type' => 'date', 'sort' => 'date');
  13. $config->block->plan->dtable->fieldList['end'] = array('name' => 'end', 'title' => $lang->productplan->end, 'type' => 'date', 'sort' => 'date');