<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>Channels</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>Channel ID</b>
                	<br>
                    <a href='listchannels.php?sortby=CID&sorthow=asc'>asc</a>
                    <a href='listchannels.php?sortby=CID&sorthow=desc'>desc</a>
                </td>
                <td><b>Name</b>
                	<br>
                    <a href='listchannels.php?sortby=name&sorthow=asc'>asc</a>
                    <a href='listchannels.php?sortby=name&sorthow=desc'>desc</a>
                </td>
                <td><b>Details</b>
                	<br>
                    <a href='listchannels.php?sortby=details&sorthow=asc'>asc</a>
                    <a href='listchannels.php?sortby=details&sorthow=desc'>desc</a>
                </td>
                <td><b>Featured</b>
                </td>
                <td><b>Category</b>
                </td>
                <td><b>Edit/Delete</b>
                </td>
                </tr>

                {section name=chans loop=$channels}
                <tr>
                <td>{$channels[chans].CID}</td>
                <td>{$channels[chans].name}</td>
                <td>{$channels[chans].details}</td>
                <td>{if $channels[chans].featured eq "1"}Yes{elseif $channels[chans].featured eq "0"}No{/if}</td>
                <td>{insert name=admin_channelid_to_categoryname value=a CID=$channels[chans].category}</td>
                <td><a href='listchannelsedit.php?edit=true&CID={$channels[chans].CID}'>Edit</a> | <a href='listchannels.php?delete=true&CID={$channels[chans].CID}'>Delete</a>
                </td>
                </tr>
                {/section}
                </table>

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