コード例 #1
0
<?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
0
<?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
0
<?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" />