Example #1
0
 public function getChannel()
 {
     $channels = ChannelData::getAllByUID($this->id);
     if (count($channels) > 0) {
         return $channels[0];
     }
 }
Example #2
0
<?php

$channel = null;
if (Session::getUID() != "") {
    $channels = ChannelData::getAllByUID(Session::getUID());
    $channel = $channels[0];
}
?>

<div class='row'>
<?php 
if ($channel != null) {
    ?>
	<div class='span6'>
	<h3 class='roboto'>Crear Album</h3>
<form enctype="multipart/form-data" method='post' action='add.php' class='form-horizontal'  id='form_upload'>


  <div class="control-group" id='title'>
    <label class="control-label" for="inputEmail">Titulo</label>
    <div class="controls">
      <input type="text" name='title' id="input_title" style='width:280px;' placeholder="Titulo de el Album">
      <input type="hidden" name='reference' value='addalbum'>
      <input type="hidden" name='channel_id' value='<?php 
    echo $channel->id;
    ?>
'>
<span class='help-inline' id='title_control'>Debes escribir un titulo a el Album.</span>
    </div>
  </div>
  <div class="control-group" id='description'>