side playlist almost done, just need to do drag and drop.
This commit is contained in:
parent
707bb2b183
commit
9fd60932bd
17 changed files with 327 additions and 49 deletions
37
application/views/scripts/sideplaylist/index.phtml
Normal file
37
application/views/scripts/sideplaylist/index.phtml
Normal file
|
@ -0,0 +1,37 @@
|
|||
<form name="SPL">
|
||||
<div>
|
||||
<span id="spl_new">New</span>
|
||||
<span id="spl_delete">Delete</span>
|
||||
<div>
|
||||
<div id="spl_name"><?php if (isset($this->pl)) { echo $this->pl->getName(); } ?></div>
|
||||
<div id="spl_length"><?php if (isset($this->pl)) { echo $this->pl->getLength(); } ?></div>
|
||||
<div class="spl_main">
|
||||
<?php
|
||||
if (isset($this->pl)) {
|
||||
|
||||
echo '<div class="spl_head">';
|
||||
echo '<span class="spl_input"><input type="checkbox" name="all"></span>';
|
||||
echo '<span class="spl_title">Title</span>';
|
||||
echo '<span class="spl_artist">Creator</span>';
|
||||
echo '<span class="spl_playlength">Playlength</span>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<ul id="spl_sortable">';
|
||||
|
||||
if (count($this->pl->getContents())) {
|
||||
echo $this->partialLoop('sideplaylist/sidebarcontent.phtml', $this->pl->getContents());
|
||||
}
|
||||
else {
|
||||
echo '<li class="spl_empty">Empty playlist</li>';
|
||||
}
|
||||
|
||||
echo '</ul></div>';
|
||||
}
|
||||
else {
|
||||
echo '<div>No open playlist</div>';
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
<div class="spl_footer">
|
||||
<span id="spl_remove_selected">Remove</span>
|
||||
</div>
|
14
application/views/scripts/sideplaylist/sidebarcontent.phtml
Normal file
14
application/views/scripts/sideplaylist/sidebarcontent.phtml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<li class="spl_row" id="spl_<?php echo $this->partialCounter-1 ?>">
|
||||
<span class="spl_input">
|
||||
<input type="checkbox" class="checkbox" name="<?php echo $this->partialCounter-1 ?>"/>
|
||||
</span>
|
||||
<span class="spl_title">
|
||||
<?php echo $this->CcFiles['track_title'] ?>
|
||||
</span>
|
||||
<span class="spl_artist">
|
||||
<?php echo $this->CcFiles['artist_name'] ?>
|
||||
</span>
|
||||
<span class="spl_playlength">
|
||||
<?php echo $this->cliplength ?>
|
||||
</span>
|
||||
</li>
|
7
application/views/scripts/sideplaylist/update.phtml
Normal file
7
application/views/scripts/sideplaylist/update.phtml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
if (count($this->pl->getContents())) {
|
||||
echo $this->partialLoop('sideplaylist/sidebarcontent.phtml', $this->pl->getContents());
|
||||
}
|
||||
else {
|
||||
echo '<li class="pl_empty">Empty playlist</li>';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue