diff --git a/module/program/model.php b/module/program/model.php
index adb4d1b210..95be4163fd 100644
--- a/module/program/model.php
+++ b/module/program/model.php
@@ -289,7 +289,7 @@ class programModel extends model
public function getPGMList($status = 'all', $orderBy = 'id_desc', $pager = NULL)
{
return $this->dao->select('*')->from(TABLE_PROGRAM)
- ->where('type')->eq('program')
+ ->where('type')->in('program,project')
->andWhere('deleted')->eq(0)
->beginIF(!$this->app->user->admin)->andWhere('id')->in($this->app->user->view->programs)->fi()
->beginIF($status != 'all')->andWhere('status')->eq($status)->fi()
diff --git a/module/program/view/pgmbrowsebylist.html.php b/module/program/view/pgmbrowsebylist.html.php
index 89200998ce..d19c7da507 100644
--- a/module/program/view/pgmbrowsebylist.html.php
+++ b/module/program/view/pgmbrowsebylist.html.php
@@ -51,8 +51,11 @@
code;?> |
- type == 'program' ? $this->createLink('program', 'pgmview', "programID=$program->id", '', '', $program->id) : $this->createLink('program', 'prjindex', "programID=$program->id", '', '', $program->id);?>
- " . $program->name);?>
+ type == 'program'):?>
+ createLink('program', 'pgmview', "programID=$program->id", '', '', $program->id), " " . $program->name);?>
+
+ createLink('program', 'index', "programID=$program->id", '', '', $program->id), " " . $program->name);?>
+
|
project->statusList, $program->status, '');?> |
begin;?> |
@@ -60,6 +63,7 @@
budget . ' ' . zget($lang->program->unitList, $program->budgetUnit);?> |
PM);?> |
+ type == 'program'):?>
id", $program, 'list', 'group');?>
id", $program, 'list', 'persons');?>
id", $program, 'list', 'play', '', 'iframe', true);?>
@@ -69,6 +73,17 @@
createLink("program", "pgmedit", "programID=$program->id"), "", '', "class='btn' title='{$lang->edit}'");?>
id", '', 'list', 'treemap-alt', '', '', '', '', $this->lang->program->PGMChildren);?>
createLink("program", "pgmdelete", "programID=$program->id"), "", 'hiddenwin', "class='btn' title='{$lang->delete}'");?>
+
+ id", $program, 'list', 'group');?>
+ id", $program, 'list', 'persons');?>
+ id", $program, 'list', 'play', '', 'iframe', true);?>
+ id", $program, 'list', 'magic', '', 'iframe', true);?>
+ id", $program, 'list', 'pause', '', 'iframe', true);?>
+ id", $program, 'list', 'off', '', 'iframe', true);?>
+ createLink("program", "prjedit", "programID=$program->id"), "", '', "class='btn' title='{$lang->edit}'");?>
+ id", '', 'list', 'treemap-alt', '', 'disabled', '', '', $this->lang->program->PGMChildren);?>
+ createLink("program", "prjdelete", "programID=$program->id"), "", 'hiddenwin', "class='btn' title='{$lang->delete}'");?>
+
|
|
diff --git a/module/program/view/prjedit.html.php b/module/program/view/prjedit.html.php
index 17984717b5..2410d0d199 100644
--- a/module/program/view/prjedit.html.php
+++ b/module/program/view/prjedit.html.php
@@ -102,7 +102,7 @@
| program->auth;?> |
- program->PRJAuthList, $project->privway, '', 'block');?> |
+ program->PRJAuthList, $project->auth, '', 'block');?> |
| project->acl;?> |
diff --git a/www/theme/default/style.css b/www/theme/default/style.css
index f0e6b45d44..67c842d9c7 100644
--- a/www/theme/default/style.css
+++ b/www/theme/default/style.css
@@ -55,5 +55,5 @@ a.showMoreImage:hover {opacity: 1;}
#morePRJ {display:none; max-height: 420px; position: fixed; bottom: 0; left: 100px; z-index: 999; background: white; padding: 20px 10px; height: 420px; margin-bottom: 40px; border: 1px solid #efefef}
#morePRJ > .list-group {height: 400px; min-width: 150px; max-width:200px;}
-#pgmCommonAction>.btn { height: 50px; padding: 10px 15px; margin: 0; font-size: 14px; font-weight: 700; line-height: 30px; color: #fff; background: 0 0; border: none; }
+#pgmCommonAction>.btn { height: 50px; padding: 10px 15px; margin: 0; line-height: 30px; font-size: 14px; font-weight: 700; color: #fff; background: 0 0; border: none; }
#pgmCommonAction>.btn>.icon{ position: relative; top: -4px; display: inline-block; font-size: 18px; font-weight: 400; vertical-align: middle; }