Skip to content

Commit 9f53617

Browse files
committed
添加部分模板代码
1 parent 17f642f commit 9f53617

File tree

8 files changed

+69
-1
lines changed

8 files changed

+69
-1
lines changed

application/index/controller/Bug.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* User: zhangcheng
5+
* Date: 2017/12/18 0018
6+
* Time: 8:06
7+
*/
8+
9+
namespace app\index\controller;
10+
11+
use app\index\service\Bug as BugService;
12+
13+
class Bug extends Auth
14+
{
15+
public function index()
16+
{
17+
$priority_status = $this->request->param('priority_status');
18+
19+
$this->assign('title',lang('Bug List'));
20+
21+
return view('bug/index');
22+
}
23+
}

application/index/controller/Dashboard.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@
1111

1212
class Dashboard extends Auth
1313
{
14+
15+
1416
public function index()
1517
{
18+
$this->assign('title',lang('Dashboard'));
1619

1720
return view('dashboard/index');
1821
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* User: zhangcheng
5+
* Date: 2017/12/18 0018
6+
* Time: 8:03
7+
*/
8+
9+
namespace app\index\controller;
10+
11+
12+
class Project extends Auth
13+
{
14+
15+
public function index()
16+
{
17+
$this->assign('title',lang('Project List'));
18+
return view('project/index');
19+
}
20+
21+
}

application/index/service/Bug.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* User: zhangcheng
5+
* Date: 2017/12/18 0018
6+
* Time: 8:11
7+
*/
8+
9+
namespace app\index\service;
10+
11+
12+
class Bug
13+
{
14+
15+
public static function getBugWithPriority($user_id,$priority_status,$page)
16+
{
17+
18+
}
19+
}

application/index/view/bug/index.html

Whitespace-only changes.

application/index/view/extend/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
<span class="icon-bar"></span>
149149
<span class="icon-bar"></span>
150150
</button>
151-
<a class="navbar-brand" href="dashboard.html#"> Dashboard </a>
151+
<a class="navbar-brand" href="dashboard.html#"> {$title|default=''} </a>
152152
</div>
153153
<div class="collapse navbar-collapse">
154154
<ul class="nav navbar-nav navbar-right">

application/index/view/project/index.html

Whitespace-only changes.

application/lang/zh-cn.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@
1717
'My Profile'=>'我的简历',
1818
'Edit Profile'=>'修改简历',
1919
'Settings'=>'设置',
20+
'Project List'=>'项目列表',
21+
'Bug List'=>'Bug列表',
2022

2123
];

0 commit comments

Comments
 (0)