本文整理匯總了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" />
示例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;
}