|
@@ -1232,6 +1232,7 @@ func (this *MyChartController) MyChartList() {
|
|
|
|
|
|
myChartId, _ := this.GetInt("MyChartId")
|
|
|
isShared, _ := this.GetBool("IsShared")
|
|
|
+ keyword := this.GetString("Keyword")
|
|
|
|
|
|
var total int
|
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|
|
@@ -1268,6 +1269,14 @@ func (this *MyChartController) MyChartList() {
|
|
|
chartAdminId = myClassify.AdminId
|
|
|
}
|
|
|
}
|
|
|
+ if keyword != "" {
|
|
|
+ if this.Lang == utils.LANG_EN {
|
|
|
+ condition += " AND (b.chart_name_en like ?) "
|
|
|
+ } else {
|
|
|
+ condition += " AND (b.chart_name like ?) "
|
|
|
+ }
|
|
|
+ pars = append(pars, "%"+keyword+"%")
|
|
|
+ }
|
|
|
|
|
|
condition += " AND (a.admin_id = ? OR d.is_public = 1)"
|
|
|
pars = append(pars, chartAdminId)
|