本文整理汇总了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" />