本文整理汇总了PHP中crud::read方法的典型用法代码示例。如果您正苦于以下问题:PHP crud::read方法的具体用法?PHP crud::read怎么用?PHP crud::read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类crud
的用法示例。
在下文中一共展示了crud::read方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: crud
<?php
require 'additional/header.php';
$dbObject = new crud('clients');
$clients = $dbObject->read();
$clients = $clients[0];
?>
<body>
<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">
Клиентская база
</h1>
</div>
</div>
<!-- /. ROW -->
<div class="row">
<div class="col-md-12">
<!-- Advanced Tables -->
示例2: crud
<?php
require_once 'classes/crud.php';
$dbObject = new crud();
$services = $dbObject->read('services');
$services = $services[0];
?>
<div class="container">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<tr>
<th>Услуга</th>
<th>Единица измерения</th>
<th>Цена за еденицу</th>
</tr>
</thead>
<tbody>
<?php
for ($i = 0; $i < count($services); $i++) {
?>
<tr class="odd gradeX">
<td class="requestService" data-toggle="modal" data-target=".modalService"><?php
echo $services[$i]['name'];
?>
</td>
<td><?php
echo $services[$i]['unit'];
?>
</td>
示例3: crud
<?php
require_once 'classes/crud.php';
$dbObject = new crud();
$organizations = $dbObject->read('organizations');
$organizations = $organizations[0];
?>
<div class="container">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<tr>
<th>Организация</th>
<th>Заказов</th>
</tr>
</thead>
<tbody>
<?php
for ($i = 0; $i < count($organizations); $i++) {
?>
<tr class="odd gradeX">
<td class="requestOrg" data-toggle="modal" data-target=".modalOrganization"><?php
echo $organizations[$i]['name'];
?>
</td>
<td>2</td>
<input class="idOrg" value="<?php
echo $organizations[$i]['id'];
?>
" type="hidden" />