<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>Video Categories</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>Category ID</b>
                	<br>
                    <a href='videocategories.php?sortby=CATID&sorthow=asc'>asc</a>
                    <a href='videocategories.php?sortby=CATID&sorthow=desc'>desc</a>
                </td>
                <td><b>Name</b>
                	<br>
                    <a href='videocategories.php?sortby=name&sorthow=asc'>asc</a>
                    <a href='videocategories.php?sortby=name&sorthow=desc'>desc</a>
                </td>
                <td><b>Details</b>
                	<br>
                    <a href='videocategories.php?sortby=details&sorthow=asc'>asc</a>
                    <a href='videocategories.php?sortby=details&sorthow=desc'>desc</a>
                </td>
                <td><b>Videos</b>
                </td>
                <td><b>Edit/Delete</b>
                </td>
                </tr>

                {section name=cats loop=$categories}
                {insert name=video_categories_count assign=videocount catid=$categories[cats].CATID}
                <tr>
                <td>{$categories[cats].CATID}</td>
                <td>{$categories[cats].name}</td>
                <td>{$categories[cats].details}</td>
                <td>{$videocount}</td>
                <td><a href='videocategoriesedit.php?edit=true&CATID={$categories[cats].CATID}'>Edit</a> | <a href='videocategories.php?delete=true&CATID={$categories[cats].CATID}'>Delete</a>
                </td>
                </tr>
                {/section}
                </table>

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