def userViewPackage():
    try:
        packageDAO = PackageDAO()
        packageVOList = packageDAO.viewPackage()
        print("__________________", packageVOList)
        return render_template('user/viewPackage.html',
                               packageVOList=packageVOList)
    except Exception as ex:
        print(ex)
Ejemplo n.º 2
0
def userViewPackage():
    try:
        if adminLoginSession() == 'user':
            packageDAO = PackageDAO()
            packageVOList = packageDAO.viewPackage()
            return render_template('user/viewPackage.html', packageVOList=packageVOList)
        else:
            return redirect(url_for('adminLogoutSession'))
    except Exception as ex:
        print(ex)
Ejemplo n.º 3
0
def adminViewPackage():
    try:
        if adminLoginSession() == 'admin':
            packageDAO = PackageDAO()
            packageVOList = packageDAO.viewPackage()

            return render_template('admin/viewPackage.html',
                                   packageVOList=packageVOList)
        else:
            adminLogoutSession()
    except Exception as ex:
        print(ex)
def userLoadPurchase():
    try:

        if adminLoginSession() == 'user':
            packageDAO = PackageDAO()
            packageVOList = packageDAO.viewPackage()
            return render_template('user/addPurchase.html',
                                   packageVOList=packageVOList)

        else:
            adminLogoutSession()
    except Exception as ex:
        print(ex)