2014-01-23 14:00:36 +00:00
{assign var=requiredFields value=$cbcollection->load_required_fields($data)}
{assign var=otherFields value=$cbcollection->load_other_fields($data)}
2014-05-08 11:20:23 +00:00
< div class = "heading clearfix marginBottomLarge" >
< h2 class = "pull-left" > Editing < small > > > {$data.collection_name}< / small > < / h2 >
< div class = "pull-right" >
< span class = "btn btn-app btn-sm btn-light no-hover" >
< span class = "line-height-1 bigger-170 blue" > {$data.views|number_format}< / span >
< br >
< span class = "line-height-1 smaller-90" > Views < / span >
< / span >
< span class = "btn btn-app btn-sm btn-yellow no-hover" >
{$comments = $data.comments_count}
{if $comments > 0}
< span class = "line-height-1 bigger-170" > {$data.comments_count} < / span >
{else}
< span class = "line-height-1 bigger-170" > 0< / span >
{/if}
< br >
< span class = "line-height-1 smaller-90" > Comments < / span >
< / span >
< span class = "btn btn-app btn-sm btn-pink no-hover" >
< span class = "line-height-1" > {if $data.active=='yes'}< span class = "glyphicon glyphicon-ok" > < / span >
{else}< span class = "glyphicon glyphicon-remove" > {/if}< / span >
< br >
< span class = "line-height-1 smaller-90" > Active< / span >
< / span >
< / span >
< span class = "btn btn-app btn-sm btn-grey no-hover" >
< span class = "line-height-1" > {if $data.featured=='No'}< span class = "glyphicon glyphicon-ok" > < / span >
{else}< span class = "glyphicon glyphicon-remove" > {/if}< / span >
< br >
< span class = "line-height-1 smaller-90" > Featured< / span >
< / span >
< / span >
< span class = "btn btn-app btn-sm btn-primary no-hover" >
{if $FlaggedPhotos != NULL}
{$FlaggedPhotos[list].total_flags}
{section name=list loop=$FlaggedPhotos}
< span class = "line-height-1 bigger-170" >
{$FlaggedPhotos[list].total_flags}
< / span >
{/section}
< br >
< span class = "line-height-1 smaller-90" > Flagged < / span >
{else}
< span class = "line-height-1 bigger-170" >
0
< / span >
< br >
< span class = "line-height-1 smaller-90" > Flagged < / span >
{/if}
< / span >
< / div >
< / div >
< div class = "clearfix" >
< div class = "dropdown alignRight" >
< a class = "btn btn-primary btn-sm dropdown-toggle" data-toggle = "dropdown" href = "" > Actions < i class = "caret" > < / i > < / a >
< ul class = "dropdown-menu pull-right" role = "menu" aria-labelledby = "dropdownMenu1" >
{if $data.active!='yes'}
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "edit_collection.php?collection={$data.collection_id}&mode=ac" > Activate< / a > < / li >
{else}
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "edit_collection.php?collection={$data.collection_id}&mode=dac" > Deactivate< / a > < / li >
{/if}
{if $data.featured!='yes'}
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "edit_collection.php?collection={$data.collection_id}&mode=mcf" > Make Featured< / a > < / li >
{else}
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "edit_collection.php?collection={$data.collection_id}&mode=mcuf" > Make Unfeatured< / a > < / li >
{/if}
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "javascript:void(0)" onClick = "javascript:_cb.Confirm_Delete('collection_manager.php?delete_collection={$data.collection_id}')" > Delete This Collection< / a >
< / ul >
< / div >
< / div >
2014-01-23 14:00:36 +00:00
< form action = "" method = "post" enctype = "multipart/form-data" name = "edit_collection" id = "edit_collection" >
< div class = "row" >
< div class = "col-sm-6 col-md-6 col-lg-6 col x1-12" >
< input class = "form-control" name = "admin" type = "hidden" id = "admin" value = "true" / >
< input name = "collection_id" type = "hidden" value = "{$data.collection_id}" / >
2014-03-04 10:20:04 +00:00
< div class = "tabbable" >
< ul class = "nav nav-tabs" id = "myTab" >
< li class = "active" >
< a data-toggle = "tab" href = "#cldetails" >
Collection Details
< / a >
< / li >
< li class = "" >
< a data-toggle = "tab" href = "#uinformation" >
< i class = "glyphicon glyphicon-user" > < / i >
Uploader Information
< / a >
< / li >
< / ul >
< div class = "tab-content" >
< div id = "cldetails" class = "tab-pane active" >
2014-05-08 11:20:23 +00:00
< table class = "myTable" >
< tr >
< td class = "first" > < label for = "" > Collection Id< / label > < / td > < / td >
< td class = "last" > < p > < span > {$data.collection_id}< / span > < / p > < / td >
< / tr >
2014-03-04 10:20:04 +00:00
{foreach from=$requiredFields item=field}
{if $field.title=='Collection name'}
< tr >
2014-05-08 11:20:23 +00:00
< td class = "first" > < label for = "" > {$field.title}< / label > < / td >
< td class = "last" > < p > < span > {$data[$field.db_field]}< / span > < / p > < / td >
2014-03-04 10:20:04 +00:00
< / tr >
{/if}
{/foreach}
{foreach from=$requiredFields item=field}
{if $field.title=='Collection description'}
{$field.class='form-control'}
< tr >
2014-05-08 11:20:23 +00:00
< td class = "first" > < label for = "" > {$field.title}< / label > < / td >
< td class = "last" > < p > < span > {$data[$field.db_field]}< / span > < / p > < / td >
2014-03-04 10:20:04 +00:00
< / tr >
{/if}
{/foreach}
{foreach from=$requiredFields item=field}
{if $field.title=='Collection tags'}
{$field.class='form-control'}
< tr >
2014-05-08 11:20:23 +00:00
< td class = "first" > < label for = "" > {$field.title}< / label > < / td >
< td class = "last" > < p > < span > {$data[$field.db_field]}< / span > < / p > < / td >
2014-03-04 10:20:04 +00:00
< / tr >
{/if}
{/foreach}
{foreach from=$requiredFields item=field}
{if $field.title=='Collection type'}
{$field.class='form-control'}
< tr >
2014-05-08 11:20:23 +00:00
< td class = "first" > < label for = "" > {$field.title}< / label > < / td >
< td class = "last" >
< p > < span > {$data[$field.db_field]}< / span > < / p >
< / td >
2014-03-04 10:20:04 +00:00
< / tr >
{/if}
{/foreach}
2014-05-08 11:20:23 +00:00
< / table >
2014-03-04 10:20:04 +00:00
{foreach from=$requiredFields item=field}
{if $field.title=='Collection category'}
2014-05-08 11:20:23 +00:00
<!-- <label>{$field.title}</label>
2014-03-04 10:20:04 +00:00
< div class = "tab-content scroll" >
{$formObj->createField($field)}
2014-05-08 11:20:23 +00:00
< / div > -->
2014-03-04 10:20:04 +00:00
{/if}
{/foreach}
< / div >
< div id = "uinformation" class = "tab-pane" >
< div class = "form-group" >
< img src = "{$userquery->getUserThumb($u,'small')}" class = "btn btn-app btn-primary btn-xs" / >
< / div >
< div class = "table-responsive" >
2014-05-08 11:20:23 +00:00
< table class = "myTable" width = "600px" >
2014-03-04 10:20:04 +00:00
< tr >
2014-05-08 11:20:23 +00:00
< td class = "first" > < label > User Id< / label > < / td >
< td class = "last" > < p > < span > {$data.userid}< / span > < / p > < / td >
2014-03-04 10:20:04 +00:00
< / tr >
< tr >
2014-05-08 11:20:23 +00:00
< td class = "first" > < label > User Name< / label > < / td >
< td class = "last" > < p > < span > {$data.userid|get_username}< / span > < / p > < / td >
2014-03-04 10:20:04 +00:00
< / tr >
< tr >
2014-05-08 11:20:23 +00:00
< td class = "first" > < label > DOB< / label > < / td >
< td class = "last" > < p > < span > {$data.dob}< / span > < / p > < / td >
2014-03-04 10:20:04 +00:00
< / tr >
< tr >
2014-05-08 11:20:23 +00:00
< td class = "first" > < label > Email< / label > < / td >
< td class = "last" > < p > < span > {$data.email}< / span > < / p > < / td >
2014-03-04 10:20:04 +00:00
< / tr >
< tr >
2014-05-08 11:20:23 +00:00
< td class = "first" > < label > Gender< / label > < / td >
< td class = "last" > < p > < span > {$data.sex}< / span > < / p > < / td >
2014-03-04 10:20:04 +00:00
< / tr >
< tr >
2014-05-08 11:20:23 +00:00
< td class = "first" > < label > Rating< / label > < / td >
< td class = "last" > < p > < span > {$data.rating}< / span > < / p > < / td >
2014-03-04 10:20:04 +00:00
< / tr >
< / table >
< / div >
< / div >
< / div >
< br >
< div class = "row" >
< legend > Collection Stats< / legend >
< div class = "col-md-6" >
2014-01-23 14:00:36 +00:00
< label for = "total_objects" > Total Objects< / label >
< input class = "form-control" name = "total_objects" type = "text" id = "total_objects" value = "{$data.total_objects}" / >
< / div >
2014-03-04 10:20:04 +00:00
< div class = "col-md-6" >
2014-01-23 14:00:36 +00:00
< label for = "total_comments" > Total Comments< / label >
< input name = "total_comments" class = "form-control" type = "text" id = "total_comments" value = "{$data.total_comments}" / >
< / div >
2014-03-04 10:20:04 +00:00
< / div >
2014-01-23 14:00:36 +00:00
< input type = "submit" class = "btn btn-primary" value = "Update Collection Details" style = "margin:15px 0px 0px 15px" name = "update_collection" >
< / div >
2014-03-04 10:20:04 +00:00
< / div >
2014-01-23 14:00:36 +00:00
< div class = "col-sm-6 col-md-6 col-lg-6 col x1-12 pull-right" >
2014-04-15 11:45:14 +00:00
2014-04-15 12:34:50 +00:00
< div class = "tabbable" style = "margin-top: 20px" >
2014-03-04 10:20:04 +00:00
< ul class = "nav nav-tabs" id = "myTab3" >
< li class = "active" >
< a data-toggle = "tab" href = "#fields" >
Other Fields
< / a >
< / li >
< li >
< a data-toggle = "tab" href = "#clpreview" >
Collection Preview
< / a >
< / li >
2014-04-15 12:34:50 +00:00
< li >
< a data-toggle = "tab" href = "#citems" >
Manage Items
< / a >
< / li >
2014-03-04 10:20:04 +00:00
< / ul >
< div class = "tab-content" >
< div id = "fields" class = "tab-pane in active" >
2014-01-23 14:00:36 +00:00
< legend > Other Fields< / legend >
< div class = "form-group" >
{foreach from=$otherFields item=field}
2014-03-04 10:20:04 +00:00
< label class = "label label-danger" for = "{$field.id}" > {$field.title} :< / label >
2014-01-23 14:00:36 +00:00
{$field.hint_1}< br / >
{$formObj->createField($field)}< br / >
{$field.hint_2}
{/foreach}
< / div >
2014-03-04 10:20:04 +00:00
< / div >
< div id = "clpreview" class = "tab-pane" >
2014-01-23 14:00:36 +00:00
< legend > Collection Preview< / legend >
< div class = "form-group" >
2014-03-04 10:20:04 +00:00
< label class = "label label-danger" > Collection Preview :< / label >
2014-01-23 14:00:36 +00:00
< img style = "padding:2px; border:1px solid #ccc;" src = "{$cbcollection->get_thumb($data,NULL,TRUE)}" / >
< input class = "forum-control" type = "checkbox" value = "{$data.collection_id}" name = "delete_preview" id = "del_{$data.collection_id}_preview" / > < label for = "del_{$data.collection_id}_preview" > Delete Preview< / label >
< / div >
< div class = "form-group" >
< label for = "collection_thumb" > Upload New :< / label >
< input type = "file" name = "collection_thumb" id = "collection_thumb" >
< / div >
< / div >
2014-04-15 12:34:50 +00:00
< div id = "citems" class = "tab-pane" >
{if $objects}
{section name=list loop=$objects}
{if $data.type == 'photos'}
{get_photo details=$objects[list] output='html' title=$photos[list].photo_title}
{/if}
{if $data.type == 'videos'}
< img src = "{get_thumb vdetails=$objects[list]}" width = "120" height = "70" / >
{/if}
{/section}
{assign var=rest value=$data.total_objects-4}
< a style = "display:block; font:bold 11px Tahoma; text-align:center; padding:4px; background:#fafafa;border:1px solid #aaa;" href = "manage_items.php?collection={$data.collection_id}&type={$data.type}" > Manage Items{if $rest & & $rest>0} - {$rest} more item{if $rest>1}s{/if}{/if}< / a >
{else}
Collection has 0 items
{/if}
< / div >
2014-01-23 14:00:36 +00:00
< / div >
2014-03-04 10:20:04 +00:00
< / div >
< / div >
< / div >
2014-01-23 14:00:36 +00:00
< / form >