func (VS *Server) showCategories(c *gin.Context) {
	cat := VS.getAllCategories(c, "h_data", "showCategories", "cat := v.getAllCategories")
	catHTML := VS.toViewCategories(c, cat)
	types := VS.getAllCategoryType(c, "h_data", "showCategories", "types := VS.getAllCategoryType")
	JSON, err := json.Marshal(catHTML)
	VS.checkOperation(c, "h_date", "showCategories", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"cat":   catHTML,
		"types": types,
		"JSON":  string(JSON),
	}, "categories.html")
}
// Shows the screen with all the Categories in the database
Shows the screen with all the Categories in the database
// Shows the screen with all the Categories in the database
func (VS *Server) showCategories(c *gin.Context) {
	cat := VS.getAllCategories(c, "h_data", "showCategories", "cat := v.getAllCategories")
	catHTML := VS.toViewCategories(c, cat)
	types := VS.getAllCategoryType(c, "h_data", "showCategories", "types := VS.getAllCategoryType")
	JSON, err := json.Marshal(catHTML)
	VS.checkOperation(c, "h_date", "showCategories", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"cat":   catHTML,
		"types": types,
		"JSON":  string(JSON),
	}, "categories.html")
}
func ( VS * Server ) showCategories ( c * gin . Context ) { cat := VS . getAllCategories ( c , " " , " " , " " ) catHTML := VS . toViewCategories ( c , cat ) types := VS . getAllCategoryType ( c , " " , " " , " " ) JSON , err := json . Marshal ( catHTML ) VS . checkOperation ( c , " " , " " , " " , err ) render ( c , gin . H { " " : catHTML , " " : types , " " : string ( JSON ) , } , " " ) }
Shows the screen with all the Categories in the database
Shows the screen with all the Categories in the database