* Finish task#8467.

This commit is contained in:
hufangzhou
2020-11-24 09:08:13 +08:00
parent 6f8d41b767
commit 6d25f07fa8
8 changed files with 28 additions and 6 deletions
+15
View File
@@ -1416,4 +1416,19 @@ class program extends control
$this->display();
}
/**
* View a program.
*
* @param int $programID
* @access public
* @return void
*/
public function view($programID)
{
$program = $this->program->getPGMByID($programID);
if(!$program) die(js::error($this->lang->notFound) . js::locate('back'));
echo $this->fetch('program', 'PGMProduct', "programID=$programID");
}
}