Added new group system
22
upload/admin_area/add_group.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
require_once '../includes/admin_config.php';
|
||||
$userquery->admin_login_check();
|
||||
$pages->page_redir();
|
||||
|
||||
// Collecting Users List
|
||||
$userdata = $db->select("users","*");
|
||||
|
||||
// Creating Group if button is pressed
|
||||
if(isset($_POST['create_group'])) {
|
||||
$groups->createGroups($_POST);
|
||||
}
|
||||
|
||||
// Assigning Variables
|
||||
assign('users',$userdata);
|
||||
assign('category',$groups->get_categories());
|
||||
|
||||
template_files('add_group.html');
|
||||
display_it();
|
||||
|
||||
?>
|
|
@ -7,46 +7,64 @@
|
|||
****************************************************************************************************
|
||||
*/
|
||||
|
||||
require'../includes/admin_config.php';
|
||||
$userquery->login_check('admin_access');
|
||||
$pages->page_redir();
|
||||
require_once '../includes/admin_config.php';
|
||||
$gpid = mysql_clean($_GET['group_id']);
|
||||
|
||||
$group = mysql_clean($_GET['group']);
|
||||
//Updating Group
|
||||
if(isset($_POST['update'])){
|
||||
$msg = $groups->UpdateGroup(2);
|
||||
}
|
||||
if(!$groups->GroupExists($group) || $group == 'Array'){
|
||||
$msg = $LANG['grp_exist_error'];
|
||||
$show_group = 'No';
|
||||
}else{
|
||||
// Collecting Users List
|
||||
$userdata = $db->select("users","*");
|
||||
|
||||
$details = $groups->GetDetailsid($group);
|
||||
$group = $details['group_id'];
|
||||
$user = $_SESSION['username'];
|
||||
if(isset($_POST['update_group'])) {
|
||||
$groups->edit_group($_POST);
|
||||
}
|
||||
|
||||
//Assign Varialbes
|
||||
assign('users',$userdata);
|
||||
assign('category',$groups->get_categories());
|
||||
assign('group_details',$groups->group_details($gpid));
|
||||
|
||||
Assign('groups',$details);
|
||||
}
|
||||
template_files('edit_group.html');
|
||||
display_it();
|
||||
|
||||
//Assigning Category List
|
||||
$sql = "SELECT * from category";
|
||||
$rs = $db->Execute($sql);
|
||||
$total_categories = $rs->recordcount() + 0;
|
||||
$category = $rs->getrows();
|
||||
Assign('category', $category);
|
||||
|
||||
//If Update is true
|
||||
$update = mysql_clean($_GET['update']);
|
||||
if($update==true){
|
||||
$msg = $LANG['grp_update_msg'];
|
||||
}
|
||||
|
||||
//Assing Template
|
||||
Assign('country',$signup->country());
|
||||
Assign('msg',$msg);
|
||||
Template('header.html');
|
||||
Template('leftmenu.html');
|
||||
Template('message.html');
|
||||
Template('edit_group.html');
|
||||
Template('footer.html');
|
||||
//require'../includes/admin_config.php';
|
||||
//$userquery->login_check('admin_access');
|
||||
//$pages->page_redir();
|
||||
//
|
||||
//$gpid = mysql_clean($_GET['group_id']);
|
||||
////Updating Group
|
||||
//if(isset($_POST['update'])){
|
||||
// $msg = $groups->UpdateGroup(2);
|
||||
//}
|
||||
//if(!$groups->GroupExists($group) || $group == 'Array'){
|
||||
// $msg = $LANG['grp_exist_error'];
|
||||
// $show_group = 'No';
|
||||
//}else{
|
||||
//
|
||||
// $details = $groups->GetDetailsid($group);
|
||||
// $group = $details['group_id'];
|
||||
// $user = $_SESSION['username'];
|
||||
//
|
||||
//Assign('groups',$details);
|
||||
//}
|
||||
//
|
||||
////Assigning Category List
|
||||
// $sql = "SELECT * from category";
|
||||
// $rs = $db->Execute($sql);
|
||||
// $total_categories = $rs->recordcount() + 0;
|
||||
// $category = $rs->getrows();
|
||||
// Assign('category', $category);
|
||||
//
|
||||
////If Update is true
|
||||
//$update = mysql_clean($_GET['update']);
|
||||
//if($update==true){
|
||||
// $msg = $LANG['grp_update_msg'];
|
||||
//}
|
||||
//
|
||||
////Assing Template
|
||||
//Assign('country',$signup->country());
|
||||
//Assign('msg',$msg);
|
||||
//Template('header.html');
|
||||
//Template('leftmenu.html');
|
||||
//Template('message.html');
|
||||
//Template('edit_group.html');
|
||||
//Template('footer.html');
|
||||
?>
|
46
upload/admin_area/group_category.php
Normal file
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
/*
|
||||
*******************************************
|
||||
| Copyright (c) 2007-2009 Clip-Bucket.com & (Arslan Hassan). All rights reserved.
|
||||
| @ Author : ArslanHassan
|
||||
| @ Software : ClipBucket , © PHPBucket.com
|
||||
*******************************************
|
||||
*/
|
||||
|
||||
require_once '../includes/admin_config.php';
|
||||
|
||||
//Form Processing
|
||||
if(isset($_POST['add_cateogry'])){
|
||||
$groups->add_category($_POST);
|
||||
}
|
||||
|
||||
//Making Categoyr as Default
|
||||
if(isset($_GET['make_default']))
|
||||
{
|
||||
$cid = mysql_clean($_GET['make_default']);
|
||||
$groups->make_default_category($cid);
|
||||
}
|
||||
|
||||
//Edit Categoty
|
||||
if(isset($_GET['category'])){
|
||||
assign("edit_category","show");
|
||||
if(isset($_POST['update_category']))
|
||||
{
|
||||
$groups->update_category($_POST);
|
||||
}
|
||||
assign('cat_details',$groups->get_category($_GET['category']));
|
||||
}
|
||||
|
||||
//Delete Category
|
||||
if(isset($_GET['delete_category'])){
|
||||
$groups->delete_category($_GET['delete_category']);
|
||||
}
|
||||
|
||||
//Assing Category Values
|
||||
assign('category',$groups->get_categories());
|
||||
assign('total',$groups->total_categories());
|
||||
|
||||
|
||||
template_files('group_category.html'); display_it();
|
||||
|
||||
?>
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
/*
|
||||
****************************************************************************************************
|
||||
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
|
||||
| Copyright (c) 2007-2009 Clip-Bucket.com. All rights reserved. |
|
||||
| @ Author : ArslanHassan |
|
||||
| @ Software : ClipBucket , © PHPBucket.com |
|
||||
****************************************************************************************************
|
||||
|
@ -11,271 +11,57 @@ require_once '../includes/admin_config.php';
|
|||
$userquery->admin_login_check();
|
||||
$pages->page_redir();
|
||||
|
||||
|
||||
//Feature / UnFeature Video
|
||||
if(isset($_GET['make_feature'])){
|
||||
$group = mysql_clean($_GET['make_feature']);
|
||||
if($groups->GroupExists($group)){
|
||||
$msg[] = $groups->MakeFeatured($group);
|
||||
}else{
|
||||
$msg[] = $LANG['grp_err'];
|
||||
}
|
||||
}
|
||||
if(isset($_GET['make_unfeature'])){
|
||||
$group = mysql_clean($_GET['make_unfeature']);
|
||||
if($groups->GroupExists($group)){
|
||||
$msg[] = $groups->MakeUnFeatured($group);
|
||||
}else{
|
||||
$msg[] = $LANG['grp_err'];
|
||||
}
|
||||
}
|
||||
|
||||
//Using Multple Action
|
||||
if(isset($_POST['make_featured_selected'])){
|
||||
for($id=0;$id<=RESULTS;$id++){
|
||||
$groups->MakeFeatured($_POST['check_group'][$id]);
|
||||
}
|
||||
$msg = $LANG['grp_fr_msg'];
|
||||
}
|
||||
if(isset($_POST['make_unfeatured_selected'])){
|
||||
for($id=0;$id<=RESULTS;$id++){
|
||||
$groups->MakeUnFeatured($_POST['check_group'][$id]);
|
||||
}
|
||||
$msg = $LANG['grp_fr_msg1'];
|
||||
}
|
||||
|
||||
//Activate / Deactivate
|
||||
|
||||
if(isset($_GET['activate'])){
|
||||
$group = mysql_clean($_GET['activate']);
|
||||
if($groups->GroupExists($group)){
|
||||
$msg[] = $groups->Activate($group);
|
||||
}else{
|
||||
$msg[] = $LANG['grp_err'];
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_GET['deactivate'])){
|
||||
$group = mysql_clean($_GET['deactivate']);
|
||||
if($groups->GroupExists($group)){
|
||||
$msg[] = $groups->DeActivate($group);
|
||||
}else{
|
||||
$msg[] = $LANG['grp_err'];
|
||||
}
|
||||
}
|
||||
//Using Multple Action
|
||||
if(isset($_POST['activate_selected'])){
|
||||
for($id=0;$id<=RESULTS;$id++){
|
||||
$groups->Activate($_POST['check_group'][$id]);
|
||||
}
|
||||
$msg = $LANG['grp_ac_msg'];
|
||||
}
|
||||
if(isset($_POST['deactivate_selected'])){
|
||||
for($id=0;$id<=RESULTS;$id++){
|
||||
$groups->DeActivate($_POST['check_group'][$id]);
|
||||
}
|
||||
$msg = $LANG['grp_dac_msg'];
|
||||
}
|
||||
//Delete Group
|
||||
if(isset($_GET['delete_group'])){
|
||||
$group = mysql_clean($_GET['delete_group']);
|
||||
if($groups->GroupExists($group)){
|
||||
$msg[] = $groups->DeleteGroup($group);
|
||||
}else{
|
||||
$msg[] = $LANG['grp_err'];
|
||||
}
|
||||
}
|
||||
|
||||
//Deleting Multiple Videos
|
||||
if(isset($_POST['delete_selected'])){
|
||||
for($id=0;$id<=RESULTS;$id++){
|
||||
if($groups->GroupExists($_POST['check_group'][$id])){
|
||||
$groups->DeleteGroup($_POST['check_group'][$id]);
|
||||
}
|
||||
}
|
||||
$msg = $LANG['grp_del_msg'];
|
||||
}
|
||||
|
||||
|
||||
//Assigning Default Values
|
||||
@$values_search= array(
|
||||
'search_uname' => mysql_clean($_GET['username']),
|
||||
'search_tags' => mysql_clean($_GET['tags']),
|
||||
'search_category' => mysql_clean($_GET['category']),
|
||||
'search_title' => mysql_clean($_GET['name']),
|
||||
'search_active' => mysql_clean($_GET['active']),
|
||||
'search_featured' => mysql_clean($_GET['featured']),
|
||||
'search_sort' => mysql_clean($_GET['sort']),
|
||||
'search_order' => mysql_clean($_GET['order'])
|
||||
);
|
||||
while(list($name,$value) = each($values_search)){
|
||||
CBTemplate::assign($name,$value);
|
||||
// Deactivate Group
|
||||
if(isset($_GET['deactivate'])) {
|
||||
$groups->unactive_gp(mysql_clean($_GET['deactivate']));
|
||||
}
|
||||
|
||||
|
||||
//Pagination
|
||||
// Activate Group
|
||||
if(isset($_GET['activate'])) {
|
||||
$groups->active_gp(mysql_clean($_GET['activate']));
|
||||
}
|
||||
|
||||
$limit = RESULTS;
|
||||
Assign('limit',$limit);
|
||||
$page = clean(@$_GET['page']);
|
||||
Assign('limit',$limit);
|
||||
if(empty($page) || $page == 0){
|
||||
$page = 1;
|
||||
}
|
||||
$from = $page-1;
|
||||
$from = $from*$limit;
|
||||
|
||||
$query_limit = "limit $from,$limit";
|
||||
$order = "ORDER BY group_id ASC";
|
||||
$sql = "SELECT * from groups $order $query_limit";
|
||||
$sql_p = "SELECT * from groups";
|
||||
|
||||
//Search
|
||||
if(isset($_GET['search'])){
|
||||
$username = mysql_clean($_GET['username']);
|
||||
$title = mysql_clean($_GET['name']);
|
||||
$featured = mysql_clean($_GET['featured']);
|
||||
$active = mysql_clean($_GET['active']);
|
||||
$tags = mysql_clean($_GET['tags']);
|
||||
$category = mysql_clean($_GET['category']);
|
||||
$sort = mysql_clean($_GET['sort']);
|
||||
$order = mysql_clean($_GET['order']);
|
||||
|
||||
if($order == 'ASC'){
|
||||
if($sort == 'username'){ $orderby = 'ORDER BY username ASC';}
|
||||
if($sort == 'name'){ $orderby = 'ORDER BY group_name ASC';}
|
||||
if($sort == 'date_added'){ $orderby = 'ORDER BY date_added ASC';}
|
||||
if($sort == 'members'){ $orderby = 'ORDER BY total_members ASC';}
|
||||
if($sort == 'videos'){ $orderby = 'ORDER BY total_videos ASC';}
|
||||
}else{
|
||||
if($sort == 'username'){ $orderby = 'ORDER BY username DESC';}
|
||||
if($sort == 'name'){ $orderby = 'ORDER BY group_name DESC';}
|
||||
if($sort == 'date_added'){ $orderby = 'ORDER BY date_added DESC';}
|
||||
if($sort == 'members'){ $orderby = 'ORDER BY total_members DESC';}
|
||||
if($sort == 'videos'){ $orderby = 'ORDER BY total_videos DESC';}
|
||||
}
|
||||
|
||||
if(!empty($category)){
|
||||
$category = "AND group_category = '".$category."'";
|
||||
}
|
||||
if(!empty($featured)){
|
||||
$query_featured = "AND featured = '".$featured."'";
|
||||
//Multiple Activate
|
||||
if(isset($_POST['activate_selected'])) {
|
||||
for($i=0; $i<count($_POST['check_group']); $i++) {
|
||||
$groups->active_gp($_POST['check_group'][$i],true);
|
||||
}
|
||||
if(!empty($active)){
|
||||
$query_active = "AND active = '".$active."'";
|
||||
e(lang('Selected Groups are activated.','m'));
|
||||
}
|
||||
|
||||
//Multiple Deactivate
|
||||
if(isset($_POST['deactivate_selected'])) {
|
||||
for($i=0; $i<count($_POST['check_group']); $i++) {
|
||||
$groups->unactive_gp($_POST['check_group'][$i],true);
|
||||
}
|
||||
e(lang('Selected Groups are deactivated.','m'));
|
||||
}
|
||||
|
||||
// Delete group
|
||||
if(isset($_GET['delete_group'])) {
|
||||
$groups->delete_group(mysql_clean($_GET['delete_group']));
|
||||
}
|
||||
|
||||
|
||||
$sql = "SELECT * from groups ";
|
||||
$sql .= "WHERE
|
||||
username like '%$username%' AND
|
||||
group_name like '%$title%'
|
||||
$query_featured
|
||||
$query_active AND
|
||||
group_tags like '%$tags%'
|
||||
$category $orderby $query_limit
|
||||
";
|
||||
|
||||
$sql_p = "SELECT * from groups WHERE
|
||||
username like '%$username%' AND
|
||||
group_name like '%$title%'
|
||||
$query_featured
|
||||
$query_active
|
||||
AND group_tags like '%$tags%'
|
||||
$category ";
|
||||
}
|
||||
|
||||
//Assing User Data Values
|
||||
$rs = $db->Execute($sql);
|
||||
$total = $rs->recordcount() + 0;
|
||||
$groups = $rs->getrows();
|
||||
|
||||
for($id=0;$id<$total;$id++){
|
||||
//Setting Group Type
|
||||
switch($groups[$id]['group_type']){
|
||||
case 0;
|
||||
$groups[$id]['type'] = 'Public';
|
||||
break;
|
||||
case 1;
|
||||
$groups[$id]['type'] = 'Moderated';
|
||||
break;
|
||||
case 2;
|
||||
$groups[$id]['type'] = 'Private';
|
||||
break;
|
||||
default:
|
||||
$groups[$id]['type'] = 'Private';
|
||||
}
|
||||
|
||||
//Setting Video Type
|
||||
switch($groups[$id]['video_type']){
|
||||
case 0;
|
||||
$groups[$id]['video_type'] = 'Public';
|
||||
break;
|
||||
case 1;
|
||||
$groups[$id]['video_type'] = 'Moderated';
|
||||
break;
|
||||
case 2;
|
||||
$groups[$id]['video_type'] = 'Private';
|
||||
break;
|
||||
default:
|
||||
$groups[$id]['video_type'] = 'Private';
|
||||
}
|
||||
|
||||
//Setting Post Type
|
||||
switch($groups[$id]['post_type']){
|
||||
case 0;
|
||||
$groups[$id]['post_type'] = 'Public';
|
||||
break;
|
||||
case 1;
|
||||
$groups[$id]['post_type'] = 'Moderated';
|
||||
break;
|
||||
case 2;
|
||||
$groups[$id]['post_type'] = 'Private';
|
||||
break;
|
||||
default:
|
||||
$groups[$id]['post_type'] = 'Private';
|
||||
}
|
||||
$groups[$id]['members'] = $data['duration'];
|
||||
$groups[$id]['category'] = $myquery->GetCategory($groups[$id]['group_category'],'category_name');
|
||||
//Multiple Delete
|
||||
if(isset($_POST['delete_selected'])) {
|
||||
for($i=0; $i<count($_POST['check_group']); $i++) {
|
||||
$groups->delete_group($_POST['check_group'][$i],true);
|
||||
}
|
||||
|
||||
Assign('total', $total + 0);
|
||||
Assign('groups', $groups);
|
||||
|
||||
//Pagination #A Tough Job#
|
||||
$view = clean(@$_GET['view']);
|
||||
if($view == 'search'){
|
||||
$link = '&username=' .mysql_clean($_GET['username']). '&title=' .mysql_clean($_GET['title']).'&flagged=' .mysql_clean($_GET['flagged']).'&featured=' .mysql_clean($_GET['featured']).'&active='.mysql_clean($_GET['active']).'&tags='.mysql_clean($_GET['tags']).'&category01='.mysql_clean($_GET['category01']).'&category02='.mysql_clean($_GET['category02']).'&category03='.mysql_clean($_GET['category03']).'&sort='.mysql_clean($_GET['sort']).'&order='.mysql_clean($_GET['order']).'&search='.mysql_clean($_GET['search']);
|
||||
Assign('link',$link);
|
||||
}
|
||||
|
||||
$query = mysql_query($sql_p);
|
||||
Assign('grand_total',mysql_num_rows($query));
|
||||
$total_rows = mysql_num_rows($query);
|
||||
$page_id=1;
|
||||
$id = 1;
|
||||
//$all_pages[0]['page'] = $page_id;
|
||||
$records = $total_rows/$limit;
|
||||
$pages = round($records+0.49,0);
|
||||
e(lang('Selected Groups are Deleted.','m'));
|
||||
}
|
||||
|
||||
//Collecting Data for Pagination
|
||||
$total_rows = $db->count('users','*',$cond);
|
||||
$total_pages = count_pages($total_rows,VLISTPP);
|
||||
|
||||
Assign('pages',$pages+1);
|
||||
Assign('cur_page',$page);
|
||||
Assign('nextpage',$page+1);
|
||||
Assign('prepage',$page-1);
|
||||
Assign('total_pages',$page_id);
|
||||
//Pagination
|
||||
$pages->paginate($total_pages,$page);
|
||||
|
||||
// Assign varibles
|
||||
assign('category',$groups->get_categories());
|
||||
assign('gps',$groups->get_groups());
|
||||
|
||||
template_files('groups_manager.html');
|
||||
display_it();
|
||||
|
||||
//Assigning Category List
|
||||
$sql = "SELECT * from category";
|
||||
$rs = $db->Execute($sql);
|
||||
$total_categories = $rs->recordcount() + 0;
|
||||
$category = $rs->getrows();
|
||||
Assign('category', $category);
|
||||
|
||||
Assign('msg', @$msg);
|
||||
Template('header.html');
|
||||
Template('leftmenu.html');
|
||||
Template('message.html');
|
||||
Template('groups_manager.html');
|
||||
Template('footer.html');
|
||||
?>
|
66
upload/admin_area/styles/cbadmin/layout/add_group.html
Normal 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"> </td>
|
||||
<td width="100" class="right_head"> </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"> </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"> </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>
|
70
upload/admin_area/styles/cbadmin/layout/edit_group.html
Normal file
|
@ -0,0 +1,70 @@
|
|||
<table width="98%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="200" align="left" valign="middle" class="left_head" style="text-indent:10px">Edit Group</td>
|
||||
<td class="head"> </td>
|
||||
<td width="100" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<form name="add_group" action="" method="post" enctype="multipart/form-data">
|
||||
<input name="gpid" type="hidden" value="{$group_details.group_id}" />
|
||||
<input name="owner" type="hidden" value="{$group_details.group_owner}" />
|
||||
{assign var="username" value=$userquery->GetUserData($group_details.group_owner)}
|
||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td class="td_body"> </td>
|
||||
<td align="right" class="td_body">* are required fields</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="td_body">Change 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}"{if $users[u_list].userid eq $group_details.group_owner} selected="selected" {/if}>{$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" value="{$group_details.group_name}" 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;">{$group_details.group_description}</textarea>
|
||||
<br />
|
||||
</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td_body">Group Tags</td>
|
||||
<td align="left" class="td_body"><input name="tags" id="tags" value="{$group_details.group_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" value="{$group_details.group_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"{if $group_details.group_type eq "0"} checked = "checked" {/if}>Public<BR/> <input name="gptype" type="radio" tabindex="7" value="1"{if $group_details.group_type eq "1"} checked = "checked" {/if}>Private<BR/> <input name="gptype" type="radio" tabindex="8" value="2"{if $group_details.group_type eq "2"} checked = "checked" {/if}>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}" {if $category[cat_list].category_id eq $group_details.group_category} selected="selected" {/if}>{$category[cat_list].category_name}</option>
|
||||
{/section}
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td_body">Group Thumb</td>
|
||||
<td align="left" class="td_body">
|
||||
<div style="padding:3px; border:1px solid #ccc; float:left; margin-right:20px;"><img src="{$gp_thumbs_url}/{$groups->get_gp_thumb($group_details.group_image)}" /></div>
|
||||
<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"> </td>
|
||||
<td align="right" class="td_body"><input type="submit" tabindex="11" name="update_group" id="update_group" value="Update Group" class="button"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
152
upload/admin_area/styles/cbadmin/layout/group_category.html
Normal file
|
@ -0,0 +1,152 @@
|
|||
<span class="page_title">Group Categories</span>
|
||||
<table width="98%" 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"> </td>
|
||||
<td width="100" class="right_head"> </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="98%" border="0" cellpadding="0" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td class="td_body"> </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="{'name'|post_form_val}" 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">{'desc'|post_form_val}</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" />
|
||||
Yes</label>
|
||||
<label>
|
||||
<input name="default" type="radio" id="default_1" value="no" checked="checked" />
|
||||
No</label>
|
||||
<br />
|
||||
</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td_body">Category Thumb</td>
|
||||
<td align="left" class="td_body"><label for="cat_thumb"></label>
|
||||
<input type="file" name="cat_thumb" id="cat_thumb" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td_body"> </td>
|
||||
<td align="right" class="td_body"><input type="submit" name="add_cateogry" id="button" value="Add Category" onclick="return validate_category_form(add_category)" class="button"/></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="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
|
||||
<tr>
|
||||
<td class="td_body"> </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}
|
||||
<table width="98%" border="0" align="left" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="22%" class="left_head" style="text-indent:10px">Category Name</td>
|
||||
<td width="9%" class="head_sep_left">Thumb</td>
|
||||
<td width="34%" class="head_sep_left">Description</td>
|
||||
<td width="28%" class="head_sep_left">Default</td>
|
||||
<td width="7%" class="head_sep_left">Action</td>
|
||||
<td width="20" align="left" class="right_head"> </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}</td>
|
||||
<td style="text-indent:10px"><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 style="text-indent:10px">{if $category[list].category_desc}{$category[list].category_desc}{else}<em>N/A</em>{/if}</td>
|
||||
<td style="text-indent:10px">{$category[list].isdefault}</td>
|
||||
<td style="text-indent:10px">
|
||||
<li><a href="?category={$category[list].category_id}">Edit</a></li>
|
||||
<li><a href="javascript:Confirm_Delete('?delete_category={$category[list].category_id}')">Delete</a></li>
|
||||
{if $category[list].isdefault!="yes"}<li><a href="?make_default={$category[list].category_id}">Make Default</a></li>{/if}
|
||||
</td>
|
||||
<td style="text-indent:10px"> </td>
|
||||
</tr>
|
||||
{if $bgcolor == ""}
|
||||
{assign var = bgcolor value = "#EEEEEE"}
|
||||
{else}
|
||||
{assign var = bgcolor value = ""}
|
||||
{/if}
|
||||
|
||||
{/section}
|
||||
</table>
|
||||
{else}
|
||||
No Category Has Been Created Yet
|
||||
{/if}
|
||||
<br />
|
||||
<br />
|
||||
|
||||
|
98
upload/admin_area/styles/cbadmin/layout/groups_manager.html
Normal file
|
@ -0,0 +1,98 @@
|
|||
<span class="page_title">Groups Manager</span>
|
||||
<form name="group_manage" method="post">
|
||||
|
||||
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="30" align="center" valign="middle"><img src="{$imageurl}/arrow_return.png" width="25" height="25"></td>
|
||||
<td height="50" style="padding-left:15px">
|
||||
<input type="submit" name="activate_selected" value="Activate" class="button"/>
|
||||
<input type="submit" name="deactivate_selected" value="Deactivate" class="button" />
|
||||
<input type="submit" name="make_featured_selected" value="Make Featured" class="button"/>
|
||||
<input type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="button"/>
|
||||
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="Confirm_Delete('')"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="30" align="center" valign="middle" class="left_head">
|
||||
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
|
||||
<td width="50" class="head_sep_left">GP-ID</td>
|
||||
<td class="head"><div class="head_sep_left" style="width:250px">Details</div></td>
|
||||
<td width="50" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
{assign var = bgcolor value = ""}
|
||||
{section name=gp_list loop=$gps}
|
||||
{assign var="username" value=$userquery->GetUserData($gps[gp_list].group_owner)}
|
||||
<tr class="video_opt_td" bgcolor="{$bgcolor}">
|
||||
<td width="30" align="center" valign="top" class="video_opt_td"><input name="check_group[]" type="checkbox" id="check_group" value="{$gps[gp_list].group_id}" /></td>
|
||||
<td width="50" align="center" valign="top" class="video_opt_td">{$gps[gp_list].group_id}</td>
|
||||
<td valign="top" class="video_opt_td"
|
||||
onmouseover="$('#vid_opt-{$gps[gp_list].group_id}').show()"
|
||||
onmouseout="$('#vid_opt-{$gps[gp_list].group_id}').hide()" >
|
||||
<div style="float:left; width:45px; height:34px; margin-left:10px">
|
||||
<img src="{$gp_thumbs_url}/{$groups->get_gp_thumb($gps[gp_list].group_image)}" class="mid_user_thumb" />
|
||||
</div>
|
||||
<a href="{$baseurl}/view_group.php?url={$gps[gp_list].group_url}" target="_blank" style="text-indent:10px">
|
||||
{$gps[gp_list].group_name}
|
||||
</a> —
|
||||
<span class="vdo_sets">
|
||||
Group Owner:<strong> <a href="view_user.php?uid={$username.userid}" style="font-size:10px;">{$username.username}</a></strong> •
|
||||
Group Type:<strong> {if $gps[gp_list].group_type=="0"}Public{elseif $gps[gp_list].group_type=="1"}Private{else}Invited{/if}</strong> •
|
||||
Group Status:<strong>{if $gps[gp_list].active=="yes"} Active{else $gps[gp_list].active=="no"} Unactive{/if}</strong>
|
||||
</span>
|
||||
|
||||
<br />
|
||||
<div id="vid_opt-{$gps[gp_list].group_id}" style="display:none" class="vid_opts">
|
||||
|
||||
<a href="view_group.php?group_id={$gps[gp_list].group_id}">View</a> |
|
||||
<a href="edit_group.php?group_id={$gps[gp_list].group_id}">Edit</a> {if $videos[list].featured == yes} |
|
||||
<a href="javascript:Confirm_Delete('?delete_group={$gps[gp_list].group_id}')">Delete</a> |
|
||||
<a href="?make_unfeature={$gps[gp_list].group_id}">Make Unfeatured</a> {/if}
|
||||
{if $videos[list].featured == no} |
|
||||
<a href="?make_feature={$gps[gp_list].group_id}">Make Featured</a> {/if}
|
||||
{if $gps[gp_list].active == yes} |
|
||||
<a href="?deactivate={$gps[gp_list].group_id}">Deactivate</a> {else} |
|
||||
<a href="?activate={$gps[gp_list].group_id}">Activate</a> {/if} |
|
||||
<a href="?delete_group={$gps[gp_list].group_id}">Delete</a>
|
||||
</div>
|
||||
</td>
|
||||
<td width="50" valign="top" class="video_opt_td"> </td>
|
||||
</tr>
|
||||
{if $bgcolor == ""}
|
||||
{assign var = bgcolor value = "#EEEEEE"}
|
||||
{else}
|
||||
{assign var = bgcolor value = ""}
|
||||
{/if}
|
||||
|
||||
{/section}
|
||||
</table>
|
||||
|
||||
|
||||
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="30" align="center" valign="middle"><img src="{$imageurl}/arrow_return_invert.png" width="25" height="25"></td>
|
||||
<td height="50" style="padding-left:15px">
|
||||
<input type="submit" name="activate_selected" value="Activate" class="button"/>
|
||||
<input type="submit" name="deactivate_selected" value="Deactivate" class="button" />
|
||||
<input type="submit" name="make_featured_selected" value="Make Featured" class="button"/>
|
||||
<input type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="button"/>
|
||||
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="Confirm_Delete('')"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
{include file="$style_dir/blocks/pagination.html" }
|
|
@ -33,8 +33,8 @@
|
|||
Last Active:<strong>{$u.last_active}</strong>
|
||||
</span>
|
||||
|
||||
<br />style="display:none"
|
||||
<div id="usr_opt-{$u.userid}" class="vid_opts">
|
||||
<br />
|
||||
<div id="usr_opt-{$u.userid}" class="vid_opts" style="display:none">
|
||||
|
||||
<a href="view_user.php?uid={$u.userid}">View</a> or
|
||||
<a href="view_user.php?uid={$u.userid}">Edit</a> |
|
||||
|
|
|
@ -1,219 +1 @@
|
|||
|
||||
<script type="text/javascript" src="{$js}/popup_image.js"></script>
|
||||
|
||||
|
||||
<form id="Search Video" name="Search Video" method="get" action="">
|
||||
<input name="view" type="hidden" value="search" />
|
||||
<table width="98%" height="186" border="0" align="center" cellpadding="3" cellspacing="1">
|
||||
<tr>
|
||||
<td colspan="4" class="tr_head">Video Search</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="6%" class="td_body">Username</td>
|
||||
<td width="41%" class="td_body"><label>
|
||||
<input name="username" type="text" id="username" value="{$search_uname}" size="45" />
|
||||
</label> </td>
|
||||
<td width="6%" class="td_body">Featured</td>
|
||||
<td width="47%" class="td_body"><select name="featured" id="featured">
|
||||
<option value""> </option>
|
||||
<option value="yes"
|
||||
{if $search_featured == yes}
|
||||
selected="selected"
|
||||
{/if}
|
||||
>Yes</option>
|
||||
<option value="no"
|
||||
{if $search_featured == no}
|
||||
selected="selected"
|
||||
{/if}
|
||||
>No</option>
|
||||
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td_body">Title</td>
|
||||
<td class="td_body"><input name="name" type="text" id="name" value="{$search_title}" size="45" /></td>
|
||||
<td class="td_body">Tags</td>
|
||||
<td class="td_body"><input name="tags" type="text" id="tags" value="{$search_tags}" size="45" /></td>
|
||||
<blockquote> </blockquote>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td_body">Active</td>
|
||||
<td class="td_body"><select name="active" id="active">
|
||||
<option value""> </option>
|
||||
<option value="yes"
|
||||
{if $search_active == yes}
|
||||
selected="selected"
|
||||
{/if}
|
||||
>Yes</option>
|
||||
<option value="no"
|
||||
{if $search_active == no}
|
||||
selected="selected"
|
||||
{/if}
|
||||
>No</option>
|
||||
</select></td>
|
||||
<td class="td_body">Category</td>
|
||||
<td class="td_body"><select name="category" id="category">
|
||||
<option value""> </option>
|
||||
{section name=c_list loop=$category}
|
||||
|
||||
<option value="{$category[c_list].categoryid}" {if $search_category == $category[c_list].categoryid} selected="selected" {/if}>{$category[c_list].category_name}</option>
|
||||
{/section}
|
||||
</select> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" class="td_body">Sort By</td>
|
||||
<td class="td_body"><select name="sort" id="sort">
|
||||
<option value="name" selected="selected">Title</option>
|
||||
<option value="username" {if $search_sort == username} selected="selected" {/if}>Username</option>
|
||||
<option value="date_added" {if $search_sort == date_added} selected="selected" {/if}>Date Added</option>
|
||||
<option value="members"{if $search_sort == members} selected="selected" {/if}>Members</option>
|
||||
<option value="videos" {if $search_sort == videos} selected="selected" {/if}>Videos</option>
|
||||
</select> </td>
|
||||
<td class="td_body">Order</td>
|
||||
<td class="td_body"><select name="order" id="order">
|
||||
<option value="ASC" {if $search_order == ASC} selected="selected" {/if} >Ascending</option>
|
||||
<option value="DESC" {if $search_order == DESC}selected="selected" {/if} >Decending</option>
|
||||
</select> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="35" colspan="4" align="right" valign="bottom" class="td_body"><label>
|
||||
<input type="submit" name="search" id="button" value="Search" />
|
||||
</label></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="225" align="left"><label></label>
|
||||
<form id="form1" name="form1" method="post" action="members.php">
|
||||
Show #Result
|
||||
<label>
|
||||
<input name="number" type="text" id="number" value="{$admin_pages}" size="7" maxlength="5" />
|
||||
<input name="set_number" type="submit" id="set_number" value="Show" />
|
||||
</label>
|
||||
</form> </td>
|
||||
<td align="left"><form id="form2" name="form2" method="post" action="">
|
||||
Jump To Page
|
||||
<label>
|
||||
<select name="page_number">
|
||||
|
||||
{section name=allpages start=1 loop=$pages}
|
||||
|
||||
<option value="?view={$property.value}{$link}&page={$smarty.section.allpages.index}" {if $cur_page == $smarty.section.allpages.index} selected="selected"{/if}>{$smarty.section.allpages.index}</option>
|
||||
|
||||
{/section}
|
||||
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
<input name="display_page" type="submit" id="display_page" value="Display" />
|
||||
</label>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left" valign="middle" class="pagination" style="color:#FFFFFF; padding:3px"> </td>
|
||||
<td colspan="2" align="right" valign="middle" style="padding:3px">Viewing {math equation=$limit*$cur_page assign=viewing} {if $prepage == 0 } {math equation=$prepage+1} {else} {math equation = $prepage*$limit+1 }{/if} - {if $viewing > $grand_total}{$grand_total}{else}{$viewing}{/if} of {$grand_total}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="56" align="left" valign="middle" bgcolor="#3399FF" class="pagination" style="color:#FFFFFF; padding:3px">
|
||||
{if $prepage neq 0}<a href="?view={$property.value}{$link}&page={$prepage}">Previous</a>{/if}</td>
|
||||
<td align="center" valign="middle" bgcolor="#3399FF" class="pagination" style="color:#FFFFFF; padding:3px">{section name=allpages start=1 loop=$pages}
|
||||
{if $cur_page == $smarty.section.allpages.index }
|
||||
{$smarty.section.allpages.index}
|
||||
{else} <a href="?view={$property.value}{$link}&page={$smarty.section.allpages.index}">{$smarty.section.allpages.index}</a> {/if}
|
||||
{/section} </td>
|
||||
<td width="32" align="right" valign="middle" bgcolor="#3399FF" class="pagination" style="color:#FFFFFF; padding:3px">{if $nextpage neq $smarty.section.allpages.index && $pages!=1}<a href="?view={$property.value}{$link}&page={$nextpage}">Next</a>{/if}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<form action="" method="post">
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td height="50"><label for="checkall"></label>
|
||||
|
||||
<input type="submit" name="activate_selected" value="Activate" id="button"/>
|
||||
<input type="submit" name="deactivate_selected" value="Dectivate" id="button" />
|
||||
<input type="submit" name="make_featured_selected" value="Make As Featured" id="button"/>
|
||||
<input type="submit" name="make_unfeatured_selected" value="Make Unfeatured" id="button"/>
|
||||
<input type="submit" name="delete_selected" value="Delete" id="button" onclick="Confirm_Delete('')"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="98%" height="43" border="0" align="center" cellpadding="0" cellspacing="1">
|
||||
<tr >
|
||||
<td width="20" valign="middle" class="tr_head"><input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
|
||||
<td width="20" height="20" valign="middle" class="tr_head">ID </td>
|
||||
<td width="300" valign="middle" class="tr_head">Group Name </td>
|
||||
<td width="30" valign="middle" class="tr_head">Properties</td>
|
||||
<td width="30" valign="middle" class="tr_head"> </td>
|
||||
<td colspan="2" valign="middle" class="tr_head">Details</td>
|
||||
<td width="134" colspan="2" valign="middle" class="tr_head">More Details </td>
|
||||
<td valign="middle" class="tr_head">Actions</td>
|
||||
</tr>
|
||||
{assign var = bgcolor value = ""}
|
||||
{section name=list loop=$groups}
|
||||
<tr bgcolor="{$bgcolor}">
|
||||
<td width="20" valign="top" class="td_body"><input name="check_group[]" type="checkbox" id="check_group" value="{$groups[list].group_id}" /></td>
|
||||
<td width="20" height="20" valign="top" class="td_body">{$groups[list].group_id}</td>
|
||||
<td valign="top" class="td_body"><a href="{$baseurl}/view_group.php?url={$groups[list].group_url}" target="_blank">{$groups[list].group_name}</a><br />
|
||||
URL:{$groups[list].group_url}</td>
|
||||
<td valign="top" class="td_body">Owner<br />
|
||||
GroupType<br />
|
||||
VideoType<br />
|
||||
PostType<br /></td>
|
||||
<td width="100" valign="top" class="td_body">{$groups[list].username}<br />
|
||||
{$groups[list].type}<br />
|
||||
{$groups[list].video_type}<br />
|
||||
{$groups[list].post_type}<br />
|
||||
<br /></td>
|
||||
<td width="30" valign="top" class="td_body">Members<br />
|
||||
Videos<br />
|
||||
Topics<br />
|
||||
Replies</td>
|
||||
<td width="60" valign="top" class="td_body">{$groups[list].total_members}<br />
|
||||
{$groups[list].total_videos}</td>
|
||||
<td width="134" valign="top" class="td_body"> Featured:<br>
|
||||
Active:<br />
|
||||
Category</td>
|
||||
<td align="left" valign="top" class="td_body">{$groups[list].featured}<br>
|
||||
{$groups[list].active}<br />
|
||||
{$groups[list].category}<br></td>
|
||||
<td valign="top" class="td_body"><a href="javascript:Confirm_Delete('?delete_group={$groups[list].group_id}')">Delete</a><br>
|
||||
<a href="edit_group.php?group={$groups[list].group_id}">Edit</a><br>
|
||||
{if $groups[list].featured == yes}
|
||||
<a href="?make_unfeature={$groups[list].group_id}">Make Unfeatured</a>
|
||||
{/if}
|
||||
{if $groups[list].featured == no}
|
||||
<a href="?make_feature={$groups[list].group_id}">Make Featured</a>
|
||||
{/if}<br>
|
||||
{if $groups[list].active == yes}
|
||||
<a href="?deactivate={$groups[list].group_id}">DeActivate</a>
|
||||
{/if}
|
||||
{if $groups[list].active == no}
|
||||
<a href="?activate={$groups[list].group_id}">Activate</a>
|
||||
{/if}</td>
|
||||
</tr>
|
||||
{if $bgcolor == ""}
|
||||
{assign var = bgcolor value = "#EEEEEE"}
|
||||
{else}
|
||||
{assign var = bgcolor value = ""}
|
||||
{/if}
|
||||
{/section}
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="56" align="left" valign="middle" bgcolor="#3399FF" class="pagination" style="color:#FFFFFF; padding:3px"> {if $prepage neq 0}<a href="?view={$property.value}{$link}&page={$prepage}">Previous</a>{/if}</td>
|
||||
<td align="center" valign="middle" bgcolor="#3399FF" class="pagination" style="color:#FFFFFF; padding:3px">{section name=allpages start=1 loop=$pages}
|
||||
{if $cur_page == $smarty.section.allpages.index }
|
||||
{$smarty.section.allpages.index}
|
||||
{else} <a href="?view={$property.value}{$link}&page={$smarty.section.allpages.index}">{$smarty.section.allpages.index}</a> {/if}
|
||||
{/section} </td>
|
||||
<td width="32" align="right" valign="middle" bgcolor="#3399FF" class="pagination" style="color:#FFFFFF; padding:3px">{if $nextpage neq $smarty.section.allpages.index && $pages!=1}<a href="?view={$property.value}{$link}&page={$nextpage}">Next</a>{/if}</td>
|
||||
</tr>
|
||||
</table>
|
||||
fawfasfasf
|
|
@ -10,40 +10,53 @@
|
|||
require 'includes/config.inc.php';
|
||||
$userquery->logincheck();
|
||||
$pages->page_redir();
|
||||
subtitle('create_group');
|
||||
|
||||
//Assigning Category List
|
||||
$sql = "SELECT * from category";
|
||||
$rs = $db->Execute($sql);
|
||||
$total_categories = $rs->recordcount() + 0;
|
||||
$category = $rs->getrows();
|
||||
Assign('category', $category);
|
||||
$userid = $_SESSION['userid'];
|
||||
|
||||
//Form Validation And Submition
|
||||
if(isset($_POST['create'])){
|
||||
$msg = $groups->CreateGroup();
|
||||
// Creating Group if button is pressed
|
||||
if(isset($_POST['create_group'])) {
|
||||
$groups->createGroups($_POST,$userid);
|
||||
}
|
||||
|
||||
//Assigning Default Values
|
||||
@$values= array(
|
||||
'default_name' => mysql_clean($_POST['name']),
|
||||
'default_des' => mysql_clean($_POST['description']),
|
||||
'default_tags' => mysql_clean($_POST['tags']),
|
||||
'default_url' => mysql_clean($_POST['url']),
|
||||
'default_category' => mysql_clean($_POST['category']),
|
||||
'default_type' => mysql_clean($_POST['group_type']),
|
||||
'default_vtype' => mysql_clean($_POST['video_type']),
|
||||
'default_ptype' => mysql_clean($_POST['post_type'])
|
||||
);
|
||||
while(list($name,$value) = each($values)){
|
||||
Assign($name,$value);
|
||||
}
|
||||
|
||||
|
||||
@Assign('msg',$msg);
|
||||
Template('header.html');
|
||||
Template('message.html');
|
||||
Template('create_group.html');
|
||||
Template('footer.html');
|
||||
// Assigning Variables
|
||||
assign('users',$userdata);
|
||||
assign('category',$groups->get_categories());
|
||||
|
||||
template_files('create_group.html');
|
||||
display_it();
|
||||
|
||||
////Assigning Category List
|
||||
// $sql = "SELECT * from category";
|
||||
// $rs = $db->Execute($sql);
|
||||
// $total_categories = $rs->recordcount() + 0;
|
||||
// $category = $rs->getrows();
|
||||
// Assign('category', $category);
|
||||
//
|
||||
////Form Validation And Submition
|
||||
// if(isset($_POST['create'])){
|
||||
// $msg = $groups->CreateGroup();
|
||||
// }
|
||||
//
|
||||
////Assigning Default Values
|
||||
//@$values= array(
|
||||
// 'default_name' => mysql_clean($_POST['name']),
|
||||
// 'default_des' => mysql_clean($_POST['description']),
|
||||
// 'default_tags' => mysql_clean($_POST['tags']),
|
||||
// 'default_url' => mysql_clean($_POST['url']),
|
||||
// 'default_category' => mysql_clean($_POST['category']),
|
||||
// 'default_type' => mysql_clean($_POST['group_type']),
|
||||
// 'default_vtype' => mysql_clean($_POST['video_type']),
|
||||
// 'default_ptype' => mysql_clean($_POST['post_type'])
|
||||
// );
|
||||
// while(list($name,$value) = each($values)){
|
||||
// Assign($name,$value);
|
||||
// }
|
||||
//
|
||||
//
|
||||
//@Assign('msg',$msg);
|
||||
//Template('header.html');
|
||||
//Template('message.html');
|
||||
//Template('create_group.html');
|
||||
//Template('footer.html');
|
||||
|
||||
?>
|
|
@ -1,34 +1,59 @@
|
|||
<?php
|
||||
if($details['group_type'] == 2){
|
||||
if(!$groups->is_userinvite($_SESSION['username'],$details['username'],$details['group_id']) && !$groups->is_Joined($_SESSION['username'],$group)){
|
||||
$msg = $LANG['grp_prvt_err1'];
|
||||
$show_join = 'No';
|
||||
$show_group = 'No';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This file is used to check all the possible situations a group can possibly face. It is sperate because to keep actual code nice * and clean.
|
||||
*/
|
||||
|
||||
// check if user is group owner or not.
|
||||
if($user == $details['group_owner']) {
|
||||
assign('owner','yes');
|
||||
}
|
||||
|
||||
if($details['active'] == no){
|
||||
$msg = $LANG['grp_inact_error'];
|
||||
$show_group = 'No';
|
||||
}
|
||||
|
||||
if($details['video_type'] == 2 && $manage_vids==TRUE && @$_SESSION['username'] != $details['username']){
|
||||
$msg = $LANG['grp_owner_err'];
|
||||
$show_group = 'No';
|
||||
}
|
||||
if(@$_SESSION['username'] == $details['username']){
|
||||
Assign('owner','yes');
|
||||
}
|
||||
//Chceking Logged in user is group user or not
|
||||
if(!$groups->is_joined(@$_SESSION['username'],$group)){
|
||||
Assign('join','yes');
|
||||
}else{
|
||||
Assign('join','no');
|
||||
}
|
||||
if(@$MustJoin != 'No'){
|
||||
if(!$groups->is_Joined($_SESSION['username'],$group) && $_SESSION['username'] != $details['username']){
|
||||
$msg = $LANG['grp_join_error1'];
|
||||
$show_group = 'No';
|
||||
}
|
||||
}
|
||||
// Check Logged-in user has joined or not
|
||||
if($groups->joined_group($user,$details['group_id'])) {
|
||||
assign('joined','yes');
|
||||
} else {
|
||||
assign('joined','no');
|
||||
}
|
||||
|
||||
// Check if group is active or not
|
||||
if($details['active'] == 'no') {
|
||||
assign('active','no');
|
||||
} else {
|
||||
assign('active','yes');
|
||||
}
|
||||
|
||||
|
||||
// if($details['group_type'] == 2){
|
||||
// if(!$groups->is_userinvite($_SESSION['username'],$details['username'],$details['group_id']) && !$groups->is_Joined($_SESSION['username'],$group)){
|
||||
// $msg = $LANG['grp_prvt_err1'];
|
||||
// $show_join = 'No';
|
||||
// $show_group = 'No';
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if($details['active'] == no){
|
||||
// $msg = $LANG['grp_inact_error'];
|
||||
// $show_group = 'No';
|
||||
// }
|
||||
//
|
||||
// if($details['video_type'] == 2 && $manage_vids==TRUE && @$_SESSION['username'] != $details['username']){
|
||||
// $msg = $LANG['grp_owner_err'];
|
||||
// $show_group = 'No';
|
||||
// }
|
||||
// if(@$_SESSION['username'] == $details['username']){
|
||||
// Assign('owner','yes');
|
||||
// }
|
||||
// //Chceking Logged in user is group user or not
|
||||
// if(!$groups->is_joined(@$_SESSION['username'],$group)){
|
||||
// Assign('join','yes');
|
||||
// }else{
|
||||
// Assign('join','no');
|
||||
// }
|
||||
// if(@$MustJoin != 'No'){
|
||||
// if(!$groups->is_Joined($_SESSION['username'],$group) && $_SESSION['username'] != $details['username']){
|
||||
// $msg = $LANG['grp_join_error1'];
|
||||
// $show_group = 'No';
|
||||
// }
|
||||
// }
|
||||
?>
|
|
@ -3,96 +3,19 @@
|
|||
****************************************************************************************************
|
||||
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
|
||||
| @ Author : ArslanHassan |
|
||||
| @ Software : ClipBucket , © PHPBucket.com |
|
||||
| @ Software : ClipBucket , © PHPBucket.com |
|
||||
****************************************************************************************************
|
||||
*/
|
||||
require 'includes/config.inc.php';
|
||||
$pages->page_redir();
|
||||
subtitle('groups');
|
||||
|
||||
//Getting List Of Categories
|
||||
$sql = "SELECT * FROM category ORDER BY category_name";
|
||||
$data = $db->Execute($sql);
|
||||
$total_data = $data->recordcount() + 0;
|
||||
$category = $data->getrows();
|
||||
Assign('category',$category);
|
||||
|
||||
//Collect Data
|
||||
$gpData = $groups->get_groups();
|
||||
|
||||
// Assign varibles
|
||||
assign('category',$groups->get_categories());
|
||||
assign('gps',$groups->list_groups());
|
||||
|
||||
//Listing Videos
|
||||
$limit = GLISTPP;
|
||||
Assign('limit',$limit);
|
||||
@$page = clean($_GET['page']);
|
||||
if(empty($page) || $page == 0 || !is_numeric($page)){
|
||||
$page = 1;
|
||||
}
|
||||
$from = $page-1;
|
||||
$from = $from*$limit;
|
||||
$query_limit = "limit $from,$limit";
|
||||
|
||||
//Getting Category
|
||||
@$cat = mysql_clean($_GET['ct']);
|
||||
if(empty($cat) || !is_numeric($cat)){
|
||||
$cat_query = " group_category <>'' ";
|
||||
}else{
|
||||
$cat_query = "group_category ='".$cat."' ";
|
||||
}
|
||||
|
||||
$cur_cat = $myquery->GetCategory($cat);
|
||||
Assign('cur_cat',$cur_cat);
|
||||
|
||||
//Getting Order
|
||||
@$order = mysql_clean($_GET['order']);
|
||||
if(empty($order)){
|
||||
$order = 'all';
|
||||
}
|
||||
Assign('order',$order);
|
||||
$orders = array(
|
||||
'all' => '',
|
||||
'mr' => 'ORDER BY date_added DESC',
|
||||
'mv' => 'ORDER BY total_videos DESC',
|
||||
'mt' => 'ORDER BY total_topics DESC',
|
||||
'mm' => 'ORDER BY total_members DESC',
|
||||
'fr' => "AND featured='yes'",
|
||||
'ra' => 'ORDER by RAND()'
|
||||
);
|
||||
|
||||
$group_type = " AND (group_type ='0' OR group_type = '1' )";
|
||||
$orderby = $orders[$order];
|
||||
$sql = "SELECT * FROM groups WHERE $cat_query $group_type $orderby $query_limit";
|
||||
$sql_p = "SELECT * FROM groups WHERE $cat_query $group_type $orderby";
|
||||
$groups_data = $db->Execute($sql);
|
||||
$total_groups = $groups_data->recordcount() + 0;
|
||||
$groups = $groups_data->getrows();
|
||||
|
||||
Assign('groups',$groups);
|
||||
Assign('ct','&ct='.$cat);
|
||||
|
||||
//Pagination
|
||||
$link = '&ct='.$cat.'&order='.$order;
|
||||
Assign('link',$link);
|
||||
|
||||
$query = mysql_query($sql_p);
|
||||
Assign('grand_total',mysql_num_rows($query));
|
||||
$total_rows = mysql_num_rows($query);
|
||||
$page_id=1;
|
||||
$id = 1;
|
||||
//$all_pages[0]['page'] = $page_id;
|
||||
$records = $total_rows/$limit;
|
||||
$pages = round($records+0.49,0);
|
||||
|
||||
|
||||
$show_pages = ShowPagination($pages,$page,$link);
|
||||
Assign('show_pages',$show_pages);
|
||||
|
||||
Assign('pages',$pages);
|
||||
Assign('cur_page',$page);
|
||||
Assign('nextpage',$page+1);
|
||||
Assign('prepage',$page-1);
|
||||
Assign('total_pages',$page_id);
|
||||
|
||||
|
||||
Template('header.html');
|
||||
Template('message.html');
|
||||
Template('groups.html');
|
||||
Template('footer.html');
|
||||
template_files('groups.html');
|
||||
display_it();
|
||||
?>
|
|
@ -223,8 +223,9 @@ class ClipBucket
|
|||
//Groups
|
||||
'Groups' =>
|
||||
array(
|
||||
'Add Group'=>'add_group.php',
|
||||
'Manage Groups'=>'groups_manager.php',
|
||||
'Manage Categories'=>'category.php?view=show_category'
|
||||
'Manage Categories'=>'group_category.php?view=show_category'
|
||||
),
|
||||
|
||||
//Advertisments
|
||||
|
|
|
@ -50,8 +50,9 @@ if(file_exists(dirname(__FILE__).'/../install/isinstall.php')){
|
|||
require_once('classes/signup.class.php');
|
||||
require_once('classes/image.class.php');
|
||||
require_once('classes/upload.class.php');
|
||||
require_once('classes/groups.class.php');
|
||||
require_once('classes/stats.class.php');
|
||||
|
||||
require_once('classes/stats.class.php');error_reporting(E_ALL ^E_NOTICE ^E_DEPRECATED);
|
||||
|
||||
require_once('classes/ads.class.php');
|
||||
require_once('classes/form.class.php');
|
||||
require_once('classes/ClipBucket.class.php');
|
||||
|
@ -63,6 +64,7 @@ if(file_exists(dirname(__FILE__).'/../install/isinstall.php')){
|
|||
require_once('classes/swfObj.class.php');
|
||||
require_once('classes/image.class.php');
|
||||
require_once('classes/category.class.php');
|
||||
require_once('classes/groups.class.php');
|
||||
require_once('classes/video.class.php');
|
||||
require_once('classes/player.class.php');
|
||||
require_once('classes/cbemail.class.php');
|
||||
|
@ -76,7 +78,7 @@ if(file_exists(dirname(__FILE__).'/../install/isinstall.php')){
|
|||
$calcdate = new CalcDate();
|
||||
$signup = new signup();
|
||||
$Upload = new Upload();
|
||||
$groups = new groups();
|
||||
$groups = new Groups();
|
||||
$stats = new stats();
|
||||
$adsObj = new AdsManager();
|
||||
$formObj = new formObj();
|
||||
|
@ -119,8 +121,8 @@ else
|
|||
ini_set('display_errors', '0');
|
||||
}*/
|
||||
|
||||
error_reporting(E_ALL ^E_NOTICE ^E_DEPRECATED);
|
||||
//ini_set('display_errors', '1');
|
||||
error_reporting(E_ALL ^E_NOTICE ^E_DEPRECATED);
|
||||
|
||||
//Website Details
|
||||
|
||||
|
@ -261,6 +263,9 @@ error_reporting(E_ALL ^E_NOTICE ^E_DEPRECATED);
|
|||
define('CAT_THUMB_DIR',BASEDIR.'/images/category_thumbs');
|
||||
define('CAT_THUMB_URL',BASEURL.'/images/category_thumbs');
|
||||
|
||||
//Defining Group Thumbs directory
|
||||
define('GP_THUMB_DIR',BASEDIR.'/images/groups_thumbs');
|
||||
define('GP_THUMB_URL',BASEURL.'/images/groups_thumbs');
|
||||
|
||||
include 'functions.php';
|
||||
include 'plugin.functions.php';
|
||||
|
@ -296,6 +301,7 @@ error_reporting(E_ALL ^E_NOTICE ^E_DEPRECATED);
|
|||
Assign('avatardir',BASEURL.'/images/avatars');
|
||||
Assign('whatis',$row['whatis']);
|
||||
Assign('category_thumbs',CAT_THUMB_URL);
|
||||
Assign('gp_thumbs_url',GP_THUMB_URL);
|
||||
Assign('video_thumbs',THUMBS_URL);
|
||||
//Assign('ads',$ads);
|
||||
Assign('meta_keywords',$row['keywords']);
|
||||
|
@ -353,7 +359,7 @@ $Smarty->assign_by_ref('myquery', $myquery);
|
|||
$Smarty->assign_by_ref('userquery', $userquery);
|
||||
$Smarty->assign_by_ref('signup', $signup);
|
||||
$Smarty->assign_by_ref('Upload', $Upload);
|
||||
$Smarty->assign_by_ref('groupsObj', new groups());
|
||||
$Smarty->assign_by_ref('groups', new groups());
|
||||
$Smarty->assign_by_ref('Stats', $stats);
|
||||
$Smarty->assign_by_ref('db', $db);
|
||||
$Smarty->assign_by_ref('adsObj', $adsObj);
|
||||
|
@ -426,4 +432,7 @@ register_action_remove_video('remove_video_files');
|
|||
|
||||
|
||||
include('admin.functions.php');
|
||||
error_reporting(E_ALL ^E_NOTICE ^E_DEPRECATED);
|
||||
|
||||
|
||||
?>
|
|
@ -34,6 +34,18 @@ $recently_added = array
|
|||
);
|
||||
assign('recently_added',$cbvid->get_videos($recently_added));
|
||||
|
||||
//Get Categories
|
||||
$cats = $db->select("video_categories",'*',NULL,'6');
|
||||
assign('cat',$cats);
|
||||
|
||||
//Top users
|
||||
$users = $db->select("users",'*',NULL,'10',"total_videos DESC");
|
||||
assign('topusers',$users);
|
||||
|
||||
//Getting Video List
|
||||
$videos = $db->select("video",'*',NULL,'15',"date_added DESC");
|
||||
Assign('videos', $videos);
|
||||
|
||||
|
||||
//Displaying The Template
|
||||
template_files('index.html');
|
||||
|
|
|
@ -11,47 +11,67 @@ require 'includes/config.inc.php';
|
|||
$userquery->logincheck();
|
||||
$pages->page_redir();
|
||||
|
||||
$url = mysql_clean($_GET['url']);
|
||||
include('group_inc.php');
|
||||
$gpid = mysql_clean($_GET['gpid']);
|
||||
|
||||
//Collect Data
|
||||
$details = $groups->group_details($gpid);
|
||||
$user = $userquery->GetUserData($_SESSION['username']);
|
||||
$userid = $user['userid'];
|
||||
$username = $user['username'];
|
||||
|
||||
$details = $groups->GetDetails($url);
|
||||
$group = $details['group_id'];
|
||||
$user = $_SESSION['username'];
|
||||
if($details['group_type'] == 2){
|
||||
if(!$groups->is_userinvite($_SESSION['username'],$details['username'],$details['group_id'])){
|
||||
$msg = $LANG['grp_prvt_err1'];
|
||||
$show_join = 'No';
|
||||
}
|
||||
}
|
||||
if($details['active'] == 'no'){
|
||||
$msg = $LANG['grp_inact_error'];
|
||||
$show_join = 'No';
|
||||
}
|
||||
if($groups->is_Joined($user,$group)){
|
||||
$msg = $LANG['grp_join_error'];
|
||||
$show_join = 'No';
|
||||
}
|
||||
Assign('groups',$details);
|
||||
//Joining Group
|
||||
|
||||
if(isset($_POST['join_group'])){
|
||||
if($details['group_type'] == '1'){
|
||||
$active = 'no';
|
||||
}else{
|
||||
$active = 'yes';
|
||||
//Join Group
|
||||
if(isset($_POST['join_group'])) {
|
||||
$groups->join_group($gpid,$details['group_owner'],$userid);
|
||||
}
|
||||
$msg = $groups->JoinGroup($user,$group,$active);
|
||||
if($groups->is_Joined($user,$group)){
|
||||
Assign('show_succes','yes');
|
||||
$show_join = 'No';
|
||||
}
|
||||
}
|
||||
|
||||
//Assigning Variables
|
||||
assign('user',$user);
|
||||
assign('gpDetails',$details);
|
||||
|
||||
template_files('join_group.html');
|
||||
display_it();
|
||||
|
||||
@Assign('subtitle',$LANG['join'].' '.$details['group_name']);
|
||||
@Assign('msg',$msg);
|
||||
@Assign('show_join',$show_join);
|
||||
Template('header.html');
|
||||
Template('message.html');
|
||||
Template('join_group.html');
|
||||
Template('footer.html');
|
||||
// $url = mysql_clean($_GET['url']);
|
||||
// include('group_inc.php');
|
||||
//
|
||||
// $details = $groups->GetDetails($url);
|
||||
// $group = $details['group_id'];
|
||||
// $user = $_SESSION['username'];
|
||||
// if($details['group_type'] == 2){
|
||||
// if(!$groups->is_userinvite($_SESSION['username'],$details['username'],$details['group_id'])){
|
||||
// $msg = $LANG['grp_prvt_err1'];
|
||||
// $show_join = 'No';
|
||||
// }
|
||||
// }
|
||||
// if($details['active'] == 'no'){
|
||||
// $msg = $LANG['grp_inact_error'];
|
||||
// $show_join = 'No';
|
||||
// }
|
||||
// if($groups->is_Joined($user,$group)){
|
||||
// $msg = $LANG['grp_join_error'];
|
||||
// $show_join = 'No';
|
||||
// }
|
||||
//Assign('groups',$details);
|
||||
////Joining Group
|
||||
//
|
||||
//if(isset($_POST['join_group'])){
|
||||
// if($details['group_type'] == '1'){
|
||||
// $active = 'no';
|
||||
// }else{
|
||||
// $active = 'yes';
|
||||
// }
|
||||
// $msg = $groups->JoinGroup($user,$group,$active);
|
||||
// if($groups->is_Joined($user,$group)){
|
||||
// Assign('show_succes','yes');
|
||||
// $show_join = 'No';
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//@Assign('subtitle',$LANG['join'].' '.$details['group_name']);
|
||||
//@Assign('msg',$msg);
|
||||
//@Assign('show_join',$show_join);
|
||||
//Template('header.html');
|
||||
//Template('message.html');
|
||||
//Template('join_group.html');
|
||||
//Template('footer.html');
|
||||
?>
|
51
upload/styles/cbv2/layout/create_group.html
Normal file
|
@ -0,0 +1,51 @@
|
|||
<form name="create_group" action="" method="post" enctype="multipart/form-data">
|
||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td class="td_body"> </td>
|
||||
<td align="right" class="td_body">* are required fields</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"> </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>
|
||||
|
28
upload/styles/cbv2/layout/groups.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
<ul>
|
||||
{section name=c_list loop=$category}
|
||||
<li><a href="?catid={$category[c_list].category_id}">{$category[c_list].category_name}</a></li>
|
||||
{/section}
|
||||
</ul>
|
||||
|
||||
<a href="create_group.php">Create a New Group</a>
|
||||
|
||||
{section name=gp_list loop=$gps}
|
||||
{assign var=owner value=$userquery->GetUserData($gps[gp_list].group_owner)}
|
||||
{assign var=stats value=$groups->group_stats($gps[gp_list].group_id)}
|
||||
<div class="clearfix" style="width:800px;border:1px solid #ccc; background:#f3f3f3; padding:6px; margin:0px auto 20px; position:relative;">
|
||||
<div style="padding:3px; border:1px solid lightblue; float:left; margin-right:10px; background:#FFF;">
|
||||
<img src="{$gp_thumbs_url}/{$groups->get_gp_thumb($gps[gp_list].group_image)}" />
|
||||
</div>
|
||||
<small style="display:block;"><strong>{$gps[gp_list].group_name}</strong></small>
|
||||
<small style="display:block;">{$gps[gp_list].group_description}</small>
|
||||
<div style="margin:2px 0px; height:1px;"></div>
|
||||
<ul>
|
||||
<li><small><strong>Owner</strong>: <a href="?uid={$owner.userid}">{$owner.username}</a></small></li>
|
||||
<li><small><strong>Total Member(s)</strong>: {$stats.total_members}</small></li>
|
||||
<li><small><strong>Total Topics(s)</strong>: {$stats.total_topics}</small></li>
|
||||
<li><small><strong>Created on</strong>: {$gps[gp_list].date_created}</small></li>
|
||||
<div style="position:absolute; top:5px; right:15px;">
|
||||
<small><a href="view_group.php?url={$gps[gp_list].group_url}">View Group</a></small></div>
|
||||
</div>
|
||||
{/section}
|
||||
|
5
upload/styles/cbv2/layout/join_group.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{$user.username}, your about to join {$gpDetails.group_name}.
|
||||
|
||||
<form name="j_group" action="" id="j_group" method="post">
|
||||
<input type="submit" name="join_group" value="Join Group" class="button" />
|
||||
</form>
|
4
upload/styles/cbv2/layout/view_group.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
{$ownerdata.username}
|
||||
{if $joined eq 'yes' } Leave Group {/if}
|
||||
{if $owner eq 'yes'} Edit Group {/if}
|
||||
{if $joined eq 'no' } Join Group {/if}
|
|
@ -20,6 +20,9 @@ a{text-decoration:none; font-family:Arial, Helvetica, sans-serif;color:#333; }
|
|||
.clear_left{clear:left}
|
||||
.clear_left{clear:right}
|
||||
|
||||
.clearfix { display:block; }
|
||||
.clearfix:after{ content: "."; display:block; height:0; font-size:0; clear:both; visibility:visible; }
|
||||
|
||||
#content{width:970px; margin:auto; padding-top:10px; min-height:800px}
|
||||
#content_container{background-image:url(../images/the_bg.png); background-position:center; background-repeat:no-repeat; min-height:500px }
|
||||
|
||||
|
|
0
upload/styles/cbv2new/blocks/video.html
Normal file
BIN
upload/styles/cbv2new/images/blocks.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
upload/styles/cbv2new/images/dot.gif
Normal file
After Width: | Height: | Size: 43 B |
BIN
upload/styles/cbv2new/images/feature_bg.png
Normal file
After Width: | Height: | Size: 175 B |
BIN
upload/styles/cbv2new/images/foot_search.png
Normal file
After Width: | Height: | Size: 187 B |
BIN
upload/styles/cbv2new/images/forget.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
upload/styles/cbv2new/images/line_sps.png
Normal file
After Width: | Height: | Size: 129 B |
BIN
upload/styles/cbv2new/images/log_button.png
Normal file
After Width: | Height: | Size: 251 B |
BIN
upload/styles/cbv2new/images/login_button.png
Normal file
After Width: | Height: | Size: 176 B |
BIN
upload/styles/cbv2new/images/login_grad.png
Normal file
After Width: | Height: | Size: 183 B |
BIN
upload/styles/cbv2new/images/main_bg.png
Normal file
After Width: | Height: | Size: 171 B |
BIN
upload/styles/cbv2new/images/main_vid_bg.png
Normal file
After Width: | Height: | Size: 133 B |
BIN
upload/styles/cbv2new/images/nav_grads.png
Normal file
After Width: | Height: | Size: 303 B |
BIN
upload/styles/cbv2new/images/player.png
Normal file
After Width: | Height: | Size: 803 B |
BIN
upload/styles/cbv2new/images/search_footer.png
Normal file
After Width: | Height: | Size: 150 B |
BIN
upload/styles/cbv2new/images/shadows.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
upload/styles/cbv2new/images/side_bg.png
Normal file
After Width: | Height: | Size: 155 B |
BIN
upload/styles/cbv2new/images/small_stars.png
Normal file
After Width: | Height: | Size: 845 B |
BIN
upload/styles/cbv2new/images/stars.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
upload/styles/cbv2new/images/tabs_bg.png
Normal file
After Width: | Height: | Size: 153 B |
BIN
upload/styles/cbv2new/images/tabs_sp.png
Normal file
After Width: | Height: | Size: 117 B |
BIN
upload/styles/cbv2new/images/top_user.png
Normal file
After Width: | Height: | Size: 138 B |
BIN
upload/styles/cbv2new/images/top_users_grad.png
Normal file
After Width: | Height: | Size: 179 B |
65
upload/styles/cbv2new/layout/body.html
Normal file
|
@ -0,0 +1,65 @@
|
|||
{* Including Global Header *}
|
||||
{include file="$style_dir/global_header.html"}
|
||||
<body>
|
||||
<!-- Including Commong header -->
|
||||
{include file="$style_dir/message.html"}
|
||||
|
||||
<div id="container" class="clearfix">
|
||||
{include file="$style_dir/header.html" }
|
||||
<div id="content">
|
||||
{foreach from=$template_files item=file}
|
||||
{if template_file_exists($file,$style_dir)}
|
||||
{include file="$style_dir/$file" }
|
||||
{else}
|
||||
<div class="error" align="center">Unable to load template file "{$file}"</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div> <!--CONTENT END-->
|
||||
<div class="clear"></div>
|
||||
<div class="search_footer clearfix">
|
||||
<div class="foot_s_con">
|
||||
<div class="advance" title="Advanced Search"></div>
|
||||
<form action="" method="get" name="advance_search">
|
||||
<input type="text" name="query" id="query" />
|
||||
<input type="submit" value="Search" />
|
||||
</form>
|
||||
</div> <!--FOOT_S_CON END-->
|
||||
</div> <!--SEARCH_FOOTER END-->
|
||||
<div id="footer">
|
||||
<div class="changer">
|
||||
<div class="copyright">Powered By Clipbucket</div>
|
||||
<form action="" method="post" name="change_lang">
|
||||
<select>
|
||||
<option>Change Language</option>
|
||||
<option value="eng">English</option>
|
||||
<option value="fr">French</option>
|
||||
<option value="ur">Urdu</option>
|
||||
<option value="sp">Spanish</option>
|
||||
</select>
|
||||
</form>
|
||||
|
||||
<div class="ch_left"></div>
|
||||
<div class="ch_right"></div>
|
||||
</div> <!--CHANGER END-->
|
||||
<div class="ch_shadow"></div>
|
||||
<div class="footer">
|
||||
<ul class="clearfix">
|
||||
<li><a href="#">Home</a></li>
|
||||
<li><a href="#">Contact Us</a></li>
|
||||
<li><a href="#">Videos</a></li>
|
||||
<li><a href="#">Groups</a></li>
|
||||
<li><a href="#">Privacy Policy</a></li>
|
||||
<li><a href="#">Register</a></li>
|
||||
<li><a href="#">Login</a></li>
|
||||
<li><a href="#">Help</a></li>
|
||||
</ul>
|
||||
<div class="footer_sp"></div>
|
||||
<ul class="clearfix">
|
||||
<li>Exclusive Hosting Partners: <a href="#" rel="sponsors">Cirtex Hosting</a> & <a href="#" rel="sponsors">HostV</a></li>
|
||||
</ul>
|
||||
<div class="footer_sp"></div>
|
||||
</div> <!--FOOTER CLASS END-->
|
||||
</div> <!--FOOTER ID END-->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
10
upload/styles/cbv2new/layout/footer.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Untitled Document</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
201
upload/styles/cbv2new/layout/global_header.html
Normal file
|
@ -0,0 +1,201 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- ClipBucket v2 -->
|
||||
<meta name="copyright" content="ClipBucket - PHPBucket ClipBucket 2007 - {$smarty.now|date_format:"%Y"}" />
|
||||
<meta name="author" content="Arslan Hassan - http://clip-bucket.com/Arslan-Hassan" />
|
||||
|
||||
<meta name="keywords" content="{$meta_keywords}" />
|
||||
<meta name="description" content="{$meta_description}" />
|
||||
<meta name="distribution" content="global" />
|
||||
|
||||
|
||||
<title>{$title}</title>
|
||||
|
||||
<link href="{$theme}/main.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
|
||||
|
||||
|
||||
<script language="javascript">
|
||||
var baseurl = '{$baseurl}';
|
||||
var imageurl = '{$imageurl}';
|
||||
{if $upload_form_name !=''}
|
||||
var upload_form_name = '{$upload_form_name}';
|
||||
function submit_upload_form()
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
document.{$upload_form_name}.submit();
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
</script>
|
||||
<!-- Including JS Files-->
|
||||
{foreach from=$Cbucket->JSArray key=file item=type}
|
||||
{if $curActive == $type || $type=='global' }
|
||||
<script src="{$js}/{$file}"></script>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<!-- Including JS Files-->
|
||||
|
||||
|
||||
<!-- Including Headers -->
|
||||
{foreach from=$Cbucket->header_files key=file item=type}
|
||||
{if $curActive == $type || $type=='global' }
|
||||
{include file="$file"}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<!-- Ending Headers -->
|
||||
|
||||
|
||||
|
||||
{if $page == 'upload_video'}
|
||||
|
||||
<script type="text/javascript">
|
||||
var swfu;
|
||||
var file_name = {$file_name};
|
||||
{literal}
|
||||
window.onload = function() {
|
||||
var settings = {
|
||||
{/literal}
|
||||
flash_url : "{$js}/swfupload/swfupload.swf",
|
||||
upload_url: "{$baseurl}/actions/file_uploader.php",
|
||||
button_image_url: "{$baseurl}/images/icons/XPButton.png",
|
||||
post_params:
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
"file_name" : file_name,
|
||||
{literal}
|
||||
}
|
||||
{/literal},
|
||||
|
||||
|
||||
file_size_limit : "{$Clipbucket->configs.max_upload_size} MB",
|
||||
{literal}
|
||||
file_types : "*.*",
|
||||
file_types_description : "All Files",
|
||||
file_upload_limit : 2,
|
||||
file_queue_limit : 0,
|
||||
custom_settings : {
|
||||
progressTarget : "fsUploadProgress",
|
||||
cancelButtonId : "btnCancel"
|
||||
},
|
||||
debug: false,
|
||||
|
||||
// Button settings
|
||||
|
||||
button_placeholder_id: "spanButtonPlaceHolder",
|
||||
button_width: 61,
|
||||
button_height: 22,
|
||||
|
||||
// The event handler functions are defined in handlers.js
|
||||
file_queued_handler : fileQueued,
|
||||
file_queue_error_handler : fileQueueError,
|
||||
file_dialog_complete_handler : fileDialogComplete,
|
||||
upload_start_handler : uploadStart,
|
||||
upload_progress_handler : uploadProgress,
|
||||
upload_error_handler : uploadError,
|
||||
upload_success_handler : uploadSuccess,
|
||||
upload_complete_handler : uploadComplete,
|
||||
queue_complete_handler : queueComplete // Queue plugin event
|
||||
|
||||
|
||||
}
|
||||
|
||||
swfu = new SWFUpload(settings);
|
||||
};
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
{/if}
|
||||
<!-- Including Plugin Headers -->
|
||||
{php}
|
||||
global $plugin_list;
|
||||
if(!empty($plugin_list) && is_array($plugin_list))
|
||||
{
|
||||
foreach($plugin_list as $plugin)
|
||||
{
|
||||
if(!empty($plugin['plugin_header_file']))
|
||||
{
|
||||
if( !empty($plugin['plugin_folder']) &&
|
||||
file_exists(PLUG_DIR.'/'.$plugin['plugin_folder'].'/'.$plugin['plugin_header_file'])
|
||||
)
|
||||
{
|
||||
template(PLUG_DIR.'/'.$plugin['plugin_folder'].'/'.$plugin['plugin_header_file'],false);
|
||||
}else{
|
||||
if(file_exists(PLUG_DIR.'/'.$plugin['plugin_header_file']))
|
||||
template(PLUG_DIR.'/'.$plugin['plugin_header_file'],false);
|
||||
}}
|
||||
}
|
||||
}
|
||||
{/php}
|
||||
|
||||
<!-- Including Plugin Headers -->
|
||||
|
||||
<!-- Including Module Headers -->
|
||||
{php}
|
||||
global $Cbucket;
|
||||
$modlist = $Cbucket->moduleList;
|
||||
if(!empty($modlist) && is_array($modlist))
|
||||
{
|
||||
foreach($modlist as $mod)
|
||||
{
|
||||
if(!empty($mod['module_include_file']) &&
|
||||
file_exists(MODULEDIR.'/'.$mod['module_include_file']))
|
||||
template(MODULEDIR.'/'.$mod['module_include_file'],false);
|
||||
}
|
||||
}
|
||||
{/php}
|
||||
<!-- Including Module Headers -->
|
||||
|
||||
|
||||
{if $smarty.const.THIS_PAGE =='private_message' && $smarty.get.mid}
|
||||
<script type="text/javascript">
|
||||
var mid = {$smarty.get.mid};
|
||||
{literal}
|
||||
window.onload = function() {
|
||||
$('#messages_container').scrollTo( '#message-'+mid, 800 );
|
||||
}
|
||||
{/literal}
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('.user_login').hide();
|
||||
|
||||
$('#user_login').toggle(
|
||||
function() {
|
||||
$('.user_login').slideDown('normal');
|
||||
},
|
||||
function() {
|
||||
$('.user_login').slideUp('normal');
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
$('#grid').click(
|
||||
function() {
|
||||
$('.horizantal').removeClass('horizantal').addClass('vertical');
|
||||
$('.vid_sp').hide();
|
||||
}
|
||||
);
|
||||
|
||||
$('#list').click(
|
||||
function() {
|
||||
$('.vertical').removeClass('vertical').addClass('horizantal');
|
||||
$('.vid_sp').show();
|
||||
}
|
||||
);
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
</head>
|
||||
|
||||
<!-- Global Header Ends Here -->
|
62
upload/styles/cbv2new/layout/header.html
Normal file
|
@ -0,0 +1,62 @@
|
|||
<div id="header">
|
||||
<div class="logo">
|
||||
<img src="{$imageurl}/dot.gif" id="logo_icon" alt="{$title} Logo" title="{$title}" >
|
||||
</div> <!--LOGO END-->
|
||||
<div class="login_con clearfix">
|
||||
<div class="user_login clearfix">
|
||||
{if !$userquery->login_check('',true)}
|
||||
<a href="{$baseurl}/forgot.php" class="forget" title="Forget Username/Password, Click Here"></a>
|
||||
<form action="" method="post" name="login">
|
||||
<input type="text" value="Username" id="username" name="username" />
|
||||
<input type="password" value="Password" id="password" name="password" />
|
||||
<input type="submit" value="Login" id="login" name="login" />
|
||||
<input type="checkbox" name="rememberme" id="rememberme" /> <span class="remember">Remember Me</span>
|
||||
</form>
|
||||
{else}
|
||||
<div class="avatar">
|
||||
<div style="width:40px; height:40px; background:#EEE; margin:0px; padding:0px;"></div>
|
||||
</div>
|
||||
<div class="txt">Hello {$userquery->username} | <a href="{link name='logout'}">Logout</a></div>
|
||||
<div class="links"><a href="#">Inbox ({$cbpm->get_new_messages()})</a> | <a href="#">Messages ({$cbpm->get_new_messages('','notification')})</a> | <a href="{link name='my_account'}">Account</a> | <a href="#">Videos</a></div>
|
||||
{/if}
|
||||
</div> <!--USER_LOGIN CLASS END-->
|
||||
|
||||
<div id="user_login">
|
||||
<a href="#">
|
||||
{if !$userquery->login_check('',true)}
|
||||
Login
|
||||
{else}
|
||||
My Info
|
||||
{/if}
|
||||
</a>
|
||||
</div> <!--USER_LOGIN ID END-->
|
||||
</div> <!--LOGIN_CON END-->
|
||||
</div> <!--HEADER ID END-->
|
||||
|
||||
<div class="top_tabs clearfix">
|
||||
<ul>
|
||||
<li><a href="{$baseurl}" class="selected">Home</a></li>
|
||||
<li><a href="{link name='videos'}">Videos</a></li>
|
||||
<li><a href="groups.php">Groups</a></li>
|
||||
</ul>
|
||||
</div> <!--TOP_TABS END-->
|
||||
|
||||
<div id="navi_con">
|
||||
<div class="navi">
|
||||
<ul>
|
||||
{section name=c_list loop=$cat}
|
||||
<li><a href="videos.php?cat={$cat[c_list].category_id}">{$cat[c_list].category_name}</a></li>
|
||||
{/section}
|
||||
</ul>
|
||||
|
||||
<div class="search_con">
|
||||
<form action="{$search_result}" method="get" name="search" id="search" style="margin:0px; padding:0px;">
|
||||
<input name="query" id="query" type="text" class="searchbar" value="{$query}" />
|
||||
<input name="submit" type="submit" class="searchbutton" value="Search" />
|
||||
</form>
|
||||
</div> <!--SEARCH_CON END-->
|
||||
</div> <!--NAVI END-->
|
||||
</div> <!--NAVI_CON END-->
|
||||
|
||||
<div class="nav_shadow"></div>
|
||||
<div class="clear"></div>
|
116
upload/styles/cbv2new/layout/index.html
Normal file
|
@ -0,0 +1,116 @@
|
|||
<script language="javascript">
|
||||
SetId('Featured');
|
||||
</script>
|
||||
<div class="content_con clearfix">
|
||||
<div class="feature_con clearfix">
|
||||
<div class="feature_left">
|
||||
<div class="feature_head">
|
||||
<div class="left_side"></div>
|
||||
<div class="right_side"></div>
|
||||
<h2>Featured Video</h2>
|
||||
</div> <!--FEATURE_HEAD END-->
|
||||
<div class="feature_vid">
|
||||
<img src="{$imageurl}/player.png" width="350" height="280" />
|
||||
</div> <!--FEATURE_VID END-->
|
||||
</div> <!--FEATURE_LEFT END-->
|
||||
|
||||
<div class="feature_right clearfix">
|
||||
<div class="video_thumb">
|
||||
<div style="width:120px; height:90px; background:#f3f3f3"></div>
|
||||
</div> <!--VIDEO_THUMB END-->
|
||||
<div class="details_block">
|
||||
<ul>
|
||||
<li>Views of Video</li>
|
||||
<li><a href="OWNER LINK">Owner of Video</a></li>
|
||||
<li>Length of Video</li>
|
||||
</ul>
|
||||
</div> <!--DETAILS_BLOCK END-->
|
||||
<div class="title"><a href="#">Here Goes Video Title</a></div>
|
||||
<div class="sp"></div>
|
||||
</div> <!--FEATURE_RIGHT END-->
|
||||
</div> <!--FEATURE_CON END-->
|
||||
<div class="feature_shadow"></div>
|
||||
|
||||
<div class="ad">468X60 AD</div>
|
||||
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li class="selected"><a href="javascript:void(0)" id="watched">Being Watched</a></li>
|
||||
<li><a href="javascript:void(0)" id="most_watched">Most Watched</a></li>
|
||||
<li><a href="javascript:void(0)" id="recently_watched">Recently Added</a></li>
|
||||
</ul>
|
||||
</div> <!--TABS END-->
|
||||
<div class="main_vids clearfix">
|
||||
<div id="style_change">Change Style of Listing
|
||||
<div id="grid" title="Change To Grid Style"></div>
|
||||
<div id="list" title="Change to List Style"></div>
|
||||
</div> <!--STYLE_CHANGE END-->
|
||||
{section name=v_list loop=$videos}
|
||||
<div class="horizantal clearfix">
|
||||
<div class="video_thumb">
|
||||
<a href="{videoLink vdetails=$videos[v_list]}"><img src="{getThumb vdetails=$videos[v_list]}" width="120" height="90" border="0" {ANCHOR place="video_thumb"} /></a>
|
||||
</div> <!--VIDEO_THUMB END-->
|
||||
<div class="details_block">
|
||||
<div class="lvl1 clearfix">
|
||||
<div class="title"><a href="videos.php?v={$videos[v_list].videokey}">{$videos[v_list].title|truncate:40}</a></div>
|
||||
|
||||
{show_rating class='rating' rating='$videos.rating' ratings='$videos.rated_by' total='10'}
|
||||
|
||||
</div> <!--LVL1 END-->
|
||||
|
||||
<div class="lvl2 clearfix">
|
||||
<div class="desc">{$videos[v_list].description}</div>
|
||||
<div class="length">Time: <span>{$videos[v_list].duration|SetTime:false}</span></div>
|
||||
</div> <!--LVL2 END-->
|
||||
|
||||
<div class="lvl3 clearfix">
|
||||
<div class="views"><span>{$videos[v_list].views}</span> view(<strong>s</strong>)</div>
|
||||
<div class="comments"><a href="#"><img src="{$imageurl}/dot.gif" width="16" height="12" class="com_img" /> {$videos[v_list].comments_count} Comment(<strong>s</strong>)</a></div>
|
||||
</div> <!--LVL3 END-->
|
||||
|
||||
<div class="lvl4 clearfix">
|
||||
<div class="uploaded"><a href="{$userquery->profile_link($videos[v_list].userid)}">{$userquery->get_user_field_only($videos[v_list].userid,'username')}</a></div>
|
||||
</div> <!--LVL4 END-->
|
||||
</div> <!--DETAILS_BLOCK END-->
|
||||
<div class="vid_sp"></div>
|
||||
|
||||
</div> <!--HORIZANTAL END-->
|
||||
{/section}
|
||||
|
||||
|
||||
</div> <!--MAIN_VIDS END-->
|
||||
<div class="main_vid_shadow"></div>
|
||||
</div> <!--CONTENT_CON END-->
|
||||
|
||||
<div class="side_con">
|
||||
<div class="box">
|
||||
<div class="ads">300x250 AD</div>
|
||||
</div> <!--BOX END-->
|
||||
|
||||
<div class="box">
|
||||
<div class="ads">Another 300x250 AD</div>
|
||||
</div> <!--BOX END-->
|
||||
|
||||
<div class="box">
|
||||
<div class="login">
|
||||
<img src="{$imageurl}/dot.gif" class="happyface" alt="{$title}" />
|
||||
<div class="reg"><a href="signup.php">Click Here to Register</a></div>
|
||||
<div class="log"><a href="#user_login">Click Here to Login</a></div>
|
||||
</div>
|
||||
</div> <!--BOX END-->
|
||||
|
||||
<div class="box">
|
||||
<div class="top_bg">
|
||||
<h2>Top 10 Users</h2>
|
||||
{section name=tusers loop=$topusers}
|
||||
<div class="top_user">
|
||||
<div class="avatar"><img src="{$avatardir}/{$topusers[tusers].avatar}" width="30" height="30" border="0" /></div>
|
||||
<span style="float:left"><a href="#">{ $topusers[tusers].username }</a></span>
|
||||
<span style="float:right">Videos: <a href="#">{ $topusers[tusers].total_videos }</a></span>
|
||||
<div class="user_no">{$smarty.section.tusers.iteration}</div>
|
||||
</div>
|
||||
{/section}
|
||||
</div>
|
||||
</div> <!--BOX END-->
|
||||
|
||||
</div> <!--SIDE_CON END-->
|
52
upload/styles/cbv2new/layout/message.html
Normal file
|
@ -0,0 +1,52 @@
|
|||
{assign var=msg value=$eh->message_list}
|
||||
{assign var=err value=$eh->error_list}
|
||||
{if $err.0 neq '' || $err.1 != ''}<br />
|
||||
|
||||
<table width="910" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="11"><img src="{$imageurl}/message_tl.png" width="11" height="12" /></td>
|
||||
<td width="888" background="{$imageurl}/message_t.png"></td>
|
||||
<td width="11"><img src="{$imageurl}/message_tr.png" width="11" height="12" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td background="{$imageurl}/message_l.png"> </td>
|
||||
<td bgcolor="#FFEAEB"><ul>
|
||||
{foreach from=$err item=show_msg}
|
||||
<li> {$show_msg} </li>
|
||||
{/foreach}
|
||||
</ul></td>
|
||||
<td background="{$imageurl}/message_r.png"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="{$imageurl}/message_bl.png" width="11" height="12" /></td>
|
||||
<td background="{$imageurl}/message_b.png"></td>
|
||||
<td><img src="{$imageurl}/message_br.png" width="11" height="12" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
{/if}
|
||||
|
||||
{if $msg.0 neq ''}
|
||||
<table width="910" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="11"><img src="{$imageurl}/message_tl.png" width="11" height="12" /></td>
|
||||
<td width="888" background="{$imageurl}/message_t.png"></td>
|
||||
<td width="11"><img src="{$imageurl}/message_tr.png" width="11" height="12" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td background="{$imageurl}/message_l.png"> </td>
|
||||
<td bgcolor="#B9E3FF"><ul>
|
||||
{foreach from=$msg item=show_msg}
|
||||
<li> {$show_msg} </li>
|
||||
{/foreach}
|
||||
</ul></td>
|
||||
<td background="{$imageurl}/message_r.png"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="{$imageurl}/message_bl.png" width="11" height="12" /></td>
|
||||
<td background="{$imageurl}/message_b.png"></td>
|
||||
<td><img src="{$imageurl}/message_br.png" width="11" height="12" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
{/if}
|
9
upload/styles/cbv2new/template.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<template>
|
||||
<name>ClipBucket v2(New)</name>
|
||||
<author>Fawaz Tahir</author>
|
||||
<version>1</version>
|
||||
<released>2009 November 11</released>
|
||||
<description>ClipBucket version 2.0(New) Theme by Fawaz Tahir</description>
|
||||
<website title="ClipBucket">http://clip-bucket.com</website>
|
||||
</template>
|
210
upload/styles/cbv2new/theme/main.css
Normal file
|
@ -0,0 +1,210 @@
|
|||
/*
|
||||
ClipBucket 'ClipBucket v2(New)' Template Theme by Fawaz Tahir
|
||||
--------------------------------------------------------------
|
||||
Style name: ClipBucket v2(New)
|
||||
--------------------------------------------------------------
|
||||
*/
|
||||
|
||||
body,html { background:url(../images/main_bg.png) repeat-x; background-color:#ccc; margin:0px; padding:0px; font-family:Verdana,Tahoma,Arial,sans-serif; color:#555; font-size:12px; }
|
||||
|
||||
/* CLEARS */
|
||||
.clearfix { }
|
||||
.clearfix:after{ content: "."; display:block; height:0; font-size:0; clear:both; visibility:visible; }
|
||||
|
||||
/* GENERAL CSS */
|
||||
a,a:visited { color:#0099cc; text-decoration:underline; outline:none; }
|
||||
a:hover,a:active { /*color:#464646; */ color:#d54e21; outline:none; }
|
||||
a[rel=sponsors] { padding:5px; background:#0099cc; border:1px solid transparent; }
|
||||
a[rel=sponsors]:hover { background:#555; border:1px solid #232323; }
|
||||
.video_thumb { background:#FFF; border:1px solid #ccc; padding:1px; float:left; margin-right:5px; margin-bottom:5px; }
|
||||
.video_thumb:hover { border:1px solid #aaa; }
|
||||
.vid_sp { padding:5px 0px; margin-bottom:10px; border-bottom:1px solid #ccc; clear:both; }
|
||||
|
||||
/* CONTAINERS */
|
||||
#container { width:1000px; margin:0px auto; padding:0px; background:#FFF; position:relative; }
|
||||
.content_con { width:660px; margin:0px auto; padding:0px; float:left; margin-left:8px; }
|
||||
.login_con { width:325px; float:right; margin:0px; padding:0px; position:absolute; top:0px; right:0px; z-index:999; }
|
||||
.side_con { background:url(../images/side_bg.png) top repeat-x; width:305px; min-height:391px; border:1px solid #ccc; background-color:#f3f3f3; margin:0px 8px 0px 0px; padding:5px; float:right; }
|
||||
.feature_con { background:url(../images/feature_bg.png) repeat-x; border:1px solid #1b6fbc; background-color:#6699ff; min-height:287px; padding-bottom:4px; }
|
||||
.search_con { float:right; margin:0px; padding:0px; margin-top:4px; margin-right:4px; }
|
||||
.foot_s_con { width:500px; margin:10px auto 0px; padding:10px 0px 0px; }
|
||||
|
||||
/* HEADER */
|
||||
#header { margin:0px 0px 15px; padding:1px 0px 0px 5px; }
|
||||
|
||||
/* LOGO */
|
||||
.logo { background:url(../images/blocks.png) left bottom no-repeat; width:350px; float:left; height:65px; margin:0px; padding:0px; }
|
||||
|
||||
/* LOGIN FORM */
|
||||
#user_login { background:url(../images/log_button.png) top repeat-x; border:1px solid #ccc; padding:0px; margin:0px auto; height:37px; line-height:37px; width:100px; border-top:0px none; position:relative; bottom:1px; float:right; margin-right:15px; }
|
||||
#user_login a { display:block; text-decoration:none; text-align:center; text-shadow:1px 1px 1px #FFF; color:#555; text-transform:uppercase; }
|
||||
#user_login a:hover { color:#aaa; }
|
||||
.user_login { background:#f3f3f3; border:1px solid #ccc; border-top:0px none; margin-right:5px; padding:2px 5px; margin:0px; margin-right:10px; }
|
||||
.user_login input[type=text], .user_login input[type=password] { padding:4px; font-size:11px; margin-bottom:2px; border:1px solid #ccc; background:#fff; color:#aaa; width:125px; font-family:Calibri,Tahoma,Verdana,Arial,sans-serif; }
|
||||
.user_login input[type=text]:hover, .user_login input[type=password]:hover,
|
||||
.user_login input[type=text]:focus, .user_login input[type=password]:focus { color:#555; border:1px solid #aaa; }
|
||||
.user_login input[type=submit] { background:url(../images/login_button.png) top repeat-x; height:23px; border:1px solid #555; padding:0px; line-height:19px; font-size:10px; color:#FFF; text-align:center; width:50px; margin:5px 0px 5px 3px; }
|
||||
.user_login input[type=submit]:hover { background:url(../images/login_button.png) bottom repeat-x; height:23px; cursor:pointer; border:1px solid #228bb3; }
|
||||
.user_login input[type=submit]:active { background:#2ba0cd; }
|
||||
.user_login input[type=checkbox] { width:10px; height:10px; vertical-align:middle; }
|
||||
.user_login a.forget { background:url(../images/forget.png) top no-repeat; width:19px; height:19px; margin-top:3px; padding:0px; float:right; }
|
||||
.user_login a.forget:hover { background:url(../images/forget.png) bottom no-repeat; }
|
||||
span.remember { font-size:10px; }
|
||||
.user_login .avatar { padding:1px; width:40px; height:40px; background:#fff; margin:0px 5px 2px 0px; border:1px solid #ccc; float:left; }
|
||||
.user_login .avatar:hover { border:1px solid #aaa; }
|
||||
.user_login .txt { font-size:11px; margin-bottom:8px; }
|
||||
.user_login .txt a { color:#cc0000; text-decoration:none; padding:1px; }
|
||||
.user_login .txt a:hover { background:#cc0000; color:#fff; }
|
||||
.user_login .links { font-size:10px; }
|
||||
/* TOP TABS */
|
||||
.top_tabs { margin:0px; padding:0px; clear:both; }
|
||||
.top_tabs ul { margin:0px; padding:0px; list-style:none; float:left; position:relative; left:50%; }
|
||||
.top_tabs ul li { margin:0px; padding:0px; float:left; list-style:none; position:relative; right:50%; top:1px; }
|
||||
.top_tabs ul li a { width:139px; display:block; height:33px; line-height:33px; background:#62b3ff; text-align:center; text-decoration:none; color:#FFF; margin-right:9px; font-size:14px; }
|
||||
.top_tabs ul li a:hover { background:#0099cc; }
|
||||
.top_tabs ul li a.selected { background:url(../images/nav_grads.png) top repeat-x; border:1px solid #1b6fbc; border-bottom:0px none; }
|
||||
|
||||
/* NAVIGATION */
|
||||
#navi_con { background:#2d8fea; padding:5px; margin:0px; border-top:1px solid #1b6fbc; }
|
||||
.navi { background:url(../images/nav_grads.png) 0px -33px repeat-x; height:36px; border:1px solid #FFF; margin:0px; padding:0px; line-height:36px; }
|
||||
.navi ul { margin:0px; padding:0px; list-style:none; }
|
||||
.navi ul li { margin:0px; padding:0px; float:left; margin-right:10px; list-style:none; font-size:11px; }
|
||||
.navi ul li:first-child { margin-left:10px; }
|
||||
.navi ul li a { color:#21759b; }
|
||||
.nav_shadow { background:url(../images/nav_grads.png) bottom repeat-x; height:18px; margin:0px; margin-top:1px; padding:0px; }
|
||||
|
||||
/* SEARCH */
|
||||
.searchbar { background:url(../images/blocks.png) top left no-repeat; width:234px; border:1px solid #228ff3; margin:0px; padding:0px 5px; font-size:10px; color:#555; font-family:Tahoma; float:left; height:25px; line-height:25px; }
|
||||
.searchbar:hover, .searchbar:focus { color:#232323; }
|
||||
.searchbutton { background:url(../images/nav_grads.png) 0px -94px repeat-x; padding:0px; border:1px solid #228ff3; border-left:0px none; font-size:10px; color:#fff; width:60px; height:27px; line-height:25px; }
|
||||
.searchbutton:hover { background:url(../images/nav_grads.png) 0px -119px repeat-x; cursor:pointer; }
|
||||
|
||||
/* FEATURED VIDEO SECTION */
|
||||
.feature_left { float:left; margin:0px; padding:0px; }
|
||||
.feature_right { float:right; width:236px; margin:4px 3px 0px 0px; padding:5px; background:#c4e2ff; font-size:10px; }
|
||||
.feature_shadow { background:url(../images/shadows.png) 0px -31px no-repeat; width:660px; height:35px; margin:0px; padding:0px; }
|
||||
|
||||
|
||||
/* FEATURED VIDEO HEADING */
|
||||
.feature_head { background:#88c5ff; width:375px; margin:0px 0px; padding:0px; height:44px; line-height:42px; position:relative; text-align:center; }
|
||||
.feature_head h2 { font-size:18px; font-family:Tahoma; color:#fff; text-shadow:1px 1px 1px #44627f; }
|
||||
.feature_head .left_side { background:url(../images/blocks.png) -277px -50px no-repeat; width:10px; height:57px; position:absolute; top:-6px; left:-6px; }
|
||||
.feature_head .right_side { background:url(../images/blocks.png) -293px -56px no-repeat; width:9px; height:44px; position:absolute; right:-9px; }
|
||||
|
||||
/* FEATURED VIDEO LEFT SIDE */
|
||||
.feature_vid { margin:3px auto; width:350px; padding:0px; font-weight:lighter; }
|
||||
.feature_left .sp2 { background:url(line_sp2.png) repeat-x; height:2px; margin:6px 0px; padding:0px; }
|
||||
|
||||
/* FEATURED VIDEO RIGHT SIDE */
|
||||
.feature_right ul { margin:0px; padding:0px; list-style:none; }
|
||||
.feature_right ul li { padding:5px 3px; margin:0px; margin-bottom:3px; background:url(../images/top_user.png) repeat-x; color:#193f77; font-size:9px; border:1px solid #ccc; }
|
||||
.feature_right .sp { background:url(../images/line_sps.png) top repeat-x; margin:5px 0px; padding:0px; height:2px; }
|
||||
.feature_right .details_block { float:right; width:105px; margin:0px; padding:0px; }
|
||||
.feature_right .title { font-size:11px; clear:both; padding:0px; }
|
||||
|
||||
/* MAIN VIDEOS BLOCK */
|
||||
.tabs { background:url(../images/tabs_bg.png) top repeat-x; height:41px; margin:0px; line-height:41px; padding:0px; border:1px solid #ccc; }
|
||||
.tabs ul { margin:0px; padding:0px; list-style:none; }
|
||||
.tabs ul li { margin:0px; padding:0px 0px; list-style:none; float:left; }
|
||||
.tabs ul li a { background:url(../images/tabs_sp.png) right repeat-y; padding:13px 12px 14px; text-decoration:none; }
|
||||
.tabs ul li.selected { background:url(../images/tabs_bg.png) bottom repeat-x; }
|
||||
.tabs ul li.selected a { color:#d36a4a; text-decoration:none; }
|
||||
|
||||
.main_vids { border:1px solid #ccc; border-top:0px none; background:url(../images/main_vid_bg.png) bottom repeat-x; padding:8px; }
|
||||
.main_vid_shadow { background:url(../images/shadows.png) 0px -152px no-repeat; width:660px; height:6px; margin:0px; padding:0px; }
|
||||
|
||||
/* CHANGE LIST STYLE */
|
||||
#style_change { border-bottom:1px solid #ccc; padding:0px 5px 8px; margin:0px 0px 15px; font-size:10px; color:#232323; }
|
||||
#style_change a { text-decoration:none; }
|
||||
#grid { float:right; background:url(../images/blocks.png) -325px -78px no-repeat; padding:1px; border:1px solid #ccc; width:11px; height:11px; }
|
||||
#list { background:url(../images/blocks.png) -344px -78px no-repeat; padding:1px; border:1px solid #ccc; width:19px; height:11px; float:right; margin-right:10px; }
|
||||
#grid:hover,#list:hover { cursor:pointer; border:1px solid #aaa; }
|
||||
|
||||
/* HORIZATAL LISTING STYLE */
|
||||
.horizantal { margin:0px; padding:0px; clear:both; }
|
||||
.horizantal .details_block { float:right; width:79%; }
|
||||
.horizantal .lvl1, .horizantal .lvl2, .horizantal .lvl3, .horizantal .lvl4 { clear:right; margin-top:8px;; }
|
||||
|
||||
.horizantal .lvl1 { margin:0px; padding:0px; }
|
||||
.horizantal .lvl1 .title { float:left; color:#0099cc; }
|
||||
.horizantal .lvl1 .rating { float:right; width:75px; }
|
||||
.horizantal .lvl1 .rating .stars_blank { background:url(../images/stars.png) bottom repeat-x; height:16px; width:100%; }
|
||||
.horizantal .lvl1 .rating .stars_filled { background:url(../images/stars.png) top repeat-x; height:16px; float:left; }
|
||||
.horizantal .lvl2 .desc { font-size:11px; width:80%; float:left; }
|
||||
.horizantal .lvl2 .length { font-size:10px; width:14.5%; float:right; }
|
||||
.horizantal .lvl2 .length span { font-weight:bold; color:#0099cc; }
|
||||
|
||||
.horizantal .lvl3 .views { font-size:10px; float:left; margin-right:30px; }
|
||||
.horizantal .lvl3 .views span { color:#0099cc; }
|
||||
.horizantal .lvl3 .comments { font-size:10px; }
|
||||
.horizantal .lvl3 .comments a,.lvl3 .comments a:visited { text-decoration:none; }
|
||||
.horizantal .lvl3 .comments a .com_img { border:0px none; vertical-align:sub; background:url(../images/blocks.png) right -86px; no-repeat; }
|
||||
|
||||
.horizantal .lvl4 .uploaded { font-size:10px; }
|
||||
|
||||
/* VERTICAL LISTING STYLE */
|
||||
.vertical { width:128px; margin:0px 0px 10px 0px; padding:0px 0px 10px; float:left; }
|
||||
.vertical:nth-child(6n+1) { clear:left; }
|
||||
.vertical .details_block { float:none; width:100%; }
|
||||
.vertical .lvl1, .vertical .lvl2, .vertical .lvl3, .vertical .lvl4 { margin:5px; display:block; }
|
||||
|
||||
.vertical .lvl1 .title { font-size:11px; }
|
||||
.vertical .lvl1 .rating { margin-top:5px; width:50px; }
|
||||
.vertical .lvl1 .rating .stars_blank { background:url(../images/small_stars.png) bottom repeat-x; height:12px; width:100%; }
|
||||
.vertical .lvl1 .rating .stars_filled { background:url(../images/small_stars.png) top repeat-x; height:12px; float:left; }
|
||||
.vertical .lvl2 { display:none; }
|
||||
|
||||
.vertical .lvl3 { font-size:10px; }
|
||||
.vertical .lvl3 .views span { font-weight:lighter; }
|
||||
.vertical .lvl3 .comments { display:none; }
|
||||
|
||||
.vertical .lvl4 { font-size:10px; }
|
||||
|
||||
/* SIDEBAR INDEX */
|
||||
.box { background:#FFF; border:1px solid #b6e2fe; padding:2px; width:300px; margin:0px auto 10px; }
|
||||
|
||||
|
||||
/* LOGIN/REGISTER BOX */
|
||||
.login { background:url(../images/login_grad.png) repeat-x; min-height:79px; background-color:#8d8b8b; margin:0px; padding:0px 3px 0px;}
|
||||
.login .happyface { background:url(../images/blocks.png) right top no-repeat; width:77px; height:73px; float:right; margin-top:5px; }
|
||||
.login .reg, .login .log { background:url(../images/blocks.png) 0px -47px no-repeat; width:203px; height:27px; padding:0px 5px; line-height:27px; float:left; font-size:10px; margin:9px 0px 4px 0px; }
|
||||
.login .log { background:url(../images/blocks.png) 0px -83px no-repeat; margin:0px 0px 0px 0px; }
|
||||
.login .reg a, .login .log a, .login .reg a:visited, .login .log a:visited { display:block; color:#232323; text-decoration:none; }
|
||||
.login .reg a:hover, .login .log a:hover, .login .reg a:active, .login .log a:active { display:block; color:#232323; text-decoration:underline; }
|
||||
|
||||
/* TOP USERS */
|
||||
.top_bg { background:url(../images/top_users_grad.png) repeat-x; min-height:81px; background-color:#ccfeff; border:1px solid #85a8c8; margin:0px; padding:0px 2px; }
|
||||
.top_bg h2 { margin:5px 2px 8px; padding:0px; color:#21759b; font-size:18px; font-family:Tahoma; text-transform:uppercase; font-weight:bold; }
|
||||
.top_user { background:url(../images/top_user.png) repeat-x; height:35px; border:1px solid #CCC; margin-bottom:15px; line-height:35px; font-size:9px; padding:0px 8px; position:relative; background-color:#FFF; }
|
||||
.avatar { width:30px; height:30px; background:#232323; padding:0px; margin:2px 5px 0px 0px; vertical-align:super; float:left; }
|
||||
.top_user > .user_no { background:url(../images/blocks.png) -231px -56px no-repeat; width:19px; height:45px; position:absolute; top:-5px; right:85px; font-size:11px; color:#FFF; text-shadow:1px 1px 1px #6fa1b7; text-indent:4px; line-height:45px; }
|
||||
|
||||
/* FOOTER SEARCH */
|
||||
.search_footer { background:url(../images/search_footer.png) repeat-x; height:57px; margin:0px; padding:0px; clear:both; }
|
||||
.advance { background:url(../images/blocks.png) left -123px no-repeat; width:33px; height:35px; text-indent:-9000px; float:left; margin:2px 6px 0px 0px; padding:0px; }
|
||||
.foot_s_con form { margin:0px; padding:0px; display:inline; }
|
||||
.foot_s_con input[type=text] { background:#fff; border:1px solid #CCC; width:280px; font-family:Verdana,Tahoma,Arial,sans-serif; color:#555; float:left; margin:0px 6px 0px 0px; padding:9px 12px; }
|
||||
.foot_s_con input[type=text]:focus { border:1px solid #aaa; }
|
||||
.foot_s_con input[type=submit] { background:url(../images/foot_search.png) top repeat-x; border:1px solid #555555; height:35px; padding:0px 18px; margin:1px 0px 0px; color:#FFF; font-family:Verdana,Tahoma,Arial,sans-serif; }
|
||||
.foot_s_con input[type=submit]:hover { background:url(../images/foot_search.png) bottom repeat-x; border:1px solid #228bb3; cursor:pointer; }
|
||||
|
||||
/* FOOTER */
|
||||
#footer { background:#333; padding:10px 0px; margin:0px; }
|
||||
.footer_sp { background:url(../images/line_sps.png) bottom repeat-x; margin:12px 0px; padding:0px; clear:both; height:2px; }
|
||||
.footer { padding:0px 8px; margin:5px 0px 0px; font-size:10px; color:#fff; }
|
||||
.footer ul { padding:0px; margin:0px; list-style:none; }
|
||||
.footer ul li { margin:0px; margin-right:17px; padding:0px; float:left; list-style:none; }
|
||||
.footer ul li a { color:#eee; text-decoration:none; }
|
||||
.footer ul li a:hover { color:#fff; text-shadow:1px 1px 1px #000; }
|
||||
|
||||
/* CHANGER LANGUAGE/TEMPLATE */
|
||||
.copyright { color:#fff; font-weight:bold; float:right; text-shadow:1px 1px 1px #555; font-size:10px; }
|
||||
.changer { background:#0099cc; padding:0px 8px; margin:0px; position:relative; height:26px; line-height:24px; }
|
||||
.changer select { font-size:11px; margin:4px 0px 0px; }
|
||||
.ch_left { background:url(../images/blocks.png) -278px top no-repeat; width:9px; height:33px; margin:0px; padding:0px; position:absolute; left:-8px; top:0px; }
|
||||
.ch_right { background:url(../images/blocks.png) -289px top no-repeat; width:9px; height:33px; position:absolute; right:-8px; top:0px; }
|
||||
.ch_shadow { background:url(../images/shadows.png) top no-repeat; width:1000px; height:9px; margin:0px; padding:0px; }
|
||||
|
||||
/* EXAMPLE ADS */
|
||||
.ads { background:#f3f3f3; width:300px; height:250px; text-align:center; line-height:250px; font-size:15px; text-decoration:underline; }
|
||||
.ad { width:468px; height:60px; background:#f3f3f3; border:1px solid #ccc; margin:0px auto 25px; padding:0px; line-height:60px; text-align:center; font-size:15px; }
|
5
upload/styles/cbv2new/theme/rating.css
Normal file
|
@ -0,0 +1,5 @@
|
|||
.big_stars { width:75px; height:16px; }
|
||||
|
||||
.big_stars .stars_blank{background-image:url(../images/stars.png); background-repeat:repeat-x; background-position:bottom; width:100%}
|
||||
|
||||
.big_stars .stars_filled{background-image:url(../images/stars.png); background-repeat:repeat-x; background-position:top; float:left}
|
|
@ -10,129 +10,140 @@
|
|||
require 'includes/config.inc.php';
|
||||
$pages->page_redir();
|
||||
|
||||
$url = mysql_clean($_GET['url']);
|
||||
include('group_inc.php');
|
||||
$details = $groups->GetDetails($url);
|
||||
$group = $details['group_id'];
|
||||
@$user = $_SESSION['username'];
|
||||
if(empty($user)){
|
||||
@$user = $_COOKIE['username'];
|
||||
}
|
||||
$MustJoin = 'No';
|
||||
$url = $_GET['url'];
|
||||
$details = $groups->group_details_url($url);
|
||||
$userdata = $userquery->GetUserData($details['group_owner']);
|
||||
$user = $_SESSION['userid'];
|
||||
include('group_check.php');
|
||||
|
||||
//assigning Tags
|
||||
$tags = $details['group_tags'];
|
||||
$tags = explode(" ", $tags );
|
||||
Assign("tags",$tags);
|
||||
|
||||
//Delete Topic
|
||||
if(isset($_POST['delete_topic'])){
|
||||
$msg = $groups->DeleteTopic($_POST['delete_topic']);
|
||||
}
|
||||
|
||||
//Approving Topics
|
||||
if(isset($_POST['approve_topic'])){
|
||||
$topic = $_POST['approve_topic'];
|
||||
$groups->ApproveTopic($topic);
|
||||
}
|
||||
//Getting Group Other Details
|
||||
$details['members'] = $groups->CountMembers($group);
|
||||
$details['videos'] = $groups->CountVideos($group);
|
||||
$details['topics'] = $groups->CountTopics($group);
|
||||
$details['posts'] = $groups->CountGroupPosts($group);
|
||||
|
||||
//Adding Topics
|
||||
if(isset($_POST['add_topic'])){
|
||||
$userquery->logincheck();
|
||||
$topic = mysql_clean($_POST['topic']);
|
||||
$group = $details['group_id'];
|
||||
$video = mysql_clean($_POST['video']);
|
||||
if($details['post_type'] == '1'){
|
||||
$approved = 'no';
|
||||
}else{
|
||||
$approved = 'yes';
|
||||
}
|
||||
$msg = $groups->AddTopic($topic,$group,$video,$approved);
|
||||
}
|
||||
|
||||
//Getting Topic List
|
||||
$sql = "Select * FROM group_topics WHERE group_id = '".$details['group_id']."' AND approved='yes' ORDER BY last_reply DESC";
|
||||
if(@$_SESSION['username'] == $details['username']){
|
||||
$sql = "Select * FROM group_topics WHERE group_id = '".$details['group_id']."' ORDER BY last_reply DESC";
|
||||
}
|
||||
$data = $db->Execute($sql);
|
||||
$total_topic = $data->recordcount() + 0;
|
||||
$topics = $data->getrows();
|
||||
for($id=0;$id<$total_topic;$id++){
|
||||
$topics[$id]['replies'] = $groups->CountReplies($topics[$id]['topic_id']);
|
||||
}
|
||||
Assign('topics',$topics);
|
||||
|
||||
//Getting User Videos
|
||||
$sql = "SELECT * from video WHERE username = '".@$_SESSION['username']."'";
|
||||
$rs = $db->Execute($sql);
|
||||
$videos = $rs->getrows();
|
||||
Assign('videos',$videos);
|
||||
|
||||
//Setting Up Topic Form
|
||||
if($details['post_type'] == '0' || $details['post_type'] == '1' && !empty($_SESSION['username'])){
|
||||
Assign('show_form','yes');
|
||||
Assign('user_name',@$_SESSION['username']);
|
||||
}else{
|
||||
Assign('user_name',@$_SESSION['username']);
|
||||
Assign('show_form','no');
|
||||
}
|
||||
if(empty($_SESSION['username']) || !$groups->is_joined($user,$group) || !$groups->is_active($user,$group)){
|
||||
Assign('show_form','no');
|
||||
if(!$groups->is_active($user,$group)){
|
||||
Assign('active','no');
|
||||
}
|
||||
if(!$groups->is_joined($user,$group)){
|
||||
Assign('joined','no');
|
||||
}
|
||||
}
|
||||
if($details['username'] == @$_SESSION['username'] && !empty($_SESSION['username'])){
|
||||
Assign('user_name',$_SESSION['username']);
|
||||
Assign('show_form','yes');
|
||||
}
|
||||
|
||||
//Getting Group Videos
|
||||
$sql = "Select * FROM group_videos WHERE group_id = '".$details['group_id']."' AND approved='yes' ORDER BY date_added DESC LIMIT 0,6";
|
||||
$data = $db->Execute($sql);
|
||||
$total_videos = $data->recordcount() + 0;
|
||||
$videos = $data->getrows();
|
||||
for($id=0;$id<$total_videos;$id++){
|
||||
$data = $myquery->GetVideDetails($videos[$id]['videokey']);
|
||||
$flv = $data['flv'];
|
||||
$videos[$id]['thumb'] = GetThumb($flv);
|
||||
$videos[$id]['title'] = $data['title'];
|
||||
$videos[$id]['url'] = VideoLink($data['videokey'],$data['title']);
|
||||
}
|
||||
Assign('videos',$videos);
|
||||
|
||||
|
||||
//Getting Category
|
||||
$query = mysql_query("SELECT * FROM category WHERE categoryid='".$details['group_category']."'");
|
||||
$data = mysql_fetch_array($query);
|
||||
$details['category'] = $data['category_name'];
|
||||
|
||||
//Chceking Logged in user is group user or not
|
||||
if(!$groups->is_joined(@$_SESSION['username'],$group)){
|
||||
Assign('join','yes');
|
||||
}else{
|
||||
Assign('join','no');
|
||||
}
|
||||
Assign('groups',$details);
|
||||
|
||||
|
||||
|
||||
Assign('subtitle',$details['group_name'].' Group');
|
||||
@Assign('msg',$msg);
|
||||
@Assign('show_group',$show_group);
|
||||
Template('header.html');
|
||||
Template('message.html');
|
||||
Template('group_header.html');
|
||||
Template('view_group.html');
|
||||
Template('footer.html');
|
||||
//Assign Variables
|
||||
assign('groupdata',$details);
|
||||
assign('ownerdata',$userdata);
|
||||
|
||||
template_files('view_group.html');
|
||||
display_it();
|
||||
// include('group_inc.php');
|
||||
// $details = $groups->group_details_url($url);
|
||||
// $group = $details['group_id'];
|
||||
// @$user = $_SESSION['username'];
|
||||
// if(empty($user)){
|
||||
// @$user = $_COOKIE['username'];
|
||||
// }
|
||||
// $MustJoin = 'No';
|
||||
//
|
||||
//
|
||||
////assigning Tags
|
||||
//$tags = $details['group_tags'];
|
||||
//$tags = explode(" ", $tags );
|
||||
//Assign("tags",$tags);
|
||||
//
|
||||
////Delete Topic
|
||||
//if(isset($_POST['delete_topic'])){
|
||||
// $msg = $groups->DeleteTopic($_POST['delete_topic']);
|
||||
//}
|
||||
//
|
||||
////Approving Topics
|
||||
//if(isset($_POST['approve_topic'])){
|
||||
// $topic = $_POST['approve_topic'];
|
||||
// $groups->ApproveTopic($topic);
|
||||
//}
|
||||
////Getting Group Other Details
|
||||
//$details['members'] = $groups->CountMembers($group);
|
||||
//$details['videos'] = $groups->CountVideos($group);
|
||||
//$details['topics'] = $groups->CountTopics($group);
|
||||
//$details['posts'] = $groups->CountGroupPosts($group);
|
||||
//
|
||||
////Adding Topics
|
||||
//if(isset($_POST['add_topic'])){
|
||||
//$userquery->logincheck();
|
||||
//$topic = mysql_clean($_POST['topic']);
|
||||
//$group = $details['group_id'];
|
||||
//$video = mysql_clean($_POST['video']);
|
||||
//if($details['post_type'] == '1'){
|
||||
//$approved = 'no';
|
||||
//}else{
|
||||
//$approved = 'yes';
|
||||
//}
|
||||
//$msg = $groups->AddTopic($topic,$group,$video,$approved);
|
||||
//}
|
||||
//
|
||||
////Getting Topic List
|
||||
//$sql = "Select * FROM group_topics WHERE group_id = '".$details['group_id']."' AND approved='yes' ORDER BY last_reply DESC";
|
||||
//if(@$_SESSION['username'] == $details['username']){
|
||||
//$sql = "Select * FROM group_topics WHERE group_id = '".$details['group_id']."' ORDER BY last_reply DESC";
|
||||
//}
|
||||
//$data = $db->Execute($sql);
|
||||
//$total_topic = $data->recordcount() + 0;
|
||||
//$topics = $data->getrows();
|
||||
// for($id=0;$id<$total_topic;$id++){
|
||||
// $topics[$id]['replies'] = $groups->CountReplies($topics[$id]['topic_id']);
|
||||
// }
|
||||
//Assign('topics',$topics);
|
||||
//
|
||||
////Getting User Videos
|
||||
// $sql = "SELECT * from video WHERE username = '".@$_SESSION['username']."'";
|
||||
// $rs = $db->Execute($sql);
|
||||
// $videos = $rs->getrows();
|
||||
// Assign('videos',$videos);
|
||||
//
|
||||
////Setting Up Topic Form
|
||||
//if($details['post_type'] == '0' || $details['post_type'] == '1' && !empty($_SESSION['username'])){
|
||||
// Assign('show_form','yes');
|
||||
// Assign('user_name',@$_SESSION['username']);
|
||||
//}else{
|
||||
// Assign('user_name',@$_SESSION['username']);
|
||||
// Assign('show_form','no');
|
||||
//}
|
||||
//if(empty($_SESSION['username']) || !$groups->is_joined($user,$group) || !$groups->is_active($user,$group)){
|
||||
//Assign('show_form','no');
|
||||
// if(!$groups->is_active($user,$group)){
|
||||
// Assign('active','no');
|
||||
// }
|
||||
// if(!$groups->is_joined($user,$group)){
|
||||
// Assign('joined','no');
|
||||
// }
|
||||
//}
|
||||
//if($details['username'] == @$_SESSION['username'] && !empty($_SESSION['username'])){
|
||||
// Assign('user_name',$_SESSION['username']);
|
||||
// Assign('show_form','yes');
|
||||
//}
|
||||
//
|
||||
////Getting Group Videos
|
||||
//$sql = "Select * FROM group_videos WHERE group_id = '".$details['group_id']."' AND approved='yes' ORDER BY date_added DESC LIMIT 0,6";
|
||||
//$data = $db->Execute($sql);
|
||||
//$total_videos = $data->recordcount() + 0;
|
||||
//$videos = $data->getrows();
|
||||
// for($id=0;$id<$total_videos;$id++){
|
||||
// $data = $myquery->GetVideDetails($videos[$id]['videokey']);
|
||||
// $flv = $data['flv'];
|
||||
// $videos[$id]['thumb'] = GetThumb($flv);
|
||||
// $videos[$id]['title'] = $data['title'];
|
||||
// $videos[$id]['url'] = VideoLink($data['videokey'],$data['title']);
|
||||
// }
|
||||
//Assign('videos',$videos);
|
||||
//
|
||||
//
|
||||
////Getting Category
|
||||
//$query = mysql_query("SELECT * FROM category WHERE categoryid='".$details['group_category']."'");
|
||||
//$data = mysql_fetch_array($query);
|
||||
//$details['category'] = $data['category_name'];
|
||||
//
|
||||
////Chceking Logged in user is group user or not
|
||||
// if(!$groups->is_joined(@$_SESSION['username'],$group)){
|
||||
// Assign('join','yes');
|
||||
// }else{
|
||||
// Assign('join','no');
|
||||
// }
|
||||
//Assign('groups',$details);
|
||||
//
|
||||
//
|
||||
//
|
||||
//Assign('subtitle',$details['group_name'].' Group');
|
||||
//@Assign('msg',$msg);
|
||||
//@Assign('show_group',$show_group);
|
||||
//Template('header.html');
|
||||
//Template('message.html');
|
||||
//Template('group_header.html');
|
||||
//Template('view_group.html');
|
||||
//Template('footer.html');
|
||||
?>
|