当前位置: 首页>>代码示例>>PHP>>正文


PHP Meta::select方法代码示例

本文整理汇总了PHP中Meta::select方法的典型用法代码示例。如果您正苦于以下问题:PHP Meta::select方法的具体用法?PHP Meta::select怎么用?PHP Meta::select使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Meta的用法示例。


在下文中一共展示了Meta::select方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Description

<?php

require_once 'config.php';
$meta = Meta::select('price', $_GET['id']);
require_once 'classes/Description.php';
$obj = new Description();
include 'view/tpl_top.php';
include 'view/tpl_header.php';
include 'view/tpl_nav.php';
?>
<div class="container main-container">
    <div class="row">
        <div class="col-lg-3 col-md-3 col-sm-12">
            <?php 
include 'view/tpl_catalog.php';
?>
        </div>
        <div class="clearfix visible-sm"></div>
        <div class="col-lg-9 col-md-9 col-sm-12">
            <div class="col-lg-12 col-sm-12">
                <h1 class="title"><?php 
echo $meta[0]['name'];
?>
</h1>
            </div>
            <div class="col-lg-12 col-sm-12 hero-feature">

                <div class="row">
                    <div class="col-lg-6 col-md-6 col-sm-6">
                        <!-- Main Image -->
                        <div class="product-main-image-container">
开发者ID:Torredo,项目名称:autozip,代码行数:31,代码来源:product1.php

示例2: elseif

<?php

require_once 'config.php';
$meta = Meta::select('section', $_GET['name_en']);
$pages = Pages::select($_GET['name_en']);
include 'view/tpl_top.php';
include 'view/tpl_header.php';
include 'view/tpl_nav.php';
?>
<div class="container main-container">
    <div class="row">
        <div class="col-lg-9 col-md-9 col-sm-12">
            <div class="col-lg-12 col-sm-12">
                <span class="title"><?php 
echo $pages[0]['name'];
?>
</span>
            </div>
            <div class="col-lg-12 col-sm-12 hero-feature">
                <?php 
echo $pages[0]['text'];
?>
                <?php 
if ($_GET['name_en'] == "contact") {
    echo Config::maps();
} elseif ($_GET['name_en'] == "certificate") {
    ?>
                        <div class="col-lg-4 col-sm-4 hero-feature text-center">
                            <div class="thumbnail">
                                <a class="fancybox link-p cat" href="/images/certificate/1/1.jpg" data-fancybox-group="gallery1" style="overflow: hidden; position: relative;">
                                    <img src="/images/certificate/1/1.jpg" style="position: absolute; width: 242px; height: 346px; max-width: none; max-height: none; left: 0px; top: 0px;" class="def-img">
开发者ID:Torredo,项目名称:autozip,代码行数:31,代码来源:pages.php

示例3:

<?php

require_once 'config.php';
if (isset($_GET['limit'])) {
    $idx = $_GET['limit'];
    $l = $idx - 1;
} else {
    $idx = 0;
    $l = 0;
}
$limit = 12;
$meta = Meta::select('catalog', $_GET['name_en']);
$records = Product::select($_GET['name_en'], $l, $limit);
$count = Product::selectCount($_GET['name_en']);
include 'view/tpl_top.php';
include 'view/tpl_header.php';
include 'view/tpl_nav.php';
?>
<div class="container main-container">
    <div class="row">
        <div class="col-lg-3 col-md-3 col-sm-12">
            <?php 
include 'view/tpl_catalog.php';
?>
        </div>
        <div class="clearfix visible-sm"></div>
        <div class="col-lg-9 col-md-9 col-sm-12">
            <div class="col-lg-12 col-sm-12">
                <span class="title text-uppercase"><?php 
echo $records ? "Продукция" : "Продукция на стадии заполнения";
?>
开发者ID:Torredo,项目名称:autozip,代码行数:31,代码来源:catalog.php

示例4:

<?php

require_once 'config.php';
$records = Cart::select(Config::sessionId());
$meta = Meta::select('section', 'cart');
include 'view/tpl_top.php';
include 'view/tpl_header.php';
include 'view/tpl_popup_zakaz.php';
include 'view/tpl_nav.php';
?>
<div class="container main-container">
    <div class="row">
        <div class="col-lg-3 col-md-3 col-sm-12">
            <?php 
include 'view/tpl_catalog.php';
?>
        </div>
        <div class="clearfix visible-sm"></div>
        <div class="col-lg-9 col-md-9 col-sm-12">
            <div class="col-lg-12 col-sm-12">
                <span class="title text-uppercase cart"><?php 
echo $records != false ? "Корзина товаров" : "Ваша корзина пуста";
?>
</span>
            </div>
            <?php 
if ($records != false) {
    ?>
            <div class="col-lg-12 col-sm-12 hero-feature body-cart">
                <div class="table-responsive">
                    <table class="table table-bordered tbl-cart">
开发者ID:Torredo,项目名称:autozip,代码行数:31,代码来源:cart.php


注:本文中的Meta::select方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。