added: edit_photo, flagged_photo, orphan_photo, photo_manager, photo_setting pages
This commit is contained in:
parent
9ef7dc7bee
commit
2406e7b0f2
5 changed files with 718 additions and 0 deletions
134
upload/admin_area/styles/cb_2014/layout/edit_photo.html
Normal file
134
upload/admin_area/styles/cb_2014/layout/edit_photo.html
Normal file
|
@ -0,0 +1,134 @@
|
|||
<form action="" method="post" name="edit_photo" id="edit_photo">
|
||||
<h2>Editing {$data.photo_title}</h2>
|
||||
|
||||
<div class="btn-group">
|
||||
{if $data.collection_id != 0}
|
||||
<a class="btn btn-primary btn-sm" href="edit_collection.php?collection={$data.collection_id}">
|
||||
Edit Collection ({$data.collection_id|get_collection_field})
|
||||
</a>
|
||||
{else}
|
||||
<a class="btn btn-primary btn-sm" href="#collection_id">
|
||||
Photo is orpahn
|
||||
</a>
|
||||
{/if}
|
||||
{if $data.featured!='yes'}
|
||||
<a class="btn btn-primary btn-sm" href="edit_photo.php?photo={$data.photo_id}&mode=fp">
|
||||
Make Featured
|
||||
</a>
|
||||
{else}
|
||||
<a class="btn btn-primary btn-sm" href="edit_photo.php?photo={$data.photo_id}&mode=ufp">
|
||||
Make Unfeatured
|
||||
</a>
|
||||
{/if}
|
||||
<a class="btn btn-primary btn-sm" href="recreate_thumbs.php?mode=single&photo={$data.photo_id}">
|
||||
Re-create Photo
|
||||
</a>
|
||||
<a class="btn btn-primary btn-sm" href="javascript:void(0)" onClick="javascript:Confirm_Delete('photo_manager.php?delete_photo={$data.photo_id}')">
|
||||
Delete This Photo
|
||||
</a>
|
||||
<input name="admin" type="hidden" id="admin" value="true" />
|
||||
<input name="photo_id" type="hidden" value="{$data.photo_id}" />
|
||||
</div>
|
||||
|
||||
|
||||
<div class="userInformation">
|
||||
<h3>User Information</h3>
|
||||
<div class="">
|
||||
<h4>UserId : <a href="view_user.php?uid={$data.userid}">{$data.userid|get_username}</a></h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photoPreview">
|
||||
<h3>Photo Preview</h3>
|
||||
{get_photo details=$data size='l' output='html' style='max-width:600px'}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="importantDetails">
|
||||
<h3>Important Details</h3>
|
||||
<div class="form-group">
|
||||
<label for="photoid">Photo id</label>
|
||||
<input class="form-control" disabled="disabled" name="photoid" type="text" id="photoid" value="{$data.photo_id}" size="45" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="photokey">Photo Key</label>
|
||||
<input class="form-control" disabled="disabled" name="photokey" type="text" id="photokey" value="{$data.photo_key}" size="45" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="filename">File name</label>
|
||||
<input class="form-control" disabled="disabled" name="filename" type="text" id="filename" value="{$data.filename}" size="45" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="extension">Extension</label>
|
||||
<input class="form-control" disabled="disabled" name="extension" type="text" id="extension" value="{$data.ext}" size="45" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photoDetails">
|
||||
<h3>Photo Details</h3>
|
||||
{foreach from=$requiredFields item=field}
|
||||
<div class="form-group">
|
||||
{$field.class = 'form-control'}
|
||||
<label for="{$field.id}">{$field.title}</label>
|
||||
{$field.hint_1}
|
||||
{$formObj->createField($field)}
|
||||
{$field.hint_2}
|
||||
</div>
|
||||
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="photoStats">
|
||||
<h3>Photo Stats</h3>
|
||||
<div class="form-group">
|
||||
<label for="views">Views</label>
|
||||
<input class="form-control" name="views" id="views" value="{$data.views}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="total_favorites">Total favorites</label>
|
||||
<input class="form-control" name="total_favorites" id="total_favorites" value="{$data.total_favorites}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="total_comments">Total comments</label>
|
||||
<input class="form-control" name="total_comments" id="total_comments" value="{$data.total_comments}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="downloaded">Total download</label>
|
||||
<input class="form-control" name="downloaded" id="downloaded" value="{$data.downloaded}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="rating">Rating</label>
|
||||
<input class="form-control" name="rating" id="rating" disabled="disabled" value="{$data.rating}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="rated_by">Rated by</label>
|
||||
<input class="form-control" name="rated_by" id="rated_by" disabled="disabled" value="{$data.rated_by}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="voters">Voters</label>
|
||||
<textarea class="form-control" name="voters" id="voters" disabled="disabled">{$data.voters}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="otherFields">
|
||||
<h3>Other fields</h3>
|
||||
|
||||
{foreach from=$otherFields item=field}
|
||||
<div class="form-group">
|
||||
<label><strong>{$field.title}</strong></label>
|
||||
{$field.hint_1}
|
||||
<div class="radio">
|
||||
{$formObj->createField($field)}
|
||||
{$field.hint_2}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
|
||||
<input type="submit" class="btn btn-primary" value="Update Photo Details" name="update">
|
||||
|
||||
|
||||
</form>
|
120
upload/admin_area/styles/cb_2014/layout/flagged_photos.html
Normal file
120
upload/admin_area/styles/cb_2014/layout/flagged_photos.html
Normal file
|
@ -0,0 +1,120 @@
|
|||
{if $mode == 'view'}
|
||||
<h2>Flagged Photos Manager</h2>
|
||||
<form name="flagged_photo" method="post" id="flagged_photo">
|
||||
<div class="btn-group">
|
||||
<input type="submit" name="delete_selected" value="Delete Photos" class="btn btn-primary btn-sm" onclick="return confirm_it('Are you sure you want to delete these photo(s)')"/>
|
||||
<input type="submit" name="delete_flags" value="Delete Flags" class="btn btn-primary btn-sm" onclick="return confirm_it('Are you sure you want to delete flags of selected photo(s)')"/>
|
||||
</div>
|
||||
|
||||
<table class="table table-bordered table-striped">
|
||||
<tr>
|
||||
<td width="30" align="center" valign="middle" class="left_head">
|
||||
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
|
||||
<td width="75" align="left" class="head">Photo-ID</td>
|
||||
<td class="head">Details</td>
|
||||
<td width="50" class="right_head"> </td>
|
||||
</tr>
|
||||
|
||||
{if $photos}
|
||||
{section name=list loop=$photos}
|
||||
|
||||
<tr>
|
||||
<td class="moveL PhotoCheckBox">
|
||||
<div align="center">
|
||||
<input name="check_photo[]" type="checkbox" id="check_photo" value="{$photos[list].photo_id}" />
|
||||
</div>
|
||||
</td>
|
||||
<td>{$photos[list].photo_id}</td>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="AdminPhotoThumb col-md-3">
|
||||
{get_photo details=$photos[list] id='photo' style='padding:2px; border:1px solid #ccc' output='html'}
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
|
||||
<div class="vdo_sets">
|
||||
<h4>
|
||||
<a class="block" href="{$baseurl}/admin_area/edit_photo.php?photo={$photos[list].photo_id}">{$photos[list].photo_title}</a>
|
||||
</h4>
|
||||
<span class="label">Featured:<strong>{$photos[list].featured} </strong></span>
|
||||
<span class="label">
|
||||
{if $photos[list].collection_id}
|
||||
Collection:<strong><a title="Edit Collection" href="edit_collection.php?collection={$photos[list].collection_id}">{$photos[list].collection_id|get_collection_field}</a></strong>
|
||||
{else}
|
||||
Photo is Orphan
|
||||
{/if}
|
||||
</span>
|
||||
<span class="label">
|
||||
Uploaded:<strong>{$photos[list].date_added|niceTime}</strong>
|
||||
</span>
|
||||
<span class="label">
|
||||
User:<strong><a href="view_user.php?uid={$photos[list].userid}">{$photos[list].username}</a></strong>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-primary btn-xs dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown">Actions<i class="icon-angle-down icon-on-right"></i></button>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
|
||||
<li>
|
||||
<a href="edit_photo.php?photo={$photos[list].photo_id}">Edit</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{$baseurl}/view_item.php?item={$photos[list].photo_key}&type=photos&collection={$photos[list].collection_id}" target="_blank">View</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?mode=view_flags&pid={$photos[list].photo_id}">View Flags</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?delete_flags={$photos[list].photo_id}">Delete Flags</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?delete_photo={$photos[list].photo_id}">Delete Photo</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{/section}
|
||||
|
||||
{else}
|
||||
<tr align="center"><td> </td><td> </td><td>No Flags Found</td></tr>
|
||||
{/if}
|
||||
</table>
|
||||
<div class="btn-group">
|
||||
<input type="submit" name="delete_selected" value="Delete Photos" class="btn btn-primary btn-sm" onclick="return confirm_it('Are you sure you want to delete these photo(s)')"/>
|
||||
<input type="submit" name="delete_flags" value="Delete Flags" class="btn btn-primary btn-sm" onclick="return confirm_it('Are you sure you want to delete flags of selected photo(s)')"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
{include file="$style_dir/blocks/pagination.html" }
|
||||
{/if}
|
||||
|
||||
<!-- view flags still needs to be done -->
|
||||
|
||||
{if $mode == 'view_flags'}
|
||||
<span class="page_title">Viewing {$photo.photo_title} flags</span> — <a href="{$cbcollection->collection_links($photo,'view_item')}">View Photo</a> • <a href="edit_photo.php?photo={$photo.photo_id}">Edit Photo</a> • <a href="?delete_flags={$photo.photo_id}">Delete Flags</a> • <a href="?delete_photo={$photo.photo_id}">Delete Photo</a>
|
||||
<div style="margin-bottom:10px"></div>
|
||||
<form name="video_manage" method="post">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="30" align="center" valign="middle" class="left_head"> </td>
|
||||
<td class="head">Flag Details</td>
|
||||
<td width="50" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{section name=list loop=$flags}
|
||||
<li class="clearfix myAdminList" style="background:#{cycle values='FFFFFF,EEEEEE'}">
|
||||
<div class="moveL PhotoID" style="width:30px;">{$smarty.section.list.iteration}</div>
|
||||
<div class="moveL">
|
||||
Reported as "{$flags[list].flag_type|flag_type}" by {$flags[list].userid|get_username} {$flags[list].date_added|niceTime}
|
||||
</div>
|
||||
</li>
|
||||
{/section}
|
||||
</form>
|
||||
{/if}
|
86
upload/admin_area/styles/cb_2014/layout/orphan_photos.html
Normal file
86
upload/admin_area/styles/cb_2014/layout/orphan_photos.html
Normal file
|
@ -0,0 +1,86 @@
|
|||
<h2>Orphan Photos</h2>
|
||||
<form action="" method="post" name="manage_orpahns">
|
||||
|
||||
<div class="btn-group">
|
||||
<input type="submit" name="make_featured_selected" value="Make Featured" class="btn btn-primary btn-sm"/>
|
||||
<input type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="btn btn-primary btn-sm"/>
|
||||
<input type="submit" name="delete_selected" value="Delete" class="btn btn-primary btn-sm" onclick="return confirm_it('Are you sure you want to delete selected photos(s)')"/>
|
||||
</div>
|
||||
|
||||
<table class="table table-bordered table-striped">
|
||||
<tr>
|
||||
<td width="30" align="center" valign="middle" class="left_head">
|
||||
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
|
||||
<td width="75" align="center" valign="middle" class="head">Photo ID</td>
|
||||
<td class="head">Details</td>
|
||||
<td width="50" class="right_head"> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
{if $photos}
|
||||
|
||||
{section name=list loop=$photos}
|
||||
<tr class="clearfix myAdminList" style="background:#{cycle values='FFFFFF,EEEEEE'}" >
|
||||
|
||||
|
||||
<td>{$photos[list].photo_id}</td>
|
||||
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="AdminPhotoThumb col-md-3">
|
||||
{get_photo details=$photos[list] id='photo' style='padding:2px; border:1px solid #ccc' output='html'}
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
|
||||
<div class="vdo_sets">
|
||||
<h4>
|
||||
<a class="block" href="{$baseurl}/admin_area/edit_photo.php?photo={$photos[list].photo_id}">{$photos[list].photo_title}</a>
|
||||
</h4>
|
||||
<span class="label">Featured:<strong>{$photos[list].featured} </strong></span>
|
||||
<span class="label">
|
||||
{if $photos[list].collection_id}
|
||||
Collection:<strong><a title="Edit Collection" href="edit_collection.php?collection={$photos[list].collection_id}">{$photos[list].collection_id|get_collection_field}</a></strong>
|
||||
{else}
|
||||
Photo is Orphan
|
||||
{/if}
|
||||
</span>
|
||||
<span class="label">
|
||||
Uploaded:<strong>{$photos[list].date_added|niceTime}</strong>
|
||||
</span>
|
||||
<span class="label">
|
||||
User:<strong><a href="view_user.php?uid={$photos[list].userid}">{$photos[list].username}</a></strong>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-primary btn-xs dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown">Actions<i class="icon-angle-down icon-on-right"></i></button>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
|
||||
<li>
|
||||
<a href="edit_photo.php?photo={$photos[list].photo_id}">Edit</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0);" id="delete-{$photos[list].photo_id}" onmousedown="delete_item('delete','{$photos[list].photo_id}','Are you sure you want to delete? This will permanently delete {$photos[list].photo_title} from website.','?delete_photo={$photos[list].photo_id}');">
|
||||
Delete
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
</table>
|
||||
|
||||
|
||||
<div class="btn-group">
|
||||
<input type="submit" name="make_featured_selected" value="Make Featured" class="btn btn-primary btn-sm"/>
|
||||
<input type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="btn btn-primary btn-sm"/>
|
||||
<input type="submit" name="delete_selected" value="Delete" class="btn btn-primary btn-sm" onclick="return confirm_it('Are you sure you want to delete selected photos(s)')"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
{else}
|
||||
<div align="center"><strong><em>No Photo Found</em></strong></div>
|
||||
{/if}
|
169
upload/admin_area/styles/cb_2014/layout/photo_manager.html
Normal file
169
upload/admin_area/styles/cb_2014/layout/photo_manager.html
Normal file
|
@ -0,0 +1,169 @@
|
|||
<h2>Photo Manager</h2>
|
||||
<img src="{$imageurl}/dot.gif" class="sarch_button" onclick="toggle_search('searchdiv')" />
|
||||
<div class="search_box" id="searchdiv" {if $smarty.cookies.show_searchdiv_search!='show'} style="display:none"{/if}>
|
||||
<form action="photo_manager.php" method="get" name="search_photos">
|
||||
<table class="table table-bordered table-striped">
|
||||
<tr>
|
||||
<td width="106" align="right"><label for="title">Photo title</label></td>
|
||||
<td width="280"><input name="title" type="text" class="input" id="title" value="{'title'|get_form_val:true}" //></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><label for="photokey">Photo key</label></td>
|
||||
<td><input name="photokey" type="text" class="input" id="photokey" value="{'photokey'|get_form_val:true}" //></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><label for="photoid">Photo id</label></td>
|
||||
<td><input name="photoid" type="text" class="input" id="photoid" value="{'photoid'|get_form_val:true}" //></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><label for="tags">Photo tags</label></td>
|
||||
<td><input name="tags" type="text" class="input" id="tags" value="{'tags'|get_form_val:true}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">Userid</td>
|
||||
<td><input name="userid" type="text" class="input" id="userid" value="{'userid'|get_form_val:true}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">Featured</td>
|
||||
<td><label for="featured"></label>
|
||||
<select name="featured" id="featured" class="input">
|
||||
<option value="" ></option>
|
||||
<option value="yes" {if $smarty.get.featured=='yes'} selected="selected"{/if}>Yes</option>
|
||||
<option value="no" {if $smarty.get.featured=='no'} selected="selected"{/if}>No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">Extension</td>
|
||||
<td>
|
||||
<select name="extension" id="extension">
|
||||
<option value="" ></option>
|
||||
{foreach from=$cbphoto->exts item=ext}
|
||||
<option value="{$ext}"{if $smarty.get.extension == $ext} selected="selected"{/if}>{$ext|capitalize}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">Order</td>
|
||||
<td>
|
||||
<select name="order" id="order">
|
||||
<option value="" ></option>
|
||||
<option value="photo_id" {if $smarty.get.order == 'photo_id'}selected="selected"{/if}>ID</option>
|
||||
<option value="photo_title" {if $smarty.get.order == 'photo_title'}selected="selected"{/if}>Name</option>
|
||||
<option value="views" {if $smarty.get.order == 'views'}selected="selected"{/if}>Views</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input class="btn btn-primary" type="submit" name="search" id="search" value="Search Form"/>
|
||||
</form>
|
||||
</div>
|
||||
<form name="photo_manager" method="post">
|
||||
<div class="btn-group">
|
||||
<input type="submit" name="make_featured_selected" value="Make Featured" class="btn btn-primary btn-sm"/>
|
||||
<input type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="btn btn-primary btn-sm"/>
|
||||
<input type="submit" name="delete_selected" value="Delete" class="btn btn-primary btn-sm" onclick="return confirm_it('Are you sure you want to delete selected photos(s). This will permanently delete these photos from website.')"/>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<table class="table table-bordered table-striped">
|
||||
<tr>
|
||||
<td width="30" align="center" valign="middle" class="left_head">
|
||||
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
|
||||
<td width="75" align="center" valign="middle" class="head">Photo ID</td>
|
||||
<td class="head">Details</td>
|
||||
<td width="50" class="right_head"> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
{if $photos}
|
||||
|
||||
{section name=list loop=$photos}
|
||||
<tr>
|
||||
<td class="moveL PhotoCheckBox">
|
||||
<div align="center">
|
||||
<input name="check_photo[]" type="checkbox" id="check_photo" value="{$photos[list].photo_id}" />
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td>{$photos[list].photo_id}</td>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="AdminPhotoThumb col-md-3">
|
||||
{get_photo details=$photos[list] id='photo' style='padding:2px; border:1px solid #ccc' output='html'}
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
|
||||
<div class="vdo_sets">
|
||||
<h4>
|
||||
<a class="block" href="{$baseurl}/admin_area/edit_photo.php?photo={$photos[list].photo_id}">{$photos[list].photo_title}</a>
|
||||
</h4>
|
||||
<span class="label">Featured:<strong>{$photos[list].featured} </strong></span>
|
||||
<span class="label">
|
||||
{if $photos[list].collection_id}
|
||||
Collection:<strong><a title="Edit Collection" href="edit_collection.php?collection={$photos[list].collection_id}">{$photos[list].collection_id|get_collection_field}</a></strong>
|
||||
{else}
|
||||
Photo is Orphan
|
||||
{/if}
|
||||
</span>
|
||||
<span class="label">
|
||||
Uploaded:<strong>{$photos[list].date_added|niceTime}</strong>
|
||||
</span>
|
||||
<span class="label">
|
||||
User:<strong><a href="view_user.php?uid={$photos[list].userid}">{$photos[list].username}</a></strong>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-primary btn-xs dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown">Actions<i class="icon-angle-down icon-on-right"></i></button>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
|
||||
<li>
|
||||
<a href="edit_photo.php?photo={$photos[list].photo_id}">Edit</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{$baseurl}/view_item.php?item={$photos[list].photo_key}&type=photos&collection={$photos[list].collection_id}" target="_blank">View</a>
|
||||
</li>
|
||||
{if $photos[list].featured == yes}
|
||||
<li>
|
||||
<a href="?make_unfeature={$photos[list].photo_id}">Make Unfeatured</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $photos[list].featured == no}
|
||||
<li>
|
||||
<a href="?make_feature={$photos[list].photo_id}">Make Featured</a>
|
||||
</li>
|
||||
{/if}
|
||||
<li>
|
||||
<a href="javascript:void(0);" id="delete-{$photos[list].photo_id}" onmousedown="delete_item('delete','{$photos[list].photo_id}','Are you sure you want to delete? This will permanently delete {$photos[list].photo_title} from website.','?delete_photo={$photos[list].photo_id}');">
|
||||
Delete
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<div class="btn-group">
|
||||
<input type="submit" name="move_to_selected" value="Move To" class="btn btn-primary btn-sm"/>
|
||||
<input type="submit" name="make_featured_selected" value="Make Featured" class="btn btn-primary btn-sm"/>
|
||||
<input type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="btn btn-primary btn-sm"/>
|
||||
<input type="submit" name="delete_selected" value="Delete" class="btn btn-primary btn-sm" onclick="return confirm_it('Are you sure you want to delete selected photos(s)')"/>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
{else}
|
||||
<div align="center"><strong><em>No Photo Found</em></strong></div>
|
||||
{/if}
|
||||
|
||||
{include file="$style_dir/blocks/pagination.html" }
|
209
upload/admin_area/styles/cb_2014/layout/photo_settings.html
Normal file
209
upload/admin_area/styles/cb_2014/layout/photo_settings.html
Normal file
|
@ -0,0 +1,209 @@
|
|||
{if $mode == '' || $mode == 'photo_settings'}
|
||||
|
||||
<h2>Photo Settings</h2>
|
||||
|
||||
<form name="form1" method="post" id="photo_settings">
|
||||
<div class="photoResizing">
|
||||
<h3>Photo Resizing</h3>
|
||||
<div class="form-group">
|
||||
<label for="radio_id">
|
||||
Photo Ratio
|
||||
<P><small>
|
||||
Your photo thumb and medium size thumb will be resized according to these ratios
|
||||
</small></P>
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input name="photo_ratio" id="ratio_1" value="4:3" type="radio"{if $row.photo_ratio == '4:3'} checked{/if} />4:3
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input name="photo_ratio" id="ratio_3" value="16:9" type="radio"{if $row.photo_ratio == '16:9'} checked{/if} />16:9
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input name="photo_ratio" id="ratio_2" value="16:10" type="radio"{if $row.photo_ratio == '16:10'} checked{/if} />16:10
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photoBehaviour">
|
||||
<h3>Photo Behavior</h3>
|
||||
<div class="form-group">
|
||||
<label for="multi_photo">
|
||||
Multi-upload
|
||||
<p>
|
||||
<small>Number of photos, user can upload at once.</small>
|
||||
</p>
|
||||
</label>
|
||||
<input class="form-control" type="text" name="photo_multi_upload" id="multi_photo" value="{$row.photo_multi_upload}" >
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="max_photo_size">Max photo size
|
||||
<p>
|
||||
<small>Maximum allowed photo size, in MBs.</small>
|
||||
</p>
|
||||
</label>
|
||||
<input class="form-control" type="text" name="max_photo_size" id="max_photo_size" value="{$row.max_photo_size}" >
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="photo_download" id="photo_download" value="1" {if $row.photo_download == '1'}checked{/if}>
|
||||
Enable Photo Downloading
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="photo_comments" id="photo_comments" value="1"{if $row.photo_comments == '1'}checked{/if} >
|
||||
Enable Photo Comments
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="photo_rating" id="photo_rating" value="1"{if $row.photo_rating == '1'}checked{/if} >
|
||||
Enable Photo Rating
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="own_photo_rating" id="own_photo_rating" value="1"{if $row.own_photo_rating == '1'}checked{/if} />
|
||||
User can rate his own photo
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="image_width">
|
||||
Photo Width
|
||||
<p>
|
||||
<small>Height will automatically be updated according to your ratio selected</small>
|
||||
</p>
|
||||
</label>
|
||||
<input class="form-control" maxlength="3" type="text" name="photo_thumb_width" title="Thumb Width" id="image_width" value="{$row.photo_thumb_width}" />
|
||||
<input class="form-control" maxlength="3" title="Thumb Height" type="text" name="photo_thumb_height" id="image_height" value="{$row.photo_thumb_height}" readonly>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="med_width">
|
||||
Thumb Dimensions
|
||||
<p>
|
||||
<small>
|
||||
Medium Thumb Dimensions:
|
||||
</small>
|
||||
</p>
|
||||
</label>
|
||||
<input class="form-control" maxlength="3" title="Medium Thumb Width" type="text" name="photo_med_width" id="med_width" value="{$row.photo_med_width}" />
|
||||
<input class="form-control" maxlength="3" title="Medium Thumb Height" type="text" name="photo_med_height" id="med_height" value="{$row.photo_med_height}" readonly>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="lar_width">Large photo width</label>
|
||||
<input class="form-control" type="text" maxlength="3" name="photo_lar_width" id="lar_width" value="{$row.photo_lar_width}" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="crop_yes">
|
||||
Crop Image
|
||||
<p>
|
||||
<small>
|
||||
If Enable, your thumb and medium size will be cropped excatly to above dimensions if required.
|
||||
</small>
|
||||
</p>
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input value="1" type="radio" name="photo_crop" id="crop_yes" {if $row.photo_crop == '1'}checked{/if} />Enable
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input value="0" type="radio" name="photo_crop" id="crop_no" {if $row.photo_crop == '0'}checked{/if}/>Disable
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="submit" name="update" class="btn btn-primary" value="Update Settings" id="udpate" />
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
{if $mode == 'watermark_settings'}
|
||||
<h2>Watermark Settings</h2>
|
||||
<form action="" method="post" enctype="multipart/form-data">
|
||||
<div class="main_page_div clearfix">
|
||||
<fieldset>
|
||||
<div>
|
||||
<legend>Watermark Settings</legend>
|
||||
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200" valign="top">Enable Watermark</td>
|
||||
<td valign="top"><input name="watermark_photo" id="watermark_photo" type="checkbox" value="1"{if $row.watermark_photo == '1'} checked{/if} ></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="200" valign="top">Maximum Width <span class="smallText">Maximum Width of watermark image. Recommended is 120.</span></td>
|
||||
<td valign="top"><input name="watermark_max_width" id="watermark_max_width" type="text" value="{$row.watermark_max_width}" ></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="200" valign="top">Watermark Placement</td>
|
||||
<td valign="top">
|
||||
<div style="float:left; width:150px;">
|
||||
<input type="radio" name="watermark_placement" id="top_left" value="left:top"{if $row.watermark_placement == 'left:top'} checked{/if} />
|
||||
<label for="top_left">Top - Left</label><br/>
|
||||
<input type="radio" name="watermark_placement" id="top_right" value="right:top"{if $row.watermark_placement == 'right:top'} checked{/if} />
|
||||
<label for="top_right">Top - Right</label><br/>
|
||||
<input type="radio" name="watermark_placement" id="top_center" value="center:top"{if $row.watermark_placement == 'center:top'} checked{/if} />
|
||||
<label for="top_center">Top - Center</label><br/><br/>
|
||||
</div>
|
||||
|
||||
<div style="float:left; width:150px;">
|
||||
<input type="radio" name="watermark_placement" id="bottom_left" value="left:bottom"{if $row.watermark_placement == 'left:bottom'} checked{/if} />
|
||||
<label for="bottom_left">Bottom - Left</label><br/>
|
||||
<input type="radio" name="watermark_placement" id="bottom_right" value="right:bottom"{if $row.watermark_placement == 'right:bottom'} checked{/if} />
|
||||
<label for="bottom_right">Bottom - Right</label><br/>
|
||||
<input type="radio" name="watermark_placement" id="bottom_center" value="center:bottom"{if $row.watermark_placement == 'center:bottom'} checked{/if} />
|
||||
<label for="bottom_center">Bottom - Center</label><br/><br/>
|
||||
</div>
|
||||
<div style="float:left; width:150px;">
|
||||
<input type="radio" name="watermark_placement" id="left" value="left:center"{if $row.watermark_placement == 'left:center'} checked{/if} />
|
||||
<label for="left">Left</label><br/>
|
||||
<input type="radio" name="watermark_placement" id="right" value="right:center"{if $row.watermark_placement == 'right:center'} checked{/if} />
|
||||
<label for="right">Right</label><br/>
|
||||
<input type="radio" name="watermark_placement" id="center" value="center:center"{if $row.watermark_placement == 'center:center'} checked{/if} />
|
||||
<label for="center">Center</label><br/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div style="height:5px; clear:both"></div>
|
||||
<legend>Upload New Watermark</legend>
|
||||
<span class="smallText" style="font-size:11px;">This will over-write your existing watermark file, if exists.</span>
|
||||
<div style="height:5px; clear:both"></div>
|
||||
<input type="file" name="watermark_file" id="watermark_file" >
|
||||
</div>
|
||||
|
||||
<div class="main_page_div" style="float:right; width:200px; text-align:center; height:auto; min-height:0px;">
|
||||
<legend style="width:100%;">Current Watermark</legend>
|
||||
<div style="height:5px; clear:both"></div>
|
||||
{assign var=file value=$cbphoto->watermark_file()}
|
||||
{if $file}
|
||||
<img src="{$cbphoto->watermark_file()}" />
|
||||
{else}
|
||||
<strong>Watermark not found</strong>
|
||||
{/if}
|
||||
</div>
|
||||
</fieldset>
|
||||
</div> <!-- main_page_div end -->
|
||||
<div align="right"class="main_page_div" style="padding:5px; min-height:0px; margin-top:10px">
|
||||
<label>
|
||||
<input type="submit" name="update_watermark" class="button" value="Update Settings" id="update_watermark" />
|
||||
</label>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue