本文整理汇总了PHP中Empresa::fetch方法的典型用法代码示例。如果您正苦于以下问题:PHP Empresa::fetch方法的具体用法?PHP Empresa::fetch怎么用?PHP Empresa::fetch使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Empresa
的用法示例。
在下文中一共展示了Empresa::fetch方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
<section class="EmpresasAsociadas clearfix">
<header class="cabeza-revista"></header>
<div class="row AlinearMobile">
<div class="ContenedorLogos">
<h1>Trabajamos junto a :</h1>
<?php
require_once "admin/class/class.empresas.php";
$c = 0;
?>
<?php
$collection_logos = Empresa::fetch(true);
$collection_logos_text = Empresa::fetchtwo(true);
?>
<?php
foreach ($collection_logos->collection as $k => $v) {
?>
<div class="content-row-logo pb50 content-row-columns-<?php
echo $collection_logos->columns[$k];
?>
">
<?php
foreach ($v as $kcomuns => $vcolumns) {
?>
示例2: foreach
<div class="HoverLogosEmpresas"><img src="resources/images/MuseoDelTraje.jpg" width="112" height="97"/></div>
<div class="HoverLogosEmpresas"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image23','','resources/images/FinanzasColor.jpg',1)"><img src="resources/images/Finanzas.jpg" width="175" height="97" id="Image23"></a></div>
<div class="HoverLogosEmpresas"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image24','','resources/images/ProjectColor.jpg',1)"><img src="resources/images/Project.jpg" width="222" height="97" id="Image24"></a></div>
<div class="HoverLogosEmpresas"><img src="resources/images/accenture.jpg" width="183" height="97"/></div> -->
<!-- <div class="HoverLogosEmpresas"><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image22','','resources/images/FundacionOficios_Color.jpg',1)"><img src="resources/images/FundacionOficios.jpg" width="172" height="97" id="Image22"></a></div>
<div class="HoverLogosEmpresas"><img src="resources/images/MuseoDelTraje.jpg" width="112" height="97"/></div>
<div class="HoverLogosEmpresas"><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image23','','resources/images/FinanzasColor.jpg',1)"><img src="resources/images/Finanzas.jpg" width="175" height="97" id="Image23"></a></div>
<div class="HoverLogosEmpresas"><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image24','','resources/images/ProjectColor.jpg',1)"><img src="resources/images/Project.jpg" width="222" height="97" id="Image24"></a></div>
<div class="HoverLogosEmpresas"><img src="resources/images/accenture.jpg" width="183" height="97"/></div> -->
<?php
require "admin/class/class.empresas.php";
?>
<?php
foreach (Empresa::fetch(true) as $k => $v) {
?>
<div class="HoverLogosEmpresas">
<a href="#">
<img src="resources/images/<?php
echo $v["img"];
?>
" width="172" height="97" ></a>
</div>
<?php
}
?>
<!-- <div class="HoverLogosEmpresas">
<a href="#">
<img src="resources/images/FundacionOficios.jpg" width="172" height="97" id="Image22"></a>
</div> -->
示例3: foreach
$page = 'testimonios';
$page2 = 'nav-empresas';
require "template/header.php";
require "class/class.empresas.php";
?>
<div class="container">
<div class="row">
<?php
require "template/nav_testimonios.php";
?>
<div class="grid col-9">
<div class="row back-empresa">
<h2>Empresas Amigas</h2>
<hr>
<?php
foreach (Empresa::fetch() as $k => $v) {
?>
<div>
<h3><?php
echo $v["name"];
?>
</h3>
<img src="../resources/images/<?php
echo $v["img"];
?>
" class="logo-back-empresa" alt="<?php
echo $v["name"];
?>
">
<div class="controls-logo">
<a href="empresas-edit.php?edit=<?php