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


PHP Repository::get_list_bylink方法代码示例

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


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

示例1: GET

$torder = GET('torder') ? 1 : 0;
// default order (date DESC)
if ($order == "" && !$torder) {
    $order = "date";
    $torder = 1;
}
ossim_valid($id_document, OSS_DIGIT, OSS_NULLABLE, 'illegal:' . _("Id_document"));
ossim_valid($pag, OSS_DIGIT, OSS_NULLABLE, 'illegal:' . _("Pag"));
ossim_valid($order, OSS_ALPHA, OSS_NULLABLE, 'illegal:' . _("Order"));
ossim_valid($torder, OSS_DIGIT, OSS_NULLABLE, 'illegal:' . _("Torder"));
ossim_valid($search_str, OSS_TEXT, OSS_NULLABLE, 'illegal:' . _("Searchstr"));
if (ossim_error()) {
    die(ossim_error());
}
if ($search_bylink != "") {
    list($repository_list, $total) = Repository::get_list_bylink($conn, $from, $maxrows, $search_bylink);
} else {
    list($repository_list, $total) = Repository::get_list($conn, $from, $maxrows, $search_str, $order, $torder);
}
$total_pages = floor(($total - 1) / $maxrows) + 1;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title> <?php 
echo gettext("OSSIM Framework");
?>
 </title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<meta http-equiv="Pragma" content="no-cache"/>
	<link rel="stylesheet" type="text/css" href="../style/style.css"/>
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:index.php

示例2: preg_replace

echo Incident::get_priority_in_html($priority);
?>
</td>
		

		<td valign="top">
			<?php 
$has_found_keys = 0;
$max_rows = 10;
// Must have the same value in ../repository/index.php
$keywords = $incident->get_keywords_from_type($conn);
if ($keywords != "") {
    $keywords = preg_replace("/\\s*,\\s*/", " OR ", $keywords);
    list($aux_list, $has_found_keys) = Repository::get_list($conn, 0, 5, $keywords);
}
list($linked_list, $has_linked) = Repository::get_list_bylink($conn, 0, 999, $incident->get_id());
$keywords_search = $keywords != "" ? $keywords : $incident->get_title();
if ($has_found_keys > 0) {
    $has_found = "<a href='../repository/?searchstr=" . urlencode($keywords) . "' style='text-decoration:underline'><strong>{$has_found_keys}</strong></a>";
} else {
    if ($has_linked) {
        $has_found = "<a href='../repository/?search_bylink=" . $incident->get_id() . "' style='text-decoration:underline'><strong>{$has_linked}</strong></a>";
    }
}
$has_found = empty($has_found) ? 0 : $has_found;
?>
			<table width="100%">
				<tr><th height="18"><?php 
echo _("Documents");
?>
</th></tr>
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:incident.php

示例3: list

            <td valign='top'><?php 
Incident::colorize_status($incident->get_status($conn));
?>
</td>

            <td valign='top'><?php 
echo Incident::get_priority_in_html($priority);
?>
</td>

            <td valign="top">
                <?php 
$has_found_keys = 0;
$max_rows = 10;
list($linked_list, $has_linked) = Repository::get_list_bylink($conn, 0, -1, $incident->get_id(), "incident");
?>
                <table width="100%" style="border:none;background-color:#efefef">
                    <tr><th height="18"><?php 
echo _('Documents');
?>
</th></tr>
                    <?php 
$i = 0;
if (count($linked_list) == 0) {
    echo "<tr><td height='25'>" . _('No linked documents') . "</td></tr>";
}
$new_url = Menu::get_menu_url("../repository/repository_newdocument.php", 'configuration', 'threat_intelligence', 'knowledgebase');
foreach ($linked_list as $doc) {
    $repository_pag = floor($i / $max_rows) + 1;
    ?>
开发者ID:jackpf,项目名称:ossim-arc,代码行数:30,代码来源:incident.php


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