Template changes weren't the ones I intended to land. Hopefully this fixes it.

This commit is contained in:
robert%accettura.com 2006-01-20 05:05:25 +00:00
parent abb4fbbd9a
commit 3765df8a5d
11 changed files with 0 additions and 427 deletions

View File

@ -1,138 +0,0 @@
<fieldset>
<legend>Look up Report</legend>
<form method="get" action ="{$app_url}/report/" id="getReport">
<p>
<label for="report_id">Report ID</label>
<input type="text" id="report_id" name="report_id" />
<input type="submit" id="submit_reportID" name="submit_reportID" value="Lookup Report" />
</p>
</form>
</fieldset>
<!-- Query -->
<fieldset>
<legend>Search for a Report</legend>
<form method="get" action="{$app_url}/query/" id="detailQuery">
<table id="reporterSearch">
<tr>
<td class="label"><label for="report_description">Description:</label></td>
<td><input id="report_description" name="report_description" type="text" size="35" value="{$report_description}"></td>
<td rowspan="5">
<table>
<tr>
<td class="label"><label for="report_useragent">User Agent:</label></td>
<td><input id="report_useragent" name="report_useragent" type="text" size="35" value="{$report_useragent}"></td>
</tr>
<tr>
<td class="label"><label for="report_gecko">Gecko Version:</label></td>
<td><input id="report_gecko" name="report_gecko" type="text" value="{$report_gecko}"></td>
</tr>
<tr>
<td class="label"><label for="report_language">Language (ex. en-US):</label></td>
<td><input id="report_language" name="report_language" type="text" value="{$report_language}"></td>
</tr>
<tr>
<td class="label">Platform:</td>
<td>
<table>
<tr>
<td>
<input type="radio" name="report_platform" id="AllPlatforms" value=""><label for="AllPlatforms">All</label><br>
<input type="radio" name="report_platform" id="Win32" value="Win32"><label for="Win32">Windows (32)</label><br>
<input type="radio" name="report_platform" id="Windows" value="Windows"><label for="Windows">Windows (64 Bit)</label><br>
<input type="radio" name="report_platform" id="MacPPC" value="MacPPC"><label for="MacPPC">MacOS X</label><br>
<input type="radio" name="report_platform" id="X11" value="X11"><label for="X11">X11</label><br>
</td><td>
<input type="radio" name="report_platform" id="OS2" value="OS/2"><label for="OS2">OS/2</label><br>
<input type="radio" name="report_platform" id="Photon" value="Photon"><label for="Photon">Photon</label><br>
<input type="radio" name="report_platform" id="BeOS" value="BeOS"><label for="BeOS">BeOS</label><br>
<input type="radio" name="report_platform" id="unknown" value="?"><label for="unknown">unknown</label><br>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label"><label for="report_oscpu" title="oscpu">OS:</label></td>
<td><input id="report_oscpu" name="report_oscpu" type="text" size="35" value="{$report_oscpu}"></td>
</tr>
<tr>
<td class="label"><label for="report_product">Product:</label></td>
<td>
<select name="report_product" id="report_product">
<option value="-1">Any</option>
{html_options values=$product_options output=$product_options selected=$report_product}
</select>
</td>
</tr>
<tr>
<td class="label"><label for="report_file_date_start">File Date starts:</label></td>
<td><input id="report_file_date_start" name="report_file_date_start" value="{if $report_file_date_start != null}{$report_file_date_start}{else}YYYY-MM-DD{/if}" {literal}onfocus="if(this.value=='YYYY-MM-DD'){this.value=''}"{/literal} type="text"></td>
</tr>
<tr>
<td class="label"><label for="report_file_date_end">ends:</label></td>
<td><input id="report_file_date_end" name="report_file_date_end" value="{if $report_file_date_end != null}{$report_file_date_end}{else}YYYY-MM-DD{/if}" {literal}onfocus="if(this.value=='YYYY-MM-DD'){this.value=''}"{/literal} type="text"></td>
</tr>
<tr>
<td class="label"><label for="show">Results Per Page:</label></td>
<td><input id="show" name="show" value="{if $show != null}{$show}{else}25{/if}" type="text"></td>
</tr>
<tr>
<td class="label"><label for="count">Get Aggregate:</label></td>
<td><input type="checkbox" id="count" name="count"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label"><label for="host_hostname">Host:</label></td>
<td><input id="host_hostname" name="host_hostname" type="text" size="35" value="{$host_hostname}"></td>
</tr>
<tr>
<td class="label">Problem Type:</td>
<td>
<input type="radio" name="report_problem_type" id="problem_type_all" value="0" {if $report_problem_type == '0' || $report_problem_type == null}checked="checked"{/if}><label for="problem_type_all">All types</label><br>
{html_radios name="report_problem_type" options=$problem_types selected=$report_problem_type separator="<br />"}
</td>
</tr>
<tr>
<td class="label">Site requires login:</td>
<td>
<input type="radio" name="report_behind_login" id="behind_login_null" value="-1" {if $report_behind_login == '-1' || $report_behind_login == ''}checked="checked"{/if}><label for="behind_login_null">Any</label>
<input type="radio" name="report_behind_login" id="behind_login_yes" value="0" {if $report_behind_login == '0'}checked="checked"{/if}><label for="behind_login_yes">Yes</label>
<input type="radio" name="report_behind_login" id="behind_login_no" value="1" {if $report_behind_login == '1'}checked="checked"{/if}><label for="behind_login_no">No</label>
</td>
</tr>
<tr>
<td class="label"><label for="selected">View:</label></td>
<td>
<select name="selected[]" id="selected" multiple="multiple" size="5">
{html_options options=$selected_options selected=$selected}
</select>
</td>
</tr>
<tr>
<td></td>
<td colspan="2">
<input id="submit_query" name="submit_query" value="Search" type="submit">
</td>
</tr>
</table>
</form>
</fieldset>
{*
<div id="login">
<?php if ($userlib->isLoggedIn()){ ?>
Welcome <?php print $_SESSION['user_realname']; ?> | <a href="logout">Logout</a>
<?php } else { ?>
You are not <a href="login">logged in</a>
<?php } ?>
</div>
*}
<br /><br />
<div id="reporter_note">
<h3>Wildcards</h3>
<p><em>Description</em>, <em>Hostname</em>, <em>Useragent</em> support wildcards.</p>
<p><code>%</code> will search for 0+ characters, <code>_</code> (underscore) is for a single character.</p>
</div>

View File

@ -1,26 +0,0 @@
<div id="login_leftcol">
<form method="post" action="{$base_url}/app/login/" id="login_form">
<fieldset>
<legend>Login</legend>
{if $error != ''}
<p>{$error}</p>
{/if}
<div>
<label for="username">Username:</label>
<input type="text" name="username" id="username" />
</div>
<div>
<label for="password">Password:</label>
<input type="password" name="password" id="password" />
</div>
<div>
<input type="submit" name="do_login" id="do_login" value="Login" />
</div>
</fieldset>
</form>
</div>
<div id="login_rightcol">
<p>If you need access to this system, contact <a href="http://robert.accettura.com/contact">Robert Accettura</a>.</p>
<p>Login Access is only given in special circumstances.</p>
</div>
<br style="clear: both;" />

View File

@ -1,79 +0,0 @@
{if $error != ''}
<div class="error">
<h3>Error</h3>
<p>{$error}. <a href="javascript:history.go(-1);">Back</a></p>
</div>
{else}
{if $notice != ''}
<div class="notice">
<h3>Notice:</h3>
<p>{$notice}</p>
</div>
{/if}
<table id="reporterQuery" class="fixedTable" cellspacing="0" cellpadding="0" style="width:100%">
<tr class="header">
{section name=mysec loop=$column}
<th>{if $column[mysec].url != null}<a href="{$column[mysec].url}">{/if}{$column[mysec].text}{if $column[mysec].url != null}</a>{/if}</th>
{/section}
</tr>
{if $method == 'html'}
{section name=mysec2 loop=$row}
<tr class="data{cycle values=', alt'}">
{section name=col loop=$row[mysec2]}
<td>
{strip}
{if $row[mysec2][col].url != null}
<a href="{$base_url}/app{$row[mysec2][col].url}">
{/if}
{if $row[mysec2][col].col == 'report_url'}
{$row[mysec2][col].text|truncate:50}
{else}
{$row[mysec2][col].text|truncate:100}
{/if}
{if $row[mysec2][col].url != null}
</a>
{/if}
{/strip}
</td>
{/section}
</tr>
{/section}
{/if}
</table>
{/if}
{if $method == 'html'}
{if $count > $show}
<div class="navigation">
{strip}
{if $page > 1}
<a href="?{$continuity_params}&amp;page={$page-1}">&lt;</a>
{/if}
{/strip}
{section name=pageLoop start=$start loop=$start+$amt step=$step}
{strip}&nbsp; <a href="{$base_url}/app/query/?{$continuity_params}&amp;page={$smarty.section.pageLoop.index}"
{if $smarty.section.pageLoop.index == $page}class="currentPage"{/if}
>{$smarty.section.pageLoop.index}</a>
{/strip}
{/section}
{strip}
{if $page < $pages}
&nbsp; <a href="{$base_url}/app/query/?{$continuity_params}&amp;page={$page+1}">&gt;</a>
{/if}
{/strip}
<!-- <hr /> -->
{*
<pre>
Count: {$count}
Page: {$page}
Show: {$show}
Start: {$start}
Max: {$max}
TotPage: {$pages}
</pre>
*}
<!-- <br /> -->
<p><small>Your query returned {$count} reports</small></p>
</div>
{/if}
{/if}

View File

@ -1,127 +0,0 @@
{if $error != ''}
<div class="error">
<h3>Error</h3>
<p>{$error}. <a href="javascript:history.go(-1);">Back</a></p>
</div>
{else}
<div id="reporterReport">
<div class="header">Report RMO11301752363661</div>
<div>
<div class="title">URL:</div>
<div class="data"><a href="{$report_url}" rel="nofollow external" title="Visit Page">{$report_url|truncate:60}</a></div>
</div>
<div>
<div class="title">Host:</div>
<div class="data"><a href="{$host_url}" title="see all reports for {$host_hostname}">Reports for {$host_hostname}</a></div>
</div>
<div>
<div class="title">Problem Type:</div>
<div class="data">{$report_problem_type}</div>
</div>
<div>
<div class="title">Behind Login:</div>
<div class="data">{$report_behind_login}</div>
</div>
<div>
<div class="title">Product:</div>
<div class="data">{$report_product}</div>
</div>
<div>
<div class="title">Gecko Version:</div>
<div class="data">{$report_gecko}</div>
</div>
<div>
<div class="title">Platform:</div>
<div class="data">{$report_platform}</div>
</div>
<div>
<div class="title">OS/CPU:</div>
<div class="data">{$report_oscpu}</div>
</div>
<div>
<div class="title">Language:</div>
<div class="data">{$report_language}</div>
</div>
<div>
<div class="title">User Agent:</div>
<div class="data">{$report_useragent}</div>
</div>
<div>
<div class="title">Build Config:</div>
<div class="data">{$report_buildconfig}</div>
</div>
{if $is_admin == true}
<div>
<div class="title">Email:</div>
<div class="data">{$report_email}&nbsp; {*this space at the end fixes some formatting issues with no text in this optional field *}</div>
</div>
<div>
<div class="title">IP Address:</div>
<div class="data"><a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput={$report_ip}" rel="external" target="_blank" title="Lookup IP: {$report_ip}">{$report_ip}</a>&nbsp; {*this space at the end fixes some formatting issues with no text in this optional field *}</div>
</div>
{/if}
<div>
<div class="title">Description:</div>
<div class="data">{$report_description}&nbsp; {*this space at the end fixes some formatting issues with no text in this optional field *}</div>
</div>
<div id="reportNavigation">
<p>
{if $showReportNavigation == true}
<strong>Report List ({$index+1} of {$total}):</strong> &nbsp;
{strip}
{if $first_report != 'disable'}
<a href="{$base_url}/app/report/?report_id={$first_report}&amp;{$continuity_params}" accesskey="f" title="First Report in List (Access Key 'F')">
{/if}
First
{if $first_report != 'disable'}
</a>
{/if}
{/strip}
|
{strip}
{if $previous_report != 'disable'}
<a href="{$base_url}/app/report/?report_id={$previous_report}&amp;{$continuity_params}" accesskey="p" title="Previous Report in List (Access Key 'p')">
{/if}
Previous
{if $previous_report != 'disable'}
</a>
{/if}
{/strip}
|
{strip}
{if $next_report != 'disable'}
<a href="{$base_url}/app/report/?report_id={$next_report}&amp;{$continuity_params}" accesskey="n" title="Next Report in List (Access Key 'N')">
{/if}
Next
{if $next_report != 'disable'}
</a>
{/if}
{/strip}
|
{strip}
{if $last_report != 'disable'}
<a href="{$base_url}/app/report/?report_id={$last_report}&amp;{$continuity_params}" accesskey="l" title="Last Report in List (Access Key 'L')">
{/if}
Last
{if $last_report != 'disable'}
</a>
{/if}
{/strip}
{/if}
|
<a href="{$base_url}/app/query/?{$continuity_params}" accesskey="b" title="Back to the Query List (Access Key 'B')">Back To List</a>
|
<a href="{$base_url}/app/" accesskey="q" title="New Search (Access Key 'Q')">New Search</a>
</p>
</div>
</div>
{/if}

View File

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- generator="Mozilla Reporter" -->
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<channel>
<title>{$title}</title>
<link>{$url}</link>
<description>{description}</description>
<pubDate>Mon, 16 Jan 2006 15:59:06 +0000</pubDate>
<generator>Mozilla Reporter</generator>
<language>en</language>
{section name=mysec2 loop=$row}
<item>
<title>{$row[mysec2][report_id]}</title>
<link>{$row[mysec2][report_url]}/</link>
<pubDate>{$row[mysec2][report_file_date]}</pubDate>
<category>{$row[mysec2][report_type]}</category>
<guid isPermaLink="false">{$row[mysec2][report_url]}</guid>
<description><![CDATA[{$row[mysec2][report_description]}]]></content:encoded>
</item>
{/section}
</channel>
</rss>

View File

@ -1,28 +0,0 @@
<div id="reporterReport">
<div class="header">Statistics</div>
<div>
<div class="title">Unique Users:</div>
<div class="data">{$users_quant}</div>
</div>
<div>
<div class="title">Total Reports:</div>
<div class="data">{$reports_quant}</div>
</div>
<div>
<div class="title">Reports/User:</div>
<div class="data">{$avgRepPerUsr}</div>
</div>
<div>
<div class="title">Hostnames:</div>
<div class="data">{$hosts_quant}</div>
</div>
<div>
<div class="title">Reports (24hr):</div>
<div class="data">{$reports24}</div>
</div>
<div>
<div class="title">Reports (7d):</div>
<div class="data">{$last7days}</div>
</div>
</div>
<br />