[Openvas-commits] r5953 - in trunk/gsa: . src/html/src
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Nov 24 14:36:45 CET 2009
Author: mattm
Date: 2009-11-24 14:36:45 +0100 (Tue, 24 Nov 2009)
New Revision: 5953
Modified:
trunk/gsa/ChangeLog
trunk/gsa/src/html/src/gsad.xsl
trunk/gsa/src/html/src/oap.xsl
trunk/gsa/src/html/src/omp.xsl
Log:
* src/html/src/gsad.xsl, src/html/src/omp.xsl, src/html/src/oap.xsl:
Convert tabs to spaces.
Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog 2009-11-24 13:33:41 UTC (rev 5952)
+++ trunk/gsa/ChangeLog 2009-11-24 13:36:45 UTC (rev 5953)
@@ -1,5 +1,10 @@
2009-11-24 Matthew Mundell <matthew.mundell at intevation.de>
+ * src/html/src/gsad.xsl, src/html/src/omp.xsl, src/html/src/oap.xsl:
+ Convert tabs to spaces.
+
+2009-11-24 Matthew Mundell <matthew.mundell at intevation.de>
+
* src/html/src/gsad.xsl, src/html/src/omp.xsl, src/html/src/oap.xsl: New
files.
Modified: trunk/gsa/src/html/src/gsad.xsl
===================================================================
--- trunk/gsa/src/html/src/gsad.xsl 2009-11-24 13:33:41 UTC (rev 5952)
+++ trunk/gsa/src/html/src/gsad.xsl 2009-11-24 13:36:45 UTC (rev 5953)
@@ -3,10 +3,10 @@
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
- method="html"
- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
- doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
- encoding="UTF-8"/>
+ method="html"
+ doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
+ doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
+ encoding="UTF-8"/>
<!--
Greenbone Security Assistant
@@ -49,32 +49,32 @@
<xsl:template name="html-gsa-logo">
<xsl:param name="username"/>
<div style="text-align:left;">
- <div class="logo_l">
- <a href="/omp?cmd=get_status">
- <img src="/img/style/logo_l.png" alt=""/>
- </a>
- </div>
- <div class="logo_r"></div>
- <div class="logo_m">
- <div class="logout_panel">
- <xsl:choose>
- <xsl:when test="$username = ''">
- </xsl:when>
- <xsl:otherwise>
- Logged in as <b><xsl:value-of select="$username"/></b> |
- </xsl:otherwise>
- </xsl:choose>
- <a href="/logout" title="Logout" style="margin-left:3px;">Logout</a>
- </div>
- </div>
+ <div class="logo_l">
+ <a href="/omp?cmd=get_status">
+ <img src="/img/style/logo_l.png" alt=""/>
+ </a>
+ </div>
+ <div class="logo_r"></div>
+ <div class="logo_m">
+ <div class="logout_panel">
+ <xsl:choose>
+ <xsl:when test="$username = ''">
+ </xsl:when>
+ <xsl:otherwise>
+ Logged in as <b><xsl:value-of select="$username"/></b> |
+ </xsl:otherwise>
+ </xsl:choose>
+ <a href="/logout" title="Logout" style="margin-left:3px;">Logout</a>
+ </div>
+ </div>
</div>
<br clear="all"/>
</xsl:template>
<xsl:template name="html-footer">
<div class="gsa_footer">
- Greenbone Security Assistant (GSA) Copyright 2009 by Greenbone Networks
- GmbH, <a href="http://www.greenbone.net">www.greenbone.net</a>
+ Greenbone Security Assistant (GSA) Copyright 2009 by Greenbone Networks
+ GmbH, <a href="http://www.greenbone.net">www.greenbone.net</a>
</div>
</xsl:template>
@@ -87,14 +87,14 @@
<div id="nav">
<ul>
<li>
- Scan Management
- <ul>
- <li><a href="/omp?cmd=get_status">Tasks</a></li>
- <li><a href="/new_task.html">New Task</a></li>
- </ul>
+ Scan Management
+ <ul>
+ <li><a href="/omp?cmd=get_status">Tasks</a></li>
+ <li><a href="/new_task.html">New Task</a></li>
+ </ul>
</li>
<li>
- Configuration
+ Configuration
<ul>
<li><a href="/omp?cmd=get_configs">Scan Configs</a></li>
<li><a href="/omp?cmd=get_targets">Targets</a></li>
@@ -102,13 +102,13 @@
</ul>
</li>
<li>
- Administration
+ Administration
<ul>
<li><a href="/oap?cmd=get_users">Users</a></li>
</ul>
</li>
<li>
- Help
+ Help
<ul>
<li><a href="/help/contents.html">Contents</a></li>
<li><a href="/about.html">About</a></li>
@@ -127,37 +127,37 @@
<xsl:param name="message">(Missing message)</xsl:param>
<xsl:param name="backurl">/omp?get_status</xsl:param>
<center>
- <div class="envelope" style="width:500px;">
- <div class="gb_window" style="margin-top:150px;">
- <div class="gb_window_part_left_error"></div>
- <div class="gb_window_part_right_error"></div>
- <div class="gb_window_part_center_error">Error Message</div>
- <div class="gb_window_part_content_error" style="text-align:center;">
- <div style="float:right;">
- <a href="/help/error_messages.html" title="Help: Error Message">
- <img src="/img/help.png"/>
- </a>
- </div>
- <br/>
- <img src="/img/alert_sign.png" alt="" title="{$title}"
- style="float:left;margin-left:10px;"/>
- <span style="font-size:16px;">
- <div style="font-weight:bold;padding-top:12px;font-size:20px;">
- <xsl:value-of select="$title"/>
- </div>
- <br clear="all"/>
- <xsl:value-of select="$message"/>
- </span>
- <div style="margin-top:10px;">
- Your options (not all may work):<br/>
- 'Back' button of browser |
- <a href="{$backurl}">Assumed sane state</a> |
- <a href="/login.html">Logout</a>
- </div>
- </div>
- </div>
- <xsl:call-template name="html-footer"/>
- </div>
+ <div class="envelope" style="width:500px;">
+ <div class="gb_window" style="margin-top:150px;">
+ <div class="gb_window_part_left_error"></div>
+ <div class="gb_window_part_right_error"></div>
+ <div class="gb_window_part_center_error">Error Message</div>
+ <div class="gb_window_part_content_error" style="text-align:center;">
+ <div style="float:right;">
+ <a href="/help/error_messages.html" title="Help: Error Message">
+ <img src="/img/help.png"/>
+ </a>
+ </div>
+ <br/>
+ <img src="/img/alert_sign.png" alt="" title="{$title}"
+ style="float:left;margin-left:10px;"/>
+ <span style="font-size:16px;">
+ <div style="font-weight:bold;padding-top:12px;font-size:20px;">
+ <xsl:value-of select="$title"/>
+ </div>
+ <br clear="all"/>
+ <xsl:value-of select="$message"/>
+ </span>
+ <div style="margin-top:10px;">
+ Your options (not all may work):<br/>
+ 'Back' button of browser |
+ <a href="{$backurl}">Assumed sane state</a> |
+ <a href="/login.html">Logout</a>
+ </div>
+ </div>
+ </div>
+ <xsl:call-template name="html-footer"/>
+ </div>
</center>
</xsl:template>
@@ -171,51 +171,51 @@
<div class="gb_window">
- <!-- Choose red color if status is "bad" (outside the 200s). -->
- <xsl:choose>
- <xsl:when test="$status = '200' or $status = '201' or $status = '202'">
- <div class="gb_window_part_left"></div>
- <div class="gb_window_part_right"></div>
- <div class="gb_window_part_center">Results of last operation</div>
- </xsl:when>
- <xsl:otherwise>
- <div class="gb_window_part_left_error"></div>
- <div class="gb_window_part_right_error"></div>
- <div class="gb_window_part_center_error">
- Results of last operation
- </div>
- </xsl:otherwise>
- </xsl:choose>
+ <!-- Choose red color if status is "bad" (outside the 200s). -->
+ <xsl:choose>
+ <xsl:when test="$status = '200' or $status = '201' or $status = '202'">
+ <div class="gb_window_part_left"></div>
+ <div class="gb_window_part_right"></div>
+ <div class="gb_window_part_center">Results of last operation</div>
+ </xsl:when>
+ <xsl:otherwise>
+ <div class="gb_window_part_left_error"></div>
+ <div class="gb_window_part_right_error"></div>
+ <div class="gb_window_part_center_error">
+ Results of last operation
+ </div>
+ </xsl:otherwise>
+ </xsl:choose>
<div class="gb_window_part_content_no_pad">
<div style="text-align:left;">
<table>
- <xsl:choose>
- <xsl:when test="$operation = ''">
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td>Operation:</td>
- <td><xsl:value-of select="$operation"/></td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="$operation = ''">
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+ <td>Operation:</td>
+ <td><xsl:value-of select="$operation"/></td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
- <xsl:choose>
- <xsl:when test="$status = ''">
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td>Status code:</td>
- <td><xsl:value-of select="$status"/></td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="$status = ''">
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+ <td>Status code:</td>
+ <td><xsl:value-of select="$status"/></td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
<tr>
- <td>Status message:</td>
- <td><xsl:value-of select="$msg"/></td>
- </tr>
+ <td>Status message:</td>
+ <td><xsl:value-of select="$msg"/></td>
+ </tr>
</table>
<xsl:choose>
@@ -246,33 +246,33 @@
<xsl:template match="envelope">
<div class="envelope">
- <xsl:call-template name="html-gsa-logo">
+ <xsl:call-template name="html-gsa-logo">
<xsl:with-param name="username">
- <xsl:value-of select="login/text()"/>
- </xsl:with-param>
- </xsl:call-template>
- <table width="100%" cellpadding="3" cellspacing="0">
- <tr>
- <td valign="top" width="1">
- <xsl:call-template name="html-gsa-navigation"/>
- </td>
- <td valign="top">
- <xsl:apply-templates/>
- </td>
- </tr>
- </table>
- <xsl:call-template name="html-footer"/>
+ <xsl:value-of select="login/text()"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ <table width="100%" cellpadding="3" cellspacing="0">
+ <tr>
+ <td valign="top" width="1">
+ <xsl:call-template name="html-gsa-navigation"/>
+ </td>
+ <td valign="top">
+ <xsl:apply-templates/>
+ </td>
+ </tr>
+ </table>
+ <xsl:call-template name="html-footer"/>
</div>
</xsl:template>
<xsl:template match="/">
<html>
- <xsl:call-template name="html-head"/>
- <body>
- <center>
- <xsl:apply-templates/>
- </center>
- </body>
+ <xsl:call-template name="html-head"/>
+ <body>
+ <center>
+ <xsl:apply-templates/>
+ </center>
+ </body>
</html>
</xsl:template>
Modified: trunk/gsa/src/html/src/oap.xsl
===================================================================
--- trunk/gsa/src/html/src/oap.xsl 2009-11-24 13:33:41 UTC (rev 5952)
+++ trunk/gsa/src/html/src/oap.xsl 2009-11-24 13:36:45 UTC (rev 5953)
@@ -3,10 +3,10 @@
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
- method="html"
- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
- doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
- encoding="UTF-8"/>
+ method="html"
+ doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
+ doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
+ encoding="UTF-8"/>
<!--
Greenbone Security Assistant
@@ -44,7 +44,7 @@
<div class="gb_window_part_right"></div>
<div class="gb_window_part_center">New User
<a href="/help/configure_users.html#newuser"
- title="Help: Configure Users (New User)">
+ title="Help: Configure Users (New User)">
<img src="/img/help.png"/>
</a>
</div>
@@ -55,26 +55,26 @@
<tr>
<td valign="top" width="125">Name</td>
<td>
- <input type="text" name="name" value="unnamed" size="30"
- maxlength="80"/>
- </td>
+ <input type="text" name="name" value="unnamed" size="30"
+ maxlength="80"/>
+ </td>
</tr>
<tr>
<td valign="top" width="125">Password</td>
<td>
- <input type="password" name="password" value="" size="30"
- maxlength="40"/>
- </td>
+ <input type="password" name="password" value="" size="30"
+ maxlength="40"/>
+ </td>
</tr>
- <tr>
- <td>Role</td>
- <td>
- <select name="role">
+ <tr>
+ <td>Role</td>
+ <td>
+ <select name="role">
<option value="User">User</option>
<option value="Admin">Admin</option>
- </select>
- </td>
- </tr>
+ </select>
+ </td>
+ </tr>
<tr>
<td colspan="2" style="text-align:right;">
<input type="submit" name="submit" value="Create User"/>
@@ -92,7 +92,7 @@
<div class="gb_window_part_right"></div>
<div class="gb_window_part_center">Users
<a href="/help/configure_users.html#users"
- title="Help: Configure Users (Users)">
+ title="Help: Configure Users (Users)">
<img src="/img/help.png"/>
</a>
</div>
@@ -117,11 +117,11 @@
<xsl:call-template name="command_result_dialog">
<xsl:with-param name="operation">Create User</xsl:with-param>
<xsl:with-param name="status">
- <xsl:value-of select="@status"/>
- </xsl:with-param>
+ <xsl:value-of select="@status"/>
+ </xsl:with-param>
<xsl:with-param name="msg">
- <xsl:value-of select="@status_text"/>
- </xsl:with-param>
+ <xsl:value-of select="@status_text"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -131,11 +131,11 @@
<xsl:call-template name="command_result_dialog">
<xsl:with-param name="operation">Delete User</xsl:with-param>
<xsl:with-param name="status">
- <xsl:value-of select="@status"/>
- </xsl:with-param>
+ <xsl:value-of select="@status"/>
+ </xsl:with-param>
<xsl:with-param name="msg">
- <xsl:value-of select="@status_text"/>
- </xsl:with-param>
+ <xsl:value-of select="@status_text"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -157,12 +157,12 @@
<xsl:choose>
<xsl:when test="in_use='0'">
<img src="/img/delete_inactive.png" border="0" alt="Delete"
- style="margin-left:3px;"/>
+ style="margin-left:3px;"/>
</xsl:when>
<xsl:otherwise>
<a href="/oap?cmd=delete_user&name={name}"
- title="Delete User"
- style="margin-left:3px;">
+ title="Delete User"
+ style="margin-left:3px;">
<img src="/img/delete.png" border="0" alt="Delete"/>
</a>
</xsl:otherwise>
Modified: trunk/gsa/src/html/src/omp.xsl
===================================================================
--- trunk/gsa/src/html/src/omp.xsl 2009-11-24 13:33:41 UTC (rev 5952)
+++ trunk/gsa/src/html/src/omp.xsl 2009-11-24 13:36:45 UTC (rev 5953)
@@ -3,10 +3,10 @@
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
- method="html"
- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
- doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
- encoding="UTF-8"/>
+ method="html"
+ doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
+ doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
+ encoding="UTF-8"/>
<!--
Greenbone Security Assistant
@@ -44,14 +44,14 @@
<div class="gb_window_part_right"></div>
<div class="gb_window_part_center">Tasks
<a href="/help/tasks.html" title="Help: Tasks">
- <img src="/img/help.png" border="0"/>
- </a>
+ <img src="/img/help.png" border="0"/>
+ </a>
<a href="/new_task.html" title="New Task">
- <img src="/img/new.png" border="0" style="margin-left:3px;"/>
- </a>
+ <img src="/img/new.png" border="0" style="margin-left:3px;"/>
+ </a>
<a href="/omp?cmd=get_status" title="Refresh">
- <img src="/img/refresh.png" border="0" style="margin-left:3px;"/>
- </a>
+ <img src="/img/refresh.png" border="0" style="margin-left:3px;"/>
+ </a>
</div>
<div class="gb_window_part_content_no_pad">
<div id="tasks">
@@ -79,12 +79,12 @@
<xsl:template name="build-levels">
<xsl:param name="filters"></xsl:param>
<xsl:for-each select="$filters">
- <xsl:choose>
- <xsl:when test="text()='High'">h</xsl:when>
- <xsl:when test="text()='Medium'">m</xsl:when>
- <xsl:when test="text()='Low'">l</xsl:when>
- <xsl:when test="text()='Log'">g</xsl:when>
- </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="text()='High'">h</xsl:when>
+ <xsl:when test="text()='Medium'">m</xsl:when>
+ <xsl:when test="text()='Low'">l</xsl:when>
+ <xsl:when test="text()='Log'">g</xsl:when>
+ </xsl:choose>
</xsl:for-each>
</xsl:template>
@@ -95,16 +95,16 @@
<div class="gb_window_part_left"></div>
<div class="gb_window_part_right"></div>
<div class="gb_window_part_center">
- Scan report for task "<xsl:value-of select="report/task/name"/>"
+ Scan report for task "<xsl:value-of select="report/task/name"/>"
<a href="/help/view_report.html#viewreport"
- title="Help: View Report (View Report)">
- <img src="/img/help.png"/>
- </a>
+ title="Help: View Report (View Report)">
+ <img src="/img/help.png"/>
+ </a>
</div>
<div class="gb_window_part_content">
- <xsl:variable name="levels">
- <xsl:value-of select="report/filters/text()"/>
- </xsl:variable>
+ <xsl:variable name="levels">
+ <xsl:value-of select="report/filters/text()"/>
+ </xsl:variable>
<div style="float:left;">
<!-- TODO: activate properly
<a href="?cmd=get_report&report_id={report/@id}&first_result={report/results/@start - 20}">
@@ -131,11 +131,11 @@
<input type="hidden" name="report_id" value="{report/@id}"/>
<input type="hidden" name="levels" value="{$levels}"/>
<input type="hidden"
- name="sort_field"
- value="{report/sort/field/text()}"/>
+ name="sort_field"
+ value="{report/sort/field/text()}"/>
<input type="hidden"
- name="sort_order"
- value="{report/sort/field/order}"/>
+ name="sort_order"
+ value="{report/sort/field/order}"/>
<select name="format" style="margin-right:3px;" title="Download Format">
<option value="pdf">PDF</option>
<option value="html">HTML</option>
@@ -151,221 +151,221 @@
<table>
<tr>
- <td>Result of Task:</td>
- <td><xsl:value-of select="report/task/name"/></td>
+ <td>Result of Task:</td>
+ <td><xsl:value-of select="report/task/name"/></td>
</tr>
<tr>
- <td>Order of results:</td>
- <td>by host</td>
- </tr>
+ <td>Order of results:</td>
+ <td>by host</td>
+ </tr>
<tr>
- <td>Scan started:</td>
- <td><xsl:value-of select="report/scan_start"/></td>
- </tr>
+ <td>Scan started:</td>
+ <td><xsl:value-of select="report/scan_start"/></td>
+ </tr>
<tr>
- <td>Scan ended:</td>
- <td><xsl:value-of select="report/scan_end"/></td>
+ <td>Scan ended:</td>
+ <td><xsl:value-of select="report/scan_end"/></td>
</tr>
<tr>
- <td>Final scan run status:</td>
- <td><xsl:value-of select="report/scan_run_status"/></td>
- </tr>
+ <td>Final scan run status:</td>
+ <td><xsl:value-of select="report/scan_run_status"/></td>
+ </tr>
</table>
<h1>Host Summary</h1>
<xsl:apply-templates select="../all/get_report_response/report"
- mode="overview"/>
+ mode="overview"/>
<h1>Results per Host</h1>
<!-- TODO: Move to template. -->
<table>
- <tr>
- <td colspan="2">
- Sorting:
- </td>
- <td colspan="4">
- <xsl:choose>
- <xsl:when test="report/sort/field/text()='port' and report/sort/field/order='ascending'">
- port ascending
- </xsl:when>
- <xsl:otherwise>
- <a href="/omp?cmd=get_report&report_id={report/@id}&sort_field=port&sort_order=ascending&levels={$levels}">
- port ascending
- </a>
- </xsl:otherwise>
- </xsl:choose>
- |
- <xsl:choose>
- <xsl:when test="report/sort/field/text()='port' and report/sort/field/order='descending'">
- port descending
- </xsl:when>
- <xsl:otherwise>
- <a href="/omp?cmd=get_report&report_id={report/@id}&sort_field=port&sort_order=descending&levels={$levels}">
- port descending
- </a>
- </xsl:otherwise>
- </xsl:choose>
- |
- <xsl:choose>
- <xsl:when test="report/sort/field/text()='type' and report/sort/field/order='ascending'">
- threat ascending
- </xsl:when>
- <xsl:otherwise>
- <a href="/omp?cmd=get_report&report_id={report/@id}&sort_field=type&sort_order=ascending&levels={$levels}">
- threat ascending
- </a>
- </xsl:otherwise>
- </xsl:choose>
- |
- <xsl:choose>
- <xsl:when test="report/sort/field/text()='type' and report/sort/field/order='descending'">
- threat descending
- </xsl:when>
- <xsl:otherwise>
- <a href="/omp?cmd=get_report&report_id={report/@id}&sort_field=type&sort_order=descending&levels={$levels}">
- threat descending
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
+ <tr>
+ <td colspan="2">
+ Sorting:
+ </td>
+ <td colspan="4">
+ <xsl:choose>
+ <xsl:when test="report/sort/field/text()='port' and report/sort/field/order='ascending'">
+ port ascending
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="/omp?cmd=get_report&report_id={report/@id}&sort_field=port&sort_order=ascending&levels={$levels}">
+ port ascending
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ |
+ <xsl:choose>
+ <xsl:when test="report/sort/field/text()='port' and report/sort/field/order='descending'">
+ port descending
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="/omp?cmd=get_report&report_id={report/@id}&sort_field=port&sort_order=descending&levels={$levels}">
+ port descending
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ |
+ <xsl:choose>
+ <xsl:when test="report/sort/field/text()='type' and report/sort/field/order='ascending'">
+ threat ascending
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="/omp?cmd=get_report&report_id={report/@id}&sort_field=type&sort_order=ascending&levels={$levels}">
+ threat ascending
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ |
+ <xsl:choose>
+ <xsl:when test="report/sort/field/text()='type' and report/sort/field/order='descending'">
+ threat descending
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="/omp?cmd=get_report&report_id={report/@id}&sort_field=type&sort_order=descending&levels={$levels}">
+ threat descending
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
</table>
- <br/>
+ <br/>
<table>
- <xsl:variable name="sort_field">
- <xsl:value-of select="report/sort/field/text()"/>
- </xsl:variable>
- <xsl:variable name="sort_order">
- <xsl:value-of select="report/sort/field/order"/>
- </xsl:variable>
- <tr>
- <td>Current View:</td>
- <td>
- <div id="small_form">
- <form action="" method="get">
- <table>
- <tr>
- <td class="threat_info_table_h">
- <xsl:choose>
- <xsl:when test="report/filters/filter[text()='High']">
- <input type="checkbox" disabled="1" checked="1"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="checkbox" disabled="1"/>
- </xsl:otherwise>
- </xsl:choose>
- <img src="/img/high.png" alt="High" title="High"/>
- </td>
- <td class="threat_info_table_h">
- <xsl:choose>
- <xsl:when test="report/filters/filter[text()='Medium']">
- <input type="checkbox" disabled="1" checked="1"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="checkbox" disabled="1"/>
- </xsl:otherwise>
- </xsl:choose>
- <img src="/img/medium.png" alt="Medium" title="Medium"/>
- </td>
- <td class="threat_info_table_h">
- <xsl:choose>
- <xsl:when test="report/filters/filter[text()='Low']">
- <input type="checkbox" disabled="1" checked="1"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="checkbox" disabled="1"/>
- </xsl:otherwise>
- </xsl:choose>
- <img src="/img/low.png" alt="Low" title="Low"/>
- </td>
- <td class="threat_info_table_h">
- <xsl:choose>
- <xsl:when test="report/filters/filter[text()='Log']">
- <input type="checkbox" disabled="1" checked="1"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="checkbox" disabled="1"/>
- </xsl:otherwise>
- </xsl:choose>
- <img src="/img/log.png" alt="Log" title="Log"/>
- </td>
- <td class="threat_info_table_h">
- </td>
- </tr>
- </table>
- </form>
- </div>
- </td>
- </tr>
- <tr>
- <td>New Filter:</td>
- <td>
- <div id="small_form">
- <form action="" method="get">
- <input type="hidden" name="cmd" value="get_report"/>
- <input type="hidden" name="report_id" value="{report/@id}"/>
- <input type="hidden" name="sort_field" value="{$sort_field}"/>
- <input type="hidden" name="sort_order" value="{$sort_order}"/>
- <table>
- <tr>
- <td class="threat_info_table_h">
- <xsl:choose>
- <xsl:when test="report/filters/filter[text()='High']">
- <input type="checkbox" name="level_high" value="1"
- checked="1"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="checkbox" name="level_high" value="1"/>
- </xsl:otherwise>
- </xsl:choose>
- <img src="/img/high.png" alt="High" title="High"/>
- </td>
- <td class="threat_info_table_h">
- <xsl:choose>
- <xsl:when test="report/filters/filter[text()='Medium']">
- <input type="checkbox" name="level_medium" value="1"
- checked="1"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="checkbox" name="level_medium" value="1"/>
- </xsl:otherwise>
- </xsl:choose>
- <img src="/img/medium.png" alt="Medium" title="Medium"/>
- </td>
- <td class="threat_info_table_h">
- <xsl:choose>
- <xsl:when test="report/filters/filter[text()='Low']">
- <input type="checkbox" name="level_low" value="1"
- checked="1"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="checkbox" name="level_low" value="1"/>
- </xsl:otherwise>
- </xsl:choose>
- <img src="/img/low.png" alt="Low" title="Low"/>
- </td>
- <td class="threat_info_table_h">
- <xsl:choose>
- <xsl:when test="report/filters/filter[text()='Log']">
- <input type="checkbox" name="level_log" value="1"
- checked="1"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="checkbox" name="level_log" value="1"/>
- </xsl:otherwise>
- </xsl:choose>
- <img src="/img/log.png" alt="Log" title="Log"/>
- </td>
- <td class="threat_info_table_h">
- <input type="submit" value="Apply" title="Apply"/>
- </td>
- </tr>
- </table>
- </form>
- </div>
- </td>
- </tr>
+ <xsl:variable name="sort_field">
+ <xsl:value-of select="report/sort/field/text()"/>
+ </xsl:variable>
+ <xsl:variable name="sort_order">
+ <xsl:value-of select="report/sort/field/order"/>
+ </xsl:variable>
+ <tr>
+ <td>Current View:</td>
+ <td>
+ <div id="small_form">
+ <form action="" method="get">
+ <table>
+ <tr>
+ <td class="threat_info_table_h">
+ <xsl:choose>
+ <xsl:when test="report/filters/filter[text()='High']">
+ <input type="checkbox" disabled="1" checked="1"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="checkbox" disabled="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <img src="/img/high.png" alt="High" title="High"/>
+ </td>
+ <td class="threat_info_table_h">
+ <xsl:choose>
+ <xsl:when test="report/filters/filter[text()='Medium']">
+ <input type="checkbox" disabled="1" checked="1"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="checkbox" disabled="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <img src="/img/medium.png" alt="Medium" title="Medium"/>
+ </td>
+ <td class="threat_info_table_h">
+ <xsl:choose>
+ <xsl:when test="report/filters/filter[text()='Low']">
+ <input type="checkbox" disabled="1" checked="1"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="checkbox" disabled="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <img src="/img/low.png" alt="Low" title="Low"/>
+ </td>
+ <td class="threat_info_table_h">
+ <xsl:choose>
+ <xsl:when test="report/filters/filter[text()='Log']">
+ <input type="checkbox" disabled="1" checked="1"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="checkbox" disabled="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <img src="/img/log.png" alt="Log" title="Log"/>
+ </td>
+ <td class="threat_info_table_h">
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>New Filter:</td>
+ <td>
+ <div id="small_form">
+ <form action="" method="get">
+ <input type="hidden" name="cmd" value="get_report"/>
+ <input type="hidden" name="report_id" value="{report/@id}"/>
+ <input type="hidden" name="sort_field" value="{$sort_field}"/>
+ <input type="hidden" name="sort_order" value="{$sort_order}"/>
+ <table>
+ <tr>
+ <td class="threat_info_table_h">
+ <xsl:choose>
+ <xsl:when test="report/filters/filter[text()='High']">
+ <input type="checkbox" name="level_high" value="1"
+ checked="1"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="checkbox" name="level_high" value="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <img src="/img/high.png" alt="High" title="High"/>
+ </td>
+ <td class="threat_info_table_h">
+ <xsl:choose>
+ <xsl:when test="report/filters/filter[text()='Medium']">
+ <input type="checkbox" name="level_medium" value="1"
+ checked="1"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="checkbox" name="level_medium" value="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <img src="/img/medium.png" alt="Medium" title="Medium"/>
+ </td>
+ <td class="threat_info_table_h">
+ <xsl:choose>
+ <xsl:when test="report/filters/filter[text()='Low']">
+ <input type="checkbox" name="level_low" value="1"
+ checked="1"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="checkbox" name="level_low" value="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <img src="/img/low.png" alt="Low" title="Low"/>
+ </td>
+ <td class="threat_info_table_h">
+ <xsl:choose>
+ <xsl:when test="report/filters/filter[text()='Log']">
+ <input type="checkbox" name="level_log" value="1"
+ checked="1"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="checkbox" name="level_log" value="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <img src="/img/log.png" alt="Log" title="Log"/>
+ </td>
+ <td class="threat_info_table_h">
+ <input type="submit" value="Apply" title="Apply"/>
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </td>
+ </tr>
</table>
<xsl:apply-templates select="report" mode="details"/>
@@ -378,7 +378,7 @@
<div class="gb_window_part_right"></div>
<div class="gb_window_part_center">Task Summary
<a href="/help/reports.html#tasksummary"
- title="Help: Reports (Task Summary)">
+ title="Help: Reports (Task Summary)">
<img src="/img/help.png"/>
</a>
<a href="/omp?cmd=get_status&task_id={task/@id}" title="Refresh">
@@ -387,77 +387,77 @@
</div>
<div class="gb_window_part_content">
<div style="float:right;">
- <a href="/omp?cmd=get_status">Back to Tasks</a>
- </div>
- <table>
- <tr>
- <td><b>Name:</b></td>
- <td><b><xsl:value-of select="task/name"/></b></td>
+ <a href="/omp?cmd=get_status">Back to Tasks</a>
+ </div>
+ <table>
+ <tr>
+ <td><b>Name:</b></td>
+ <td><b><xsl:value-of select="task/name"/></b></td>
</tr>
- <tr>
- <td>Status:</td>
- <td>
- <xsl:call-template name="status_bar">
- <xsl:with-param name="status">
- <xsl:value-of select="task/status"/>
- </xsl:with-param>
- <xsl:with-param name="progress">
- <xsl:value-of select="task/progress/text()"/>
- </xsl:with-param>
- </xsl:call-template>
- </td>
- </tr>
- <tr>
- <td>Reports:</td>
- <td>
- <xsl:value-of select="task/report_count/text()"/>
- (Finished: <xsl:value-of select="task/report_count/finished"/>)
+ <tr>
+ <td>Status:</td>
+ <td>
+ <xsl:call-template name="status_bar">
+ <xsl:with-param name="status">
+ <xsl:value-of select="task/status"/>
+ </xsl:with-param>
+ <xsl:with-param name="progress">
+ <xsl:value-of select="task/progress/text()"/>
+ </xsl:with-param>
+ </xsl:call-template>
</td>
- </tr>
- </table>
- </div>
+ </tr>
+ <tr>
+ <td>Reports:</td>
+ <td>
+ <xsl:value-of select="task/report_count/text()"/>
+ (Finished: <xsl:value-of select="task/report_count/finished"/>)
+ </td>
+ </tr>
+ </table>
+ </div>
</div>
<br/>
<div class="gb_window">
- <div class="gb_window_part_left"></div>
- <div class="gb_window_part_right"></div>
- <div class="gb_window_part_center">
- Reports for "<xsl:value-of select="task/name"/>"
- <a href="/help/reports.html#reports" title="Help: Reports (Reports)">
- <img src="/img/help.png"/>
- </a>
- <a href="/omp?cmd=get_status&task_id={task/@id}" title="Refresh">
- <img src="/img/refresh.png" border="0" style="margin-left:3px;"/>
- </a>
- </div>
- <div class="gb_window_part_content_no_pad">
- <div id="reports">
- <table class="gbntable" cellspacing="2" cellpadding="4">
- <tr class="gbntablehead2">
- <td rowspan="2">Report</td>
- <td rowspan="2">Threat</td>
- <td colspan="4">Scan Results</td>
- <td rowspan="2">Download</td>
- <td rowspan="2">Actions</td>
- </tr>
- <tr class="gbntablehead2">
- <td class="threat_info_table_h">
- <img src="/img/high.png" alt="High" title="High"/>
- </td>
- <td class="threat_info_table_h">
- <img src="/img/medium.png" alt="Medium" title="Medium"/>
- </td>
- <td class="threat_info_table_h">
- <img src="/img/low.png" alt="Low" title="Low"/>
- </td>
- <td class="threat_info_table_h">
- <img src="/img/log.png" alt="Log" title="Log"/>
- </td>
- </tr>
- <xsl:apply-templates/>
- </table>
- </div>
- </div>
+ <div class="gb_window_part_left"></div>
+ <div class="gb_window_part_right"></div>
+ <div class="gb_window_part_center">
+ Reports for "<xsl:value-of select="task/name"/>"
+ <a href="/help/reports.html#reports" title="Help: Reports (Reports)">
+ <img src="/img/help.png"/>
+ </a>
+ <a href="/omp?cmd=get_status&task_id={task/@id}" title="Refresh">
+ <img src="/img/refresh.png" border="0" style="margin-left:3px;"/>
+ </a>
+ </div>
+ <div class="gb_window_part_content_no_pad">
+ <div id="reports">
+ <table class="gbntable" cellspacing="2" cellpadding="4">
+ <tr class="gbntablehead2">
+ <td rowspan="2">Report</td>
+ <td rowspan="2">Threat</td>
+ <td colspan="4">Scan Results</td>
+ <td rowspan="2">Download</td>
+ <td rowspan="2">Actions</td>
+ </tr>
+ <tr class="gbntablehead2">
+ <td class="threat_info_table_h">
+ <img src="/img/high.png" alt="High" title="High"/>
+ </td>
+ <td class="threat_info_table_h">
+ <img src="/img/medium.png" alt="Medium" title="Medium"/>
+ </td>
+ <td class="threat_info_table_h">
+ <img src="/img/low.png" alt="Low" title="Low"/>
+ </td>
+ <td class="threat_info_table_h">
+ <img src="/img/log.png" alt="Log" title="Log"/>
+ </td>
+ </tr>
+ <xsl:apply-templates/>
+ </table>
+ </div>
+ </div>
</div>
</xsl:template>
@@ -518,17 +518,17 @@
<xsl:variable name="threat_b">
<xsl:choose>
<xsl:when test="second_last_report/report/messages/hole > 0">
- 4
- </xsl:when>
+ 4
+ </xsl:when>
<xsl:when test="second_last_report/report/messages/warning > 0">
- 3
- </xsl:when>
+ 3
+ </xsl:when>
<xsl:when test="second_last_report/report/messages/info > 0">
- 2
- </xsl:when>
+ 2
+ </xsl:when>
<xsl:otherwise>
- 1
- </xsl:otherwise>
+ 1
+ </xsl:otherwise>
</xsl:choose>
</xsl:variable>
@@ -592,7 +592,7 @@
</xsl:when>
<xsl:otherwise>
<img src="/img/trend_nochange.png"
- alt="Threat did not change"
+ alt="Threat did not change"
title="The threat did not change"/>
</xsl:otherwise>
</xsl:choose>
@@ -623,16 +623,16 @@
<div class="progressbar_box" title="{$status}">
<div class="progressbar_bar" style="width:{$progress}px;"></div>
<div class="progressbar_text">
- <xsl:value-of select="$progress"/> %
- </div>
+ <xsl:value-of select="$progress"/> %
+ </div>
</div>
</xsl:when>
<xsl:when test="$status='New'">
<div class="progressbar_box" title="{$status}">
<div class="progressbar_bar_new" style="width:100px;"></div>
<div class="progressbar_text">
- <i><b><xsl:value-of select="$status"/></b></i>
- </div>
+ <i><b><xsl:value-of select="$status"/></b></i>
+ </div>
</div>
</xsl:when>
<xsl:when test="$status='Requested'">
@@ -735,17 +735,17 @@
<xsl:template match="gsad_msg">
<xsl:call-template name="command_result_dialog">
<xsl:with-param name="operation">
- <xsl:value-of select="@operation"/>
- </xsl:with-param>
+ <xsl:value-of select="@operation"/>
+ </xsl:with-param>
<xsl:with-param name="status">
- <xsl:value-of select="@status"/>
- </xsl:with-param>
+ <xsl:value-of select="@status"/>
+ </xsl:with-param>
<xsl:with-param name="msg">
- <xsl:value-of select="@status_text"/>
- </xsl:with-param>
+ <xsl:value-of select="@status_text"/>
+ </xsl:with-param>
<xsl:with-param name="details">
- <xsl:value-of select="text()"/>
- </xsl:with-param>
+ <xsl:value-of select="text()"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -753,11 +753,11 @@
<xsl:call-template name="command_result_dialog">
<xsl:with-param name="operation">Create Task</xsl:with-param>
<xsl:with-param name="status">
- <xsl:value-of select="@status"/>
- </xsl:with-param>
+ <xsl:value-of select="@status"/>
+ </xsl:with-param>
<xsl:with-param name="msg">
- <xsl:value-of select="@status_text"/>
- </xsl:with-param>
+ <xsl:value-of select="@status_text"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -765,11 +765,11 @@
<xsl:call-template name="command_result_dialog">
<xsl:with-param name="operation">Delete Task</xsl:with-param>
<xsl:with-param name="status">
- <xsl:value-of select="@status"/>
- </xsl:with-param>
+ <xsl:value-of select="@status"/>
+ </xsl:with-param>
<xsl:with-param name="msg">
- <xsl:value-of select="@status_text"/>
- </xsl:with-param>
+ <xsl:value-of select="@status_text"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -777,11 +777,11 @@
<xsl:call-template name="command_result_dialog">
<xsl:with-param name="operation">Delete Report</xsl:with-param>
<xsl:with-param name="status">
- <xsl:value-of select="@status"/>
- </xsl:with-param>
+ <xsl:value-of select="@status"/>
+ </xsl:with-param>
<xsl:with-param name="msg">
- <xsl:value-of select="@status_text"/>
- </xsl:with-param>
+ <xsl:value-of select="@status_text"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -789,11 +789,11 @@
<xsl:call-template name="command_result_dialog">
<xsl:with-param name="operation">Start Task</xsl:with-param>
<xsl:with-param name="status">
- <xsl:value-of select="@status"/>
- </xsl:with-param>
+ <xsl:value-of select="@status"/>
+ </xsl:with-param>
<xsl:with-param name="msg">
- <xsl:value-of select="@status_text"/>
- </xsl:with-param>
+ <xsl:value-of select="@status_text"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -801,11 +801,11 @@
<xsl:call-template name="command_result_dialog">
<xsl:with-param name="operation">Stop Task</xsl:with-param>
<xsl:with-param name="status">
- <xsl:value-of select="@status"/>
- </xsl:with-param>
+ <xsl:value-of select="@status"/>
+ </xsl:with-param>
<xsl:with-param name="msg">
- <xsl:value-of select="@status_text"/>
- </xsl:with-param>
+ <xsl:value-of select="@status_text"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -827,10 +827,10 @@
</xsl:variable>
<tr class="{$class}">
<td>
- <a href="{@host_start/host}">
- <xsl:value-of select="host_start/host"/>
- </a>
- </td>
+ <a href="{@host_start/host}">
+ <xsl:value-of select="host_start/host"/>
+ </a>
+ </td>
<td></td>
<td>0</td>
<td>0</td>
@@ -894,26 +894,26 @@
<input type="hidden" name="report_id" value="{@id}"/>
<input type="hidden" name="cmd" value="get_report"/>
<select name="format"
- style="margin-right:3px;"
- title="Download Format">
+ style="margin-right:3px;"
+ title="Download Format">
<option value="pdf">PDF</option>
<option value="html">HTML</option>
<option value="xml">XML</option>
<option value="nbe">NBE</option>
</select>
- <input type="submit" value="Download" title="Download"/>
+ <input type="submit" value="Download" title="Download"/>
</form>
</div>
</td>
<td>
<a href="/omp?cmd=get_report&report_id={@id}"
- title="Details"
- style="margin-left:3px;">
+ title="Details"
+ style="margin-left:3px;">
<img src="/img/details.png" border="0" alt="Details"/>
</a>
<a href="/omp?cmd=delete_report&report_id={@id}&task_id={../@id}"
- title="Delete"
- style="margin-left:3px;">
+ title="Delete"
+ style="margin-left:3px;">
<img src="/img/delete.png" border="0" alt="Delete"/>
</a>
</td>
@@ -975,11 +975,11 @@
<td>
<xsl:call-template name="status_bar">
<xsl:with-param name="status">
- <xsl:value-of select="status"/>
- </xsl:with-param>
+ <xsl:value-of select="status"/>
+ </xsl:with-param>
<xsl:with-param name="progress">
- <xsl:value-of select="progress/text()"/>
- </xsl:with-param>
+ <xsl:value-of select="progress/text()"/>
+ </xsl:with-param>
</xsl:call-template>
</td>
<td style="text-align:right;font-size:10px;">
@@ -1027,7 +1027,7 @@
</xsl:when>
<xsl:otherwise>
<a href="/omp?cmd=start_task&task_id={@id}"
- title="Start Task">
+ title="Start Task">
<img src="/img/start.png" border="0" alt="Start"/>
</a>
</xsl:otherwise>
@@ -1035,48 +1035,48 @@
<xsl:choose>
<xsl:when test="status='New' or status='Done' or status='Stopped'">
<img src="/img/stop_inactive.png" border="0"
- alt="Abort"
- style="margin-left:3px;"/>
+ alt="Abort"
+ style="margin-left:3px;"/>
</xsl:when>
<xsl:otherwise>
<a href="/omp?cmd=abort_task&task_id={@id}" title="Abort Task">
<img src="/img/stop.png"
- border="0"
- alt="Abort"
- style="margin-left:3px;"/>
+ border="0"
+ alt="Abort"
+ style="margin-left:3px;"/>
</a>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="status='Running'">
<img src="/img/delete_inactive.png"
- border="0"
- alt="Delete"
- style="margin-left:3px;"/>
+ border="0"
+ alt="Delete"
+ style="margin-left:3px;"/>
</xsl:when>
<xsl:otherwise>
<a href="/omp?cmd=delete_task&task_id={@id}"
- title="Delete Task"
- style="margin-left:3px;">
+ title="Delete Task"
+ style="margin-left:3px;">
<img src="/img/delete.png"
- border="0"
- alt="Delete"/>
+ border="0"
+ alt="Delete"/>
</a>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="report_count < 1">
<img src="/img/list_inactive.png"
- border="0"
- alt="Reports"
- style="margin-left:3px;"/>
+ border="0"
+ alt="Reports"
+ style="margin-left:3px;"/>
</xsl:when>
<xsl:otherwise>
<a href="/omp?cmd=get_status&task_id={@id}" title="Reports">
<img src="/img/list.png"
- border="0"
- alt="Reports"
- style="margin-left:3px;"/>
+ border="0"
+ alt="Reports"
+ style="margin-left:3px;"/>
</a>
</xsl:otherwise>
</xsl:choose>
@@ -1090,12 +1090,12 @@
<xsl:template match="get_status_response">
<xsl:choose>
- <xsl:when test="task/report">
- <xsl:call-template name="html-report-table"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="html-task-table"/>
- </xsl:otherwise>
+ <xsl:when test="task/report">
+ <xsl:call-template name="html-report-table"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="html-task-table"/>
+ </xsl:otherwise>
</xsl:choose>
</xsl:template>
@@ -1117,9 +1117,9 @@
<div class="gb_window_part_left"></div>
<div class="gb_window_part_right"></div>
<div class="gb_window_part_center">
- New Credential for Local Security Checks
+ New Credential for Local Security Checks
<a href="/help/configure_credentials.html#new_lsc_credential"
- title="Help: Configure Credentials (New Credential)">
+ title="Help: Configure Credentials (New Credential)">
<img src="/img/help.png"/>
</a>
</div>
@@ -1130,35 +1130,35 @@
<tr>
<td valign="top" width="125">Name</td>
<td>
- <input type="text" name="name" value="unnamed" size="30"
- maxlength="20"/>
- </td>
+ <input type="text" name="name" value="unnamed" size="30"
+ maxlength="20"/>
+ </td>
</tr>
<tr>
<td valign="top" width="125">Comment (optional)</td>
<td>
- <input type="text" name="comment" size="30" maxlength="40"/>
- </td>
+ <input type="text" name="comment" size="30" maxlength="40"/>
+ </td>
</tr>
<tr>
- <td></td>
- <td>
- <table>
- <tr>
- <td colspan="2">
- <input type="radio" name="base" value="gen" checked="1"/>
- Autogenerate credential
- </td>
- </tr>
- <tr>
- <td>
- <input type="radio" name="base" value="pass"/>
- Password
- </td>
- <td><input type="password" name="password"/></td>
- </tr>
- </table>
- </td>
+ <td></td>
+ <td>
+ <table>
+ <tr>
+ <td colspan="2">
+ <input type="radio" name="base" value="gen" checked="1"/>
+ Autogenerate credential
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="radio" name="base" value="pass"/>
+ Password
+ </td>
+ <td><input type="password" name="password"/></td>
+ </tr>
+ </table>
+ </td>
</tr>
<tr>
<td colspan="2" style="text-align:right;">
@@ -1175,10 +1175,10 @@
<div class="gb_window">
<div class="gb_window_part_left"></div>
<div class="gb_window_part_right"></div>
- <div class="gb_window_part_center">
- Credentials for Local Security Checks
+ <div class="gb_window_part_center">
+ Credentials for Local Security Checks
<a href="/help/configure_credentials.html#credentials"
- title="Help: Configure Credentials (Credentials)">
+ title="Help: Configure Credentials (Credentials)">
<img src="/img/help.png"/>
</a>
</div>
@@ -1190,7 +1190,7 @@
<td>Comment</td>
<td width="100">Actions</td>
</tr>
- <xsl:apply-templates select="lsc_credential"/>
+ <xsl:apply-templates select="lsc_credential"/>
</table>
</div>
</div>
@@ -1203,11 +1203,11 @@
<xsl:call-template name="command_result_dialog">
<xsl:with-param name="operation">Create Credential</xsl:with-param>
<xsl:with-param name="status">
- <xsl:value-of select="@status"/>
- </xsl:with-param>
+ <xsl:value-of select="@status"/>
+ </xsl:with-param>
<xsl:with-param name="msg">
- <xsl:value-of select="@status_text"/>
- </xsl:with-param>
+ <xsl:value-of select="@status_text"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -1216,14 +1216,14 @@
<xsl:template match="delete_lsc_credential_response">
<xsl:call-template name="command_result_dialog">
<xsl:with-param name="operation">
- Delete Credential
- </xsl:with-param>
+ Delete Credential
+ </xsl:with-param>
<xsl:with-param name="status">
- <xsl:value-of select="@status"/>
- </xsl:with-param>
+ <xsl:value-of select="@status"/>
+ </xsl:with-param>
<xsl:with-param name="msg">
- <xsl:value-of select="@status_text"/>
- </xsl:with-param>
+ <xsl:value-of select="@status_text"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -1241,39 +1241,39 @@
<b><xsl:value-of select="name"/></b>
</td>
<td>
- <xsl:value-of select="comment"/>
+ <xsl:value-of select="comment"/>
</td>
<td>
<xsl:choose>
- <xsl:when test="in_use='0'">
- <a href="/omp?cmd=delete_lsc_credential&name={name}"
- title="Delete Credential" style="margin-left:3px;">
- <img src="/img/delete.png" border="0" alt="Delete"/>
- </a>
+ <xsl:when test="in_use='0'">
+ <a href="/omp?cmd=delete_lsc_credential&name={name}"
+ title="Delete Credential" style="margin-left:3px;">
+ <img src="/img/delete.png" border="0" alt="Delete"/>
+ </a>
</xsl:when>
<xsl:otherwise>
<img src="/img/delete_inactive.png" border="0" alt="Delete"
- style="margin-left:3px;"/>
+ style="margin-left:3px;"/>
</xsl:otherwise>
</xsl:choose>
- <xsl:if test="type='gen'">
- <a href="/omp?cmd=get_lsc_credentials&name={name}&package_format=rpm"
- title="Download RPM package" style="margin-left:3px;">
- <img src="/img/rpm.png" border="0" alt="Download RPM"/>
- </a>
- <a href="/omp?cmd=get_lsc_credentials&name={name}&package_format=deb"
- title="Download Debian package" style="margin-left:3px;">
- <img src="/img/deb.png" border="0" alt="Download Deb"/>
- </a>
- <a href="/omp?cmd=get_lsc_credentials&name={name}&package_format=exe"
- title="Download Exe package" style="margin-left:3px;">
- <img src="/img/exe.png" border="0" alt="Download Exe"/>
- </a>
- <a href="/omp?cmd=get_lsc_credentials&name={name}&package_format=key"
- title="Download Public Key" style="margin-left:3px;">
- <img src="/img/key.png" border="0" alt="Download Public Key"/>
- </a>
- </xsl:if>
+ <xsl:if test="type='gen'">
+ <a href="/omp?cmd=get_lsc_credentials&name={name}&package_format=rpm"
+ title="Download RPM package" style="margin-left:3px;">
+ <img src="/img/rpm.png" border="0" alt="Download RPM"/>
+ </a>
+ <a href="/omp?cmd=get_lsc_credentials&name={name}&package_format=deb"
+ title="Download Debian package" style="margin-left:3px;">
+ <img src="/img/deb.png" border="0" alt="Download Deb"/>
+ </a>
+ <a href="/omp?cmd=get_lsc_credentials&name={name}&package_format=exe"
+ title="Download Exe package" style="margin-left:3px;">
+ <img src="/img/exe.png" border="0" alt="Download Exe"/>
+ </a>
+ <a href="/omp?cmd=get_lsc_credentials&name={name}&package_format=key"
+ title="Download Public Key" style="margin-left:3px;">
+ <img src="/img/key.png" border="0" alt="Download Public Key"/>
+ </a>
+ </xsl:if>
</td>
</tr>
</xsl:template>
@@ -1304,7 +1304,7 @@
<div class="gb_window_part_right"></div>
<div class="gb_window_part_center">New Target
<a href="/help/configure_targets.html#newtarget"
- title="Help: Configure Targets (New Target)">
+ title="Help: Configure Targets (New Target)">
<img src="/img/help.png"/>
</a>
</div>
@@ -1315,30 +1315,30 @@
<tr>
<td valign="top" width="125">Name</td>
<td>
- <input type="text" name="name" value="unnamed" size="30"
- maxlength="80"/>
- </td>
+ <input type="text" name="name" value="unnamed" size="30"
+ maxlength="80"/>
+ </td>
</tr>
<tr>
<td valign="top" width="125">Comment (optional)</td>
<td>
- <input type="text" name="comment" size="30" maxlength="40"/>
- </td>
+ <input type="text" name="comment" size="30" maxlength="40"/>
+ </td>
</tr>
<tr>
<td valign="top" width="125">Hosts</td>
<td>
- <input type="text" name="hosts" value="localhost" size="30"
- maxlength="80"/>
- </td>
+ <input type="text" name="hosts" value="localhost" size="30"
+ maxlength="80"/>
+ </td>
</tr>
<tr>
<td valign="top" width="125">Credential (optional)</td>
<td>
- <select name="password">
- <option value="--">--</option>
- <xsl:apply-templates select="$lsc-credentials" mode="select"/>
- </select>
+ <select name="password">
+ <option value="--">--</option>
+ <xsl:apply-templates select="$lsc-credentials" mode="select"/>
+ </select>
</td>
</tr>
<tr>
@@ -1358,7 +1358,7 @@
<div class="gb_window_part_right"></div>
<div class="gb_window_part_center">Targets
<a href="/help/configure_targets.html#targets"
- title="Help: Configure Targets (Targets)">
+ title="Help: Configure Targets (Targets)">
<img src="/img/help.png"/>
</a>
</div>
@@ -1385,11 +1385,11 @@
<xsl:call-template name="command_result_dialog">
<xsl:with-param name="operation">Create Target</xsl:with-param>
<xsl:with-param name="status">
- <xsl:value-of select="@status"/>
- </xsl:with-param>
+ <xsl:value-of select="@status"/>
+ </xsl:with-param>
<xsl:with-param name="msg">
- <xsl:value-of select="@status_text"/>
- </xsl:with-param>
+ <xsl:value-of select="@status_text"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -1398,14 +1398,14 @@
<xsl:template match="delete_target_response">
<xsl:call-template name="command_result_dialog">
<xsl:with-param name="operation">
- Delete Target
- </xsl:with-param>
+ Delete Target
+ </xsl:with-param>
<xsl:with-param name="status">
- <xsl:value-of select="@status"/>
- </xsl:with-param>
+ <xsl:value-of select="@status"/>
+ </xsl:with-param>
<xsl:with-param name="msg">
- <xsl:value-of select="@status_text"/>
- </xsl:with-param>
+ <xsl:value-of select="@status_text"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -1434,16 +1434,16 @@
<td>
<xsl:choose>
<xsl:when test="in_use='0'">
- <a href="/omp?cmd=delete_target&name={name}"
- title="Delete Target" style="margin-left:3px;">
+ <a href="/omp?cmd=delete_target&name={name}"
+ title="Delete Target" style="margin-left:3px;">
<img src="/img/delete.png" border="0" alt="Delete"/>
</a>
</xsl:when>
<xsl:otherwise>
<img src="/img/delete_inactive.png"
- border="0"
- alt="Delete"
- style="margin-left:3px;"/>
+ border="0"
+ alt="Delete"
+ style="margin-left:3px;"/>
</xsl:otherwise>
</xsl:choose>
</td>
@@ -1456,13 +1456,13 @@
<xsl:apply-templates select="commands_response/delete_target_response"/>
<xsl:apply-templates select="create_target_response"/>
<xsl:call-template name="html-create-target-form">
- <xsl:with-param
- name="lsc-credentials"
+ <xsl:with-param
+ name="lsc-credentials"
select="get_lsc_credentials_response | commands_response/get_lsc_credentials_response"/>
</xsl:call-template>
<!-- The for-each makes the get_targets_response the current node. -->
<xsl:for-each select="get_targets_response | commands_response/get_targets_response">
- <xsl:call-template name="html-targets-table"/>
+ <xsl:call-template name="html-targets-table"/>
</xsl:for-each>
</xsl:template>
@@ -1475,10 +1475,10 @@
<div class="gb_window_part_left"></div>
<div class="gb_window_part_right"></div>
<div class="gb_window_part_center">
- New Scan Config
+ New Scan Config
<a href="/help/configure_scanconfigs.html#newconfig"
title="Help: Configure Scan Configs (New Scan Config)">
- <img src="/img/help.png"/>
+ <img src="/img/help.png"/>
</a>
</div>
<div class="gb_window_part_content">
@@ -1488,35 +1488,35 @@
<tr>
<td valign="top" width="125">Name</td>
<td>
- <input type="text" name="name" value="unnamed" size="30"
- maxlength="20"/>
- </td>
+ <input type="text" name="name" value="unnamed" size="30"
+ maxlength="20"/>
+ </td>
</tr>
<tr>
<td valign="top">Comment (optional)</td>
<td>
- <input type="text" name="comment" size="30" maxlength="40"/>
- </td>
+ <input type="text" name="comment" size="30" maxlength="40"/>
+ </td>
</tr>
<tr>
<td>Base</td>
<td>
- <table>
- <tr>
- <td colspan="2">
- <input type="radio" name="base" value="Full and fast"
- checked="1"/>
- Full and fast
- </td>
- </tr>
- <tr>
- <td>
- <input type="radio" name="base" value="file"/>
- Import config file
- </td>
- <td><input type="file" name="rcfile"/></td>
- </tr>
- </table>
+ <table>
+ <tr>
+ <td colspan="2">
+ <input type="radio" name="base" value="Full and fast"
+ checked="1"/>
+ Full and fast
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="radio" name="base" value="file"/>
+ Import config file
+ </td>
+ <td><input type="file" name="rcfile"/></td>
+ </tr>
+ </table>
</td>
</tr>
<tr>
@@ -1535,196 +1535,196 @@
<div class="gb_window_part_left"></div>
<div class="gb_window_part_right"></div>
<xsl:choose>
- <xsl:when test="edit">
- <div class="gb_window_part_center">Edit Scan Config Family Details</div>
- </xsl:when>
- <xsl:otherwise>
- <div class="gb_window_part_center">Scan Config Family Details</div>
- </xsl:otherwise>
+ <xsl:when test="edit">
+ <div class="gb_window_part_center">Edit Scan Config Family Details</div>
+ </xsl:when>
+ <xsl:otherwise>
+ <div class="gb_window_part_center">Scan Config Family Details</div>
+ </xsl:otherwise>
</xsl:choose>
<div class="gb_window_part_content">
<div style="float:right;">
- <xsl:choose>
- <xsl:when test="edit">
- <a href="?cmd=edit_config&name={config/name}">
- Back to Config Details
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="?cmd=get_config&name={config/name}">
- Back to Config Details
- </a>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="edit">
+ <a href="?cmd=edit_config&name={config/name}">
+ Back to Config Details
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="?cmd=get_config&name={config/name}">
+ Back to Config Details
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
</div>
<br/>
- <xsl:variable name="config" select="config/name"/>
- <xsl:variable name="family" select="config/family"/>
+ <xsl:variable name="config" select="config/name"/>
+ <xsl:variable name="family" select="config/family"/>
<table>
<tr><td>Config:</td><td><xsl:value-of select="$config"/></td></tr>
<tr><td>Family:</td><td><xsl:value-of select="$family"/></td></tr>
</table>
- <xsl:choose>
- <xsl:when test="edit">
- <h1>Edit Network Vulnerability Tests</h1>
- </xsl:when>
- <xsl:otherwise>
- <h1>Network Vulnerability Tests</h1>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="edit">
+ <h1>Edit Network Vulnerability Tests</h1>
+ </xsl:when>
+ <xsl:otherwise>
+ <h1>Network Vulnerability Tests</h1>
+ </xsl:otherwise>
+ </xsl:choose>
- <table class="gbntable" cellspacing="2" cellpadding="4">
- <tr class="gbntablehead2">
- <td>Name</td>
- <td>OID</td>
- <td>Preferences</td>
- <xsl:if test="edit">
- <td>Selected</td>
- </xsl:if>
- <td>Action</td>
- </tr>
- <xsl:choose>
- <xsl:when test="edit">
- <form action="" method="post" enctype="multipart/form-data">
- <input type="hidden" name="cmd" value="save_config_family"/>
- <input type="hidden" name="name" value="{$config}"/>
- <input type="hidden" name="family" value="{$family}"/>
- <xsl:for-each select="all/get_nvt_details_response/nvt" >
- <xsl:variable name="current_name" select="name/text()"/>
- <xsl:variable name="class">
- <xsl:choose>
- <xsl:when test="position() mod 2 = 0">even</xsl:when>
- <xsl:otherwise>odd</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <tr class="{$class}">
- <td><xsl:value-of select="$current_name"/></td>
- <td>
- <xsl:value-of select="@oid"/>
- </td>
- <td style="text-align:center;">
- <xsl:choose>
- <xsl:when test="preference_count>0">
- <xsl:value-of select="preference_count"/>
- </xsl:when>
- <xsl:otherwise>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td style="text-align:center;">
- <xsl:variable name="id" select="@oid"/>
- <xsl:choose>
- <xsl:when test="../../../get_nvt_details_response/nvt[@oid=$id]">
- <input type="checkbox" name="nvt:{@oid}" value="1"
- checked="1"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="checkbox" name="nvt:{@oid}" value="1"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <a href="/omp?cmd=get_config_nvt&oid={@oid}&name={$config}&family={$family}"
- title="NVT Details" style="margin-left:3px;">
- <img src="/img/details.png" border="0" alt="Details"/>
- </a>
- <xsl:choose>
- <xsl:when test="preference_count>0">
- <a href="/omp?cmd=edit_config_nvt&oid={@oid}&name={$config}&family={$family}"
- title="Select and Edit NVT Details"
- style="margin-left:3px;">
- <img src="/img/edit.png" border="0" alt="Details"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <img src="/img/edit_inactive.png"
- border="0"
- alt="Details"
- style="margin-left:3px;"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- </xsl:for-each>
- <tr>
- <td>
- Total:
- <xsl:value-of select="count(all/get_nvt_details_response/nvt)"/>
- </td>
- <td></td>
- <td></td>
- <td>
- Total:
- <xsl:value-of select="count(get_nvt_details_response/nvt)"/>
- </td>
- <td></td>
- </tr>
- <tr>
- <td colspan="5" style="text-align:right;">
- <input type="submit"
- name="submit"
- value="Save Config"
- title="Save Config"/>
- </td>
- </tr>
- </form>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="get_nvt_details_response/nvt" >
- <xsl:variable name="current_name" select="name/text()"/>
- <xsl:variable name="class">
- <xsl:choose>
- <xsl:when test="position() mod 2 = 0">even</xsl:when>
- <xsl:otherwise>odd</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <tr class="{$class}">
- <td><xsl:value-of select="$current_name"/></td>
- <td>
- <xsl:value-of select="@oid"/>
- </td>
- <td style="text-align:center;">
- <xsl:choose>
- <xsl:when test="preference_count>0">
- <xsl:value-of select="preference_count"/>
- </xsl:when>
- <xsl:otherwise>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <a href="/omp?cmd=get_config_nvt&oid={@oid}&name={$config}&family={$family}"
- title="NVT Details" style="margin-left:3px;">
- <img src="/img/details.png" border="0" alt="Details"/>
- </a>
- </td>
- </tr>
- </xsl:for-each>
- <tr>
- <td>
- Total:
- <xsl:value-of select="count(all/get_nvt_details_response/nvt)"/>
- </td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- <xsl:if test="edit">
- <tr>
- <td colspan="5" style="text-align:right;">
- <input type="submit"
- name="submit"
- value="Save Config"
- title="Save Config"/>
- </td>
- </tr>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </table>
+ <table class="gbntable" cellspacing="2" cellpadding="4">
+ <tr class="gbntablehead2">
+ <td>Name</td>
+ <td>OID</td>
+ <td>Preferences</td>
+ <xsl:if test="edit">
+ <td>Selected</td>
+ </xsl:if>
+ <td>Action</td>
+ </tr>
+ <xsl:choose>
+ <xsl:when test="edit">
+ <form action="" method="post" enctype="multipart/form-data">
+ <input type="hidden" name="cmd" value="save_config_family"/>
+ <input type="hidden" name="name" value="{$config}"/>
+ <input type="hidden" name="family" value="{$family}"/>
+ <xsl:for-each select="all/get_nvt_details_response/nvt" >
+ <xsl:variable name="current_name" select="name/text()"/>
+ <xsl:variable name="class">
+ <xsl:choose>
+ <xsl:when test="position() mod 2 = 0">even</xsl:when>
+ <xsl:otherwise>odd</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <tr class="{$class}">
+ <td><xsl:value-of select="$current_name"/></td>
+ <td>
+ <xsl:value-of select="@oid"/>
+ </td>
+ <td style="text-align:center;">
+ <xsl:choose>
+ <xsl:when test="preference_count>0">
+ <xsl:value-of select="preference_count"/>
+ </xsl:when>
+ <xsl:otherwise>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td style="text-align:center;">
+ <xsl:variable name="id" select="@oid"/>
+ <xsl:choose>
+ <xsl:when test="../../../get_nvt_details_response/nvt[@oid=$id]">
+ <input type="checkbox" name="nvt:{@oid}" value="1"
+ checked="1"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="checkbox" name="nvt:{@oid}" value="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <a href="/omp?cmd=get_config_nvt&oid={@oid}&name={$config}&family={$family}"
+ title="NVT Details" style="margin-left:3px;">
+ <img src="/img/details.png" border="0" alt="Details"/>
+ </a>
+ <xsl:choose>
+ <xsl:when test="preference_count>0">
+ <a href="/omp?cmd=edit_config_nvt&oid={@oid}&name={$config}&family={$family}"
+ title="Select and Edit NVT Details"
+ style="margin-left:3px;">
+ <img src="/img/edit.png" border="0" alt="Details"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <img src="/img/edit_inactive.png"
+ border="0"
+ alt="Details"
+ style="margin-left:3px;"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:for-each>
+ <tr>
+ <td>
+ Total:
+ <xsl:value-of select="count(all/get_nvt_details_response/nvt)"/>
+ </td>
+ <td></td>
+ <td></td>
+ <td>
+ Total:
+ <xsl:value-of select="count(get_nvt_details_response/nvt)"/>
+ </td>
+ <td></td>
+ </tr>
+ <tr>
+ <td colspan="5" style="text-align:right;">
+ <input type="submit"
+ name="submit"
+ value="Save Config"
+ title="Save Config"/>
+ </td>
+ </tr>
+ </form>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="get_nvt_details_response/nvt" >
+ <xsl:variable name="current_name" select="name/text()"/>
+ <xsl:variable name="class">
+ <xsl:choose>
+ <xsl:when test="position() mod 2 = 0">even</xsl:when>
+ <xsl:otherwise>odd</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <tr class="{$class}">
+ <td><xsl:value-of select="$current_name"/></td>
+ <td>
+ <xsl:value-of select="@oid"/>
+ </td>
+ <td style="text-align:center;">
+ <xsl:choose>
+ <xsl:when test="preference_count>0">
+ <xsl:value-of select="preference_count"/>
+ </xsl:when>
+ <xsl:otherwise>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <a href="/omp?cmd=get_config_nvt&oid={@oid}&name={$config}&family={$family}"
+ title="NVT Details" style="margin-left:3px;">
+ <img src="/img/details.png" border="0" alt="Details"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:for-each>
+ <tr>
+ <td>
+ Total:
+ <xsl:value-of select="count(all/get_nvt_details_response/nvt)"/>
+ </td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+ <xsl:if test="edit">
+ <tr>
+ <td colspan="5" style="text-align:right;">
+ <input type="submit"
+ name="submit"
+ value="Save Config"
+ title="Save Config"/>
+ </td>
+ </tr>
+ </xsl:if>
+ </xsl:otherwise>
+ </xsl:choose>
+ </table>
</div>
</xsl:template>
@@ -1734,43 +1734,43 @@
<xsl:param name="config"></xsl:param>
<xsl:param name="edit"></xsl:param>
<xsl:variable name="class">
- <xsl:choose>
- <xsl:when test="position() mod 2 = 0">even</xsl:when>
- <xsl:otherwise>odd</xsl:otherwise>
- </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="position() mod 2 = 0">even</xsl:when>
+ <xsl:otherwise>odd</xsl:otherwise>
+ </xsl:choose>
</xsl:variable>
<tr class="{$class}">
- <td><xsl:value-of select="nvt/name"/></td>
- <td><xsl:value-of select="name"/></td>
- <td><xsl:value-of select="value"/></td>
- <td>
- <xsl:if test="string-length($config) > 0">
- <a href="/omp?cmd=get_config_nvt&oid={nvt/@oid}&name={$config}&family={nvt/family}"
- title="Scan Config NVT Details" style="margin-left:3px;">
- <img src="/img/details.png" border="0" alt="Details"/>
- </a>
- </xsl:if>
- <xsl:if test="string-length($edit) > 0">
- <a href="/omp?cmd=edit_config_nvt&oid={nvt/@oid}&name={$config}&family={nvt/family}"
- title="Edit Scan Config NVT Details" style="margin-left:3px;">
- <img src="/img/edit.png" border="0" alt="Edit"/>
- </a>
- </xsl:if>
- </td>
+ <td><xsl:value-of select="nvt/name"/></td>
+ <td><xsl:value-of select="name"/></td>
+ <td><xsl:value-of select="value"/></td>
+ <td>
+ <xsl:if test="string-length($config) > 0">
+ <a href="/omp?cmd=get_config_nvt&oid={nvt/@oid}&name={$config}&family={nvt/family}"
+ title="Scan Config NVT Details" style="margin-left:3px;">
+ <img src="/img/details.png" border="0" alt="Details"/>
+ </a>
+ </xsl:if>
+ <xsl:if test="string-length($edit) > 0">
+ <a href="/omp?cmd=edit_config_nvt&oid={nvt/@oid}&name={$config}&family={nvt/family}"
+ title="Edit Scan Config NVT Details" style="margin-left:3px;">
+ <img src="/img/edit.png" border="0" alt="Edit"/>
+ </a>
+ </xsl:if>
+ </td>
</tr>
</xsl:template>
<xsl:template match="preference" mode="details">
<xsl:variable name="class">
- <xsl:choose>
- <xsl:when test="position() mod 2 = 0">even</xsl:when>
- <xsl:otherwise>odd</xsl:otherwise>
- </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="position() mod 2 = 0">even</xsl:when>
+ <xsl:otherwise>odd</xsl:otherwise>
+ </xsl:choose>
</xsl:variable>
<tr class="{$class}">
- <td><xsl:value-of select="name"/></td>
- <td><xsl:value-of select="value"/></td>
- <td></td>
+ <td><xsl:value-of select="name"/></td>
+ <td><xsl:value-of select="value"/></td>
+ <td></td>
</tr>
</xsl:template>
@@ -1781,86 +1781,86 @@
<xsl:param name="family"></xsl:param>
<xsl:param name="nvt"></xsl:param>
<xsl:variable name="class">
- <xsl:choose>
- <xsl:when test="position() mod 2 = 0">even</xsl:when>
- <xsl:otherwise>odd</xsl:otherwise>
- </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="position() mod 2 = 0">even</xsl:when>
+ <xsl:otherwise>odd</xsl:otherwise>
+ </xsl:choose>
</xsl:variable>
<tr class="{$class}">
- <xsl:if test="$config">
- <td><xsl:value-of select="nvt/name"/></td>
- </xsl:if>
- <td><xsl:value-of select="name"/></td>
- <td>
- <!-- TODO: Is name enough to make the preference unique, or is
- type required too? -->
- <xsl:choose>
- <xsl:when test="type='checkbox'">
- <xsl:choose>
- <xsl:when test="value='yes'">
- <input type="radio" name="preference:{nvt/name}[checkbox]:{name}"
- value="yes" checked="1"/>
- yes
- <input type="radio" name="preference:{nvt/name}[checkbox]:{name}"
- value="no"/>
- no
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="preference:{nvt/name}[checkbox]:{name}"
- value="yes"/>
- yes
- <input type="radio" name="preference:{nvt/name}[checkbox]:{name}"
- value="no" checked="1"/>
- no
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="type='password'">
- <input type="password" name="preference:{nvt/name}[password]:{name}"
- value="{value}"/>
- <input type="checkbox" name="password:{nvt/name}[password]:{name}"
- value="yes"/>
- Replace old value
- </xsl:when>
- <xsl:when test="type='file'">
- <input type="file" name="preference:{nvt/name}[file]:{name}"/>
- </xsl:when>
- <xsl:when test="type='entry'">
- <input type="text" name="preference:{nvt/name}[entry]:{name}"
- value="{value}"/>
- </xsl:when>
- <xsl:when test="type='radio'">
- <input type="radio" name="preference:{nvt/name}[radio]:{name}"
- value="{value}" checked="1"/>
- <xsl:value-of select="value"/>
- <xsl:for-each select="alt">
- <br/>
- <input type="radio"
- name="preference:{../nvt/name}[radio]:{../name}"
- value="{text()}"/>
- <xsl:value-of select="."/>
- </xsl:for-each>
- </xsl:when>
- <xsl:when test="type=''">
- <input type="text"
- name="preference:scanner[scanner]:{name}"
- value="{value}"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="text"
- name="preference:{nvt/name}[{type}]:{name}"
- value="{value}"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:if test="$config">
- <a href="/omp?cmd=edit_config_nvt&oid={nvt/@oid}&name={$config}&family={$family}"
- title="Edit NVT Details" style="margin-left:3px;">
- <img src="/img/edit.png" border="0" alt="Details"/>
- </a>
- </xsl:if>
- </td>
+ <xsl:if test="$config">
+ <td><xsl:value-of select="nvt/name"/></td>
+ </xsl:if>
+ <td><xsl:value-of select="name"/></td>
+ <td>
+ <!-- TODO: Is name enough to make the preference unique, or is
+ type required too? -->
+ <xsl:choose>
+ <xsl:when test="type='checkbox'">
+ <xsl:choose>
+ <xsl:when test="value='yes'">
+ <input type="radio" name="preference:{nvt/name}[checkbox]:{name}"
+ value="yes" checked="1"/>
+ yes
+ <input type="radio" name="preference:{nvt/name}[checkbox]:{name}"
+ value="no"/>
+ no
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="radio" name="preference:{nvt/name}[checkbox]:{name}"
+ value="yes"/>
+ yes
+ <input type="radio" name="preference:{nvt/name}[checkbox]:{name}"
+ value="no" checked="1"/>
+ no
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="type='password'">
+ <input type="password" name="preference:{nvt/name}[password]:{name}"
+ value="{value}"/>
+ <input type="checkbox" name="password:{nvt/name}[password]:{name}"
+ value="yes"/>
+ Replace old value
+ </xsl:when>
+ <xsl:when test="type='file'">
+ <input type="file" name="preference:{nvt/name}[file]:{name}"/>
+ </xsl:when>
+ <xsl:when test="type='entry'">
+ <input type="text" name="preference:{nvt/name}[entry]:{name}"
+ value="{value}"/>
+ </xsl:when>
+ <xsl:when test="type='radio'">
+ <input type="radio" name="preference:{nvt/name}[radio]:{name}"
+ value="{value}" checked="1"/>
+ <xsl:value-of select="value"/>
+ <xsl:for-each select="alt">
+ <br/>
+ <input type="radio"
+ name="preference:{../nvt/name}[radio]:{../name}"
+ value="{text()}"/>
+ <xsl:value-of select="."/>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:when test="type=''">
+ <input type="text"
+ name="preference:scanner[scanner]:{name}"
+ value="{value}"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="text"
+ name="preference:{nvt/name}[{type}]:{name}"
+ value="{value}"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:if test="$config">
+ <a href="/omp?cmd=edit_config_nvt&oid={nvt/@oid}&name={$config}&family={$family}"
+ title="Edit NVT Details" style="margin-left:3px;">
+ <img src="/img/edit.png" border="0" alt="Details"/>
+ </a>
+ </xsl:if>
+ </td>
</tr>
</xsl:template>
@@ -1868,94 +1868,94 @@
<xsl:param name="config"></xsl:param>
<xsl:param name="edit"></xsl:param>
<div id="preferences">
- <table class="gbntable" cellspacing="2" cellpadding="4">
- <tr class="gbntablehead2">
- <td>NVT</td>
- <td>Name</td>
- <td>Value</td>
- <td>Actions</td>
- </tr>
- <xsl:for-each select="preference[string-length(./nvt)>0]">
- <xsl:call-template name="preference">
- <xsl:with-param name="config" select="$config"/>
- <xsl:with-param name="edit" select="$edit"/>
- </xsl:call-template>
- </xsl:for-each>
- </table>
+ <table class="gbntable" cellspacing="2" cellpadding="4">
+ <tr class="gbntablehead2">
+ <td>NVT</td>
+ <td>Name</td>
+ <td>Value</td>
+ <td>Actions</td>
+ </tr>
+ <xsl:for-each select="preference[string-length(./nvt)>0]">
+ <xsl:call-template name="preference">
+ <xsl:with-param name="config" select="$config"/>
+ <xsl:with-param name="edit" select="$edit"/>
+ </xsl:call-template>
+ </xsl:for-each>
+ </table>
</div>
</xsl:template>
<xsl:template match="preferences" mode="details">
<div id="preferences">
- <table class="gbntable" cellspacing="2" cellpadding="4">
- <tr class="gbntablehead2">
- <td>Name</td>
- <td>Value</td>
- <td>Actions</td>
- </tr>
- <xsl:apply-templates select="preference" mode="details"/>
- </table>
+ <table class="gbntable" cellspacing="2" cellpadding="4">
+ <tr class="gbntablehead2">
+ <td>Name</td>
+ <td>Value</td>
+ <td>Actions</td>
+ </tr>
+ <xsl:apply-templates select="preference" mode="details"/>
+ </table>
</div>
</xsl:template>
<xsl:template match="preferences" mode="edit-details">
<div id="preferences">
- <table class="gbntable" cellspacing="2" cellpadding="4">
- <tr class="gbntablehead2">
- <td>Name</td>
- <td>Value</td>
- <td>Actions</td>
- </tr>
- <xsl:apply-templates
- select="preference"
- mode="edit-details"/>
- <tr>
- <td colspan="3" style="text-align:right;">
- <input type="submit"
- name="submit"
- value="Save Config"
- title="Save Config"/>
- </td>
- </tr>
- </table>
+ <table class="gbntable" cellspacing="2" cellpadding="4">
+ <tr class="gbntablehead2">
+ <td>Name</td>
+ <td>Value</td>
+ <td>Actions</td>
+ </tr>
+ <xsl:apply-templates
+ select="preference"
+ mode="edit-details"/>
+ <tr>
+ <td colspan="3" style="text-align:right;">
+ <input type="submit"
+ name="submit"
+ value="Save Config"
+ title="Save Config"/>
+ </td>
+ </tr>
+ </table>
</div>
</xsl:template>
<xsl:template match="preferences" mode="scanner">
<div id="preferences">
- <table class="gbntable" cellspacing="2" cellpadding="4">
- <tr class="gbntablehead2">
- <td>Name</td>
- <td>Value</td>
- <td>Actions</td>
- </tr>
- <xsl:apply-templates
- select="preference[string-length(nvt)=0]"
- mode="details"/>
- </table>
+ <table class="gbntable" cellspacing="2" cellpadding="4">
+ <tr class="gbntablehead2">
+ <td>Name</td>
+ <td>Value</td>
+ <td>Actions</td>
+ </tr>
+ <xsl:apply-templates
+ select="preference[string-length(nvt)=0]"
+ mode="details"/>
+ </table>
</div>
</xsl:template>
<xsl:template match="preferences" mode="edit-scanner-details">
<div id="preferences">
- <table class="gbntable" cellspacing="2" cellpadding="4">
- <tr class="gbntablehead2">
- <td>Name</td>
- <td>Value</td>
- <td>Actions</td>
- </tr>
- <xsl:apply-templates
- select="preference[string-length(nvt)=0]"
- mode="edit-details"/>
- <tr>
- <td colspan="3" style="text-align:right;">
- <input type="submit"
- name="submit"
- value="Save Config"
- title="Save Config"/>
- </td>
- </tr>
- </table>
+ <table class="gbntable" cellspacing="2" cellpadding="4">
+ <tr class="gbntablehead2">
+ <td>Name</td>
+ <td>Value</td>
+ <td>Actions</td>
+ </tr>
+ <xsl:apply-templates
+ select="preference[string-length(nvt)=0]"
+ mode="edit-details"/>
+ <tr>
+ <td colspan="3" style="text-align:right;">
+ <input type="submit"
+ name="submit"
+ value="Save Config"
+ title="Save Config"/>
+ </td>
+ </tr>
+ </table>
</div>
</xsl:template>
@@ -1965,30 +1965,30 @@
<div class="gb_window_part_left"></div>
<div class="gb_window_part_right"></div>
<xsl:choose>
- <xsl:when test="edit">
- <div class="gb_window_part_center">Edit Scan Config NVT Details</div>
- </xsl:when>
- <xsl:otherwise>
- <div class="gb_window_part_center">Scan Config NVT Details</div>
- </xsl:otherwise>
+ <xsl:when test="edit">
+ <div class="gb_window_part_center">Edit Scan Config NVT Details</div>
+ </xsl:when>
+ <xsl:otherwise>
+ <div class="gb_window_part_center">Scan Config NVT Details</div>
+ </xsl:otherwise>
</xsl:choose>
<div class="gb_window_part_content">
- <xsl:variable name="family">
- <xsl:value-of select="get_nvt_details_response/nvt/family"/>
- </xsl:variable>
+ <xsl:variable name="family">
+ <xsl:value-of select="get_nvt_details_response/nvt/family"/>
+ </xsl:variable>
<div style="float:right;">
- <xsl:choose>
- <xsl:when test="edit">
- <a href="?cmd=edit_config_family&name={config/name}&family={$family}">
- Back to Config Family Details
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="?cmd=get_config_family&name={config/name}&family={$family}">
- Back to Config Family Details
- </a>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="edit">
+ <a href="?cmd=edit_config_family&name={config/name}&family={$family}">
+ Back to Config Family Details
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="?cmd=get_config_family&name={config/name}&family={$family}">
+ Back to Config Family Details
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
</div>
<br/>
@@ -1997,46 +1997,46 @@
<tr><td>Family:</td><td><xsl:value-of select="$family"/></td></tr>
</table>
- <xsl:choose>
- <xsl:when test="edit">
- <h1>Edit Network Vulnerability Test</h1>
- </xsl:when>
- <xsl:otherwise>
- <h1>Network Vulnerability Test</h1>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="edit">
+ <h1>Edit Network Vulnerability Test</h1>
+ </xsl:when>
+ <xsl:otherwise>
+ <h1>Network Vulnerability Test</h1>
+ </xsl:otherwise>
+ </xsl:choose>
<h2>Details</h2>
<xsl:apply-templates select="get_nvt_details_response/nvt"/>
- <xsl:choose>
- <xsl:when test="count(get_nvt_details_response/preferences/preference) = 0">
- <h2>Preferences: None</h2>
- </xsl:when>
- <xsl:otherwise>
- <h2>Preferences</h2>
- <xsl:choose>
- <xsl:when test="edit">
- <form action="" method="post" enctype="multipart/form-data">
- <input type="hidden" name="cmd" value="save_config_nvt"/>
- <input type="hidden" name="name" value="{config/name}"/>
- <input type="hidden" name="family" value="{$family}"/>
- <input type="hidden"
- name="oid"
- value="{get_nvt_details_response/nvt/@oid}"/>
- <xsl:apply-templates
- select="get_nvt_details_response/preferences"
- mode="edit-details"/>
- </form>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates
- select="get_nvt_details_response/preferences"
- mode="details"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="count(get_nvt_details_response/preferences/preference) = 0">
+ <h2>Preferences: None</h2>
+ </xsl:when>
+ <xsl:otherwise>
+ <h2>Preferences</h2>
+ <xsl:choose>
+ <xsl:when test="edit">
+ <form action="" method="post" enctype="multipart/form-data">
+ <input type="hidden" name="cmd" value="save_config_nvt"/>
+ <input type="hidden" name="name" value="{config/name}"/>
+ <input type="hidden" name="family" value="{$family}"/>
+ <input type="hidden"
+ name="oid"
+ value="{get_nvt_details_response/nvt/@oid}"/>
+ <xsl:apply-templates
+ select="get_nvt_details_response/preferences"
+ mode="edit-details"/>
+ </form>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates
+ select="get_nvt_details_response/preferences"
+ mode="details"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
</div>
</xsl:template>
@@ -2047,231 +2047,231 @@
<xsl:param name="config-family"></xsl:param>
<xsl:variable name="current_name" select="name/text()"/>
<xsl:choose>
- <xsl:when test="name=''">
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="class">
- <xsl:choose>
- <xsl:when test="position() mod 2 = 0">even</xsl:when>
- <xsl:otherwise>odd</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <tr class="{$class}">
- <td><xsl:value-of select="$current_name"/></td>
- <td>
- <xsl:choose>
- <xsl:when test="$config-family">
- <xsl:choose>
- <xsl:when test="$config-family/nvt_count='-1'">
- N
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$config-family/nvt_count"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- 0
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="max_nvt_count='-1'">
- </xsl:when>
- <xsl:otherwise>
- of <xsl:value-of select="max_nvt_count"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td style="text-align:center;">
- <xsl:choose>
- <xsl:when test="$config-family">
- <xsl:choose>
- <xsl:when test="$config-family/growing=1">
- <input type="radio" name="trend:{$current_name}" value="1"
- checked="1"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="trend:{$current_name}" value="1"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="trend:{$current_name}" value="1"/>
- </xsl:otherwise>
- </xsl:choose>
- <img src="/img/trend_more.png"
- alt="Grows"
- title="The NVT selection is DYNAMIC. New NVT's will automatically be added and considered."/>
- <xsl:choose>
- <xsl:when test="$config-family">
- <xsl:choose>
- <xsl:when test="$config-family/growing=0">
- <input type="radio" name="trend:{$current_name}" value="0"
- checked="1"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="trend:{$current_name}" value="0"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="trend:{$current_name}" value="0"
- checked="1"/>
- </xsl:otherwise>
- </xsl:choose>
- <img src="/img/trend_nochange.png"
- alt="Static"
- title="The NVT selection is STATIC. New NVT's will NOT automatically be added or considered."/>
- </td>
- <td style="text-align:center;">
- <xsl:choose>
- <xsl:when test="$config-family and ($config-family/nvt_count = max_nvt_count)">
- <input type="checkbox" name="select:{$current_name}"
- value="1" checked="1"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="checkbox" name="select:{$current_name}"
- value="0"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
+ <xsl:when test="name=''">
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="class">
+ <xsl:choose>
+ <xsl:when test="position() mod 2 = 0">even</xsl:when>
+ <xsl:otherwise>odd</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <tr class="{$class}">
+ <td><xsl:value-of select="$current_name"/></td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="$config-family">
+ <xsl:choose>
+ <xsl:when test="$config-family/nvt_count='-1'">
+ N
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$config-family/nvt_count"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ 0
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="max_nvt_count='-1'">
+ </xsl:when>
+ <xsl:otherwise>
+ of <xsl:value-of select="max_nvt_count"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td style="text-align:center;">
+ <xsl:choose>
+ <xsl:when test="$config-family">
+ <xsl:choose>
+ <xsl:when test="$config-family/growing=1">
+ <input type="radio" name="trend:{$current_name}" value="1"
+ checked="1"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="radio" name="trend:{$current_name}" value="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="radio" name="trend:{$current_name}" value="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <img src="/img/trend_more.png"
+ alt="Grows"
+ title="The NVT selection is DYNAMIC. New NVT's will automatically be added and considered."/>
+ <xsl:choose>
+ <xsl:when test="$config-family">
+ <xsl:choose>
+ <xsl:when test="$config-family/growing=0">
+ <input type="radio" name="trend:{$current_name}" value="0"
+ checked="1"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="radio" name="trend:{$current_name}" value="0"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="radio" name="trend:{$current_name}" value="0"
+ checked="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <img src="/img/trend_nochange.png"
+ alt="Static"
+ title="The NVT selection is STATIC. New NVT's will NOT automatically be added or considered."/>
+ </td>
+ <td style="text-align:center;">
+ <xsl:choose>
+ <xsl:when test="$config-family and ($config-family/nvt_count = max_nvt_count)">
+ <input type="checkbox" name="select:{$current_name}"
+ value="1" checked="1"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="checkbox" name="select:{$current_name}"
+ value="0"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
<!-- TODO: Need to send $current_name and next page (get_config_family) somehow.
- <input type="image"
- name="submit"
- value="{$current_name}"
- title="Save Config and View Family Details"
- src="/img/details.png"
- border="0"
- style="margin-left:3px;"
- alt="Edit"/>
+ <input type="image"
+ name="submit"
+ value="{$current_name}"
+ title="Save Config and View Family Details"
+ src="/img/details.png"
+ border="0"
+ style="margin-left:3px;"
+ alt="Edit"/>
-->
- <input type="image"
- name="submit"
- value="{$current_name}"
- title="Save Config and Edit Family Details"
- src="/img/edit.png"
- border="0"
- style="margin-left:3px;"
- alt="Edit"/>
- </td>
- </tr>
- </xsl:otherwise>
+ <input type="image"
+ name="submit"
+ value="{$current_name}"
+ title="Save Config and Edit Family Details"
+ src="/img/edit.png"
+ border="0"
+ style="margin-left:3px;"
+ alt="Edit"/>
+ </td>
+ </tr>
+ </xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="family">
<xsl:variable name="current_name" select="name/text()"/>
<xsl:choose>
- <xsl:when test="name=''">
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="class">
- <xsl:choose>
- <xsl:when test="position() mod 2 = 0">even</xsl:when>
- <xsl:otherwise>odd</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <tr class="{$class}">
- <td><xsl:value-of select="$current_name"/></td>
- <td>
- <xsl:choose>
- <xsl:when test="nvt_count='-1'">
- N
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="nvt_count"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="max_nvt_count='-1'">
- </xsl:when>
- <xsl:otherwise>
- of <xsl:value-of select="max_nvt_count"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="growing='1'">
- <img src="/img/trend_more.png"
- alt="Grows"
- title="The NVT selection is DYNAMIC. New NVT's will automatically be added and considered."/>
- </xsl:when>
- <xsl:when test="growing='0'">
- <img src="/img/trend_nochange.png"
- alt="Static"
- title="The NVT selection is STATIC. New NVT's will NOT automatically be added or considered."/>
- </xsl:when>
- <xsl:otherwise>
- N/A
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <a href="/omp?cmd=get_config_family&name={../../name}&family={$current_name}"
- title="Scan Config Family Details" style="margin-left:3px;">
- <img src="/img/details.png" border="0" alt="Details"/>
- </a>
- </td>
- </tr>
- </xsl:otherwise>
+ <xsl:when test="name=''">
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="class">
+ <xsl:choose>
+ <xsl:when test="position() mod 2 = 0">even</xsl:when>
+ <xsl:otherwise>odd</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <tr class="{$class}">
+ <td><xsl:value-of select="$current_name"/></td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="nvt_count='-1'">
+ N
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="nvt_count"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="max_nvt_count='-1'">
+ </xsl:when>
+ <xsl:otherwise>
+ of <xsl:value-of select="max_nvt_count"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="growing='1'">
+ <img src="/img/trend_more.png"
+ alt="Grows"
+ title="The NVT selection is DYNAMIC. New NVT's will automatically be added and considered."/>
+ </xsl:when>
+ <xsl:when test="growing='0'">
+ <img src="/img/trend_nochange.png"
+ alt="Static"
+ title="The NVT selection is STATIC. New NVT's will NOT automatically be added or considered."/>
+ </xsl:when>
+ <xsl:otherwise>
+ N/A
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <a href="/omp?cmd=get_config_family&name={../../name}&family={$current_name}"
+ title="Scan Config Family Details" style="margin-left:3px;">
+ <img src="/img/details.png" border="0" alt="Details"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="config" mode="families">
<div id="families">
- <table class="gbntable" cellspacing="2" cellpadding="4">
- <tr class="gbntablehead2">
- <td>
- Family
- <xsl:choose>
- <xsl:when test="family_count/growing='1'">
- <img src="/img/trend_more.png"
- alt="Grows"
- title="The family selection is DYNAMIC. New families will automatically be added and considered."/>
- </xsl:when>
- <xsl:when test="family_count/growing='0'">
- <img src="/img/trend_nochange.png"
- alt="Static"
- title="The family selection is STATIC. New families will NOT automatically be added or considered."/>
- </xsl:when>
- <xsl:otherwise>
- N/A
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>NVT's selected</td>
- <td>Trend</td>
- <td>Action</td>
- </tr>
- <xsl:apply-templates select="families/family"/>
- <tr>
- <td>Total: <xsl:value-of select="count(families/family)"/></td>
- <td>
- <xsl:value-of select="known_nvt_count/text()"/>
- of <xsl:value-of select="max_nvt_count/text()"/>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="nvt_count/growing='1'">
- <img src="/img/trend_more.png"
- alt="Grows"
- title="The NVT selection is DYNAMIC. New NVT's will automatically be added and considered."/>
- </xsl:when>
- <xsl:when test="nvt_count/growing='0'">
- <img src="/img/trend_nochange.png"
- alt="Static"
- title="The NVT selection is STATIC. New NVT's will NOT automatically be added or considered."/>
- </xsl:when>
- <xsl:otherwise>
- N/A
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td></td>
- </tr>
- </table>
+ <table class="gbntable" cellspacing="2" cellpadding="4">
+ <tr class="gbntablehead2">
+ <td>
+ Family
+ <xsl:choose>
+ <xsl:when test="family_count/growing='1'">
+ <img src="/img/trend_more.png"
+ alt="Grows"
+ title="The family selection is DYNAMIC. New families will automatically be added and considered."/>
+ </xsl:when>
+ <xsl:when test="family_count/growing='0'">
+ <img src="/img/trend_nochange.png"
+ alt="Static"
+ title="The family selection is STATIC. New families will NOT automatically be added or considered."/>
+ </xsl:when>
+ <xsl:otherwise>
+ N/A
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>NVT's selected</td>
+ <td>Trend</td>
+ <td>Action</td>
+ </tr>
+ <xsl:apply-templates select="families/family"/>
+ <tr>
+ <td>Total: <xsl:value-of select="count(families/family)"/></td>
+ <td>
+ <xsl:value-of select="known_nvt_count/text()"/>
+ of <xsl:value-of select="max_nvt_count/text()"/>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="nvt_count/growing='1'">
+ <img src="/img/trend_more.png"
+ alt="Grows"
+ title="The NVT selection is DYNAMIC. New NVT's will automatically be added and considered."/>
+ </xsl:when>
+ <xsl:when test="nvt_count/growing='0'">
+ <img src="/img/trend_nochange.png"
+ alt="Static"
+ title="The NVT selection is STATIC. New NVT's will NOT automatically be added or considered."/>
+ </xsl:when>
+ <xsl:otherwise>
+ N/A
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td></td>
+ </tr>
+ </table>
</div>
</xsl:template>
@@ -2279,86 +2279,86 @@
<xsl:param name="config"></xsl:param>
<xsl:param name="families"></xsl:param>
<div id="families">
- <table class="gbntable" cellspacing="2" cellpadding="4">
- <tr class="gbntablehead2">
- <td>
- Family
- <xsl:choose>
- <xsl:when test="$config/family_count/growing=1">
- <input type="radio" name="trend:" value="1" checked="1"/>
- <img src="/img/trend_more.png"
- alt="Grows"
- title="The family selection is DYNAMIC. New families will automatically be added and considered."/>
- <input type="radio" name="trend:" value="0"/>
- <img src="/img/trend_nochange.png"
- alt="Static"
- title="The family selection is STATIC. New families will NOT automatically be added or considered."/>
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="trend:" value="1"/>
- <img src="/img/trend_more.png"
- alt="Grows"
- title="The family selection is DYNAMIC. New families will automatically be added and considered."/>
- <input type="radio" name="trend:" value="0" checked="0"/>
- <img src="/img/trend_nochange.png"
- alt="Static"
- title="The family selection is STATIC. New families will NOT automatically be added or considered."/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>NVT's selected</td>
- <td>Trend</td>
- <td>Select all NVT's</td>
- <td>Action</td>
- </tr>
- <xsl:for-each select="$families/family">
- <xsl:variable name="family_name">
- <xsl:value-of select="name"/>
- </xsl:variable>
- <xsl:call-template name="edit-families-family">
- <xsl:with-param
- name="config-family"
- select="$config/families/family[name=$family_name]"/>
- <xsl:with-param name="config" select="$config"/>
- </xsl:call-template>
- </xsl:for-each>
- <tr>
- <td>
- Total: <xsl:value-of select="count($config/families/family)"/>
- </td>
- <td>
- <xsl:value-of select="$config/known_nvt_count/text()"/>
- of <xsl:value-of select="$config/max_nvt_count/text()"/>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="$config/nvt_count/growing='1'">
- <img src="/img/trend_more.png"
- alt="Grows"
- title="The NVT selection is DYNAMIC. New NVT's will automatically be added and considered."/>
- </xsl:when>
- <xsl:when test="$config/nvt_count/growing='0'">
- <img src="/img/trend_nochange.png"
- alt="Static"
- title="The NVT selection is STATIC. New NVT's will NOT automatically be added or considered."/>
- </xsl:when>
- <xsl:otherwise>
- N/A
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td colspan="5" style="text-align:right;">
- <input type="submit"
- name="submit"
- value="Save Config"
- title="Save Config"/>
- </td>
- </tr>
- </table>
+ <table class="gbntable" cellspacing="2" cellpadding="4">
+ <tr class="gbntablehead2">
+ <td>
+ Family
+ <xsl:choose>
+ <xsl:when test="$config/family_count/growing=1">
+ <input type="radio" name="trend:" value="1" checked="1"/>
+ <img src="/img/trend_more.png"
+ alt="Grows"
+ title="The family selection is DYNAMIC. New families will automatically be added and considered."/>
+ <input type="radio" name="trend:" value="0"/>
+ <img src="/img/trend_nochange.png"
+ alt="Static"
+ title="The family selection is STATIC. New families will NOT automatically be added or considered."/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="radio" name="trend:" value="1"/>
+ <img src="/img/trend_more.png"
+ alt="Grows"
+ title="The family selection is DYNAMIC. New families will automatically be added and considered."/>
+ <input type="radio" name="trend:" value="0" checked="0"/>
+ <img src="/img/trend_nochange.png"
+ alt="Static"
+ title="The family selection is STATIC. New families will NOT automatically be added or considered."/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>NVT's selected</td>
+ <td>Trend</td>
+ <td>Select all NVT's</td>
+ <td>Action</td>
+ </tr>
+ <xsl:for-each select="$families/family">
+ <xsl:variable name="family_name">
+ <xsl:value-of select="name"/>
+ </xsl:variable>
+ <xsl:call-template name="edit-families-family">
+ <xsl:with-param
+ name="config-family"
+ select="$config/families/family[name=$family_name]"/>
+ <xsl:with-param name="config" select="$config"/>
+ </xsl:call-template>
+ </xsl:for-each>
+ <tr>
+ <td>
+ Total: <xsl:value-of select="count($config/families/family)"/>
+ </td>
+ <td>
+ <xsl:value-of select="$config/known_nvt_count/text()"/>
+ of <xsl:value-of select="$config/max_nvt_count/text()"/>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="$config/nvt_count/growing='1'">
+ <img src="/img/trend_more.png"
+ alt="Grows"
+ title="The NVT selection is DYNAMIC. New NVT's will automatically be added and considered."/>
+ </xsl:when>
+ <xsl:when test="$config/nvt_count/growing='0'">
+ <img src="/img/trend_nochange.png"
+ alt="Static"
+ title="The NVT selection is STATIC. New NVT's will NOT automatically be added or considered."/>
+ </xsl:when>
+ <xsl:otherwise>
+ N/A
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td colspan="5" style="text-align:right;">
+ <input type="submit"
+ name="submit"
+ value="Save Config"
+ title="Save Config"/>
+ </td>
+ </tr>
+ </table>
</div>
</xsl:template>
@@ -2368,12 +2368,12 @@
<div class="gb_window_part_left"></div>
<div class="gb_window_part_right"></div>
<xsl:choose>
- <xsl:when test="edit">
- <div class="gb_window_part_center">Edit Scan Config Details</div>
- </xsl:when>
- <xsl:otherwise>
- <div class="gb_window_part_center">Scan Config Details</div>
- </xsl:otherwise>
+ <xsl:when test="edit">
+ <div class="gb_window_part_center">Edit Scan Config Details</div>
+ </xsl:when>
+ <xsl:otherwise>
+ <div class="gb_window_part_center">Scan Config Details</div>
+ </xsl:otherwise>
</xsl:choose>
<div class="gb_window_part_content">
<xsl:variable name="config" select="get_configs_response/config"/>
@@ -2383,77 +2383,77 @@
<br/>
<table>
- <tr>
- <td>Name:</td><td><xsl:value-of select="$config/name"/></td>
+ <tr>
+ <td>Name:</td><td><xsl:value-of select="$config/name"/></td>
</tr>
- <tr>
- <td>Comment:</td><td><xsl:value-of select="$config/comment"/></td>
+ <tr>
+ <td>Comment:</td><td><xsl:value-of select="$config/comment"/></td>
</tr>
</table>
- <xsl:choose>
- <xsl:when test="edit">
- <form action="" method="post">
- <input type="hidden" name="cmd" value="save_config"/>
- <input type="hidden" name="name" value="{$config/name}"/>
+ <xsl:choose>
+ <xsl:when test="edit">
+ <form action="" method="post">
+ <input type="hidden" name="cmd" value="save_config"/>
+ <input type="hidden" name="name" value="{$config/name}"/>
- <h1>Edit Network Vulnerability Test Families</h1>
+ <h1>Edit Network Vulnerability Test Families</h1>
- <xsl:call-template name="edit-families">
- <xsl:with-param name="config" select="$config"/>
- <xsl:with-param
- name="families"
- select="get_nvt_families_response/families"/>
- </xsl:call-template>
+ <xsl:call-template name="edit-families">
+ <xsl:with-param name="config" select="$config"/>
+ <xsl:with-param
+ name="families"
+ select="get_nvt_families_response/families"/>
+ </xsl:call-template>
- <xsl:choose>
- <xsl:when test="count($config/preferences/preference[string-length(nvt)=0]) = 0">
- <h1>Edit Scanner Preferences: None</h1>
- <h1>Network Vulnerability Test Preferences: None</h1>
- </xsl:when>
- <xsl:otherwise>
- <h1>Edit Scanner Preferences</h1>
+ <xsl:choose>
+ <xsl:when test="count($config/preferences/preference[string-length(nvt)=0]) = 0">
+ <h1>Edit Scanner Preferences: None</h1>
+ <h1>Network Vulnerability Test Preferences: None</h1>
+ </xsl:when>
+ <xsl:otherwise>
+ <h1>Edit Scanner Preferences</h1>
- <xsl:apply-templates
- select="$config/preferences"
- mode="edit-scanner-details"/>
+ <xsl:apply-templates
+ select="$config/preferences"
+ mode="edit-scanner-details"/>
- <h1>Network Vulnerability Test Preferences</h1>
- <xsl:for-each select="$config/preferences">
- <xsl:call-template name="preferences">
- <xsl:with-param name="config" select="$config/name"/>
- <xsl:with-param name="edit">yes</xsl:with-param>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
+ <h1>Network Vulnerability Test Preferences</h1>
+ <xsl:for-each select="$config/preferences">
+ <xsl:call-template name="preferences">
+ <xsl:with-param name="config" select="$config/name"/>
+ <xsl:with-param name="edit">yes</xsl:with-param>
+ </xsl:call-template>
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
- </form>
- </xsl:when>
- <xsl:otherwise>
- <h1>Network Vulnerability Test Families</h1>
+ </form>
+ </xsl:when>
+ <xsl:otherwise>
+ <h1>Network Vulnerability Test Families</h1>
- <xsl:apply-templates select="$config" mode="families"/>
+ <xsl:apply-templates select="$config" mode="families"/>
- <xsl:choose>
- <xsl:when test="count($config/preferences/preference[string-length(nvt)=0]) = 0">
- <h1>Scanner Preferences: None</h1>
- <h1>Network Vulnerability Test Preferences: None</h1>
- </xsl:when>
- <xsl:otherwise>
- <h1>Scanner Preferences</h1>
- <xsl:apply-templates select="$config/preferences" mode="scanner"/>
+ <xsl:choose>
+ <xsl:when test="count($config/preferences/preference[string-length(nvt)=0]) = 0">
+ <h1>Scanner Preferences: None</h1>
+ <h1>Network Vulnerability Test Preferences: None</h1>
+ </xsl:when>
+ <xsl:otherwise>
+ <h1>Scanner Preferences</h1>
+ <xsl:apply-templates select="$config/preferences" mode="scanner"/>
- <h1>Network Vulnerability Test Preferences</h1>
- <xsl:for-each select="$config/preferences">
- <xsl:call-template name="preferences">
- <xsl:with-param name="config" select="$config/name"/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
+ <h1>Network Vulnerability Test Preferences</h1>
+ <xsl:for-each select="$config/preferences">
+ <xsl:call-template name="preferences">
+ <xsl:with-param name="config" select="$config/name"/>
+ </xsl:call-template>
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
</div>
</xsl:template>
@@ -2463,7 +2463,7 @@
<div class="gb_window_part_right"></div>
<div class="gb_window_part_center">Scan Configs
<a href="/help/configure_scanconfigs.html#scanconfigs"
- title="Help: Configure Scan Configs (Scan Configs)">
+ title="Help: Configure Scan Configs (Scan Configs)">
<img src="/img/help.png"/>
</a>
</div>
@@ -2496,11 +2496,11 @@
<xsl:call-template name="command_result_dialog">
<xsl:with-param name="operation">Create Config</xsl:with-param>
<xsl:with-param name="status">
- <xsl:value-of select="@status"/>
- </xsl:with-param>
+ <xsl:value-of select="@status"/>
+ </xsl:with-param>
<xsl:with-param name="msg">
- <xsl:value-of select="@status_text"/>
- </xsl:with-param>
+ <xsl:value-of select="@status_text"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -2510,11 +2510,11 @@
<xsl:call-template name="command_result_dialog">
<xsl:with-param name="operation">Delete Config</xsl:with-param>
<xsl:with-param name="status">
- <xsl:value-of select="@status"/>
- </xsl:with-param>
+ <xsl:value-of select="@status"/>
+ </xsl:with-param>
<xsl:with-param name="msg">
- <xsl:value-of select="@status_text"/>
- </xsl:with-param>
+ <xsl:value-of select="@status_text"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -2553,12 +2553,12 @@
<xsl:when test="family_count/growing='1'">
<img src="/img/trend_more.png"
alt="Grows"
- title="The family selection is DYNAMIC. New families will automatically be added and considered."/>
+ title="The family selection is DYNAMIC. New families will automatically be added and considered."/>
</xsl:when>
<xsl:when test="family_count/growing='0'">
<img src="/img/trend_nochange.png"
alt="Static"
- title="The family selection is STATIC. New families will NOT automatically be added or considered."/>
+ title="The family selection is STATIC. New families will NOT automatically be added or considered."/>
</xsl:when>
<xsl:otherwise>
N/A
@@ -2580,12 +2580,12 @@
<xsl:when test="nvt_count/growing='1'">
<img src="/img/trend_more.png"
alt="Dynamic"
- title="The NVT selection is DYNAMIC. New NVTs of selected families will automatically be added and considered."/>
+ title="The NVT selection is DYNAMIC. New NVTs of selected families will automatically be added and considered."/>
</xsl:when>
<xsl:when test="nvt_count/growing='0'">
<img src="/img/trend_nochange.png"
alt="Static"
- title="The NVT selection is STATIC. New NVTs will NOT automatically be added or considered."/>
+ title="The NVT selection is STATIC. New NVTs will NOT automatically be added or considered."/>
</xsl:when>
<xsl:otherwise>
N/A
@@ -2596,31 +2596,31 @@
<xsl:choose>
<xsl:when test="in_use='0'">
<a href="/omp?cmd=delete_config&name={name}"
- title="Delete Scan Config" style="margin-left:3px;">
+ title="Delete Scan Config" style="margin-left:3px;">
<img src="/img/delete.png" border="0" alt="Delete"/>
</a>
</xsl:when>
<xsl:otherwise>
<img src="/img/delete_inactive.png" border="0" alt="Delete"
- style="margin-left:3px;"/>
+ style="margin-left:3px;"/>
</xsl:otherwise>
</xsl:choose>
- <a href="/omp?cmd=get_config&name={name}"
- title="Scan Config Details"
- style="margin-left:3px;">
- <img src="/img/details.png" border="0" alt="Details"/>
- </a>
+ <a href="/omp?cmd=get_config&name={name}"
+ title="Scan Config Details"
+ style="margin-left:3px;">
+ <img src="/img/details.png" border="0" alt="Details"/>
+ </a>
<xsl:choose>
<xsl:when test="in_use='0'">
<a href="/omp?cmd=edit_config&name={name}"
- title="Edit Scan Config"
- style="margin-left:3px;">
+ title="Edit Scan Config"
+ style="margin-left:3px;">
<img src="/img/edit.png" border="0" alt="Delete"/>
</a>
</xsl:when>
<xsl:otherwise>
<img src="/img/edit_inactive.png" border="0" alt="Edit"
- style="margin-left:3px;"/>
+ style="margin-left:3px;"/>
</xsl:otherwise>
</xsl:choose>
</td>
@@ -2658,46 +2658,46 @@
<xsl:template match="nvt">
<div id="nvtdetail">
- <table class="gbntable" cellspacing="2" cellpadding="4" border="0">
- <tr><td>Name:</td><td><xsl:value-of select="name"/></td></tr>
- <tr><td>Summary:</td><td><xsl:value-of select="summary"/></td></tr>
- <tr><td>Family:</td><td><xsl:value-of select="family"/></td></tr>
- <tr><td>OID:</td><td><xsl:value-of select="@oid"/></td></tr>
- <!-- "NOCVE" means no CVE ID, skip. -->
- <xsl:choose>
- <xsl:when test="cve_id = 'NOCVE'">
- </xsl:when>
- <xsl:otherwise>
- <tr><td>CVE:</td><td><xsl:value-of select="cve_id"/></td></tr>
- </xsl:otherwise>
- </xsl:choose>
- <!-- "NOBID" means no Bugtraq ID, skip. -->
- <xsl:choose>
- <xsl:when test="bugtraq_id = 'NOBID'">
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td>Bugtraq ID:</td><td><xsl:value-of select="bugtraq_id"/></td>
+ <table class="gbntable" cellspacing="2" cellpadding="4" border="0">
+ <tr><td>Name:</td><td><xsl:value-of select="name"/></td></tr>
+ <tr><td>Summary:</td><td><xsl:value-of select="summary"/></td></tr>
+ <tr><td>Family:</td><td><xsl:value-of select="family"/></td></tr>
+ <tr><td>OID:</td><td><xsl:value-of select="@oid"/></td></tr>
+ <!-- "NOCVE" means no CVE ID, skip. -->
+ <xsl:choose>
+ <xsl:when test="cve_id = 'NOCVE'">
+ </xsl:when>
+ <xsl:otherwise>
+ <tr><td>CVE:</td><td><xsl:value-of select="cve_id"/></td></tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ <!-- "NOBID" means no Bugtraq ID, skip. -->
+ <xsl:choose>
+ <xsl:when test="bugtraq_id = 'NOBID'">
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+ <td>Bugtraq ID:</td><td><xsl:value-of select="bugtraq_id"/></td>
</tr>
- </xsl:otherwise>
- </xsl:choose>
- <!-- "NOXREF" means no xrefs, skip. -->
- <xsl:choose>
- <xsl:when test="xrefs = 'NOXREF'">
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td>Other references:</td><td><xsl:value-of select="xrefs"/></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ <!-- "NOXREF" means no xrefs, skip. -->
+ <xsl:choose>
+ <xsl:when test="xrefs = 'NOXREF'">
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+ <td>Other references:</td><td><xsl:value-of select="xrefs"/></td>
</tr>
- </xsl:otherwise>
- </xsl:choose>
- <tr>
- <td colspan="2">
- <h3>Description</h3>
- <pre><xsl:value-of select="description"/></pre>
- </td>
- </tr>
- </table>
+ </xsl:otherwise>
+ </xsl:choose>
+ <tr>
+ <td colspan="2">
+ <h3>Description</h3>
+ <pre><xsl:value-of select="description"/></pre>
+ </td>
+ </tr>
+ </table>
</div>
</xsl:template>
@@ -2707,7 +2707,7 @@
<div class="gb_window_part_right"></div>
<div class="gb_window_part_center">NVT Details</div>
<div class="gb_window_part_content_no_pad">
- <xsl:apply-templates select="nvt"/>
+ <xsl:apply-templates select="nvt"/>
</div>
</div>
</xsl:template>
@@ -2747,11 +2747,11 @@
<div style="float:right"><xsl:value-of select="port"/></div>
<b><xsl:value-of select="threat"/></b>
<div>
- NVT OID:
- <a href="?cmd=get_nvt_details&oid={nvt}">
- <xsl:value-of select="nvt"/>
- </a>
- </div>
+ NVT OID:
+ <a href="?cmd=get_nvt_details&oid={nvt}">
+ <xsl:value-of select="nvt"/>
+ </a>
+ </div>
</div>
<div class="issue_box_box">
<pre><xsl:value-of select="description"/></pre>
@@ -2772,36 +2772,36 @@
<xsl:variable name="current_host" select="host/text()"/>
<tr>
<td>
- <a href="#{$current_host}"><xsl:value-of select="$current_host"/></a>
- </td>
+ <a href="#{$current_host}"><xsl:value-of select="$current_host"/></a>
+ </td>
<td>
- <xsl:value-of select="count(../results/result[host/text() = $current_host][threat/text() = 'High'])"/>
- </td>
+ <xsl:value-of select="count(../results/result[host/text() = $current_host][threat/text() = 'High'])"/>
+ </td>
<td>
- <xsl:value-of select="count(../results/result[host/text() = $current_host][threat/text() = 'Medium'])"/>
- </td>
+ <xsl:value-of select="count(../results/result[host/text() = $current_host][threat/text() = 'Medium'])"/>
+ </td>
<td>
- <xsl:value-of select="count(../results/result[host/text() = $current_host][threat/text() = 'Low'])"/>
- </td>
+ <xsl:value-of select="count(../results/result[host/text() = $current_host][threat/text() = 'Low'])"/>
+ </td>
<td>
- <xsl:value-of select="count(../results/result[host/text() = $current_host][threat/text() = 'Log'])"/>
- </td>
+ <xsl:value-of select="count(../results/result[host/text() = $current_host][threat/text() = 'Log'])"/>
+ </td>
</tr>
</xsl:for-each>
<tr>
<td>Total: <xsl:value-of select="count(host_start)"/></td>
<td>
- <xsl:value-of select="count(results/result[threat/text() = 'High'])"/>
+ <xsl:value-of select="count(results/result[threat/text() = 'High'])"/>
</td>
<td>
- <xsl:value-of select="count(results/result[threat/text() = 'Medium'])"/>
- </td>
+ <xsl:value-of select="count(results/result[threat/text() = 'Medium'])"/>
+ </td>
<td>
- <xsl:value-of select="count(results/result[threat/text() = 'Low'])"/>
- </td>
+ <xsl:value-of select="count(results/result[threat/text() = 'Low'])"/>
+ </td>
<td>
- <xsl:value-of select="count(results/result[threat/text() = 'Log'])"/>
- </td>
+ <xsl:value-of select="count(results/result[threat/text() = 'Log'])"/>
+ </td>
</tr>
</table>
</xsl:template>
@@ -2824,7 +2824,7 @@
<xsl:variable name="current_host" select="host/text()"/>
<a name="{$current_host}"></a>
<h2>
- Port summary for host "<xsl:value-of select="$current_host"/>"
+ Port summary for host "<xsl:value-of select="$current_host"/>"
</h2>
<table class="gbntable" cellspacing="2" cellpadding="4">
<tr class="gbntablehead2">
@@ -2835,11 +2835,11 @@
</table>
<a name="{$current_host}"/>
<h3>
- Security Issues reported for <xsl:value-of select="$current_host"/>
+ Security Issues reported for <xsl:value-of select="$current_host"/>
</h3>
<xsl:apply-templates
- select="../results/result[host/text() = $current_host]"
- mode="detailed"/>
+ select="../results/result[host/text() = $current_host]"
+ mode="detailed"/>
<a href="#summary">Back to summary</a>
</xsl:for-each>
</xsl:template>
@@ -2851,14 +2851,14 @@
<xsl:template match="gsad_response">
<xsl:call-template name="error_dialog">
<xsl:with-param name="title">
- <xsl:value-of select="title"/>
- </xsl:with-param>
+ <xsl:value-of select="title"/>
+ </xsl:with-param>
<xsl:with-param name="message">
- <xsl:value-of select="message"/>
- </xsl:with-param>
+ <xsl:value-of select="message"/>
+ </xsl:with-param>
<xsl:with-param name="backurl">
- <xsl:value-of select="backurl"/>
- </xsl:with-param>
+ <xsl:value-of select="backurl"/>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -2870,47 +2870,47 @@
<div class="gb_window_part_left"></div>
<div class="gb_window_part_right"></div>
<div class="gb_window_part_center">New Task
- <a href="/help/new_task.html#newtask" title="Help: New Task">
- <img src="/img/help.png"/>
- </a>
+ <a href="/help/new_task.html#newtask" title="Help: New Task">
+ <img src="/img/help.png"/>
+ </a>
</div>
<div class="gb_window_part_content">
- <form action="/omp" method="post" enctype="multipart/form-data">
- <input type="hidden" name="cmd" value="create_task"/>
- <table border="0" cellspacing="0" cellpadding="3" width="100%">
- <tr>
- <td valign="top" width="125">Name</td>
- <td>
- <input type="text" name="name" value="unnamed" size="30"
- maxlength="80"/>
- </td>
- </tr>
- <tr>
- <td valign="top">Scan Config</td>
- <td>
- <select name="scanconfig">
- <xsl:apply-templates select="get_configs_response/config"
- mode="newtask"/>
- </select>
- </td>
- </tr>
- <tr>
- <td>Scan Targets</td>
- <td>
- <select name="scantarget">
- <xsl:apply-templates select="get_targets_response/target"
- mode="newtask"/>
- </select>
- </td>
- </tr>
- <tr>
- <td colspan="2" style="text-align:right;">
- <input type="submit" name="submit" value="Create Task"/>
- </td>
- </tr>
- </table>
- <br/>
- </form>
+ <form action="/omp" method="post" enctype="multipart/form-data">
+ <input type="hidden" name="cmd" value="create_task"/>
+ <table border="0" cellspacing="0" cellpadding="3" width="100%">
+ <tr>
+ <td valign="top" width="125">Name</td>
+ <td>
+ <input type="text" name="name" value="unnamed" size="30"
+ maxlength="80"/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">Scan Config</td>
+ <td>
+ <select name="scanconfig">
+ <xsl:apply-templates select="get_configs_response/config"
+ mode="newtask"/>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td>Scan Targets</td>
+ <td>
+ <select name="scantarget">
+ <xsl:apply-templates select="get_targets_response/target"
+ mode="newtask"/>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" style="text-align:right;">
+ <input type="submit" name="submit" value="Create Task"/>
+ </td>
+ </tr>
+ </table>
+ <br/>
+ </form>
</div>
</xsl:template>
More information about the Openvas-commits
mailing list