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


PHP DAOFactory::getBannercentralDAO方法代碼示例

本文整理匯總了PHP中DAOFactory::getBannercentralDAO方法的典型用法代碼示例。如果您正苦於以下問題:PHP DAOFactory::getBannercentralDAO方法的具體用法?PHP DAOFactory::getBannercentralDAO怎麽用?PHP DAOFactory::getBannercentralDAO使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DAOFactory的用法示例。


在下文中一共展示了DAOFactory::getBannercentralDAO方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: count

include 'menucentral.php';
?>
    <!-- Page Content -->
    <div  class="container">
        <div class="row">
            <?php 
include 'menu.php';
?>
            <div class="col-md-9" >
                <div class="row">
                    <?php 
include 'promocaoprincipal.php';
?>

                    <?php 
$array = DAOFactory::getBannercentralDAO()->queryAll();
$count = count($array);
$numerorandomico = mt_rand(0, $count - 1);
?>
                    <div> <a href="<?php 
echo $array[$numerorandomico]->link;
?>
">
                            <img class="hidden-sm hidden-xs" src="imagem/bannercentral/<?php 
echo $array[$numerorandomico]->imagem;
?>
" style="width: 98%;border: thin solid;border-color:white" class="img-responsive hidden-md img-responsive">
                        </a>
                    </div>
                    <br>
                    <div id="comum" >
開發者ID:njr1466,項目名稱:akipom,代碼行數:31,代碼來源:index.php

示例2: Transaction

<?php

include 'sessao.php';
require_once 'conexao.php';
include '../generated/include_dao.php';
$transaction = new Transaction();
$resultado = DAOFactory::getBannercentralDAO()->load($_GET['codigo']);
$date = new DateTime($resultado->datainicial);
$datainicial = $date->format('d/m/Y');
$date = new DateTime($resultado->datafinal);
$datafinal = $date->format('d/m/Y');
$link = $resultado->link;
?>

<!DOCTYPE html>
<html>

    <head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


        <title>Área Administrativa AKIPOM</title>
        <meta name="generator" content="Bootply">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <script src="//code.jquery.com/jquery-2.1.0.min.js"></script>
        <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
        <script src="editor.js"></script>

        <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
        <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
        <link href="editor.css" type="text/css" rel="stylesheet"/>
<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
開發者ID:njr1466,項目名稱:akipom,代碼行數:31,代碼來源:editbannercentral.php

示例3: Transaction

}
if ($action == "edit") {
    try {
        $transaction = new Transaction();
        $Bannercentral = new Bannercentral();
        $Bannercentral->id = $_POST['id'];
        $Bannercentral->datadecriacao = $datainicial;
        $Bannercentral->datainicial = $datainicial;
        $Bannercentral->datafinal = $datafinal;
        $Bannercentral->link = $link;
        if (trim($foto1) == "") {
            $Bannercentral->imagem = $_POST['foto1only'];
        } else {
            $Bannercentral->imagem = $foto1;
        }
        DAOFactory::getBannercentralDAO()->update($Bannercentral);
        $transaction->commit();
        echo "<meta http-equiv='refresh' content=3;url='bannercentral.php'>";
    } catch (Exception $exc) {
        //header('location: login.php?msg=error');
        echo $exc;
    }
}
?>


<!DOCTYPE html>
<html>

    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
開發者ID:njr1466,項目名稱:akipom,代碼行數:31,代碼來源:leBannerCentral.php


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