Ignore:
Timestamp:
Nov 11, 2014 4:41:59 PM (11 years ago)
Author:
quyenla
Message:

Thong ke cong tac vien

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/admin/controllers/report.php

    r445 r461  
    184184        $data['paging'] = pagging($data);
    185185        foreach ($data['paidlogs'] as $index => $paidlog) {
    186             $data['paidlogs'][$index]['username'] = $this->get_username($paidlog['us_id']);
     186            $data['paidlogs'][$index]['username'] = @$this->get_username($paidlog['us_id']);
    187187        }
    188188
     
    210210    public function test() {
    211211
    212 
     212/*
    213213        for ($i = 1; $i <= 5000; $i++) {
    214214            $input['us_id'] = rand(1, 100);
     
    222222
    223223        die();
    224 
    225         for ($i = 1; $i <= 100; $i++) {
     224*/
     225        for ($i = 1; $i <= 200; $i++) {
    226226            $input['us_id'] = $i;
    227227            $input['cellphone'] = "01234567" . (100 + $i);
     
    229229            $input['acc_balanced'] = rand(100000, 1000000);
    230230            $input['expire_date'] = date("Y-m-d H:i:s", time());
    231             $input['created_time'] = date("Y-m-d H:i:s", time());
    232             $input['updated_time'] = date("Y-m-d H:i:s", time());
     231            $time = (rand((time() - (12 * 30 * 24 * 60 * 60)), time()));
     232            $input['created_time'] = date("Y-m-d H:i:s", $time);
     233            $input['updated_time'] = date("Y-m-d H:i:s", $time);
    233234            $this->load->model('user_model');
    234235            $this->user_model->insert($input);
Note: See TracChangeset for help on using the changeset viewer.