diff --git a/www/application/config/routes.php b/www/application/config/routes.php index 3192d532..82e48837 100644 --- a/www/application/config/routes.php +++ b/www/application/config/routes.php @@ -53,3 +53,5 @@ $route['default_controller'] = 'login'; $route['404_override'] = 'Wrb404'; $route['translate_uri_dashes'] = FALSE; $route['auth/(.+)'] = 'home/auth/$1'; + +$route['cardreciepts/(.+)'] = 'paymnt/cardreciepts/$1'; diff --git a/www/application/controllers/Paymnt.php b/www/application/controllers/Paymnt.php index b231b67e..dc31c892 100644 --- a/www/application/controllers/Paymnt.php +++ b/www/application/controllers/Paymnt.php @@ -71,9 +71,13 @@ class Paymnt extends Users_Controller { if ($res == PHP_API_OK) { // we are good + $this->session->set_flashdata('in',1); + redirect("paymnt/cardreciepts"); + } else { - // we still have error + $this->session->set_flashdata('in',1); + redirect("paymnt/cardreciepts"); } } // no error(s) from card test PHP model @@ -88,4 +92,11 @@ class Paymnt extends Users_Controller { return $this->paymus(); } } + + public function cardreciepts(){ + echo "ameye olu"; + $data = array(); + + $this->RenderUserPage('users/view_payreciepts', $data); // return back to card page + } } diff --git a/www/application/views/users/common/userstrip.php b/www/application/views/users/common/userstrip.php index 570783af..fe6084e7 100644 --- a/www/application/views/users/common/userstrip.php +++ b/www/application/views/users/common/userstrip.php @@ -17,56 +17,21 @@ if ($_SESSION["offer_interest_count"] + $_SESSION['past_duejobs_count'] > 0) { if ($_SESSION['past_duejobs_count'] > 0) { ?> - - -
- -
- - - + - - 0) { ?> - - -
- -
- - - + - + + +
+ +
+ + + +
+ + +
+ + + +
+ +
+ +