function daftarkanCC()
 {
     $creditCardId = NULL;
     try {
         // If CVV2 is not required, we need to remove it. We cannot keep it empty or '' as it is considered your CVV2 is set to ''
         if (isset($_POST['user']['credit_card']['cvv2']) && trim($_POST['user']['credit_card']['cvv2']) == '') {
             unset($_POST['user']['credit_card']['cvv2']);
         }
         // User can configure credit card info later from the
         // profile page or can use paypal as his funding source.
         if (trim($_POST['user']['credit_card']['number']) != "") {
             $paypal = new PaypalWrap();
             $creditCardId = $paypal->saveCard($_POST['user']['credit_card']);
             $acc = new Account();
             $acc->getByID(Account::getMyID());
             $acc->admin_creditcardID = $creditCardId;
             $acc->load = 1;
             $acc->save();
         }
         //            $userId = addUser($_POST['user']['email'], $_POST['user']['password'], $creditCardId);
     } catch (\PayPal\Exception\PPConnectionException $ex) {
         $errorMessage = $ex->getData() != '' ? parseApiError($ex->getData()) : $ex->getMessage();
     } catch (Exception $ex) {
         $errorMessage = $ex->getMessage();
     }
     return $creditCardId;
 }
Esempio n. 2
0
 public function overwriteRead($return)
 {
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->post_author)) {
             $aut = new Account();
             $aut->getByID($obj->post_author);
             $obj->post_author = $aut->admin_nama_depan;
         }
         if (isset($obj->post_content)) {
             $obj->post_content = stripslashes($obj->post_content);
         }
         if (isset($obj->post_image)) {
             $obj->post_image = \Leap\View\InputFoto::getAndMakeFoto($obj->post_image, "post_image_" . $obj->post_image);
         }
         /*if(isset($obj->post_gallery_id)){
               
               $pc = new PageContainer();
               $pc->getByID($obj->post_gallery_id);
               $obj->post_gallery_id = $pc->container_name;
           
           }*/
     }
     //pr($return);
     return $return;
 }
 public function overwriteRead($return)
 {
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->news_postdate)) {
             $obj->news_postdate = date("d-m-Y", strtotime($obj->news_postdate));
         }
         if (isset($obj->news_updatedate)) {
             $obj->news_updatedate = date("d-m-Y", strtotime($obj->news_updatedate));
         }
         if (isset($obj->news_validity_begin)) {
             $obj->news_validity_begin = date("d-m-Y", strtotime($obj->news_validity_begin));
         }
         if (isset($obj->news_validity_end)) {
             $obj->news_validity_end = date("d-m-Y", strtotime($obj->news_validity_end));
         }
         if (isset($obj->news_author)) {
             $acc = new Account();
             $acc->getByID($obj->news_author);
             $obj->news_author = $acc->admin_nama_depan;
         }
         if (isset($obj->news_channel_id)) {
             $acc = new NewsChannel();
             $acc->getByID($obj->news_channel_id);
             $obj->news_channel_id = $acc->channel_name;
         }
     }
     //pr($return);
     return $return;
 }
 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->role_admin_id)) {
             $acc = new Account();
             $acc->getByID($obj->role_admin_id);
             $obj->role_admin_id = $acc->admin_nama_depan;
         }
     }
     return $return;
 }
    function updateAccount()
    {
        $arr = array();
        $arr[] = ['user_id' => '1', 'username' => 'admin', 'nama_depan' => 'Elroy Hardoyo', 'role' => 'master_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => '', 'level' => ''];
        $arr[] = ['user_id' => '20', 'username' => 'herman-tan', 'nama_depan' => 'Herman tan', 'role' => 'master_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'BOD', 'level' => 'BOD'];
        $arr[] = ['user_id' => '21', 'username' => 'sutan', 'nama_depan' => 'Sutan Pati', 'role' => 'master_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Change Management Office', 'level' => 'General Manager'];
        $arr[] = ['user_id' => '22', 'username' => 'yamky', 'nama_depan' => 'Yamky Gunadi', 'role' => 'kpi_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Business Controller', 'level' => 'Manager'];
        $arr[] = ['user_id' => '23', 'username' => 'budi-wijaya2', 'nama_depan' => 'Budi Wijaya', 'role' => 'master_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Information Technology', 'level' => 'General Manager'];
        $arr[] = ['user_id' => '24', 'username' => 'radix', 'nama_depan' => 'Radix', 'role' => 'webapps_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Information Technology', 'level' => 'Manager'];
        $arr[] = ['user_id' => '25', 'username' => 'adi-budhi', 'nama_depan' => 'Adi Budhi', 'role' => 'webapps_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Information Technology', 'level' => 'Executive'];
        $arr[] = ['user_id' => '26', 'username' => 'rika-anggraini', 'nama_depan' => 'Rika Anggraini', 'role' => 'Integrator_Admi', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Corporate Communication', 'level' => 'General Manager'];
        $arr[] = ['user_id' => '27', 'username' => 'apriyanto', 'nama_depan' => 'Apriyanto', 'role' => 'Integrator_Admi', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Corporate Communication', 'level' => 'Manager'];
        $arr[] = ['user_id' => '28', 'username' => 'christopher', 'nama_depan' => 'Christopher', 'role' => 'Values_Admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Corporate Communication', 'level' => 'Executive'];
        $arr[] = ['user_id' => '29', 'username' => 'anastasia-desy', 'nama_depan' => 'Anastasia Desy', 'role' => 'master_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Change Management Office', 'level' => 'Executive'];
        $arr[] = ['user_id' => '30', 'username' => 'asjry2', 'nama_depan' => 'Asjry Mamora Lubis', 'role' => 'master_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Change Management Office', 'level' => 'Manager'];
        $arr[] = ['user_id' => '31', 'username' => 'yanuar-ishak', 'nama_depan' => 'Yanuar Ishak', 'role' => 'Theme_Admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Store Marketing', 'level' => 'Executive'];
        $arr[] = ['user_id' => '32', 'username' => 'herman-darmawan', 'nama_depan' => 'herman-darmawan', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '33', 'username' => 'amanah-nuraini', 'nama_depan' => 'amanah-nuraini', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '34', 'username' => 'maulana-ersa', 'nama_depan' => 'maulana-ersa', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '35', 'username' => 'otniel-yosua', 'nama_depan' => 'otniel-yosua', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '36', 'username' => 'anastasia-regina', 'nama_depan' => 'anastasia-regina', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '37', 'username' => 'mariana', 'nama_depan' => 'mariana', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '38', 'username' => 'biusr01', 'nama_depan' => 'biusr01', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '39', 'username' => 'yanyan', 'nama_depan' => 'yanyan', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '40', 'username' => 'portalusr01', 'nama_depan' => 'portalusr01', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '41', 'username' => 'spusr01', 'nama_depan' => 'spusr01', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '42', 'username' => 'spusr02', 'nama_depan' => 'spusr02', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '43', 'username' => 'adminsql2', 'nama_depan' => 'adminsql2', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '44', 'username' => 'paul-hanson', 'nama_depan' => 'paul-hanson', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '45', 'username' => 'join', 'nama_depan' => 'join', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '46', 'username' => 'esbusr01', 'nama_depan' => 'esbusr01', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '47', 'username' => 'adminmis', 'nama_depan' => 'adminmis', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '48', 'username' => 'shutdown', 'nama_depan' => 'shutdown', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '49', 'username' => 'hris', 'nama_depan' => 'hris', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '50', 'username' => 'trf', 'nama_depan' => 'trf', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '51', 'username' => 's1mon', 'nama_depan' => 's1mon', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '52', 'username' => 'store-apps', 'nama_depan' => 'store-apps', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '53', 'username' => 'soegart', 'nama_depan' => 'soegart', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '54', 'username' => 'dwhusr01', 'nama_depan' => 'dwhusr01', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '2', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '55', 'username' => 'kettleprod', 'nama_depan' => 'kettleprod', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '56', 'username' => 'adminsql3', 'nama_depan' => 'adminsql3', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '57', 'username' => 'adminsql5', 'nama_depan' => 'adminsql5', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '58', 'username' => 'cisco', 'nama_depan' => 'cisco', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '59', 'username' => 'adminsql', 'nama_depan' => 'adminsql', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '60', 'username' => 'openfire', 'nama_depan' => 'openfire', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '61', 'username' => 'billing', 'nama_depan' => 'billing', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '62', 'username' => 'adminsql4', 'nama_depan' => 'adminsql4', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '63', 'username' => 'johnlee', 'nama_depan' => 'johnlee', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '64', 'username' => 'etlprod', 'nama_depan' => 'etlprod', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '65', 'username' => 'etldev', 'nama_depan' => 'etldev', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '66', 'username' => 'hariyanto', 'nama_depan' => 'hariyanto', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '67', 'username' => 'adi-tirtana', 'nama_depan' => 'adi-tirtana', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '68', 'username' => '.New_User.', 'nama_depan' => '.New_User.', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '69', 'username' => 'bizcontroller', 'nama_depan' => 'bizcontroller', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '70', 'username' => 'krisna-soetanto', 'nama_depan' => 'krisna-soetanto', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Manager'];
        $arr[] = ['user_id' => '71', 'username' => 'iwan-setyawan', 'nama_depan' => 'iwan-setyawan', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '72', 'username' => 'nisya-shasya', 'nama_depan' => 'nisya-shasya', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '73', 'username' => 'tirta-ayu', 'nama_depan' => 'tirta-ayu', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '74', 'username' => 'helena-esty', 'nama_depan' => 'helena-esty', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '75', 'username' => 'report-center', 'nama_depan' => 'report-center', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '76', 'username' => 'nisya', 'nama_depan' => 'nisya', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '77', 'username' => 'exi-maulana', 'nama_depan' => 'exi-maulana', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '78', 'username' => 'simon', 'nama_depan' => 'simon', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '79', 'username' => 'susan', 'nama_depan' => 'susan', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '80', 'username' => 'juwita-puspa', 'nama_depan' => 'juwita-puspa', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '81', 'username' => 'willie', 'nama_depan' => 'willie', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Business Controller', 'level' => 'General Manager'];
        $arr[] = ['user_id' => '82', 'username' => 'sayid-abi', 'nama_depan' => 'sayid-abi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '83', 'username' => 'mutiari', 'nama_depan' => 'mutiari', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Distribution Center', 'level' => 'Staff'];
        $arr[] = ['user_id' => '84', 'username' => 'syahri-amin', 'nama_depan' => 'syahri-amin', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store & Project Development', 'level' => 'Executive'];
        $arr[] = ['user_id' => '85', 'username' => 'yuni-katri', 'nama_depan' => 'yuni-katri', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Regulatory & Compliance', 'level' => 'Staff'];
        $arr[] = ['user_id' => '86', 'username' => 'arif-wahyudi', 'nama_depan' => 'arif-wahyudi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '87', 'username' => 'cindy-juliane', 'nama_depan' => 'cindy-juliane', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Customer Relation Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '88', 'username' => 'tri-haksoro', 'nama_depan' => 'tri-haksoro', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Distribution Center', 'level' => 'Manager'];
        $arr[] = ['user_id' => '89', 'username' => 'nazarrudin', 'nama_depan' => 'nazarrudin', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '90', 'username' => 'beatrix-natalia', 'nama_depan' => 'beatrix-natalia', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '91', 'username' => 'teknisi-ho', 'nama_depan' => 'teknisi-ho', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Building Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '92', 'username' => 'regina-ierene', 'nama_depan' => 'regina-ierene', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '93', 'username' => 'novi-sari', 'nama_depan' => 'novi-sari', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '94', 'username' => 'muhlis-darama', 'nama_depan' => 'muhlis-darama', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'General Manager'];
        $arr[] = ['user_id' => '95', 'username' => 'indah-novianti', 'nama_depan' => 'indah-novianti', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Regulatory & Compliance', 'level' => 'Staff'];
        $arr[] = ['user_id' => '96', 'username' => 'nurhayati', 'nama_depan' => 'nurhayati', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '97', 'username' => 'marcella-renita', 'nama_depan' => 'marcella-renita', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Business Controller', 'level' => 'Staff'];
        $arr[] = ['user_id' => '98', 'username' => 'antari-ardianti', 'nama_depan' => 'antari-ardianti', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Customer Relation Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '99', 'username' => 'rudy-wiguno', 'nama_depan' => 'rudy-wiguno', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Manager'];
        $arr[] = ['user_id' => '100', 'username' => 'Asti Hapsari Mochtar', 'nama_depan' => 'Asti Hapsari Mochtar', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '101', 'username' => 'marsha', 'nama_depan' => 'marsha', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store & Project Development', 'level' => 'Staff'];
        $arr[] = ['user_id' => '102', 'username' => 'antoninette', 'nama_depan' => 'antoninette', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '103', 'username' => 'cindy', 'nama_depan' => 'cindy', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '104', 'username' => 'berthus-lunin', 'nama_depan' => 'berthus-lunin', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '105', 'username' => 'fitria-maylana', 'nama_depan' => 'fitria-maylana', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Human Resource', 'level' => 'Staff'];
        $arr[] = ['user_id' => '106', 'username' => 'amri-maulana', 'nama_depan' => 'amri-maulana', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Procurement', 'level' => 'Staff'];
        $arr[] = ['user_id' => '107', 'username' => 'desis-wahyuni', 'nama_depan' => 'desis-wahyuni', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '108', 'username' => 'ilya', 'nama_depan' => 'ilya', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '109', 'username' => 'hutomo-santoso', 'nama_depan' => 'hutomo-santoso', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'BOD', 'level' => 'BOD'];
        $arr[] = ['user_id' => '110', 'username' => 'data-entry2', 'nama_depan' => 'data-entry2', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '111', 'username' => 'ingrid', 'nama_depan' => 'ingrid', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Change Management Office', 'level' => 'Manager'];
        $arr[] = ['user_id' => '112', 'username' => 'hutomo', 'nama_depan' => 'hutomo', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'BOD', 'level' => 'BOD'];
        $arr[] = ['user_id' => '113', 'username' => 'data-entry3', 'nama_depan' => 'data-entry3', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '114', 'username' => 'sarlianah', 'nama_depan' => 'sarlianah', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '115', 'username' => 'wishnu-subekti', 'nama_depan' => 'wishnu-subekti', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '116', 'username' => 'otto-jankhe', 'nama_depan' => 'otto-jankhe', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Executive'];
        $arr[] = ['user_id' => '117', 'username' => 'indra-gunawan', 'nama_depan' => 'indra-gunawan', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Supply Chain Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '118', 'username' => 'karina-mutiara', 'nama_depan' => 'karina-mutiara', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '119', 'username' => 'iman-pulungan', 'nama_depan' => 'iman-pulungan', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Brand Marketing', 'level' => 'Executive'];
        $arr[] = ['user_id' => '120', 'username' => 'faridah', 'nama_depan' => 'faridah', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Commercial', 'level' => 'Executive'];
        $arr[] = ['user_id' => '121', 'username' => 'yudhasmara-adinugraha', 'nama_depan' => 'yudhasmara-adinugraha', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store & Project Development', 'level' => 'Executive'];
        $arr[] = ['user_id' => '122', 'username' => 'puitika-pamora', 'nama_depan' => 'puitika-pamora', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '123', 'username' => 'fadillah', 'nama_depan' => 'fadillah', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'E-commerce', 'level' => 'Manager'];
        $arr[] = ['user_id' => '124', 'username' => 'raymond-hadisubrata', 'nama_depan' => 'raymond-hadisubrata', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'BOD', 'level' => 'BOD'];
        $arr[] = ['user_id' => '125', 'username' => 'agus-fitradi', 'nama_depan' => 'agus-fitradi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '126', 'username' => 'widia-prasetianti', 'nama_depan' => 'widia-prasetianti', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Office Support', 'level' => 'Manager'];
        $arr[] = ['user_id' => '127', 'username' => 'vinnitry-amalia', 'nama_depan' => 'vinnitry-amalia', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '128', 'username' => 'mutia-cahyani', 'nama_depan' => 'mutia-cahyani', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '129', 'username' => 'risa-kurnia', 'nama_depan' => 'risa-kurnia', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Procurement', 'level' => 'Staff'];
        $arr[] = ['user_id' => '130', 'username' => 'adhi-meiharinto', 'nama_depan' => 'adhi-meiharinto', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Human Resource', 'level' => 'Executive'];
        $arr[] = ['user_id' => '131', 'username' => 'budi-haryanto', 'nama_depan' => 'budi-haryanto', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Supply Chain Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '132', 'username' => 'martinus-kukuh', 'nama_depan' => 'martinus-kukuh', 'role' => 'HR_Related_Admi', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Human Resource', 'level' => 'Executive'];
        $arr[] = ['user_id' => '133', 'username' => 'bina-ayu', 'nama_depan' => 'bina-ayu', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Regulatory & Compliance', 'level' => 'Staff'];
        $arr[] = ['user_id' => '134', 'username' => 'margaretta', 'nama_depan' => 'margaretta', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Board Support', 'level' => 'Manager'];
        $arr[] = ['user_id' => '135', 'username' => 'mery-susilawati', 'nama_depan' => 'mery-susilawati', 'role' => 'Store_Admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '136', 'username' => 'erni', 'nama_depan' => 'erni', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Executive'];
        $arr[] = ['user_id' => '137', 'username' => 'hany-puspa', 'nama_depan' => 'hany-puspa', 'role' => 'km_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Change Management Office', 'level' => 'Staff'];
        $arr[] = ['user_id' => '138', 'username' => 'guido-parulian', 'nama_depan' => 'guido-parulian', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '139', 'username' => 'dissa-khalika', 'nama_depan' => 'dissa-khalika', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'E-commerce', 'level' => 'Staff'];
        $arr[] = ['user_id' => '140', 'username' => 'rizka-moeslichan', 'nama_depan' => 'rizka-moeslichan', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '141', 'username' => 'oktaviatri', 'nama_depan' => 'oktaviatri', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '142', 'username' => 'handoko', 'nama_depan' => 'handoko', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '143', 'username' => 'agung-resapati', 'nama_depan' => 'agung-resapati', 'role' => 'sfd_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '144', 'username' => 'Ari Sri Hardjanto', 'nama_depan' => 'Ari Sri Hardjanto', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '145', 'username' => 'alifadri indrayana', 'nama_depan' => 'alifadri indrayana', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '146', 'username' => 'aria-mulyapradana', 'nama_depan' => 'aria-mulyapradana', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '147', 'username' => 'suzyhut', 'nama_depan' => 'suzyhut', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'BOD', 'level' => 'BOD'];
        $arr[] = ['user_id' => '148', 'username' => 'bambang-kris', 'nama_depan' => 'bambang-kris', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '149', 'username' => 'dyah-wulandari', 'nama_depan' => 'dyah-wulandari', 'role' => 'km_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Board Support', 'level' => 'Executive'];
        $arr[] = ['user_id' => '150', 'username' => 'atika-primasari', 'nama_depan' => 'atika-primasari', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '151', 'username' => 'nugroho-dimas', 'nama_depan' => 'nugroho-dimas', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store & Project Maintenance', 'level' => 'Staff'];
        $arr[] = ['user_id' => '152', 'username' => 'astra-vega', 'nama_depan' => 'astra-vega', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Commercial', 'level' => 'Staff'];
        $arr[] = ['user_id' => '153', 'username' => 'galuh-antari', 'nama_depan' => 'galuh-antari', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '154', 'username' => 'andre-ramdhani', 'nama_depan' => 'andre-ramdhani', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '155', 'username' => 'wahyu-meiludin', 'nama_depan' => 'wahyu-meiludin', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'National Sales Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '156', 'username' => 'thoni-prasada', 'nama_depan' => 'thoni-prasada', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'National Sales Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '157', 'username' => 'asri-yusuf', 'nama_depan' => 'asri-yusuf', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Internal Audit & Lost Prevention', 'level' => 'Manager'];
        $arr[] = ['user_id' => '158', 'username' => 'olny-marbun', 'nama_depan' => 'olny-marbun', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Internal Audit & Lost Prevention', 'level' => 'Staff'];
        $arr[] = ['user_id' => '159', 'username' => 'entry5', 'nama_depan' => 'entry5', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '160', 'username' => 'dita-agustia', 'nama_depan' => 'dita-agustia', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Corporate Communication', 'level' => 'Staff'];
        $arr[] = ['user_id' => '161', 'username' => 'danin-yunus', 'nama_depan' => 'danin-yunus', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store & Project Maintenance', 'level' => 'Staff'];
        $arr[] = ['user_id' => '162', 'username' => 'albertina-andriani', 'nama_depan' => 'albertina-andriani', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '163', 'username' => 'yuliana-kurnia', 'nama_depan' => 'yuliana-kurnia', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '164', 'username' => 'marianie-ekadewi', 'nama_depan' => 'marianie-ekadewi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '165', 'username' => 'devantri-safaradana', 'nama_depan' => 'devantri-safaradana', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '166', 'username' => 'antoinette', 'nama_depan' => 'antoinette', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Board Support', 'level' => 'Staff'];
        $arr[] = ['user_id' => '167', 'username' => 'risa-yosanti', 'nama_depan' => 'risa-yosanti', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '168', 'username' => 'ratna-dewi', 'nama_depan' => 'ratna-dewi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '169', 'username' => 'ira-indriasari', 'nama_depan' => 'ira-indriasari', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '170', 'username' => 'rifka', 'nama_depan' => 'rifka', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '171', 'username' => 'herry-nur', 'nama_depan' => 'herry-nur', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'National Sales Management', 'level' => 'General Manager'];
        $arr[] = ['user_id' => '172', 'username' => 'ratu-maulia', 'nama_depan' => 'ratu-maulia', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Corporate Communication', 'level' => 'Manager'];
        $arr[] = ['user_id' => '173', 'username' => 'Aldila Mardiani', 'nama_depan' => 'Aldila Mardiani', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '174', 'username' => 'mayang-mustakim', 'nama_depan' => 'mayang-mustakim', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '175', 'username' => 'septia-juwita', 'nama_depan' => 'septia-juwita', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '176', 'username' => 'rizky-dwipayana', 'nama_depan' => 'rizky-dwipayana', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Regulatory & Compliance', 'level' => 'Staff'];
        $arr[] = ['user_id' => '177', 'username' => 'agung-santoso', 'nama_depan' => 'agung-santoso', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Executive'];
        $arr[] = ['user_id' => '178', 'username' => 'felix-yoga', 'nama_depan' => 'felix-yoga', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '179', 'username' => 'indriani-nastika', 'nama_depan' => 'indriani-nastika', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '180', 'username' => 'amin', 'nama_depan' => 'amin', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '181', 'username' => 'eveline-soekotjo', 'nama_depan' => 'eveline-soekotjo', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Government Relation', 'level' => 'BOD'];
        $arr[] = ['user_id' => '182', 'username' => 'gesit-pambudi', 'nama_depan' => 'gesit-pambudi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Brand Marketing', 'level' => 'Manager'];
        $arr[] = ['user_id' => '183', 'username' => 'bima-syarif', 'nama_depan' => 'bima-syarif', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'E-commerce', 'level' => 'Staff'];
        $arr[] = ['user_id' => '184', 'username' => 'dwita-satyanti', 'nama_depan' => 'dwita-satyanti', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Brand Marketing', 'level' => 'Manager'];
        $arr[] = ['user_id' => '185', 'username' => 'teleconf', 'nama_depan' => 'teleconf', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '186', 'username' => 'davina', 'nama_depan' => 'davina', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '187', 'username' => 'ahmad-son', 'nama_depan' => 'ahmad-son', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '188', 'username' => 'almetta', 'nama_depan' => 'almetta', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '189', 'username' => 'dina-foliana', 'nama_depan' => 'dina-foliana', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Corporate Communication', 'level' => 'Staff'];
        $arr[] = ['user_id' => '190', 'username' => 'hani', 'nama_depan' => 'hani', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Commercial', 'level' => 'Staff'];
        $arr[] = ['user_id' => '191', 'username' => 'indah-kusumawardani', 'nama_depan' => 'indah-kusumawardani', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '192', 'username' => 'ida-ayu', 'nama_depan' => 'ida-ayu', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '193', 'username' => 'abdul-rahman', 'nama_depan' => 'abdul-rahman', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Building Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '194', 'username' => 'rori-asran', 'nama_depan' => 'rori-asran', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '195', 'username' => 'agnes-oryza', 'nama_depan' => 'agnes-oryza', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '196', 'username' => 'astrid-indrasari', 'nama_depan' => 'astrid-indrasari', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Customer Relation Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '197', 'username' => 'dini-herliyani', 'nama_depan' => 'dini-herliyani', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Commercial', 'level' => 'Staff'];
        $arr[] = ['user_id' => '198', 'username' => 'andriansyah', 'nama_depan' => 'andriansyah', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store & Project Maintenance', 'level' => 'Manager'];
        $arr[] = ['user_id' => '199', 'username' => 'sarwono-mahmud', 'nama_depan' => 'sarwono-mahmud', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Regulatory & Compliance', 'level' => 'Staff'];
        $arr[] = ['user_id' => '200', 'username' => 'fa-secretary', 'nama_depan' => 'fa-secretary', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '201', 'username' => 'novawaty', 'nama_depan' => 'novawaty', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Internal Audit & Lost Prevention', 'level' => 'Staff'];
        $arr[] = ['user_id' => '202', 'username' => 'adi-santoso', 'nama_depan' => 'adi-santoso', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'BOD', 'level' => 'BOD'];
        $arr[] = ['user_id' => '203', 'username' => 'budi-utomo', 'nama_depan' => 'budi-utomo', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '204', 'username' => 'patricia-hamdan', 'nama_depan' => 'patricia-hamdan', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '205', 'username' => 'torkis-nasution', 'nama_depan' => 'torkis-nasution', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Supply Chain Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '206', 'username' => 'ronald muharrom', 'nama_depan' => 'ronald muharrom', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Importation', 'level' => 'Manager'];
        $arr[] = ['user_id' => '207', 'username' => 'rusmita-sari', 'nama_depan' => 'rusmita-sari', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '208', 'username' => 'ori', 'nama_depan' => 'ori', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '209', 'username' => 'dissa-rizky', 'nama_depan' => 'dissa-rizky', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '210', 'username' => 'm-taurus', 'nama_depan' => 'm-taurus', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'General Manager'];
        $arr[] = ['user_id' => '211', 'username' => 'sony-cahyono', 'nama_depan' => 'sony-cahyono', 'role' => 'km_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Change Management Office', 'level' => 'Manager'];
        $arr[] = ['user_id' => '212', 'username' => 'vidi-saputra', 'nama_depan' => 'vidi-saputra', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '213', 'username' => 'bambang', 'nama_depan' => 'bambang', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Manager'];
        $arr[] = ['user_id' => '214', 'username' => 'maya-bellina', 'nama_depan' => 'maya-bellina', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Corporate Communication', 'level' => 'Manager'];
        $arr[] = ['user_id' => '215', 'username' => 'fika-tri', 'nama_depan' => 'fika-tri', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '216', 'username' => 'kristi-djuarsa', 'nama_depan' => 'kristi-djuarsa', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '217', 'username' => 'henry-winata', 'nama_depan' => 'henry-winata', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '218', 'username' => 'shinta-dewi', 'nama_depan' => 'shinta-dewi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Commercial', 'level' => 'Staff'];
        $arr[] = ['user_id' => '219', 'username' => 'toha-azhary', 'nama_depan' => 'toha-azhary', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '220', 'username' => 'hendrianti', 'nama_depan' => 'hendrianti', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '221', 'username' => 'rifka-ekasari', 'nama_depan' => 'rifka-ekasari', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Procurement', 'level' => 'Staff'];
        $arr[] = ['user_id' => '222', 'username' => 'elizabeth', 'nama_depan' => 'elizabeth', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'BOD', 'level' => 'BOD'];
        $arr[] = ['user_id' => '223', 'username' => 'temporer', 'nama_depan' => 'temporer', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '224', 'username' => 'Herni Dian', 'nama_depan' => 'Herni Dian', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '225', 'username' => 'dian-wedyaningsih', 'nama_depan' => 'dian-wedyaningsih', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '226', 'username' => 'cinantya-davinaamerini', 'nama_depan' => 'cinantya-davinaamerini', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '227', 'username' => 'ceintya', 'nama_depan' => 'ceintya', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '228', 'username' => 'herry', 'nama_depan' => 'herry', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '229', 'username' => 'bambang-krisbiyantoro', 'nama_depan' => 'bambang-krisbiyantoro', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store & Project Maintenance', 'level' => 'Staff'];
        $arr[] = ['user_id' => '230', 'username' => 'shafa-tarilah', 'nama_depan' => 'shafa-tarilah', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '231', 'username' => 'venny', 'nama_depan' => 'venny', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '232', 'username' => 'bonny', 'nama_depan' => 'bonny', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '233', 'username' => 'dini-permatasari', 'nama_depan' => 'dini-permatasari', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '234', 'username' => 'fransiska-tumbelaka', 'nama_depan' => 'fransiska-tumbelaka', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '235', 'username' => 'fusau-bandono', 'nama_depan' => 'fusau-bandono', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '236', 'username' => 'patsy', 'nama_depan' => 'patsy', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '237', 'username' => 'desy-immaniar', 'nama_depan' => 'desy-immaniar', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '238', 'username' => 'arman', 'nama_depan' => 'arman', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '239', 'username' => 'amanda-ajikarisma', 'nama_depan' => 'amanda-ajikarisma', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '240', 'username' => 'ratih-riyanti', 'nama_depan' => 'ratih-riyanti', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '241', 'username' => 'suseno-basuki', 'nama_depan' => 'suseno-basuki', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '242', 'username' => 'sally-dinihari', 'nama_depan' => 'sally-dinihari', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '243', 'username' => 'mita-septianingtyas', 'nama_depan' => 'mita-septianingtyas', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '244', 'username' => 'rita-kurniawati', 'nama_depan' => 'rita-kurniawati', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '245', 'username' => 'alia-maharani', 'nama_depan' => 'alia-maharani', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '246', 'username' => 'nino-adrianto', 'nama_depan' => 'nino-adrianto', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '247', 'username' => 'RIFANI', 'nama_depan' => 'RIFANI', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '248', 'username' => 'hesty-yemima', 'nama_depan' => 'hesty-yemima', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '249', 'username' => 'didit-budihidayat', 'nama_depan' => 'didit-budihidayat', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '250', 'username' => 'm-suhada', 'nama_depan' => 'm-suhada', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '251', 'username' => 'lewarissa-astrid', 'nama_depan' => 'lewarissa-astrid', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '252', 'username' => 'evie-lima', 'nama_depan' => 'evie-lima', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Human Resource', 'level' => 'Staff'];
        $arr[] = ['user_id' => '253', 'username' => 'ingrid-kumalasari', 'nama_depan' => 'ingrid-kumalasari', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Commercial', 'level' => 'Manager'];
        $arr[] = ['user_id' => '254', 'username' => 'oki-indro', 'nama_depan' => 'oki-indro', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '255', 'username' => 'nukky-rizki', 'nama_depan' => 'nukky-rizki', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '256', 'username' => 'yuki-eko', 'nama_depan' => 'yuki-eko', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '257', 'username' => 'zaenal-arifin', 'nama_depan' => 'zaenal-arifin', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'E-commerce', 'level' => 'Staff'];
        $arr[] = ['user_id' => '258', 'username' => 'jwsudomo', 'nama_depan' => 'jwsudomo', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '259', 'username' => 'yosephine-antoninette', 'nama_depan' => 'yosephine-antoninette', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '260', 'username' => 'wanto-sapari', 'nama_depan' => 'wanto-sapari', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Executive'];
        $arr[] = ['user_id' => '261', 'username' => 'yayu', 'nama_depan' => 'yayu', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '262', 'username' => 'rahma-dewi', 'nama_depan' => 'rahma-dewi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Human Resource', 'level' => 'Manager'];
        $arr[] = ['user_id' => '263', 'username' => 'mochamad-suhada', 'nama_depan' => 'mochamad-suhada', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '264', 'username' => 'siska', 'nama_depan' => 'siska', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '265', 'username' => 'aditta-miranda', 'nama_depan' => 'aditta-miranda', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '266', 'username' => 'trie', 'nama_depan' => 'trie', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Regulatory & Compliance', 'level' => 'Manager'];
        $arr[] = ['user_id' => '267', 'username' => 'fifi-tumewu', 'nama_depan' => 'fifi-tumewu', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Customer Relation Management', 'level' => 'General Manager'];
        $arr[] = ['user_id' => '268', 'username' => 'tri-hadiati', 'nama_depan' => 'tri-hadiati', 'role' => 'HR_Related_Admi', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Human Resource', 'level' => 'Staff'];
        $arr[] = ['user_id' => '269', 'username' => 'dedianto-turnip', 'nama_depan' => 'dedianto-turnip', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Human Resource', 'level' => 'General Manager'];
        $arr[] = ['user_id' => '270', 'username' => 'anti-roesfian', 'nama_depan' => 'anti-roesfian', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Human Resource', 'level' => 'Manager'];
        $arr[] = ['user_id' => '271', 'username' => 'arie-putranto', 'nama_depan' => 'arie-putranto', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '272', 'username' => 'rani-mardiyanti', 'nama_depan' => 'rani-mardiyanti', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Customer Relation Management', 'level' => 'Executive'];
        $arr[] = ['user_id' => '273', 'username' => 'prima-andhika', 'nama_depan' => 'prima-andhika', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '274', 'username' => 'dewi-astuti', 'nama_depan' => 'dewi-astuti', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '275', 'username' => 'faisal-rachman', 'nama_depan' => 'faisal-rachman', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '276', 'username' => 'training-accpac', 'nama_depan' => 'training-accpac', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '277', 'username' => 'angela-giovanny dagi', 'nama_depan' => 'angela-giovanny dagi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '278', 'username' => 'brama-satria', 'nama_depan' => 'brama-satria', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '279', 'username' => 'lasti-putri dianti', 'nama_depan' => 'lasti-putri dianti', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '280', 'username' => 'nurul-hasanah', 'nama_depan' => 'nurul-hasanah', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '281', 'username' => 'andika-nurmansyah', 'nama_depan' => 'andika-nurmansyah', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '282', 'username' => 'puji-asmoro', 'nama_depan' => 'puji-asmoro', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '283', 'username' => 'anatri-hayuningtyas', 'nama_depan' => 'anatri-hayuningtyas', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '284', 'username' => 'puspita-megawati', 'nama_depan' => 'puspita-megawati', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '285', 'username' => 'yogi-permana', 'nama_depan' => 'yogi-permana', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Brand Marketing', 'level' => 'Manager'];
        $arr[] = ['user_id' => '286', 'username' => 'arif-fahrudin', 'nama_depan' => 'arif-fahrudin', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '287', 'username' => 'sri-sutami', 'nama_depan' => 'sri-sutami', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '288', 'username' => 'nenden-rahmawati', 'nama_depan' => 'nenden-rahmawati', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Board Support', 'level' => 'Staff'];
        $arr[] = ['user_id' => '289', 'username' => 'ruby', 'nama_depan' => 'ruby', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Distribution Center', 'level' => 'Staff'];
        $arr[] = ['user_id' => '290', 'username' => 'gita-marino', 'nama_depan' => 'gita-marino', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '291', 'username' => 'sahid-wirayudha', 'nama_depan' => 'sahid-wirayudha', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Human Resource', 'level' => 'Staff'];
        $arr[] = ['user_id' => '292', 'username' => 'desti-maharani', 'nama_depan' => 'desti-maharani', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Supply Chain Management', 'level' => 'Executive'];
        $arr[] = ['user_id' => '293', 'username' => 'evi', 'nama_depan' => 'evi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Executive'];
        $arr[] = ['user_id' => '294', 'username' => 'dwi-satriadi', 'nama_depan' => 'dwi-satriadi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Human Resource', 'level' => 'Executive'];
        $arr[] = ['user_id' => '295', 'username' => 'arfan-setiawan', 'nama_depan' => 'arfan-setiawan', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '296', 'username' => 'siti-aisyah', 'nama_depan' => 'siti-aisyah', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '297', 'username' => 'novianti', 'nama_depan' => 'novianti', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '298', 'username' => 'olap-dc', 'nama_depan' => 'olap-dc', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '299', 'username' => 'kastam', 'nama_depan' => 'kastam', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Manager'];
        $arr[] = ['user_id' => '300', 'username' => 'diany-prameshtuty', 'nama_depan' => 'diany-prameshtuty', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '301', 'username' => 'AR-MHL', 'nama_depan' => 'AR-MHL', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '302', 'username' => 'cicilia', 'nama_depan' => 'cicilia', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Human Resource', 'level' => 'Staff'];
        $arr[] = ['user_id' => '303', 'username' => 'annisa-ekky', 'nama_depan' => 'annisa-ekky', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Regulatory & Compliance', 'level' => 'Staff'];
        $arr[] = ['user_id' => '304', 'username' => 'liza-rizkiyani', 'nama_depan' => 'liza-rizkiyani', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '305', 'username' => 'okta', 'nama_depan' => 'okta', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '306', 'username' => 'lina', 'nama_depan' => 'lina', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '307', 'username' => 'soleman-hontong', 'nama_depan' => 'soleman-hontong', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Regulatory & Compliance', 'level' => 'Staff'];
        $arr[] = ['user_id' => '308', 'username' => 'ihsani', 'nama_depan' => 'ihsani', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '309', 'username' => 'sania', 'nama_depan' => 'sania', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Procurement', 'level' => 'Executive'];
        $arr[] = ['user_id' => '310', 'username' => 'dwi-widiarti', 'nama_depan' => 'dwi-widiarti', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'National Sales Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '311', 'username' => 'andre-bramantyo', 'nama_depan' => 'andre-bramantyo', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '312', 'username' => 'qomariyah', 'nama_depan' => 'qomariyah', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Procurement', 'level' => 'Staff'];
        $arr[] = ['user_id' => '313', 'username' => 'wini-kirana', 'nama_depan' => 'wini-kirana', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store & Project Development', 'level' => 'Staff'];
        $arr[] = ['user_id' => '314', 'username' => 'elizabeth-leony', 'nama_depan' => 'elizabeth-leony', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Corporate Communication', 'level' => 'Staff'];
        $arr[] = ['user_id' => '315', 'username' => 'raisa-muthmaina', 'nama_depan' => 'raisa-muthmaina', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '316', 'username' => 'andri', 'nama_depan' => 'andri', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '317', 'username' => 'ibnu-aziz', 'nama_depan' => 'ibnu-aziz', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '318', 'username' => 'rio-arief', 'nama_depan' => 'rio-arief', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '319', 'username' => 'judhit-christanty', 'nama_depan' => 'judhit-christanty', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store & Project Development', 'level' => 'Staff'];
        $arr[] = ['user_id' => '320', 'username' => 'tribuana-hapsari', 'nama_depan' => 'tribuana-hapsari', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '321', 'username' => 'tarino', 'nama_depan' => 'tarino', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Internal Audit & Lost Prevention', 'level' => 'General Manager'];
        $arr[] = ['user_id' => '322', 'username' => 'vina-febriana', 'nama_depan' => 'vina-febriana', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Business Controller', 'level' => 'Staff'];
        $arr[] = ['user_id' => '323', 'username' => 'hoiril-anwar', 'nama_depan' => 'hoiril-anwar', 'role' => 'kpi_admin', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Business Controller', 'level' => 'Staff'];
        $arr[] = ['user_id' => '324', 'username' => 'raditya', 'nama_depan' => 'raditya', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Internal Audit & Lost Prevention', 'level' => 'Staff'];
        $arr[] = ['user_id' => '325', 'username' => 'trilas-prillona', 'nama_depan' => 'trilas-prillona', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Internal Audit & Lost Prevention', 'level' => 'Staff'];
        $arr[] = ['user_id' => '326', 'username' => 'satrya-harefa', 'nama_depan' => 'satrya-harefa', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Regulatory & Compliance', 'level' => 'Manager'];
        $arr[] = ['user_id' => '327', 'username' => 'delfa-winda', 'nama_depan' => 'delfa-winda', 'role' => 'HR_Related_Admi', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Human Resource', 'level' => 'Staff'];
        $arr[] = ['user_id' => '328', 'username' => 'indah-lestari', 'nama_depan' => 'indah-lestari', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Commercial', 'level' => 'Manager'];
        $arr[] = ['user_id' => '329', 'username' => 'fauziah-hanum', 'nama_depan' => 'fauziah-hanum', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '330', 'username' => 'fatoni', 'nama_depan' => 'fatoni', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Manager'];
        $arr[] = ['user_id' => '331', 'username' => 'rachmawanto-nugroho', 'nama_depan' => 'rachmawanto-nugroho', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Brand Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '332', 'username' => 'rumondang-meilina', 'nama_depan' => 'rumondang-meilina', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Supply Chain Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '333', 'username' => 'rizki-ananda', 'nama_depan' => 'rizki-ananda', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '334', 'username' => 'novia-sukmawaty', 'nama_depan' => 'novia-sukmawaty', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '335', 'username' => 'wawan-morawan', 'nama_depan' => 'wawan-morawan', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Supply Chain Management', 'level' => 'Executive'];
        $arr[] = ['user_id' => '336', 'username' => 'sulistyowati', 'nama_depan' => 'sulistyowati', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '337', 'username' => 'eko', 'nama_depan' => 'eko', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '338', 'username' => 'Elly Lastari', 'nama_depan' => 'Elly Lastari', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '339', 'username' => 'dini-wulandari', 'nama_depan' => 'dini-wulandari', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '340', 'username' => 'yuyun', 'nama_depan' => 'yuyun', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Manager'];
        $arr[] = ['user_id' => '341', 'username' => 'bagus-prasetyo', 'nama_depan' => 'bagus-prasetyo', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '342', 'username' => 'putri-intan', 'nama_depan' => 'putri-intan', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '343', 'username' => 'fauzi-achmad', 'nama_depan' => 'fauzi-achmad', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '344', 'username' => 'bambang-erawan', 'nama_depan' => 'bambang-erawan', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Distribution Center', 'level' => 'Staff'];
        $arr[] = ['user_id' => '345', 'username' => 'Rizki Ananda Febrianto', 'nama_depan' => 'Rizki Ananda Febrianto', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Commercial', 'level' => 'Executive'];
        $arr[] = ['user_id' => '346', 'username' => 'riyanto-aria', 'nama_depan' => 'riyanto-aria', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '347', 'username' => 'dede-kurniawan', 'nama_depan' => 'dede-kurniawan', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Importation', 'level' => 'Staff'];
        $arr[] = ['user_id' => '348', 'username' => 'yuriko-fitrianti', 'nama_depan' => 'yuriko-fitrianti', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store & Project Development', 'level' => 'Staff'];
        $arr[] = ['user_id' => '349', 'username' => 'Suhada', 'nama_depan' => 'Suhada', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Importation', 'level' => 'Staff'];
        $arr[] = ['user_id' => '350', 'username' => 'Doddy Dharmawan', 'nama_depan' => 'Doddy Dharmawan', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '351', 'username' => 'Syamsul-Hidayat', 'nama_depan' => 'Syamsul-Hidayat', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '352', 'username' => 'indra-asmara', 'nama_depan' => 'indra-asmara', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '353', 'username' => 'liya-khoironi', 'nama_depan' => 'liya-khoironi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Regulatory & Compliance', 'level' => 'Staff'];
        $arr[] = ['user_id' => '354', 'username' => 'jerry-faiz', 'nama_depan' => 'jerry-faiz', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '355', 'username' => 'risnawati-tarigan', 'nama_depan' => 'risnawati-tarigan', 'role' => 'km_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '356', 'username' => 'yohanes-suryadi', 'nama_depan' => 'yohanes-suryadi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '357', 'username' => 'merry-susilawati', 'nama_depan' => 'merry-susilawati', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '358', 'username' => 'fras-yulianto', 'nama_depan' => 'fras-yulianto', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '359', 'username' => 'dian-susilawati', 'nama_depan' => 'dian-susilawati', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '360', 'username' => 'septo-maulana', 'nama_depan' => 'septo-maulana', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Supply Chain Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '361', 'username' => 'doli-indra', 'nama_depan' => 'doli-indra', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '362', 'username' => 'muhammad-firdaus', 'nama_depan' => 'muhammad-firdaus', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '363', 'username' => 'imam-sanusi', 'nama_depan' => 'imam-sanusi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '364', 'username' => 'widowati-rachel', 'nama_depan' => 'widowati-rachel', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '365', 'username' => 'anggih-fadhilah', 'nama_depan' => 'anggih-fadhilah', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Internal Audit & Lost Prevention', 'level' => 'Staff'];
        $arr[] = ['user_id' => '366', 'username' => 'ratih-noviani', 'nama_depan' => 'ratih-noviani', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Commercial', 'level' => 'Staff'];
        $arr[] = ['user_id' => '367', 'username' => 'rendy-trianditya', 'nama_depan' => 'rendy-trianditya', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '368', 'username' => 'hernawati', 'nama_depan' => 'hernawati', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'National Sales Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '369', 'username' => 'chandra-widyayuana', 'nama_depan' => 'chandra-widyayuana', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '370', 'username' => 'priscilia-reschi', 'nama_depan' => 'priscilia-reschi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '371', 'username' => 'sulastri', 'nama_depan' => 'sulastri', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'National Sales Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '372', 'username' => 'grace-natalia', 'nama_depan' => 'grace-natalia', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '373', 'username' => 'ida-ubaedah', 'nama_depan' => 'ida-ubaedah', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Customer Relation Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '374', 'username' => 'ahmad-syaifudin', 'nama_depan' => 'ahmad-syaifudin', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '375', 'username' => 'siska-loyalty', 'nama_depan' => 'siska-loyalty', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Customer Relation Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '376', 'username' => 'rine-arieany', 'nama_depan' => 'rine-arieany', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '377', 'username' => 'shafa-tartilah', 'nama_depan' => 'shafa-tartilah', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '378', 'username' => 'Rohyadi', 'nama_depan' => 'Rohyadi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '379', 'username' => 'sindy-gunawan', 'nama_depan' => 'sindy-gunawan', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '380', 'username' => 'desi-ariyanti', 'nama_depan' => 'desi-ariyanti', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '381', 'username' => 'eka-ayu', 'nama_depan' => 'eka-ayu', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '382', 'username' => 'rifky-adelina', 'nama_depan' => 'rifky-adelina', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Brand Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '383', 'username' => 'irma-sari', 'nama_depan' => 'irma-sari', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '384', 'username' => 'christian-jayanda', 'nama_depan' => 'christian-jayanda', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Internal Audit & Lost Prevention', 'level' => 'Staff'];
        $arr[] = ['user_id' => '385', 'username' => 'novita', 'nama_depan' => 'novita', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '386', 'username' => 'adi-sutarno', 'nama_depan' => 'adi-sutarno', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '387', 'username' => 'widhi-sasongko', 'nama_depan' => 'widhi-sasongko', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Internal Audit & Lost Prevention', 'level' => 'Staff'];
        $arr[] = ['user_id' => '388', 'username' => 'dody-mardiansyah', 'nama_depan' => 'dody-mardiansyah', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '389', 'username' => 'widira-mulyadrajat', 'nama_depan' => 'widira-mulyadrajat', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '390', 'username' => 'dominika-mutiara', 'nama_depan' => 'dominika-mutiara', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '391', 'username' => 'ira-indah', 'nama_depan' => 'ira-indah', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '392', 'username' => 'doris-rostiani', 'nama_depan' => 'doris-rostiani', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '393', 'username' => 'andre-prawira', 'nama_depan' => 'andre-prawira', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Brand Marketing', 'level' => 'General Manager'];
        $arr[] = ['user_id' => '394', 'username' => 'dita-sukmawati', 'nama_depan' => 'dita-sukmawati', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '395', 'username' => 'dela-elisyia', 'nama_depan' => 'dela-elisyia', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '396', 'username' => 'suyadi', 'nama_depan' => 'suyadi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '397', 'username' => 'adhi-setyo', 'nama_depan' => 'adhi-setyo', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '398', 'username' => 'doddy', 'nama_depan' => 'doddy', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '399', 'username' => 'ibnu-hajar', 'nama_depan' => 'ibnu-hajar', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '400', 'username' => 'mutia-oktaviani', 'nama_depan' => 'mutia-oktaviani', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '401', 'username' => 'rio-suharso', 'nama_depan' => 'rio-suharso', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '402', 'username' => 'sussan-adypratiwi', 'nama_depan' => 'sussan-adypratiwi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '403', 'username' => 'maria-hany', 'nama_depan' => 'maria-hany', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '404', 'username' => 'rio-yunarso', 'nama_depan' => 'rio-yunarso', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '405', 'username' => 'sharing-vm', 'nama_depan' => 'sharing-vm', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '406', 'username' => 'muhammad-halley', 'nama_depan' => 'muhammad-halley', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '407', 'username' => 'suraji', 'nama_depan' => 'suraji', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'National Sales Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '408', 'username' => 'reza-adriansyah', 'nama_depan' => 'reza-adriansyah', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '409', 'username' => 'david-parluhutan', 'nama_depan' => 'david-parluhutan', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '410', 'username' => 'indra-irmawan', 'nama_depan' => 'indra-irmawan', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '411', 'username' => 'agung-taufik', 'nama_depan' => 'agung-taufik', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Human Resource', 'level' => 'Staff'];
        $arr[] = ['user_id' => '412', 'username' => 'nurcholis', 'nama_depan' => 'nurcholis', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '413', 'username' => 'nur-wahyuni', 'nama_depan' => 'nur-wahyuni', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Regulatory & Compliance', 'level' => 'Staff'];
        $arr[] = ['user_id' => '414', 'username' => 'adinda-juliasari', 'nama_depan' => 'adinda-juliasari', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '415', 'username' => 'novia-mangatera', 'nama_depan' => 'novia-mangatera', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '416', 'username' => 'halimah', 'nama_depan' => 'halimah', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Office Support', 'level' => 'Staff'];
        $arr[] = ['user_id' => '417', 'username' => 'hari-pratomo', 'nama_depan' => 'hari-pratomo', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '418', 'username' => 'petrus-raditya', 'nama_depan' => 'petrus-raditya', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Regulatory & Compliance', 'level' => 'Staff'];
        $arr[] = ['user_id' => '419', 'username' => 'heldytia-kurniawati', 'nama_depan' => 'heldytia-kurniawati', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Procurement', 'level' => 'Staff'];
        $arr[] = ['user_id' => '420', 'username' => 'annisa-rahma', 'nama_depan' => 'annisa-rahma', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '421', 'username' => 'merry', 'nama_depan' => 'merry', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '422', 'username' => 'iqbal-nasution', 'nama_depan' => 'iqbal-nasution', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '423', 'username' => 'grahanita-herwina', 'nama_depan' => 'grahanita-herwina', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '424', 'username' => 'dion-pribadi', 'nama_depan' => 'dion-pribadi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '425', 'username' => 'anindita-syifa', 'nama_depan' => 'anindita-syifa', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '426', 'username' => 'yoekie-oetama', 'nama_depan' => 'yoekie-oetama', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '427', 'username' => 'aldi-bari', 'nama_depan' => 'aldi-bari', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '428', 'username' => 'conicius-arya', 'nama_depan' => 'conicius-arya', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '429', 'username' => 'nyoman-yanatri', 'nama_depan' => 'nyoman-yanatri', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '430', 'username' => 'cynthia-lefina', 'nama_depan' => 'cynthia-lefina', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '431', 'username' => 'eva-beziarni', 'nama_depan' => 'eva-beziarni', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '432', 'username' => 'andara-dhita', 'nama_depan' => 'andara-dhita', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '433', 'username' => 'eni-purwani', 'nama_depan' => 'eni-purwani', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '434', 'username' => 'yulia-utami', 'nama_depan' => 'yulia-utami', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '435', 'username' => 'maulana-facrurrozi', 'nama_depan' => 'maulana-facrurrozi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '436', 'username' => 'edwin', 'nama_depan' => 'edwin', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '437', 'username' => 'share-vm', 'nama_depan' => 'share-vm', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '438', 'username' => 'harley-noviani', 'nama_depan' => 'harley-noviani', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '439', 'username' => 'fajar-ryanto', 'nama_depan' => 'fajar-ryanto', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Change Management Office', 'level' => 'Staff'];
        $arr[] = ['user_id' => '440', 'username' => 'fino-syahendra', 'nama_depan' => 'fino-syahendra', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '441', 'username' => 'eddy-susanto', 'nama_depan' => 'eddy-susanto', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Distribution Center', 'level' => 'Staff'];
        $arr[] = ['user_id' => '442', 'username' => 'syahrul-ginanjar', 'nama_depan' => 'syahrul-ginanjar', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '443', 'username' => 'eddy-syahputra', 'nama_depan' => 'eddy-syahputra', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '444', 'username' => 'habibi-mahtulisa', 'nama_depan' => 'habibi-mahtulisa', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '445', 'username' => 'salashegi-witjaksana', 'nama_depan' => 'salashegi-witjaksana', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '446', 'username' => 'louise-janita', 'nama_depan' => 'louise-janita', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '447', 'username' => 'gemilang-aditya', 'nama_depan' => 'gemilang-aditya', 'role' => 'km_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Brand Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '448', 'username' => 'irma-fahriny', 'nama_depan' => 'irma-fahriny', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Board Support', 'level' => 'Staff'];
        $arr[] = ['user_id' => '449', 'username' => 'irvan-syahrial', 'nama_depan' => 'irvan-syahrial', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '450', 'username' => 'raden-rsh', 'nama_depan' => 'raden-rsh', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store & Project Development', 'level' => 'Staff'];
        $arr[] = ['user_id' => '451', 'username' => 'accpac1', 'nama_depan' => 'accpac1', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '452', 'username' => 'accpac2', 'nama_depan' => 'accpac2', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '453', 'username' => 'betty-utari', 'nama_depan' => 'betty-utari', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '454', 'username' => 'anisa-agustin', 'nama_depan' => 'anisa-agustin', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '455', 'username' => 'ismu-cahyaningrum', 'nama_depan' => 'ismu-cahyaningrum', 'role' => 'km_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Store Marketing', 'level' => 'Manager'];
        $arr[] = ['user_id' => '456', 'username' => 'ades-wilman', 'nama_depan' => 'ades-wilman', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'National Sales Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '457', 'username' => 'wayan-armini', 'nama_depan' => 'wayan-armini', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'National Sales Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '458', 'username' => 'yogi-rifki', 'nama_depan' => 'yogi-rifki', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '459', 'username' => 'yohanes-susilo', 'nama_depan' => 'yohanes-susilo', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '460', 'username' => 'maraya-nadira', 'nama_depan' => 'maraya-nadira', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '461', 'username' => 'henna-sunjadewi', 'nama_depan' => 'henna-sunjadewi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'National Sales Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '462', 'username' => 'leony-kartika', 'nama_depan' => 'leony-kartika', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '463', 'username' => 'maya', 'nama_depan' => 'maya', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '464', 'username' => 'dina', 'nama_depan' => 'dina', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '465', 'username' => 'firdaus', 'nama_depan' => 'firdaus', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '466', 'username' => 'bagus-mulia', 'nama_depan' => 'bagus-mulia', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Internal Audit & Lost Prevention', 'level' => 'Staff'];
        $arr[] = ['user_id' => '467', 'username' => 'triatna-nugraha', 'nama_depan' => 'triatna-nugraha', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '468', 'username' => 'djaka-aditya', 'nama_depan' => 'djaka-aditya', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '469', 'username' => 'oki-dwiputri', 'nama_depan' => 'oki-dwiputri', 'role' => 'km_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Store Marketing', 'level' => 'Manager'];
        $arr[] = ['user_id' => '470', 'username' => 'agnilasa-pratiko', 'nama_depan' => 'agnilasa-pratiko', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '471', 'username' => 'mega-saffira', 'nama_depan' => 'mega-saffira', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '472', 'username' => 'frans-silvani', 'nama_depan' => 'frans-silvani', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '473', 'username' => 'kalistra-adrian', 'nama_depan' => 'kalistra-adrian', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '474', 'username' => 'ratna-faradila', 'nama_depan' => 'ratna-faradila', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '475', 'username' => 'yudi-hermansyah', 'nama_depan' => 'yudi-hermansyah', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '476', 'username' => 'joko-wiryadhi', 'nama_depan' => 'joko-wiryadhi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '477', 'username' => 'ario-seto', 'nama_depan' => 'ario-seto', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '478', 'username' => 'dewi-udur', 'nama_depan' => 'dewi-udur', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '479', 'username' => 'rini', 'nama_depan' => 'rini', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '480', 'username' => 'data-entry', 'nama_depan' => 'data-entry', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '481', 'username' => 'shofa-tartilah', 'nama_depan' => 'shofa-tartilah', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '482', 'username' => 'rahutami-wijayastuti', 'nama_depan' => 'rahutami-wijayastuti', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '483', 'username' => 'andhini-yurizi', 'nama_depan' => 'andhini-yurizi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '484', 'username' => 'vica-natalia', 'nama_depan' => 'vica-natalia', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '485', 'username' => 'navy-evaresti', 'nama_depan' => 'navy-evaresti', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '486', 'username' => 'faizal-syaifullah', 'nama_depan' => 'faizal-syaifullah', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '487', 'username' => 'rizky-hijry', 'nama_depan' => 'rizky-hijry', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '488', 'username' => 'andhini-yuriza', 'nama_depan' => 'andhini-yuriza', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '489', 'username' => 'dzul fitriani', 'nama_depan' => 'dzul fitriani', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '490', 'username' => 'mia amelia', 'nama_depan' => 'mia amelia', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '491', 'username' => 'wahyu-syamsudin', 'nama_depan' => 'wahyu-syamsudin', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '492', 'username' => 'putri-anggraeni', 'nama_depan' => 'putri-anggraeni', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '493', 'username' => 'yunendra-helvi', 'nama_depan' => 'yunendra-helvi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '494', 'username' => 'training1', 'nama_depan' => 'training1', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '495', 'username' => 'training2', 'nama_depan' => 'training2', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '496', 'username' => 'training3', 'nama_depan' => 'training3', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '497', 'username' => 'training4', 'nama_depan' => 'training4', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '498', 'username' => 'rizky-hjry', 'nama_depan' => 'rizky-hjry', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '499', 'username' => 'daniel-reynaldo', 'nama_depan' => 'daniel-reynaldo', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store & Project Development', 'level' => 'Manager'];
        $arr[] = ['user_id' => '500', 'username' => 'eliza', 'nama_depan' => 'eliza', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '501', 'username' => 'rizka-nurlita', 'nama_depan' => 'rizka-nurlita', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '502', 'username' => 'harley', 'nama_depan' => 'harley', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '503', 'username' => 'fajar-mahardika', 'nama_depan' => 'fajar-mahardika', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '504', 'username' => 'endy-setiana', 'nama_depan' => 'endy-setiana', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '505', 'username' => 'sitoresmi', 'nama_depan' => 'sitoresmi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '506', 'username' => 'Herastu Winda', 'nama_depan' => 'Herastu Winda', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '507', 'username' => 'mardani', 'nama_depan' => 'mardani', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '508', 'username' => 'weni-mufrita', 'nama_depan' => 'weni-mufrita', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '509', 'username' => 'NGADIRIN', 'nama_depan' => 'NGADIRIN', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '510', 'username' => 'benita-rosalia', 'nama_depan' => 'benita-rosalia', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '511', 'username' => 'tuti', 'nama_depan' => 'tuti', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '512', 'username' => 'dimas-wahono', 'nama_depan' => 'dimas-wahono', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '513', 'username' => 'tyo-hery', 'nama_depan' => 'tyo-hery', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '514', 'username' => 'officer', 'nama_depan' => 'officer', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '515', 'username' => 'co2-tbsi', 'nama_depan' => 'co2-tbsi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '516', 'username' => 'admin7-tbsi', 'nama_depan' => 'admin7-tbsi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '517', 'username' => 'trie-dc', 'nama_depan' => 'trie-dc', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '518', 'username' => 'co3-tbsi', 'nama_depan' => 'co3-tbsi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '519', 'username' => 'spv-tbsi', 'nama_depan' => 'spv-tbsi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '520', 'username' => 'vm', 'nama_depan' => 'vm', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '521', 'username' => 'admin4-tbsi', 'nama_depan' => 'admin4-tbsi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '522', 'username' => 'co-tbsi', 'nama_depan' => 'co-tbsi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '523', 'username' => 'head-project', 'nama_depan' => 'head-project', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '524', 'username' => 'ajeng-ayuningtyas', 'nama_depan' => 'ajeng-ayuningtyas', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Human Resource', 'level' => 'Staff'];
        $arr[] = ['user_id' => '525', 'username' => 'backup-maxial', 'nama_depan' => 'backup-maxial', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '526', 'username' => 'rayandi', 'nama_depan' => 'rayandi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '527', 'username' => 'adriyani-sahidi', 'nama_depan' => 'adriyani-sahidi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Human Resource', 'level' => 'Manager'];
        $arr[] = ['user_id' => '528', 'username' => 'jati-muliasari', 'nama_depan' => 'jati-muliasari', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Staff'];
        $arr[] = ['user_id' => '529', 'username' => 'heru-santoso', 'nama_depan' => 'heru-santoso', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '530', 'username' => 'eveline', 'nama_depan' => 'eveline', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'BOD', 'level' => 'BOD'];
        $arr[] = ['user_id' => '531', 'username' => 'stefanus santoso', 'nama_depan' => 'stefanus santoso', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Internal Audit & Lost Prevention', 'level' => 'Manager'];
        $arr[] = ['user_id' => '532', 'username' => 'yoya valentina', 'nama_depan' => 'yoya valentina', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '533', 'username' => 'agnesia fatimah', 'nama_depan' => 'agnesia fatimah', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Commercial', 'level' => 'Staff'];
        $arr[] = ['user_id' => '534', 'username' => 'budyono saputro', 'nama_depan' => 'budyono saputro', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Commercial', 'level' => 'Staff'];
        $arr[] = ['user_id' => '535', 'username' => 'rei zefanya', 'nama_depan' => 'rei zefanya', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Human Resource', 'level' => 'Staff'];
        $arr[] = ['user_id' => '536', 'username' => 'yustika', 'nama_depan' => 'yustika', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Finance & Accounting', 'level' => 'Manager'];
        $arr[] = ['user_id' => '537', 'username' => 'iwan-santoso', 'nama_depan' => 'iwan-santoso', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'BOD', 'level' => 'BOD'];
        $arr[] = ['user_id' => '538', 'username' => 'fitriana-nurcahya', 'nama_depan' => 'fitriana-nurcahya', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '539', 'username' => 'mnoor', 'nama_depan' => 'mnoor', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '540', 'username' => 'aan', 'nama_depan' => 'aan', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '541', 'username' => 'agent1', 'nama_depan' => 'agent1', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '542', 'username' => 'agent4', 'nama_depan' => 'agent4', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '543', 'username' => 'agent2', 'nama_depan' => 'agent2', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '544', 'username' => 'agent3', 'nama_depan' => 'agent3', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '545', 'username' => 'agent5', 'nama_depan' => 'agent5', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '546', 'username' => 'agent6', 'nama_depan' => 'agent6', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '547', 'username' => 'agent7', 'nama_depan' => 'agent7', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '548', 'username' => 'agent8', 'nama_depan' => 'agent8', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '549', 'username' => 'agent', 'nama_depan' => 'agent', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '550', 'username' => 'supervisor', 'nama_depan' => 'supervisor', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '551', 'username' => 'agent-care', 'nama_depan' => 'agent-care', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '552', 'username' => 'dian-magdalena', 'nama_depan' => 'dian-magdalena', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Board Support', 'level' => 'Staff'];
        $arr[] = ['user_id' => '553', 'username' => 'testing', 'nama_depan' => 'testing', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '554', 'username' => 'open', 'nama_depan' => 'open', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '555', 'username' => 'kristy', 'nama_depan' => 'kristy', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '556', 'username' => 'teamviewer', 'nama_depan' => 'teamviewer', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '557', 'username' => 'pongky', 'nama_depan' => 'pongky', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Staff'];
        $arr[] = ['user_id' => '558', 'username' => 'ardan-bernadi', 'nama_depan' => 'ardan-bernadi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '559', 'username' => 'julian-adhityo', 'nama_depan' => 'julian-adhityo', 'role' => 'it_news_admin', 'admin_aktiv' => '1', 'admin_type' => '0', 'dept' => 'Information Technology', 'level' => 'Manager'];
        $arr[] = ['user_id' => '560', 'username' => 'dwi-andi', 'nama_depan' => 'dwi-andi', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '561', 'username' => 'ronald', 'nama_depan' => 'ronald', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Manager'];
        $arr[] = ['user_id' => '562', 'username' => 'coosteen', 'nama_depan' => 'coosteen', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '563', 'username' => 'hr-freelance', 'nama_depan' => 'hr-freelance', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '564', 'username' => 'aminulloh', 'nama_depan' => 'aminulloh', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '565', 'username' => 'sentosa-krr', 'nama_depan' => 'sentosa-krr', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '566', 'username' => 'mulyanah', 'nama_depan' => 'mulyanah', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '567', 'username' => 'eddy-p', 'nama_depan' => 'eddy-p', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '568', 'username' => 'bis-manager', 'nama_depan' => 'bis-manager', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '569', 'username' => 'pupu-pulihah', 'nama_depan' => 'pupu-pulihah', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '570', 'username' => 'ems2', 'nama_depan' => 'ems2', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '571', 'username' => 'New_TS51', 'nama_depan' => 'New_TS51', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '572', 'username' => 'New_TS52', 'nama_depan' => 'New_TS52', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '573', 'username' => 'rani', 'nama_depan' => 'rani', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '574', 'username' => 'data-entry4', 'nama_depan' => 'data-entry4', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '575', 'username' => 'data-entry5', 'nama_depan' => 'data-entry5', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '576', 'username' => 'agus-soemarmo', 'nama_depan' => 'agus-soemarmo', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '577', 'username' => 'suko-budi', 'nama_depan' => 'suko-budi', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '578', 'username' => 'nunung-nurhayati', 'nama_depan' => 'nunung-nurhayati', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '579', 'username' => 'temp01', 'nama_depan' => 'temp01', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '580', 'username' => 'security-toss', 'nama_depan' => 'security-toss', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '581', 'username' => 'rininda', 'nama_depan' => 'rininda', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '582', 'username' => 'social-selling02', 'nama_depan' => 'social-selling02', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '583', 'username' => 'ester-monessari', 'nama_depan' => 'ester-monessari', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '584', 'username' => 'social-selling01', 'nama_depan' => 'social-selling01', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '585', 'username' => 'hr-project', 'nama_depan' => 'hr-project', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '586', 'username' => 'ayu-rahayu rosyita', 'nama_depan' => 'ayu-rahayu rosyita', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '587', 'username' => 'ristiana-istiqomah', 'nama_depan' => 'ristiana-istiqomah', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '588', 'username' => 'hris1', 'nama_depan' => 'hris1', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '589', 'username' => 'hris2', 'nama_depan' => 'hris2', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '590', 'username' => 'hris3', 'nama_depan' => 'hris3', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '591', 'username' => 'hris4', 'nama_depan' => 'hris4', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '592', 'username' => 'user48', 'nama_depan' => 'user48', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '593', 'username' => 'user49', 'nama_depan' => 'user49', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '594', 'username' => 'user50', 'nama_depan' => 'user50', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '595', 'username' => 'user51', 'nama_depan' => 'user51', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '596', 'username' => 'user52', 'nama_depan' => 'user52', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '597', 'username' => 'user53', 'nama_depan' => 'user53', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '598', 'username' => 'user54', 'nama_depan' => 'user54', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '599', 'username' => 'user55', 'nama_depan' => 'user55', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '600', 'username' => 'user24', 'nama_depan' => 'user24', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '601', 'username' => 'user25', 'nama_depan' => 'user25', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '602', 'username' => 'user30', 'nama_depan' => 'user30', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '603', 'username' => 'user26', 'nama_depan' => 'user26', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '604', 'username' => 'user27', 'nama_depan' => 'user27', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '605', 'username' => 'user28', 'nama_depan' => 'user28', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '606', 'username' => 'user29', 'nama_depan' => 'user29', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '607', 'username' => 'useradmin', 'nama_depan' => 'useradmin', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '608', 'username' => 'user31', 'nama_depan' => 'user31', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '609', 'username' => 'user32', 'nama_depan' => 'user32', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '610', 'username' => 'user33', 'nama_depan' => 'user33', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '611', 'username' => 'user34', 'nama_depan' => 'user34', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '612', 'username' => 'user35', 'nama_depan' => 'user35', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '613', 'username' => 'user36', 'nama_depan' => 'user36', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '614', 'username' => 'user37', 'nama_depan' => 'user37', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '615', 'username' => 'user38', 'nama_depan' => 'user38', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '616', 'username' => 'user39', 'nama_depan' => 'user39', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '617', 'username' => 'user40', 'nama_depan' => 'user40', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '618', 'username' => 'user41', 'nama_depan' => 'user41', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '619', 'username' => 'user42', 'nama_depan' => 'user42', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '620', 'username' => 'user43', 'nama_depan' => 'user43', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '621', 'username' => 'user44', 'nama_depan' => 'user44', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '622', 'username' => 'user45', 'nama_depan' => 'user45', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '623', 'username' => 'user46', 'nama_depan' => 'user46', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '624', 'username' => 'user47', 'nama_depan' => 'user47', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '625', 'username' => 'user13', 'nama_depan' => 'user13', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '626', 'username' => 'user01', 'nama_depan' => 'user01', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '627', 'username' => 'user02', 'nama_depan' => 'user02', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '628', 'username' => 'user03', 'nama_depan' => 'user03', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '629', 'username' => 'user04', 'nama_depan' => 'user04', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '630', 'username' => 'user05', 'nama_depan' => 'user05', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '631', 'username' => 'user06', 'nama_depan' => 'user06', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '632', 'username' => 'user07', 'nama_depan' => 'user07', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '633', 'username' => 'user08', 'nama_depan' => 'user08', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '634', 'username' => 'user09', 'nama_depan' => 'user09', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '635', 'username' => 'user10', 'nama_depan' => 'user10', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '636', 'username' => 'user11', 'nama_depan' => 'user11', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '637', 'username' => 'user12', 'nama_depan' => 'user12', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '638', 'username' => 'user14', 'nama_depan' => 'user14', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '639', 'username' => 'user15', 'nama_depan' => 'user15', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '640', 'username' => 'user16', 'nama_depan' => 'user16', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '641', 'username' => 'user17', 'nama_depan' => 'user17', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '642', 'username' => 'user18', 'nama_depan' => 'user18', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '643', 'username' => 'user19', 'nama_depan' => 'user19', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '644', 'username' => 'user20', 'nama_depan' => 'user20', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '645', 'username' => 'user21', 'nama_depan' => 'user21', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '646', 'username' => 'user23', 'nama_depan' => 'user23', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '647', 'username' => 'user22', 'nama_depan' => 'user22', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '648', 'username' => 'ron', 'nama_depan' => 'ron', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '649', 'username' => 'erwin-sr', 'nama_depan' => 'erwin-sr', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Manager'];
        $arr[] = ['user_id' => '650', 'username' => 'Heri Dahlia', 'nama_depan' => 'Heri Dahlia', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'National Sales Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '651', 'username' => 'eddy-partono', 'nama_depan' => 'eddy-partono', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'Manager'];
        $arr[] = ['user_id' => '652', 'username' => 'nur-asiyah', 'nama_depan' => 'nur-asiyah', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Marketing', 'level' => 'Staff'];
        $arr[] = ['user_id' => '653', 'username' => 'asjry', 'nama_depan' => 'asjry', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Change Management Office', 'level' => 'Manager'];
        $arr[] = ['user_id' => '654', 'username' => 'budi-wijaya', 'nama_depan' => 'budi-wijaya', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Information Technology', 'level' => 'General Manager'];
        $arr[] = ['user_id' => '656', 'username' => 'Muhammad Rifat', 'nama_depan' => 'Muhammad Rifat', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Store Management', 'level' => 'Staff'];
        $arr[] = ['user_id' => '657', 'username' => 'Edwin Arya Putra', 'nama_depan' => 'Edwin Arya Putra', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '658', 'username' => 'indrawati', 'nama_depan' => 'indrawati', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'National Sales Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '659', 'username' => 'yudhi-pramita', 'nama_depan' => 'yudhi-pramita', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'National Sales Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '660', 'username' => 'tri-wulansari', 'nama_depan' => 'tri-wulansari', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'National Sales Management', 'level' => 'Manager'];
        $arr[] = ['user_id' => '661', 'username' => 'billy-ramali', 'nama_depan' => 'billy-ramali', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '1', 'dept' => 'Commercial', 'level' => 'Manager'];
        $arr[] = ['user_id' => '662', 'username' => 'rissa-septina', 'nama_depan' => 'rissa-septina', 'role' => 'normal_user', 'admin_aktiv' => '0', 'admin_type' => '1', 'dept' => 'Others', 'level' => 'Staff'];
        $arr[] = ['user_id' => '663', 'username' => '14073', 'nama_depan' => 'TBS SUN PLAZA MEDAN', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '664', 'username' => '14109', 'nama_depan' => 'TBS CAMBRIDGE CITY MEDAN', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '665', 'username' => '14116', 'nama_depan' => 'TBS HERMES PLACE ACEH', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '666', 'username' => '14143', 'nama_depan' => 'TBS CENTER POINT MEDAN', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '667', 'username' => '14144', 'nama_depan' => 'TBS MALL MEDAN FAIR', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '668', 'username' => '14149', 'nama_depan' => 'TBS PARKSON CENTER POINT', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '669', 'username' => '14042', 'nama_depan' => 'TBS THAMRIN PLAZA MEDAN', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '670', 'username' => '14076', 'nama_depan' => 'TBS SKA MAL PEKANBARU', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '671', 'username' => '14083', 'nama_depan' => 'TBS CIPUTRA SERAYA MAL PEKANBARU', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '672', 'username' => '14132', 'nama_depan' => 'TBS GRAND BASCO PADANG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '673', 'username' => '14135', 'nama_depan' => 'TBS ID_THAMRIN PLAZA MEDAN', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '674', 'username' => '14136', 'nama_depan' => 'TBS MALL KEPRI BATAM', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '675', 'username' => '14154', 'nama_depan' => 'TBS NAGOYA CITY WALK BATAM', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '676', 'username' => '14030', 'nama_depan' => 'TBS PALEMBANG INDAH MAL PALEMBANG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '677', 'username' => '14120', 'nama_depan' => 'TBS WTC BATANGHARI JAMBI', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '678', 'username' => '14126', 'nama_depan' => 'TBS CENTRAL MALL LAMPUNG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '679', 'username' => '14155', 'nama_depan' => 'TBS PALEMBANG ICON', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '680', 'username' => '14165', 'nama_depan' => 'TBS BOEMI KEDATON LAMPUNG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '681', 'username' => '14750', 'nama_depan' => 'KIOSK MATAHARI PALEMBANG VILLAGE', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '682', 'username' => '14745', 'nama_depan' => 'KIOSK CENTRAL PLAZA LAMPUNG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '683', 'username' => '14022', 'nama_depan' => 'TBS PARIS VAN JAVA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '684', 'username' => '14038', 'nama_depan' => 'TBS BANDUNG INDAH PLAZA BANDUNG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '685', 'username' => '14043', 'nama_depan' => 'TBS BANDUNG SUPERMAL BANDUNG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '686', 'username' => '14070', 'nama_depan' => 'TBS ISTANA PLAZA BANDUNG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '687', 'username' => '14122', 'nama_depan' => 'TBS CIREBON SUPERBLOK', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '688', 'username' => '14129', 'nama_depan' => 'TBS FESTIVE CITILINK BANDUNG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '689', 'username' => '14157', 'nama_depan' => 'TBS CENTRO GRAGE CIREBON', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '690', 'username' => '14173', 'nama_depan' => 'TBS CIHAMPELAS WALK', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '691', 'username' => '14719', 'nama_depan' => 'KIOSK PLAZA MULIA SAMARINDA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '692', 'username' => '14011', 'nama_depan' => 'TBS DUTA MALL BANJARMASIN', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '693', 'username' => '14019', 'nama_depan' => 'TBS PLAZA BALIKPAPAN', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '694', 'username' => '14082', 'nama_depan' => 'TBS AYANI MEGAMAL PONTIANAK', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '695', 'username' => '14114', 'nama_depan' => 'TBS E-WALK BALIKPAPAN', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '696', 'username' => '14150', 'nama_depan' => 'TBS Q MALL BANJARMASIN', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '697', 'username' => '14162', 'nama_depan' => 'TBS BIG MALL SAMARINDA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '698', 'username' => '14025', 'nama_depan' => 'TBS METROPOLITAN MALL', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '699', 'username' => '14112', 'nama_depan' => 'TBS LIPPO CIKARANG CITYWALK', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '700', 'username' => '14138', 'nama_depan' => 'TBS SUMMARECON MALL BEKASI', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '701', 'username' => '14139', 'nama_depan' => 'TBS GALAXY PARK BEKASI', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '702', 'username' => '14142', 'nama_depan' => 'TBS GRAND METROPOLITAN BEKASI', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '703', 'username' => '14147', 'nama_depan' => 'TBS CENTRO GRAND METROPOLITAN', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '704', 'username' => '14163', 'nama_depan' => 'TBS CIPINANG MALL', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '705', 'username' => '14013', 'nama_depan' => 'TBS BOTANI SQUARE', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '706', 'username' => '14044', 'nama_depan' => 'TBS CENTRO MARGO CITY DEPOK JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '707', 'username' => '14085', 'nama_depan' => 'TBS CIBUBUR JUNCTION JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '708', 'username' => '14134', 'nama_depan' => 'TBS EKALOKSARI BOGOR', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '709', 'username' => '14148', 'nama_depan' => 'TBS CIPUTRA WORLD CIBUBUR', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '710', 'username' => '14153', 'nama_depan' => 'TBS CIBINONG CITY MALL', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '711', 'username' => '14018', 'nama_depan' => 'TBS PEJATEN VILLAGE JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '712', 'username' => '14039', 'nama_depan' => 'TBS PASARAYA GRANDE BLOK M JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '713', 'username' => '14041', 'nama_depan' => 'TBS BLOK M PLAZA JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '714', 'username' => '14061', 'nama_depan' => 'TBS CILANDAK TOWN SQUARE JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '715', 'username' => '14130', 'nama_depan' => 'TBS LIPPO MALL KEMANG JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '716', 'username' => '14159', 'nama_depan' => 'TBS CINERE BELLEVUE SUITES', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '717', 'username' => '14021', 'nama_depan' => 'TBS BINTARO PLAZA JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '718', 'username' => '14067', 'nama_depan' => 'TBS PONDOK INDAH MAL JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '719', 'username' => '14084', 'nama_depan' => 'SOGO PONDOK INDAH MAL II JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '720', 'username' => '14104', 'nama_depan' => 'TBS GANDARIA MAIN STREET', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '721', 'username' => '14118', 'nama_depan' => 'TBS LOTTE BINTARO', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '722', 'username' => '14160', 'nama_depan' => 'TBS BINTARO EXCHANGE JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '723', 'username' => '14161', 'nama_depan' => 'TBS CENTRO BINTARO EXCHANGE', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '724', 'username' => '14026', 'nama_depan' => 'TBS PACIFIC PLACE JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '725', 'username' => '14066', 'nama_depan' => 'TBS SEMANGGI PLAZA JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '726', 'username' => '14123', 'nama_depan' => 'TBS KUNINGAN CITY JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '727', 'username' => '14125', 'nama_depan' => 'TBS EPICENTRUM WALK', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '728', 'username' => '14127', 'nama_depan' => 'TBS KOTA CASABLANCA JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '729', 'username' => '14137', 'nama_depan' => 'TBS LOTTE AVENUE JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '730', 'username' => '14010', 'nama_depan' => 'TBS B GRAND INDONESIA JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '731', 'username' => '14023', 'nama_depan' => 'TBS GRAND INDONESIA JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '732', 'username' => '14033', 'nama_depan' => 'TBS PLAZA SENAYAN JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '733', 'username' => '14047', 'nama_depan' => 'TBS SENAYAN CITY JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '734', 'username' => '14050', 'nama_depan' => 'TBS INDONESIA PLAZA JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '735', 'username' => '14121', 'nama_depan' => 'TBS FX SUDIRMAN JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '736', 'username' => '14024', 'nama_depan' => 'TBS GAJAH MADA PLAZA JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '737', 'username' => '14029', 'nama_depan' => 'TBS CENTRO MALL OF INDONESIA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '738', 'username' => '14032', 'nama_depan' => 'TBS KELAPA GADING MAL JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '739', 'username' => '14087', 'nama_depan' => 'TBS MENTENG HUIS JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '740', 'username' => '14102', 'nama_depan' => 'TBS GOLDEN TRULLY (MHL)', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '741', 'username' => '14108', 'nama_depan' => 'TBS KELAPA GADING MALL 3', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '742', 'username' => '14748', 'nama_depan' => 'KIOSK MATAHARI SENEN JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '743', 'username' => '14017', 'nama_depan' => 'TBS PLUIT EMPORIUM', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '744', 'username' => '14034', 'nama_depan' => 'TBS PLUIT MEGA MAL JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '745', 'username' => '14036', 'nama_depan' => 'TBS TAMAN ANGGREK MAL JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '746', 'username' => '14101', 'nama_depan' => 'TBS CIPUTRA MALL JAKARTA (MHL)', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '747', 'username' => '14107', 'nama_depan' => 'TBS CENTRAL PARK JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '748', 'username' => '14151', 'nama_depan' => 'TBS GREEN BAY PLUIT', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '749', 'username' => '14720', 'nama_depan' => 'KIOSK MATAHARI TAMAN ANGGREK', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '750', 'username' => '14028', 'nama_depan' => 'TBS SUMARECON MALL SERPONG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '751', 'username' => '14037', 'nama_depan' => 'TBS LIPPO KARAWACI SUPERMAL JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '752', 'username' => '14060', 'nama_depan' => 'TBS PURI INDAH MAL JAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '753', 'username' => '14113', 'nama_depan' => 'TBS LIVING WORLD SERPONG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '754', 'username' => '14119', 'nama_depan' => 'TBS CENTRO SUMMARECON SERPONG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '755', 'username' => '14128', 'nama_depan' => 'TBS BALEKOTA TANGERANG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '756', 'username' => '14145', 'nama_depan' => 'TBS BREEZE BSD SERPONG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '757', 'username' => '14156', 'nama_depan' => 'TBS LIPPO MALL PURI @ST MORITZ', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '758', 'username' => '14164', 'nama_depan' => 'TBS PARKSON ST MORITZ', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '759', 'username' => '14747', 'nama_depan' => 'KIOSK MATAHARI KARAWACI TANGERANG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '760', 'username' => '14012', 'nama_depan' => 'TBS MALIOBORO YOGYA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '761', 'username' => '14027', 'nama_depan' => 'TBS SOLO SQUARE', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '762', 'username' => '14046', 'nama_depan' => 'TBS CENTRO AMBARUKMO YOGYAKARTA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '763', 'username' => '14071', 'nama_depan' => 'TBS JAVA SUPERMAL SEMARANG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '764', 'username' => '14103', 'nama_depan' => 'TBS PARAGON CITY SEMARANG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '765', 'username' => '14111', 'nama_depan' => 'TBS CIPUTRA SEMARANG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '766', 'username' => '14133', 'nama_depan' => 'TBS CENTRO PARAGON SOLO', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '767', 'username' => '14175', 'nama_depan' => 'TBS PLAZA AMBARUKMO', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '768', 'username' => '14740', 'nama_depan' => 'KIOSK MATAHARI GALERIA YOGYA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '769', 'username' => '14020', 'nama_depan' => 'TBS SURABAYA TOWN SQUARE', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '770', 'username' => '14035', 'nama_depan' => 'TBS GALAXY MAL SURABAYA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '771', 'username' => '14063', 'nama_depan' => 'TBS TUNJUNGAN PLAZA 4 SURABAYA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '772', 'username' => '14077', 'nama_depan' => 'TBS PAKUWON SUPERMAL SURABAYA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '773', 'username' => '14115', 'nama_depan' => 'TBS CIPUTRA WORLD SURABAYA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '774', 'username' => '14117', 'nama_depan' => 'TBS CENTRO GALAXY SURABAYA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '775', 'username' => '14131', 'nama_depan' => 'TBS GRAND CITY MALL SURABAYA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '776', 'username' => '14158', 'nama_depan' => 'TBS MALL OLYMPIC GARDEN MALANG', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '777', 'username' => '14746', 'nama_depan' => 'KIOSK MATAHARI TUNJUNGAN PLAZA', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '778', 'username' => '14749', 'nama_depan' => 'KIOSK MATAHARI MALANG TOWN SQUARE', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '779', 'username' => '14065', 'nama_depan' => 'TBS GALERIA SIMPANG SIUR BALI', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '780', 'username' => '14079', 'nama_depan' => 'TBS CENTRO KUTA BALI', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '781', 'username' => '14081', 'nama_depan' => 'TBS DUTA PLAZA BALI', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '782', 'username' => '14124', 'nama_depan' => 'TBS BEACH WALK KUTA BALI', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '783', 'username' => '14140', 'nama_depan' => 'TBS KUTA ICON', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '784', 'username' => '14752', 'nama_depan' => 'KIOSK MATAHARI KUTA SQUARE', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '785', 'username' => '14058', 'nama_depan' => 'TBS RATU INDAH MAL MAKASAR', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '786', 'username' => '14072', 'nama_depan' => 'TBS PANAKKUKANG MAL MAKASAR', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '787', 'username' => '14105', 'nama_depan' => 'TBS TRANS WORLD MAKASSAR', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '788', 'username' => '14106', 'nama_depan' => 'TBS MANADO TOWN SQUARE', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '789', 'username' => '14141', 'nama_depan' => 'TBS PLAZA LIPPO KENDARI', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '790', 'username' => '14146', 'nama_depan' => 'TBS GORONTALO MALL', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $arr[] = ['user_id' => '791', 'username' => '14152', 'nama_depan' => 'TBS PALU GRAND MALL', 'role' => 'normal_user', 'admin_aktiv' => '1', 'admin_type' => '2', 'dept' => 'Store', 'level' => 'Staff'];
        $successArr = array();
        $failedArr = array();
        foreach ($arr as $obj) {
            $acc = new Account();
            $acc->getByID($obj["user_id"]);
            $acc->admin_username = $obj["username"];
            $acc->admin_nama_depan = $obj["nama_depan"];
            $acc->admin_type = $obj["admin_type"];
            $acc->admin_role = $obj["role"];
            $acc->admin_aktiv = $obj["admin_aktiv"];
            $succ = $acc->save();
            //pr($acc);
            //$succ = 1;
            //tambahan roy
            if ($succ) {
                //$acc->admin_id = $obj["user_id"];
                /*
                 * ambil level dan organization
                 */
                $roleLvl = new RoleLevel();
                $arrrl = $roleLvl->getWhere("level_name = '" . $obj['level'] . "'");
                $roleLvl = $arrrl[0];
                $valueLvl = 0;
                if (isset($roleLvl->level_id)) {
                    $valueLvl = $roleLvl->level_id;
                }
                //echo "<br>Lvl : ". $valueLvl;
                //ORG
                $roleLvl = new RoleOrganization();
                $arrrl = $roleLvl->getWhere("organization_name = '" . $obj['dept'] . "'");
                $roleLvl = $arrrl[0];
                $valueOrg = 0;
                if (isset($roleLvl->organization_id)) {
                    $valueOrg = $roleLvl->organization_id;
                }
                //echo "<br>ORG : ".$valueOrg;
                //set LVL
                $acm = new AccountMeta();
                $arrlvl = $acm->getWhere("account_id = '{$acc->admin_id}' AND meta_key = 'RoleLevel'");
                $lvlmeta = $arrlvl[0];
                if (isset($lvlmeta->meta_id)) {
                    //sudah ada berarti update
                    $acm = $lvlmeta;
                    $acm->meta_value = $valueLvl;
                    $acm->load = 1;
                    $acm->save();
                } else {
                    //belum ada create new
                    $acm->account_id = $acc->admin_id;
                    $acm->meta_key = "RoleLevel";
                    $acm->meta_value = $valueLvl;
                    $acm->save();
                }
                //pr($acm);
                if ($valueLvl != 0 && $valueOrg != 0) {
                    $successArr[] = array("ID" => $acc->admin_id, "username" => $acc->admin_username, "lvl_ID" => $valueLvl, "lvl_name" => $obj['level'], "Dept_ID" => $valueOrg, "Dept_name" => $obj['dept']);
                } else {
                    $failedArr[] = array("ID" => $acc->admin_id, "username" => $acc->admin_username, "lvl_ID" => $valueLvl, "lvl_name" => $obj['level'], "Dept_ID" => $valueOrg, "Dept_name" => $obj['dept']);
                }
                //set ORG
                $acm = new AccountMeta();
                $arrlvl = $acm->getWhere("account_id = '{$acc->admin_id}' AND meta_key = 'RoleOrganization'");
                $lvlmeta = $arrlvl[0];
                if (isset($lvlmeta->meta_id)) {
                    //sudah ada berarti update
                    $acm = $lvlmeta;
                    $acm->meta_value = $valueOrg;
                    $acm->load = 1;
                    $acm->save();
                } else {
                    //belum ada create new
                    $acm->account_id = $acc->admin_id;
                    $acm->meta_key = "RoleOrganization";
                    $acm->meta_value = $valueOrg;
                    $acm->save();
                }
                //pr($acm);
            }
            //succ
        }
        ?>
<h1>Failed</h1><?php 
        pr($failedArr);
        ?>
<h1>Success</h1><?php 
        pr($successArr);
    }
                        </div>
                        <!-- /.row -->

                        <div class="table-responsive">
                            <!-- THE MESSAGES -->

                            <table class="table table-mailbox">
                                <?php 
$myID = Account::getMyID();
foreach ($arrMsg as $msg) {
    $idlawan = $msg->inbox_from;
    if ($myID == $msg->inbox_from) {
        $idlawan = $msg->inbox_to;
    }
    $acc = new Account();
    $acc->getByID($idlawan);
    $cssclass = $msg->inbox_type;
    if ($msg->inbox_giliran_read == $myID) {
        if (!$msg->inbox_read) {
            $cssclass .= " unread";
        }
    }
    $isDelivered = '';
    if ($msg->inbox_giliran_read != $myID) {
        if (!$msg->inbox_read) {
            $isDelivered = "<i class='glyphicon glyphicon-envelope delivered'></i>";
        } else {
            $isDelivered = "<i class='glyphicon glyphicon-ok read'></i>";
        }
    } else {
        $isDelivered = "<i class='glyphicon glyphicon-pencil reply'></i>";
    function fmenu($if)
    {
        $acc = new Account();
        $acc->getByID($if->file_author);
        $path = _SPPATH . $if->upload_url;
        $fil = $if->file_filename;
        ?>
		<div class="col-md-4">
			<h3 class="h3pv"
			    style="width: 100%; overflow: hidden;"><?php 
        echo $if->file_url;
        ?>
</h3>

			<div class="metadata"><?php 
        echo Lang::t('Author');
        ?>
 : <?php 
        echo $acc->admin_nama_depan;
        ?>
 </div>
			<div class="metadata"><?php 
        echo Lang::t('Size');
        ?>
 : <?php 
        echo formatSizeUnits($if->file_size);
        ?>
 </div>
			<div class="metadata"><?php 
        echo Lang::t('Date');
        ?>
 : <?php 
        echo indonesian_date($if->file_date);
        ?>
 </div>
			<?php 
        $inp = new \Leap\View\InputFile();
        if (in_array($if->file_ext, $inp->arrVideoExt)) {
            ?>
				<!--				<div class="metadata">Embed Code : <br/>--><?php 
            //= '#tbs_video#' . _BPATH . $if->upload_url . $if->file_filename .
            //					'#/tbs_video#'
            ?>
<!--</div>-->
				<div class="clone-url open"
				     data-protocol-type="subversion"
				     data-url="/users/set_protocol?protocol_selector=subversion&amp;protocol_type=clone">
					Embed Code :

					<div class="input-group js-zeroclipboard-container">
						<input type="text"
						       class="input-mini input-monospace js-url-field js-zeroclipboard-target"
						       value="<?php 
            echo '#tbs_video#' . _BPATH . $if->upload_url . $if->file_filename . '#/tbs_video#';
            ?>
"
						       readonly="readonly" />
					</div>
				</div>
			<?php 
        }
        ?>
			<?php 
        if ($if->file_ext == "pdf") {
            ?>
				<?php 
            /*<button style="margin-top: 10px;"
              onclick="window.open('<?= _SPPATH; ?>js/ViewerJS/leappdf.php?nn=<?= $if->file_url; ?>&dd=<?= $if->bolehsave; ?>#<?= base64_encode($path .
               $if->file_filename); ?>.pdf','_blank');"
              class="btn btn-primary"><?= Lang::t('Open'); ?></button>*/
            ?>
			<?php 
        } else {
            ?>
				<button style="margin-top: 10px;"
				        onclick="window.open('<?php 
            echo $path . $fil;
            ?>
','_blank');"
				        class="btn btn-primary"><?php 
            echo Lang::t('Open');
            ?>
</button>
			<?php 
        }
        //pr($if);
        ?>
		</div>
	<?php 
    }
 public function editProfileSubmit()
 {
     $fname = addslashes($_POST['fname']);
     $lname = addslashes($_POST['lname']);
     $emailadd = addslashes($_POST['emailadd']);
     $p1 = addslashes($_POST['p1']);
     $p2 = addslashes($_POST['p2']);
     $err = 0;
     $msg = array();
     //check if password matched
     if ($p1 != Account::getMyPassword()) {
         $err = 1;
         $msg[] = "Password Salah";
     }
     if ($p2 != "") {
         if (strlen($p2) < 5) {
             $err = 1;
             $msg[] = "Password Baru Kurang Panjang, min 5 Karakter";
         }
     }
     if ($fname == "") {
         $err = 1;
         $msg[] = "Nama Depan Tidak Boleh Kosong";
     }
     if ($lname == "") {
         $err = 1;
         $msg[] = "Nama Belakang Tidak Boleh Kosong";
     }
     if (!filter_var($emailadd, FILTER_VALIDATE_EMAIL)) {
         $err = 1;
         $msg[] = "Email tidak valid";
     }
     if ($emailadd != Account::getMyEmail()) {
         $fb = new Account();
         $arr = $fb->getWhere("admin_email = '{$emailadd}'");
         if (count($arr) > 0) {
             $err = 1;
             $msg[] = "Email sudah terpakai";
         }
     }
     if (!$err) {
         if ($p2 != "") {
             $p1 = $p2;
         }
         $acc = new Account();
         $acc->getByID(Account::getMyID());
         $acc->admin_nama_depan = $fname;
         $acc->admin_nama_belakang = $lname;
         $acc->admin_name = $fname . " " . $lname;
         $acc->admin_email = $emailadd;
         $acc->admin_password = $p1;
         //$acc->admin_role = "normal_user";
         $acc->admin_lastupdate = leap_mysqldate();
         //$acc->admin_createdate = leap_mysqldate();
         //$acc->admin_aktiv = 1;
         $acc->load = 1;
         $acc->save();
         $_SESSION['account'] = $acc;
         //if($succ){
         header("Location:" . _SPPATH . "myprofile?succ=Update%20Successful");
         die;
         /*}
           else{
               header("Location:"._SPPATH."myprofile?err=Penyimpanan%20Gagal");
               die();
           }*/
     } else {
         $msgerr = implode(",", $msg);
         header("Location:" . _SPPATH . "myprofile?err=" . $msgerr);
         die;
     }
 }
Esempio n. 9
0
<?php

require_once "./inc/Auth.class.php";
require_once "./inc/Project.class.php";
error_reporting(E_ALL);
$auth = new Auth();
$loggedIn = $auth->loggedIn;
if (isset($_GET['loggedIn'])) {
    //$loggedIn = false; //DEBUG!
} else {
    //$loggedIn = true;
}
//$account = $auth->account;
$account = new Account();
$account->getByID(1);
$account->getData();
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style/reset.css">
<link rel="stylesheet" type="text/css" href="style/style.css">

<title>curv-e - Das Projektmanagementsystem</title>
</head>
<body>
<?php 
if ($loggedIn == true) {
    //EINGELOGGT HTML Start!
    ?>
<div id="head_wrap">
	<div id="header">
Esempio n. 10
0
<?php

require_once dirname(__FILE__) . '/config.php';
require_once dirname(__FILE__) . '/User.php';
require_once dirname(__FILE__) . '/Account.php';
$user = User::require_login();
if (array_key_exists('account', $_GET)) {
    $account = Account::getByID($_GET['account']);
    if (!is_null($account)) {
        $account->setAsCurrent($user);
    }
}
if (array_key_exists('return', $_GET)) {
    $return_to = $_GET['return'];
} else {
    $return_to = UserConfig::$USERSROOTURL . '/manage_account.php';
}
header('Location: ' . $return_to);
 public function sendByID($id, $judul, $msg)
 {
     $acc = new Account();
     $acc->getByID($id);
     if (!filter_var($acc->admin_email, FILTER_VALIDATE_EMAIL)) {
         return 0;
     } else {
         return $this->sendEmail($acc->admin_email, $judul, $msg);
     }
 }
Esempio n. 12
0
<?php

require_once 'inc/Database.class.php';
require_once 'inc/Account.class.php';
$db = new Database();
$members = array();
$membersID = $db->getValues("ac_id", "accounts", "", "", "ac_lastname DESC");
for ($i = 0; $i < count($membersID); $i++) {
    $account = new Account();
    $account->getByID($membersID[$i][0]);
    $members[$i] = $account;
}
echo "<table>";
for ($i = 0; $i < count($members); $i++) {
    echo "<tr>";
    echo "<td>" . $members[$i]->ac_firstname . " " . $members[$i]->ac_lastname . "</td>";
    echo "</tr>";
}
 public static function payoutWS($acc)
 {
     $agent_id = $acc->admin_id;
     $mon = isset($_GET['mon']) ? addslashes($_GET['mon']) : date("n");
     $y = isset($_GET['y']) ? addslashes($_GET['y']) : date("Y");
     $json['acc_id'] = $acc->admin_id;
     $json['mon'] = $mon;
     $json['y'] = $y;
     $arr = AppearSales::getPayoutArray($acc->admin_id, $mon, $y);
     foreach ($arr['pertama'] as $tt) {
         $app = new AppAccount();
         $app->getByID($tt->komisi_app_id);
         $acc = new Account();
         $acc->getByID($tt->komisi_app_client_id);
         $paket = new Paket();
         $paket->getByID($tt->komisi_paket_id);
         $earn = array();
         $earn['order_id'] = $tt->komisi_order_id;
         $earn['komisi_app_date'] = $tt->komisi_app_date;
         $earn['app_name'] = $app->app_name;
         $earn['app_id'] = $app->app_id;
         $earn['client_name'] = $acc->admin_nama_depan;
         $earn['paket_id'] = $paket->paket_id;
         $earn['paket_name'] = $paket->paket_name;
         //            $earn['komisi_tingtong'] = $tt->komisi_ting_tong;
         //            $earn['komisi_tingtong_date'] = $tt->komisi_tingtong_date;
         $earn['komisi_bagi_pertama_value'] = $tt->komisi_bagi_pertama_value;
         $earn['komisi_bagi_pertama_date'] = date("F Y", strtotime($tt->komisi_bagi_pertama_date));
         $earn['komisi_bagi_kedua_value'] = $tt->komisi_bagi_kedua_value;
         $earn['komisi_bagi_kedua_date'] = date("F Y", strtotime($tt->komisi_bagi_kedua_date));
         $earn['total_komisi'] = $tt->komisi_value;
         $json['payout']['first'][] = $earn;
     }
     foreach ($arr['kedua'] as $tt) {
         $app = new AppAccount();
         $app->getByID($tt->komisi_app_id);
         $acc = new Account();
         $acc->getByID($tt->komisi_app_client_id);
         $paket = new Paket();
         $paket->getByID($tt->komisi_paket_id);
         $earn = array();
         $earn['order_id'] = $tt->komisi_order_id;
         $earn['komisi_app_date'] = $tt->komisi_app_date;
         $earn['app_name'] = $app->app_name;
         $earn['app_id'] = $app->app_id;
         $earn['client_name'] = $acc->admin_nama_depan;
         $earn['paket_id'] = $paket->paket_id;
         $earn['paket_name'] = $paket->paket_name;
         //            $earn['komisi_tingtong'] = $tt->komisi_ting_tong;
         //            $earn['komisi_tingtong_date'] = $tt->komisi_tingtong_date;
         $earn['komisi_bagi_pertama_value'] = $tt->komisi_bagi_pertama_value;
         $earn['komisi_bagi_pertama_date'] = date("F Y", strtotime($tt->komisi_bagi_pertama_date));
         $earn['komisi_bagi_kedua_value'] = $tt->komisi_bagi_kedua_value;
         $earn['komisi_bagi_kedua_date'] = date("F Y", strtotime($tt->komisi_bagi_kedua_date));
         $earn['total_komisi'] = $tt->komisi_value;
         $json['payout']['kedua'][] = $earn;
     }
     foreach ($arr['bonus'] as $tt) {
         $app = new BonusKomisi();
         $app->getByID($tt->bagi_bk_id);
         $acc = new Account();
         $acc->getByID($tt->bagi_acc_id);
         $earn = array();
         $earn['bonus_name'] = "Bonus " . $tt->bagi_bk_id;
         $earn['bonus_date'] = $tt->bagi_date_acquire;
         $earn['bonus_value'] = $tt->bagi_value;
         $json['payout']['bonus'][] = $earn;
     }
     $json['payout_total'] = AppearSales::calculatePayout($agent_id, $mon, $y)['total'];
     $json['status_code'] = 1;
     $json['status_message'] = "Success";
     echo json_encode($json);
     die;
 }
Esempio n. 14
0
    function comissioning()
    {
        $komisiModel = new KomisiModel();
        global $db;
        $q = "SELECT SUM(komisi_sisa) as total FROM {$komisiModel->table_name} WHERE komisi_status != 4";
        $arrRev = $db->query($q, 1);
        $mon = isset($_GET['mon']) ? addslashes($_GET['mon']) : date("n");
        $y = isset($_GET['y']) ? addslashes($_GET['y']) : date("Y");
        ?>
        <h1>Comissioning</h1>
        <h1>Total Due Commision IDR <?php 
        echo idr($arrRev->total);
        ?>
</h1>
        Month : <select id="mon">
            <?php 
        for ($x = 1; $x < 13; $x++) {
            ?>
                <option <?php 
            if ($mon == $x) {
                echo "selected";
            }
            ?>
 value="<?php 
            echo $x;
            ?>
"><?php 
            echo $x;
            ?>
</option>
            <?php 
        }
        ?>
        </select>
        Year : <select id="year">
            <?php 
        for ($x = 2016; $x < 2030; $x++) {
            ?>
                <option <?php 
            if ($y == $x) {
                echo "selected";
            }
            ?>
  value="<?php 
            echo $x;
            ?>
"><?php 
            echo $x;
            ?>
</option>
        <?php 
        }
        ?>
        </select>

        <button id="change" class="btn btn-default">Change Month</button>
        <script>
            $('#change').click(function(){

               openLw("Comissioning",'<?php 
        echo _SPPATH;
        ?>
FinanceBE/comissioning?mon='+$('#mon').val()+'&y='+$('#year').val(),'fade');
            });
        </script>
        <?php 
        //        echo "<br>".$_POST['mon']."<br>";
        $date = new DateTime();
        $date->setDate($y, $mon, 1);
        $ymd = $date->format('Y-m-d');
        $thismon = $mon;
        $prev_mon = date('n', strtotime($ymd . " -3 months"));
        $prev_year = date('Y', strtotime($ymd . " -3 months"));
        echo "<br>" . $thismon . " " . $y;
        echo "<br>" . $prev_mon . " {$prev_year}<br>";
        $syarat_paid = "(komisi_status = 0 AND komisi_paket_id != 1 AND month(komisi_app_date) = {$thismon} AND year(komisi_app_date) = {$y})";
        $syarat_free = "(komisi_status = 0 AND komisi_paket_id = 1 AND month(komisi_app_date) = {$thismon} AND year(komisi_app_date) = {$y} AND komisi_ting_tong = 1)";
        $syarat_half_paid = "(komisi_status = 2 AND komisi_paket_id != 1 AND month(komisi_app_date) = {$prev_mon} AND year(komisi_app_date) = {$prev_year})";
        $syarat_half_free = "(komisi_status = 2 AND komisi_paket_id = 1 AND komisi_ting_tong = 1 AND month(komisi_app_date) = {$prev_mon} AND year(komisi_app_date) = {$prev_year})";
        //syarat
        $dateAwal = $ymd;
        $date2nd = date('Y-m-d', strtotime($ymd . " -3 months"));
        $syarat_piu_paid = "(komisi_status = 0 AND komisi_paket_id != 1 AND komisi_app_date < '{$ymd}' AND komisi_app_date >= '{$date2nd}')";
        $syarat_piu_free = "(komisi_status = 0 AND komisi_paket_id = 1 AND komisi_ting_tong = 1 AND komisi_app_date < '{$ymd}' AND komisi_app_date >= '{$date2nd}')";
        $syarat_piu_half_paid = "(komisi_status = 0 AND komisi_paket_id != 1 AND komisi_app_date < '{$date2nd}')";
        $syarat_piu_half_free = "(komisi_status = 0 AND komisi_paket_id = 1 AND komisi_ting_tong = 1  AND komisi_app_date < '{$date2nd}')";
        //        echo $syarat_paid."<br> OR ".$syarat_free."<br> OR ".$syarat_half;
        //        $arrKom = $komisiModel->getWhere($syarat_paid." OR ".$syarat_free." OR ".$syarat_half_paid." ORDER BY komisi_app_date ASC");
        //        echo "komisi_status = '0' AND komisi_paket_id != 1 AND (day(komisi_app_date)>24 AND month(komisi_app_date) = $prev) OR (day(komisi_app_date)<25 AND month(komisi_app_date) = $thismon)";
        //        pr($arrKom);
        echo "batesan piutang " . $dateAwal . " " . $date2nd;
        echo "<br>" . $syarat_piu_paid;
        $arrKomFirstPaid = $komisiModel->getWhere($syarat_paid . " ORDER BY komisi_app_date ASC");
        $arrKomFirstFree = $komisiModel->getWhere($syarat_free . " ORDER BY komisi_app_date ASC");
        $arrKomSecondPaid = $komisiModel->getWhere($syarat_half_paid . " ORDER BY komisi_app_date ASC");
        $arrKomSecondFree = $komisiModel->getWhere($syarat_half_free . " ORDER BY komisi_app_date ASC");
        $arrPiuFirstPaid = $komisiModel->getWhere($syarat_piu_paid . " ORDER BY komisi_app_date ASC");
        $arrPiuFirstFree = $komisiModel->getWhere($syarat_piu_free . " ORDER BY komisi_app_date ASC");
        $arrPiuSecondPaid = $komisiModel->getWhere($syarat_piu_half_paid . " ORDER BY komisi_app_date ASC");
        $arrPiuSecondFree = $komisiModel->getWhere($syarat_piu_half_free . " ORDER BY komisi_app_date ASC");
        ?>
        <h3>Payment For <?php 
        echo $thismon;
        ?>
</h3>
        <div class="table-responsive">
            <table class="table table-bordered table-striped">
                <thead>
                <tr>
                    <th>Komisi ID</th>
                    <th>Komisi Date</th>
                    <th>Komisi Paket</th>
                    <th>Komisi Status</th>
                    <th>Komisi Agent Ready</th>
                    <th>Komisi Value</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td colspan="6">

                        <h1>First Paid</h1>
                    </td>
                </tr>

                <?php 
        $total = 0;
        $totalkaliini = 0;
        foreach ($arrKomFirstPaid as $kom) {
            ?>
                    <tr>
                        <td><?php 
            echo $kom->komisi_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_app_date;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_paket_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_status;
            ?>
</td>
                        <td><?php 
            $acc = new Account();
            $acc->getByID($kom->komisi_acc_id);
            echo $acc->admin_id . " " . $acc->admin_nama_depan;
            if ($acc->admin_isAgent) {
                echo " <b>agent ready</b>";
                $total += $kom->komisi_bagi_pertama_value;
                $totalkaliini += $kom->komisi_value;
            } else {
                echo " <i>not ready</i>";
            }
            ?>
</td>
                        <td><?php 
            echo idr($kom->komisi_bagi_pertama_value);
            ?>
</td>
                    </tr>
                <?php 
        }
        ?>
                <tr>
                    <td colspan="6">
                        <?php 
        echo $totalkaliini . " " . $total;
        ?>
                        <h1>First Free</h1>
                    </td>
                </tr>
                <?php 
        foreach ($arrKomFirstFree as $kom) {
            ?>
                    <tr>
                        <td><?php 
            echo $kom->komisi_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_app_date;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_paket_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_status;
            ?>
</td>
                        <td><?php 
            $acc = new Account();
            $acc->getByID($kom->komisi_acc_id);
            echo $acc->admin_id . " " . $acc->admin_nama_depan;
            if ($acc->admin_isAgent) {
                echo " <b>agent ready</b>";
                $total += $kom->komisi_bagi_pertama_value;
                $totalkaliini += $kom->komisi_value;
            } else {
                echo " <i>not ready</i>";
            }
            ?>
</td>
                        <td><?php 
            echo idr($kom->komisi_bagi_pertama_value);
            ?>
</td>
                    </tr>
                <?php 
        }
        ?>
                <tr>
                    <td colspan="6">

                        <h1>Second Paid</h1>
                    </td>
                </tr>

                <?php 
        foreach ($arrKomSecondPaid as $kom) {
            ?>
                    <tr>
                        <td><?php 
            echo $kom->komisi_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_app_date;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_paket_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_status;
            ?>
</td>
                        <td><?php 
            $acc = new Account();
            $acc->getByID($kom->komisi_acc_id);
            echo $acc->admin_id . " " . $acc->admin_nama_depan;
            if ($acc->admin_isAgent) {
                echo " <b>agent ready</b>";
                $total += $kom->komisi_bagi_kedua_value;
                $totalkaliini += $kom->komisi_value;
            } else {
                echo " <i>not ready</i>";
            }
            ?>
</td>
                        <td><?php 
            echo idr($kom->komisi_bagi_kedua_value);
            ?>
</td>
                    </tr>
                <?php 
        }
        ?>
                <tr>
                    <td colspan="6">

                        <h1>Second Free</h1>
                    </td>
                </tr>

                <?php 
        foreach ($arrKomSecondFree as $kom) {
            ?>
                    <tr>
                        <td><?php 
            echo $kom->komisi_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_app_date;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_paket_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_status;
            ?>
</td>
                        <td><?php 
            $acc = new Account();
            $acc->getByID($kom->komisi_acc_id);
            echo $acc->admin_id . " " . $acc->admin_nama_depan;
            if ($acc->admin_isAgent) {
                echo " <b>agent ready</b>";
                $total += $kom->komisi_bagi_kedua_value;
                $totalkaliini += $kom->komisi_value;
            } else {
                echo " <i>not ready</i>";
            }
            ?>
</td>
                        <td><?php 
            echo idr($kom->komisi_bagi_kedua_value);
            ?>
</td>
                    </tr>
                <?php 
        }
        ?>
                <tr>
                    <td colspan="6">

                        <h1>Piutang Paid </h1>
                    </td>
                </tr>

                <?php 
        foreach ($arrPiuFirstPaid as $kom) {
            ?>
                    <tr>
                        <td><?php 
            echo $kom->komisi_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_app_date;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_paket_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_status;
            ?>
</td>
                        <td><?php 
            $acc = new Account();
            $acc->getByID($kom->komisi_acc_id);
            echo $acc->admin_id . " " . $acc->admin_nama_depan;
            if ($acc->admin_isAgent) {
                echo " <b>agent ready</b>";
                $total += $kom->komisi_bagi_pertama_value;
                $totalkaliini += $kom->komisi_value;
            } else {
                echo " <i>not ready</i>";
            }
            ?>
</td>
                        <td><?php 
            echo idr($kom->komisi_bagi_pertama_value);
            ?>
</td>
                    </tr>
                <?php 
        }
        ?>
                <tr>
                    <td colspan="6">

                        <h1>Piutang Free </h1>
                    </td>
                </tr>

                <?php 
        foreach ($arrPiuFirstFree as $kom) {
            ?>
                    <tr>
                        <td><?php 
            echo $kom->komisi_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_app_date;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_paket_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_status;
            ?>
</td>
                        <td><?php 
            $acc = new Account();
            $acc->getByID($kom->komisi_acc_id);
            echo $acc->admin_id . " " . $acc->admin_nama_depan;
            if ($acc->admin_isAgent) {
                echo " <b>agent ready</b>";
                $total += $kom->komisi_bagi_pertama_value;
                $totalkaliini += $kom->komisi_value;
            } else {
                echo " <i>not ready</i>";
            }
            ?>
</td>
                        <td><?php 
            echo idr($kom->komisi_bagi_pertama_value);
            ?>
</td>
                    </tr>
                <?php 
        }
        ?>
                <tr>
                    <td colspan="6">

                        <h1>Piu Second Paid</h1>
                    </td>
                </tr>

                <?php 
        foreach ($arrPiuSecondPaid as $kom) {
            ?>
                    <tr>
                        <td><?php 
            echo $kom->komisi_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_app_date;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_paket_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_status;
            ?>
</td>
                        <td><?php 
            $acc = new Account();
            $acc->getByID($kom->komisi_acc_id);
            echo $acc->admin_id . " " . $acc->admin_nama_depan;
            if ($acc->admin_isAgent) {
                echo " <b>agent ready</b>";
                $total += $kom->komisi_bagi_kedua_value;
                $totalkaliini += $kom->komisi_value;
            } else {
                echo " <i>not ready</i>";
            }
            ?>
</td>
                        <td><?php 
            echo idr($kom->komisi_value);
            ?>
</td>
                    </tr>
                <?php 
        }
        ?>
                <tr>
                    <td colspan="6">

                        <h1>Piu Second Free</h1>
                    </td>
                </tr>

                <?php 
        foreach ($arrPiuSecondFree as $kom) {
            ?>
                    <tr>
                        <td><?php 
            echo $kom->komisi_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_app_date;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_paket_id;
            ?>
</td>
                        <td><?php 
            echo $kom->komisi_status;
            ?>
</td>
                        <td><?php 
            $acc = new Account();
            $acc->getByID($kom->komisi_acc_id);
            echo $acc->admin_id . " " . $acc->admin_nama_depan;
            if ($acc->admin_isAgent) {
                echo " <b>agent ready</b>";
                $total += $kom->komisi_bagi_kedua_value;
                $totalkaliini += $kom->komisi_value;
            } else {
                echo " <i>not ready</i>";
            }
            ?>
</td>
                        <td><?php 
            echo idr($kom->komisi_value);
            ?>
</td>
                    </tr>
                <?php 
        }
        ?>
                </tbody>
            </table>
        </div>
        <h1>Total Kali ini nya : IDR <?php 
        echo idr($total);
        ?>
</h1>
        <h1>Total Semuanya : IDR <?php 
        echo idr($totalkaliini);
        ?>
</h1>
        Eh masih hrs ditambah yang payment kedua..oh iya trus totalnya hrs dipotong 500rb ...
        Apa tanggal bisa dijadikan 1-31 dan paymentnya mundur ke tgl 10 ?
        <button class="btn btn-primary">Create this month Commisions Request</button>
        <?php 
    }
 public function composeByID()
 {
     $acc_id = isset($_GET['acc_id']) ? addslashes($_GET['acc_id']) : die('ACC iD empty');
     $acc = new Account();
     $acc->getByID($acc_id);
     $return['method'] = __FUNCTION__;
     $return['webClass'] = __CLASS__;
     $return['acc'] = $acc;
     $return['byID'] = 1;
     Mold::both("inbox/compose", $return);
 }
 /**
  * Check which records are not being sync (deactivated)
  */
 public function deactivateUsers()
 {
     global $db;
     $result = $db->query('SELECT admin_id FROM sp_admin_account where admin_type = ' . $this::DEFAULT_TYPE . ' AND admin_aktiv = 1 AND admin_id NOT IN (' . implode(',', $this->arrAdminId) . ')', 2);
     foreach ($result as $adminId) {
         $acc = new Account();
         $acc->getByID($adminId->admin_id);
         $acc->admin_aktiv = 0;
         $acc->save();
         $this->arrDeactivated[] = $acc->admin_username;
     }
 }
 public static function log($app, $vpt)
 {
     if ($app->app_active != 1) {
         die("App harus active utk dapat komisi");
     }
     $acc = new Account();
     $acc->getByID($app->app_client_id);
     //        AppAccount::checkOwnership($app);
     if ($acc->admin_marketer != "") {
         $arrAcc = $acc->getWhere("admin_username = '******' LIMIT 0,1");
         if (count($arrAcc) > 0) {
             $marketer = $arrAcc[0];
         } else {
             //set default marketer to 7 /elroy
             $marketer = new Account();
             $marketer->getByID(Efiwebsetting::getData("Default_Agent_ID"));
         }
     } else {
         //set default marketer to 7 /elroy
         $marketer = new Account();
         $marketer->getByID(Efiwebsetting::getData("Default_Agent_ID"));
     }
     $paket = new Paket();
     $paket->getByID($app->app_paket_id);
     $komisi = new KomisiModel();
     $komisi->komisi_acc_id = $marketer->admin_id;
     $komisi->komisi_app_client_id = $app->app_client_id;
     $komisi->komisi_app_date = leap_mysqldate();
     $komisi->komisi_app_id = $app->app_id;
     $komisi->komisi_paket_id = $paket->paket_id;
     $komisi->komisi_value = $paket->paket_komisi;
     $komisi->komisi_status = 0;
     //blm dibayarkan
     $komisi->komisi_sisa = $paket->paket_komisi;
     $komisi->komisi_order_id = $vpt->order_id;
     $komisi->komisi_bagi_pertama_value = $paket->paket_komisi_satu;
     $komisi->komisi_bagi_kedua_value = $paket->paket_komisi_dua;
     //langsung save datenya saja sehingga gampang
     $pay1_date = getFirstDayOfNextMonth(date("n", strtotime($komisi->komisi_app_date)), date("Y", strtotime($komisi->komisi_app_date)));
     $pay2_date = getFirstDayOfNext4Month(date("n", strtotime($komisi->komisi_app_date)), date("Y", strtotime($komisi->komisi_app_date)));
     if ($paket->paket_id != 1) {
         $komisi->komisi_bagi_pertama_date = $pay1_date;
         $komisi->komisi_bagi_kedua_date = $pay2_date;
     }
     $succ = $komisi->save();
     if ($succ) {
         $isPending = 0;
         if ($paket->paket_id == 1) {
             $isPending = 1;
         }
         //email dpt komisi
         $dpt = new DataEmail();
         $dpt->dapatKomisi($marketer->admin_email, $paket->paket_komisi, $isPending, $acc->admin_nama_depan, $marketer->admin_isAgent);
         //tambah counter paket //atau ambil counter paket disini
         if ($paket->paket_id == 1) {
             //free
             //check sudah ada brp paid yang sudah dibayar dll
             //cek apa bisa tingtong
             self::checkTingTongFree($app, $marketer, $succ, $paket, $acc, "free");
             $komisi = new KomisiModel();
             $nr = $komisi->getJumlah("komisi_acc_id = '{$marketer->admin_id}' AND komisi_paket_id = 1");
             $marketer->admin_total_free_sales = $nr;
             $marketer->load = 1;
             $marketer->save();
         } else {
             //pakai BagiKomisi
             //cek apa bisa di tingtong
             self::checkTingTongFree($app, $marketer, $succ, $paket, $acc, "paid");
             $komisi = new KomisiModel();
             $nr = $komisi->getJumlah("komisi_acc_id = '{$marketer->admin_id}' AND (komisi_paket_id = 2 OR komisi_paket_id = 3)");
             $marketer->admin_total_paid_sales = $nr;
             $marketer->load = 1;
             $marketer->save();
             //cek sudah kena kelipatan 6 blom
             $bonus = new BonusKomisi();
             $bonus->getByID($nr);
             if ($bonus->bk_bonus_paid != "" && $bonus->bk_bonus_paid > 0) {
                 //masukan ke bonus
                 $bagiKomisi = new BagiKomisi();
                 $bagiKomisi->bagi_id = $marketer->admin_id . "_" . $nr;
                 $bagiKomisi->bagi_acc_id = $marketer->admin_id;
                 $bagiKomisi->bagi_bk_id = $nr;
                 $bagiKomisi->bagi_date_acquire = leap_mysqldate();
                 $bagiKomisi->bagi_status = 0;
                 //unpaid
                 $bagiKomisi->bagi_value = $bonus->bk_bonus_paid;
                 $bagiKomisi->save();
             }
         }
     }
 }
    function testPush()
    {
        $devs = new DeviceModelCapsule();
        global $db;
        $q = "SELECT DISTINCT acc_id FROM {$devs->table_name}";
        $arrDevs = $db->query($q, 2);
        $inputID = "to";
        ?>
        <form method="post" action="<?php 
        echo _SPPATH;
        ?>
PushNotCapsBE/send" id="sendPN">
            <div id="formgroup" class="form-group">
                <label for="<?php 
        echo $inputID;
        ?>
" class="col-sm-2 control-label"><?php 
        echo Lang::t($inputID);
        ?>
</label>

                <div class="col-sm-10">
                    <select class="form-control" id="<?php 
        echo $inputID;
        ?>
" name="<?php 
        echo $inputID;
        ?>
">
                        <?php 
        foreach ($arrDevs as $acc_id) {
            $acc = new Account();
            $acc->getByID($acc_id->acc_id);
            ?>
                            <option value="<?php 
            echo $acc->admin_id;
            ?>
"><?php 
            echo $acc->admin_nama_depan;
            ?>
</option>
                        <?php 
        }
        ?>
                    </select>
                    <span class="help-block" id="warning_<?php 
        echo $inputID;
        ?>
"></span>
                </div>
                <?php 
        $inputID = 'msg';
        ?>
                <label for="<?php 
        echo $inputID;
        ?>
" class="col-sm-2 control-label"><?php 
        echo Lang::t($inputID);
        ?>
</label>

                <div class="col-sm-10">
                    <input class="form-control" type="text" id="<?php 
        echo $inputID;
        ?>
" name="<?php 
        echo $inputID;
        ?>
" placeholder="<?php 
        echo Lang::t($inputID);
        ?>
">
                    <span class="help-block" id="warning_<?php 
        echo $inputID;
        ?>
"></span>
                </div>

                <?php 
        $inputID = 'action';
        ?>
                <div style="display: none;">
                    <label for="<?php 
        echo $inputID;
        ?>
" class="col-sm-2 control-label"><?php 
        echo Lang::t($inputID);
        ?>
</label>

                    <div class="col-sm-10" >
                        <input class="form-control" type="url" id="<?php 
        echo $inputID;
        ?>
" name="<?php 
        echo $inputID;
        ?>
" placeholder="<?php 
        echo Lang::t($inputID);
        ?>
">
                        <span class="help-block" id="warning_<?php 
        echo $inputID;
        ?>
"></span>
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-default btn-lg"><?php 
        echo Lang::t('Send');
        ?>
</button>

        </form>

        <script type="text/javascript">
            // console.log(array_rte);
            $("#sendPN").submit(function (event) {
                //alert( "Handler for .submit() called." );



                // Stop form from submitting normally
                event.preventDefault();

                // Get some values from elements on the page:
                var $form = $(this),
                    url = $form.attr("action");

                // Send the data using post
                var posting = $.post(url, $form.serialize(), function (data) {
//                    alert(data);
                    console.log( data ); // John
                    //console.log( data.bool ); // 2pm
                    if(data.bool){
                        alert('Success');
                    }else{
                        var obj = data.err;
//                        var tim = data.timeId;
                        //console.log( obj );
                        for (var property in obj) {
//                            alert(property);

                            if (obj.hasOwnProperty(property)) {

                                alert(obj[property]);

                            }
                        }
                    }
                },'json');


            });
        </script>
    <?php 
    }
Esempio n. 19
0
 function actionAgent()
 {
     $id = addslashes($_POST['acc_id']);
     $action = addslashes($_POST['action']);
     $acc = new Account();
     $acc->getByID($id);
     $dataemail = new DataEmail();
     $json['bool'] = 0;
     if ($action == "accept") {
         $acc->admin_isAgent = 1;
         $acc->admin_inbox_update = leap_mysqldate();
         $succ = $acc->save();
         if ($succ) {
             //notify Agent kalau sudah di approve
             $dataemail->agentAccepted($acc->admin_email, $acc->admin_username);
             $json['bool'] = $succ;
         }
     }
     if ($action == "reject") {
         $acc->admin_isAgent = 0;
         $acc->admin_inbox_update = leap_mysqldate();
         $succ = $acc->save();
         //email ke client & agent
         if ($succ) {
             //email ke agent
             $dataemail->agentRejected($acc->admin_email, $acc->admin_username);
             $json['bool'] = $succ;
         }
     }
     echo json_encode($json);
     die;
 }
 function setOld($inbox_id)
 {
     $id = Account::getMyID();
     $acc = new Account();
     $acc->getByID($id);
     $acc->load = 1;
     $acc->admin_inbox--;
     $oldobj = array();
     //create array for admin_inbox_update
     if (isset($acc->admin_inbox_update) && $acc->admin_inbox_update != '') {
         $oldobj = unserialize($acc->admin_inbox_update);
     }
     foreach ($oldobj as $num => $ob) {
         if ($ob == $inbox_id) {
             unset($oldobj[$num]);
         }
     }
     $acc->admin_inbox_update = serialize($oldobj);
     $acc->admin_inbox_timestamp = time();
     //if($acc->admin_inbox == 0)$acc->admin_inbox_update = 0;
     return $acc->save();
 }
    public function getLastEntries()
    {
        $gid = isset($_GET['gid']) ? addslashes($_GET['gid']) : die("NO GID");
        $latest = isset($_GET['latest']) ? addslashes($_GET['latest']) : die("NO GID");
        $c = new ChatMsg();
        $latest_entry = 0;
        $arrChat = $c->getWhere("chat_group_id = '{$gid}' AND inbox_reply_id > {$latest} ORDER BY inbox_createdate ASC");
        foreach ($arrChat as $num => $obja) {
            $acc = new Account();
            $acc->getByID($obja->inbox_from);
            $latest_entry = $obja->inbox_reply_id;
            $replyid = isset($obja->inbox_reply_id) ? $obja->inbox_reply_id : $obja->inbox_id;
            //cek prevID
            if ($prevID == $obja->inbox_from) {
                $skipbalon = 0;
            } else {
                $skipbalon = 1;
                $prevID = $obja->inbox_from;
            }
            ?>
            <div class="row <?php 
            echo $class;
            ?>
 baloon" id="inbox-<?php 
            echo $replyid;
            ?>
">
                <div class="skipbalon<?php 
            echo $skipbalon;
            ?>
">


                        <div style="float:left; width: 45px; padding-left:10px; padding-right: 10px; padding-top: 10px;">
                            <?php 
            if ($skipbalon) {
                $foto = Account::getFoto($acc->admin_foto);
                ?>
                            <div class="senderfoto"><?php 
                Account::printFoto($foto, 45);
                ?>
</div>


                            <?php 
            }
            ?>

                        </div>

                    <div style="margin-left:65px; padding-left: 10px; border:1px dotted #dedede; padding: 10px;">
                        <div class="senderdate"><?php 
            echo ago(strtotime($obja->inbox_createdate));
            ?>
</div>
                        <?php 
            if ($skipbalon) {
                ?>
                            <div class="sendername"><?php 
                echo $acc->admin_nama_depan;
                ?>
</div>
                        <?php 
            }
            ?>
                            <div style="padding-top:10px;">
                                    <?php 
            echo stripslashes($obja->inbox_msg);
            ?>
                            </div>
                    </div>

                </div>
            </div>

        <?php 
        }
        //remove notif from this group
        $g = new ChatGroup();
        $g->removeNotifPortal($gid);
        ?>
        <script>
            latest_entry = '<?php 
        echo $latest_entry;
        ?>
';
        </script> 
        <?php 
    }
    function receipt()
    {
        $order_id = addslashes($_GET['order_id']);
        $order = new VpTransaction();
        $order->getByID($order_id);
        //        pr($order);
        //TODO : harus dibikin
        if ($order->order_acc_id != Account::getMyID() && !in_array("master_admin", Account::getMyRoles())) {
            die("hacking attempt");
        }
        $app = new AppAccount();
        $app->getByID($order->order_app_id);
        if ($app->app_active == 0) {
            die("App not active");
        }
        $acc = new Account();
        $acc->getByID($app->app_client_id);
        $paket = new Paket();
        $paket->getByID($order->order_paket_id);
        $vpData = new VpData();
        $arr = $vpData->getWhere("order_id = '{$order_id}' LIMIT 0,1");
        if (count($arr) > 0) {
            $data = $arr[0];
        } else {
            $data = new VpData();
        }
        if ($acc->admin_marketer != "") {
            $arrAg = $acc->getWhere("admin_username = '******' LIMIT 0,1");
            if (count($arrAg) > 0) {
                $agent = $arrAg[0];
            }
        }
        //        pr($arr);
        ?>
        <style>
            h1{
                font-size: 25px;
                padding-top: 30px;
            }
            h3{
                font-size: 20px;
                font-style: italic;
            }
            h4{
                font-size: 17px;
                margin-top: 20px;
                margin-bottom: 30px;
            }
            .billings td{
                padding-right: 20px;
                padding-bottom: 10px;
            }
            @media (max-width: 768px) {

                .monly {
                    display: initial;
                }

                .donly {
                    display: none;
                }

                h1{
                    font-size: 20px;
                }
                h3{
                    font-size: 17px;
                    font-style: italic;
                }
                h4{
                    font-size: 14px;
                    margin-bottom: 30px;
                }
                .billings td{
                    padding-bottom: 10px;
                }
            }

            @media (min-width: 768px) {
                .monly {
                    display: none;
                }

                .donly {
                    display: initial;
                }



            }
            @media print {
                .pure-toggle-label[data-toggle-label='left']{
                    display: none;
                }
                #printme{
                    display: none;
                }
                body{
                    background-color: #ffffff;
                }
            }
        </style>
        <div class="container attop"  >
                <div class="col-md-8 col-md-offset-2">


                    <div style="text-align: center; background-color: #ffffff; padding: 20px; min-height: 800px;  margin-top: 20px; padding-top: 20px; padding-bottom: 20px; ">
                        <img src="<?php 
        echo _SPPATH;
        ?>
images/header_appear.jpg" width="100%">

                        <h1>PAYMENT RECEIPT</h1>
                        <h3>Your payment has been completed successfully</h3>
                        <div class="receipt" style=" margin-top: 30px;">
                        <h4>TRANSACTION DETAILS</h4>
                        <table class="billings" align="center" style="text-align: left;">
                            <tr>
                                <td>ORDER ID</td>
                                <td><?php 
        echo $order_id;
        ?>
</td>
                            </tr>
                            <tr>
                                <td>PAYMENT DATE / TIME</td>
                                <td><?php 
        echo date("F j, Y, g:i a", strtotime($order->order_date));
        ?>
</td>
                            </tr>
                            <tr>
                                <td>PACKAGE NAME</td>
                                <td><?php 
        echo $paket->paket_name;
        ?>
</td>
                            </tr>
                            <tr>
                                <td>APP ID</td>
                                <td><?php 
        echo $app->app_id;
        ?>
</td>
                            </tr>
                            <tr>
                                <td>ACCOUNT ID</td>
                                <td><?php 
        echo $acc->admin_nama_depan;
        ?>
</td>
                            </tr>
                            <tr>
                                <td>AMOUNT</td>
                                <td>IDR <?php 
        echo idr($paket->paket_price);
        ?>
</td>
                            </tr>
                            <tr>
                                <td>STATUS</td>
                                <td><?php 
        echo $data->transaction_status;
        ?>
</td>
                            </tr>
                            <tr>
                                <td>PAYMENT TYPE</td>
                                <td><?php 
        echo $data->payment_type;
        ?>
</td>
                            </tr>
                            <tr>
                                <td>BANK NAME</td>
                                <td><?php 
        echo $data->bank;
        ?>
</td>
                            </tr>
                            <?php 
        if (count($arrAg) > 0) {
            ?>
                            <tr>
                                <td>AGENT ID</td>
                                <td><?php 
            echo $agent->admin_username;
            ?>
</td>
                            </tr>
                            <?php 
        }
        ?>
                        </table>
                        </div>


                    </div>
                    <div id="printme" style="text-align: right; margin-top: 5px; margin-bottom: 100px;" >
                         <a href="#" onclick="window.print();"><i class="glyphicon glyphicon-print"></i> print</a> |
                        <a href="<?php 
        echo _SPPATH;
        ?>
myOrders">back to my transactions</a>
                    </div>
                </div>
            </div>
        <?php 
    }
Esempio n. 23
0
					</div>
				</div>
				<?php 
$bugs = $selectedBuglist->getBugs(0, 1);
foreach ($bugs as $bug) {
    ?>
				<div class="track-id">
					<table>
						<th>ID:</th>
						<th>Ersteller:</th>
						<th>Name:</th>
						<th></th>
							<tr>
							<?php 
    $account = new Account();
    $account->getByID($bug->ac_idCreator);
    echo "<td>#{$bug->bug_id}</td>";
    echo "<td>{$account->ac_firstname} {$account->ac_lastname}</td>";
    echo "<td>{$bug->bug_name}";
    ?>
						</tr>
					</table>
				</div>
				<?php 
}
//end foreach($bugs as $bug)
?>
			</div>
		</div>
	</div>
</div>
    public function myCollagues()
    {
        $targetID = isset($_GET['kelasid']) ? addslashes($_GET['kelasid']) : die("No Target ID");
        $acc = new AccountMeta();
        $arrM = $acc->getWhere("meta_key = 'RoleOrganization' AND meta_value = '{$targetID}'");
        $arrAcc = array();
        foreach ($arrM as $mt) {
            $ac = new Account();
            $ac->getByID($mt->account_id);
            $arrAcc[$mt->account_id]['acc'] = $ac;
            $arrAcc[$mt->account_id]['meta'] = $mt;
        }
        ?>
<h3 style="background-color: #dedede; padding: 5px; font-size: 18px;"><?php 
        echo Lang::t('My Colleagues');
        ?>
</h3>
        <?php 
        //pr($arrAcc);
        $nrRow = 4;
        foreach ($arrAcc as $a) {
            $murid = $a['acc'];
            ?>
<style type="text/css">
    .fotoresponsive {
    // padding : 10 px;
    // background-color : white;
    height: 91px;
    overflow: hidden;
    }
	.foto50{
		height: 50px;
		overflow: hidden;
	}
</style>
<div  style="cursor:pointer; float: left; width: 70px; height:120px; overflow:hidden; padding: 10px;"
     onclick="openProfile('<?php 
            echo $murid->admin_id;
            ?>
');">

    <?php 
            Account::makeFotoIterator($murid->admin_foto, 50);
            ?>
    <div style="text-align: center; margin-bottom: 15px; margin-top: 5px; font-size: 11px;">
        <?php 
            echo getNamaPendek($murid->getName());
            ?>
    </div>
</div>
<?php 
        }
    }
 public function updater()
 {
     $id = TextP::postP("id", "");
     $name = TextP::postP("name", "");
     $lvl = TextP::postP("lvl", "");
     $org = TextP::postP("org", "");
     $role = TextP::postP("role", "");
     $json = array();
     $json['post'] = $_POST;
     $json['isi'][] = $role;
     $json['isi'][] = $name;
     $json['isi'][] = $lvl;
     $json['isi'][] = $org;
     $json['isi'][] = $id;
     $json['bool'] = 0;
     if ($id == "" || $name == "" || $lvl == "" || $org == "" || $role == "") {
         $json['err'] = Lang::t('Please provide all data');
         die(json_encode($json));
     }
     $acc = new Account();
     $acc->getByID($id);
     $acc->admin_nama_depan = urldecode($name);
     $acc->admin_role = urldecode($role);
     $acc->load = 1;
     $suc = $acc->save();
     $json['isi'][] = $suc;
     //if($suc){
     //update role2acc
     $role2acc = new Role2Account();
     $arrR2c = $role2acc->getWhere("role_admin_id = '{$id}' LIMIT 0,1");
     $role2acc->getByID($arrR2c[0]->rc_id);
     $role2acc->role_id = $role;
     $role2acc->load = 1;
     $suc2 = $role2acc->save();
     $json['isi'][] = $suc2;
     //if($suc2){
     //update lvl dan org
     $am = new AccountMeta();
     $arrMeta = $am->getWhere("account_id = {$id}");
     if (count($arrMeta) < 1) {
         //create new
         $am2 = new AccountMeta();
         $am2->account_id = $id;
         $am2->meta_key = "RoleLevel";
         $am2->meta_value = $lvl;
         $am2->save();
         //create new
         $am2 = new AccountMeta();
         $am2->account_id = $id;
         $am2->meta_key = "RoleOrganization";
         $am2->meta_value = $org;
         $am2->save();
     } else {
         foreach ($arrMeta as $mt) {
             if ($mt->meta_key == "RoleLevel") {
                 $am2 = new AccountMeta();
                 $am2->getByID($mt->meta_id);
                 $am2->meta_value = $lvl;
                 $am2->load = 1;
                 $am2->save();
             }
             if ($mt->meta_key == "RoleOrganization") {
                 $am2 = new AccountMeta();
                 $am2->getByID($mt->meta_id);
                 $am2->meta_value = $org;
                 $am2->load = 1;
                 $am2->save();
             }
         }
     }
     // }
     $json['bool'] = $suc2;
     //}
     die(json_encode($json));
 }
Esempio n. 26
0
 function handling()
 {
     echo 1;
     if ($this->isProd) {
         Veritrans_Config::$isProduction = true;
     }
     echo 3;
     Veritrans_Config::$serverKey = $this->getKeyUsed();
     echo 4;
     $raw_notification = "";
     try {
         $notif = new Veritrans_Notification();
         $input_source = "php://input";
         $raw_notification = file_get_contents($input_source);
     } catch (Exception $e) {
         echo "<h2>" . $e->getMessage() . "</h2>";
     }
     echo "<h1>jahahaa</h1>";
     $transaction = $notif->transaction_status;
     $type = $notif->payment_type;
     $order_id = $notif->order_id;
     $fraud = $notif->fraud_status;
     $vpt = new VpTransaction();
     $vpt->getByID($order_id);
     //dataemail
     $dataemail = new DataEmail();
     if ($transaction == 'capture') {
         // For credit card transaction, we need to check whether transaction is challenge by FDS or not
         if ($type == 'credit_card') {
             if ($fraud == 'challenge') {
                 // TODO set payment status in merchant's database to 'Challenge by FDS'
                 // TODO merchant should decide whether this transaction is authorized or not in MAP
                 echo "Transaction order_id: " . $order_id . " is challenged by FDS";
                 $vpt->order_message = "Transaction order_id: " . $order_id . " is challenged by FDS";
                 $vpt->order_status = 3;
                 $vpt->save();
                 //notify User
                 $app = new AppAccount();
                 $app->getByID($vpt->order_app_id);
                 $acc = new Account();
                 $acc->getByID($app->app_client_id);
                 $dataemail->appPaymentMode($acc->admin_email, $acc->admin_username, $app->app_name, $fraud);
             } else {
                 // TODO set payment status in merchant's database to 'Success'
                 echo "Transaction order_id: " . $order_id . " successfully captured using " . $type;
                 $vpt->order_message = "Transaction order_id: " . $order_id . " successfully captured using " . $type;
                 $vpt->order_status = 2;
                 $vpt->save();
                 //notify User
                 //update active di app
                 $app = new AppAccount();
                 $app->getByID($vpt->order_app_id);
                 $app->app_contract_start = date("Y-m-d");
                 $app->app_contract_end = date('Y-m-d', strtotime(date("Y-m-d", mktime()) . " + 365 day"));
                 $app->app_active = 1;
                 $app->app_paket_id = $vpt->order_paket_id;
                 $app->save();
                 //notify Admins kalau ada app active
                 $dataemail->appBisaDibuat($app->app_name, $app->app_id, $transaction);
                 //notify User
                 $acc = new Account();
                 $acc->getByID($app->app_client_id);
                 $dataemail->appPaymentSuccess($acc->admin_email, $acc->admin_username, $app->app_name);
                 //hitung komisi
                 //ini belum bener
                 //TODO 31 maret 2016
                 KomisiModel::log($app, $vpt);
                 //email dapat komisi
             }
         }
     } else {
         if ($transaction == 'settlement') {
             // TODO set payment status in merchant's database to 'Settlement'
             echo "Transaction order_id: " . $order_id . " successfully transfered using " . $type;
             $oldstatus = $vpt->order_status;
             $vpt->order_message = "Transaction order_id: " . $order_id . " successfully transfered using " . $type;
             $vpt->order_status = 1;
             $vpt->save();
             if ($oldstatus != 2) {
                 //update active di app
                 $app = new AppAccount();
                 $app->getByID($vpt->order_app_id);
                 $app->app_contract_start = date("Y-m-d");
                 $app->app_contract_end = date('Y-m-d', strtotime(date("Y-m-d", mktime()) . " + 365 day"));
                 $app->app_active = 1;
                 $app->app_paket_id = $vpt->order_paket_id;
                 $app->save();
                 //notify Admins kalau ada app active
                 $dataemail->appBisaDibuat($app->app_name, $app->app_id, $transaction);
                 //notify User
                 $acc = new Account();
                 $acc->getByID($app->app_client_id);
                 $dataemail->appPaymentSettle($acc->admin_email, $acc->admin_username, $app->app_name);
                 //hitung komisi
                 //TODO 31 maret 2016
                 KomisiModel::log($app, $vpt);
                 //email dpt komisi
             }
         } else {
             if ($transaction == 'pending') {
                 // TODO set payment status in merchant's database to 'Pending'
                 echo "Waiting customer to finish transaction order_id: " . $order_id . " using " . $type;
                 $vpt->order_message = "Waiting customer to finish transaction order_id: " . $order_id . " using " . $type;
                 $vpt->order_status = 4;
                 $vpt->save();
                 //notify User
                 $app = new AppAccount();
                 $app->getByID($vpt->order_app_id);
                 $acc = new Account();
                 $acc->getByID($app->app_client_id);
                 $dataemail->appPaymentMode($acc->admin_email, $acc->admin_username, $app->app_name, $transaction);
             } else {
                 if ($transaction == 'deny') {
                     // TODO set payment status in merchant's database to 'Denied'
                     echo "Payment using " . $type . " for transaction order_id: " . $order_id . " is denied.";
                     $vpt->order_message = "Payment using " . $type . " for transaction order_id: " . $order_id . " is denied.";
                     $vpt->order_status = 5;
                     $vpt->save();
                     //notify User
                     $app = new AppAccount();
                     $app->getByID($vpt->order_app_id);
                     $acc = new Account();
                     $acc->getByID($app->app_client_id);
                     $dataemail->appPaymentMode($acc->admin_email, $acc->admin_username, $app->app_name, "denied");
                 } else {
                     if ($transaction == 'cancel') {
                         // TODO set payment status in merchant's database to 'Denied'
                         echo "Payment using " . $type . " for transaction order_id: " . $order_id . " is canceled.";
                         $vpt->order_message = "Payment using " . $type . " for transaction order_id: " . $order_id . " is canceled.";
                         $vpt->order_status = 6;
                         $vpt->save();
                         //notify User
                         $app = new AppAccount();
                         $app->getByID($vpt->order_app_id);
                         $acc = new Account();
                         $acc->getByID($app->app_client_id);
                         $dataemail->appPaymentMode($acc->admin_email, $acc->admin_username, $app->app_name, "canceled");
                     }
                 }
             }
         }
     }
     $vp = new VpData();
     $vp->vp_date = leap_mysqldate();
     $vp->vp_obj = serialize($notif) . " ||| " . $raw_notification;
     $vp->approval_code = $notif->approval_code;
     $vp->order_id = $notif->order_id;
     $vp->status_code = $notif->status_code;
     $vp->transaction_status = $notif->transaction_status;
     $vp->status_message = $notif->status_message;
     $vp->transaction_id = $notif->transaction_id;
     $vp->masked_card = $notif->masked_card;
     $vp->gross_amount = $notif->gross_amount;
     $vp->payment_type = $notif->payment_type;
     $vp->transaction_time = $notif->transaction_time;
     $vp->fraud_status = $notif->fraud_status;
     $vp->approval_code = $notif->approval_code;
     $vp->signature_key = $notif->signature_key;
     $vp->bank = $notif->bank;
     $vp->eci = $notif->eci;
     $vp->save();
     pr($notif);
     /*
              * Veritrans_Notification Object
     (
         [response:Veritrans_Notification:private] => stdClass Object
             (
                 [status_code] => 200
                 [status_message] => Success, transaction found
                 [transaction_id] => a293ec21-9572-4333-9a41-640a6789b713
                 [masked_card] => 518323-9790
                 [order_id] => 1084599542
                 [gross_amount] => 10000.00
                 [payment_type] => credit_card
                 [transaction_time] => 2016-02-17 15:20:37
                 [transaction_status] => capture
                 [fraud_status] => accept
                 [approval_code] => T08489
                 [signature_key] => 12a2c1d52cdd03326727b1ee0cc8a9f658146dbaedac46490f269183291885772e5a31a121c94ebde9f501733c8e7802cf74c3bb839ad687188456c3bf0d45e0
                 [bank] => bni
                 [eci] => 02
             )
     
     )
     */
     die;
 }
 public function changePic()
 {
     $id = isset($_GET['uid']) ? addslashes($_GET['uid']) : 'no';
     $file = isset($_GET['file']) ? addslashes($_GET['file']) : 'foto';
     if ($id == "no") {
         die("No UID");
     }
     if (Account::getMyID() == $id) {
         //punya sendiri
         $_SESSION['account']->admin_foto = $file;
     }
     $acc = new Account();
     $acc->getByID($id);
     $acc->admin_foto = $file;
     $acc->load = 1;
     $acc->save();
 }
Esempio n. 28
0
    function user($args)
    {
        list($id) = $args;
        if ($id == "") {
            die("no ID");
        }
        $acc = new Account();
        $acc->getByID($id);
        if ($acc->admin_fb_id == "" || $acc->admin_aktiv != 1 || $acc->admin_fb_id == 0) {
            Redirect::p404();
        }
        //get points
        $p = new QuizPoints();
        $arrP = $p->getWhere("points_acc_id = '{$id}' ORDER BY points_update DESC");
        $tp = 0;
        $badges = array();
        $rapor = array();
        //hitung poin
        foreach ($arrP as $p) {
            $ul = new QuizUlangan();
            $ul->getByID($p->points_ul_id);
            $lvl = new QuizLevel();
            if (!in_array($ul->ulangan_level_id, $rapor)) {
                $lvl->getByID($ul->ulangan_level_id);
                $rapor[$lvl->level_id] = $lvl;
            }
            $tp += $p->points_nilai;
            $point = $p->points_nilai;
            //update badges
            if ($point > 5 && $point < 8) {
                $badges[$p->points_ul_id] = $ul->ulangan_badge_1;
            }
            if ($point > 7 && $point < 10) {
                $badges[$p->points_ul_id] = $ul->ulangan_badge_2;
            }
            if ($point == 10) {
                $badges[$p->points_ul_id] = $ul->ulangan_badge_3;
            }
        }
        ksort($rapor);
        ?>
<div style="margin-top: 30px;">
    <div class="col-md-8 col-md-offset-2">
    <?php 
        if ($id == Account::getMyID()) {
            $kls_id = 1;
            if (isset($arrP[0]->points_ul_id)) {
                $ul = new QuizUlangan();
                $ul->getByID($arrP[0]->points_ul_id);
                $kls_id = $ul->ulangan_level_id;
            }
            ?>
        <div class="mulaitest">
            <div class="judul">Lanjutkan Ujian</div>
             <div class="des">Kamu dapat melanjutkan ujian terakhir yang kamu kerjakan</div>
             <button onclick="document.location='<?php 
            echo _SPPATH;
            ?>
kl/tk/<?php 
            echo $kls_id;
            ?>
';"  style="min-width: 250px; background-color: #f0373c; border-color: #f0373c;" class="btn btn-primary btn-lg">Start</button>
    
        </div>
        <?php 
        }
        ?>
    <div class="col-md-5" style="padding-left: 0px;">
        <div class="profilecon">
    <div class="profiles">
        <div class="col-md-4 col-xs-4 col-sm-4" style="padding-left: 0px;">
            <img width="100%" src="//graph.facebook.com/<?php 
        echo $acc->admin_fb_id;
        ?>
/picture?type=large">
        </div>
        <div class="col-md-8 col-sm-8 col-xs-8">
            <div class="menuprofile">
            <?php 
        echo $acc->admin_name;
        ?>
            </div>
            <div  class="menuprofile">
                <i class="glyphicon glyphicon-stats"></i> &nbsp; <b>#<?php 
        echo $acc->game_ranking;
        ?>
</b>
            </div>
            <div class="menuprofile">
                <i class="glyphicon glyphicon-fire"></i> &nbsp; <?php 
        echo $tp;
        ?>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
    
    <div class="ranking">
        <div class="badges">
            <h4>Rapor</h4>
            <div class="badges_isi">
                <?php 
        foreach ($rapor as $lvl) {
            ?>
                <div class="rapor">
                    <i class="glyphicon glyphicon-book"></i> &nbsp; <a href="<?php 
            echo _SPPATH;
            ?>
rapor/user/<?php 
            echo $id;
            ?>
/<?php 
            echo $lvl->level_id;
            ?>
"><?php 
            echo $lvl->level_name;
            ?>
</a>
                </div>    
                 <?php 
        }
        ?>
            </div>
        </div>
        <div style="margin-top: 15px; text-align: center; padding: 10px; background-color: #f0373c; color:white; ">
            Ingin tahu kartu pelajar kamu seperti apa ?<br><br>
        <div class="aftersales">
            <button style="width: 100%;" class="btn btn-primary btn-lg btn-fb" onclick="return fbs_click();">Bagi di Facebook</button></div>
        </div>
    </div>
        </div>
</div>        
<div class="col-md-7 fbcom">
    <?php 
        if ($id == Account::getMyID()) {
            ?>
    <div class="aftersales" style="background-color: #efefef; padding: 20px; text-align: center; margin-bottom: 15px;">
        <h4>Ujian dari Indonesia untuk Indonesia dan tentang Indonesia</h4>
        <button style="width: 100%;" class="btn btn-primary btn-lg btn-danger" onclick="document.location='<?php 
            echo _SPPATH;
            ?>
p/bikin_ujian/';">Bikin Ujianmu</button>
        <p style="padding-top: 20px;">*untuk menaikkan peringkat ujian kamu, kamu bisa share ujian kamu ke facebook dan biarkan teman-temanmu ikut mengikuti ujian kamu, semakin banyak yang mengikuti, akan semakin populer ujian kamu.</p>
        <a href="<?php 
            echo _SPPATH;
            ?>
p/manage_ujian">manajemen ujian</a>
    </div>
    <?php 
        }
        ?>
    <?php 
        /*<div class="mylogs">
              
              <div class="ranking">
              <div class="badges">
                  <h4>Penghargaan</h4>
                  <div class="badges_isi">
                      <? pr($badges);?>
                  </div>
              </div>
          </div>
              <? 
              pr($_SESSION);
          pr($arrP);
          pr($acc);?>
          </div>
          */
        ?>
    <div id="comment">
        <div class="fb-comments" data-href="<?php 
        echo _BPATH;
        ?>
p/user/<?php 
        echo $id;
        ?>
" data-width="100%" data-numposts="5" data-colorscheme="light"></div>    
    </div>
</div>            
        <div class="clearfix" style="margin-bottom: 50px;"></div>
</div>
</div>
<style>
    .profiles{
        color:white;
        background-color: #f0373c;
        padding: 10px;
    }
    .menuprofile{
        padding-left: 10px;
        padding-bottom: 5px;
    }
    .mulaitest{
        //background-color: #E6E6E6;
        border:2px dashed #f0373c;
        text-align: center;
        padding: 30px;
        margin-bottom: 30px;
    }
    .mulaitest .judul{
        font-size: 30px; padding-bottom: 20px;
    }
    .mulaitest .des{
        padding-bottom: 20px;
    }
    .badges{
        background-color: #f0373c;
        padding: 10px;
        margin-top: 15px;
        color:white;
    }
    .badges h4{
        text-align: center;
        border-bottom: 1px dashed #ccc;
        margin: 0;
        padding-bottom: 10px;
    }
    .rapor{
        text-align: center;
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 15px;
        
    }
    .rapor a{
        color:white;
        text-decoration: underline;
    }
</style>
<script>
    
function fbs_click(){
    u=location.href;    
    //t=document.title;
    var win = window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&p[images][0]=<?php 
        echo _BPATH . _PHOTOURL . 'images/kartupelajar.jpg';
        ?>
','sharer','toolbar=0,status=0,width=626,height=436');
    //win.location.reload();
    setTimeout(win.location.reload, 1400);
    return false;
}
</script>
        <?php 
        $rand = rand(1, 20);
        global $template;
        $template->title = $acc->admin_name . " | Seberapa Indonesiakah Anda";
        $fb_opengraph = '<meta property="og:title" content="Kartu Pelajar ' . $acc->admin_name . '" />';
        $template->headText[] = $fb_opengraph;
        $fb_opengraph = '<meta property="og:image"  content="' . _BPATH . 'images/kartu/kartupelajar_' . $rand . '.jpg" /> ';
        $template->headText[] = $fb_opengraph;
        //url
        $actual_link = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
        $fb_opengraph = '<meta property="og:url" content="' . $actual_link . '" />';
        $template->headText[] = $fb_opengraph;
        //sitename
        $fb_opengraph = '<meta property="fb:app_id" content="' . Efiwebsetting::getData('fb_app_id') . '" />' . '<meta property="og:type" content="website" />';
        $template->headText[] = $fb_opengraph;
        //sitename
        $fb_opengraph = '<meta property="og:site_name" content="SeberapaIndonesiakahAnda"/>';
        $template->headText[] = $fb_opengraph;
        //description
        $fb_opengraph = '<meta property="og:description" content="' . $acc->admin_name . ' sudah mengikuti ujian #SeberapaIndonesiakahAnda. Ayok ikutan !!" />';
        $template->headText[] = $fb_opengraph;
    }
Esempio n. 29
0
 public function getFreeDetail()
 {
     //acc_id
     //hash
     //mon *optional
     //y *optional
     $id = addslashes($_POST['acc_id']);
     $acc = new Account();
     $acc->getByID($id);
     if ($acc->admin_hash != $_POST['hash']) {
         $json['status_code'] = 0;
         $json['status_message'] = "Invalid Token";
         echo json_encode($json);
         die;
     }
     $_GET['mon'] = $_POST['mon'];
     $_GET['y'] = $_POST['y'];
     MyDashboard::freebiesWS($acc);
 }
 public function viewcomment()
 {
     //$ta = TahunAjaran::ta();
     $wid = isset($_GET['wid']) ? addslashes($_GET['wid']) : '';
     $klsid = isset($_GET['klsid']) ? addslashes($_GET['klsid']) : '';
     $typ = isset($_GET['typ']) ? addslashes($_GET['typ']) : '';
     $cmd = isset($_GET['cmd']) ? addslashes($_GET['cmd']) : 'view';
     $return['webClass'] = __CLASS__;
     $return['method'] = __FUNCTION__;
     //$return['ta'] = $ta;
     $return["klsid"] = $klsid;
     if ($cmd == "form") {
         $return["typ"] = $typ;
         $return['id'] = $wid;
         $return['mode'] = "viewcomment";
         Mold::plugin("Wall", "compose", $return);
         die;
     }
     if ($cmd == "add") {
         $json['bool'] = 0;
         $json['err'] = '';
         //pr($_POST);
         if (isset($_POST['wall_msg'])) {
             $wall_msg = trim(rtrim($_POST['wall_msg']));
         }
         if ($wall_msg == '') {
             $json['err'] .= Lang::t('Message is empty');
         }
         $id = isset($_GET['id']) ? addslashes($_GET['id']) : '';
         if ($id == '') {
             $json['err'] .= Lang::t('Id is empty');
         }
         if ($json['err'] == '') {
             // am 01.10.2014,insert <embed><iframe> vom Efindi
             //$wall_msg = addslashes(strip_tags(trim(rtrim ($_POST['wall_msg'])),'<p><a><br><b><i><img><hr>'));
             $wall_msg = strip_tags(trim(rtrim($_POST['wall_msg'])), '<p><a><br><b><i><img><hr><embed><iframe>');
             //if ($typ == "kelas") {
             $wall = new WallPortalComment();
             $wall->wid = $id;
             $wall->cid_admin_nama = Account::getMyName();
             $wall->cid_admin_foto = Account::getMyFoto();
             $wall->cid_admin_id = Account::getMyID();
             //create date
             //$tgl = Wall::getDateTime();
             $wall->c_date = leap_mysqldate();
             $wall->c_text = $wall_msg;
             $json['bool'] = $wall->save();
             if ($json['bool']) {
                 $wall2 = new WallPortal();
                 $wall2->getByID($id);
                 $wall2->wall_commentcount++;
                 $wall2->wall_update = $tgl;
                 $wall2->load = 1;
                 //spy update
                 $json['bool'] = $wall2->save();
             }
             // }
         }
         die(json_encode($json));
     }
     if ($cmd == "view") {
         $mwc = new WallPortalComment();
         $whereClause = "wid = '{$wid}' ORDER BY c_date DESC";
         $arrComment = $mwc->getWhere($whereClause);
         $wall = new WallPortal();
         $wall->getByID($wid);
         $acc = new Account();
         $acc->getByID($wall->wall_from);
         $wall->acc = $acc;
         $target = $typ . "___" . $wall->wall_id;
         $foto = new Fotoajax();
         $arrFoto = $foto->getWhere("photo_target_id = '{$target}' ORDER BY photo_date DESC");
         $wall->foto = $arrFoto;
         $return['newFor'] = $this->newFor;
         $return['wall'] = $wall;
         $return['mwc'] = $arrComment;
         Mold::plugin("Wall", "viewcomment", $return);
     }
 }