當前位置: 首頁>>代碼示例>>PHP>>正文


PHP crud::read方法代碼示例

本文整理匯總了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 -->
開發者ID:VladislavMaslakov,項目名稱:crm-beta,代碼行數:31,代碼來源:clients.php

示例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>
開發者ID:VladislavMaslakov,項目名稱:endSystem,代碼行數:31,代碼來源:servicesTable.php

示例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" />
開發者ID:VladislavMaslakov,項目名稱:endSystem,代碼行數:31,代碼來源:orgTable.php


注:本文中的crud::read方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。