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


PHP Dashboard::findAll方法代碼示例

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


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

示例1: deselectAll

                <th>Name</th>
                <th>Description</th>
                <th>Group</th>
                <th>Columns</th>
                <th>Background Color</th>
                <th>Action</th>
                <th class="last"><input type="submit" class="btn btn-default" value="Export selected" onclick="$('#form_mass_export').submit();
                        deselectAll();
                        return false;" /></th>
            </tr>    
        </thead>
        <tbody>
            <?php 
$first = TRUE;
if ($filter_group_id == -1) {
    $dashboards = Dashboard::findAll();
} else {
    $dashboards = Dashboard::findAllByFilter($filter_group_id);
}
/* Filter Graphs */
foreach ($dashboards as $dashboard) {
    $dashboard_id = $dashboard->getDashboardId();
    $graphs = Graph::findAll($dashboard_id);
    $number_of_lines = 0;
    foreach ($graphs as $graph) {
        $number_of_lines = $number_of_lines + Line::countAllByFilter($graph->getGraphId(), $filter_text);
    }
    $number_of_graphs = Graph::countAllByFilter($dashboard_id, $filter_text);
    ?>
            <?php 
    if ($number_of_graphs > 0 || $number_of_lines > 0 || preg_match('/' . $filter_text . '/i', $dashboard->getName()) || preg_match('/' . $filter_text . '/i', $dashboard->getDescription())) {
開發者ID:nagyist,項目名稱:Tattle,代碼行數:31,代碼來源:list_filtered_dashboards.php

示例2: echo

                            <div id="form_clone_into_<?php 
            echo (int) $graph->getGraphId();
            ?>
" style="display:none;">
                                <form id="" method="post" action="<?php 
            echo Graph::makeURL('clone_into', $graph);
            ?>
" class="inline no-margin">
                                    <input type="hidden" name="token" value="<?php 
            echo fRequest::generateCSRFToken("/graphs.php");
            ?>
" />
                                    Select destination : 
                                    <select name="dashboard_dest_id">
                                        <?php 
            foreach (Dashboard::findAll() as $dashboard_dest) {
                if ($dashboard_dest->prepareDashboardId() != $graph->prepareDashboardId()) {
                    ?>
                                        <option value="<?php 
                    echo (int) $dashboard_dest->getDashboardId();
                    ?>
"><?php 
                    echo $dashboard_dest->prepareName();
                    ?>
</option>
                                        <?php 
                }
            }
            ?>
                                    </select>
                                    <input type="submit" value="Clone !" class="btn btn-primary"/>
開發者ID:nagyist,項目名稱:Tattle,代碼行數:31,代碼來源:add_edit_dashboard.php


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