* @package product * @link https://www.zentao.net */ namespace zin; if($this->app->tab == 'project') { $link = createLink('project', 'manageProducts', "projectID=$objectID"); $tab = 'project'; $text = $lang->project->manageProducts; } elseif($this->app->tab == 'execution') { $link = createLink('execution', 'manageProducts', "executionID=$objectID"); $tab = 'execution'; $text = $lang->execution->manageProducts; } else { $link = createLink('product', 'create', "programID=0&extra=&from=$moduleName"); $tab = 'product'; $text = $lang->product->create; } div ( setClass('table-empty-tip bg-canvas h-40 flex items-center justify-center'), span ( setClass('text-muted'), $lang->product->noProduct ), a ( setClass('btn primary-pale'), set::href($link), setData('app', $tab), icon('plus'), $text ) ); render();