Files
Testing/templates/tagged_eventvideo.tpl
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

364 lines
11 KiB
Smarty

{include file='header.tpl'}{literal}<style>
.frmSearch {border: 1px solid #a8d4b1;background-color: #c6f7d0;margin: 2px 0px;padding:40px;border-radius:4px;}
#country-list{float:left;list-style:none;margin-top:-3px;padding:0;width:190px;position: absolute;}
#country-list li{padding: 10px; background: #fa3200; border-bottom: #fa3200 1px solid;}
#country-list li:hover{background:#000000;cursor: pointer;}
</style>{/literal}
{* $Id: user_video.tpl 148 2009-03-30 23:58:01Z john $ *}
<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_eventvideo.php" class="jquerycss">Event Videos</a></li>
<li role="presentation" class="active"><a href="tag_eventvideo.php" class="jquerycss">Tagged Videos</a></li>
</ul><br>
<br>
<!--<img src='./images/icons/video_video48.gif' border='0' class='icon_big' />-->
<div class='page_header'><span style="font-size:20pt; font-weight:bold; text-transform:uppercase;">Tagged Videos</span></div>
<div>You're tagged in {$videos_total} videos</div>
{if $user->usersetting_info.numvideos==-1}
{* if $videos_total < $user->level_info.level_video_maxnum *}
<div style='margin-top: 20px;'>
{* No youtube *}
{if $user->level_info.level_youtube_allow && FALSE}
<div class='button' style='float:left;'>
<a href='user_video_upload.php?task=youtube'><!--<img src='./images/icons/youtube.gif' border='0' class='button' />-->{lang_print id=5500186}</a>
</div>
{/if}
<div style='clear: both; height: 0px;'></div>
</div>
{* /if *}
{else}
{* UPLOAD NEW VIDEO BUTTON *}
{if $task1=="resize"}<h2>Thank you, your video will be resized</h2>{/if}
{if $user->usersetting_info.numvideos==0}
{if $videos_total < $user->level_info.level_video_maxnum}
<div style='margin-top: 20px;'>
{* No youtube *}
{if $user->level_info.level_youtube_allow && FALSE}
<div class='button' style='float:left;'>
<a href='user_video_upload.php?task=youtube'><!--<img src='./images/icons/youtube.gif' border='0' class='button' />-->{lang_print id=5500186}</a>
</div>
{/if}
<div style='clear: both; height: 0px;'></div>
</div>
{/if}
{else}
{if $user->usersetting_info.numvideos >= $videos_total}
<div style='margin-top: 20px;'>
{* No youtube *}
{if $user->level_info.level_youtube_allow && FALSE}
<div class='button' style='float:left;'>
<a href='user_video_upload.php?task=youtube'><!--<img src='./images/icons/youtube.gif' border='0' class='button' />-->{lang_print id=5500186}</a>
</div>
{/if}
<div style='clear: both; height: 0px;'></div>
</div>
{/if}
{/if}
{/if}
<br />
<div class="insidesearch">
{* LOOP THROUGH VIDEOS *}
{section name=video_loop loop=$videos}
{* ENSURE VIDEO TITLE ISN'T BLANK *}
{if $videos[video_loop].video_title == ""}{capture assign="video_title"}{lang_print id=589}{/capture}{else}{assign var="video_title" value=$videos[video_loop].video_title}{/if}
<div class='videoTab col-md-3'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td style='vertical-align: top;'>
<a href='video_event.php?user={$videos[video_loop].video_author->user_info.user_username}&video_id={$videos[video_loop].video_id}&event_id={$videos[video_loop].video_event_id}'>
<img src='{if $videos[video_loop].video_thumb}{if $videos[video_loop].cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$videos[video_loop].thumbfolder}{else}./images/video_placeholder.gif{/if}' border='0' class="hover videothumbnails"></a>
</td>
<td style='vertical-align: top; padding-left: 5px;'>
<div class='video_row_title'><a href='video_event.php?user={$videos[video_loop].video_author->user_info.user_username}&video_id={$videos[video_loop].video_id}&event_id={$videos[video_loop].video_event_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 />
{$videos[video_loop].video_duration_in_min} - {$videos[video_loop].total_comments} comment {if $videos[video_loop].total_comments!=1}s{/if} - {$videos[video_loop].video_views} view{if $videos[video_loop].video_views!=1}s{/if}<br />
{assign var="uploaddate" value=$datetime->time_since($videos[video_loop].video_datecreated)}
{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 style='clear: both; height: 0px;'></div>
</div>
{* IF NO VIDEOS, SHOW NOTE *}
{if $videos_total == 0}
<table cellpadding='0' cellspacing='0'>
<tr><td class='result'>
<!--<img src='./images/icons/bulb16.gif' border='0' class='icon' />-->{lang_print id=5500109}</div>
</td></tr>
</table>
{/if}
{* JAVASCRIPT FOR CONFIRMING DELETION *}
{literal}
<script type="text/javascript">
<!--
var video_id = 0;
function confirmDelete(id)
{
video_id = id;
opendivmodal('confirmdelete');
}
function deleteVideo()
{
var request = new Request({
'url' : 'user_video.php',
'method' : 'post',
'data' : {
'task' : 'delete',
'video_id' : video_id
},
onComplete : function()
{
window.location = 'user_video.php';
}
}).send();
}
function editVideo(id, title, desc, search, privacy, comments, tags)
{
content=jQuery("#editvideo").html();
jQuery("#myModal").html(content);
jQuery("#tag").val("");
jQuery("#tags").val("");
jQuery(".modal-content").css("background", "black")
jQuery('form input').keydown(function (e) {
if (e.keyCode == 13) {
selectUsertotag(jQuery(".usersuggestions").val());
e.preventDefault();
return false;
}
});
jQuery(".tag").keyup(function(){
jQuery.ajax({
type: "POST",
url: "misc_js.php?task=find_users_to_tag&input="+jQuery(this).val(),
data:'input='+jQuery(this).val(),
beforeSend: function(){
//jQuery("#usersuggestions").css("background","#FFF url(LoaderIcon.gif) no-repeat 165px");
},
success: function(data){
//alert(jQuery(this).parent(".tagscontainer").);
jQuery(".usersuggestions").show();
jQuery(".usersuggestions").html(data);
//jQuery("tag").css("background","#FFF");
}
});
});
$('video_id').value = id;
$('video_title').defaultValue = title;
$('video_title').value = title;
$('video_desc').defaultValue = desc;
$('video_desc').value = desc;
jQuery('.toshowusers').html(tags);
if( $('video_search_'+search) )
{
$('video_search_'+search).checked = true;
$('video_search_'+search).defaultChecked = true;
}
if( $('privacy_'+privacy) )
{
$('privacy_'+privacy).checked = true;
$('privacy_'+privacy).defaultChecked = true;
}
if( $('comments_'+comments) )
{
$('comments_'+comments).checked = true;
$('comments_'+comments).defaultChecked = true;
}
// opendivmodal('editvideo');
}
function selectUsertotag(val) {
who=jQuery(".tags").val();
whoarray=who.split(",");
alreadyin=0;
for(var i = 0; i < whoarray.length; i++){
if(val==whoarray[i]){alreadyin=1;}
}
if(alreadyin==0){
if(who==""){
jQuery(".tags").val(val);
}else{
jQuery(".tags").val(who+","+val);
}
jQuery(".toshowusers").append(val+"<br>");
}
who=jQuery(".tags").val();
whoarray1=who.split(",");
jQuery(".usersuggestions").hide();
jQuery(".tag").val("");
}
//-->
</script>
{/literal}
{* HIDDEN DIV TO DISPLAY CONFIRMATION MESSAGE *}
<div style='display: none;' id='confirmdelete'>
<div style='margin-top: 10px;'>
{lang_print id=5500146}
</div>
<br>
<input type='button' class='button' value='{lang_print id=175}' onClick='parent.deleteVideo();closemodal();'> <input type='button' class='button' value='{lang_print id=39}' onClick='closemodal();'>
</div>
{* HIDDEN DIV TO DISPLAY EDIT VIDEO *}
<div style='display: none;' id='editvideo'>
<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_video.php' name='editForm' method='post' target='_parent' autocomplete="off">
<div style='margin-top: 10px;'>{lang_print id=5500082}</div>
<br />
<b>{lang_print id=5500078}</b><br>
<input name='video_title' id='video_title' type='text' class='text' maxlength='50' size='30' value=''>
<br />
<br />
<b>{lang_print id=5500079}</b><br>
<textarea name='video_desc' id='video_desc' rows='6' cols='50'></textarea>
<br />
<br>
<div class="tagscontainer">
<div class="toshowusers"></div>
<div class="tagcontainer">Tag other members appearing in this video:</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=''>
<br>
{* SHOW SEARCH PRIVACY OPTIONS IF ALLOWED BY ADMIN *}
{if $user->level_info.level_video_search == 1}
<br>
<b>{lang_print id=5500014}</b><br>
<table cellpadding='0' cellspacing='0'>
<tr><td><label><input type='radio' name='video_search' id='video_search_1' value='1' /> {lang_print id=5500015}</label></td></tr>
<tr><td><label><input type='radio' name='video_search' id='video_search_0' value='0' /> {lang_print id=5500016}</label></td></tr>
</table>
{/if}
{* SHOW PRIVACY OPTIONS IF ALLOWED BY ADMIN *}
{if $privacy_options|@count > 1}
<br />
<b>{lang_print id=5500017}</b><br>
<table cellpadding='0' cellspacing='0'>
{foreach from=$privacy_options name=privacy_loop key=k item=v}
<tr>
<td><label><input type='radio' name='video_privacy' id='privacy_{$k}' value='{$k}' /> {lang_print id=$v}</label></td>
</tr>
{/foreach}
</table>
{/if}
{* SHOW COMMENT OPTIONS IF ALLOWED BY ADMIN *}
{if $comment_options|@count > 1}
<br />
<b>{lang_print id=5500018}</b><br>
<table cellpadding='0' cellspacing='0'>
{foreach from=$comment_options name=comment_loop key=k item=v}
<tr>
<td><label><input type='radio' name='video_comments' id='comments_{$k}' value='{$k}' /> {lang_print id=$v}</label></td>
</tr>
{/foreach}
</table>
{/if}
<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='edit' />
<input type='hidden' name='video_id' id='video_id' value='0' />
</form>
<br />
<br />
</div></div></div></div>
{include file='footer.tpl'}