Ignore:
Timestamp:
Apr 7, 2015 2:17:28 PM (10 years ago)
Author:
dungnv
Message:
 
Location:
pro-violet-viettel/sourcecode/application/modules/frontend/controllers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified pro-violet-viettel/sourcecode/application/modules/frontend/controllers/home.php

    r883 r884  
    55/**
    66 * Home Class
     7 * @todo Control main actions
     8 * @see index()
     9 * @see singin()
     10 * @see signout()
    711 *
    812 * @author dzungnv02
     
    1822        }
    1923       
     24        /**
     25         * function index
     26         * @todo checked is sign-in then redirect to lecture page else redirect to sign-in page
     27         */
    2028        public function index() {
    2129                $user_info = $this->session->userdata ( 'userInfo' );
     
    4149        }
    4250       
     51        /**
     52         * function signin
     53         * @todo Execute sign-in action
     54         */
    4355        public function signin() {
    4456                $username = $this->input->post ( 'username', TRUE );
     
    8395        }
    8496       
     97        /**
     98         * funtion signout
     99         * @todo Execute signout action
     100         */
    85101        public function signout() {
    86102                //$this->session->sess_destroy ();
     
    92108        }
    93109       
    94         public function register() {
    95                 $this->load->model ( 'user_model' );
    96                 $collaborator = '0979947802';
    97                 $serviceID = 1;
    98                 $username = '0978618113';
    99                 $commandcode = 'commandcode1';
    100                 $info = 'ABCD';
    101                 // $receiveTime = time();
    102                 $receiveTime = date ( "Y-m-d H:i:s" );
    103                 $data = $this->user_model->register ( $username, $collaborator );
    104                 echo $data;
    105         }
    106        
    107         public function change_profile() {
    108                 $this->load->model ( 'user_model' );
    109                 $sentNumber = '0979947802';
    110                 $serviceID = 1;
    111                 $password = '2933369';
    112                 $commandcode = "SBG";
    113                 $receiveID = '0977274183';
    114                 $info = "SBG TD";
    115                 $receiveTime = date ( "Y-m-d H:i:s" );
    116                 $status = 0;
    117                 $data = $this->user_model->changeProfile ( $sentNumber, $receiveID, $password, $status );
    118                 echo $data;
    119         }
    120        
    121         public function change_password() {
    122                 $this->load->model ( 'user_model' );
    123                 $sentNumber = '0979947802';
    124                 $password = '935322';
    125                 $data = $this->user_model->changePassword ( $sentNumber, $password );
    126                 echo $data;
    127         }
    128        
    129         public function register_vip() {
    130                 $this->load->model ( 'user_model' );
    131                 $sentNumber = '0979947802';
    132                 $p_code = 1;
    133                 $serviceID = 1;
    134                 $commandcode = "SBG";
    135                 $vipNum = 1;
    136                 $mainAccBalanced = 15000;
    137                 $info = "SBG DK VIP1";
    138                 $receiveTime = date ( "Y-m-d H:i:s" );
    139                 $status = 0;
    140                 $data = $this->user_model->registerVip ( $sentNumber, $p_code );
    141                 echo $data;
    142         }
    143        
    144         public function recharge_account() {
    145                 $this->load->model ( 'user_model' );
    146                 $sentNumber = '0979947802';
    147                 $receiveID = '01662860000';
    148                 $serviceID = 1;
    149                 $commandcode = "SBG";
    150                 $vipNum = 1;
    151                 $mainAccBalanced = 15000;
    152                 $amount = 1000;
    153                 $info = "SBG NAP 10000";
    154                 $status = 0;
    155                 $receiveTime = date ( "Y-m-d H:i:s" );
    156                 $data = $this->user_model->rechargeAccount ( $sentNumber, $amount );
    157                 //$data = $this->user_model->insertPaidlog($sentNumber, $sentNumber, 2, $amount, $receiveTime);
    158                 echo $data;
    159         }
    160        
    161         public function is_viettel($number) {
     110        /**
     111         * function is_viettel
     112         * @param string $number
     113         * @return 1:true;0:false
     114         * @todo checked the phone number is viettel subscriber
     115         */
     116        private function is_viettel($number) {
    162117                $viettel = array (
    163118                                '096',
  • TabularUnified pro-violet-viettel/sourcecode/application/modules/frontend/controllers/lecture.php

    r821 r884  
    66/**
    77 * Lecture Class
    8  *
     8 * @todo Show lecture editor software
    99 * @author dzungnv02
    1010 *
     
    1212class Lecture extends MX_Controller {
    1313
     14        /**
     15         * function __construct
     16         * @todo constructor of class
     17         */
    1418    public function __construct() {
    1519        parent::__construct();
     
    1822    }
    1923
     24    /**
     25     * function index
     26     * @todo Show lecture editor
     27     */
    2028    public function index() {
    2129        $this->load->model('User_model');
  • TabularUnified pro-violet-viettel/sourcecode/application/modules/frontend/controllers/user.php

    r883 r884  
    11<?php
    2 
    32if (!defined('BASEPATH'))
    43    exit('No direct script access allowed');
    54
     5/**
     6 * Class User
     7 * @todo Execute actions of user
     8 *
     9 * @see function profile
     10 * @see function packageRegister
     11 * @see function finishRegisterPackage
     12 * @see function regpackage
     13 * @see function update_info
     14 * @see function update_user
     15 * @see function change_password
     16 * @see function trade_history
     17 * @see function getUserInfor
     18 * @see function adminUpdateUser
     19 * @see function regis_history
     20 * 
     21 * @author dungnv02
     22 *
     23 */
    624class User extends MX_Controller {
    725
Note: See TracChangeset for help on using the changeset viewer.