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


PHP Reports::get_reports方法代码示例

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


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

示例1: Reports

require_once "../config.inc.php";
if (!empty($_REQUEST['page_start'])) {
    $page_start = $_REQUEST['page_start'];
} else {
    $page_start = "0";
}
if (!empty($_REQUEST['page_range'])) {
    $page_range = $_REQUEST['page_range'];
} else {
    $page_range = PAGING_RANGE;
}
$db = Database::obtain(DB_SERVER, DB_USER, DB_PASS, DB_DATABASE);
$db->connect();
$r = new Reports('unknown', BASE_DOMAIN);
if (empty($_REQUEST['uid'])) {
    $reports = $r->get_reports($page_start, $page_range);
    $reports_count = $r->count_reports();
} else {
    //get one report from search results
    $uid = $_REQUEST['uid'];
    $reports = $r->getReport($uid);
}
$pager_count = $reports_count;
//total records for query
$pager_range = PAGING_RANGE;
//total currently displayed
$pager_end = $page_start + $pager_range;
$pager_pos = $page_start;
$next_pos = $pager_range + 1;
$back_pos = $pager_pos;
$next_button = "";
开发者ID:autonomous019,项目名称:fsi,代码行数:31,代码来源:reports.php

示例2:

                <th>Description</th>
				<th>File</th>
				<th>Delete</th>
            </tr>
        </thead>
		
	    <tbody>
	         

	<?php 
//require_once("../config.inc.php");
//$db = Database::obtain(DB_SERVER, DB_USER, DB_PASS, DB_DATABASE);
//$db->connect();
//$r = new Reports('unknown', BASE_DOMAIN);
if (!empty($_REQUEST['uid'])) {
    $reports = $r->get_reports();
} else {
    //get one report from search results
    $uid = $_REQUEST['uid'];
    $reports = $r->getReport($uid);
}
//$reports = $r->get_reports();
//print_r($reports);
$reports = $info;
for ($i = 0; $i < count($reports); $i++) {
    $id = $reports[$i]['id'];
    $name = $reports[$i]['name'];
    $location = $reports[$i]['location'];
    $file_info = $reports[$i]['file_info'];
    $description = $reports[$i]['description'];
    $client_id = $reports[$i]['client_id'];
开发者ID:autonomous019,项目名称:fsi,代码行数:31,代码来源:settings_edit.php


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