<html>
<head>
<title>{$site_name}</title>
<mets http-equiv=Content-Type content="text/html; charset=utf-8">
<link href="{$cssurl}/administrator.css" type=text/css rel=stylesheet>

</head>
<body>
<br>

<table width="90%" align="center" cellpadding="5" cellspacing="5">
<tr>
	<td>
    	<h3>Videos</h3>
    </td>
</tr>
<tr>
    <td colspan="2" height="1" bgcolor="#dfdfdf"></td>
</tr>
<table>

                <table width="90%" align="center" cellpadding="5" cellspacing="5">
                <tr>
                <td>
                	<b>Report ID</b>
                	<br>
                    <a href='reportedvideos.php?sortby=RID&sorthow=asc'>asc</a>
                    <a href='reportedvideos.php?sortby=RID&sorthow=desc'>desc</a>
                </td>
                <td><b>Reported By</b>
                </td>
                <td><b>Video Title</b>
                </td>
                <td><b>Reason</b>
                	<br>
                    <a href='reportedvideos.php?sortby=reason&sorthow=asc'>asc</a>
                    <a href='reportedvideos.php?sortby=reason&sorthow=desc'>desc</a>
                </td>
                <td><b>Remarks</b>
                	<br>
                    <a href='reportedvideos.php?sortby=remarks&sorthow=asc'>asc</a>
                    <a href='reportedvideos.php?sortby=remarks&sorthow=desc'>desc</a>
                </td>
                <td><b>Video</b>
                </td>
                <td><b>Report</b>
                </td>
                </tr>

                {section name=i loop=$videos}
                <tr>
                <td>{$videos[i].RID}</td>
                <td>{insert name=get_username_from_userid value=var USERID=$videos[i].USERID}</td>
                <td>{insert name=get_title_from_videoid value=var VIDEOID=$videos[i].VIDEOID}</td>
                <td>{$videos[i].reason}</td>
                <td>{$videos[i].remarks}</td>
                <td><a href='listvideosedit.php?edit=true&VIDEOID={$videos[i].VIDEOID}'>Edit Video</a> | <a href='reportedvideos.php?delete=true&VIDEOID={$videos[i].VIDEOID}'>Delete Video</a>
                </td>
                <td><a href='reportedvideos.php?remove=true&RID={$videos[i].RID}'>Delete Report</a>
                </td>
                </tr>
                {/section}
                </table>

</body>
</head>
</html>