<?php
include_once('bwvs_config/sys_config.php');
require_once('header.php');

$sql = "SELECT * FROM dwvs_vulnerability ORDER BY DWVS_Vulne_id";

$data = mysqli_query($connect,$sql) or die('Error!!');

mysqli_close($connect);
?>
<link rel="stylesheet" type="text/css" href="./css/help.css">
<div class="bs-example table-responsive">
	<table class="table table-striped table-hover ">
	<tr>
		<th>ID</th><!--漏洞ID-->
		<th>漏洞名字</th><!--漏洞名字-->
		<th>漏洞类型</th><!--漏洞类型-->
		<th>漏洞位置</th><!--漏洞位置-->
		<th>参考链接</th><!--扩展阅读文章-->
	</tr>
<?php
while($com = mysqli_fetch_array($data)) {
	$html['V_id'] = htmlspecialchars($com['DWVS_Vulne_id']);
	$html['V_name'] = htmlspecialchars($com['DWVS_Vulne_name']);
	$html['V_Type'] = htmlspecialchars($com['DWVS_Vulne_type']);
	$html['V_Pos'] = htmlspecialchars($com['DWVS_Vulne_position']);
	$html['V_Cor'] = htmlspecialchars($com['DWVS_Vulne_correlate']);
	echo '<tr>';
	echo '<td>'.$html['V_id'].'</td>';
	echo '<td>'.$html['V_name'].'</td>';
	echo '<td>'.$html['V_Type'].'</td>';
	echo '<td> <span class="">'.$html['V_Pos'].'</span> </td>';
	echo '<td>'.'<a href="'.$html['V_Cor'].'">'.$html['V_Cor'].'</a>'.'</td>';
	echo '</tr>';
}
?>
</table>
</div>
<?php 
require_once('Trim.php');
?>