Example #1
0
    ?>
</td>
									<td class="center"><?php 
    echo $item->media_title;
    ?>
</td>
									<td class="center"><?php 
    echo $item->media_description;
    ?>
</td>
									<td class="center">
									<?php 
    if ($item->category_title == 'image') {
        echo Assets::image($item->media_file, '', 'width: 200px');
    } else {
        if (Assets::media($item->media_file) == true) {
            echo "<a href='" . ROOT_DIR . $item->media_file . "' target='_blank'>View in Browser</a>";
        } else {
            echo 'File does not exist';
        }
    }
    ?>
									</td>
									<td class="center"><?php 
    echo date("d/m/Y", $item->media_created);
    ?>
</td>
									<td class="center">

										<span class="label 
										<?php 
Example #2
0
</td>
									<td class="center"><?php 
    echo $item->song_title;
    ?>
</td>
									<td class="center"><?php 
    echo $item->song_description;
    ?>
</td>
									<td class="center"><?php 
    echo Assets::image($item->song_image, '', 'width: 100px');
    ?>
</td>
									<td class="center">
									<?php 
    if (Assets::media($item->song_file) == true) {
        echo "<a href='" . ROOT_DIR . $item->song_file . "' target='_blank'>View in Browser</a>";
    } else {
        echo 'File does not exist';
    }
    ?>
									</td>
									<td class="center"><?php 
    echo $item->song_duration;
    ?>
</td>
									<td class="center"><?php 
    echo date("d/m/Y", $item->song_created);
    ?>
</td>
									<td class="center">
Example #3
0
							<div class="control-group">
							  <label class="control-label" for="date01">Title</label>
							  <div class="controls">
								<input type="text" name="title" class="input-xlarge" id="date01" value="<?php 
echo $song->song_title;
?>
" placeholder="Add Song Title">
							  </div>
							</div>

							<div class="control-group">
								<label class="control-label">Upload Mp3</label>
								<div class="controls">
								  <input type="file" name="mp3">
								  <?php 
if (Assets::media($song->song_file) == true) {
    echo "<a href='" . ROOT_DIR . $song->song_file . "' target='_blank'>View in Browser</a>";
} else {
    echo 'File does not exist';
}
?>
								</div>
							  </div>


							  <div class="control-group">
								<label class="control-label">Song Cover</label>
								<div class="controls">
								  <input type="file" name="image">
								  <?php 
echo Assets::image($song->song_image, '', 'width: 100px');
							  </div>
							</div>



							<div class="control-group">
								<label class="control-label">File Upload</label>
								<div class="controls">
								  <input type="file" name="image">
								</div>
								<div class="controls">
									<?php 
if ($media->category_title == 'image') {
    echo Assets::image($media->media_file, '', 'width: 200px');
} else {
    if (Assets::media($media->media_file) == true) {
        echo "<a href='" . ROOT_DIR . $media->media_file . "' target='_blank'>View in Browser</a>";
    } else {
        echo 'File does not exist';
    }
}
?>
								</div>
							  </div>

							   
							<div class="control-group hidden-phone">
							  <label class="control-label" for="textarea2">Description</label>
							  <div class="controls">
								<textarea class="cleditor" name="description" id="textarea2" rows="3"><?php 
echo $media->media_description;