本文整理汇总了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;
}