* Perfect more projects.

This commit is contained in:
leiyong
2020-09-21 11:15:19 +08:00
parent c867f000c9
commit 5181957506
5 changed files with 89 additions and 45 deletions
+16
View File
@@ -1279,4 +1279,20 @@ class program extends control
$this->display('group', 'edit');
}
/**
* Gets the most recently created project.
*
* @access public
* @return string
*/
public function ajaxGetRecentProjects()
{
$recentProjects = $this->program->getPRJParams(0, 15);
if(!empty($recentProjects))
{
foreach($recentProjects as $project) echo html::a(helper::createLink('project', 'view', 'projectID=' . $project->id), '<i class="icon icon-menu-doc"></i>' . $project->name);
}
}
}