本文整理匯總了PHP中crud::getClient方法的典型用法代碼示例。如果您正苦於以下問題:PHP crud::getClient方法的具體用法?PHP crud::getClient怎麽用?PHP crud::getClient使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類crud
的用法示例。
在下文中一共展示了crud::getClient方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: crud
<?php
require 'additional/header.php';
if (!empty($_GET['id'])) {
require_once 'core/classes/crud.php';
$dbObject = new crud('clients');
$infoClient = $dbObject->getClient($_GET['id']);
$infoClient = $infoClient[0];
$managers = $dbObject->managersRead();
$managers = $managers[0];
?>
<body xmlns="http://www.w3.org/1999/html">
<div id="wrapper">
<?php
require_once 'additional/fixed-menu.php';
?>
<!--/. NAV TOP -->
<?php
require_once 'additional/fixed-sidebar.php';
?>
<!-- /. NAV SIDE -->
<div id="page-wrapper" >
<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">
Страница клиента<small><?php
echo $infoClient['firmname'];
?>
</small>
示例2: crud
<?php
session_start();
if (!empty($_POST)) {
print_r($_POST);
}
if (!empty($_GET['idclient'])) {
require_once 'classes/crud.php';
$idclient = $_GET['idclient'];
$dbObject = new crud('workers');
$projects = $dbObject->getAllProjects();
$projects = $projects[0];
$countProjects = $dbObject->getCountRows('projects');
$workers = $dbObject->getAllWorkers();
$workers = $workers[0];
$infoOfClient = $dbObject->getClient($idclient);
$infoOfClient = $infoOfClient[0];
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CRM - Создание проекта</title>
<!-- Bootstrap Styles-->
<link href="../assets/css/steps.css" rel="stylesheet" />
<link href="../assets/css/bootstrap.css" rel="stylesheet" />
<!-- FontAwesome Styles-->
<link href="../assets/css/font-awesome.css" rel="stylesheet" />