258 lines
11 KiB
Smarty
258 lines
11 KiB
Smarty
{include file='header.tpl'}
|
|
|
|
{* $Id: user_album_update.tpl 293 2010-01-21 01:16:21Z phil $ *}
|
|
|
|
<ul class="nav nav-tabs hidden-xs hidden-sm visible-md visible-lg form-tabs" style="border-bottom:2px solid black;">
|
|
<li role="presentation"><a href="user_album.php" class="jquerycss">My Albums</a></li>
|
|
<li role="presentation" class="active"><a href="/tagged_photos.php" class="jquerycss">Tagged Photos</a></li>
|
|
</ul><br>
|
|
<br>
|
|
<!--<img src='./images/icons/album_image48.gif' border='0' class='icon_big'>-->
|
|
<div class='page_header'><span style="font-size:20pt; font-weight:bold; text-transform:uppercase;">My Tagged Photos</span></div>
|
|
<div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
{* SHOW RESULT MESSAGE *}
|
|
{if $result != 0 && $files_total > 0}
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr><td class='success'><img src='./images/success.gif' border='0' class='icon'> {lang_print id=191}</td></tr>
|
|
</table>
|
|
<br>
|
|
{/if}
|
|
|
|
{* SHOW NO FILES MESSAGE IF NECESSARY, OTHERWISE SHOW ALBUM STATS *}
|
|
{if $files_total == 0}
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr><td class='result'>
|
|
<!--<img src='./images/icons/bulb16.gif' border='0' class='icon'>-->{lang_print id=1000100} <a href='user_album_upload.php?album_id={$album_info.album_id}'>{lang_print id=1000101}</a>
|
|
</td></tr></table>
|
|
<br>
|
|
{/if}
|
|
|
|
|
|
{if $maxpage > 1}
|
|
<div class='browse_pages'>
|
|
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?album_id={$album_info.album_id}&p=1"><span class="white arrow">«</span></a> <a href='{$smarty.server.PHP_SELF}?album_id={$album_info.album_id}&p={math equation='p-1' p=$p}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
| {foreach from=$for item=foo}
|
|
<a href='{$smarty.server.PHP_SELF}?album_id={$album_info.album_id}&p={$foo}'>{$foo}</a>
|
|
{/foreach} |
|
|
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?album_id={$album_info.album_id}&p={math equation='p+1' p=$p}'><span class="white arrow">›</span></a> <a href="{$smarty.server.PHP_SELF}?album_id={$album_info.album_id}&p={$maxpage}"><span class="white arrow">»</span></a>{else}<font class='disabled'><span class="white arrow">› »</span></font>{/if}
|
|
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
|
|
{lang_sprintf id=184 1=$p_start 2=$total_files}
|
|
{else}
|
|
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$files_total}
|
|
{/if}</span><br />
|
|
|
|
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="album_id" value="{$album_info.album_id}" /><input type="submit" value="Go" /></form>
|
|
</div>
|
|
|
|
|
|
{/if}
|
|
{* SHOW FILES IF THERE ARE ANY *}
|
|
{if $files_total > 0}
|
|
<div class="insidesearch">
|
|
|
|
{section name=files_loop loop=$files}
|
|
|
|
{* ASSIGN FIRST ID *}
|
|
{if $smarty.section.files_loop.first}{assign var='first_media_id' value=$files[files_loop].media_id}{/if}
|
|
|
|
{* IF IMAGE, GET THUMBNAIL *}
|
|
{assign var='has_thumb' value='0'}
|
|
|
|
{if $files[files_loop].media_ext == "jpeg" || $files[files_loop].media_ext == "jpg" || $files[files_loop].media_ext == "gif" || $files[files_loop].media_ext == "png" || $files[files_loop].media_ext == "bmp"||$files[files_loop].media_ext == "JPEG" || $files[files_loop].media_ext == "JPG" || $files[files_loop].media_ext == "GIF" || $files[files_loop].media_ext == "PNG" || $files[files_loop].media_ext == "BMP"}
|
|
{assign var='file_dir' value=$url->url_userdir($files[files_loop].user_id)}
|
|
{if $videos[video_loop].cloud==1}
|
|
{assign var='file_src' value="`$imagecdn1``$file_dir``$files[files_loop].media_id`_thumb.`$files[files_loop].media_ext`"}
|
|
{assign var='file_src1' value="`$imagecdn1``$file_dir``$files[files_loop].media_id`.`$files[files_loop].media_ext`"}
|
|
{else}
|
|
{assign var='file_src' value="`$imagecdn``$file_dir``$files[files_loop].media_id`_thumb.`$files[files_loop].media_ext`"}
|
|
{assign var='file_src1' value="`$imagecdn``$file_dir``$files[files_loop].media_id`.`$files[files_loop].media_ext`"}
|
|
{/if}
|
|
|
|
{assign var='has_thumb' value='1'}
|
|
{* SET THUMB PATH FOR AUDIO *}
|
|
{elseif $files[files_loop].media_ext == "mp3" || $files[files_loop].media_ext == "mp4" || $files[files_loop].media_ext == "wav"}
|
|
{assign var='file_src' value='./images/icons/audio_big.gif'}
|
|
{* SET THUMB PATH FOR VIDEO *}
|
|
{elseif $files[files_loop].media_ext == "mpeg" || $files[files_loop].media_ext == "mpg" || $files[files_loop].media_ext == "mpa" || $files[files_loop].media_ext == "avi" || $files[files_loop].media_ext == "swf" || $files[files_loop].media_ext == "mov" || $files[files_loop].media_ext == "ram" || $files[files_loop].media_ext == "rm"}
|
|
{assign var='file_src' value='./images/icons/video_big.gif'}
|
|
{* SET THUMB PATH FOR UNKNOWN *}
|
|
{else}
|
|
{assign var='file_src' value='./images/icons/file_big.gif'}
|
|
{/if}
|
|
|
|
<div class='videoTab col-md-3'>
|
|
|
|
<table cellpadding='0' cellspacing='0'>
|
|
|
|
<tr>
|
|
|
|
<td style='vertical-align: top; width: 140px; height: 140px; text-align:center;'>
|
|
<a href='{$url->url_create('album_file', $files[files_loop].user_username, $files[files_loop].media_album_id, $files[files_loop].media_id)}'><img src='{$file_src}?{$rand}' id='file_{$files[files_loop].media_id}' border='0' style='vertical-align: middle; width:auto; max-width:140px; height: auto; max-height:140px;'></a>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td style='vertical-align: top; padding-left: 5px;'>
|
|
<div>
|
|
|
|
<a href='{$url->url_create('album_file', $files[files_loop].user_username, $files[files_loop].media_album_id, $files[files_loop].media_id)}'>{$files[files_loop].media_title}</a>
|
|
</div>
|
|
<div style='margin-top: 10px;'>
|
|
|
|
{$files[files_loop].media_desc}
|
|
</div>
|
|
<div class='video_row_title'><a href='video_group.php?user={$videos[video_loop].video_author->user_info.user_username}&video_id={$videos[video_loop].video_id}&group_id={$videos[video_loop].video_group_id}'>{$video_title|truncate:55:'...':true}</a></div>
|
|
|
|
<div class='video_row_info' style=" color:#777777;"><a href="profile.php?user={$videos[video_loop].video_author->user_info.user_username}">{$videos[video_loop].video_author->user_info.user_displayname}</a><br />
|
|
|
|
|
|
|
|
{$files[files_loop].total_comments} comment {if $videos[video_loop].total_comments!=1}s{/if}<br />
|
|
{assign var="uploaddate" value=$datetime->time_since($files[files_loop].media_date)}
|
|
|
|
{capture assign="uploaded"}{lang_sprintf id=$uploaddate[0] 1=$uploaddate[1]}{/capture}
|
|
|
|
|
|
|
|
{lang_sprintf id=5500024 1=$uploaded}</div>
|
|
|
|
<div>
|
|
|
|
{section name=full_loop start=0 loop=$videos[video_loop].video_rating_full}
|
|
|
|
<!--<img src='./images/icons/video_rating_full_small.gif' border='0'>-->
|
|
|
|
{/section}
|
|
|
|
{if $videos[video_loop].video_rating_part}<!--<img src='./images/icons/video_rating_part_small.gif' border='0'>-->{/if}
|
|
|
|
{section name=none_loop start=0 loop=$videos[video_loop].video_rating_none}
|
|
|
|
<!--<img src='./images/icons/video_rating_none_small.gif' border='0'>-->
|
|
|
|
{/section}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
{/section}
|
|
<div class="clearfix"></div>
|
|
|
|
<br>
|
|
|
|
|
|
</div>
|
|
{* JAVASCRIPT FOR MOVING IMAGES *}
|
|
{literal}
|
|
<script type="text/javascript">
|
|
<!--
|
|
|
|
var first_id = '{/literal}{$first_media_id}{literal}';
|
|
function reorderMedia(id, prev_id) {
|
|
if(prev_id == first_id) {
|
|
$('moveup_'+prev_id).style.display = 'block';
|
|
$('moveup_'+id).style.display = 'none';
|
|
first_id = id;
|
|
}
|
|
$('media_'+id).inject('media_'+prev_id, 'before');
|
|
}
|
|
|
|
|
|
|
|
//-->
|
|
</script>
|
|
{/literal}
|
|
|
|
|
|
{/if}
|
|
{if $maxpage > 1}
|
|
<div class='browse_pages'>
|
|
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?album_id={$album_info.album_id}&p=1"><span class="white arrow">«</span></a> <a href='{$smarty.server.PHP_SELF}?album_id={$album_info.album_id}&p={math equation='p-1' p=$p}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
| {foreach from=$for item=foo}
|
|
<a href='{$smarty.server.PHP_SELF}?album_id={$album_info.album_id}&p={$foo}'>{$foo}</a>
|
|
{/foreach} |
|
|
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?album_id={$album_info.album_id}&p={math equation='p+1' p=$p}'><span class="white arrow">›</span></a> <a href="{$smarty.server.PHP_SELF}?album_id={$album_info.album_id}&p={$maxpage}"><span class="white arrow">»</span></a>{else}<font class='disabled'><span class="white arrow">› »</span></font>{/if}
|
|
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
|
|
{lang_sprintf id=184 1=$p_start 2=$total_files}
|
|
{else}
|
|
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$files_total}
|
|
{/if}</span><br />
|
|
|
|
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="album_id" value="{$album_info.album_id}" /><input type="submit" value="Go" /></form>
|
|
</div>
|
|
|
|
|
|
{/if}
|
|
<script>
|
|
updateQueryStringParam( 'task', null );
|
|
</script>
|
|
|
|
|
|
<div id='editvideo' style="display:none;">
|
|
|
|
<div class="modal-dialog"><button type="button" class="close main-bg-color alt-text-color orangebg" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button><div class="modal-content" style="text-align:left;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<form action='user_album_update.php?album_id={$album_info.album_id}' name='editForm' method='post' target='_parent' autocomplete="off">
|
|
<div style='margin-top: 10px;'>To edit your picture's title, description, and tags, complete the form below and click "Save Changes".
|
|
</div>
|
|
<br />
|
|
|
|
<b>Title</b><br>
|
|
<input name='media_title' id='media_title' type='text' class='text' maxlength='50' size='30' value=''>
|
|
<br />
|
|
<br />
|
|
|
|
<b>Caption</b><br>
|
|
<textarea name='media_desc' id='media_desc' rows='6' cols='50'></textarea>
|
|
<br /><br>
|
|
<strong>Move To</strong><br>
|
|
|
|
<select name='media_album_id' ><option value='{$album_info.album_id}'></option>
|
|
{section name=album_loop loop=$albums}
|
|
<option value='{$albums[album_loop].album_id}'>{$albums[album_loop].album_title|truncate:28:"...":true}</option>
|
|
{/section}</select>
|
|
|
|
<div class="tagscontainer">
|
|
<div class="toshowusers"></div>
|
|
|
|
<div class="tagcontainer">Tag other members appearing in this photo:</div><div><input type="text" name="tag" id="tag" class="tag"><div class="usersuggestions"></div>
|
|
</div>
|
|
|
|
<input type='hidden' name='tags' id='tags' class="tags" value=''>
|
|
<input type='hidden' name='task' id='task' class="tags" value='updatemedia'>
|
|
</div>
|
|
|
|
|
|
<br>
|
|
<input type='submit' class='button' value='{lang_print id=173}' />
|
|
<input type='button' class='button' value='{lang_print id=39}' onClick='closemodal();' />
|
|
<input type='hidden' name='task' value='editmedia' />
|
|
|
|
<input type='hidden' name='media_id' id='media_id' value='0' />
|
|
</form>
|
|
<br />
|
|
<br />
|
|
</div></div>
|
|
</div>
|
|
|
|
|
|
{include file='footer.tpl'} |