1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-16 13:44:12 +02:00

Reporting system revised. Needs some major cleanup and is missig some functionality (assign report, some overviews, decent notifications) but the basics are there. More after the weekend :)

git-svn-id: file:///svn/phpbb/trunk@5601 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Bart van Bragt
2006-03-04 13:50:52 +00:00
parent 0525406c3b
commit 70b20a98f7
9 changed files with 1175 additions and 15 deletions

View File

@@ -0,0 +1,34 @@
<!-- INCLUDE mcp_header.html -->
<!-- $Id$ -->
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="row3" colspan="6" align="center"><b class="gen">{L_OPEN_REPORTS}</b></td>
</tr>
<tr>
<th>&nbsp;{L_NR}&nbsp;</th>
<th>&nbsp;{L_FORUM}&nbsp;</th>
<th>&nbsp;{L_TOPIC}&nbsp;</th>
<th>&nbsp;{L_USER}&nbsp;</th>
<th>&nbsp;{L_COUNT}&nbsp;</th>
<th>&nbsp;</th>
</tr>
<!-- BEGIN report -->
<tr>
<td class="row1" width="15%" valign="top"><span class="gen"><a href="{report.U_USER}"><a href="{report.U_REPORT_TOPIC}">{report.REPORT_COUNT}</a></span></td>
<td class="row1" width="15%" valign="top"><span class="gen"><a href="{report.U_USER}"><a href="{report.U_FORUM}">{report.FORUM_NAME}</a></span></td>
<td class="row2" width="15%" valign="top"><a class="gen" href="{report.U_TOPIC}">{report.TOPIC_TITLE}</a></td>
<td class="row1" width="15%" valign="top"><a class="gen" href="{report.U_VIEWPROFILE}">{report.POSTER}</a></span></td>
<td class="row2" width="15%" valign="top"><span class="gen">{report.REPORT_COUNT}</span></td>
<td class="row1" width="15%" valign="top"><span class="gen"> <input type="checkbox" /> </td>
</tr>
<!-- BEGINELSE -->
<tr>
<td class="row1" colspan="5" align="center"><span class="gen">{L_REPORTS_ZERO_TOTAL}</span></td>
</tr>
<!-- END report -->
</table>
<br clear="all" /><br />
<!-- INCLUDE mcp_footer.html -->

View File

@@ -0,0 +1,77 @@
<!-- INCLUDE mcp_header.html -->
<form method="POST" action="{U_FEEDBACK_ACTION}">
<!-- BEGIN postrow -->
<a name="{postrow.POST_ID}"></a>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="tablebg">
<tr>
<th colspan="2" height="28" align="center">{L_POST_DETAILS}</th>
</tr>
<tr>
<td class="row1"><b class="gen">{L_POST_SUBJECT}: </b></td>
<td class="row2"><span class="gen"><a href="{postrow.U_VIEW}">{postrow.POST_SUBJECT}</a></span></td>
</tr>
<tr>
<td class="row1" width="20%" valign="top">
<b class="gen">{L_POSTER}:</b> <span class="gen"><a href="{U_POSTER_PROFILE}">{postrow.POSTER_NAME}</a></span><br />
<b class="gen">{L_POSTED}: </b> <span class="postdetails">{postrow.POST_DATE}</span>
</td>
<td class="row2" width="80%"><span class="gen">{postrow.POST_PREVIEW}</span></td>
</tr>
</table>
<table style="margin-left: 5%" width="100%">
<!-- BEGIN reportrow -->
<tr>
<th colspan="3">Report {postrow.reportrow.REPORT_ID}</th>
</tr>
<tr class="row1">
<!-- IF postrow.reportrow.REPORT_STATUS neq 1 -->
<td width="5%"><input type="checkbox" name="sendfeedback[]" value="{postrow.reportrow.REPORT_ID}" /></td>
<!-- ENDIF -->
<!-- Nesting IF/ELSE didn't work as expected -->
<!-- IF postrow.reportrow.REPORT_STATUS eq 1 -->
<td width="5%"><span style="color: red">RESOLVED</style></td>
<!-- ENDIF -->
<td width="15%" valign="top">
<b>Time:</b> <span class="postdetails">{postrow.reportrow.REPORT_TIME}</span><br />
<b>Reporter:</b> <span class="gen"><!-- IF postrow.reportrow.U_REPORTERPROFILE --><a href="{postrow.reportrow.U_REPORTERPROFILE}">{postrow.reportrow.REPORTER_USERNAME}</a><!-- ELSE -->{postrow.reportrow.REPORTER_USERNAME}<!-- ENDIF --></span>
</td>
<td valign="top"><span class="gen">{postrow.reportrow.REPORT_TEXT}</span></td>
</tr>
<!-- This needs some VERY serious cleaning up :) -->
<tr><td colspan="3">
<table style="margin-left: 10%" width="100%">
<!-- BEGIN replyrow -->
<tr>
<th colspan="2">Reply {postrow.reportrow.replyrow.REPLY_ID}</th>
</tr>
<tr class="row1">
<td width="15%" valign="top">
<b>Time:</b> <span class="postdetails">{postrow.reportrow.REPORT_TIME}</span><br />
<b>From:</b> <span class="gen">{postrow.reportrow.replyrow.REPLY_FROMUSERNAME}</span>
<b>To:</b> <span class="gen">{postrow.reportrow.replyrow.REPLY_TOUSERNAME}</span>
</td>
<td valign="top"><span class="gen">{postrow.reportrow.replyrow.REPLY_TEXT}</span></td>
</tr>
<!-- END replyrow -->
</table>
</td></tr>
<!-- BEGINELSE -->
<tr class="row1">
<td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_REPORTS}</span></td>
</tr>
<!-- END reportrow -->
</table>
<br />
<!-- END postrow -->
Send this comment to the selected reporters:<br />
<textarea name="feedback_text" style="width: 100%" cols="80" rows="5"></textarea>
{L_CLOSE_REPORT}<input type="checkbox" name="feedback_close">
<input type="submit" name="feedback_submit" value="{L_SUBMIT}"/></p>
</form>
<!-- INCLUDE mcp_footer.html -->

View File

@@ -0,0 +1,32 @@
<!-- INCLUDE ucp_header.html -->
<!-- $Id$ -->
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="row3" colspan="6" align="center"><b class="gen">{L_YOUR_REPORTS}</b></td>
</tr>
<tr>
<th>&nbsp;{L_USER}&nbsp;</th>
<th>&nbsp;{L_TOPIC}&nbsp;</th>
<th>&nbsp;{L_FORUM}&nbsp;</th>
<th>&nbsp;{L_DATE}&nbsp;</th>
<th>&nbsp;{L_STATUS}&nbsp;</th>
</tr>
<!-- BEGIN report -->
<tr>
<td class="row1" width="15%" valign="top"><a class="gen" href="{report.U_VIEWPROFILE}">{report.POSTER}</a></span></td>
<td class="row2" width="15%" valign="top"><a class="gen" href="{report.U_TOPIC}">{report.TOPIC_TITLE}</a></td>
<td class="row1" width="15%" valign="top"><span class="gen"><a href="{report.U_USER}"><a href="{report.U_FORUM}">{report.FORUM_NAME}</a></span></td>
<td class="row2" width="15%" valign="top"><span class="gen">{report.REPORT_TIME}</span></td>
<td class="row1" width="15%" valign="top"><span class="gen">{report.REPORT_STATUS}</span></td>
</tr>
<!-- BEGINELSE -->
<tr>
<td class="row1" colspan="5" align="center"><span class="gen">{L_REPORTS_ZERO_TOTAL}</span></td>
</tr>
<!-- END report -->
</table>
<br clear="all" /><br />
<!-- INCLUDE ucp_footer.html -->

View File

@@ -0,0 +1,34 @@
<!-- INCLUDE ucp_header.html -->
<!-- $Id$ -->
<form method="post" action="{S_REPORT_ACTION}" name="report">
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<th colspan="2"><!-- IF S_REPORT_POST -->{L_REPORT_POST}<!-- ELSE -->{L_REPORT_GENERAL}<!-- ENDIF --></th>
</tr>
<tr>
<td class="row3" colspan="2"><span class="gensmall"><!-- IF S_REPORT_POST -->{L_REPORT_POST_EXPLAIN}<!-- ELSE -->{L_REPORT_GENERAL_EXPLAIN}<!-- ENDIF --></span></td>
</tr>
<tr>
<td class="row1" width="22%"><b class="gen">{L_REASON}:</b></td>
<td class="row2" width="78%"><select name="reason_id"><!-- BEGIN reason --><option value="{reason.ID}"<!-- IF reason.S_SELECTED --> selected="selected"<!-- ENDIF -->>{reason.DESCRIPTION}</option><!-- END reason --></select></td>
</tr>
<!-- IF S_CAN_NOTIFY -->
<tr>
<td class="row1"><span class="gen"><b>{L_REPORT_NOTIFY}:</b></span><br /><span class="gensmall">{L_REPORT_NOTIFY_EXPLAIN}</span></td>
<td class="row2"><span class="gen"><input type="radio" name="notify" value="1" <!-- IF S_NOTIFY -->checked="checked" <!-- ENDIF -->/> {L_YES} &nbsp;<input type="radio" name="notify" value="0" <!-- IF not S_NOTIFY -->checked="checked" <!-- ENDIF -->/> {L_NO}</span></td>
</tr>
<!-- ENDIF -->
<tr>
<td class="row1" valign="top"><span class="gen"><b>{L_REPORT_MORE_INFO}:</b></span><br /><span class="gensmall">{L_REPORT_CAN_LEAVE_BLANK}</span></td>
<td class="row2"><textarea class="post" style="width:500px" name="report_text" rows="25" cols="40" class="post">{REPORT_TEXT}</textarea></td>
</tr>
<tr>
<td class="cat" colspan="2" align="center"><input type="submit" name="submit" class="btnmain" value="{L_SUBMIT}" />&nbsp;<input type="submit" name="cancel" class="btnlite" value="{L_CANCEL}"></td>
</tr>
</table>
</form>
<!-- INCLUDE ucp_footer.html -->