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


PHP View::Show方法代码示例

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


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

示例1: asd

function asd()
{
    $newClass = new test();
    $rows = $newClass->traerAlgoDesdeLaDb();
    $viewData = array("id" => 5, "datos" => $rows);
    View::Show($viewData);
}
开发者ID:afliw,项目名称:ponponpon,代码行数:7,代码来源:testController.php

示例2: home

 public static function home($args = array())
 {
     if (isset($_SESSION['user_id']) && $_SESSION['user_id']) {
         $uri = explode('/', $_SERVER['REQUEST_URI']);
         $URL = $uri[0] . '/madeo/user/profile';
         header('Location:' . $URL);
     }
     $token = md5(uniqid(time(), true));
     $_SESSION['token'] = $token;
     return View::Show('home', ['token' => $token]);
 }
开发者ID:ahmedhosnycs,项目名称:simpleframework,代码行数:11,代码来源:MadeoController.php

示例3: AND

            if (!$bar->post_url) {
                $bar->post_url = "#HOME#/plugin/{$bar->post_name}";
            }
            $View->Show((array) $bar, $siderbar);
        }
    }
    if (isset($fixo)) {
        $Read->Execute()->Query("post_status = 1 AND (post_category = :cat OR post_cat_parent = :cat) ORDER BY post_date LIMIT 3", "cat={$fixo}", true);
        if (!$Read->Execute()->getResult()) {
            WSErro("Opps! Não temos artigos para a barra lateral", WS_INFOR);
        } else {
            $View = new View();
            $siderbar = $View->Load("article_siderbar_fixo");
            foreach ($Read->Execute()->getResult() as $bar) {
                $bar->datetime = date('Y-m-d', strtotime($bar->post_date));
                $bar->pubdate = date("d/m/Y H:i", strtotime($bar->post_date));
                $bar->post_content = Check::Words($bar->post_content, 6);
                if (!$bar->post_url) {
                    $bar->post_url = "#HOME#/plugin/{$bar->post_name}";
                }
                $View->Show((array) $bar, $siderbar);
            }
        }
    }
    ?>
        </div>

    </aside>

    <?php 
}
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:siderbar.inc.php

示例4: test

function test()
{
    View::Show(false);
}
开发者ID:afliw,项目名称:ponponpon,代码行数:4,代码来源:dashboardController.php

示例5: Pager

$Pager = new Pager(HOME . '/categoria/' . $category_name . '/');
$Pager->ExePager($getPage, 3);
$readCat = new WsPosts();
$readCat->Execute()->Query("post_status = 1 AND (post_category = :cat OR post_cat_parent = :cat) ORDER BY post_date DESC LIMIT :limit OFFSET :offset", "cat={$category_id}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true);
if (!$readCat->Execute()->getResult()) {
    $Pager->ReturnPage();
    WSErro("Desculpe, a categoria <b>{$category_title}</b> ainda não tem artigos publicados, favor volte mais tarde!", WS_INFOR);
} else {
    $cc = 1;
    $View = new View();
    $tpl_m = $View->Load('article_m');
    foreach ($readCat->Execute()->getResult() as $cat) {
        echo "\n<div class='col-md-4'>\n";
        $class = $cc % 3 == 0 ? ' class="right"' : null;
        $cat->post_title = Check::Words($cat->post_title, 8);
        $cat->post_content = Check::Words($cat->post_content, 20);
        $cat->datetime = date('Y-m-d', strtotime($cat->post_date));
        $cat->pubdate = date('d/m/Y H:i', strtotime($cat->post_date));
        $View->Show((array) $cat, $tpl_m);
        $cc++;
        echo "\n</div>\n";
    }
}
$Pager->ExePaginator("ws_posts", "post_status = 1 AND (post_category = :cat OR post_cat_parent = :cat)", "cat={$category_id}");
?>
    </div><!--/ site container -->

    <?php 
echo $Pager->getPaginator();
?>
</section>
开发者ID:adrianosilvareis,项目名称:ciddhc,代码行数:31,代码来源:categoria.php

示例6: WSErro

    WSErro("Desculpe, ainda não existem empresas cadastradas {$Cat}, favor volte depois", WS_INFOR);
} else {
    $View = new View();
    $tpl = $View->Load('empresa_list');
    foreach ($readEmp->getResult() as $emp) {
        //encontra cidade
        $readEmp->setTable('app_cidades');
        $readEmp->find("cidade_id={$emp->empresa_cidade}");
        $cidade = $readEmp->getResult()->cidade_nome;
        $emp->empresa_cidade = $cidade;
        //encontra estado
        $readEmp->setTable('app_estados');
        $readEmp->find("estado_id={$emp->empresa_uf}");
        $estado = $readEmp->getResult()->estado_uf;
        $emp->empresa_uf = $estado;
        $View->Show((array) $emp, $tpl);
    }
    //barra de navegação
    echo '<footer>';
    echo '<nav class="paginator">';
    echo '<h2>Mais resultados para NOME DA CATEGORIA</h2>';
    $Pager->ExePaginator("app_empresas", "empresa_status = 1 AND empresa_categoria = :cat", "cat={$EmpLink}");
    echo $Pager->getPaginator();
    echo '</nav>';
    echo '</footer>';
}
?>

    </section>

    <!--SIDEBAR-->
开发者ID:adrianosilvareis,项目名称:OutlineTecnolog,代码行数:31,代码来源:empresas.php

示例7: Controle

$readMode = new Controle();
$readMode->setTable("ws_posts");
$readMode->Query("post_status = 1 AND post_id != :post_id AND #post_category# ORDER BY rand() LIMIT 2", "post_id={$post_id}&post_category={$post_category}");
if ($readMode->getResult()) {
    $View = new View();
    $tpl_m = $View->Load('article_m');
    ?>
                <footer>
                    <nav>
                        <h3>Veja também:</h3>
                        <?php 
    foreach ($readMode->getResult() as $more) {
        $more->datetime = date('Y-m-d', strtotime($more->post_date));
        $more->pubdate = date('d/m/Y H:i', strtotime($more->post_date));
        $more->post_content = Check::Words($more->post_content, 20);
        $View->Show((array) $more, $tpl_m);
    }
    ?>
                    </nav>
                    <div class="clear"></div>
                </footer>
                <?php 
}
?>

            <!--Comentários aqui-->

        </div><!--art content-->

        <!--SIDEBAR-->
        <?php 
开发者ID:adrianosilvareis,项目名称:ciddhc,代码行数:31,代码来源:artigo.php

示例8: Session

        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php 
require './_app/Config.inc.php';
$sessao = new Session();
//        View::Load('_mvc/category');
//
//        $read = new Read();
//        $read->ExeRead('ws_categories');
//
//        foreach ($read->getResult() as $cat):
//            View::Show($cat);
//        endforeach;
//
//        echo '<h1>Request</h1>';
//
//        foreach ($read->getResult() as $cat):
//            View::Request('_mvc/category', $cat);
//        endforeach;
$read = new Read();
$read->ExeRead('ws_siteviews_agent');
View::Load('_mvc/navegador');
foreach ($read->getResult() as $nav) {
    View::Show($nav);
}
?>
    </body>
</html>
开发者ID:BrunoDuarte,项目名称:WS_PHP_ADMIN,代码行数:30,代码来源:03-construindo-auxiliar-de-visao.php

示例9: Controle

            <div class="clear"></div>
        </div>

        <!--RELACIONADOS-->
        <footer>
            <nav>
                <h3>Veja também:</h3>
                <?php 
$readMais = new Controle('app_empresas');
$readMais->Query("empresa_status = 1 ORDER BY rand() LIMIT 4");
if ($readMais->getResult()) {
    $View = new View();
    $tpl = $View->Load('empresa_p');
    foreach ($readMais->getResult() as $mais) {
        $View->Show((array) $mais, $tpl);
    }
}
?>
            </nav>
            <div class="clear"></div>
        </footer>

        <!--Comentários aqui-->
    </article>
    <!--SIDEBAR-->

    <?php 
require REQUIRE_PATH . '/inc/sidebar.inc.php';
?>
开发者ID:adrianosilvareis,项目名称:OutlineTecnolog,代码行数:29,代码来源:empresa.php

示例10: WsPosts

$readArt = new WsPosts();
$readArt->Execute()->Query("post_status = 1 AND (post_title LIKE '%' :link '%' OR post_content LIKE '%' :link '%') ORDER BY post_date DESC LIMIT :limit OFFSET :offset", "link={$search}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true);
if (!$readArt->Execute()->getResult()) {
    $Pager->ReturnPage();
    WSErro("Desculpe, sua pesquisa não encontrou posts. Você pode resulmir sua pesquisa ou tentar outros termos!", WS_INFOR);
} else {
    $cc = 0;
    echo "<div class='row'>\n";
    foreach ($readArt->Execute()->getResult() as $cat) {
        $cat->post_title = Check::Words($cat->post_title, 8);
        $cat->post_content = Check::Words($cat->post_content, 20);
        $cat->datetime = date('Y-m-d', strtotime($cat->post_date));
        $cat->pubdate = date('d/m/Y H:i', strtotime($cat->post_date));
        echo $cc % 4 == 0 ? "<div class='row'>\n</div>\n" : "";
        echo "<div class='col-md-3'>";
        $View->Show((array) $cat, $tpl_cat);
        echo "</div>\n";
        $cc++;
    }
    echo "</div>\n";
}
/**
 * Agenda
 */
$readAge = new AgendaContatos();
$readAge->Execute()->FullRead("SELECT * FROM agenda_contatos a " . "JOIN ws_setor s ON(s.setor_id = a.setor_id) " . "JOIN agenda_endereco e ON(e.endereco_id = a.endereco_id) " . "JOIN app_cidades c ON(c.cidade_id = e.app_cidade) " . "WHERE a.contato_descricao LIKE '%' :link '%' OR s.setor_content LIKE '%' :link '%'" . "ORDER BY contato_descricao LIMIT :limit OFFSET :offset", "link={$search}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true);
?>

        <hr>
        <section class="section">
            <header>
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:pesquisa.php

示例11: AND

$Read->Execute()->Query("post_status = 1 AND (post_category = :cat OR post_cat_parent = :cat) ORDER BY post_views DESC LIMIT :limit OFFSET :offset", "cat={$category_id}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true);
if (!$Read->Execute()->getResult()) {
    $Pager->ReturnPage();
    WSErro("Desculpe, ainda não temos artigos cadastrado nesta categoria!", WS_INFOR);
} else {
    ?>
                    <div class="row">
                        <?php 
    $View = new View();
    $grupo_p = $View->Load('grupo_p');
    $i = 0;
    foreach ($Read->Execute()->getResult() as $item) {
        $item->post_title = Check::Words($item->post_title, 4);
        $item->datetime = date('Y-m-d', strtotime($item->post_date));
        $item->pubdate = date("d/m/Y H:i", strtotime($item->post_date));
        $View->Show((array) $item, $grupo_p);
        $i++;
    }
}
?>
                </div>

            </div>
            <?php 
$Pager->ExePaginator("ws_posts", "post_status = 1 AND (post_category = :cat OR post_cat_parent = :cat) ORDER BY post_views", "cat={$category_id}");
echo $Pager->getPaginator();
?>
        </div>

    </div>
</section>
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:grupo.php

示例12: AND

$Pager->ExePaginator("ws_posts", "post_status = 1 AND post_type = 'membros' AND (post_category = :cat OR post_cat_parent = :cat)", "cat={$category_id}", true);
$Read = new WsPosts();
$Read->Execute()->Query("post_status = 1 AND post_type = 'membros' AND (post_category = :cat OR post_cat_parent = :cat) ORDER BY post_date DESC LIMIT :limit OFFSET :offset", "cat={$category_id}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true);
if (!$Read->Execute()->getResult()) {
    $Pager->ReturnPage();
    WSErro("Desculpe, a categoria <b>{$category_title}</b> ainda não tem artigos publicados, favor volte mais tarde!", WS_INFOR);
} else {
    $View = new View();
    $membro = $View->Load("article_membro");
    $i = 0;
    echo "\n<!--membros-->\n";
    echo "\n<div class='row'>\n";
    foreach ($Read->Execute()->getResult() as $item) {
        if ($i % 2 == 0 && $i != 0) {
            echo "</div>\n";
            echo "<div class='row'>\n";
        }
        $item->post_title = Check::Words($item->post_title, 4);
        $item->post_content = Check::Words($item->post_content, 10);
        $item->datetime = date('Y-m-d', strtotime($item->post_date));
        $item->pubdate = date("d/m/Y H:i", strtotime($item->post_date));
        $View->Show((array) $item, $membro);
        $i++;
    }
    echo "</div>\n";
    echo "<!--membros end-->\n\n";
}
echo $Pager->getPaginator();
?>
    </div>
</section>
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:membros.php

示例13: profile

 static function profile($args = null)
 {
     if (isset($_SESSION['user_login']) && time() - $_SESSION['user_login'] > 60) {
         UserController::logout();
     }
     if (isset($_SESSION['user_id']) && $_SESSION['user_id']) {
         return View::Show('msg', ["name" => $_SESSION['user_name']]);
     } else {
         UserController::logout();
     }
 }
开发者ID:ahmedhosnycs,项目名称:simpleframework,代码行数:11,代码来源:UserController.php

示例14: login

function login()
{
    Header::setTitle("login");
    View::Show();
}
开发者ID:afliw,项目名称:ponponpon,代码行数:5,代码来源:userController.php

示例15: AND

$readArt->Execute()->Query("post_status = 1 AND (post_title LIKE '%' :link '%' OR post_content LIKE '%' :link '%') ORDER BY post_date DESC LIMIT :limit OFFSET :offset", "link={$search}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true);
if (!$readArt->Execute()->getResult()) {
    $Pager->ReturnPage();
    WSErro("Desculpe, sua pesquisa não retornou resultados. Você pode resulmir sua pesquisa ou tentar outros termos!", WS_INFOR);
} else {
    $cc = 0;
    foreach ($readArt->Execute()->getResult() as $cat) {
        $cc++;
        $View = new View();
        $tpl_cat = $View->Load('article_m');
        $class = $cc % 3 == 0 ? ' class="right"' : null;
        echo "<span{$class}>";
        $cat->post_title = Check::Words($cat->post_title, 8);
        $cat->post_content = Check::Words($cat->post_content, 20);
        $cat->datetime = date('Y-m-d', strtotime($cat->post_date));
        $cat->pubdate = date('d/m/Y H:i', strtotime($cat->post_date));
        $View->Show((array) $cat, $tpl_cat);
        echo "</span>";
    }
}
$Pager->ExePaginator("ws_posts", "post_status = 1 AND (post_title LIKE '%' :link '%' OR post_content LIKE '%' :link '%')", "link={$search}");
echo '<nav class="paginator">';
echo '<h2>Mais resultados para NOME DA CATEGORIA</h2>';
echo $Pager->getPaginator();
echo '</nav>';
?>

    </section>

    <div class="clear"></div>
</div><!--/ site container -->
开发者ID:adrianosilvareis,项目名称:OutlineTecnolog,代码行数:31,代码来源:pesquisa.php


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