/*
后台图片处理
*/
func (this *ImageController) Pictureedit() {
	/*
		相册显示
	*/
	var status int
	status1 := this.GetString("status")
	if status1 == "" {
		status = 0
	} else {
		status, _ = strconv.Atoi(status1)
	}
	if status == 0 {
		this.Data["yifabu"] = true
	} else {
		this.Data["yifabu"] = false
	}
	userid := this.GetSession("sessionuid")
	userid1 := userid.(int)
	pictureinfo, err := models.Pictureread(userid1, status)
	//获取已发布和回收站数量
	count1, err := models.Imagereadcount(userid, 0)
	count2, err := models.Imagereadcount(userid, 1)
	if err != nil {
		return
	}
	this.Data["count1"] = count1
	this.Data["count2"] = count2
	this.Data["pictureinfo"] = pictureinfo
	this.TplNames = "message/image.html"
}
/*
相册显示
*/
func (this *IndexController) Show() {
	userid := this.GetSession("sessionuid")
	userid1 := userid.(int)
	pictureinfo, err := models.Pictureread(userid1, 0)
	if err != nil {
		return
	}
	this.Data["pictureinfo"] = pictureinfo
	this.TplNames = "blog/xc.html"
}