def loadManageFeedback(): if session['loginRole']!= 'admin': return redirect(url_for('login')) feedbackDAO = FeedbackDAO() feedbackDict = feedbackDAO.searchFeedback() return render_template('admin/manageFeedback.html',feedbackDict=feedbackDict)
def viewFeedback(): if session['loginDictrole'] == 'admin': feedbackDAO = FeedbackDAO() feedbackVO = FeedbackVO() feedbackVO.feedbackActiveStatus = 'activate' feedbackDict = feedbackDAO.searchFeedback(feedbackVO) return render_template('admin/viewfeedback.html', data2=feedbackDict) return render_template('admin/signin.html')
def viewFeedback(): try: if session['loginRole'] == 'admin': feedbackDAO = FeedbackDAO() feedbackDict = feedbackDAO.searchFeedback() return render_template('admin/viewFeedback.html', feedbackDict=feedbackDict) else: feedbackDAO = FeedbackDAO() feedbackVO = FeedbackVO() feedbackVO.feedbackFrom_LoginId = session['loginId'] feedbackDict = feedbackDAO.searchFeedbackById(feedbackVO) return render_template('user/viewFeedback.html', feedbackDict=feedbackDict) except: return render_template('admin/login.html')