<?php
require_once($application_path . "view/header.tpl.php");
?>
<style>
	th {
		border:solid #999 1px;
		padding:15px;
		background-color:#ccc;
	}
	td {
		border:solid 1px;
		padding:5px;
	}		
</style>
        <!-- page content -->
        <div class="right_col" role="main">
		  
          <!-- Body First Row Items -->
          <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
            	<h2>Manage Profile - Favourite Channels</h2>
            	<p>&nbsp;</p>
         		  <form action="" enctype="multipart/form-data" method="post">
                  	<table>
						<thead>
                            <th>Channel Name</th>
                            <th>Network</th>
                            <th>Typology</th>
                            <th align="center">Order</th>
                        </thead>
                        
                        <?php
						foreach($chlist as $ky=>$lst) {
						?>
                            <tr>
                                
                                <td><?php echo $lst['chname']; ?></td>
                                <td><?php echo $lst['netdesc']; ?></td>
                                <td><?php echo $lst['typo_desc']; ?></td>
                                <td align="center">
								
                                <input type="text" name="ch_<?php echo $lst['chid'] ?>" maxlength="1" style="width:40px; text-align:center" value="<?php 
								if($lst['forder'] <=9999) echo $lst['forder']; 
								?>"
								
                                </td>
                            </tr>
                        <?php	
						}
						?>
					</table>
                    <br />
                    <button type="submit" class="btn btn-default" name="btn_update">Update</button>
                  </form>
             </div>
          </div>
        </div>     




<?php
require_once($application_path . "view/footer.tpl.php");
?>                  