本文整理汇总了PHP中country::open方法的典型用法代码示例。如果您正苦于以下问题:PHP country::open方法的具体用法?PHP country::open怎么用?PHP country::open使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类country
的用法示例。
在下文中一共展示了country::open方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
function list_countries()
{
$query = $this->con->genericQuery("select * from " . $this->table . " order by name");
$objReturn = array();
foreach ($query as $value) {
$country = new country();
$country->open($value);
$objReturn[] = $country;
}
return $objReturn;
}
示例2: country
<?php
require_once "../config.php";
$discAdd = false;
$discUpd = false;
$discDel = false;
if (!$_GET['user']) {
die;
} else {
$idUser = $_GET['user'];
}
$country = new country();
$country->open($company->fk_country);
$newUser = new user();
$newUser->open($idUser);
if ($_POST['action'] == 'Save') {
if (isset($_POST['hdId'])) {
$newUser->saveDiscplines($_POST['hdId'], $_POST['discPrices']);
$discUpd = true;
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="../img/icon.png">
<title>Disciplines | FOLearn</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
示例3: showInvoices
function showInvoices($fk_company, $dtStart, $dtEnd, $idCountry)
{
$country = new country();
$country->open($idCountry);
$pay = new payment();
$data = array();
$i = 0;
$list_invoices = $pay->getByDate($fk_company, $dtStart, $dtEnd);
$html .= '<table id="datatables" class="table table-bordered table-striped responsive">';
$html .= ' <thead>';
$html .= ' <tr>';
$html .= ' <th class="head0">#</th>';
$html .= ' <th class="head1">Date Start</th>';
$html .= ' <th class="head0">Date End</th>';
$html .= ' <th class="head1">Lessons</th>';
$html .= ' <th class="head0">Invoice</th>';
$html .= ' <th class="head1">Actions</th>';
$html .= ' </tr>';
$html .= ' </thead>';
$html .= ' <tbody>';
foreach ($list_invoices as $value) {
$i = $i + 1;
$html .= ' <tr src="stays">';
$html .= ' <td>' . $value->sequence . '</td>';
$html .= ' <td>' . date('Y-m-d', strtotime($value->date_start)) . '</td>';
$html .= ' <td>' . date('Y-m-d', strtotime($value->date_end)) . '</td>';
$html .= ' <td>' . $value->lessons . '</td>';
$html .= ' <td>(' . $country->currency . ') ' . $value->invoice . '</td>';
$html .= ' <td><a href="/pages/invoice-detail.php?id=' . $value->id . '" role="button" class="btn btn-link">View</a></td>';
$html .= ' </tr>';
}
$html .= ' </tbody>';
$html .= '</table>';
$data['html'] = $html;
$data['count'] = $i;
echo json_encode($data);
}