clipbucket/upload/styles/cb_28/layout/blocks/manage/account_collections.html

107 lines
No EOL
5.9 KiB
HTML

{if $mode ==''}{assign var='mode' value='manage'}{/if}
{if $display_type == "" || $display_type == "collections"}
<tr style="font-size: 0.9em">
<td width="25">
<input type="checkbox" name="check_col[]" id="check_col-{$collection.collection_id}" value="{$collection.collection_id}" />
<label for="checkbox"></label>
</td>
<td>
<p>{$collection.collection_name}</p>
<div class="btn-group show">
<a class="btn btn-primary btn-sm" href="{$cbcollection->collection_links($collection,'view')}">
{lang code="view"}
</a>
<a class="btn btn-primary btn-sm" href="?mode=edit_collection&amp;cid={$collection.collection_id}">
{lang("edit")}
</a>
<a class="btn btn-primary btn-sm" href="?mode=manage_items&amp;cid={$collection.collection_id}&amp;type={$collection.type}">
{lang("manage_items")}
</a>
<a class="btn btn-primary btn-sm" href="javascript:void(0)" onmousedown="delete_item('delete_coll','{$collection.collection_id}','{lang code="confirm_collection_delete"}','?mode={$mode}&amp;delete_collection={$collection.collection_id}');" id="delete_coll-{$collection.collection_id}">
{lang("delete")}
</a>
</div>
</td>
<td width="100">{$collection.date_added|date_format}</td>
<td width="100">{$collection.views|number_format}</td>
<td width="100">{$collection.total_objects|number_format}</td>
<td width="100">{$collection.type}</td>
<td width="100" class="last_td">{$collection.active}</td>
</tr>
{/if}
{if $display_type == "items"}
{if $type == "videos"}
<div id="collectionItem_{$collection.videoid}" class="account_vid_list" style="background-color:#{$bg}">
<table class="table table-bordered table-striped">
<tr>
<td width="25"><input type="checkbox" name="check_item[]" id="check_item-{$collection.videoid}" value="{$collection.videoid}" />
<label for="checkbox"></label></td>
<td valign="middle">
<div style="padding-left:10px; float:left;width:300px">
<label for="check_item-{$collection.videoid}"> <img src="{getThumb vdetails=$collection}" width="40" height="30" border="0" class="acc_usr_video_thumb" /></label>{$collection.title|truncate:100}<br />
<span class="video_control"><a href="{$cbcollection->collection_links($collection,'view_item')}">{lang code="view"}</a></span>
</div>
</td>
<td width="100">{$collection.date_added|date_format}</td>
<td width="100">{$collection.views|number_format}</td>
<td width="100">
<a onclick="collection_actions('collectionItem','remove_collection_item','{$collection.videoid}','#removeItemContainer','{$type}','{$c.collection_id}')" id="collectionItem{$collection.videoid}" href="javascript:void(0);"><img src="{$imageurl}/cancel.png" width="16" height="16" /></a>
<div id="removeItemContainer_{$collection.videoid}" style="display:none"></div>
</td>
</tr>
</table>
</div>
{/if}
{if $type == "photos"}
<div id="collectionItem_{$collection.photo_id}" class="account_vid_list" style="background-color:#{$bg}">
<table class="table table-bordered table-striped">
<tr>
<td width="25"><input type="checkbox" name="check_item[]" id="check_item-{$collection.photo_id}" value="{$collection.photo_id}" />
<label for="checkbox"></label></td>
<td valign="middle">
<div style="padding-left:10px; float:left;">
<label for="check_item-{$collection.photo_id}">{get_photo style='padding:1px; border:1px solid #999; float:left;' details=$collection output="html"}</label>
{$collection.photo_title|truncate:100}<br />
<span class="video_control"><a href="{$cbphoto->photo_links($collection,'view_item')}">{lang code="view"}</a></span>
</div>
</td>
<td width="100">{$collection.date_added|date_format}</td>
<td width="100">{$collection.views|number_format}</td>
<td width="100">
<a onclick="collection_actions('collectionItem','remove_collection_item','{$collection.photo_id}','#removeItemContainer','{$type}','{$c.collection_id}')" id="collectionItem{$collection.photo_id}" href="javascript:void(0);"><img src="{$imageurl}/cancel.png" width="16" height="16" /></a>
<div id="removeItemContainer_{$collection.photo_id}" style="display:none"></div>
</td>
</tr>
</table>
</div>
{/if}
{/if}
{if $display_type == "favorite"}
<tr>
<td width="25"><input type="checkbox" name="check_col[]" id="check_col-{$collection.collection_id}" value="{$collection.collection_id}" />
</td>
<td valign="middle">
<label for="check_col-{$collection.collection_id}">
<img src="{$cbcollection->get_thumb($collection,'small',TRUE)}" border="0" class="acc_usr_video_thumb" />
</label>
{$collection.collection_name}
<div class="btn-group show">
<a class="btn btn-primary btn-sm" href="{$cbcollection->collection_links($collection,'view')}">{lang code="view"}</a>
<a class="btn btn-primary btn-sm" href="javascript:void(0)" onmousedown="delete_item('delete_coll','{$collection.collection_id}','{lang code="Are you sure you want to remove this collection from favorites?"}','?mode={$mode}&amp;remove_fav_collection={$collection.collection_id}');" id="delete_coll-{$collection.collection_id}">
{lang code="remove"}
</a>
</div>
</td>
<td width="100">{$collection.date_added|date_format}</td>
<td width="100">{$collection.type}</td>
<td width="100" class="last_td">{$collection.views|number_format}</td>
</tr>
{/if}