372 lines
9.4 KiB
Smarty
372 lines
9.4 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}
|
||
|
|
|
||
|
|
{* $Id: user_group_edit.tpl 34 2009-01-24 04:17:28Z 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_group_edit.php?group_id={$group->group_info.group_id}" class="jquerycss">{lang_print id=2000097}</a></li>
|
||
|
|
|
||
|
|
<li role="presentation"><a href="user_group_edit_members.php?group_id={$group->group_info.group_id}" class="jquerycss">{lang_print id=2000118}</a></li>
|
||
|
|
|
||
|
|
<li role="presentation"><a href="user_group_edit_settings.php?group_id={$group->group_info.group_id}" class="jquerycss">{lang_print id=2000119}</a></li>
|
||
|
|
|
||
|
|
<li role="presentation"><a href="group_album.php?group_id={$group->group_info.group_id}" class="jquerycss">Edit Photos</a></li>
|
||
|
|
|
||
|
|
<li class="active" role="presentation"><a href="editgroupvideos.php?group_id={$group->group_info.group_id}" class="jquerycss">Edit Videos</a></li>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</ul>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<div class="visible-xs visible-sm hidden-md hidden-lg">Select Tab:<br />
|
||
|
|
|
||
|
|
<select class="mb10 form-control form-custom visible-xs visible-sm hidden-md hidden-lg tabdropdown" id="tab_selector" onchange="window.location.href=this.value">
|
||
|
|
|
||
|
|
<option value="user_group_edit.php?group_id={$group->group_info.group_id}">{lang_print id=2000097}</option>
|
||
|
|
|
||
|
|
<option value="user_group_edit_members.php?group_id={$group->group_info.group_id}" >{lang_print id=2000118}</option>
|
||
|
|
|
||
|
|
<option value="user_group_edit_settings.php?group_id={$group->group_info.group_id}">{lang_print id=2000119}</option>
|
||
|
|
|
||
|
|
<option value="group_album.php?group_id={$group->group_info.group_id}">Edit Photos</option>
|
||
|
|
|
||
|
|
<option value="editgroupvideos.php?group_id={$group->group_info.group_id}" selected="selected">Edit Videos</option>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</select>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<br>
|
||
|
|
|
||
|
|
{if $task1=="resize"}<h2>Thank you, your video will be resized</h2>{/if}
|
||
|
|
|
||
|
|
<table cellpadding='0' cellspacing='0' width='100%'>
|
||
|
|
|
||
|
|
<tr>
|
||
|
|
|
||
|
|
<td valign='top'>
|
||
|
|
|
||
|
|
<img src='./images/icons/group_edit48.gif' border='0' class='icon_big' />
|
||
|
|
|
||
|
|
{capture assign="linked_groupname"}<a href='{$url->url_create("group", $smarty.const.NULL, $group->group_info.group_id)}'>{$group->group_info.group_title|truncate:30:"...":true}</a>{/capture}
|
||
|
|
|
||
|
|
<div class='page_header'><span class="groupheaderspan">Edit Group Videos: </span>{$linked_groupname}</div>
|
||
|
|
|
||
|
|
Edit group videos below.
|
||
|
|
|
||
|
|
</td>
|
||
|
|
|
||
|
|
<td valign='top' align='right'>
|
||
|
|
|
||
|
|
<table cellpadding='0' cellspacing='0'>
|
||
|
|
|
||
|
|
<tr>
|
||
|
|
|
||
|
|
<td class='button'>
|
||
|
|
|
||
|
|
<a href='user_group.php'>
|
||
|
|
|
||
|
|
<!--<img src='./images/icons/back16.gif' border='0' class='button' />-->
|
||
|
|
|
||
|
|
{lang_print id=2000120}
|
||
|
|
|
||
|
|
</a>
|
||
|
|
|
||
|
|
</td>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
|
||
|
|
</table>
|
||
|
|
|
||
|
|
</td>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
|
||
|
|
</table>
|
||
|
|
|
||
|
|
<br />
|
||
|
|
|
||
|
|
|
||
|
|
{*
|
||
|
|
<label><input type="checkbox" id="checkall" onclick="javascript:selectall();">Check all</label>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<form action="editgroupvideos.php?group_id={$group->group_info.group_id}" method="post">
|
||
|
|
*}
|
||
|
|
{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='group_id' value='{$group->group_info.group_id}'>
|
||
|
|
|
||
|
|
</form>
|
||
|
|
|
||
|
|
</td>
|
||
|
|
|
||
|
|
<td>
|
||
|
|
|
||
|
|
<form action='user_group.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' : 'editgroupvideos.php',
|
||
|
|
'method' : 'post',
|
||
|
|
'data' : {
|
||
|
|
'task' : 'delete',
|
||
|
|
'video_id' : video_id
|
||
|
|
},
|
||
|
|
onComplete : function()
|
||
|
|
{
|
||
|
|
window.location = 'editgroupvideos.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='editgroupvideos.php?group_id={$group->group_info.group_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='group_id' value='{$group->group_info.group_id}' />
|
||
|
|
<input type='hidden' name='video_id' id='video_id' value='0' />
|
||
|
|
</form>
|
||
|
|
<br />
|
||
|
|
<br />
|
||
|
|
</div></div></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{include file='footer.tpl'}
|