<?php echo $header;?>
<div id="dashboard">
	<div class="container">
<div class="row"><br/></div>
<div class="panel">

	<div class="panel-header">
			<?php echo $LANG["WBS_PUB_CHANNELS_MNG"];?>
		<span class="pull-right">
			<a href="<?php echo HTTP_SERVER_WEBSITE;?>dashboard/publisher/channel"><?php echo $LANG["WBS_PUB_CHANNELS_NEW"];?></a>
		</span>
	</div>

<div class="panel-content">

<?php if ( !empty ( $channel ) ) { ?>
	<div class="row"><br/></div>
	<div class="col-md-12">
		<div class="alert alert-danger" role="alert">
		<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only"></span></button>
			  <?php echo $LANG["WBS_ADVERTISER_CAMPAIGNS_REMOVE_LINE_1"];?> <strong><?php echo $channel['0']['pc_title'];?></strong> <?php echo $LANG["WBS_ADVERTISER_CAMPAIGNS_REMOVE_LINE_2"];?> <a href="<?php echo HTTP_SERVER_WEBSITE;?>dashboard/publisher/channels?id=<?php echo $channel['0']['pc_id'];?>&m=yes-delete"><?php echo $LANG["WBS_ADVERTISER_CAMPAIGNS_REMOVE_LINE_3"];?></a>.
		</div>
	</div>
	<div class="row"></div>
<?php } ?>

<div id="campaigns-list" class="col-md-12">


<table class="table">
      <thead>
        <tr>
          <th><?php echo $LANG["WBS_PUB_CHANNELS_NAME"];?></th>
          <th><?php echo $LANG["WBS_PUB_CHANNELS_DOMAIN"];?></th>
          <th><?php echo $LANG["WBS_PUB_CHANNELS_OPTION"];?></th>
        </tr>
      </thead>
      <tbody>


			<?php if ( !empty ( $channels ) ) { ?>
			<?php foreach($channels as $channel): ?>
				<tr>
				  <td><?php echo $channel['pc_title'];?></td>
				  <td><?php echo $channel['pc_domain'];?></td>


				<td>

						<a href="<?php echo HTTP_SERVER_WEBSITE;?>dashboard/publisher/ads?channel=<?php echo $channel['pc_id'];?>"><?php echo $LANG["WBS_PUB_CHANNELS_VIEW_ADS"];?></a> / 
						<a href="<?php echo HTTP_SERVER_WEBSITE;?>dashboard/publisher/channel?id=<?php echo $channel['pc_id'];?>"><?php echo $LANG["WBS_PUB_CHANNELS_MANAGE_CHANNEL"];?></a> / 
						<a href="<?php echo HTTP_SERVER_WEBSITE;?>dashboard/publisher/channels?id=<?php echo $channel['pc_id'];?>&m=delete"><?php echo $LANG["WBS_PUB_CHANNELS_DELETE_CHANNEL"];?></a>

				</td>
				</tr>
			<?php endforeach; ?>
			<?php } ?>


      </tbody>
</table>

<?php if ( $paginator['rows'] > 10 ) { ?>
<div class="row"></div>
	<?php echo $paginator['pager'];?>
<?php } ?>

</div>
<div class="row"><br/></div>
</div>

</div>
</div>
</div>
<?php echo $footer;?>