<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>Video ID</b>
                	<br>
                    <a href='listvideos.php?sortby=VIDEOID&sorthow=asc'>asc</a>
                    <a href='listvideos.php?sortby=VIDEOID&sorthow=desc'>desc</a>
                </td>
                <td><b>Title</b>
                	<br>
                    <a href='listvideos.php?sortby=title&sorthow=asc'>asc</a>
                    <a href='listvideos.php?sortby=title&sorthow=desc'>desc</a>
                </td>
                <td><b>Description</b>
                	<br>
                    <a href='listvideos.php?sortby=description&sorthow=asc'>asc</a>
                    <a href='listvideos.php?sortby=description&sorthow=desc'>desc</a>
                </td>
                <td><b>Featured</b>
                </td>
                <td><b>Category</b>
                </td>
                <td><b>Edit/Delete</b>
                </td>
                </tr>

                {section name=i loop=$videos}
                <tr>
                <td>{$videos[i].VIDEOID}</td>
                <td>{$videos[i].title}</td>
                <td>{$videos[i].description}</td>
                <td>{if $videos[i].featured eq "1"}Yes{elseif $videos[i].featured eq "0"}No{/if}</td>
                <td>{insert name=admin_videoid_to_categoryname value=a VIDEOID=$videos[i].categories}</td>
                <td><a href='listvideosedit.php?edit=true&VIDEOID={$videos[i].VIDEOID}'>Edit</a> | <a href='listvideos.php?delete=true&VIDEOID={$videos[i].VIDEOID}'>Delete</a>
                </td>
                </tr>
                {/section}
                </table>

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