Videos,groups and collection pages

This commit is contained in:
umaircb 2014-01-23 14:00:36 +00:00
parent 0bf088793d
commit 58cc31df1c
13 changed files with 1276 additions and 13 deletions

View file

@ -0,0 +1,66 @@
<table width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="200" align="left" valign="middle" class="left_head" style="text-indent:10px">Add New Group</td>
<td class="head">&nbsp;</td>
<td width="100" class="right_head">&nbsp;</td>
</tr>
</table>
<form name="add_group" action="" method="post" enctype="multipart/form-data">
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="block">
<tr>
<td class="td_body">&nbsp;</td>
<td align="right" class="td_body">* are required fields</td>
</tr>
<tr>
<td valign="top" class="td_body">Select User *</td>
<td class="td_body"><select name="users" tabindex="1" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;">
<option>Select User</option>
{section name=u_list loop=$users}
<option value="{$users[u_list].userid}">{$users[u_list].username}</option>
{/section}
</select></td>
</tr>
<tr>
<td valign="top" class="td_body">Group Title *</td>
<td class="td_body"><input name="title" id="title" tabindex="2" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;" /></td>
</tr>
<tr>
<td valign="top" class="td_body">Group Description *</td>
<td class="td_body"><p>
<textarea name="description" id="description" rows="5" tabindex="3" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;"></textarea>
<br />
</p></td>
</tr>
<tr>
<td class="td_body">Group Tags *</td>
<td align="left" class="td_body"><input name="tags" id="tags" tabindex="4" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;" /></td>
</tr>
<tr>
<td class="td_body">Group Url *</td>
<td align="left" class="td_body"><input name="gp_url" id="gp_url" tabindex="5" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;" /> <small>Only these characters are allowed. a-z, 0-9, hypen(-), underscore(_), period(.)</small></td>
</tr>
<tr>
<td class="td_body">Group Type</td>
<td align="left" class="td_body"><input name="gptype" type="radio" value="0" tabindex="6" checked="checked">Public<BR/> <input name="gptype" type="radio" tabindex="7" value="1">Private<BR/> <input name="gptype" type="radio" tabindex="8" value="2">Only Invited Members</td>
</tr>
<tr>
<td class="td_body">Group Category *</td>
<td align="left" class="td_body">
<select name="category" tabindex="9" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;">
<option>Choose A Category</option>
{section name=cat_list loop=$category}
<option value="{$category[cat_list].category_id}">{$category[cat_list].category_name}</option>
{/section}
</select></td>
</tr>
<tr>
<td class="td_body">Group Thumb</td>
<td align="left" class="td_body">
<input type="file" name="gpThumb" id="gpThumb" tabindex="10" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;"/></td>
</tr>
<tr>
<td class="td_body">&nbsp;</td>
<td align="right" class="td_body"><input type="submit" tabindex="11" name="create_group" id="create_group" value="Add Group" class="button"/></td>
</tr>
</table>
</form>

View file

@ -18,8 +18,8 @@
<form action="category.php" method="post" enctype="multipart/form-data" name="add_category" id="Add Category">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="block">
<div class="form-group">
<tr>
<div class="form-group">
<label>Category Name*</label>
<input type="text" id="name" name="name" class="form-control" value="{'name'|post_form_val}">
</div>
@ -36,14 +36,14 @@
<div class="form-group">
<label>Make Default Category</label>
<br>
<input type="radio" name="default" id="default_0" value="yes" checked="checked">yes
<input type="radio" name="default" id="default_1" value="no" >no
<input type="radio" class="pull-left" name="default" id="default_0" value="yes" checked="checked">Yes
<input type="radio" name="default" id="default_1" value="no" >No
</div>
</tr>
<tr>
<div class="form-group">
<label>Parent Category</label>
<label>Parent Category</label><br>
{cbCategories output="dropdown" name="parent_cat" id="parent_cat" blank_option=TRUE echo=TRUE type="video"}
</div>
</tr>
@ -155,9 +155,8 @@
<td>{if $category[list].category_desc}{$category[list].category_desc}{else}<em>N/A</em>{/if}</td>
<td>{$category[list].isdefault}</td>
<td>
<div>
<div style="position:relative; min-height: 100px">
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Options</button>
<div class="lead dropdown">
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Options<i class="caret"></i></button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
<li role="presentation"><a role="menuitem" tabindex="-1" href="?category={$category[list].category_id}">Edit</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:Confirm_Delete('?delete_category={$category[list].category_id}')">Delete</a>

View file

@ -0,0 +1,169 @@
<h2>Collection Categories</h2>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="200" align="left" valign="middle" class="left_head" style="text-indent:10px">Manage Collection Categories</td>
<td class="head">&nbsp;</td>
</tr>
<tr>
<td class="td_body">&nbsp;</td>
<td align="right" class="td_body">* are required fields</td>
</tr>
</table>
{if $edit_category != "show"}
<form action="collection_category.php" method="post" enctype="multipart/form-data" name="add_category" id="Add Category">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="block">
<tr>
<div class="form-group">
<tr>
<label>Category Name*</label>
<input type="text" id="name" name="name" class="form-control" value="{'name'|post_form_val}">
</div>
</tr>
<tr>
<div class="form-group">
<label>Category Description*</label>
<textarea name="desc" id="desc" cols="33" rows="5" class="form-control">{'desc'|post_form_val}</textarea>
</div>
<tr>
<div class="form-group">
<label>Make Default Category</label>
<br>
<input type="radio" name="default" id="default_0" value="yes" checked="checked">Yes
<input type="radio" name="default" id="default_1" value="no" >No
</div>
</tr>
<tr>
<div class="form-group">
<label>Category Thumb</label>
<input type="file" name="cat_thumb" id="cat_thumb" />
</div>
<tr>
<td>
<div class="form-group">
<input type="submit" name="add_cateogry" id="button" value="Add Category" onclick="return validate_category_form(add_category)" class="btn btn-primary btn-sm btn-block"/>
</div>
</td>
</tr>
</table>
</form>
{/if}
{if $edit_category == "show"}
<form action="" method="post" enctype="multipart/form-data" name="edit_category" id="Edit Category">
<input name="cid" value="{$cat_details.category_id}" type="hidden" />
<input name="cur_name" value="{$cat_details.category_name}" type="hidden" />
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td class="td_body">&nbsp;</td>
<td align="right" class="td_body">* are required fields</td>
</tr>
<tr>
<td valign="top" class="td_body">Category Name*</td>
<td class="td_body"><label>
<input name="name" type="text" id="name" value="{$cat_details.category_name}" size="45" />
</label></td>
</tr>
<tr>
<td valign="top" class="td_body">Category Description*</td>
<td class="td_body"><textarea name="desc" id="desc" cols="33" rows="5">{$cat_details.category_desc}</textarea></td>
</tr>
<tr>
<td valign="top" class="td_body">Make Default Category</td>
<td class="td_body"><p>
<label>
<input type="radio" name="default" value="yes" id="default_0" {if $cat_details.isdefault=='yes'} checked="checked"{/if} />
Yes</label>
<label>
<input name="default" type="radio" id="default_1" value="no" {if $cat_details.isdefault=='no'} checked="checked"{/if} />
No</label>
<br />
</p></td>
</tr>
<tr>
<td class="td_body">Category Thumb</td>
<td class="td_body"><label>
<input type="file" name="cat_thumb" id="cat_thumb" />
</label></td>
</tr>
<tr>
<td colspan="2" align="right" class="tr_head"><label>
<input type="submit" name="update_category" id="button" value="Update Category" onclick="return validate_category_form(edit_category)" class="button"/>
</label></td>
</tr>
</table>
</form>
{/if}
<div style="margin:10px 0px 10px 0px">
<span class="page_title">Category List</span>
</div>
{if $total != 0}
<form name="category" action="?update_order" method="post">
<table class="table table-bordered" width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="225" class="left_head" style="text-indent:10px">Category Name</td>
<td width="75" align="left" class="head">Order</td>
<td width="225" align="left" class="head">Parent Category</td>
<td width="250" class="head">Description</td>
<td width="100" class="head">Default</td>
<td width="150" class="head">Action</td>
<td width="20" align="left" class="right_head">&nbsp;</td>
</tr>
{assign var = bgcolor value = ""}
{section name=list loop=$category}
<script type="text/javascript">
cat_div = "#thumbs_{$category[list].category_id}";
{literal}
$(function() { {/literal}
$("#thumbs_{$category[list].category_id}").tooltip({literal}{showURL: false,delay: 0});
});
{/literal}
</script>
<tr bgcolor="{$bgcolor}" class="item_listing">
<td style="text-indent:10px">{$category[list].category_name} - <a id="thumbs_{$category[list].category_id}" title="<img src='{$cbvid->get_category_thumb($category[list])}' />" href="javascript:void(0)">View Thumb</a></td>
<td >
<input name="category_order_{$category[list].category_id}" type="text" id="order" style="border:1px solid #999; padding:2px; width:30px" value="{$category[list].category_order}" size="5" maxlength="5" /></td>
{if $category[list].parent_id == "0"}
{assign var=p_name value="None"}
{else}
{assign var=p_name value=$cbvid->get_category_field($category[list].parent_id,'category_name')}
{/if}
<td>{$p_name}</td>
<td>{if $category[list].category_desc}{$category[list].category_desc}{else}<em>N/A</em>{/if}</td>
<td>{$category[list].isdefault}</td>
<td>
<div class="lead dropdown">
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Actions<i class="caret"></i></button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
<li role="presentation"><a role="menuitem" tabindex="-1" href="?category={$category[list].category_id}">Edit</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:Confirm_Delete('?delete_category={$category[list].category_id}')">Delete</a></li>
{if $category[list].isdefault!="yes"}<li role="presentation"><a role="menuitem" tabindex="-1"href="?make_default={$category[list].category_id}">Make Default</a></li>{/if}
</td>
<td>&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
<div><input type="submit" value="Update" name="update_order" class="btn btn-primary btn-sm" style="margin-top:10px"/></div>
</form>
{else}
No Category Has Been Created Yet
{/if}

View file

@ -0,0 +1,95 @@
{assign var=requiredFields value=$cbcollection->load_required_fields($data)}
{assign var=otherFields value=$cbcollection->load_other_fields($data)}
<form action="" method="post" enctype="multipart/form-data" name="edit_collection" id="edit_collection">
<div class="row">
<div class="lead dropdown">Editing {$data.collection_name}
<a class="btn btn-primary btn-sm dropdown-toggle pull-right" data-toggle="dropdown" href="">Actions <i class="caret"></i></a>
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownMenu1">
{if $data.active!='yes'}
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_collection.php?collection={$data.collection_id}&amp;mode=ac">Activate</a></li>
{else}
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_collection.php?collection={$data.collection_id}&amp;mode=dac">Deactivate</a></li>
{/if}
{if $data.featured!='yes'}
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_collection.php?collection={$data.collection_id}&amp;mode=mcf">Make Featured</a></li>
{else}
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_collection.php?collection={$data.collection_id}&amp;mode=mcuf">Make Unfeatured</a></li>
{/if}
<li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0)" onClick="javascript:Confirm_Delete('collection_manager.php?delete_collection={$data.collection_id}')">Delete This Collection</a>
</ul>
</div>
<div class="col-sm-6 col-md-6 col-lg-6 col x1-12">
<input class="form-control" name="admin" type="hidden" id="admin" value="true" />
<input name="collection_id" type="hidden" value="{$data.collection_id}" />
<div class="form-group">
<legend>User Information</legend>
<img src="{$userquery->getUserThumb($u,'small')}" class="img-thumbnail oneUserImage" />
<label>Useid</label>
<a href="view_user.php?uid={$data.userid}">{$data.userid|get_username}</a>
</div>
<div class="form-group">
<legend>Collection Details</legend>
<label for="collecionID">Collection ID</label>
<input disabled="disabled" class="form-control" name="collecionID" type="text" id="collecionID" value="{$data.collection_id}" size="45" />
</div>
{foreach from=$requiredFields item=field}
{$field.class='form-control'}
<div class="form-group">
<label>{$field.title} :</label>
<td>{$field.hint_1}<br />
{$formObj->createField($field)}<br/>
{$field.hint_2}</td>
</div>
{/foreach}
<div class="form-group">
<legend>Collection Stats</legend>
<label for="total_objects">Total Objects</label>
<input class="form-control" name="total_objects" type="text" id="total_objects" value="{$data.total_objects}" />
</div>
<div class="form-group">
<label for="total_comments">Total Comments</label>
<input name="total_comments" class="form-control" type="text" id="total_comments" value="{$data.total_comments}" />
</div>
<input type="submit" class="btn btn-primary" value="Update Collection Details" style="margin:15px 0px 0px 15px" name="update_collection">
</div>
<div class="col-sm-6 col-md-6 col-lg-6 col x1-12 pull-right">
<div class="head">Items</div>
{if $objects}
{section name=list loop=$objects}
{if $data.type == 'photos'}
{get_photo details=$objects[list] output='html' title=$photos[list].photo_title}
{/if}
{if $data.type == 'videos'}
<img src="{get_thumb vdetails=$objects[list]}" width="120" height="70" />
{/if}
{/section}
{assign var=rest value=$data.total_objects-4}
<a style="display:block; font:bold 11px Tahoma; text-align:center; padding:4px; background:#fafafa;border:1px solid #aaa;" href="manage_items.php?collection={$data.collection_id}&amp;type={$data.type}">Manage Items{if $rest && $rest>0} - {$rest} more item{if $rest>1}s{/if}{/if}</a>
{else}
Collection has 0 items
{/if}
<legend>Other Fields</legend>
<div class="form-group">
{foreach from=$otherFields item=field}
<label for="{$field.id}">{$field.title} :</label>
{$field.hint_1}<br />
{$formObj->createField($field)}<br/>
{$field.hint_2}
{/foreach}
</div>
<legend>Collection Preview</legend>
<div class="form-group">
<label>Collection Preview :</label>
<img style="padding:2px; border:1px solid #ccc;" src="{$cbcollection->get_thumb($data,NULL,TRUE)}" />
<input class="forum-control" type="checkbox" value="{$data.collection_id}" name="delete_preview" id="del_{$data.collection_id}_preview" /><label for="del_{$data.collection_id}_preview">Delete Preview</label>
</div>
<div class="form-group">
<label for="collection_thumb">Upload New :</label>
<input type="file" name="collection_thumb" id="collection_thumb" >
</div>
</div>
</div>
</form>

View file

@ -0,0 +1,101 @@
<h2>Edit Group</h2>
{* Loading Form Fields *}
{assign var='requiredFields' value=$cbgroup->load_required_fields($group,true)}
{assign var='optionFields' value=$cbgroup->load_other_fields($group)}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10" align="left" valign="middle" class="left_head" style="text-indent:10px">&nbsp;</td>
<td class="head">Editing {$group.title}</td>
<td width="100" class="right_head">&nbsp;</td>
</tr>
</table>
<form name="edit_group" method="post">
<fieldset class="fieldset">
<legend>Thumbs</legend>
<div style="width:140px; float:left" align="center">
<img src="{$cbgroup->get_group_thumb($group)}" border="1" style="margin:4px;max-height:120px; max-width:120px;" />
</div>
<div style="width:500px; float:left">
<li>{$LANG.grp_must_be} JPG | GIF | PNG</li>
<li>{$LANG.grp_90x90}</li>
<li>{$LANG.grp_thumb_warn}</li>
<input type="file" name="thumb_file" id="thumb_file" />
</div>
<div class="clearfix"></div>
</fieldset>
<fieldset class="fieldset">
<legend>Required Details</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$requiredFields item=field}
<tr>
<td width="200"><strong>{$field.title} </strong></td>
<td >{if $field.hint_1}{$field.hint_1}<br />{/if}
{if $field.anchor_before}{ANCHOR place=$field.anchor_before}<br />{/if}
{$formObj->createField($field)} <br />
{$field.hint_2}</td>
</tr>
{/foreach}
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Group Stats</legend>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<div class="form-group">
<td width="200" valign="top"><strong>Total Views</strong></td>
<td valign="top">
<input name="total_views" class="form-control" type="text" id="total_views" value="{$group.total_views}" /></td>
</div>
</tr>
<tr>
<div class="form-group">
<td valign="top"><strong>Total Members</strong></td>
<td valign="top" >
<input name="total_members" class="form-control" type="text" id="total_members" value="{$group.total_members}" /></td>
</div>
</tr>
<tr>
<div class="form-group">
<td valign="top"><strong>Total Videos</strong></td>
<td valign="top" >
<input name="total_videos" class="form-control" type="text" id="total_views4" value="{$group.total_videos}" /></td>
</div>
</tr>
<tr>
<div class="form-group">
<td valign="top"><strong>Total Topics</strong></td>
<td valign="top" >
<input name="total_topics" class="form-control" type="text" id="total_views5" value="{$group.total_topics}" /></td>
</div>
</tr>
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Other Details</legend>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$optionFields item=field}
<tr>
<td width="200"><strong>{$field.title} </strong></td>
<td >{if $field.hint_1}{$field.hint_1}<br />{/if}
{if $field.anchor_before}{ANCHOR place=$field.anchor_before}<br />{/if}
{$formObj->createField($field)} <br />
{$field.hint_2}</td>
</tr>
{/foreach}
</table>
</fieldset>
<div style="width:100%; margin:auto">
<input type="submit" class="btn btn-primary" value="Update Group details" style="margin:5px 0px 15px 0px" name="update_group" id="update_group">
</div>
</form>

View file

@ -0,0 +1,144 @@
{assign var='custom_upload_fields' value=$Upload->load_custom_upload_fields($data,TRUE)}
{assign var='video_fields' value=$Upload->load_video_fields($data)}
{if $data.title neq ""}
<form action="" method="post" name="edit_video" id="edit_video">
<div class="row">
<div class="lead dropdown">Editing {$data.title}
<a class="btn btn-primary btn-sm dropdown-toggle pull-right" data-toggle="dropdown" href="">Actions <i class="caret"></i></a>
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownMenu1">
{if $data.active!='yes'}
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_video.php?video={$data.videoid}&amp;mode=activate">Activate</a> </li>
{else}
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_video.php?video={$data.videoid}&amp;mode=deactivate">Deactivate</a> </li>
<li role="presentation">
{/if}
{if $data.featured!='yes'}
<a role="menuitem" tabindex="-1" href="edit_video.php?video={$data.videoid}&amp;mode=featured">Make Featured</a></li>
{else}
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_video.php?video={$data.videoid}&amp;mode=unfeature">Make Unfeatured</a></li>
{/if}
<li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0)" onClick="javascript:Confirm_Delete('video_manager.php?delete_video={$data.videoid}')">Delete This Video</a></li>
</ul>
</div>
<div class="col-sm-6 col-md-6 col-lg-6 col x1-12">
<input name="admin" type="hidden" id="admin" value="true"/>
<input name="admin" type="hidden" id="admin" value="true"/>
<input name="videoid" type="hidden" value="{$data.videoid}"/>
<div class="form-group">
<legend>User Information</legend>
<img src="{$userquery->getUserThumb($u,'small')}" class="img-thumbnail oneUserImage" />
<label>Useid</label>
<a href="view_user.php?uid={$data.userid}">{$data.userid|get_username}</a>
</div>
<legend>Important Details</legend>
<div class="form-group">
<label for="videoid">Video Id</label>
<input class="form-control" disabled="disabled" name="videoid" type="text" id="videoid" value="{$data.videoid}" size="45"/>
</div>
<div class="form-group">
<label for="videokey">Video Key</label>
<input class="form-control" disabled="disabled" name="videokey" type="text" id="videokey" value="{$data.videokey}" 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.file_name}" size="45"/>
</div>
<div class="form-group">
<label for="">Total Video Files</label>
{get_all_video_files vdetails=$data count_only=true} -
<a href="view_conversion_log.php?file_name={$data.file_name}">
<label>View File Details and Conversion Log</label></a>
<div class="form-group">
<label>Total Thumbnails</label>
<span class="form-control">{get_thumb vdetails=$data count_only=true}</span>
</div>
<div class="dropdown">
<a class="btn btn-info btn-sm dropdown-toggle" data-toggle="dropdown" href="">Thumbs<i class="caret"></i></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
{if $data.embeded !=yes}
<li role="presentation"><a role="menuitem" tabindex="-1" href="upload_thumbs.php?video={$data.videoid};gen_more=true">Regenerate</a>{/if}
</li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="upload_thumbs.php?video={$data.videoid}">Manage</a></li>
</ul>
{assign var=vidthumbs value=get_thumb($data,1,TRUE,FALSE,TRUE,FALSE)}
{foreach from=$vidthumbs item=vid_thumb}
<div style="width:140px; float:right" align="center">
<label for="{$vid_thumb|getname}">
<img src="{$vid_thumb}" border="1" style="margin:4px;max-width:120px"/><br/>
<input type="radio" value="{$vid_thumb|getname}.{$vid_thumb|getext}" id="{$vid_thumb|getname}" name="default_thumb" {if $data.default_thumb==$vid_thumb|get_thumb_num} checked="checked"{/if} />Default</label><br/>
{if $vid_thumb|getname!='processing'}
<a href="?video={$data.videoid}&delete={$vid_thumb|getname}.{$vid_thumb|getext}">Delete</a>
{/if}
</div>
</div>
{/foreach}
{foreach from=$requiredFields item=field}
{/foreach}
<div class="form-group">
<label class="status">Status</label>
<select class="form-control" name="status">
<option class="form-control" value="Successful" {if $data.status=='Successful'} selected {/if}>Successfull</option>
<option class="form-control" value="processing" {if $data.status=='Processing'} selected {/if}>Processing</option>
<option class="form-control" value="Failed"{if $data.status=='Failed'} selected {/if}>Failed</option>
</select>
</div>
<div class="form-group">
<label for="duration">Duration (seconds) </label>
<input class="form-control" name="duration" type="text" id="duration" value="{$data.duration} seconds" size="5"/>
</div>
<legend>Video Stats</legend>
<div class="form-group">
<label for="views">Views</label>
<input class="form-control" name="views" type="text" id="views" value="{$data.views}" size="45"/>
</div>
<div class="form-group">
<label for="rating">Rating</label>
<input class="form-control" name="rating" type="text" id="rating" value="{$data.rating}" size="5"/>
of 10
</div>
<div class="form-group">
<label for="rated_by">RatedBy</label>
<input class="form-control" name="rated_by" type="text" id="rated_by" value="{$data.rated_by}" size="45"/>
</div>
</div>
<legend>Custom Upload Fields</legend>
{foreach from=$custom_upload_fields item=field}
<div class="form-control">
<label>{$field.title}</label>
{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
<br>
{$field.hint_2}
</div>
{/foreach}
<div class="form-group">
<input type="submit" class="btn btn-primary" value="Update video details" style="margin:5px 0px 15px 0px" name="update">
</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-6 col x1-12 pull-right">
<div class="head">Viewing {$data.title}
{FlashPlayer vdetails = $data width='100%' autoplay='false'}
{foreach from=$video_fields item=field_group}
<legend>{$field_group.group_name}</legend>
{foreach from=$field_group.fields item=field}
<div class="form-group">
{$field.class='form-control'}
<label for="{$field.id}">{$field.title} </label>
{if $field.type=='radio'}
{$field.class='radio'}
{else}{$field.class='form-control'}
{/if}
{if $field.hint_1}{$field.hint_1}<br/>{/if}
{$formObj->createField($field)}
{if $field.hint_2}<br/>{$field.hint_2}{/if}
{/foreach}
{/foreach}
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
{assign var=id value=$data.videoid}{include file="$style_dir/blocks/comments.html" type=v id=$data.videoid link="video=$id"}
</form>
{/if}

View file

@ -0,0 +1,150 @@
{if $mode=='view'}
<h2>Flagged Groups Manager</h2>
<!-- DIsplaying Videos -->
<form name="flagged_video" method="post" id="flagged_video">
<table>
<tr>
<td>
<div class= "usersMenuButtons">
<input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" class="button"/>
<input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate" class="button" />
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete Groups" class="button" onclick="return confirm_it('Are you sure you want to delete these group(s)')"/>
<input class="btn btn-primary btn-xs" type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected group(s)')"/>
</div>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<table class="table table-bordered">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" align="left" class="head">GP-ID</td>
<td class="head">Details</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<table class="table table-bordered">
{assign var = bgcolor value = ""}
{section name=gp_list loop=$groups}
<tr class="video_opt_td">
<td width="30" align="center" valign="top" class="video_opt_td"><input name="check_group[]" type="checkbox" id="check_group" value="{$groups[gp_list].group_id}" /></td>
<td width="50" align="left" valign="top" class="video_opt_td">{$groups[gp_list].group_id}</td>
<td valign="top" class="video_opt_td" >
<div style="float:left; width:60px; height:40px;" >
<img src="{$cbgroup->get_group_thumb($groups[gp_list])}" border="1" class="mid_user_thumb" width="50" height="50" />
</div>
<div style="position:relative; min-height: 45px">
<div class="col-md-10">
<a href="{$baseurl}/view_group.php?url={$groups[gp_list].group_url}" target="_blank" style="text-indent:10px">
{$groups[gp_list].group_name}
</a>
<div class="col-md-2" style="float:right; width:60px; height:40px;" >
Owner<strong> <a href="view_user.php?uid={$groups[gp_list].userid}">{$groups[gp_list].userid|get_username}</a></strong>
</div>
<div style="position:relative; min-height: 30px">
<div class="videoTitle row">
<span class="label"><strong> {if $groups[gp_list].group_privacy =="0"}Public{elseif $groups[gp_list].group_privacy =="1"}Private{else}Invited{/if}</strong></span>
<span class="label {if $u.usr_status == Ok}label- {else}label-success{/if}"><span></span><strong>{if $groups[gp_list].active=="yes"} Active{else}Inactive{/if}</strong></span>
<span class="label label-danger"><span>Members:</span><strong>{$groups[gp_list].total_members|number_format}</strong></span>
<span class="label label-info"><span>Flags:</span><strong>{$groups[gp_list].total_flags}</strong></span>
</span>
<td>
<div id="vid_opt-{$groups[gp_list].group_id}" class="dropdown">
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Actions<i class="caret"></i></button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
<li role="presentation"><a role="menuitem" tabindex="-1" href="{group_link details=$groups[gp_list]}" target="_blank">View</a> </li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_group.php?group_id={$groups[gp_list].group_id}">Edit</a></li>
{if $groups[gp_list].active == yes}
<li role="presentation"><a role="menuitem" tabindex="-1" href="?deactivate={$groups[gp_list].group_id}">Deactivate</a> {else}</li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?activate={$groups[gp_list].group_id}">Activate</a> {/if} </li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="{$baseurl}/manage_groups.php?mode=manage_videos&gid={$groups[gp_list].group_id}">Manage</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?delete_group={$groups[gp_list].group_id}">Delete</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?mode=view_flags&gid={$groups[gp_list].group_id}">View Flags</a></li>
<li class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?delete_flags={$groups[gp_list].group_id}">Delete Flags</a></li>
</div>
</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<div class= "usersMenuButtons">
<input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" class="button"/>
<input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate" class="button" />
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete Groups" class="button" onclick="return confirm_it('Are you sure you want to delete these group(s)')"/>
<input class="btn btn-primary btn-xs" type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected group(s)')"/>
</div>
</td>
</tr>
</table>
</form>
<!-- DIsplaying Videos Ends-->
{include file="$style_dir/blocks/pagination.html" }
{/if}
{if $mode=='view_flags'}
<span class="page_title">Viewing {$group.group_name} flags</span> &#8212; <a href="{group_link details=$group}">View Group</a> &#8226; <a href="edit_group.php?group_id={$group.group_id}">Edit Group</a> &#8226; <a href="?delete_flags={$group.group_id}">Delete Flags</a> &#8226; <a href="?delete_group={$group.group_id}">Delete Group</a>
<div style="margin-bottom:10px"></div>
<!-- DIsplaying Videos -->
<form name="video_manage" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="head">Flag Details</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{assign var = bgcolor value = ""}
{section name=list loop=$flags}
<tr class="video_opt_td" bgcolor="{$bgcolor}">
<td width="30" align="left" valign="top" class="video_opt_td">{$smarty.section.list.iteration}</td>
<td align="left" valign="top" class="video_opt_td">Reported as "{$flags[list].flag_type|flag_type}" by {$flags[list].userid|get_username} {$flags[list].date_added|niceTime}</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
</form>
{/if}

View file

@ -0,0 +1,136 @@
{if $mode=='view'}
<h2>Flagged Videos Manager</h2>
<!-- DIsplaying Videos -->
<form name="flagged_video" method="post" id="flagged_video">
<table>
<tr>
<td><img src="{$imageurl}/arrow_return.png" width="25" height="25"></td>
<td>
<div class= "usersMenuButtons">
<input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" class="button"/>
<input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate" class="button" />
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete Videos" class="button" onclick="return confirm_it('Are you sure you want to delete these videos')"/>
<input class="btn btn-primary btn-xs" type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected videos')"/>
</div>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<div class="checkbox">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" class="head_sep_left">VID</td>
<td class="head"><div class="head_sep_left" style="width:250px">Details</div></td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<table class="table table-bordered">
{assign var = bgcolor value = ""}
{section name=list loop=$videos}
<tr class="video_opt_td">
<td width="30" align="center" valign="top" class="video_opt_td"> <input name="check_video[]" type="checkbox" id="check_video" value="{$videos[list].videoid}" /></td>
<td width="50" align="left" valign="top" class="video_opt_td">{$videos[list].videoid}</td>
<td width="50" valign="top" class="video_opt_td">
<img src="{getThumb vdetails=$videos[list]}" width="130" height="80" id="thumbs_{$videos[list].videoid}"title="<img src='{getThumb vdetails=$videos[list] num=1}' /> <img src='{getThumb vdetails=$videos[list] num=2}' /> <img src='{getThumb vdetails=$videos[list] num=3}' />" /></td>
<td valign="top" class="video_opt_td">
<div style="position:relative; min-height: 30px">
<div class="videoTitle row">
<div class="col-md-10">
<a href="edit_video.php?video={$videos[list].videoid}" target="_blank" style="text-indent:10px">
{$videos[list].title|truncate:80}
</a>({if $videos[list].duration>1}{$videos[list].duration|SetTime}{else}00:00{/if})
</div>
<div class="col-md-2">
<a href="view_user.php?uid={$videos[list].userid}">{$videos[list].username}</a>
</div>
</div>
<strong>{$videos[list].date_added|niceTime}</strong>
{lang code='views'} : <strong>{$vdo.views|number_format}</strong>
<div class="labels">
<span class="label {if $u.usr_status == Ok}label-success{else}label-success{/if}"><strong>{$videos[list].active}</strong></span>
<span class="label {if $u.usr_status == Ok}label-success{else}label-success{/if}"><strong>{$videos[list].status}</strong></span>
<span class="label label-info"><span>Flags:<strong>{$videos[list].total_flags}</strong></span>
</span>
<td>
<div id="vid_opt-{$videos[list].videoid}" class="dropdown">
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Actions<i class="caret"></i></button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
<li role="presentation"><a role="menuitem" tabindex="-1" href="view_video.php?video={$videos[list].videoid}">View</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_video.php?video={$videos[list].videoid}">Edit</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?mode=view_flags&vid={$videos[list].videoid}">View Flags</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?delete_video={$videos[list].videoid}">Delete Video</a></li>
<li class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?delete_flags={$videos[list].videoid}">Delete Flags</a></li>
</div>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="{$imageurl}/arrow_return_invert.png" width="25" height="25"></td>
<td>
<div class= "usersMenuButtons">
<input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" class="button"/>
<input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate" class="button" />
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete Videos" class="button" onclick="return confirm_it('Are you sure you want to delete these videos')"/>
<input class="btn btn-primary btn-xs" type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected videos')"/>
</div>
</td>
</tr>
</table>
</form>
<!-- DIsplaying Videos Ends-->
{include file="$style_dir/blocks/pagination.html" }
{/if}
{if $mode=='view_flags'}
<span class="page_title">Viewing {$video.title} flags</span> &#8212; <a href="{$baseurl}/watch_video.php?v={$video.videokey}">View video</a> &#8226; <a href="edit_video.php?video={$video.videoid}">Edit video</a> &#8226; <a href="?delete_flags={$video.videoid}">Delete Flags</a> &#8226; <a href="?delete_video={$video.videoid}">Delete Video</a>
<div style="margin-bottom:10px"></div>
<!-- DIsplaying Videos -->
<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">&nbsp;</td>
<td class="head">Flag Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{assign var = bgcolor value = ""}
{section name=list loop=$flags}
<tr class="video_opt_td" bgcolor="{$bgcolor}">
<td width="30" align="left" valign="top" class="video_opt_td">{$smarty.section.list.iteration}</td>
<td align="left" valign="top" class="video_opt_td">Reported as "{$flags[list].flag_type|flag_type}" by {$flags[list].userid|get_username} {$flags[list].date_added|niceTime}</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
</form>
{/if}

View file

@ -0,0 +1,157 @@
<h2>Group Categories</h2>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="200" align="left" valign="middle" class="left_head" style="text-indent:10px">Manage Group Categories</td>
<td class="head">&nbsp;</td>
<td width="100" class="right_head">&nbsp;</td>
</tr>
<tr>
<td class="td_body">&nbsp;</td>
<td align="right" class="td_body">* are required fields</td>
</tr>
</table>
{if $edit_category != "show"}
<form action="group_category.php" method="post" enctype="multipart/form-data" name="add_category" id="Add Category">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="block">
<tr>
<div class="form-group">
<tr>
<label>Category Name*</label>
<input type="text" id="name" name="name" class="form-control" value="{'name'|post_form_val}">
</div>
</tr>
<tr>
<div class="form-group">
<label>Category Description*</label>
<textarea name="desc" id="desc" cols="33" rows="5" class="form-control">{'desc'|post_form_val}</textarea>
</div>
</tr>
<tr>
<div class="form-group">
<label>Make Default Category</label>
<br>
<input type="radio" name="default" id="default_0" value="yes" checked="checked">Yes
<input type="radio" name="default" id="default_1" value="no" >No
</div>
</tr>
<tr>
<div class="form-group">
<label>Category Thumb</label>
<input type="file" name="cat_thumb" id="cat_thumb" />
</div>
</tr>
<tr>
<td>
<div class="form-group">
<input type="submit" name="add_cateogry" id="button" value="Add Category" onclick="return validate_category_form(add_category)" class="btn btn-primary btn-sm btn-block"/></div></td>
</tr>
</table>
</form>
{/if}
{if $edit_category == "show"}
<form action="" method="post" enctype="multipart/form-data" name="edit_category" id="Edit Category">
<input name="cid" value="{$cat_details.category_id}" type="hidden" />
<input name="cur_name" value="{$cat_details.category_name}" type="hidden" />
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td valign="top" class="td_body">Category Name*</td>
<td class="td_body"><label>
<input name="name" type="text" id="name" value="{$cat_details.category_name}" size="45" />
</label></td>
</tr>
<tr>
<td valign="top" class="td_body">Category Description*</td>
<td class="td_body"><textarea name="desc" id="desc" cols="33" rows="5">{$cat_details.category_desc}</textarea></td>
</tr>
<tr>
<td valign="top" class="td_body">Make Default Category</td>
<td class="td_body"><p>
<label>
<input type="radio" name="default" value="yes" id="default_0" {if $cat_details.isdefault=='yes'} checked="checked"{/if} />
Yes</label>
<label>
<input name="default" type="radio" id="default_1" value="no" {if $cat_details.isdefault=='no'} checked="checked"{/if} />
No</label>
<br />
</p></td>
</tr>
<tr>
<td class="td_body">Category Thumb</td>
<td class="td_body"><label>
<input type="file" name="cat_thumb" id="cat_thumb" />
</label></td>
</tr>
<tr>
<td colspan="2" align="right" class="tr_head"><label>
<input type="submit" name="update_category" id="button" value="Update Category" onclick="return validate_category_form(edit_category)" class="button"/>
</label></td>
</tr>
</table>
</form>
{/if}
<div style="margin:10px 0px 10px 0px">
<span class="page_title">Category List</span>
</div>
{if $total != 0}
<form name="category" action="?update_order" method="post">
<table table class="table table-bordered" width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="250" class="left_head" style="text-indent:10px">Category Name</td>
<td width="50" align="left" class="head">Order</td>
<td width="250" class="head">Description</td>
<td width="100" class="head">Default</td>
<td width="150" class="head">Action</td>
<td width="20" align="left" class="right_head">&nbsp;</td>
</tr>
{assign var = bgcolor value = ""}
{section name=list loop=$category}
<script type="text/javascript">
cat_div = "#thumbs_{$category[list].category_id}";
{literal}
$(function() { {/literal}
$("#thumbs_{$category[list].category_id}").tooltip({literal}{showURL: false,delay: 0});
});
{/literal}
</script>
<tr bgcolor="{$bgcolor}" class="item_listing">
<td style="text-indent:10px">{$category[list].category_name} - <a id="thumbs_{$category[list].category_id}" title="<img src='{$cbgroup->get_category_thumb($category[list])}' />" href="javascript:void(0)">View Thumb</a></td>
<td >
<input name="category_order_{$category[list].category_id}" type="text" id="order" style="border:1px solid #999; padding:2px; width:30px" value="{$category[list].category_order}" size="5" maxlength="5" /></td>
<td>{if $category[list].category_desc}{$category[list].category_desc}{else}<em>N/A</em>{/if}</td>
<td>{$category[list].isdefault}</td>
<td>
<div class="lead dropdown">
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Options<i class="caret"></i></button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
<li role="presentation"><a role="menuitem" tabindex="-1" href="?category={$category[list].category_id}">Edit</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:Confirm_Delete('?delete_category={$category[list].category_id}')">Delete</a></li>
{if $category[list].isdefault!="yes"}<li role="presentation"><a role="menuitem" tabindex="-1" href="?make_default={$category[list].category_id}">Make Default</a></li>{/if}
</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
<div><input type="submit" value="Update" name="update_order" class="btn btn-primary btn-sm" style="margin-top:10px" /></div>
</form>
{else}
No Category Has Been Created Yet
{/if}
<br />
<br />

View file

@ -0,0 +1,153 @@
<h2>Groups Manager</h2>
<img src="{$imageurl}/dot.gif" class="sarch_button" onclick="toggle_search('groupsearchdiv')" />
<div class="search_box" id="groupsearchdiv" {if $smarty.cookies.show_groupsearchdiv_search!='show'} style="display:none"{/if}> <form id="group_search" name="group_search" method="get" action="groups_manager.php" class="video_search">
<table width="400" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="106" align="right"><label for="title">Group 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="groupid">Group id</label></td>
<td><input name="group_id" type="text" class="input" id="groupid" value="{'group_id'|get_form_val:true}" //></td>
</tr>
<tr>
<td align="right"><label for="tags">Group 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">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">Active</td>
<td><select name="active" id="active" class="input">
<option value="" ></option>
<option value="yes" {if $smarty.get.active=='yes'} selected="selected"{/if}>Yes</option>
<option value="no" {if $smarty.get.active=='no'} selected="selected"{/if}>No</option>
</select></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" valign="top">Category</td>
<td>
{$formObj->createField($cat_array)}
</td>
</tr>
</table>
<br />
<input type="submit" name="search" id="search" value="Search Form" class="button"/>
</form>
</div>
<form name="group_manage" method="post">
<table>
<tr>
<td>
<div class= "usersMenuButtons">
<input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" class="button"/>
<input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate" class="button" />
<input class="btn btn-primary btn-xs" type="submit" name="make_featured_selected" value="Make Featured" class="button"/>
<input class="btn btn-primary btn-xs" type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="button"/>
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected Groups(s)')"/>
</div>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<table class="table table-bordered">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" align="left" class="head">GP-ID</td>
<td class="head">Details</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<table class="table table-bordered">
{assign var = bgcolor value = ""}
{section name=gp_list loop=$groups}
<tr class="video_opt_td">
<td width="30" align="center" valign="top" class="video_opt_td"><input name="check_group[]" type="checkbox" id="check_group" value="{$groups[gp_list].group_id}" /></td>
<td width="50" align="left" valign="top" class="video_opt_td">{$groups[gp_list].group_id}</td>
<td valign="top" class="video_opt_td" >
<div style="float:left; width:60px; height:40px;" >
<img src="{$cbgroup->get_group_thumb($groups[gp_list])}" border="1" class="mid_user_thumb" width="50" height="50" />
</div>
<div style="position:relative; min-height: 25px">
<div class="col-md-10">
<a href="{$baseurl}/view_group.php?url={$groups[gp_list].group_url}" target="_blank" style="text-indent:10px">
{$groups[gp_list].group_name}
</a></div>
<div class="col-md-2" style="float:right; width:60px; height:40px;" >
Owner <a href="view_user.php?uid={$groups[gp_list].userid}">{$groups[gp_list].userid|get_username}</a></strong>
</div>
</div>
</div>
<div style="position:relative; min-height: 25px">
<div class="videoTitle row">
<span class="label"><span>Members:</span><strong>{$groups[gp_list].total_members|number_format}</strong> </span>
<span class="label {if $u.usr_status == Ok}label- {else}label-success{/if}"><span></span><strong>{if $groups[gp_list].active=="yes"} Active{else}Inactive{/if}</strong> </li></span>
<span class="label label-info"><strong> {if $groups[gp_list].group_privacy =="0"}Public{elseif $groups[gp_list].group_privacy =="1"}Private{else}Invited{/if}</strong> </li></span>
<td>
<div id="vid_opt-{$groups[gp_list].group_id}" class="dropdown">
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Actions<i class="caret"></i></button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
<li role="presentation"><a role="menuitem" tabindex="-1" href="{group_link details=$groups[gp_list]}" target="_blank">View</a> </li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_group.php?group_id={$groups[gp_list].group_id}">Edit</a></li>
{if $groups[gp_list].featured == yes}
<li role="presentation"><a role="menuitem" tabindex="-1" href="?unfeature={$groups[gp_list].group_id}">Make Unfeatured</a> {/if} </li>
{if $groups[gp_list].featured == no}
<li role="presentation"><a role="menuitem" tabindex="-1" href="?feature={$groups[gp_list].group_id}">Make Featured</a> {/if}</li>
{if $groups[gp_list].active == yes}
<li role="presentation"><a role="menuitem" tabindex="-1" href="?deactivate={$groups[gp_list].group_id}">Deactivate</a> {else} </li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?activate={$groups[gp_list].group_id}">Activate</a> {/if} </li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="{$baseurl}/manage_groups.php?mode=manage_videos&gid={$groups[gp_list].group_id}">Manage</a></li>
<li class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?delete_group={$groups[gp_list].group_id}">Delete</a></li>
</div>
</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
<table>
<tr>
<td>
<div class= "usersMenuButtons">
<input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" class="button"/>
<input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate" class="button" />
<input class="btn btn-primary btn-xs" type="submit" name="make_featured_selected" value="Make Featured" class="button"/>
<input class="btn btn-primary btn-xs" type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="button"/>
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected Groups(s)')"/>
</td>
</tr>
</table>
</form>
{include file="$style_dir/blocks/pagination.html" }

View file

@ -0,0 +1,45 @@
<h2>Mass Uploader</h2>
<div style="height:10px"></div>
{assign var=vid_files value=$cbmass->get_video_files()}
{if $vid_files}
<form name="mass_upload" method="post" class="cbform">
{foreach from=$vid_files item=file name=mass_files}
<input type="hidden" name="mass_up[]" value="{$file.title}" />
{assign var='requiredFields' value=$Upload->loadRequiredFields($file)}
{assign var='optionFields' value=$Upload->loadOptionFields($file)}
{assign var='locationFields' value=$Upload->loadLocationFields($file)}
{assign var='cust_fields' value=$Upload->custom_form_fields}
<div class="form-group">
#{$smarty.foreach.mass_files.iteration}
{$file.file} - <span style="font-size:11px; color:#06c">enter details</span>
</div>
{foreach from=$requiredFields item=field}
{$field.class='form-control'}
<div class="form-group">
<label for="{$field.id}" class="labels">{$field.title}</label>
{if $field.hint_1}<div class="hint">{$field.hint_1}</div><br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field,TRUE)}
{if $field.hint_2}<br>
<div class="hint">{$field.hint_2}</div>{/if}
</div>
{/foreach}
{/foreach}
<div style="width:100%; margin:10px auto" align="left">
<div style="padding:10px;border: dotted #0066cc 1px; background-color:#f5faff; " align="center"><input type="submit" name="mass_upload_video" id="mass_upload_video" value="Mass Upload Videos Now" class="btn btn-primary" /></div></div>
</form>
{else}
<div class="form-control">
NO VIDEO FOUND IN MASS UPLOAD FOLDER
</div>
{/if}

View file

@ -0,0 +1,48 @@
{if $data.title neq ""}
<h3>Manage Video Thumbs</h3>
<div class="lead dropdown">
<a class="btn btn-primary btn-sm dropdown-toggle pull-right" data-toggle="dropdown" href="">Actions <i class="caret"></i></a>
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownMenu1">
<li role="presentation"><a role="menuitem" tabindex="-1" href="upload_thumbs.php?video={$data.videoid}&gen_more=true">Regenerate Thumbs</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_video.php?video={$data.videoid}">Back to Edit Details</a></li>
</ul>
</div>
<form action="upload_thumbs.php?video={$data.videoid}" method="post" enctype="multipart/form-data" name="set_default_thumb" id="set_default_thumb">
<div class="row">
<div class="col-sm-6 col-md-6 col-lg-6 col-xs-12">
<div style="width:140px; float:left" align="center">
<label for="{$vid_thumb|getname}"><img src="{$vid_thumb}" border="1" style="margin:4px; max-width:120px" /><br />
<input class="radio" type="radio" value="{$vid_thumb|getname}.{$vid_thumb|getext}" id="{$vid_thumb|getname}" name="default_thumb" {if $data.default_thumb==$vid_thumb|getname|get_thumb_num} checked="checked"{/if} />Default</label><br />
{if $vid_thumb|getname!='processing'}
<a href="?video={$data.videoid}&delete={$vid_thumb|getname}.{$vid_thumb|getext}">Delete</a>
{/if}
</div>
<div align="center" style=" width:98%; margin:auto; margin-top:10px;">
<input class="btn btn-primary btn-danger" type="submit" name="update_default_thumb" value="Update Video Thumb" class="button"/>
</div>
</div>
<fieldset class="fieldset">
{assign var=vidthumbs value=get_thumb($data,1,TRUE,FLASE,TRUE,FALSE)}
{foreach from=$vidthumbs item=vid_thumb}
{/foreach}
</form>
<form action="upload_thumbs.php?video={$data.videoid}" method="post" enctype="multipart/form-data" name="form1">
<fieldset class="fieldset">
<h3 align="right">Upload New Thumb</h3>
<div align="right" style="width:1000px;"><a href="javascript:void(0)" onclick="$('#thumb_fileds').append('<input name=\'vid_thumb[]\' type=\'file\' /><br>')">+ Insert More</a></div>
<div align="right" id="thumb_fileds" style="margin:10px">
<input name="vid_thumb[]" type="file" />
<label for="thumb_file"></label>
<br />
</div>
</fieldset>
<div align="right" style=" width:98%; margin:auto; margin-top:10px;">
<input type="submit" name="upload_thumbs" value="Upload Thumb(s)" class="btn btn-primary"/>
</div>
</form>
<div style="height:20px"></div>
{/if}

View file

@ -117,20 +117,20 @@
<a href="view_user.php?uid={$videos[list].userid}">{$videos[list].username}</a>
</div>
</div>
<span class="label"><span>Uploaded:</span><strong>{$videos[list].date_added|niceTime}</strong> </span>
<span class="label"><li>{lang code='views'} : <strong>{$vdo.views|number_format}</strong></li></span>
<span class=""><span></span><strong>{$videos[list].date_added|niceTime}</strong> </span>
<span class="">{lang code='views'} : <strong>{$vdo.views|number_format}</strong></span>
<div class="labels" style="position: absolute; bottom: 0px;">
<span class="label label-primary"><span>Featured:</span><strong>{$videos[list].featured} </strong></span>
<span class="label {if $u.usr_status == Ok}label-success{else}label-success{/if}"><span>Active:</span><strong>{$videos[list].active}</strong> </span>
<span class="label label-info"><span>Status:</span><strong>{$videos[list].status}</strong> </span>
<span class="label label-primary"><strong>{if $videos[list].featured=='yes'}Featured{else}UnFeatured{/if}</strong></span>
<span class="label {if $u.usr_status == Ok}label-success{else}label-success{/if}"><strong>{if $videos[list].Active=='Yes'}NotActive{else}Active{/if}</strong> </span>
<span class="label label-info"><strong>{$videos[list].status}</strong> </span>
</div>
</div>
<td>
<div id="vid_opt-{$videos[list].videoid}" class="dropdown">
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Actions</button>
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Actions<i class="caret"></i></button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_video.php?video={$videos[list].videoid}" class="">Edit</a> </li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="{$baseurl}/watch_video.php?v={$videos[list].videokey}" target="_blank">Watch</a> {if $videos[list].featured == yes} </li>