2014-01-24 06:03:24 +00:00
< h2 > Collection Manager< / h2 >
2014-02-04 14:08:41 +00:00
{include file="$layout_dir/blocks/advanced_collection_search.html" }
2014-01-24 06:03:24 +00:00
2014-02-04 14:08:41 +00:00
< form name = "video_manage" method = "post" >
< div class = "btn-group" >
2014-01-24 06:03:24 +00:00
< input class = "btn btn-primary btn-xs" type = "submit" name = "activate_selected" value = "Activate" class = "button" / >
< input class = "btn btn-primary btn-xs" type = "submit" name = "deactivate_selected" value = "Deactivate" class = "button" / >
< input class = "btn btn-primary btn-xs" type = "submit" name = "make_featured_selected" value = "Make Featured" class = "button" / >
< input class = "btn btn-primary btn-xs" type = "submit" name = "make_unfeatured_selected" value = "Make Unfeatured" class = "button" / >
2014-02-12 13:10:18 +00:00
< input class = "btn btn-primary btn-xs" type = "submit" name = "delete_selected" value = "Delete" class = "button" onclick = "return _cb.confirm_it('Are you sure you want to delete selected collection(s)')" / >
2014-02-04 14:08:41 +00:00
< / div >
2014-01-24 06:03:24 +00:00
< table class = "table table-bordered table-striped manageUsersTable" >
2014-02-04 14:08:41 +00:00
< tr >
< td >
2014-02-12 13:10:18 +00:00
< input type = "checkbox" name = "checkall" onclick = "_cb.checkUncheckAll(this);" / > < / td >
2014-02-04 14:08:41 +00:00
< td > C-ID< / td >
< td > Details< / td >
< td > Options< / td >
< / tr >
{if $c}
{section name=list loop=$c}
< tr >
< td >
< input name = "check_collection[]" type = "checkbox" id = "check_collection" value = "{$c[list].collection_id}" / > < / td >
< td > {$c[list].collection_id}< / td >
< td >
< div class = "row" >
< div class = "col-md-10" >
< div class = "row" >
< div class = "col-md-3" >
< img src = "{$cbcollection->get_thumb($c[list],'small',TRUE)}" / >
< / div >
< div class = "col-md-9" >
< a href = "{$baseurl}/admin_area/edit_collection.php?collection={$c[list].collection_id}" > {$c[list].collection_name}< / a > ({$c[list].total_objects} {$c[list].type})
< / a >
< div class = "labels" >
{if $c[list].featured=='yes'}< span class = "label label-primary" > Featured{else}{/if}< / span >
< span class = "label {if $c[list].active=='yes'}label-success{else}label-warning{/if}" > {if $c[list].active=='yes'}Active{else}NotActive{/if} < / span >
< span class = "label label-info" > < strong > {$c[list].type}< / strong > Type < / span >
< span class = "label label-info" > < strong > {$c[list].date_added|niceTime}< / strong > < / span >
< / div >
< / div >
2014-01-24 06:03:24 +00:00
< / div >
2014-02-04 14:08:41 +00:00
< / div >
2014-01-24 06:03:24 +00:00
< div class = "col-md-2" >
< a href = "view_user.php?uid={$c[list].userid}" > {$c[list].username}< / a >
< / div >
< / div >
< td >
2014-02-04 14:08:41 +00:00
< div class = "dropdown" >
< button id = "dropdownMenu1" class = "btn btn-primary btn-xs dropdown-toggle" data-toggle = "dropdown" > Actions < i class = "caret" > < / i > < / button >
2014-01-24 06:03:24 +00:00
< ul class = "dropdown-menu" aria-labelledby = "dropdownMenu1" role = "menu" >
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "edit_collection.php?collection={$c[list].collection_id}" class = "" > Edit< / a > < / li >
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "{$baseurl}/view_collection.php?cid={$c[list].collection_id}" > View< / a > < / li >
2014-02-04 14:08:41 +00:00
{if $c[list].featured == yes}
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "?make_unfeature={$c[list].collection_id}" > Make Unfeatured< / a > < / li > {/if}
2014-01-24 06:03:24 +00:00
{if $c[list].featured == no}
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "?make_feature={$c[list].collection_id}" > Make Featured< / a > < / li > {/if}
{if $c[list].active == yes}
2014-02-04 14:08:41 +00:00
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "?deactivate={$c[list].collection_id}" > Deactivate< / a >
< / li >
{else}
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "?activate={$c[list].collection_id}" > Activate< / a >
< / li >
{/if}
2014-01-24 06:03:24 +00:00
< li class = "divider" > < / li >
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "?delete_collection={$c[list].collection_id}" > Delete< / a > < / li >
{foreach from=$cbvid->video_manager_links item=links}
< / ul >
< / div >
2014-04-07 13:54:22 +00:00
< / td >
2014-01-24 06:03:24 +00:00
< / tr >
2014-04-07 13:54:22 +00:00
{/foreach}
2014-01-24 06:03:24 +00:00
{/section}
{else}
< div align = "center" > < strong > < em > No Photo Found< / em > < / strong > < / div >
{/if}
2014-04-07 13:54:22 +00:00
< / table >
< / form >
2014-01-24 06:03:24 +00:00
2014-02-04 14:08:41 +00:00
< div class = "btn-group" >
2014-01-24 06:03:24 +00:00
< input class = "btn btn-primary btn-xs" type = "submit" name = "activate_selected" value = "Activate" class = "button" / >
< input class = "btn btn-primary btn-xs" type = "submit" name = "deactivate_selected" value = "Deactivate" class = "button" / >
< input class = "btn btn-primary btn-xs" type = "submit" name = "make_featured_selected" value = "Make Featured" class = "button" / >
< input class = "btn btn-primary btn-xs" type = "submit" name = "make_unfeatured_selected" value = "Make Unfeatured" class = "button" / >
2014-02-12 13:10:18 +00:00
< input class = "btn btn-primary btn-xs" type = "submit" name = "delete_selected" value = "Delete" class = "button" onclick = "return _cb.confirm_it('Are you sure you want to delete selected collection(s)')" / >
2014-02-04 14:08:41 +00:00
< / div >
2014-01-24 06:03:24 +00:00
{include file="$style_dir/blocks/pagination.html" }