当前位置: 首页>>代码示例>>PHP>>正文


PHP Account::getByID方法代码示例

本文整理汇总了PHP中Account::getByID方法的典型用法代码示例。如果您正苦于以下问题:PHP Account::getByID方法的具体用法?PHP Account::getByID怎么用?PHP Account::getByID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Account的用法示例。


在下文中一共展示了Account::getByID方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: daftarkanCC

 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;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:27,代码来源:PaypalWeb.php

示例2: overwriteRead

 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;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:26,代码来源:Page.php

示例3: overwriteRead

 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;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:30,代码来源:ModelPortalContent.php

示例4: overwriteRead

 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;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:13,代码来源:Role2Account.php

示例5: updateAccount


//.........这里部分代码省略.........
        $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
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:67,代码来源:AccountNormalize.php

示例6: Account

                        </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>";
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:31,代码来源:myinbox.php

示例7: fmenu

    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 
    }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:90,代码来源:InputFileWeb.php

示例8: editProfileSubmit

 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;
     }
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:72,代码来源:AccountLoginWeb.php

示例9: Auth

<?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">
开发者ID:Nikolas1995,项目名称:curv-e,代码行数:31,代码来源:header.php

示例10: dirname

<?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);
开发者ID:russelldavis,项目名称:UserBase,代码行数:18,代码来源:change_account.php

示例11: sendByID

 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);
     }
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:10,代码来源:Leapmail.php

示例12: Database

<?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>";
}
开发者ID:Nikolas1995,项目名称:curv-e,代码行数:18,代码来源:memberList.php

示例13: payoutWS

 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;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:apel-enak,代码行数:74,代码来源:MyDashboard.php

示例14: comissioning


//.........这里部分代码省略.........
                </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;
开发者ID:CapsuleCorpIndonesia,项目名称:apel-enak,代码行数:67,代码来源:FinanceBE.php

示例15: composeByID

 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);
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:11,代码来源:Inboxweb.php


注:本文中的Account::getByID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。