當前位置: 首頁>>代碼示例>>PHP>>正文


PHP payment::open方法代碼示例

本文整理匯總了PHP中payment::open方法的典型用法代碼示例。如果您正苦於以下問題:PHP payment::open方法的具體用法?PHP payment::open怎麽用?PHP payment::open使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在payment的用法示例。


在下文中一共展示了payment::open方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: payment

<?php

require_once "../config.php";
if (!$_GET['id']) {
    die;
}
$pay = new payment();
$pay->open($_GET['id']);
$country = new country();
$country->open($company->fk_country);
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <link rel="shortcut icon" href="../img/icon.png">
        <title>Invoice #<?php 
echo $pay->sequence;
?>
 | FOLearn</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <meta name="description" content="" />
        <meta name="author" content="stilearning" />

        <!-- google font -->
        <link href="http://fonts.googleapis.com/css?family=Aclonica:regular" rel="stylesheet" type="text/css" />
        
        <!-- styles -->
        <link href="../css/bootstrap.css" rel="stylesheet" />
        <link href="../css/bootstrap-responsive.css" rel="stylesheet" />
        <link href="../css/stilearn.css" rel="stylesheet" />
開發者ID:FlushOut,項目名稱:folearn,代碼行數:31,代碼來源:invoice-detail.php

示例2: getByDate

 function getByDate($fk_company, $dtIni, $dtEnd)
 {
     $query = $this->con->genericQuery("select * from " . $this->table . " where fk_company = {$fk_company} and (date_start between STR_TO_DATE('" . $dtIni . "','%m-%Y') and STR_TO_DATE('" . $dtEnd . "','%m-%Y')) order by date_start");
     $objReturn = array();
     foreach ($query as $value) {
         $py = new payment();
         $py->open($value);
         $objReturn[] = $py;
     }
     return $objReturn;
 }
開發者ID:FlushOut,項目名稱:folearn,代碼行數:11,代碼來源:payment.php


注:本文中的payment::open方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。