335 lines
9.3 KiB
Smarty
335 lines
9.3 KiB
Smarty
{include file='header.tpl'}
|
|
{literal}
|
|
<style>.needsattention img{width:100px;}
|
|
.needsattention div, .pendingreview div, .deleted div{position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width:100px; height:auto;}
|
|
.needsattention{position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #d4a411;
|
|
opacity: 60%;}
|
|
.pendingreview img{width:100px;}
|
|
.pendingreview{position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #009529;
|
|
opacity: 60%;}
|
|
.deleted img{width:100px;}
|
|
.deleted{position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #ff0000;
|
|
opacity: 60%;}</style>
|
|
<script type="text/javascript">
|
|
|
|
function selectall(){
|
|
|
|
if(jQuery('#checkall').is(':checked')){
|
|
|
|
jQuery(".deletethis").prop('checked', true);
|
|
|
|
}
|
|
|
|
else{jQuery(".deletethis").prop('checked', false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
{/literal}
|
|
<link rel="stylesheet" href="/sam/club_admin/results.css">
|
|
<link rel="stylesheet" href="/sam/club_admin/profiles.css">
|
|
|
|
<!-- <link rel="stylesheet" href="interesttags.css"> for future interest tagging system (pick your iterests) -->
|
|
|
|
<link rel="stylesheet" href="/sam/club_admin/style.css?s=21">
|
|
<div class="search">
|
|
|
|
<div class="nav-bar">
|
|
<a href=user_club_edit.php?club_id={$club->club_info.club_id}" >Club details</a>
|
|
<a href="user_club_edit_members.php?club_id={$club->club_info.club_id}" >Members</a>
|
|
<a href="user_club_edit_settings.php?club_id={$club->club_info.club_id}" >Club settings</a>
|
|
<a href="club_album.php?club_id={$club->club_info.club_id}">Edit photos</a>
|
|
<a href="editclubvideos.php?club_id={$club->club_info.club_id}" class="active">Edit videos</a>
|
|
<a href="club_event.php?club_id={$club->club_info.club_id}" >Edit events</a>
|
|
</div>
|
|
|
|
<div class="nav-bar-mobile">
|
|
<select class="mb10 form-control form-custom tabdropdown" id="tab_selector" onchange="window.location.href=this.value" fdprocessedid="qkqhxm">
|
|
|
|
<option value="user_club_edit.php?club_id={$club->club_info.club_id}" style="color:white;" 0="" videos="">Club details</option>
|
|
<option value="user_club_edit_members.php?club_id={$club->club_info.club_id}" disabled="" style="color:white;" 0="" groups="">Members</option>
|
|
<option value="user_club_edit_settings.php?club_id={$club->club_info.club_id}" disabled="" style="color:white;" 0="" blog="" entries="">Club settings</option>
|
|
<option value="club_album.php?club_id={$club->club_info.club_id}" disabled="" style="color:white;" 0="" forum="" posts="" >Edit photos</option>
|
|
<option value="editclubvideos.php?club_id={$club->club_info.club_id}" disabled="" style="color:white;" 0="" polls="" selected="selected">Edit videos</option>
|
|
<option value="club_event.php?club_id={$club->club_info.club_id}" disabled="" style="color:white;" 0="" groups="">Edit events</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="title_card">
|
|
|
|
<div class="title_info">
|
|
<h2>{capture assign="linked_clubname"}<a href='club.php?club_id={$club->club_info.club_id}'>{$club->club_info.club_title|truncate:30:"...":true}</a>{/capture}
|
|
|
|
|
|
Edit Club Videos: {$linked_clubname}
|
|
</h2>
|
|
<a href="javascript:opendivmodaliframe('club_video_upload.php?club_id={$club->club_info.club_id}');">
|
|
<!--<img src='./images/icons/club_addimages16.gif' border='0' class='button' style='float: left;'>-->Upload New Videos</a>
|
|
<p>
|
|
Edit club videos below.
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="title_buttons">
|
|
|
|
<a href='{$url->url_create("club", $smarty.const.NULL, $club->club_info.club_id)}' class="buttonlink">Back to my club</a>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{if $task1=="resize"}<h2>Thank you, your video will be resized</h2>{/if}
|
|
|
|
|
|
|
|
{php}editphotos();{/php}
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
{* SHOW SUBMIT BUTTONS *}
|
|
{*
|
|
<table cellpadding='0' cellspacing='0'>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<input type='submit' class='button' value='Delete Selected' name="delete">
|
|
|
|
<input type='hidden' name='task' value='dosave'>
|
|
|
|
<input type='hidden' name='club_id' value='{$club->club_info.club_id}'>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<form action='user_club.php' method='get'>
|
|
|
|
<input type='submit' class='button' value='{lang_print id=39}'>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</table>*}
|
|
{literal}<script type="text/javascript">
|
|
<!--
|
|
var video_id = 0;
|
|
function confirmDelete(id)
|
|
{
|
|
video_id = id;
|
|
opendivmodal('confirmdelete');
|
|
}
|
|
|
|
function deleteVideo()
|
|
{
|
|
var request = new Request({
|
|
'url' : 'editclubvideos.php',
|
|
'method' : 'post',
|
|
'data' : {
|
|
'task' : 'delete',
|
|
'video_id' : video_id
|
|
},
|
|
onComplete : function()
|
|
{
|
|
window.location = 'editclubvideos.php';
|
|
}
|
|
}).send();
|
|
}
|
|
|
|
|
|
function editVideo(id, title, desc, 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='editclubvideos.php?club_id={$club->club_info.club_id}' 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 *}
|
|
|
|
|
|
<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='club_id' value='{$club->club_info.club_id}' />
|
|
<input type='hidden' name='video_id' id='video_id' value='0' />
|
|
</form>
|
|
<br />
|
|
<br />
|
|
</div></div></div>
|
|
</div>
|
|
</div>
|
|
{include file='footer.tpl'} |