ADDED : New ClipBucket Admin Template
Fixed : Minor Bugs
|
@ -1,62 +1,36 @@
|
|||
ClipBucket License Agreement (CBLA)
|
||||
Version 1, November 13, 2008
|
||||
ClipBucket License Agreement
|
||||
|
||||
Copyright © 2008 PHPBucket PVT, LTD <http://phpbucket.com/>
|
||||
What is CBLA (ClipBucket License Agreement):-
|
||||
|
||||
Preamble
|
||||
The CBLA (ClipBucket License Agreement) is, as its name shows it, a contract between the software developer/Owner (Arslan Hassan / PHPBucket / ClipBucket / ClipBucket Lite) and a potential user/You(Either an Entity or a Single User). By means of this contract it is established that the developer of the software is its de facto owner, and that a copy of the respective software Downloaded from a vendor (or downloaded from the Internet) only licenses it to a user, and does not transmit any intellectual rights whatsoever on the Software. The end user is only allowed to use it as long as certain terms are respected, and is also prohibited from any alterations or uses of the software without the specific consent of its rightful owner, the software company/developer(ClipBucket / PHPBucket ).
|
||||
|
||||
The CBLA (ClipBucket License Agreement) is, as its name shows it, a contract between the software developer / owner (PHPBucket / ClipBucket ) and a potential user, either an Entity or a Single User, (hereinafter each licensee is addressed as "you"). By means of this contract it is established that the developer of the software is it's de facto owner, and that a copy of the respective software downloaded from a vendor (or downloaded from the Internet) only licenses it to a user, and does not transmit any intellectual rights whatsoever on the Software.
|
||||
NOTICE
|
||||
This ClipBucket License Agreement (CBLA)covers your use of the ClipBucket software product that accompanies this CBLA and related software components, which may include associated media, printed materials, and "online" or electronic documentation. All such software and materials are referred to herein as the "Software Product." A software license, issued to a designated user only by ClipBucket / PHPBucket or its authorized agents, is required for each user of the Software Product. If you do not agree to the terms of this CBLA, then do not install or use the Software Product or the Software Product License. By explicitly accepting this CBLA, however, or by installing, copying, downloading, accessing, or otherwise using the Software Product and/or Software Product License, you are acknowledging and agreeing to be bound by the following terms: ( Terms & Conditions are Subject to change without Any Notice )
|
||||
|
||||
The end user is only allowed to use it as long the terms in this license agreement are accepted.
|
||||
1. LICENSE
|
||||
|
||||
This ClipBucket License Agreement (CBLA) covers your use of the ClipBucket software product that accompanies this CBLA and related software components, which may include associated media, printed materials, and "online" or electronic documentation. All such software and materials are referred to herein as the "Software Product." A software license, issued to a designated user only by ClipBucket / PHPBucket or its authorized agents, is required for each user of the Software Product. If you do not agree to the terms of this CBLA, you are not authorized to install or use the associated Software Product or the Software Product License. By explicitly accepting this CBLA, or by installing, copying, downloading, accessing, or otherwise using the Software Product and/or Software Product License, you are acknowledging and agreeing to be bound by the terms listed under TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION.
|
||||
(a) Software Product License.
|
||||
The Software Product License, which is issued to a designated user, enables such designated user to install and use the Software Product on a His/Her websites/domains Without Paying Any Cost. But the User Cannot Install it on the Domains for Specifically sale purpose. And also Prohibits User to Sell This Script or any of its Content/Code. But that is not Limited to Free Redistribution of the script Holding Our Name just like in its original Form
|
||||
|
||||
(b) Grant of License. Subject to a validly issued Software Product License, ClipBucket/PHPBucket grants to you the non-exclusive, non-transferable right for you to use the Software Product on websites/domains. You may not modify or create derivative copies of the Software Product. All rights not expressly granted to you are retained by ClipBucket/ PHPBucket.
|
||||
|
||||
CLIPBUCKET LICENSE AGREEMENT
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
(subject to change without notice)
|
||||
(c) Adult Content Prohibitation You cannot use Clipbucket on any website which containt any kind of adult/Pornography content. If you want to Use Clipbucket on such kind of websites you need to purchase the Adult Permit which is Available on the Website for a Nominal Fee
|
||||
|
||||
(d) Licenses Clarification:
|
||||
|
||||
1. LICENSE
|
||||
|
||||
(a) Software Product License.
|
||||
|
||||
The Software Product License, which is issued to a designated user, enables such designated user to install and use the Software Product on a His/Her websites/domains Without paying any fee.
|
||||
|
||||
You are not allowed to:
|
||||
|
||||
(a.1) sell the software product
|
||||
(a.2) sell derivate works based on the software product or any of it's associated components
|
||||
(a.3) use any portion of the software product in other products or derivate works
|
||||
|
||||
You are allowed to:
|
||||
|
||||
(a.4) create modifications for the software product
|
||||
(a.5) alter the software product for your own use
|
||||
(a.6) sell products that integrate with or enhance the software product
|
||||
|
||||
|
||||
(b) Grant of License.
|
||||
|
||||
Subject to a validly issued Software Product License, ClipBucket/PHPBucket grants to you the non-exclusive, non-transferable right for you to use the Software Product on an unlimited number of websites/domains. All rights not expressly granted to you are retained by ClipBucket/ PHPBucket.
|
||||
|
||||
(c) Adult Content Prohibition
|
||||
You cannot use ClipBucket on any website which contain any kind of pornographic content. If you want to Use ClipBucket on such kind of websites you need to purchase the Adult Permit which is available on the official ClipBucket website for a nominal fee
|
||||
When you Download ClipBucket From ClipBucket / PHPBucket , you are entitled to use such software on Your Domains/Websites For your Own Use, You cannot install it on the domains/Websites For specifically sale purpose. User is also prohibite to sell that Script as a whole or Its Content/Code.
|
||||
|
||||
2. WARRANTY:
|
||||
|
||||
ClipBucket / PHP Bucket Softwares are Provided on ”AS IS” and ” AS AVAILABLE" BASIS. ClipBucket /PHPBucket DISCLAIMS ANY IMPLIED WARRANTIES. ClipBucket/PHPBucet , ANY OF ITS EMPLOYEES, MANAGEMENT OR AFFILIATES MAY NOT BE HELD RESPONSIBLE OR THUS LIABLE FOR ANY POSSIBLE DAMAGES RESULTING IN USE OR MISUSE OF ANY INFORMATION, CONTENT OR SOFTWARE PROVIDED BY ClipBucket/PHPBucket , INCLUDING DIRECT OR INDIRECT, PUNITIVE, AND INCIDENTAL RESULTING FROM ANY FAILURE TO PROVIDE SERVICES, SUSPENSION OF SERVICES, OR TERMINATION OF SERVICES. THE SOFTWARE IS PROVIDED "AS IS" AND YOU ASSUME ALL RISK WITH ITS INSTALLATION, CONFIGURATION AND USE. THERE ARE NO WARRANTIES, CLAIMS OR REPRESENTATIONS MADE BY ClipBucket/PHPBucket, EITHER EXPRESS, IMPLIED, OR STATUTORY, WITH RESPECT TO THE SOFTWARE, INCLUDING WARRANTIES OF QUALITY, PERFORMANCE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE, NOR ARE THERE ANY WARRANTIES CREATED BY COURSE OF DEALING, COURSE OF PERFORMANCE, OR TRADE USAGE. FURTHER, ClipBucket / PHPBucket DOES NOT REPRESENT OR WARRANT THAT THE SOFTWARE WILL ALWAYS BE AVAILABLE, ACCESSIBLE, ACCURATE, COMPLETE, OR ERROR-FREE. THE FOREGOING EXCLUSIONS AND DISCLAIMERS ARE AN ESSENTIAL PART OF THIS AGREEMENT AND FORMED THE BASIS FOR DETERMINING THE PRICE CHARGED FOR THE SOFTWARE AND ANY ASSOCIATED SERVICES.
|
||||
ClipBucket / PHP Bucket Softwares are Provided on ”AS IS” and ” AS AVAILABLE" BASIS. ClipBucket /PHPBucket DISCLAIMS ANY IMPLIED WARRANTIES. ClipBucket/PHPBucet , ANY OF ITS EMPLOYEES, MANAGEMENT OR AFFILIATES MAY NOT BE HELD RESPONSIBLE OR THUS LIABLE FOR ANY POSSIBLE DAMAGES RESULTING IN USE OR MISUSE OF ANY INFORMATION, CONTENT OR SOFTWARE PROVIDED BY ClipBucket/PHPBucket , INCLUDING DIRECT OR INDIRECT, PUNITIVE, AND INCIDENTAL RESULTING FROM ANY FAILURE TO PROVIDE SERVICES, SUSPENSION OF SERVICES, OR TERMINATION OF SERVICES. THE SOFTWARE IS PROVIDED "AS IS" AND YOU ASSUME ALL RISK WITH ITS INSTALLATION, CONFIGURATION AND USE. THERE ARE NO WARRANTIES, CLAIMS OR REPRESENTATIONS MADE BY ClipBucket/PHPBucket, EITHER EXPRESS, IMPLIED, OR STATUTORY, WITH RESPECT TO THE SOFTWARE, INCLUDING WARRANTIES OF QUALITY, PERFORMANCE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE, NOR ARE THERE ANY WARRANTIES CREATED BY COURSE OF DEALING, COURSE OF PERFORMANCE, OR TRADE USAGE. FURTHER, ClipBucket / PHPBucket DOES NOT REPRESENT OR WARRANT THAT THE SOFTWARE WILL ALWAYS BE AVAILABLE, ACCESSIBLE, ACCURATE, COMPLETE, OR ERROR-FREE. THE FOREGOING EXCLUSIONS AND DISCLAIMERS ARE AN ESSENTIAL PART OF THIS AGREEMENT AND FORMED THE BASIS FOR DETERMINING THE PRICE CHARGED FOR THE SOFTWARE AND ANY ASSOCIATED SERVICES.
|
||||
|
||||
3. LIMITED LIABILITY:
|
||||
|
||||
YOU ASSUME ALL RISK ASSOCIATED WITH THE INSTALLATION AND USE OF THE SOFTWARE. IN NO EVENT SHALL ClipBucket/PHPBucket BE LIABLE WHETHER IN CONTRACT, WARRANTY, TORT (INCLUDING NEGLIGENCE (WHETHER ACTIVE, PASSIVE OR IMPUTED), PRODUCT LIABILITY OR STRICT LIABILITY OR OTHER THEORY), FOR COVER OR FOR ANY INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION ANY LOSS OF PROFITS OR DATA, BUSINESS INTERRUPTION, COMPUTER FAILURE OR OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE OR PERFORMANCE OF ANY RELATED SERVICES, EVEN IF ClipBucket/PHPBucket HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
ClipBucket/PHPBucket’s CUMULATIVE LIABILITY TO YOU OR ANY OTHER PARTY FOR ANY LOSS OR DAMAGES RESULTING FROM ANY CLAIMS, DEMANDS, OR ACTIONS ARISING OUT OF OR RELATING TO THIS LICENSE SHALL NOT EXCEED THE AMOUNTS PAID BY YOU TO ClipBucket/PHPBucket FOR THE USE OF THE SOFTWARE. YOU HEREBY RELEASE ClipBucket/PHPBucket FROM ANY AND ALL OBLIGATIONS, LIABILITIES AND CLAIMS IN EXCESS OF THIS LIMITATION.
|
||||
3. IMITED LIABILITY:
|
||||
|
||||
YOU ASSUME ALL RISK ASSOCIATED WITH THE INSTALLATION AND USE OF THE SOFTWARE. IN NO EVENT SHALL ClipBucket/PHPBucket BE LIABLE WHETHER IN CONTRACT, WARRANTY, TORT (INCLUDING NEGLIGENCE (WHETHER ACTIVE, PASSIVE OR IMPUTED), PRODUCT LIABILITY OR STRICT LIABILITY OR OTHER THEORY), FOR COVER OR FOR ANY INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION ANY LOSS OF PROFITS OR DATA, BUSINESS INTERRUPTION, COMPUTER FAILURE OR OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE OR PERFORMANCE OF ANY RELATED SERVICES, EVEN IF ClipBucket/PHPBucket HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. ClipBucket/PHPBucket’s CUMULATIVE LIABILITY TO YOU OR ANY OTHER PARTY FOR ANY LOSS OR DAMAGES RESULTING FROM ANY CLAIMS, DEMANDS, OR ACTIONS ARISING OUT OF OR RELATING TO THIS LICENSE SHALL NOT EXCEED THE AMOUNTS PAID BY YOU TO ClipBucket/PHPBucket FOR THE USE OF THE SOFTWARE. YOU HEREBY RELEASE ClipBucket/PHPBucket FROM ANY AND ALL OBLIGATIONS, LIABILITIES AND CLAIMS IN EXCESS OF THIS LIMITATION
|
||||
|
||||
4. INTELLECTUAL PROPERTY RIGHTS RESERVED BY ClipBucket/PHPBucket:
|
||||
|
||||
The Software Product is protected by U.S, CANADA, and international copyright laws and treaties, as well as other intellectual property laws and treaties. You must not remove or alter any copyright notices on any copies of the Software Product. This Software Product copy is licensed, not sold. Furthermore, this CBLA does not grant you any rights in connection with any trademarks or service marks of ClipBucket / PHPBucket . ClipBucket reserves all intellectual property rights, including copyrights, and trademark rights.
|
||||
The Software Product is protected by U.S, CANADA, and international copyright laws and treaties, as well as other intellectual property laws and treaties. You must not remove or alter any copyright notices on any copies of the Software Product. This Software Product copy is licensed, not sold. Furthermore, this CBLA does not grant you any rights in connection with any trademarks or service marks of ClipBucket / PHPBucket . ClipBucket reserves all intellectual property rights, including copyrights, and trademark rights.
|
||||
|
||||
5. NO RIGHT TO TRANSFER
|
||||
|
||||
|
@ -64,33 +38,19 @@ You may not rent, lease, lend, or in any way distribute or transfer any rights i
|
|||
|
||||
6. PROHIBITION ON REVERSE ENGINEERING, DECOMPILATION, AND DISASSEMBLY
|
||||
|
||||
You may not reverse engineer, decompile, defeat license encryption mechanisms, or disassemble the Software Product or Software Product License except and only to the extent that such activity is expressly permitted by applicable law notwithstanding this limitation.
|
||||
You may not reverse engineer, decompile, defeat license encryption mechanisms, or disassemble the Software Product or Software Product License except and only to the extent that such activity is expressly permitted by applicable law notwithstanding this limitation. 9.
|
||||
|
||||
7. MISCELLANEOUS.
|
||||
|
||||
9. MISCELLANEOUS.
|
||||
|
||||
We reserve the right to reference any website or company using the Software in our sales and marketing literature.
|
||||
|
||||
We reserve the right to monitor compliance with this CBLA and to restrict the use of the Software for non-compliance.
|
||||
|
||||
We reserve the right to include the "Flash Video Player by PHPBucket.com & Clip-bucket.com" text/link on every copy of the Flash Video Player included in the ClipBucket software. The "Flash Video Player by PHPBucket.Com" text/link can be removed by paying a small fee mentioned on the website/documentation.
|
||||
|
||||
|
||||
ClipBucket / PHPBucket STRICTLY PROHIBITS SALE/RESALE OF OUR PRODUCTS. DO NOT SELL, BUT YOU CAN GIVE AWAY OR REUSE OUR PRODUCTS WITHOUT FOR FREE AND FOR NON COMMERCIAL USE, BUT IT SHOULD RETAIN ITS ORIGINAL FORM WITH OUR NAME WHILE DISTRIBUTING FREE. ClipBucket / PHPBucket will take legal action against any users that are found to be Selling Clipbucket(Lite) / ClipBucket / PHPBucket products. In addition A ClipBucket / PHPBucket will report any users found pirating other products to the products developer or care-keeper.
|
||||
|
||||
|
||||
The terms set forth in this License and any related service agreements constitute the final, complete and exclusive agreement with respect to the Software and may not be contradicted, explained or supplemented by evidence of any prior agreement, any contemporaneous oral agreement or any consistent additional terms. Should any term or provision hereof be deemed invalid, void or unenforceable either in its entirety or in a particular application, the remainder of this License shall nonetheless remain in full force and effect. Any term of this License may be amended and the observance of any term may be waived only with the written consent of ClipBucket / PHPBucket . The failure of ClipBucket / PHPBucket at any time or times to require performance of any provision hereof shall in no manner affect its right at a later time to enforce the same unless the same is waived in writing.
|
||||
|
||||
10. CONTACT INFORMATION
|
||||
We reserve the right to reference any website or company using the Software in our sales and marketing literature. We reserve the right to monitor compliance with this CBLA and to restrict the use of the Software for non-compliance. We reserve the right to include the "Flash Video Player by PHPBucket.com & Clip-bucket.com" text/link on every copy of the Flash Video Player included in the ClipBucket software. The "Flash Video Player by PHPBucket.Com" text/link can be removed by paying a small fee mentioned on the website/documentation. ClipBucket / PHPBucket STRICTLY PROHIBITS SALE/RESALE OF OUR PRODUCTS. DO NOT SELL, BUT YOU CAN GIVE AWAY OR REUSE OUR PRODUCTS WITHOUT FOR FREE AND FOR NON COMMERCIAL USE, BUT IT SHOULD RETAIN ITS ORIGINAL FORM WITH OUR NAME WHILE DISTRIBUTING FREE. ClipBucket / PHPBucket will take legal action against any users that are found to be Selling Clipbucket(Lite) ClipBucket / PHPBucket products. In addition A ClipBucket / PHPBucket will report any users found pirating other products to the products developer or care-keeper. The terms set forth in this License and any related service agreements constitute the final, complete and exclusive agreement with respect to the Software and may not be contradicted, explained or supplemented by evidence of any prior agreement, any contemporaneous oral agreement or any consistent additional terms. Should any term or provision hereof be deemed invalid, void or unenforceable either in its entirety or in a particular application, the remainder of this License shall nonetheless remain in full force and effect. Any term of this License may be amended and the observance of any term may be waived only with the written consent of ClipBucket / PHPBucket . The failure of ClipBucket / PHPBucket at any time or times to require performance of any provision hereof shall in no manner affect its right at a later time to enforce the same unless the same is waived in writing
|
||||
|
||||
8. CONTACT INFORMATION
|
||||
If you have any questions about this CBLA, or if you want to contact ClipBucket / PHPBucket for any reason, please direct all correspondence to:
|
||||
|
||||
http://www.clip-bucket.com
|
||||
http://www.phpbucket.com
|
||||
|
||||
|
||||
or email: info@phpbucket.com
|
||||
|
||||
http://www.phpbucket.com or email: sales@clip-bucket.com
|
||||
|
||||
ClipBucket Product is registered trademark of PHPBucket.
|
||||
|
||||
|
||||
Last Date of Update : September 13, 2009
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
/*
|
||||
****************************************************************************************************
|
||||
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
|
||||
| @ Author : ArslanHassan |
|
||||
| @ Software : ClipBucket , © PHPBucket.com |
|
||||
****************************************************************************************************
|
||||
****************************************************************
|
||||
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved.
|
||||
| @ Author : ArslanHassan
|
||||
| @ Software : ClipBucket , © PHPBucket.com
|
||||
****************************************************************
|
||||
*/
|
||||
|
||||
require_once '../includes/admin_config.php';
|
||||
|
@ -12,17 +12,17 @@ $userquery->login_check('video_moderation');
|
|||
|
||||
//Getting Video List
|
||||
$page = mysql_clean($_GET['page']);
|
||||
$get_limit = create_query_limit($page,RESULTS);
|
||||
$get_limit = create_query_limit($page,5);
|
||||
$videos = $cbvid->action->get_flagged_objects($get_limit);
|
||||
Assign('videos', $videos);
|
||||
|
||||
//Collecting Data for Pagination
|
||||
$total_rows = $cbvid->action->count_flagged_objects();
|
||||
$total_pages = count_pages($total_rows,VLISTPP);
|
||||
$total_pages = count_pages($total_rows,5);
|
||||
|
||||
//Pagination
|
||||
$pages->paginate($total_pages,$page);
|
||||
|
||||
template_files('video_manager.php');
|
||||
template_files('flagged_videos.html');
|
||||
display_it();
|
||||
?>
|
|
@ -100,39 +100,12 @@ if(isset($_POST['update'])){
|
|||
}
|
||||
$myquery->Set_Website_Details($field,$value);
|
||||
}
|
||||
|
||||
//Setting Lanuage Cookie
|
||||
setcookie('sitelang', $rows['default_site_lang'], time()+315360000, '/');
|
||||
setcookie('sitestyle', $row['template'], time()+315360000, '/');
|
||||
e("Website Settings Have Been Updated",m);
|
||||
|
||||
}
|
||||
|
||||
$row = $myquery->Get_Website_Details();
|
||||
|
||||
//Getting Template List
|
||||
$sql = "SELECT * from template";
|
||||
$rs = $db->Execute($sql);
|
||||
$templates = $rs->getrows();
|
||||
Assign('templates', $templates);
|
||||
|
||||
//Getting Players List
|
||||
$sql = "SELECT * from players";
|
||||
$rs = $db->Execute($sql);
|
||||
$player = $rs->getrows();
|
||||
Assign('players', $player);
|
||||
|
||||
//Lanugae Arrays
|
||||
|
||||
Assign('row',$row);
|
||||
@Assign('msg',$msg);
|
||||
|
||||
/*Template('header.html');
|
||||
Template('leftmenu.html');
|
||||
Template('message.html');
|
||||
Template('main.html');
|
||||
Template('footer.html');*/
|
||||
|
||||
template_files('main.html');
|
||||
display_it();
|
||||
?>
|
|
@ -1,5 +1,4 @@
|
|||
<div class="left_menu" id="left_menu">
|
||||
|
||||
{assign var='menu' value = $Cbucket->AdminMenu}
|
||||
{foreach from=$menu key=name item=menu}
|
||||
<!-- *********************************Start {$name} Menu****************************** -->
|
||||
|
|
|
@ -42,12 +42,13 @@
|
|||
background-image:url(../images/bgs/left_menu_foot.png);
|
||||
background-position:bottom;
|
||||
background-repeat:no-repeat;
|
||||
padding-bottom:15px
|
||||
padding-bottom:15px;
|
||||
|
||||
}
|
||||
|
||||
.subMenu
|
||||
{
|
||||
display:block;
|
||||
display:block;border:1px solid #0066cc;
|
||||
}
|
||||
|
||||
.subItem,.subItemOver
|
||||
|
|
BIN
upload/admin_area/styles/cbv2/images/arrow_return.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
upload/admin_area/styles/cbv2/images/arrow_return_invert.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
upload/admin_area/styles/cbv2/images/bgs/gr_bg.png
Normal file
After Width: | Height: | Size: 324 B |
BIN
upload/admin_area/styles/cbv2/images/bgs/left_menu_head.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
upload/admin_area/styles/cbv2/images/bgs/login.png
Normal file
After Width: | Height: | Size: 515 B |
BIN
upload/admin_area/styles/cbv2/images/bgs/pagination_bg.png
Normal file
After Width: | Height: | Size: 238 B |
BIN
upload/admin_area/styles/cbv2/images/bgs/round_bg.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
upload/admin_area/styles/cbv2/images/button_bg.png
Normal file
After Width: | Height: | Size: 298 B |
BIN
upload/admin_area/styles/cbv2/images/dot.gif
Normal file
After Width: | Height: | Size: 43 B |
BIN
upload/admin_area/styles/cbv2/images/gradients.png
Normal file
After Width: | Height: | Size: 863 B |
BIN
upload/admin_area/styles/cbv2/images/icons.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
63
upload/admin_area/styles/cbv2/layout/_permission.html
Normal file
|
@ -0,0 +1,63 @@
|
|||
{assign var='types' value=$userquery->get_level_types()}
|
||||
<div style="width:98%; margin:auto" align="left">
|
||||
{section name=t loop=$types}
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="30" class="left_head"> </td>
|
||||
<td align="center" class="head">{$types[t].user_permission_type_name}</td>
|
||||
<td width="30" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
{assign var=perms value=$userquery->get_permissions($types[t].user_permission_type_id)}
|
||||
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
{assign var = bgcolor value = ""}
|
||||
{foreach from=$perms item=perm}
|
||||
{if $perm.permission_id !=""}
|
||||
|
||||
|
||||
<tr bgcolor="{$bgcolor}" class="item_listing">
|
||||
<td width="20" style="text-indent:10px">{$perm.permission_id}</td>
|
||||
<td width="150" style="text-indent:10px">{$perm.permission_name}</td>
|
||||
|
||||
<td width="150" style="text-indent:10px">{$perm.permission_code}</td>
|
||||
<td style="text-indent:10px">{$perm.permission_desc}</td>
|
||||
<td width="100" style="text-indent:10px"><a href="?perm_del={$perm.permission_id}">Delete</a></td>
|
||||
|
||||
</tr>
|
||||
{else}
|
||||
<tr><td><div style="width:100%; margin:auto" align="center"><em>No Permission Found</em></div></td></tr>
|
||||
{/if}
|
||||
{if $bgcolor == ""}
|
||||
{assign var = bgcolor value = "#EEEEEE"}
|
||||
{else}
|
||||
{assign var = bgcolor value = ""}
|
||||
{/if}
|
||||
{foreachelse}
|
||||
<tr><td><div style="width:100%; margin:auto" align="center"><em>No Permission Found</em></div></td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<form method="post" action="_permission.php">
|
||||
<fieldset class="fieldset" style="margin-bottom:10px"><legend>Add New Permission</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
<tr><td><label for="name{$types[t].user_permission_type_id}">Permission Name</label>
|
||||
<input type="text" name="name" id="name{$types[t].user_permission_type_id}">
|
||||
<label for="code{$types[t].user_permission_type_id}">Permission Code</label>
|
||||
<input type="text" name="code" id="code">
|
||||
<label for="desc{$types[t].user_permission_type_id}">Permission Description</label>
|
||||
<input type="text" name="desc" id="desc{$types[t].user_permission_type_id}">
|
||||
<input type="hidden" name="type" value="{$types[t].user_permission_type_id}">
|
||||
|
||||
<label>
|
||||
<input type="radio" name="default" value="yes" id="default_0">
|
||||
yes</label>
|
||||
|
||||
<label>
|
||||
<input type="radio" name="default" value="no" id="default_1">
|
||||
no</label>
|
||||
|
||||
<input type="submit" class="button" value="Add" name="add_permission">
|
||||
</td></tr></table>
|
||||
</fieldset>
|
||||
</form>
|
||||
{/section}
|
||||
</div>
|
66
upload/admin_area/styles/cbv2/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>
|
48
upload/admin_area/styles/cbv2/layout/add_phrase.html
Normal file
|
@ -0,0 +1,48 @@
|
|||
<h2>Add New Phrase</h2>
|
||||
<form name="form1" method="post" action="">
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>Adding new phrase</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200"><strong>Phrase Code</strong></td>
|
||||
<td><label>
|
||||
<input type="text" name="name" id="name">
|
||||
</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Phrase Text</td>
|
||||
<td><label>
|
||||
<textarea name="text" id="text" cols="45" rows="5"></textarea>
|
||||
</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Language</td>
|
||||
<td><label>
|
||||
<select name="lang_code" id="lang_code">
|
||||
{assign var=language value=$lang_obj->get_langs()}
|
||||
|
||||
{section name=l_list loop=$language}
|
||||
|
||||
<option value="{$language[l_list].language_code}">{$language[l_list].language_name}</option>
|
||||
{/section}
|
||||
</select>
|
||||
</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<div style="margin:auto; width:99%; margin:10px"><input type="submit" name="add_phrase" id="add_phrase" value="Add Phrase" class="button"><br><br>
|
||||
|
||||
To display this text in your template , simple add this where you want to display your text {$LANG.phrase_code}</div>
|
||||
</form>
|
||||
|
80
upload/admin_area/styles/cbv2/layout/ads_add_placements.html
Normal file
|
@ -0,0 +1,80 @@
|
|||
<link href="../theme/stylesheet.css" rel="stylesheet" type="text/css" />
|
||||
{if $Cbucket->show_page == true}
|
||||
<script type="text/javascript" src="{$js}/popup_image.js"></script>
|
||||
|
||||
<!-- Adding Placement Form -->
|
||||
<form name="AddPlacement" id="AddPlacement" method="post" action="">
|
||||
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="10" class="left_head"> </td>
|
||||
<td class="head">Add Placement </td>
|
||||
<td width="10" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
|
||||
<tr>
|
||||
<td colspan="3" class="td_body"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="td_body"><strong><label for="placement_name">Placement Name</label> </strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="td_body"><input name="placement_name" id="placement_name" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="td_body"><strong><label for="placement_code">Placement Code</label> </strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="td_body"><input name="placement_code" value="" id="placement_code"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="td_body"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="td_body">
|
||||
<label>
|
||||
<input type="submit" name="AddPlacement" value="Submit" id="button"/>
|
||||
</label></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<em><strong><br />
|
||||
<br />
|
||||
|
||||
<!-- Adding Placement Form -->
|
||||
<span class="tr_head">Note: if you delete any placement, all ads under it will be deleted</span>
|
||||
<!-- Listing Placements Stars -->
|
||||
<br />
|
||||
<br />
|
||||
|
||||
</strong></em>
|
||||
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="30" class="left_head"><div style="width:30px; padding-left:5px">ID</div></td>
|
||||
<td class="head" ><div class="head_sep_left" style="width:150px">PlacementName</div></td>
|
||||
<td width="20%" class="head"><div class="head_sep_left" style="width:150px">PlacementCode</div></td>
|
||||
<td width="15%" class="head"><div class="head_sep_left" style="width:150px">TotalAds</div></td>
|
||||
<td width="15%" class="right_head" ><div class="head_sep_left" style="width:100px">Action</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
{section name=a_list loop=$ads_placements}
|
||||
{if $ads_placements[a_list].placement_name !=''}
|
||||
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="{$bgcolor}">
|
||||
<tr>
|
||||
<td width="30" align="center"><div style="padding-left:15px">{$ads_placements[a_list].placement_id}</div></td>
|
||||
<td ><div style="padding-left:15px">{$ads_placements[a_list].placement_name}</div></td>
|
||||
<td width="20%"><div style="padding-left:15px"><strong>{literal}{AD place={/literal}{$ads_placements[a_list].placement}{literal}}{/literal}</strong></div></td>
|
||||
<td width="15%"><div style="padding-left:15px">{$ads_placements[a_list].total_ads}</div></td>
|
||||
<td width="15%"><div style="padding-left:15px">{if $ads_placements[a_list].disable == no}<a href="?remove={$ads_placements[a_list].placement}">Remove</a>{else}Default Placement{/if}</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
{if $bgcolor == ""}
|
||||
{assign var = bgcolor value = "#EEEEEE"}
|
||||
{else}
|
||||
{assign var = bgcolor value = ""}
|
||||
{/if}
|
||||
{/if}
|
||||
{/section}
|
||||
<!-- Listing Placements End -->
|
||||
{/if}
|
161
upload/admin_area/styles/cbv2/layout/ads_manager.html
Normal file
|
@ -0,0 +1,161 @@
|
|||
<link href="../theme/stylesheet.css" rel="stylesheet" type="text/css" />
|
||||
{if $ad_data.ad_name !=''}
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="10" class="left_head"> </td>
|
||||
<td class="head">Eid Advertisement</td>
|
||||
<td width="10" class="right_head"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"><form id="form1" name="form1" method="post" action="">
|
||||
<input type="hidden" name="ad_id" value="{$ad_data.ad_id}" />
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="block">
|
||||
<tr>
|
||||
<td valign="top"> </td>
|
||||
<td align="right">all fields are required</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top"> </td>
|
||||
<td align="center">{$ad_data.ad_code|ad}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="150" valign="top"><label for="name">Advertisement Name</label>
|
||||
*</td>
|
||||
<td><input name="name" type="text" id="name" value="{$ad_data.ad_name}" size="45" />
|
||||
e.g Home Banner</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top"><label for="placement">Advertisement Placement</label></td>
|
||||
<td><select name="placement" id="placement">
|
||||
{assign var='ads_placements' value=$adsObj->get_placements()}
|
||||
{section name=a_list loop=$ads_placements}
|
||||
{if $ads_placements[a_list].placement_name!=''}
|
||||
<option value="{$ads_placements[a_list].placement}" {if $ad_data.ad_placement==$ads_placements[a_list].placement} selected="selected"{/if} >{$ads_placements[a_list].placement_name}</option>
|
||||
{/if}
|
||||
{/section}
|
||||
|
||||
|
||||
</select>
|
||||
<a href="ads_add_placements.php">Add More Placements</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top"><label for="code">Advertisement Code</label></td>
|
||||
<td><textarea name="code" id="code" cols="45" rows="5">{$ad_data.ad_code}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Status</td>
|
||||
<td><label>
|
||||
<input name="status" type="radio" value="1" {if $ad_data.ad_status=='1'}checked="checked" {/if} />
|
||||
Active</label>
|
||||
<label>
|
||||
<input type="radio" name="status" value="0"{if $ad_data.ad_status=='0'}checked="checked"{/if} />
|
||||
Inactive</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right"><input type="submit" name="update" id="button2" value="Update Advertisement" onclick="return validate_ad_form(add_adv)"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
{else}
|
||||
{if $edit_ad != "show"}
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="10" class="left_head"> </td>
|
||||
<td class="head">Add Advertisement</td>
|
||||
<td width="10" class="right_head"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"><form id="form1" name="form1" method="post" action="">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="block">
|
||||
<tr>
|
||||
<td valign="top"> </td>
|
||||
<td align="right">all fields are required</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="150" valign="top"><label for="name">Advertisement Name</label>
|
||||
*</td>
|
||||
<td><input name="name" type="text" id="name" size="45" />
|
||||
e.g Home Banner</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top"><label for="placement">Advertisement Placement</label></td>
|
||||
<td><select name="placement" id="placement">
|
||||
{assign var='ads_placements' value=$adsObj->get_placements()}
|
||||
{section name=a_list loop=$ads_placements}
|
||||
{if $ads_placements[a_list].placement_name!=''}
|
||||
<option value="{$ads_placements[a_list].placement}" {$select} >{$ads_placements[a_list].placement_name}</option>
|
||||
{/if}
|
||||
{/section}
|
||||
|
||||
|
||||
</select>
|
||||
<a href="ads_add_placements.php">Add More Placements</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top"><label for="code">Advertisement Code</label></td>
|
||||
<td><textarea name="code" id="code" cols="45" rows="5"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Status</td>
|
||||
<td><label>
|
||||
<input name="status" type="radio" value="1" checked="checked" />
|
||||
Active</label>
|
||||
<label>
|
||||
<input type="radio" name="status" value="0" />
|
||||
Inactive</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right"><input type="submit" name="add" id="button2" value="Add Advertisement" onclick="return validate_ad_form(add_adv)"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
{/if}
|
||||
<br />
|
||||
<h2>Advertisement Manager</h2>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" >
|
||||
<tr>
|
||||
<td colspan="5" class="tr_head">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="block_head">
|
||||
<tr>
|
||||
<td width="50" align="left" class="left_head">AID</td>
|
||||
<td width="150" class="head" align="left"><div class="head_sep_left" style="width:130px">Advertisment name</div></td>
|
||||
<td class="head"><div class="head_sep_left" style="width:150px">Advertisment</div></td>
|
||||
<td width="120" align="left" class="head"><div class="head_sep_left" style="width:100px">Impressions</div></td>
|
||||
<td width="120" align="left" class="head"><div class="head_sep_left" style="width:100px">Date Added</div> </td>
|
||||
<td width="270" align="left" class="head"><div class="head_sep_left" style="width:220px">Placement</div></td>
|
||||
<td width="150" class="right_head"><div class="head_sep_left" style="width:100px">Actions</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="block">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
|
||||
{assign var='ads' value=$adsObj->get_advertisements()}
|
||||
{foreach item=ad from=$ads}
|
||||
<tr>
|
||||
<td width="50" align="left"><div>{$ad.ad_id}</div></td>
|
||||
<td width="150" align="left"><div style="padding-left:10px">{$ad.ad_name}</div></td>
|
||||
<td align="left"><div style="padding-left:10px">{$ad.ad_codes}<a href="ads_manager.php?ad_id={$ad.ad_id}">View Advertisment</a></div></td>
|
||||
<td width="120" align="left"><div style="padding-left:10px">{$ad.ad_impressions|number_format}</div></td>
|
||||
<td width="120" align="left"><div style="padding-left:10px">{$ad.date_added|date_format}</div></td>
|
||||
<td width="270" align="left"><div style="padding-left:10px">{$adsObj->get_placement_name($ad.ad_placement)}</div></td>
|
||||
<td width="150" align="left"><div style="padding-left:10px"> </div></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table></div></td>
|
||||
</tr>
|
||||
{if $bgcolor == ""}
|
||||
{assign var = bgcolor value = "#EEEEEE"}
|
||||
{else}
|
||||
{assign var = bgcolor value = ""}
|
||||
{/if}
|
||||
|
||||
</table>
|
||||
{/if}
|
10
upload/admin_area/styles/cbv2/layout/blocks/access_log.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>
|
64
upload/admin_area/styles/cbv2/layout/blocks/comments.html
Normal file
|
@ -0,0 +1,64 @@
|
|||
{assign var=bgcolor value =F2F2F2}
|
||||
{if $myquery->get_comments($id,$type)}
|
||||
<table width="99%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="35" align="center" class="left_head">CID</td>
|
||||
<td width="35" class="head_sep_left">UID</td>
|
||||
<td width="100" class="head_sep_left">Username</td>
|
||||
<td width="100" class="head_sep_left">Email</td>
|
||||
<td class="head_sep_left"><div class="head_sep_left" style="width:200px">Comment</div></td>
|
||||
<td width="200" class="head_sep_left">Date</td>
|
||||
<td width="70" class="head_sep_left">Votes</td>
|
||||
<td width="100" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<div>
|
||||
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="block" style="text-indent:15px">
|
||||
|
||||
{foreach from=$myquery->get_comments($id,$type) item=comment}
|
||||
|
||||
{if $comment.parent_id == 0}
|
||||
{if $comment.userid !='' }{assign var="udetails" value=$userquery->get_user_details($comment.userid)}{/if}
|
||||
<tr style="background-color:#{$bgcolor}">
|
||||
<td width="35" align="left">{$comment.comment_id}</td>
|
||||
<td width="35" align="left">{$comment.userid}</td>
|
||||
<td width="100" align="left">{if $comment.anonym_name}{$comment.anonym_name}{else}{$udetails.username}{/if}</td>
|
||||
<td width="100" align="left">{if $comment.anonym_email}{$comment.anonym_email}{else}{$udetails.email}{/if}</td>
|
||||
<td ><div class="edit_comment" id="{$comment.comment_id}">{$comment.comment}</div></td>
|
||||
<td width="200" align="left" >{$comment.date_added|date_format}</td>
|
||||
<td width="70" align="left" >{$comment.vote}</td>
|
||||
<td width="100" ><a href="?{$link}&delete_comment={$comment.comment_id}">Delete</a></td>
|
||||
</tr>
|
||||
|
||||
|
||||
{foreach from=$myquery->get_comments($id,$type,false,$comment.comment_id,TRUE) item=reply}
|
||||
{if $reply.comment !=''}
|
||||
{if $reply.userid !='' }{assign var="udetails" value=$userquery->get_user_details($reply.userid)}{/if}
|
||||
<tr style="background-color:#{$bgcolor}">
|
||||
<td width="35" align="left">{$reply.comment_id}</td>
|
||||
<td width="35" align="left">{$reply.userid}</td>
|
||||
<td width="100" align="left">{if $reply.anonym_name}{$reply.anonym_name}{else}{$udetails.username}{/if}</td>
|
||||
<td width="100" align="left">{if $reply.anonym_email}{$reply.anonym_email}{else}{$udetails.email}{/if}</td>
|
||||
<td ><div class="edit_comment" id="{$reply.comment_id}">{$comment.comment_id} ⇔ {$reply.comment}</div></td>
|
||||
<td width="200" align="left" >{$reply.date_added|date_format}</td>
|
||||
<td width="70" align="left" >{$reply.vote}</td>
|
||||
<td width="100" ><a href="?{$link}&delete_comment={$reply.comment_id}">Delete</a></td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
{if $bgcolor == 'F2F2F2'}
|
||||
{assign var=bgcolor value =FFF}
|
||||
{elseif $bgcolor == 'FFF'}
|
||||
{assign var=bgcolor value =F2F2F2}
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr style="background-color:#FFF">
|
||||
<td colspan="8" align="center"><em>No User Comments For This Video</em></td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
</div>
|
190
upload/admin_area/styles/cbv2/layout/blocks/edit_video.html
Normal file
|
@ -0,0 +1,190 @@
|
|||
{assign var='requiredFields' value=$Upload->loadRequiredFields($data)}
|
||||
{assign var='optionFields' value=$Upload->loadOptionFields($data)}
|
||||
{assign var='locationFields' value=$Upload->loadLocationFields($data)}
|
||||
|
||||
{assign var='custom_fields' value=$Upload->load_custom_upload_fields($data,TRUE)}
|
||||
{assign var='custom_form_fields' value=$Upload->load_custom_form_fields($data,TRUE)}
|
||||
|
||||
|
||||
{if $data.title neq ""}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="200" align="left" class="left_head" style="text-indent:10px">Editing {$data.title}</td>
|
||||
<td class="head"> </td>
|
||||
<td width="200" align="right" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div style="width:98%; margin:auto; padding:10px">
|
||||
<button onClick="location.href='view_video.php?video={$data.videoid}'" class="button">View This video</button>
|
||||
|
||||
<input type="button" onClick="window.open('{videoLink vdetails=$data}')" class="button" value="Watch this video" />
|
||||
<input type="button" onClick="javascript:Confirm_Delete('video_manager.php?delete_video={$data.videoid}')" class="button" value="Delete this video" />
|
||||
|
||||
</div>
|
||||
|
||||
<form action="" method="post" name="Edit Member" id="Edit Member">
|
||||
|
||||
|
||||
<input name="admin" type="hidden" id="admin" value="true" />
|
||||
<input name="videoid" type="hidden" value="{$data.videoid}" />
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>User Information</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200"><strong>Useid</strong></td>
|
||||
<td><a href="view_user.php?uid={$data.userid}">{$data.userid}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>Important Details</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200"><strong>Video Id</strong></td>
|
||||
<td>
|
||||
<input disabled="disabled" name="videokey" type="text" id="videokey" value="{$data.videoid}" size="45" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200"><strong>Video Key</strong></td>
|
||||
<td>
|
||||
<input disabled="disabled" name="flvname" type="text" id="flvname" value="{$data.videokey}" size="45" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200"><strong>File Name</strong></td>
|
||||
<td>
|
||||
<input disabled="disabled" name="flvname" type="text" id="flvname" value="{$data.file_name}" size="45" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200"><strong>Total Video Files</strong></td>
|
||||
<td>{get_all_video_files vdetails=$data count_only=true} - <a href="view_conversion_log.php?file_name={$data.file_name}"><strong>View File Details and Converion Log</strong></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200"><strong>Total Thumbnails</strong></td>
|
||||
<td>{get_thumb vdetails=$data count_only=true}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="200"><strong>Thumbnails<BR>
|
||||
{if $data.embeded !=yes}<a href="upload_thumbs.php?video={$data.videoid}&gen_more=true">Regenerate Thumbs</a>{/if}<br />
|
||||
<a href="upload_thumbs.php?video={$data.videoid}">Manage Thumbs</a></strong></td>
|
||||
<td>{assign var=vidthumbs value=func->get_thumb($data,1,TRUE)}
|
||||
|
||||
{foreach from=$vidthumbs item=vid_thumb}
|
||||
<div style="width:140px; float:left" align="center">
|
||||
<label for="{$vid_thumb|getname}"><img src="{$vid_thumb}" border="1" style="margin:4px" /><br />
|
||||
<input type="radio" value="{$vid_thumb|getname}.{$vid_thumb|getext}" id="{$vid_thumb|getname}" name="default_thumb" {if $data.default_thumb==$vid_thumb|get_thumb_num} checked="checked"{/if} />Default</label><br />
|
||||
{if $vid_thumb|getname!='processing'}
|
||||
<a href="?video={$data.videoid}&delete={$vid_thumb|getname}.{$vid_thumb|getext}">Delete</a>
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{foreach from=$requiredFields item=field}
|
||||
<tr>
|
||||
<td width="200" ><strong>{$field.title} :</strong></td>
|
||||
<td >{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
<tr>
|
||||
<td width="200"><strong>Status</strong></td>
|
||||
<td>
|
||||
<select name="status">
|
||||
<option value="Successful" {if $data.status=='Successful'} selected {/if}>Successfull</option>
|
||||
<option value="processing" {if $data.status=='processing'} selected {/if}>Processing</option>
|
||||
<option value="Failed" {if $data.status=='Failed'} selected {/if}>Failed</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200"><strong>Duration (seconds) </strong></td>
|
||||
<td>
|
||||
<label>
|
||||
<input name="duration" type="text" id="duration" value="{$data.duration}" size="5" />
|
||||
</label>
|
||||
seconds</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>Recording Details</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
{foreach from=$locationFields item=field}
|
||||
<tr>
|
||||
<td width="200"><strong>{$field.title} </strong></td>
|
||||
<td >{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>Sharing</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
{foreach from=$optionFields item=field}
|
||||
<tr>
|
||||
<td width="200"><strong>{$field.title} </strong></td>
|
||||
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
<br>
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>Custom Form Fields</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
{foreach from=$custom_form_fields item=field}
|
||||
<tr>
|
||||
<td width="200"><strong>{$field.title}</strong></td>
|
||||
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
<br>
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>Custom Upload Fields</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
{foreach from=$custom_fields item=field}
|
||||
<tr>
|
||||
<td width="200"><strong>{$field.title}</strong></td>
|
||||
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
<br>
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</fieldset>
|
||||
<div style="width:98%; margin:auto">
|
||||
<input type="submit" class="button" value="Update video details" style="margin:5px 0px 15px 0px" name="update">
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
|
@ -0,0 +1,3 @@
|
|||
<div class="pagination" align="center">
|
||||
Pages : {if $first_link !=''}<a {$first_link}>«</a>{/if} {if $pre_link !=''}<a {$pre_link} >‹</a>{/if} {$pagination} {if $next_link !=''}<a {$next_link}>›</a>{/if} {if $last_link !=''}<a {$last_link}>»</a>{/if}
|
||||
</div>
|
32
upload/admin_area/styles/cbv2/layout/body.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
{include file="$style_dir/global_header.html" }
|
||||
<html>
|
||||
<body>
|
||||
<div style="min-height:100%">
|
||||
<!-- Including Commong header -->
|
||||
{include file="$style_dir/header.html" }
|
||||
{include file="$style_dir/msg.html" }
|
||||
|
||||
<div style="min-height:600px">
|
||||
<!-- Including Left Column -->
|
||||
|
||||
<!-- Inlcluding Other Files -->
|
||||
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="2" valign="top" style="max-width:150px">
|
||||
<span class="toggle_menu" onClick="$('#left_menu').animate({literal}{width:'toggle'}{/literal},250);"><img src="{$imageurl}/dot.gif" class="toggle_menu_icon">Toggle Menu</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" style="max-width:250px">{include file="$style_dir/left_menu.html" }
|
||||
</td>
|
||||
<td width="100%" valign="top" >
|
||||
{foreach from=$template_files item=file}
|
||||
{include file="$style_dir/$file" }
|
||||
{/foreach}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
{include file="$style_dir/footer.html" }
|
||||
</body>
|
||||
</html>
|
154
upload/admin_area/styles/cbv2/layout/category.html
Normal file
|
@ -0,0 +1,154 @@
|
|||
<span class="page_title">Video 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 Video Categories</td>
|
||||
<td class="head"> </td>
|
||||
<td width="100" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
{if $edit_category != "show"}
|
||||
<form action="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 />
|
||||
|
13
upload/admin_area/styles/cbv2/layout/edit_announcemnent.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<h2>Edit Announcement</h2>
|
||||
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<form id="form1" name="form1" method="post" action="">
|
||||
Announcement<br />
|
||||
<label for="textarea"></label>
|
||||
<textarea name="text" id="textarea" cols="75" rows="6">{get_announcement}</textarea>
|
||||
<br />
|
||||
<input type="submit" name="update" value="Update" />
|
||||
</form></td>
|
||||
</tr>
|
||||
</table>
|
70
upload/admin_area/styles/cbv2/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}/{$cbgroup->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>
|
208
upload/admin_area/styles/cbv2/layout/edit_video.html
Normal file
|
@ -0,0 +1,208 @@
|
|||
{assign var='requiredFields' value=$Upload->loadRequiredFields($data)}
|
||||
{assign var='optionFields' value=$Upload->loadOptionFields($data)}
|
||||
{assign var='locationFields' value=$Upload->loadLocationFields($data)}
|
||||
|
||||
{assign var='custom_fields' value=$Upload->load_custom_upload_fields($data,TRUE)}
|
||||
{assign var='custom_form_fields' value=$Upload->load_custom_form_fields($data,TRUE)}
|
||||
|
||||
|
||||
{if $data.title neq ""}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left" class="left_head" style="padding-left:10px"><div class="head">Editing {$data.title}</div></td>
|
||||
<td width="20" align="right" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div style="width:98%; margin:auto; padding:10px">
|
||||
<button onClick="location.href='view_video.php?video={$data.videoid}'" class="button">View This video</button>
|
||||
|
||||
<input type="button" onClick="window.open('{videoLink vdetails=$data}')" class="button" value="Watch this video" />
|
||||
<input type="button" onClick="javascript:Confirm_Delete('video_manager.php?delete_video={$data.videoid}')" class="button" value="Delete this video" />
|
||||
|
||||
</div>
|
||||
|
||||
<form action="" method="post" name="Edit Member" id="Edit Member">
|
||||
|
||||
|
||||
<input name="admin" type="hidden" id="admin" value="true" />
|
||||
<input name="videoid" type="hidden" value="{$data.videoid}" />
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>User Information</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200"><strong>Useid</strong></td>
|
||||
<td><a href="view_user.php?uid={$data.userid}">{$data.userid}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>Important Details</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200"><strong>Video Id</strong></td>
|
||||
<td>
|
||||
<input disabled="disabled" name="videokey" type="text" id="videokey" value="{$data.videoid}" size="45" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200"><strong>Video Key</strong></td>
|
||||
<td>
|
||||
<input disabled="disabled" name="flvname" type="text" id="flvname" value="{$data.videokey}" size="45" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200"><strong>File Name</strong></td>
|
||||
<td>
|
||||
<input disabled="disabled" name="flvname" type="text" id="flvname" value="{$data.file_name}" size="45" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200"><strong>Total Video Files</strong></td>
|
||||
<td>{get_all_video_files vdetails=$data count_only=true} - <a href="view_conversion_log.php?file_name={$data.file_name}"><strong>View File Details and Converion Log</strong></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200"><strong>Total Thumbnails</strong></td>
|
||||
<td>{get_thumb vdetails=$data count_only=true}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="200"><strong>Thumbnails<BR>
|
||||
{if $data.embeded !=yes}<a href="upload_thumbs.php?video={$data.videoid}&gen_more=true">Regenerate Thumbs</a>{/if}<br />
|
||||
<a href="upload_thumbs.php?video={$data.videoid}">Manage Thumbs</a></strong></td>
|
||||
<td>{assign var=vidthumbs value=func->get_thumb($data,1,TRUE)}
|
||||
|
||||
{foreach from=$vidthumbs item=vid_thumb}
|
||||
<div style="width:140px; float:left" align="center">
|
||||
<label for="{$vid_thumb|getname}"><img src="{$vid_thumb}" border="1" style="margin:4px" /><br />
|
||||
<input type="radio" value="{$vid_thumb|getname}.{$vid_thumb|getext}" id="{$vid_thumb|getname}" name="default_thumb" {if $data.default_thumb==$vid_thumb|get_thumb_num} checked="checked"{/if} />Default</label><br />
|
||||
{if $vid_thumb|getname!='processing'}
|
||||
<a href="?video={$data.videoid}&delete={$vid_thumb|getname}.{$vid_thumb|getext}">Delete</a>
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{foreach from=$requiredFields item=field}
|
||||
<tr>
|
||||
<td width="200" ><strong>{$field.title} :</strong></td>
|
||||
<td >{$field.hint_1}<br />
|
||||
{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
<tr>
|
||||
<td width="200"><strong>Status</strong></td>
|
||||
<td>
|
||||
<select name="status">
|
||||
<option value="Successful" {if $data.status=='Successful'} selected {/if}>Successfull</option>
|
||||
<option value="processing" {if $data.status=='Processing'} selected {/if}>Processing</option>
|
||||
<option value="Failed" {if $data.status=='Failed'} selected {/if}>Failed</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200"><strong>Duration (seconds) </strong></td>
|
||||
<td>
|
||||
<label>
|
||||
<input name="duration" type="text" id="duration" value="{$data.duration}" size="5" />
|
||||
</label>
|
||||
seconds</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>Video Stats</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200" ><strong>Views</strong></td>
|
||||
<td><input name="views" type="text" id="views" value="{$data.views}" size="45" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" ><strong>Rating</strong></td>
|
||||
<td><input name="rating" type="text" id="rating" value="{$data.rating}" size="5" />
|
||||
of 10 </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" ><strong>RatedBy</strong></td>
|
||||
<td><input name="rated_by" type="text" id="rated_by" value="{$data.rated_by}" size="45" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>Recording Details</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
{foreach from=$locationFields item=field}
|
||||
<tr>
|
||||
<td width="200"><strong>{$field.title} </strong></td>
|
||||
<td >{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>Sharing</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
{foreach from=$optionFields item=field}
|
||||
<tr>
|
||||
<td width="200"><strong>{$field.title} </strong></td>
|
||||
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
<br>
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>Custom Form Fields</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
{foreach from=$custom_form_fields item=field}
|
||||
<tr>
|
||||
<td width="200"><strong>{$field.title}</strong></td>
|
||||
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
<br>
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>Custom Upload Fields</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
{foreach from=$custom_fields item=field}
|
||||
<tr>
|
||||
<td width="200"><strong>{$field.title}</strong></td>
|
||||
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
<br>
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</fieldset>
|
||||
<div style="width:98%; margin:auto">
|
||||
<input type="submit" class="button" value="Update video details" style="margin:5px 0px 15px 0px" name="update">
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
46
upload/admin_area/styles/cbv2/layout/editor_pick.html
Normal file
|
@ -0,0 +1,46 @@
|
|||
<span class="page_title">Editor's Pick</span>
|
||||
|
||||
<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">Num</td>
|
||||
<td width="100" class="head_sep_left">Sort</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=list loop=$videos}
|
||||
<tr class="video_opt_td" bgcolor="{$bgcolor}">
|
||||
<td width="30" align="center" valign="top" class="video_opt_td"> <input name="check_video[]" type="checkbox" id="check_video" value="{$videos[list].videoid}" /></td>
|
||||
<td width="50" align="center" valign="top" class="video_opt_td">{$videos[list].sort}</td>
|
||||
<td width="100" align="center" valign="top" class="video_opt_td">{if $videos[list].sort > $min}<a href="?move_up={$videos[list].pick_id}">Up</a>{/if} – {if $videos[list].sort < $max}<a href="?move_down={$videos[list].pick_id}">Down</a>{/if}</td>
|
||||
<td valign="top" class="video_opt_td" style="padding-left:15px">
|
||||
<a href="{$baseurl}/watch_video.php?v={$videos[list].videokey}" target="_blank" style="text-indent:10px">
|
||||
{$videos[list].title}
|
||||
</a> –<a href="?remove={$videos[list].videoid}"> Remove from editor's pick</a>—
|
||||
<span class="vdo_sets">
|
||||
Featured:<strong>{$videos[list].featured} </strong> •
|
||||
Active:<strong>{$videos[list].active}</strong> •
|
||||
Status:<strong>{$videos[list].status}</strong>
|
||||
</span>
|
||||
|
||||
<br />
|
||||
</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>
|
||||
|
||||
|
||||
|
151
upload/admin_area/styles/cbv2/layout/email_settings.html
Normal file
|
@ -0,0 +1,151 @@
|
|||
<script type="text/javascript" src="{$js}/popup_image.js"></script>
|
||||
<div class="setting_title"> Email Settings </div>
|
||||
|
||||
<form action="" method="post" enctype="multipart/form-data" name="Email Settings" id="Email Settings">
|
||||
<table width="100%" border="0" cellpadding="3" cellspacing="3">
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#F2F2F2" class="tr_head">Email Settings</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="152" valign="top" bgcolor="#F9F9F9" class="td_body">Website Email</td>
|
||||
<td width="841" bgcolor="#F9F9F9" class="td_body"><label>
|
||||
<input name="website_email" type="text" id="website_email" value="{$row.website_email}" size="45">
|
||||
</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="152" valign="top" bgcolor="#F9F9F9" class="td_body">Support Email</td>
|
||||
<td bgcolor="#F9F9F9" class="td_body"><input name="support_email" type="text" id="support_email" value="{$row.support_email}" size="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#F9F9F9" class="td_body">Welcome Email</td>
|
||||
<td bgcolor="#F9F9F9" class="td_body"><input name="welcome_email" type="text" id="welcome_email" value="{$row.welcome_email}" size="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#F9F9F9" class="td_body"> </td>
|
||||
<td bgcolor="#F9F9F9" class="td_body"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#F9F9F9" class="tr_head">Email Templates</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#F9F9F9" class="td_body"><table width=100% align="center" bgcolor=#f1f1f1 class=des_table>
|
||||
<tr>
|
||||
<td colspan="4" class="title">Email Templates Instruction</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="85">Username</td>
|
||||
<td width="135">$username</td>
|
||||
<td width="99">From</td>
|
||||
<td width="787">$from</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Email</td>
|
||||
<td>$email</td>
|
||||
<td>Sender Email</td>
|
||||
<td>$from_email</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Password</td>
|
||||
<td>$password</td>
|
||||
<td>VideoKey</td>
|
||||
<td>$videokey</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Activation Code</td>
|
||||
<td>$avcode</td>
|
||||
<td>VideoThumb</td>
|
||||
<td>$videothumb</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Current Date</td>
|
||||
<td>$cur_date</td>
|
||||
<td>VideoTtle</td>
|
||||
<td>$videotitle</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Website Title</td>
|
||||
<td>$title</td>
|
||||
<td>VideoDescription</td>
|
||||
<td>$videodes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Website URL</td>
|
||||
<td>$baseurl</td>
|
||||
<td>PersonalMessage</td>
|
||||
<td>$message</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4"><ul>
|
||||
<li>Above Given Tags can be used in Email</li>
|
||||
<li>Do Not Use Double or Single Quotation in Hyperlinks ie <a href="linkgoeshere">clickhere</a> is wrong, just type <a href=linkgoeshere.....</li>
|
||||
<li>Dont Use Tags That are not allowed for the specific Template</li>
|
||||
<li>You can add HTML in it</li>
|
||||
<li>If you want more Templates Please ClipBucket</li>
|
||||
</ul></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F9F9F9" class="td_body">Signup Template<br />
|
||||
(Email Verification)</td>
|
||||
<td valign="top" bgcolor="#F9F9F9" class="td_body"><label> Subject:<br />
|
||||
<input name="email_verification_header" type="text" id="email_verification_header" value="{$header.email_verification_template}" size="60" />
|
||||
<br />
|
||||
Message:<br />
|
||||
<textarea name="email_verification_template" id="email_verification_template" cols="50" rows="8">{$row.email_verification_template}</textarea>
|
||||
<br />
|
||||
(Allowed Tags:Username,Email,Password,ActivationCode,CurrentDate,Websitetitle,WebsiteURL)</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F9F9F9" class="td_body">Welcome Message Template</td>
|
||||
<td bgcolor="#F9F9F9" class="td_body">Subject:<br />
|
||||
<input name="welcome_message_header" type="text" id="welcome_message_template_header" value="{$header.welcome_message_template}" size="60" />
|
||||
<br />
|
||||
Message:<br />
|
||||
<textarea name="welcome_message_template" id="welcome_message_template" cols="50" rows="8">{$row.welcome_message_template}</textarea>
|
||||
<br />
|
||||
(Allowed Tags:Username,Email,CurrentDate,Websitetitle,WebsiteURL)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F9F9F9" class="td_body">Activation Code Request Template</td>
|
||||
<td bgcolor="#F9F9F9" class="td_body">Subject:<br />
|
||||
<input name="activate_request_header" type="text" id="welcome_message_template_header2" value="{$header.activate_request_template}" size="60" />
|
||||
<br />
|
||||
Message: <br />
|
||||
<textarea name="activate_request_template" id="activate_request_template" cols="50" rows="8">{$row.activate_request_template}</textarea>
|
||||
<br />
|
||||
(Allowed Tags:Username,Email,ActivationCode,CurrentDate,Websitetitle,WebsiteURL)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F9F9F9" class="td_body">Share This Video Template</td>
|
||||
<td bgcolor="#F9F9F9" class="td_body">Subject:<br />
|
||||
<input name="share_video_header" type="text" id="email_verification_header3" value="{$header.share_video_template}" size="60" />
|
||||
<br />
|
||||
Message:<br />
|
||||
<textarea name="share_video_template" id="share_video_template" cols="50" rows="8">{$row.share_video_template}</textarea>
|
||||
<br />
|
||||
(Allowed Tags:From,SenderEmail,,Websitetitle,WebsiteURL,Videokey,VideoThumb,VideoTtle,VideoDescription,CurrentDate)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#F9F9F9" class="td_body"> </td>
|
||||
<td bgcolor="#F9F9F9" class="td_body"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center"><label>
|
||||
<input type="submit" name="button" id="button" value="Submit" style="width:150px"/>
|
||||
<input type="reset" name="button2" id="button" value="Reset" style="width:150px"/>
|
||||
</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
101
upload/admin_area/styles/cbv2/layout/flagged_videos.html
Normal file
|
@ -0,0 +1,101 @@
|
|||
|
||||
<span class="page_title">Video Manager</span>
|
||||
<!-- DIsplaying Videos -->
|
||||
<form name="video_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">VID</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=list loop=$videos}
|
||||
<tr class="video_opt_td" bgcolor="{$bgcolor}">
|
||||
<td width="30" align="center" valign="top" class="video_opt_td"> <input name="check_video[]" type="checkbox" id="check_video" value="{$videos[list].videoid}" /></td>
|
||||
<td width="50" align="center" valign="top" class="video_opt_td">{$videos[list].videoid}</td>
|
||||
<td valign="top" class="video_opt_td"
|
||||
onmouseover="$('#vid_opt-{$videos[list].videoid}').show()"
|
||||
onmouseout="$('#vid_opt-{$videos[list].videoid}').hide()" >
|
||||
<a href="{$baseurl}/watch_video.php?v={$videos[list].videokey}" target="_blank" style="text-indent:10px">
|
||||
{$videos[list].title}
|
||||
</a> —
|
||||
<span class="vdo_sets">
|
||||
Featured:<strong>{$videos[list].featured} </strong> •
|
||||
Active:<strong>{$videos[list].active}</strong> •
|
||||
Status:<strong>{$videos[list].status}</strong>
|
||||
</span>
|
||||
|
||||
<br />
|
||||
<div id="vid_opt-{$videos[list].videoid}" style="display:none" class="vid_opts">
|
||||
|
||||
<a href="view_video.php?video={$videos[list].videoid}">View</a> |
|
||||
<a href="edit_video.php?video={$videos[list].videoid}">Edit</a> {if $videos[list].featured == yes} |
|
||||
<a href="javascript:Confirm_Delete('?delete_video={$videos[list].videoid}')">Delete</a> |
|
||||
<a href="?make_unfeature={$videos[list].videoid}">Make Unfeatured</a> {/if}
|
||||
{if $videos[list].featured == no} |
|
||||
<a href="?make_feature={$videos[list].videoid}">Make Featured</a> {/if}
|
||||
{if $videos[list].active == yes} |
|
||||
<a href="?deactivate={$videos[list].videoid}">Deactivate</a> {else} |
|
||||
<a href="?activate={$videos[list].videoid}">Activate</a> {/if} |
|
||||
<a href="view_conversion_log.php?file_name={$videos[list].file_name}">File conversion details</a> |
|
||||
<a href="?delete_video={$videos[list].videoid}">Delete</a>
|
||||
{foreach from=$cbvid->video_manager_links item=links}
|
||||
{$cbvid->video_manager_link($links,$videos[list])}
|
||||
{/foreach}
|
||||
</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>
|
||||
|
||||
<!-- DIsplaying Videos Ends-->
|
||||
{include file="$style_dir/blocks/pagination.html" }
|
6
upload/admin_area/styles/cbv2/layout/footer.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<div class="footer_grey_bar">
|
||||
<img src="{$imageurl}/dot.gif" class="cbicon" /> Thanks for using ClipBucket | © Copyright 2007 – {$smarty.now|date_format:"%Y"}
|
||||
<div style="float:right" align="right">
|
||||
<em>v2.0</em> | Forums | Arslan Hassan | CBLA</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
81
upload/admin_area/styles/cbv2/layout/global_header.html
Normal file
|
@ -0,0 +1,81 @@
|
|||
<!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>{$title} admin panel - {$subtitle}</title>
|
||||
<link href="{$theme}/main.css" rel="stylesheet" type="text/css" />
|
||||
<link href="{$theme}/slidemenu.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
var baseurl = "{$baseurl}";
|
||||
var imageurl = "{$imageurl}";
|
||||
</script>
|
||||
<script type="text/javascript" src="{$js}/flashobject.js"></script>
|
||||
<script type="text/javascript" src="{$js}/functions.js"></script>
|
||||
<script type="text/javascript" src="{$js}/admin_functions.js"></script>
|
||||
<script type="text/javascript" src="{$js}/checkall.js"></script>
|
||||
<script type="text/javascript" src="{$js}/jquery.js"></script>
|
||||
<script type="text/javascript" src="{$js}/ui/jquery-ui-1.7.2.custom.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="{$js}/jquery_plugs/hover_intent.js"></script>
|
||||
<script type="text/javascript" src="{$js}/jquery_plugs/cb.tabs.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="{$js}/jquery_plugs/css/jquery.tooltip.css" />
|
||||
<link rel="stylesheet" href="{$js}/jquery_plugs/css/screen.css" />
|
||||
<link rel="stylesheet" href="{$js}/ui/css/ui-lightness/jquery-ui-1.7.2.custom.css" />
|
||||
|
||||
<script src="{$js}/jquery_plugs/jquery.bgiframe.js" type="text/javascript"></script>
|
||||
<script src="{$js}/jquery_plugs/jquery.dimensions.js" type="text/javascript"></script>
|
||||
<script src="{$js}/jquery_plugs/jquery.tooltip.pack.js" type="text/javascript"></script>
|
||||
<script src="{$js}/jquery_plugs/chili-1.7.pack.js" type="text/javascript"></script>
|
||||
<script src="{$js}/jquery_plugs/compressed/jeditable.js" type="text/javascript"></script>
|
||||
|
||||
<!-- Including Nice Edit -->
|
||||
|
||||
{literal}
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
|
||||
$(function() {
|
||||
$("#abcds").tooltip();
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
function makeTall(divid){ $('#'+divid).animate({"height":209},200);}
|
||||
function makeShort(divid){ $('#'+divid).animate({"height":0},200);}
|
||||
var on = false;
|
||||
function switch_func(divid)
|
||||
{
|
||||
if(on)
|
||||
{
|
||||
makeShort(divid);
|
||||
on = false;
|
||||
}else{
|
||||
makeTall(divid);
|
||||
on = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.edit_lang').editable(baseurl+'/actions/update_phrase.php', {
|
||||
// cancel : 'Cancel',
|
||||
// submit : 'OK',
|
||||
indicator : '<img src="'+baseurl+'/images/icons/progIndicator.gif">',
|
||||
tooltip : 'Click to edit...',
|
||||
});
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.edit_comment').editable(baseurl+'/actions/edit_comment.php', {
|
||||
// cancel : 'Cancel',
|
||||
// submit : 'OK',
|
||||
indicator : '<img src="'+baseurl+'/images/icons/progIndicator.gif">',
|
||||
tooltip : 'Click to edit...',
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
</head>
|
152
upload/admin_area/styles/cbv2/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/cbv2/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}/{$cbgroup->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" }
|
15
upload/admin_area/styles/cbv2/layout/header.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<div class="header_grey_bar">
|
||||
<img src="{$imageurl}/dot.gif" class="cbicon" /> Website Name
|
||||
<div class="welcome" style="float:right">
|
||||
Hello Admin <img src="{$imageurl}/dot.gif" class="logout_button" />
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div class="header_menu">
|
||||
<ul>
|
||||
<li><a href="{$baseurl}/admin_area">Admin Home</a></li>
|
||||
<li><a href="{$baseurl}">Website Home</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header_menu_after"></div>
|
37
upload/admin_area/styles/cbv2/layout/index.html
Normal file
|
@ -0,0 +1,37 @@
|
|||
<div class="admin_heading">
|
||||
Stats IN-A-Glance
|
||||
</div>
|
||||
<div class="admin_box">
|
||||
<div class="stats">
|
||||
<div class="stat">
|
||||
TODAY - YESTERDAY - THIS WEEK - LAST WEEK - THIS MONTH - LAST MONTH
|
||||
</div>
|
||||
|
||||
<!-- Video Stats -->
|
||||
<div class="stat">
|
||||
<span>Videos</span>
|
||||
<span>1212 Flagged - 2121 Pendings</span>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<!-- Video Stats End-->
|
||||
<!-- Group Stats -->
|
||||
<div class="stat">
|
||||
<span>Videos</span>
|
||||
<span>1212 Flagged - 2121 Pendings</span>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<!-- Group Stats End-->
|
||||
<!-- Members Stats -->
|
||||
<div class="stat">
|
||||
<span>Videos</span>
|
||||
<span>1212 Flagged - 2121 Pendings</span>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<!-- Members Stats End-->
|
||||
<div class="stat">
|
||||
<span>You are currently using ClipBucket v2</span>
|
||||
<span><span class="simple_button">Check For Update</span></span>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
80
upload/admin_area/styles/cbv2/layout/language_settings.html
Normal file
|
@ -0,0 +1,80 @@
|
|||
{if $edit_lang != 'yes'}
|
||||
<span class="page_title">Language Settings</span>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="20" class="left_head" style="padding-left:5px">ID</td>
|
||||
<td width="100" align="left" class="head"><div class="head_sep_left">Default</div></td>
|
||||
<td class="head"><div class="head_sep_left" style="width:100px">Language</div></td>
|
||||
<td width="100" align="left" class="head"><div class="head_sep_left">Language Code</div></td>
|
||||
<td width="150" align="left" class="head"><div class="head_sep_left">Regular Expression</div></td>
|
||||
<td width="200" class="right_head"><div class="head_sep_left">Actions</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<form name="default_lang" method="post">
|
||||
{section name=l_list loop=$language_list}
|
||||
<div class="row_white">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="20" valign="top" style="padding-left:5px">{$language_list[l_list].language_id}</td>
|
||||
<td width="100" align="left" valign="top"><label>
|
||||
<input type="radio" name="make_default" id="radio" value="{$language_list[l_list].language_id}" {if $language_list[l_list].language_default =='yes'}checked="checked"{/if} onclick="document.default_lang.submit()"/>
|
||||
</label></td>
|
||||
<td valign="top" style="padding-left:10px">{$language_list[l_list].language_name}</td>
|
||||
<td width="100" align="left" valign="top"><span style="margin-left:10px;">{$language_list[l_list].language_code}</span></td>
|
||||
<td width="150" align="left" valign="top"><span style="margin-left:10px;">{$language_list[l_list].language_regex}</span></td>
|
||||
<td width="200" align="left" valign="top">
|
||||
<a href="?edit_language={$language_list[l_list].language_id}" style="margin-left:10px">Edit Phrases</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{/section}
|
||||
</form>
|
||||
{else}
|
||||
<span class="page_title">Editing {$lang_details.language_name} Phrases</span>
|
||||
|
||||
<div style="height:10px">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="search_box"> <form id="form1" name="form1" method="post" action="">
|
||||
<label>Phrase Code - Name<br />
|
||||
<input name="varname" type="text" id="varname" value="{$smarty.post.varname|form_val}" />
|
||||
</label>
|
||||
<br />
|
||||
<label>Phrase Text<br />
|
||||
<input name="text" type="text" id="text" value="{$smarty.post.text|form_val}" />
|
||||
</label>
|
||||
<br />
|
||||
<label>
|
||||
<input type="submit" name="search_phrase" class="button" value="Submit" style="margin-top:10px" id="search_phrase"/>
|
||||
</label>
|
||||
</form></div>
|
||||
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="40" class="left_head" style="padding-left:5px">ID</td>
|
||||
<td width="200" class="head"><div class="head_sep_left" >Phrase Code</div></td>
|
||||
<td align="left" class="head"><div class="head_sep_left" style="width:100px">Phrase</div></td>
|
||||
<td width="200" class="right_head"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{section name=p_list loop=$lang_phrases}
|
||||
<div class="row_white">
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="40" style="padding-left:5px">{$lang_phrases[p_list].id}</td>
|
||||
<td width="200" >{$lang_phrases[p_list].varname}</td>
|
||||
<td align="left"><div class="edit_lang" id="{$lang_phrases[p_list].id}">{$lang_phrases[p_list].text}</div></td>
|
||||
<td width="200" ></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{/section}
|
||||
|
||||
<!-- DIsplaying Videos Ends-->
|
||||
{include file="$style_dir/blocks/pagination.html" }
|
||||
|
||||
{/if}
|
20
upload/admin_area/styles/cbv2/layout/left_menu.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<div class="left_menu" id="left_menu">
|
||||
|
||||
{assign var='menu' value = $Cbucket->AdminMenu}
|
||||
{foreach from=$menu key=name item=menu}
|
||||
<!-- *********************************Start {$name} Menu****************************** -->
|
||||
<div class="mainDiv" >
|
||||
<div class="topItem" >{$name}</div>
|
||||
<div class="dropMenu" >
|
||||
<div class="subMenu">
|
||||
{foreach from=$menu key=sub_menu item=sub_link}
|
||||
<div class="subItem"><a href="{$sub_link}">{$sub_menu}</a></div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- *********************************End {$name} Menu****************************** -->
|
||||
{/foreach}
|
||||
<!-- *********************************End Menu****************************** -->
|
||||
</div>
|
||||
<script type="text/javascript" src="{$js}/slidemenu.js"></script>
|
32
upload/admin_area/styles/cbv2/layout/login.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<body>
|
||||
<div style="height:400px; background-image:url({$imageurl}/bgs/login.png); background-repeat:repeat-x" align="center">
|
||||
<div id="login_box">
|
||||
<form name="form1" method="post" action="">
|
||||
<table width="78%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left"><label for="username">Username</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
<input type="text" name="username" id="username" class="textfield">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><label for="password">Password</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="password" name="password" id="password" class="textfield">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><label>
|
||||
<input type="submit" name="login" class="button" value=" Login ">
|
||||
</label></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
391
upload/admin_area/styles/cbv2/layout/main.html
Normal file
|
@ -0,0 +1,391 @@
|
|||
<ul class="cbtab">
|
||||
<li onClick='display_tab(this,"div_1",true)' id="first_tab">Website Settings</li>
|
||||
<li onClick='display_tab(this,"div_2",true)' >Uploading and Conversion Settings</li>
|
||||
<li onClick='display_tab(this,"div_3",true)' >Display and Listing Settings</li>
|
||||
<li onClick='display_tab(this,"div_4",true)' >User & Registeration</li>
|
||||
</ul>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<form name="form1" method="post" action="">
|
||||
<input name="baseurl" value="{$row.baseurl}" type="hidden" />
|
||||
<input name="basedir" value="{$row.baseurl}" type="hidden" />
|
||||
<div id="tabbed_div">
|
||||
<div id="div_1" class="main_page_div">
|
||||
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200" valign="top">Website title</td>
|
||||
<td valign="top"><input name="site_title" type="text" id="site_title" value="{$row.site_title}" size="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Website slogan</td>
|
||||
<td valign="top"><input name="site_slogan" type="text" id="site_slogan" value="{$row.site_slogan}" size="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Website closed</td>
|
||||
<td valign="top"><select name="closed" id="select">
|
||||
<option value="1"
|
||||
{if $row.closed == 1}
|
||||
selected="selected"
|
||||
{/if}
|
||||
>Yes</option>
|
||||
<option value="0"
|
||||
{if $row.closed == 0}
|
||||
selected="selected"
|
||||
{/if}
|
||||
>No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Closed message</td>
|
||||
<td valign="top"><textarea name="closed_msg" id="closed_msg" cols="45" rows="5">{$row.closed_msg}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Meta Description</td>
|
||||
<td valign="top"><textarea name="description" id="description" cols="45" rows="5">{$row.description}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Meta Keywords</td>
|
||||
<td valign="top"><input name="keywords" type="text" id="keywords" value="{$row.keywords}" size="45" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Default Language</td>
|
||||
<td><select name="default_site_lang">
|
||||
|
||||
{foreach from=$languages key=k item=v}
|
||||
|
||||
<option value="{$k}" {if $row.default_site_lang == $k} selected="selected" {/if}>{$v}</option>
|
||||
|
||||
{/foreach}
|
||||
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SEO Urls</td>
|
||||
<td><select name="seo" id="select2">
|
||||
<option value="yes"
|
||||
{if $row.seo == yes}
|
||||
selected="selected"
|
||||
{/if}
|
||||
>Yes</option>
|
||||
<option value="no"
|
||||
{if $row.seo == no}
|
||||
selected="selected"
|
||||
{/if}
|
||||
>No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Allow template change</td>
|
||||
<td><select name="allow_language_change" id="allow_language_change">
|
||||
<option value="1"
|
||||
{if $row.allow_language_change == 1}
|
||||
selected="selected"
|
||||
{/if}
|
||||
>Yes</option>
|
||||
<option value="0"
|
||||
{if $row.allow_language_change == 0}
|
||||
selected="selected"
|
||||
{/if}
|
||||
>No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Allow language change</td>
|
||||
<td><select name="seo2" id="seo">
|
||||
<option value="yes"
|
||||
{if $row.seo == yes}
|
||||
selected="selected"
|
||||
{/if}
|
||||
>Yes</option>
|
||||
<option value="no"
|
||||
{if $row.seo == no}
|
||||
selected="selected"
|
||||
{/if}
|
||||
>No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Require login to watch videos ?</td>
|
||||
<td><input name="video_require_login" type="checkbox" id="video_require_login" value="yes" {if $row.video_require_login=='yes'}checked="checked"{/if} /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Allow comments</td>
|
||||
<td valign="top"><input name="video_comments" type="checkbox" id="video_comments" value="1" {if $row.video_comments=='1'}checked="checked"{/if} />
|
||||
<br />
|
||||
<input name="user_comment_own" type="checkbox" id="user_comment_own" value="1" {if $row.user_comment_own=='1'}checked="checked"{/if} />
|
||||
User can comment on his/her own video/channel</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Maximum character count</td>
|
||||
<td valign="top"><input name="max_comment_chr" type="text" id="max_comment_chr" value="{$row.max_comment_chr}" size="15" maxlength="5" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Allow ratings</td>
|
||||
<td valign="top"><input name="video_rating" type="checkbox" id="video_rating" value="1" {if $row.video_rating=='1'}checked="checked"{/if} />
|
||||
<br />
|
||||
<input name="video_comments3" type="checkbox" id="video_comments3" value="1" {if $row.video_comments=='1'}checked="checked"{/if} />
|
||||
User can rate his/her video/channel</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Allow comments rating</td>
|
||||
<td><input name="comment_rating" type="checkbox" id="comment_rating" value="1" {if $row.comment_rating=='1'}checked="checked"{/if} /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Allow video embedding</td>
|
||||
<td><input name="video_embed" type="checkbox" id="video_embed" value="1" {if $row.video_embed=='1'}checked="checked"{/if} /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Allow video download</td>
|
||||
<td><input name="video_download" type="checkbox" id="video_download" value="1" {if $row.video_download=='1'}checked="checked"{/if} /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="div_2" class="main_page_div">
|
||||
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200" valign="top">FFMPEG Binary Path</td>
|
||||
<td valign="top"><input name="ffmpegpath" type="text" id="ffmpegpath" value="{$row.ffmpegpath}" size="45" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">PHP Binary Path</td>
|
||||
<td valign="top"><input name="php_path" type="text" id="php_path" value="{$row.php_path}" size="45" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Allow video uploading</td>
|
||||
<td valign="top"><label>
|
||||
<input name="allow_upload" type="checkbox" id="allow_upload" value="yes" {if $row.allow_upload}checked="checked"{/if} />
|
||||
</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Allowed extensions</td>
|
||||
<td valign="top"><label>
|
||||
<textarea name="allowed_types" id="allowed_types" cols="45" rows="5">{$row.allowed_types}</textarea>
|
||||
<br />
|
||||
Sperate by comma [case insensitive]</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Max upload file size</td>
|
||||
<td><input name="max_upload_size" type="text" id="max_upload_size" value="{$row.max_upload_size}" size="15" maxlength="5" />
|
||||
in MegaBytes </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Save original file </td>
|
||||
<td><input name="keep_original" type="checkbox" id="keep_original" value="1" {if $row.keep_original} checked="checked"{/if} /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Activation required</td>
|
||||
<td><input name="activation" type="checkbox" id="activation" value="1" {if $row.activation==1} checked="checked"{/if} /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Converting video height and thumbs settings</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Video Width</td>
|
||||
<td><input name="r_width" type="text" id="r_width" value="{$row.r_width}" size="45" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Video Height</td>
|
||||
<td><input name="r_height" type="text" id="r_height" value="{$row.r_height}" size="45" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Resize Type</td>
|
||||
<td><select name="resize" id="select">
|
||||
<option value="no" {if $row.resize ==no} selected="selected"{/if}>No</option>
|
||||
<option value="max" {if $row.resize ==max} selected="selected"{/if}>Max</option>
|
||||
<option value="WxH" {if $row.resize ==WxH} selected="selected"{/if}>Stretch</option>
|
||||
<option value="fit" {if $row.resize ==fit} selected="selected"{/if}>Aspect Ratio</option>
|
||||
</select> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Thumb Width</td>
|
||||
<td><input name="thumb_width" type="text" id="thumb_width" value="{$row.thumb_width}" size="45" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Thumb Height</td>
|
||||
<td><input name="thumb_height" type="text" id="thumb_height" value="{$row.thumb_height}" size="45" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Number of thumbs</td>
|
||||
<td><input name="num_thumbs" type="text" id="num_thumbs" value="{$row.num_thumbs}" size="45" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Big Thumb Width</td>
|
||||
<td><input name="big_thumb_width" type="text" id="big_thumb_width" value="{$row.big_thumb_width}" size="45" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Big Thumb Height</td>
|
||||
<td><input name="big_thumb_height" type="text" id="big_thumb_height" value="{$row.big_thumb_height}" size="45" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Change only if you have good knowledge of video conversion</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Video Rate</td>
|
||||
<td><input name="vrate" type="text" id="vrate" value="{$row.vrate}" size="45" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Video Bitrate</td>
|
||||
<td><input name="vbrate" type="text" id="vbrate" value="{$row.vbrate}" size="45" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Audio Rate</td>
|
||||
<td><input name="srate" type="text" id="srate" value="{$row.srate}" size="45" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Audio Bitrate</td>
|
||||
<td><input name="sbrate" type="text" id="sbrate" value="{$row.sbrate}" size="45" /></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="div_3" class="main_page_div" ><table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200" valign="top">Current Template</td>
|
||||
<td valign="top"><a href="templates.php">manage templates</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Current FLV Player</td>
|
||||
<td valign="top"><a href="flv_players.php">manage flv players</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top"> </td>
|
||||
<td valign="top"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Videos per page</td>
|
||||
<td><input name="videos_list_per_page" type="text" id="videos_list_per_page" value="{$row.videos_list_per_page}" size="6" maxlength="3" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Videos per tab or section</td>
|
||||
<td><input name="videos_list_per_tab" type="text" id="videos_list_per_tab" value="{$row.videos_list_per_tab}" size="6" maxlength="3" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Channels per page</td>
|
||||
<td><input name="channels_list_per_page" type="text" id="channels_list_per_page" value="{$row.channels_list_per_page}" size="6" maxlength="3" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Channels per tab or section</td>
|
||||
<td><input name="channels_list_per_tab" type="text" id="channels_list_per_tab" value="{$row.channels_list_per_tab}" size="6" maxlength="3" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Search results per page</td>
|
||||
<td><input name="search_list_per_page" type="text" id="search_list_per_page" value="{$row.search_list_per_page}" size="6" maxlength="3" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Recently viewed videos</td>
|
||||
<td><input name="recently_viewed_limit" type="text" id="recently_viewed_limit" value="{$row.recently_viewed_limit}" size="6" maxlength="3" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="div_4" class="main_page_div" ><table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200" valign="top">Turn on registerations</td>
|
||||
<td valign="top"><input name="allow_registeration" type="checkbox" id="allow_registeration" value="1" {if $row.allow_registeration=='1'}checked="checked"{/if} /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Email verification</td>
|
||||
<td valign="top"><input name="email_verification" type="checkbox" id="email_verification" value="1" {if $row.email_verification=='1'}checked="checked"{/if} /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Image verification (captcha)</td>
|
||||
<td valign="top"><select name="captcha_type">
|
||||
<option value="0" {if $row.captcha_type == 0}
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
<option value="1" {if $row.captcha_type == 1}
|
||||
selected="selected"
|
||||
{/if}>Simple</option>
|
||||
<option value="2" {if $row.captcha_type == 2}
|
||||
selected="selected"
|
||||
{/if}>Secured</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!--<td valign="top">Username regular expression</td>
|
||||
<td valign="top"><label>
|
||||
<input type="text" name="textfield" id="textfield" />
|
||||
please refer to <a href="http://www.php.net/pcre">php.net</a></label></td>-->
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Username maximum characters</td>
|
||||
<td valign="top"><input name="user_max_chr" type="text" id="user_max_chr" value="{$row.user_max_chr}" size="6" maxlength="3" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Disallowed usernames</td>
|
||||
<td valign="top"><label>
|
||||
<textarea name="disallowed_usernames" id="disallowed_usernames" cols="45" rows="5">{$row.disallowed_usernames}</textarea>
|
||||
<br />
|
||||
sperate by commas
|
||||
</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Minimum age for registeration</td>
|
||||
<td valign="top"><input name="min_age_reg" type="text" id="min_age_reg" value="{$row.min_age_reg}" size="6" maxlength="3" />
|
||||
leave blank to disable this option</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top"> </td>
|
||||
<td valign="top"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div align="right"class="main_page_div" style="padding:5px; min-height:0px; margin-top:10px"><label>
|
||||
<input type="submit" name="update" class="button" value="Update Settings" id="udpate" />
|
||||
</label>
|
||||
</div>
|
||||
</form>
|
31
upload/admin_area/styles/cbv2/layout/manage_pages.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
<span class="page_title">Manage Pages</span>
|
||||
|
||||
|
||||
<form method="post">
|
||||
<fieldset class="fieldset">
|
||||
<legend>Add New Page
|
||||
</legend><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200"><strong>Page Title</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="textfield"></label>
|
||||
<input type="text" name="textfield" id="textfield"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Page Content</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="textarea"></label>
|
||||
<textarea name="textarea" id="textarea" cols="45" rows="5"></textarea><script type="text/javascript">
|
||||
{literal}new nicEditor({fullPanel : true}).panelInstance('textarea');{/literal}
|
||||
</script></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
</td>
|
129
upload/admin_area/styles/cbv2/layout/manage_players.html
Normal file
|
@ -0,0 +1,129 @@
|
|||
<div class="setting_title">Selected Player</div>
|
||||
<div>
|
||||
{assign var="player_dir" value=$Cbucket->configs.player_dir}
|
||||
{assign var="player_file" value=$Cbucket->configs.player_file}
|
||||
|
||||
{assign var="curplayer" value=$cbplayer->getPlayerDetails($player_file,$player_dir)}
|
||||
<table width="800" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="190"><img src="{$cbplayer->get_preview_thumb($curplayer.folder)}" class="preview_thumb" ></td>
|
||||
<td valign="top"><h2 style="display:inline">{$curplayer.name}</h2> — <em><a href="{$curplayer.author_page}"><strong>{$curplayer.author}</strong></a></em><br />
|
||||
{$curplayer.description}<br />
|
||||
Version : {$curplayer.version} Released on {$curplayer.released|date_format}<br />
|
||||
Website : <a href="{$curplayer.website}">{$curplayer.website}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<hr size="1" noshade />
|
||||
|
||||
<div class="setting_title"><a href="javascript:void(0)" onclick="$('#player_size').toggle()">Change Player Size</a></div>
|
||||
<div id="msg_box" style="margin:5px;"></div>
|
||||
<div id="player_size" style="display:none">
|
||||
{literal}
|
||||
<style type="text/css">
|
||||
|
||||
#resizable{{/literal}background-image:url({$imageurl}/play_icon.png); background-repeat:no-repeat; background-position:center{literal}}
|
||||
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function update_player_size(width,height,normal_player,channel_player)
|
||||
{
|
||||
var page = baseurl+'/actions/update_configs.php';
|
||||
$.post(page,
|
||||
{
|
||||
width : width,
|
||||
height : height,
|
||||
update_player_size : normal_player,
|
||||
update_channel_player_size:channel_player
|
||||
},
|
||||
function(data)
|
||||
{
|
||||
if(!data)
|
||||
alert("No data");
|
||||
else
|
||||
$("#msg_box").html('<div style="width:300px; padding:5px; text-align:center; background-color:#0099cc; border-radius:5px; -moz-border-radius:5px; color:#fff">'+data+'</div>');
|
||||
},'text');
|
||||
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$("#resizable").resizable({
|
||||
maxHeight: 800,
|
||||
maxWidth: 800,
|
||||
minHeight: 100,
|
||||
minWidth: 100,
|
||||
grid: 10,
|
||||
resize:function(event,ui){$("#width").val(ui.size.width);$("#height").val(ui.size.height);},
|
||||
stop:function(event,ui){update_player_size(ui.size.width,ui.size.height,'yes','')}
|
||||
});
|
||||
|
||||
$("#width").change(function () {$('#resizable').css("width",this.value+'px') ; update_player_size(this.value,$("#height").val(),'yes','') });
|
||||
$("#height").change(function () {$('#resizable').css("height",this.value+'px'); update_player_size($("#width").val(),this.value,'yes','') });
|
||||
});
|
||||
|
||||
|
||||
$(function() {
|
||||
$("#resizable-channel").resizable({
|
||||
maxHeight: 800,
|
||||
maxWidth: 800,
|
||||
minHeight: 100,
|
||||
minWidth: 100,
|
||||
grid: 10,
|
||||
resize:function(event,ui){$("#channel_width").val(ui.size.width);$("#channel_height").val(ui.size.height);},
|
||||
stop:function(event,ui){update_player_size(ui.size.width,ui.size.height,'','yes')}
|
||||
});
|
||||
|
||||
$("#channel_width").change(function () {$('#resizable-channel').css("width",this.value+'px') ; update_player_size(this.value,$("#channel_height").val(),'','yes') });
|
||||
$("#channel_height").change(function () {$('#resizable-channel').css("height",this.value+'px'); update_player_size($("#channel_width").val(),this.value,'','yes') });
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
<div class="demo">
|
||||
|
||||
<div id="resizable" class="ui-widget-content" style="width:{$Cbucket->configs.player_width}px; height:{$Cbucket->configs.player_height}px">
|
||||
<h3 class="ui-widget-header">Actual Player Size</h3>
|
||||
</div>
|
||||
<label for="width">Width</label>
|
||||
<input type="text" name="width" id="width" value="{$Cbucket->configs.player_width}" />
|
||||
<label for="height">Height</label>
|
||||
<input type="text" name="height" id="height" value="{$Cbucket->configs.player_height}" />
|
||||
</div>
|
||||
|
||||
Channel Player
|
||||
<div class="demo">
|
||||
|
||||
<div id="resizable-channel" class="ui-widget-content" style="width:{$Cbucket->configs.channel_player_width}px; height:{$Cbucket->configs.channel_player_height}px">
|
||||
<h3 class="ui-widget-header">Actual Player Size</h3>
|
||||
</div>
|
||||
<label for="width">Width</label>
|
||||
<input type="text" name="width" id="channel_width" value="{$Cbucket->configs.channel_player_width}" />
|
||||
<label for="height">Height</label>
|
||||
<input type="text" name="height" id="channel_height" value="{$Cbucket->configs.channel_player_height}" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<hr size="1" noshade />
|
||||
<div class="setting_title">Available Players</div>
|
||||
|
||||
{* Listing All Avilable Players *}
|
||||
|
||||
{assign var='players' value=$cbplayer->get_players()}
|
||||
|
||||
<div class="templates_container">
|
||||
{foreach from=$players item=player}
|
||||
{if $player_file !=$player.file && $player_dir != $player.folder}
|
||||
|
||||
<div class="template_box" align="center">
|
||||
<img src="{$cbplayer->get_preview_thumb($player.folder)}" class="preview_thumb" >
|
||||
<div align="center" style="" class="tpl_title">
|
||||
{$player.name} <br /><em>by <strong><a href="{$player.author_page}">{$player.author}</a></strong></em><br />
|
||||
<a href="manage_players.php?set=yes&folder={$player.folder}&file={$player.file}">Activate This Player</a><br />
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
74
upload/admin_area/styles/cbv2/layout/members.html
Normal file
|
@ -0,0 +1,74 @@
|
|||
<span class="page_title">Member Manager</span>
|
||||
|
||||
<!-- Displaying Members -->
|
||||
|
||||
<table width="99%" border="0" 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">UID</td>
|
||||
<td class="head"><div class="head_sep_left" style="width:250px">User Details</div></td>
|
||||
<td width="50" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
<table width="99%" border="0" cellpadding="0" cellspacing="0">
|
||||
{foreach from=$users item=u}
|
||||
<tr class="video_opt_td" bgcolor="{$bgcolor}">
|
||||
<td width="30" align="center" valign="top" class="video_opt_td"> <input name="check_user[]" type="checkbox" id="check_user" value="{$videos[list].videoid}" /></td>
|
||||
<td width="50" align="center" valign="top" class="video_opt_td">{$u.userid}</td>
|
||||
<td valign="top" class="video_opt_td"
|
||||
onmouseover="$('#usr_opt-{$u.userid}').show()"
|
||||
onmouseout="$('#usr_opt-{$u.userid}').hide()" >
|
||||
<div style="float:left; width:35px; margin-left:10px"><img src="{$userquery->getUserThumb($u,'small')}" class="mid_user_thumb" /></div>
|
||||
<a href="#" target="_blank" style="text-indent:10px">
|
||||
{$u.username}
|
||||
</a> —
|
||||
<span class="vdo_sets">Email:<strong><span style="text-transform:none">{$u.email}</span> </strong> •
|
||||
Status:<strong>{$u.usr_status}</strong> •
|
||||
Level:<strong>{$u.level|get_user_level}</strong> •
|
||||
Last Active:<strong>{$u.last_active}</strong>
|
||||
</span>
|
||||
|
||||
<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> |
|
||||
{if $u.usr_status == Ok}
|
||||
<a href="?deactivate={$u.userid}">Deactivate</a>
|
||||
{elseif $u.usr_status == ToActivate}
|
||||
<a href="?activate={$u.userid}">Activate</a>
|
||||
{/if} |
|
||||
{if $u.ban_status == yes}
|
||||
<a href="?unban={$u.userid}">Unban Member</a>
|
||||
{/if}
|
||||
{if $u.ban_status == no}
|
||||
<a href="?ban={$u.userid}">Ban Member</a>
|
||||
{/if}|
|
||||
{if $u.featured != Yes}
|
||||
<a href="?featured={$u.userid}">Feature Member</a>
|
||||
{/if}
|
||||
{if $u.featured == Yes}
|
||||
<a href="?unfeatured={$u.userid}">Unfeature Member</a>
|
||||
{/if}|
|
||||
<a href="?deleteuser={$u.userid}">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}
|
||||
{/foreach}
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<!-- DIsplaying Videos Ends-->
|
||||
{include file="$style_dir/blocks/pagination.html" }
|
32
upload/admin_area/styles/cbv2/layout/msg.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
|
||||
|
||||
{assign var=msg value=$eh->message_list}
|
||||
{assign var=err value=$eh->error_list}
|
||||
{if $err.0 neq '' || $err.1 neq ''}
|
||||
<table width="98%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td bgcolor="#FFF0FA">
|
||||
<ul>
|
||||
|
||||
{foreach from=$err item=show_msg}
|
||||
<li> {$show_msg} </li>
|
||||
{/foreach}
|
||||
</ul></td>
|
||||
</tr>
|
||||
</table><br>
|
||||
|
||||
{/if}
|
||||
|
||||
{if $msg.0 neq ''}
|
||||
<table width="98%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td bgcolor="#F1F1F1">
|
||||
<ul>
|
||||
|
||||
{foreach from=$msg item=show_msg}
|
||||
<li> {$show_msg} </li>
|
||||
{/foreach}
|
||||
</ul></td>
|
||||
</tr>
|
||||
</table><br>
|
||||
{/if}
|
69
upload/admin_area/styles/cbv2/layout/plugin_manager.html
Normal file
|
@ -0,0 +1,69 @@
|
|||
<script type="text/javascript" src="{$js}/popup_image.js"></script>
|
||||
|
||||
<div class="setting_title">Installed Plugins</div>
|
||||
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" style="margin-bottom:25px">
|
||||
<tr >
|
||||
<td width="30" height="20" valign="middle" class="tr_head"> #</td>
|
||||
<td valign="middle" class="tr_head">Pluin Details</td>
|
||||
<td width="100" valign="middle" class="tr_head">Actions</td>
|
||||
</tr>
|
||||
{assign var = bgcolor value = ""}
|
||||
{foreach from=$installed_plugin_list item=plug name=item}
|
||||
<tr bgcolor="{$bgcolor}">
|
||||
<td valign="top" class="td_body">{$smarty.foreach.item.iteration}</td>
|
||||
<td valign="top" class="td_body"><strong>{$plug.name} by <em><a href="{$plug.website}">{$plug.author}</a></em></strong><br>
|
||||
{$plug.description} - <em>
|
||||
<a href="{$plug.website}">{$plug.website}</a></em><br>
|
||||
Version : {$plug.version}
|
||||
</td>
|
||||
<td height="100" valign="top" class="td_body">{if $plug.plugin_active == 'yes'}<a href="?deactivate={$plug.plugin_file}{if $plug.folder!=''}&f={$plug.folder}{/if}">Deactivate</a>{else}<a href="?activate={$plug.plugin_file}{if $plug.folder!=''}&f={$plug.folder}{/if}">Activate</a>{/if}<br>
|
||||
<a href="javascript:Confirm_Uninstall('?uninstall={$plug.plugin_file}{if $plug.folder!=''}&f={$plug.folder}{/if}')">Uninstall</a></td>
|
||||
</tr>
|
||||
{if $bgcolor == ""}
|
||||
{assign var = bgcolor value = "#EEEEEE"}
|
||||
{else}
|
||||
{assign var = bgcolor value = ""}
|
||||
{/if}
|
||||
{foreachelse}
|
||||
<tr bgcolor="{$bgcolor}">
|
||||
<td valign="top" class="td_body"> </td>
|
||||
<td align="center" valign="middle" class="td_body">No Installed Plugin Found</td>
|
||||
<td height="100" valign="top" class="td_body"> </td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
{* Listing New Plugins *}
|
||||
<div class="setting_title">Available Plugins </div>
|
||||
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
|
||||
<tr >
|
||||
<td width="30" height="20" valign="middle" class="tr_head"> #</td>
|
||||
<td valign="middle" class="tr_head">Pluin Details</td>
|
||||
<td width="100" valign="middle" class="tr_head">Actions</td>
|
||||
</tr>
|
||||
{assign var = bgcolor value = ""}
|
||||
{foreach from=$new_plugin_list item=plug name=item}
|
||||
<tr bgcolor="{$bgcolor}">
|
||||
<td valign="top" class="td_body">{$smarty.foreach.item.iteration}</td>
|
||||
<td valign="top" class="td_body"><strong>{$plug.name} by <em><a href="{$plug.website}">{$plug.author}</a></em></strong><br>
|
||||
{$plug.description} - <em>
|
||||
<a href="{$plug.website}">{$plug.website}</a></em><br>
|
||||
Version : {$plug.version}
|
||||
</td>
|
||||
<td height="100" valign="top" class="td_body"><a href="?install_plugin={$plug.file}{if $plug.folder!=''}&f={$plug.folder}{/if}">Install Plugin</a></td>
|
||||
</tr>
|
||||
{if $bgcolor == ""}
|
||||
{assign var = bgcolor value = "#EEEEEE"}
|
||||
{else}
|
||||
{assign var = bgcolor value = ""}
|
||||
{/if}
|
||||
{foreachelse}
|
||||
<tr bgcolor="{$bgcolor}">
|
||||
<td valign="top" class="td_body"> </td>
|
||||
<td align="center" valign="middle" class="td_body">No New Plugin Found</td>
|
||||
<td height="100" valign="top" class="td_body"> </td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
39
upload/admin_area/styles/cbv2/layout/templates.html
Normal file
|
@ -0,0 +1,39 @@
|
|||
<div class="setting_title">Selected Template</div>
|
||||
<div>
|
||||
{assign var="selected" value=$Cbucket->configs.template_dir}
|
||||
{assign var="curtpl" value=$cbtpl->get_template_details($selected)}
|
||||
<table width="800" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="190"><img src="{$cbtpl->get_preview_thumb($curtpl.dir)}" ></td>
|
||||
<td valign="top"><h2 style="display:inline">{$curtpl.name}</h2> — <em><a href="{$curtpl.website.link}"><strong>{$curtpl.author}</strong></a></em><br />
|
||||
{$curtpl.description}<br />
|
||||
Version : {$curtpl.version} Released on {$curtpl.released|date_format}<br />
|
||||
Website : <a href="{$curtpl.website.link}">{$curtpl.website.title}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<hr size="1" noshade />
|
||||
|
||||
<div class="setting_title">Available Templates</div>
|
||||
|
||||
{* Listing All Avilable Templates *}
|
||||
|
||||
{assign var='templates' value=$cbtpl->get_templates()}
|
||||
|
||||
<div class="templates_container">
|
||||
{foreach from=$templates item=template}
|
||||
{if $selected != $template.dir}
|
||||
<div class="template_box" align="center">
|
||||
<img src="{$cbtpl->get_preview_thumb($template.dir)}" >
|
||||
<div align="center" style="" class="tpl_title">
|
||||
{$template.name} <br /><em>by <strong>{$template.author}</strong></em><br />
|
||||
<a href="templates.php?change={$template.dir}">Activate This Template</a><br />
|
||||
<a href="{$baseurl}?template={$template.dir}" target="_blank">Preview</a><br />
|
||||
<a href="{$baseurl}?template={$template.dir}&set_template=yes" target="_blank">Preview & Activate</a></div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
33
upload/admin_area/styles/cbv2/layout/upload_thumbs.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
{if $data.title neq ""}
|
||||
<h2>Manage Video Thumbs</h2>
|
||||
<form action="upload_thumbs.php?video={$data.videoid}" method="post" enctype="multipart/form-data" name="form1">
|
||||
<a href="edit_video.php?video={$data.videoid}">« Back to Edit Details</a> | <a href="upload_thumbs.php?video={$data.videoid}&gen_more=true">Regenerate Thumbs</a><br />
|
||||
<fieldset class="fieldset">
|
||||
{assign var=vidthumbs value=func->get_thumb($data,1,TRUE)}
|
||||
|
||||
{foreach from=$vidthumbs item=vid_thumb}
|
||||
<div style="width:140px; float:left" align="center">
|
||||
<label for="{$vid_thumb|getname}"><img src="{$vid_thumb}" border="1" style="margin:4px" /><br />
|
||||
<input type="radio" value="{$vid_thumb|getname}.{$vid_thumb|getext}" id="{$vid_thumb|getname}" name="default_thumb" {if $data.default_thumb==$vid_thumb|get_thumb_num} checked="checked"{/if} />Default</label><br />
|
||||
{if $vid_thumb|getname!='processing'}
|
||||
<a href="?video={$data.videoid}&delete={$vid_thumb|getname}.{$vid_thumb|getext}">Delete</a>
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
<div style="clear:both;"></div><br />
|
||||
</fieldset>
|
||||
<div align="left" style=" width:98%; margin:auto; margin-top:10px;">
|
||||
<input type="submit" name="update_default_thumb" value="Update Video Thumb" class="button"/>
|
||||
</div>
|
||||
</form><form action="upload_thumbs.php?video={$data.videoid}" method="post" enctype="multipart/form-data" name="form1">
|
||||
<h2>Upload New Thumb</h2>
|
||||
<div align="right" style="width:500px;"><a href="javascript:void(0)" onclick="$('#thumb_fileds').append('<input name=\'vid_thumb[]\' type=\'file\' /><br>')">+ Insert More</a></div>
|
||||
<div id="thumb_fileds">
|
||||
<input name="vid_thumb[]" type="file" />
|
||||
<label for="thumb_file"></label>
|
||||
<br />
|
||||
</div><br />
|
||||
|
||||
<input type="submit" name="upload_thumbs" value="Upload Thumb(s)" class="button"/>
|
||||
</form>
|
||||
{/if}
|
155
upload/admin_area/styles/cbv2/layout/user_category.html
Normal file
|
@ -0,0 +1,155 @@
|
|||
<link href="../theme/stylesheet.css" rel="stylesheet" type="text/css" />
|
||||
<span class="page_title">User 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 User Categories</td>
|
||||
<td class="head"> </td>
|
||||
<td width="100" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
{if $edit_category != "show"}
|
||||
<form action="user_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 />
|
||||
|
170
upload/admin_area/styles/cbv2/layout/user_levels.html
Normal file
|
@ -0,0 +1,170 @@
|
|||
<link href="../theme/stylesheet.css" rel="stylesheet" type="text/css">
|
||||
<h2>User Levels</h2>
|
||||
{if $view=='view'}
|
||||
|
||||
<a href="?mode=add">Add New Level</a>
|
||||
|
||||
<table width="99%" border="0" cellspacing="2" cellpadding="2">
|
||||
<tr class="tr_head">
|
||||
<td width="20">ID</td>
|
||||
<td width="200">Name</td>
|
||||
<td width="50">Active</td>
|
||||
<td width="50">Users</td>
|
||||
<td>Actions</td>
|
||||
</tr>
|
||||
{assign var=levels value=$userquery->get_levels()}
|
||||
{section name=l loop=$levels}
|
||||
<tr class="td_body">
|
||||
<td>{$levels[l].user_level_id}</td>
|
||||
<td>{$levels[l].user_level_name}</td>
|
||||
<td>{$levels[l].user_level_active}</td>
|
||||
<td>{$userquery->get_level_users($levels[l].user_level_id,true)}</td>
|
||||
<td><a href="?mode=edit&lid={$levels[l].user_level_id}">Edit</a>{if $levels[l].user_level_is_default !=yes} | <a href="?action=delete&lid={$levels[l].user_level_id}">Remove</a>{/if}</td>
|
||||
</tr>
|
||||
{sectionelse}
|
||||
<tr class="td_body">
|
||||
<td colspan="5" align="center">No Levels Were Found</td>
|
||||
</tr>
|
||||
{/section}
|
||||
</table>
|
||||
|
||||
{elseif $view=='edit'}
|
||||
|
||||
<form action="" method="post">
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="30" class="left_head"> </td>
|
||||
<td align="left" class="head">Edit Level Permissions</td>
|
||||
<td width="30" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" align="center" >
|
||||
<tr bgcolor="{$bgcolor}" class="item_listing">
|
||||
<td style="padding:5px 0px 5px 10px"><strong>Level Name</strong></td>
|
||||
<td style="padding:5px 0px 5px 10px" width="250"><span class="tips">
|
||||
<input name="level_name" type="text" id="level_name2" value="{$level_details.user_level_name|form_val}" />
|
||||
</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
{assign var='types' value=$userquery->get_level_types()}
|
||||
{section name=t loop=$types}
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="30" class="left_head"> </td>
|
||||
<td align="left" class="head">{$types[t].user_permission_type_name}</td>
|
||||
<td width="30" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
{assign var=perms value=$userquery->get_permissions($types[t].user_permission_type_id)}
|
||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" align="center" >
|
||||
{assign var = bgcolor value = ""}
|
||||
{foreach from=$perms item=perm}
|
||||
{if $perm.permission_id !=""}
|
||||
|
||||
|
||||
<tr bgcolor="{$bgcolor}" class="item_listing">
|
||||
<td style="padding:5px 0px 5px 10px"><strong>{$perm.permission_name}</strong><br />
|
||||
<em>{$perm.permission_desc}</em></td>
|
||||
<td style="padding:5px 0px 5px 10px" width="250">
|
||||
{assign var="perm_code" value=$perm.permission_code}
|
||||
<label>
|
||||
<input type="radio" name="{$perm.permission_code}" value="yes" id="{$perm.permission_id}_yes" {if $level_perms.$perm_code=='yes'} checked="checked"{/if}/>
|
||||
Yes</label>
|
||||
<label>
|
||||
<input type="radio" name="{$perm.permission_code}" value="no" id="{$perm.permission_id}_no" {if $level_perms.$perm_code==no} checked="checked"{/if}/>
|
||||
No</label>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr><td><div style="width:100%; margin:auto" align="center"><em>No Permission Found</em></div></td></tr>
|
||||
{/if}
|
||||
|
||||
{if $bgcolor == ""}
|
||||
{assign var = bgcolor value = "#EEEEEE"}
|
||||
{else}
|
||||
{assign var = bgcolor value = ""}
|
||||
{/if}
|
||||
|
||||
{foreachelse}
|
||||
<tr><td><div style="width:100%; margin:auto" align="center"><em>No Permission Found</em></div></td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
{/section}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<table width="99%" border="0" cellspacing="2" cellpadding="2">
|
||||
<tr>
|
||||
<td><label for="button"></label>
|
||||
<input type="submit" name="update_level_perms" id="button" value="Update" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{elseif $view=='add'}
|
||||
<form action="" method="post">
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="30" class="left_head"> </td>
|
||||
<td align="left" class="head">User Level Details</td>
|
||||
<td width="30" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" align="center" >
|
||||
<tr bgcolor="{$bgcolor}" class="item_listing">
|
||||
<td style="padding:5px 0px 5px 10px"><strong>Level Name</strong></td>
|
||||
<td style="padding:5px 0px 5px 10px" width="250"><span class="tips">
|
||||
<input name="level_name" type="text" id="level_name2" value="{$smarty.post.level_name|form_val}" />
|
||||
</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
{assign var='types' value=$userquery->get_level_types()}
|
||||
{section name=t loop=$types}
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="30" class="left_head"> </td>
|
||||
<td align="left" class="head">{$types[t].user_permission_type_name}</td>
|
||||
<td width="30" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
{assign var=perms value=$userquery->get_permissions($types[t].user_permission_type_id)}
|
||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" align="center" >
|
||||
{assign var = bgcolor value = ""}
|
||||
{foreach from=$perms item=perm}
|
||||
{if $perm.permission_id !=""}
|
||||
|
||||
|
||||
<tr bgcolor="{$bgcolor}" class="item_listing">
|
||||
<td style="padding:5px 0px 5px 10px"><strong>{$perm.permission_name}</strong><br />
|
||||
<em>{$perm.permission_desc}</em></td>
|
||||
<td style="padding:5px 0px 5px 10px" width="250">
|
||||
<label><input type="radio" name="{$perm.permission_code}" value="yes" id="{$perm.permission_id}_yes" />Yes</label>
|
||||
<label><input type="radio" name="{$perm.permission_code}" value="no" id="{$perm.permission_id}_no" />No</label>
|
||||
</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr><td><div style="width:100%; margin:auto" align="center"><em>No Permission Found</em></div></td></tr>
|
||||
{/if}
|
||||
|
||||
{if $bgcolor == ""}
|
||||
{assign var = bgcolor value = "#EEEEEE"}
|
||||
{else}
|
||||
{assign var = bgcolor value = ""}
|
||||
{/if}
|
||||
|
||||
{foreachelse}
|
||||
<tr><td><div style="width:100%; margin:auto" align="center"><em>No Permission Found</em></div></td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
{/section}
|
||||
<input type="submit" name="add_new_level" id="button" value="Add Level" />
|
||||
</form>
|
||||
{/if}
|
164
upload/admin_area/styles/cbv2/layout/video_manager.html
Normal file
|
@ -0,0 +1,164 @@
|
|||
|
||||
<span class="page_title">Video Manager</span>
|
||||
|
||||
|
||||
<div class="search_box"> <form id="video_search" name="video_search" method="get" action="video_manager.php" class="video_search">
|
||||
<table width="400" border="0" cellpadding="2" cellspacing="2">
|
||||
<tr>
|
||||
<td width="106" align="right"><label for="title">Video title</label></td>
|
||||
<td width="280"><input name="title" type="text" class="input" id="title" value="{'title'|get_form_val:true}" //></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><label for="videokey">Video key</label></td>
|
||||
<td><input name="videokey" type="text" class="input" id="videokey" value="{'videokey'|get_form_val:true}" //></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><label for="videoid">Video id</label></td>
|
||||
<td><input name="videoid" type="text" class="input" id="videoid" value="{'videoid'|get_form_val:true}" //></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><label for="tags">Video tags</label></td>
|
||||
<td><input name="tags" type="text" class="input" id="tags" value="{'tags'|get_form_val:true}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">Featured</td>
|
||||
<td><label for="featured"></label>
|
||||
<select name="featured" id="featured" class="input">
|
||||
<option value="" ></option>
|
||||
<option value="yes" {if $smarty.get.featured=='yes'} selected="selected"{/if}>Yes</option>
|
||||
<option value="no" {if $smarty.get.featured=='no'} selected="selected"{/if}>No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">Active</td>
|
||||
<td><select name="active" id="active" class="input">
|
||||
<option value="" ></option>
|
||||
<option value="yes" {if $smarty.get.active=='yes'} selected="selected"{/if}>Yes</option>
|
||||
<option value="no" {if $smarty.get.active=='no'} selected="selected"{/if}>No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">Conversion Status</td>
|
||||
<td><select name="status" id="status" class="input">
|
||||
<option value="" ></option>
|
||||
<option value="Successful" {if $smarty.get.status=='Successful'} selected="selected"{/if}>Successful</option>
|
||||
<option value="Processing" {if $smarty.get.status=='Processing'} selected="selected"{/if}>Processing</option>
|
||||
<option value="Failed" {if $smarty.get.status=='Failed'} selected="selected"{/if}>Failed</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">Userid</td>
|
||||
<td><input name="userid" type="text" class="input" id="userid" value="{'userid'|get_form_val:true}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" valign="top">Category</td>
|
||||
<td>{$cat_array.hint_1}<br />
|
||||
{ANCHOR place=$cat_array.anchor_before}{$formObj->createField($cat_array)}
|
||||
{$cat_array.hint_2}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<input type="submit" name="search" id="search" value="Search Form" class="button"/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- DIsplaying Videos -->
|
||||
<form name="video_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">VID</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=list loop=$videos}
|
||||
<tr class="video_opt_td" bgcolor="{$bgcolor}">
|
||||
<td width="30" align="center" valign="top" class="video_opt_td"> <input name="check_video[]" type="checkbox" id="check_video" value="{$videos[list].videoid}" /></td>
|
||||
<td width="50" align="center" valign="top" class="video_opt_td">{$videos[list].videoid}</td>
|
||||
<td valign="top" class="video_opt_td"
|
||||
onmouseover="$('#vid_opt-{$videos[list].videoid}').show()"
|
||||
onmouseout="$('#vid_opt-{$videos[list].videoid}').hide()" >
|
||||
<a href="{$baseurl}/watch_video.php?v={$videos[list].videokey}" target="_blank" style="text-indent:10px">
|
||||
{$videos[list].title}
|
||||
</a> —
|
||||
<span class="vdo_sets">
|
||||
Featured:<strong>{$videos[list].featured} </strong> •
|
||||
Active:<strong>{$videos[list].active}</strong> •
|
||||
Status:<strong>{$videos[list].status}</strong>
|
||||
</span>
|
||||
|
||||
<br />
|
||||
<div id="vid_opt-{$videos[list].videoid}" style="display:none" class="vid_opts">
|
||||
|
||||
<a href="view_video.php?video={$videos[list].videoid}">View</a> |
|
||||
<a href="edit_video.php?video={$videos[list].videoid}">Edit</a> {if $videos[list].featured == yes} |
|
||||
<a href="javascript:Confirm_Delete('?delete_video={$videos[list].videoid}')">Delete</a> |
|
||||
<a href="?make_unfeature={$videos[list].videoid}">Make Unfeatured</a> {/if}
|
||||
{if $videos[list].featured == no} |
|
||||
<a href="?make_feature={$videos[list].videoid}">Make Featured</a> {/if}
|
||||
{if $videos[list].active == yes} |
|
||||
<a href="?deactivate={$videos[list].videoid}">Deactivate</a> {else} |
|
||||
<a href="?activate={$videos[list].videoid}">Activate</a> {/if} |
|
||||
<a href="view_conversion_log.php?file_name={$videos[list].file_name}">File conversion details</a> |
|
||||
<a href="?delete_video={$videos[list].videoid}">Delete</a>
|
||||
{foreach from=$cbvid->video_manager_links item=links}
|
||||
{$cbvid->video_manager_link($links,$videos[list])}
|
||||
{/foreach}
|
||||
</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>
|
||||
|
||||
<!-- DIsplaying Videos Ends-->
|
||||
{include file="$style_dir/blocks/pagination.html" }
|
|
@ -0,0 +1,40 @@
|
|||
{if $data.File}
|
||||
<div style="width:99%; margin:auto; margin-bottom:15px">
|
||||
<span class="page_title">Conversion Log For File "{$data.File}"</span>
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="50" class="right_head"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="800" border="0" cellspacing="0" cellpadding="0" class="block">
|
||||
|
||||
{foreach from=$data item=value key=field}
|
||||
{if $field !='conversion_log' }
|
||||
<tr>
|
||||
<td width="166"> {$field}</td>
|
||||
<td width="634">{$value}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="10" class="left_head"></td>
|
||||
<td class="head">Conversion log for <span class="tr_head">"{$data.src_name}</span>"</td>
|
||||
<td width="50" class="right_head"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id='Container'>
|
||||
<div style="overflow:auto; border:1px solid #EAEAEA; padding:2px">
|
||||
<div style="background-color:#F3F3F3; border:none; width:100%; min-height:300px;">{$data.conversion_log|nl2br}</div>
|
||||
</div></div>
|
||||
|
||||
</div>
|
||||
{else} <em style="margin-left:10px">File does not exist</em>
|
||||
{/if}
|
318
upload/admin_area/styles/cbv2/layout/view_user.html
Normal file
|
@ -0,0 +1,318 @@
|
|||
<span class="page_title">Edit User</span>
|
||||
{assign var="user_fields" value=$userquery->load_profile_fields($p)}
|
||||
{assign var="signup_fields" value=$userquery->load_signup_fields($u)}
|
||||
{assign var="user_custom_profile_fields" value=$userquery->load_custom_profile_fields($p)}
|
||||
{assign var="user_custom_signup_fields" value=$userquery->load_custom_signup_fields($p)}
|
||||
|
||||
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
|
||||
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" >
|
||||
<tr>
|
||||
<td><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="15" align="center" valign="middle" class="left_head"> </td>
|
||||
<td class="head">User Info</td>
|
||||
<td width="50" class="right_head"> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="15" align="center" valign="middle" class="left_head"> </td>
|
||||
<td class="head">User Stats</td>
|
||||
<td width="50" class="right_head"> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%" valign="top">
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>ClipBucket User Info</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200"><strong>User Id</strong></td>
|
||||
<td>
|
||||
<input disabled="disabled" name="uid" type="text" id="uid" value="{$u.userid}" />
|
||||
<input name="userid" type="hidden" id="userid" value="{$u.userid}" size="45" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200"><strong>User name</strong></td>
|
||||
<td>
|
||||
<input name="username" type="text" id="username" value="{$u.username}" />
|
||||
<input name="dusername" type="hidden" id="dusername" value="{$u.username}" />
|
||||
<input name="admin_manager" type="hidden" value="yes" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200"><strong>Email</strong></td>
|
||||
<td><input name="email" type="text" id="email" value="{$u.email}" /><input name="demail" type="hidden" id="demail" value="{$u.email}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>User Level</strong></td>
|
||||
<td><label for="level"></label>
|
||||
<select name="level" id="level">
|
||||
{assign var=levels value=$userquery->get_levels()}
|
||||
{foreach from=$levels item=level}
|
||||
<option value="{$level.user_level_id}" {if $u.level==$level.user_level_id} selected="selected"{/if}>{$level.user_level_name}</option>
|
||||
{/foreach}
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Country</strong></td>
|
||||
<td>
|
||||
<select name="country" id="country">
|
||||
{assign var='countries' value=$Cbucket->get_countries(iso2)}
|
||||
{foreach from=$countries item=country key=code}
|
||||
<option value="{$code}" {if $u.country==$code} selected="selected"{/if}>{$country}</option>
|
||||
{/foreach}
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Gender</strong></td>
|
||||
<td>
|
||||
<label>
|
||||
<input type="radio" name="sex" value="male" id="sex_0" {if $u.sex == male} checked="checked"{/if} />
|
||||
Male</label>
|
||||
|
||||
<label>
|
||||
<input type="radio" name="sex" value="female" id="sex_1" {if $u.sex == female} checked="checked"{/if}/>
|
||||
Female</label>
|
||||
|
||||
</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Category</td>
|
||||
<td>{ANCHOR place=$signup_fields.cat.anchor_before}{$formObj->createField($signup_fields.cat)}{ANCHOR place=$signup_fields.cat.anchor_after}</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>Profile Details</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
{foreach from=$user_fields item=field}
|
||||
<tr>
|
||||
<td width="200"><strong>{$field.title}</strong></td>
|
||||
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
<br>
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>User Custom Signup Fields</legend>
|
||||
{if $user_custom_signup_fields}
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
|
||||
{foreach from=$user_custom_signup_fields item=field}
|
||||
<tr>
|
||||
<td width="200"><strong>{$field.title}</strong></td>
|
||||
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}</td>
|
||||
<br>
|
||||
{$field.hint_2}
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
{else}<div align="center"><em>No custom field found</em></div>{/if}
|
||||
</fieldset>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
<td width="50%" align="left" valign="top"><fieldset class="fieldset">
|
||||
<legend>User Activity</legend>
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200"><strong>Date of birth</strong></td>
|
||||
<td>{$u.dob}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Joined - IP</strong></td>
|
||||
<td>{$u.doj|date_format} - {$u.signup_ip}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Last Login - Login IP</strong></td>
|
||||
<td>{$u.last_logged} - {$u.ip}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Last Active - Online </strong></td>
|
||||
<td>{$u.last_active} - {$u.last_active|is_online}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Profile Views</strong></td>
|
||||
<td><label for="profile_hits"></label>
|
||||
<input name="profile_hits" type="text" id="profile_hits" value="{$u.profile_hits}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Videos Watched</strong></td>
|
||||
<td><input name="total_watched" type="text" id="total_watched" value="{$u.total_watched}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Videos Uploaded</strong></td>
|
||||
<td><input name="total_videos" type="text" id="total_watched2" value="{$u.total_videos}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Total Profile Comments</strong></td>
|
||||
<td><input name="total_comments" type="text" id="total_watched3" value="{$u.total_comments}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Profile Rating</strong></td>
|
||||
<td><input name="rating" type="text" id="total_watched4" value="{$u.rating}" />
|
||||
0-10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Profile Rated by</strong></td>
|
||||
<td><input name="rated_by" type="text" id="total_watched5" value="{$u.rated_by}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Subscribers</strong></td>
|
||||
<td><input name="subscribers" type="text" id="total_watched6" value="{$u.subscribers}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset><fieldset class="fieldset">
|
||||
<legend>Recent Activity Log</legend>
|
||||
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="40" align="center" valign="middle" class="left_head">ID</td>
|
||||
<td width="50" class="head_sep_left">UID</td>
|
||||
<td width="100" class="head"><div class="head_sep_left" style="width:100px">Username</div></td>
|
||||
<td width="100" class="head"><div class="head_sep_left" style="width:100px">Date</div></td>
|
||||
<td class="head"><div class="head_sep_left" style="width:100px">Detail</div></td>
|
||||
<td width="10" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
{assign var="logs" value=$userquery->get_user_action_log($u.userid,10)}
|
||||
{section loop=$logs name=log}
|
||||
|
||||
<tr>
|
||||
<td width="40" align="center" valign="middle" class="">{$logs[log].action_id}</td>
|
||||
<td width="50" class="" style="padding-left:10px">{$logs[log].action_userid}</td>
|
||||
<td width="100" class=""><div class="" style="width:100px">{$logs[log].action_username}</div></td>
|
||||
<td width="100" class=""><div class="" style="width:100px">{$logs[log].date_added}</div></td>
|
||||
<td class=""><div class="">Type : {$logs[log].action_type} –{if $logs[log].action_details!=''}{$logs[log].action_details} –{/if} Success : {$logs[log].action_success} – {$logs[log].action_ip}</div></td>
|
||||
</tr>
|
||||
{sectionelse}
|
||||
<!--<tr><td><em>No user action log found</em></td></tr>-->
|
||||
{/section}
|
||||
</table>
|
||||
|
||||
</fieldset><fieldset class="fieldset">
|
||||
<legend>User Avatar and Background</legend><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="100" align="center" valign="top"><img src="{$userquery->getUserThumb($u)}" class="mid_user_thumb" style="max-width:95px"/></td>
|
||||
<td valign="top"><strong>User Avatar/Profile Pic</strong><br />
|
||||
Please select image file<br />
|
||||
<label for="avatar_file"></label>
|
||||
<input type="file" name="avatar_file" id="avatar_file" />
|
||||
OR<br />
|
||||
Please Enter Image URL<br />
|
||||
<label for="avatar_url"></label>
|
||||
<input name="avatar_url" type="text" id="avatar_url" value="{$u.avatar_url}" />
|
||||
<br />
|
||||
<input name="delete_avatar" type="checkbox" id="delete_avatar" value="yes" />
|
||||
<label for="delete_avatar">Delete This Image - (if user has profile pic)</label>
|
||||
<input type="hidden" name="avatar_file_name" value="{$u.avatar}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="border-bottom:1px solid #CCC"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="125" align="center" valign="top">{if $userquery->getUserBg($u)}<img src="{$userquery->getUserBg($u)}" style="max-width:95px"/>{else}No Bg{/if}</td>
|
||||
<td valign="top"><strong>User Background Image
|
||||
</strong><br />
|
||||
Please Select Image File
|
||||
<br />
|
||||
<input type="file" name="background_file" id="background_file" />
|
||||
OR<br />
|
||||
Please Enter Image URL<br />
|
||||
<label for="avatar_url"></label>
|
||||
<input name="background_url" type="text" id="background_url" value="{$u.background_url}" />
|
||||
OR<br />
|
||||
Please Enter Background Color<br />
|
||||
<input name="background_color" type="text" id="background_color" value="{$u.background_color}" />
|
||||
|
||||
<input type="hidden" name="bg_file_name" value="{$u.background}" />
|
||||
<br />
|
||||
Background Repeat Type (if using image as a background)<br />
|
||||
<label for="background_repeat"></label>
|
||||
<select name="background_repeat" id="background_repeat" >
|
||||
<option value="repeat" {if $u.background_repeat=='repeat'} selected="selected"{/if}>repeat</option>
|
||||
<option value="repeat-x" {if $u.background_repeat=='repeat-x'} selected="selected"{/if}>repeat-x</option>
|
||||
<option value="repeat-y" {if $u.background_repeat=='repeat-y'} selected="selected"{/if}>repeat-y</option>
|
||||
<option value="no-repeat" {if $u.background_repeat=='no-repeat'} selected="selected"{/if}>no-repeat</option>
|
||||
</select>
|
||||
<br />
|
||||
|
||||
{if $userquery->getUserBg($u)}<input name="delete_bg" type="checkbox" id="delete_bg" value="yes" /><label for="delete_bg">Delete This Image</label>{/if}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<legend>User Custom Profile Fields</legend> {if $user_custom_profile_fields}
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||
|
||||
{foreach from=$user_custom_profile_fields item=field}
|
||||
<tr>
|
||||
<td width="200"><strong>{$field.title}</strong></td>
|
||||
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}</td>
|
||||
<br>
|
||||
{$field.hint_2}
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>{else}<div align="center"><em>No custom field found</em></div>{/if}
|
||||
</fieldset>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="update_user"></label>
|
||||
<input type="submit" name="update_user" id="update_user" value="Submit" /></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<br />
|
||||
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="2" class="head_title">Profile Comments</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center">{assign var=id value=$u.userid}{include file="$style_dir/blocks/comments.html" type=pr id=$u.userid link="uid=$id"}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
|
||||
</form>
|
199
upload/admin_area/styles/cbv2/layout/view_video.html
Normal file
|
@ -0,0 +1,199 @@
|
|||
{assign var='requiredFields' value=$Upload->loadRequiredFields($data)}
|
||||
{assign var='optionFields' value=$Upload->loadOptionFields($data)}
|
||||
{assign var='locationFields' value=$Upload->loadLocationFields($data)}
|
||||
|
||||
{assign var='custom_fields' value=$Upload->load_custom_upload_fields($data,TRUE)}
|
||||
{assign var='custom_form_fields' value=$Upload->load_custom_form_fields($data,TRUE)}
|
||||
|
||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="200" align="left" class="left_head" style="text-indent:10px">Viewing {$data.title}</td>
|
||||
<td class="head"> </td>
|
||||
<td width="200" align="right" class="right_head"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<div style="width:98%; margin:auto; padding:10px">
|
||||
<input type="button" onClick="window.open('{videoLink vdetails=$data}')" class="button" value="Watch this video" />
|
||||
<input type="button" onClick="location.href='edit_video.php?video={$data.videoid}'" class="button" value="Edit this video" />
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1">
|
||||
<tr>
|
||||
<td width="40%"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="block">
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="head_title">Information</td>
|
||||
</tr>
|
||||
{foreach from=$requiredFields item=field}
|
||||
<tr>
|
||||
<td>{$field.title}</td>
|
||||
<td>{ANCHOR place=$field.anchor_before}{input_value input=$field}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="head_title">Important Details and Files information</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Video Id</td>
|
||||
<td>{$data.videoid}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Video Key</td>
|
||||
<td>{$data.videokey}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>File Name</td>
|
||||
<td>{$data.file_name}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Video Files</td>
|
||||
<td>{get_all_video_files vdetails=$data count_only=true}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Thumb Files </td>
|
||||
<td>{get_thumb vdetails=$data count_only=true}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>{assign var=vidthumbs value=func->get_thumb($data,1,TRUE)}
|
||||
|
||||
{foreach from=$vidthumbs item=vid_thumb}
|
||||
<div style="width:60px; float:left" align="center">
|
||||
<img src="{$vid_thumb}" width="50" height="50" border="1" style="margin:4px" /><br />
|
||||
{if $data.default_thumb==$vid_thumb|get_thumb_num}Default{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="25" colspan="2" align="center"><a href="view_conversion_log.php?file_name={$data.file_name}"><strong>View File Details and Converion Log</strong></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="head_title">Sharing Options</td>
|
||||
</tr>
|
||||
{foreach from=$optionFields item=field}
|
||||
<tr>
|
||||
<td>{$field.title}</td>
|
||||
<td>{ANCHOR place=$field.anchor_before}{input_value input=$field}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="21" colspan="2" class="head_title">Stats</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Views</td>
|
||||
<td>{$data.views}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Rating</td>
|
||||
<td>{$data.rating}
|
||||
of 10 </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RatedBy</td>
|
||||
<td>{$data.rated_by}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Duration</td>
|
||||
<td>{$data.duration|SetTime}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" class="head_title">Custom Upload Options</td>
|
||||
</tr>
|
||||
|
||||
{foreach from=$custom_fields item=field}
|
||||
<tr>
|
||||
|
||||
<td>{$field.title}</td>
|
||||
<td>{$field.value|form_val}</td>
|
||||
</tr>
|
||||
{foreachelse}
|
||||
<tr>
|
||||
|
||||
<td colspan="2" align="center">No Custom Fields</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="head_title">Custom Form Fields</td>
|
||||
</tr>
|
||||
{foreach from=$custom_form_fields item=field}
|
||||
<tr>
|
||||
|
||||
<td>{$field.title}</td>
|
||||
<td>{$field.value|form_val}</td>
|
||||
</tr>
|
||||
{foreachelse}
|
||||
<tr>
|
||||
|
||||
<td colspan="2" align="center">No Custom Fields</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="head_title">User Information</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>User id</td>
|
||||
<td>{$udata.userid}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>User name</td>
|
||||
<td>{$udata.username}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Videos Uploaded</td>
|
||||
<td>{$userquery->get_user_vids($data.userid,'',true)}</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td width="60%" align="center" valign="top"><div id="{$player_div_id}">
|
||||
This content requires JavaScript and Macromedia Flash Player 7 or higher. <a href=http://www.macromedia.com/go/getflash/>Get Flash</a><br/><br/>
|
||||
</div>
|
||||
<script language="javascript">
|
||||
{FlashPlayer vdetails = $videos}
|
||||
</script></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="head_title">Video Comments</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center">{assign var=id value=$data.videoid}{include file="$style_dir/blocks/comments.html" type=v id=$data.videoid link="video=$id"}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
36
upload/admin_area/styles/cbv2/theme/cbtab.css
Normal file
|
@ -0,0 +1,36 @@
|
|||
@charset "utf-8";
|
||||
/* CSS Document */
|
||||
|
||||
|
||||
.cbtab{margin:0px; padding:0px}
|
||||
|
||||
.cbtab li
|
||||
{
|
||||
list-style-type:none;
|
||||
padding:0px 10px;
|
||||
background-color:#009;
|
||||
margin:2px; background-image:url(../images/bgs/round_bg.png);
|
||||
background-position:0px -52px; height:26px; line-height:26px;
|
||||
font-size:12px; color:#FFF;
|
||||
font-weight:bold;
|
||||
-moz-border-radius-topleft:5px;
|
||||
-webkit-border-top-left-radius:5px;
|
||||
-moz-border-radius-topright:5px;
|
||||
-webkit-border-top-right-radius:5px;
|
||||
border:2px #d2d2d2 solid;
|
||||
border-bottom:none;
|
||||
cursor:pointer;
|
||||
float:left;
|
||||
margin-bottom:0px;
|
||||
}
|
||||
|
||||
.cbtab .selected{background:#333}
|
||||
|
||||
.main_page_div{min-height:200px; border:1px solid #d2d2d2; width:95%; margin-left:2px; padding:5px;
|
||||
-moz-border-radius-bottomleft:5px;
|
||||
-webkit-border-bottom-left-radius:5px;
|
||||
-moz-border-radius-bottomright:5px;
|
||||
-webkit-border-bottom-right-radius:5px;
|
||||
-moz-border-radius-topright:5px;
|
||||
-webkit-border-top-right-radius:5px;
|
||||
}
|
157
upload/admin_area/styles/cbv2/theme/main.css
Normal file
|
@ -0,0 +1,157 @@
|
|||
@charset "utf-8";
|
||||
/* CSS Document */
|
||||
|
||||
@import url("pagination.css");
|
||||
@import url("cbtab.css");
|
||||
|
||||
body,html {background-color:#fff; margin:0px; padding:0px; font-family:Tahoma; color:#333; font-size:11px;}
|
||||
|
||||
/* CLEARS */
|
||||
.clearfix { }
|
||||
.clearfix:after{ content: "."; display:block; height:0; font-size:0; clear:both; visibility:visible; }
|
||||
|
||||
/* GENERAL CSS */
|
||||
a{ color:#0066cc; 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; }
|
||||
|
||||
|
||||
.footer_grey_bar,.header_grey_bar{background-image:url(../images/gradients.png); background-repeat:repeat-x; height:40px; line-height:40px}
|
||||
.header_grey_bar{ color:#fff;font-size: 20px;font-family:"Century Gothic"}
|
||||
.cbicon{background-image:url(../images/icons.png); width:50px; height:28px; background-repeat:no-repeat; margin:6px 10px 0px 10px; float:left}
|
||||
.header_grey_bar .welcome{font-size:15px; padding-right:10px}
|
||||
.header_grey_bar .logout_button{background-image:url(../images/icons.png); background-position:-50px 0px; height:25px; width:25px; float:right;margin:6px 5px 0px 5px; }
|
||||
|
||||
.header_menu{background:url(../images/gradients.png)0px -41px repeat-x; height:33px; border:1px solid #000; border-left:none; border-right:none}
|
||||
.header_menu_after{background:url(../images/gradients.png)0px -74px repeat-x;height:13px;}
|
||||
|
||||
.header_menu a{text-decoration:none; color:#fff}
|
||||
.header_menu ul{list-style:none; margin:0px; padding:0px;}
|
||||
.header_menu ul li{list-style:none; float:left; width:100px; text-align:center; line-height:31px; color:#fff; border-right:#1577ba solid 1px;border-left:#43a1e1 solid 1px; margin-top:1px}
|
||||
.header_menu ul li:hover{background-color:#148ada}
|
||||
.header_menu ul li:first-child{border-left:none}
|
||||
|
||||
.footer_grey_bar{ color:#fff; font:14px/40px Century Gothic; padding-right:10px}
|
||||
|
||||
.toggle_menu{height:30px; line-height:30px; font-size:15px; font-weight:bold; margin:3px; display:inline-block; cursor:pointer}
|
||||
.toggle_menu_icon{background-image:url(../images/icons.png); background-position:0px -29px; height:30px; width:30px; float:left; margin-right:5px}
|
||||
|
||||
|
||||
.admin_heading{border:1px solid #0099cc; padding:3px; font-size:15px; color:#fff; background-color:#0098ff}
|
||||
.admin_box{border:1px solid #0099cc; border-top:0px;}
|
||||
|
||||
.stats .stat{border:0px; border-bottom:1px solid #ccc; padding:2px; background-color:#fafafa}
|
||||
.stats .stat:last-child{border:none; background-color:#f3f3f3}
|
||||
.stats .stat:first-child{background-color:#f3f3f3}
|
||||
.stats .stat span:nth-child(1){float:left;}
|
||||
.stats .stat span:nth-child(2){float:right;}
|
||||
|
||||
.simple_button{background:url(../images/gradients.png) 0px -86px repeat-x; height:17px; line-height:17px; text-align:center; display:inline-block; padding:0px 5px; border:1px solid #ccc; }
|
||||
.simple_button,.simple_button a{color:#555; text-decoration:none; font-size:11px; font-weight:bold}
|
||||
|
||||
|
||||
|
||||
.page_title{font-size:20px; font-weight:bold; color:#333}
|
||||
|
||||
/**
|
||||
* Page Table Tops
|
||||
*/
|
||||
.head_title,.left_head,.head,.right_head,.head_sep_left,.head_sep_right,.left_head a,.head a,.right_head a,.head_sep_left a,.head_sep_right a{line-height:26px; color:#FFF; font-size:12px; font-family:Arial, Helvetica, sans-serif; font-weight:bold}
|
||||
.left_head{background-image:url(../images/bgs/round_bg.png); background-position:0px 0px; height:26px}
|
||||
.head_title,.head{background-image:url(../images/bgs/round_bg.png); background-position:right -52px; height:26px}
|
||||
.right_head{background-image:url(../images/bgs/round_bg.png); background-position:right -26px; height:26px}
|
||||
.head_sep_left{background-image:url(../images/bgs/round_bg.png); background-position:left -130px; height:26px; text-indent:10px;}
|
||||
.head_sep_right{background-image:url(../images/bgs/round_bg.png); background-position:right -156px; height:26px}
|
||||
|
||||
|
||||
.admin_td,.video_opt_td{color:#333; font-size:12px;}
|
||||
.video_opt_td{height:45px; border-bottom:1px solid #ccc; padding-top:5px}
|
||||
.video_opt_td a{font-size:13px; font-weight:bold; color:#0c4469; text-decoration:none}
|
||||
.vid_opts{border:1px solid #ccc; padding:2px; display:inline;-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px; border:0px solid #EAEEFF;} .vdo_sets{font-size:11px; text-transform:uppercase; font-family: Consolas, Monaco, Courier, monospace;}
|
||||
|
||||
|
||||
|
||||
.setting_title{font-size:18px; margin-bottom:5px 0px 5px 0px;}
|
||||
.setting_title a{font-size:18px; }
|
||||
/**
|
||||
* Forms
|
||||
*/
|
||||
.button{background-image:url(../images/button_bg.png); height:22px; color:#FFF; font-weight:bold; border:1px; line-height:22px; -moz-border-radius: 8px;
|
||||
-webkit-border-radius: 8px; border:1px solid #146194; cursor:pointer}
|
||||
|
||||
.button:focus{background-position:-0 -22px}
|
||||
|
||||
.fieldset{-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px; border:2px solid #EAEEFF; width:98%; margin:0px; padding:0px; margin:auto; margin-top:15px}
|
||||
|
||||
.fieldset select,.fieldset input,.fieldset textarea{border:1px solid #CCC; font-size:11px; margin:2px; padding:2px}
|
||||
|
||||
.fieldset .block{margin:5px}
|
||||
.fieldset legend{margin:2px; font-size:13px; font-weight:bold; color:#147dc3}
|
||||
|
||||
|
||||
/**
|
||||
* Forms End
|
||||
*/
|
||||
.block_head tr td{padding:0px 2px 0px 2px}
|
||||
.block tr td{padding:2px; border-bottom:1px dotted #eee; }
|
||||
.block tr:hover{background-color:#f8f8f8}
|
||||
|
||||
.head_title{text-indent:5px; padding:0px}
|
||||
|
||||
.hint{font-size:11px;}
|
||||
|
||||
#login_box{
|
||||
height:250px;
|
||||
width:400px;
|
||||
background-image:url(../images/login.png);
|
||||
background-repeat:no-repeat;
|
||||
margin:auto;
|
||||
background-position:center;
|
||||
padding-top: 150px;
|
||||
}
|
||||
|
||||
#login_box .textfield{
|
||||
height:30px;
|
||||
width: 280px;
|
||||
margin-bottom: 10px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px; border:1px solid #ccc;
|
||||
line-height:30px;
|
||||
padding-left:5px; font-size:16px; font-weight:bold; font-family:Arial, Helvetica, sans-serif; padding-top:5px; color:#6E6E6E
|
||||
}
|
||||
#login_box label{
|
||||
font-size:18px;
|
||||
color: #494949;
|
||||
}
|
||||
|
||||
|
||||
.row_white{border-bottom:1px dotted #646464; width:98%; margin:auto}
|
||||
.row_white:hover{background-color:#F3F3F3}
|
||||
|
||||
|
||||
|
||||
.search_box{margin:5px; padding:5px; border:1px solid #146194; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; background:#eff9ff}
|
||||
|
||||
.video_search .input{border:1px solid #666; width:200px}
|
||||
|
||||
|
||||
.item_listing td{border-bottom:1px solid #ccc}
|
||||
|
||||
.item_listing li{list-style:none}
|
||||
.item_listing a{color:#0c4469; font-family:"Trebuchet MS", Arial, Helvetica, sans-serif; font-style:italic}
|
||||
|
||||
.templates_container
|
||||
{
|
||||
font-size:11px; color:#333;
|
||||
}
|
||||
.templates_container .tpl_title{width:80%; margin:auto; font-size:12px;}
|
||||
.templates_container .template_box{width:200px; float:left; margin:10px; padding:10px}
|
||||
.templates_container .template_box:hover{background-color:#F3E8FF}
|
||||
|
||||
|
||||
.preview_thumb{max-width:175px; max-height:175px}
|
||||
|
||||
.mid_user_thumb{max-width:30px; min-height:30px}
|
17
upload/admin_area/styles/cbv2/theme/pagination.css
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* Css Document */
|
||||
|
||||
.pagination
|
||||
{
|
||||
background-image:url(../images/bgs/pagination_bg.png);
|
||||
background-repeat:repeat-x;
|
||||
height:23px;
|
||||
width:99%;
|
||||
margin:auto;
|
||||
line-height:23px;
|
||||
color:#FFF;font-weight:bold; font-size:12px; font-family:Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
|
||||
.pagination a, .pagination .selected{color:#FFF; font-weight:bold; font-size:13px; font-family:Arial, Helvetica, sans-serif; text-decoration:none; margin:0px 3px 0px 3px; }
|
||||
|
||||
.pagination .selected{color:#FFFF97; text-decoration:underline;}
|
87
upload/admin_area/styles/cbv2/theme/slidemenu.css
Normal file
|
@ -0,0 +1,87 @@
|
|||
.left_menu
|
||||
{
|
||||
width: 230px;
|
||||
padding-left: 5px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.mainDiv
|
||||
{
|
||||
margin-top:5px;
|
||||
width:211px;
|
||||
}
|
||||
|
||||
.topItem,.topItemOver,.topItemClose,.topItemCloseOver
|
||||
{
|
||||
letter-spacing: 0;
|
||||
background-position:center center;
|
||||
background-repeat:no-repeat;
|
||||
border: none;
|
||||
width: 211px;
|
||||
height: 26px;
|
||||
color: #FFFFFF;
|
||||
cursor:pointer;
|
||||
text-indent:10px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
line-height:26px;
|
||||
}
|
||||
.topItem{background: url("../images/bgs/left_menu_head.png") no-repeat 0 -26px;}
|
||||
.topItemOver{background: url("../images/bgs/left_menu_head.png") no-repeat 0 -52px;}
|
||||
|
||||
.topItemClose{background: url("../images/bgs/left_menu_head.png") no-repeat 0 0;}
|
||||
.topItemCloseOver{background: url("../images/bgs/left_menu_head.png") no-repeat 0 -78px;}
|
||||
|
||||
|
||||
|
||||
.dropMenu
|
||||
{
|
||||
font: bold 11px tahoma,verdana,sans-serif;
|
||||
color: #000;
|
||||
filter:alpha(opacity=100);
|
||||
background-position:bottom;
|
||||
background-repeat:no-repeat;
|
||||
padding-bottom:10px;
|
||||
border:1px solid #0066cc;
|
||||
}
|
||||
|
||||
.subMenu
|
||||
{
|
||||
display:block;
|
||||
}
|
||||
|
||||
.subItem,.subItemOver
|
||||
{
|
||||
font: 12px tahoma,verdana,sans-serif;
|
||||
text-decoration:none;
|
||||
color: #215dc6;
|
||||
background-color:#f8f8f8;
|
||||
border-bottom:1px solid #ccc; height:25px;
|
||||
|
||||
}
|
||||
.subItem:nth-child(2n),.subItemOver:nth-child(2n)
|
||||
{
|
||||
background-color:#f3f3f3
|
||||
}
|
||||
|
||||
.subItem a,.subItemOver a
|
||||
{
|
||||
font:bold 11px tahoma,verdana,sans-serif;
|
||||
color:#333;
|
||||
display:block;
|
||||
padding-left:10px;
|
||||
text-decoration:none;
|
||||
font-family:Arial, Helvetica, sans-serif;
|
||||
height:25px; line-height:25px;
|
||||
}
|
||||
.subItem a:hover,.subItemOver a:hover{
|
||||
background-color:#e9f6ff;
|
||||
color:#2b495d;
|
||||
}
|
||||
|
||||
.drop
|
||||
{
|
||||
border-left:1px solid black;
|
||||
border-right:1px solid black;
|
||||
}
|
|
@ -26,13 +26,13 @@ if(isset($_POST['make_featured_selected'])){
|
|||
for($id=0;$id<=RESULTS;$id++){
|
||||
$cbvid->action('feature',$_POST['check_video'][$id]);
|
||||
}
|
||||
e("Selected videos have been set as featured",m);
|
||||
e("Selected videos have been set as featured","m");
|
||||
}
|
||||
if(isset($_POST['make_unfeatured_selected'])){
|
||||
for($id=0;$id<=RESULTS;$id++){
|
||||
$cbvid->action('unfeature',$_POST['check_video'][$id]);
|
||||
}
|
||||
e("Selected videos have been removed from featured list",m);
|
||||
e("Selected videos have been removed from featured list","m");
|
||||
}
|
||||
|
||||
//Activate / Deactivate
|
||||
|
@ -51,13 +51,13 @@ if(isset($_POST['activate_selected'])){
|
|||
for($id=0;$id<=RESULTS;$id++){
|
||||
$cbvid->action('activate',$_POST['check_video'][$id]);
|
||||
}
|
||||
e("Selected Videos Have Been Activated");
|
||||
e("Selected Videos Have Been Activated","m");
|
||||
}
|
||||
if(isset($_POST['deactivate_selected'])){
|
||||
for($id=0;$id<=RESULTS;$id++){
|
||||
$cbvid->action('deactivate',$_POST['check_video'][$id]);
|
||||
}
|
||||
e("Selected Videos Have Been Dectivated");
|
||||
e("Selected Videos Have Been Dectivated","m");
|
||||
}
|
||||
|
||||
|
||||
|
@ -75,7 +75,7 @@ if(isset($_POST['delete_selected']))
|
|||
$cbvideo->delete_video($_POST['check_video'][$id]);
|
||||
}
|
||||
$eh->flush();
|
||||
e(lang("vdo_multi_del_erro"),m);
|
||||
e(lang("vdo_multi_del_erro"),"m");
|
||||
}
|
||||
|
||||
|
||||
|
@ -86,59 +86,59 @@ call_functions($cbvid->video_manager_funcs);
|
|||
if(isset($_POST['display_page'])){
|
||||
redirect_to($_POST['page_number']);
|
||||
}
|
||||
|
||||
//Using Form
|
||||
$cond = '';
|
||||
$cond_array = array();
|
||||
if(isset($_GET['search']))
|
||||
{
|
||||
//Valid Search Fields
|
||||
$valid_search_fields = array
|
||||
('videoid' => array('LIKE','%{VAR}%','AND'),
|
||||
'title' => array('LIKE','%{VAR}%','AND'),
|
||||
'videokey' => array('LIKE','%{VAR}%','AND'),
|
||||
'tags' => array('LIKE','%{VAR}%','AND'),
|
||||
);
|
||||
|
||||
foreach($valid_search_fields as $field => $field_props)
|
||||
{
|
||||
if(!empty($_GET[$field]))
|
||||
{
|
||||
if(empty($field_props[0]))
|
||||
$field_props[0] = '=';
|
||||
if(empty($field_props[1]))
|
||||
$field_props[1] = '{VAR}';
|
||||
if(empty($field_props[2]))
|
||||
$field_props[2] = 'OR';
|
||||
|
||||
$query_val = $field_props[1];
|
||||
$query_val = preg_replace('/{VAR}/',mysql_clean($_GET[$field]),$query_val);
|
||||
$cond_array[] = $field_props[2]." $field ".$field_props[0]." '".$query_val."' ";
|
||||
}
|
||||
}
|
||||
|
||||
//Creating Condition
|
||||
$count = 0;
|
||||
$cond = " videoid<>'0' ";
|
||||
foreach($cond_array as $qcond)
|
||||
{
|
||||
$cond .= $qcond;
|
||||
}
|
||||
}
|
||||
|
||||
//Getting Video List
|
||||
$page = mysql_clean($_GET['page']);
|
||||
$get_limit = create_query_limit($page,RESULTS);
|
||||
$videos = $db->select("video",'*',$cond,$get_limit,"date_added DESC");
|
||||
|
||||
if(isset($_GET['search']))
|
||||
{
|
||||
|
||||
$array = array
|
||||
(
|
||||
'videoid' => $_GET['videoid'],
|
||||
'videokey' => $_GET['videokey'],
|
||||
'title' => $_GET['title'],
|
||||
'tags' => $_GET['tags'],
|
||||
'user' => $_GET['userid'],
|
||||
'category' => $_GET['category'],
|
||||
'featured' => $_GET['featured'],
|
||||
'active' => $_GET['active'],
|
||||
'status' => $_GET['status'],
|
||||
);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
$result_array = $array;
|
||||
//Getting Video List
|
||||
$result_array['limit'] = $get_limit;
|
||||
$videos = get_videos($array);
|
||||
Assign('videos', $videos);
|
||||
|
||||
//Collecting Data for Pagination
|
||||
$total_rows = $db->count('video','*',$cond);
|
||||
$records = $total_rows/RESULTS;
|
||||
$total_pages = round($records+0.49,0);
|
||||
$vcount = $array;
|
||||
$vcount['count_only'] = true;
|
||||
$total_rows = get_videos($vcount);
|
||||
$total_pages = count_pages($total_rows,RESULTS);
|
||||
|
||||
|
||||
//Pagination
|
||||
$pages->paginate($total_pages,$page);
|
||||
//Category Array
|
||||
if(is_array($_GET['category']))
|
||||
$cats_array = array($_GET['category']);
|
||||
else
|
||||
{
|
||||
preg_match_all('/#([0-9]+)#/',$_GET['category'],$m);
|
||||
$cats_array = array($m[1]);
|
||||
}
|
||||
$cat_array = array($LANG['vdo_cat'],
|
||||
'type'=> 'checkbox',
|
||||
'name'=> 'category[]',
|
||||
'id'=> 'category',
|
||||
'value'=> array('category',$cats_array),
|
||||
'hint_1'=> $LANG['vdo_cat_msg'],
|
||||
'display_function' => 'convert_to_categories');
|
||||
assign('cat_array',$cat_array);
|
||||
|
||||
template_files('video_manager.html');
|
||||
display_it();
|
||||
|
|
|
@ -37,9 +37,9 @@
|
|||
|
||||
//Do No Edit Below This Line
|
||||
|
||||
define('TEMPLATEDIR',BASEDIR.'/'.ADMINDIR.'/'.TEMPLATEFOLDER.'/cbadmin');
|
||||
define('TEMPLATEDIR',BASEDIR.'/'.ADMINDIR.'/'.TEMPLATEFOLDER.'/cbv2');
|
||||
define('SITETEMPLATEDIR',BASEDIR.'/'.TEMPLATEFOLDER.'/'.$row['template_dir']);
|
||||
define('TEMPLATEURL',BASEURL.'/'.ADMINDIR.'/'.TEMPLATEFOLDER.'/cbadmin');
|
||||
define('TEMPLATEURL',BASEURL.'/'.ADMINDIR.'/'.TEMPLATEFOLDER.'/cbv2');
|
||||
define('LAYOUT',TEMPLATEDIR.'/layout');
|
||||
|
||||
Assign('baseurl',BASEURL);
|
||||
|
|
|
@ -1882,12 +1882,12 @@ class CBGroups extends CBCategory
|
|||
$this->search->search_type['groups'] = array('title'=>'Groups');
|
||||
|
||||
$fields = array(
|
||||
'keyword' => array(
|
||||
'query' => array(
|
||||
'title'=> lang('keywords'),
|
||||
'type'=> 'textfield',
|
||||
'name'=> 'keywords',
|
||||
'id'=> 'keywords',
|
||||
'value'=>cleanForm($default['keywords'])
|
||||
'name'=> 'query',
|
||||
'id'=> 'query',
|
||||
'value'=>cleanForm($default['query'])
|
||||
),
|
||||
'category' => array(
|
||||
'title' => lang('vdo_cat'),
|
||||
|
|
|
@ -149,8 +149,10 @@ class pages{
|
|||
|
||||
preg_match('/\?/',$link,$matches);
|
||||
|
||||
$no_seo = false;
|
||||
if(!empty($matches[0]))
|
||||
{
|
||||
$no_seo = true;
|
||||
$page_link = '&'.$page_link_pattern;
|
||||
}else{
|
||||
$page_link = '?'.$page_link_pattern;
|
||||
|
@ -160,7 +162,7 @@ class pages{
|
|||
$params = 'href="'.$link.'"';
|
||||
$params .= ' '.$extra_params;
|
||||
|
||||
if(SEO=='yes' && THIS_PAGE !='search_result')
|
||||
if(SEO=='yes' && THIS_PAGE !='search_result' && !BACK_END)
|
||||
{
|
||||
if(count($_GET)==0 || (count($_GET)==1 && isset($_GET['page'])))
|
||||
$params = $params;
|
||||
|
|
|
@ -49,6 +49,7 @@ class cbsearch
|
|||
var $multi_cat = true;
|
||||
|
||||
var $date_added_colum = 'date_added';
|
||||
|
||||
|
||||
/**
|
||||
* ClipBucket Search System works pretty easily
|
||||
|
|
|
@ -3401,12 +3401,12 @@ class userquery extends CBCategory{
|
|||
$this->search->search_type['users'] = array('title'=>'Users');
|
||||
|
||||
$fields = array(
|
||||
'keyword' => array(
|
||||
'query' => array(
|
||||
'title'=> lang('keywords'),
|
||||
'type'=> 'textfield',
|
||||
'name'=> 'keywords',
|
||||
'id'=> 'keywords',
|
||||
'value'=>cleanForm($default['keywords'])
|
||||
'name'=> 'query',
|
||||
'id'=> 'query',
|
||||
'value'=>cleanForm($default['query'])
|
||||
),
|
||||
'category' => array(
|
||||
'title' => lang('vdo_cat'),
|
||||
|
|
|
@ -205,15 +205,40 @@ class CBvideo extends CBCategory
|
|||
$query .= ',';
|
||||
}*/
|
||||
|
||||
if(has_access('admin_access',TRUE) && !empty($array['status']))
|
||||
if(has_access('admin_access',TRUE))
|
||||
{
|
||||
$query_field[] = 'status';
|
||||
$query_val[] = $array['status'];
|
||||
}
|
||||
if(has_access('admin_access',TRUE) && !empty($array['duration']))
|
||||
{
|
||||
$query_field[] = 'duration';
|
||||
$query_val[] = $array['duration'];
|
||||
if(!empty($array['status']))
|
||||
{
|
||||
$query_field[] = 'status';
|
||||
$query_val[] = $array['status'];
|
||||
}
|
||||
|
||||
if(!empty($array['duration']))
|
||||
{
|
||||
$query_field[] = 'duration';
|
||||
$query_val[] = $array['duration'];
|
||||
}
|
||||
|
||||
if(!empty($array['views']))
|
||||
{
|
||||
$query_field[] = 'views';
|
||||
$query_val[] = $array['views'];
|
||||
}
|
||||
|
||||
if(!empty($array['rating']))
|
||||
{
|
||||
$query_field[] = 'rating';
|
||||
$rating = $array['rating'];
|
||||
if(!is_numeric($rating) || $rating<0 || $rating>10)
|
||||
$rating = 1;
|
||||
$query_val[] = $rating;
|
||||
}
|
||||
|
||||
if(!empty($array['rated_by']))
|
||||
{
|
||||
$query_field[] = 'rated_by';
|
||||
$query_val[] = $array['rated_by'];
|
||||
}
|
||||
}
|
||||
|
||||
if(!userid())
|
||||
|
@ -352,9 +377,22 @@ class CBvideo extends CBCategory
|
|||
|
||||
if(!has_access('admin_access',TRUE))
|
||||
$cond = " status='Successful' AND active='yes' ";
|
||||
else
|
||||
{
|
||||
if(!$params['active'])
|
||||
$params['active'] = 'yes';
|
||||
if(!$params['status'])
|
||||
$params['status'] = 'Successful';
|
||||
$cond = " status='".$params['status']."' AND active='".$params['active']."' ";
|
||||
}
|
||||
|
||||
//Setting Category Condition
|
||||
if($params['category'] && strtolower($params['category'])!='all')
|
||||
$all = false;
|
||||
if(!is_array($params['category']))
|
||||
if(strtolower($params['category'])=='all')
|
||||
$all = true;
|
||||
|
||||
if($params['category'] && !$all)
|
||||
{
|
||||
if($cond!='')
|
||||
$cond .= ' AND ';
|
||||
|
@ -453,7 +491,7 @@ class CBvideo extends CBCategory
|
|||
$cond .= ' AND ';
|
||||
$cond .= " videoid <> '".$params['exclude']."' ";
|
||||
}
|
||||
|
||||
$cond;
|
||||
$result = $db->select('video','*',$cond,$limit,$order);
|
||||
|
||||
|
||||
|
@ -605,7 +643,7 @@ class CBvideo extends CBCategory
|
|||
array('field'=>'tags','type'=>'LIKE','var'=>'%{KEY}%','op'=>'AND')
|
||||
);
|
||||
$this->search->cat_tbl = $this->cat_tbl;
|
||||
|
||||
|
||||
$this->search->display_template = LAYOUT.'/blocks/video.html';
|
||||
$this->search->template_var = 'video';
|
||||
|
||||
|
@ -641,12 +679,12 @@ class CBvideo extends CBCategory
|
|||
$this->search->search_type['videos'] = array('title'=>'Videos');
|
||||
|
||||
$fields = array(
|
||||
'keyword' => array(
|
||||
'query' => array(
|
||||
'title'=> lang('keywords'),
|
||||
'type'=> 'textfield',
|
||||
'name'=> 'keywords',
|
||||
'id'=> 'keywords',
|
||||
'value'=>cleanForm($default['keywords'])
|
||||
'name'=> 'query',
|
||||
'id'=> 'query',
|
||||
'value'=>cleanForm($default['query'])
|
||||
),
|
||||
'category' => array(
|
||||
'title' => lang('vdo_cat'),
|
||||
|
|
|
@ -1,40 +1,30 @@
|
|||
<?php
|
||||
/**
|
||||
* @Software : ClipBucket
|
||||
* @License : CBLA
|
||||
* @version :ClipBucket v2
|
||||
*/
|
||||
|
||||
/**
|
||||
#########################################################################################################
|
||||
# Copyright (c) 2008 - 2009 ClipBucket / PHPBucket.com. All Rights Reserved.
|
||||
# [url]http://clip-bucket.com[/url]
|
||||
# Function: Database Connection
|
||||
# Language: PHP
|
||||
# License: Public Domain
|
||||
# Version: 1.7.x SVN
|
||||
# Last Modified: March 21, 2009 / 03:37 PM GMT+1 (fwhite)
|
||||
# Notice: Please maintain this section
|
||||
#########################################################################################################
|
||||
*/
|
||||
|
||||
//Database Connection
|
||||
|
||||
$BDTYPE = 'mysql';
|
||||
//Database Host
|
||||
$DBHOST = 'localhost';
|
||||
//Database Name
|
||||
$DBNAME = 'clipbucket_svn';
|
||||
//Database Username
|
||||
$DBUSER = 'root';
|
||||
//Database Password
|
||||
$DBPASS = '';
|
||||
$BDTYPE = "mysql";
|
||||
//Database Host
|
||||
$DBHOST = "localhost";
|
||||
//Database Name
|
||||
$DBNAME = "sample_cbv2";
|
||||
//Database Username
|
||||
$DBUSER = "root";
|
||||
//Database Password
|
||||
$DBPASS = "";
|
||||
|
||||
require 'adodb/adodb.inc.php';
|
||||
|
||||
$db = ADONewConnection($BDTYPE);
|
||||
$db->debug = false;
|
||||
$db->charpage = 'cp_utf8';
|
||||
$db->charset = 'utf8';
|
||||
if(!$db->Connect($DBHOST, $DBUSER, $DBPASS, $DBNAME))
|
||||
{
|
||||
exit($db->ErrorMsg());
|
||||
}
|
||||
$db->Connect($DBHOST, $DBUSER, $DBPASS, $DBNAME);
|
||||
|
||||
$db = ADONewConnection($BDTYPE);
|
||||
$db->debug = false;
|
||||
$db->charpage = 'cp_utf8';
|
||||
$db->charset = 'utf8';
|
||||
if(!$db->Connect($DBHOST, $DBUSER, $DBPASS, $DBNAME))
|
||||
{
|
||||
exit($db->ErrorMsg());
|
||||
}
|
||||
$db->Connect($DBHOST, $DBUSER, $DBPASS, $DBNAME);
|
||||
|
||||
?>
|
|
@ -16,6 +16,7 @@ $Cbucket->links = array
|
|||
'my_account'=>array('myaccount.php','my_account'),
|
||||
'my_videos' =>array('manage_videos.php','manage_videos.php'),
|
||||
'notifications'=>array('private_message.php?mode=notification','private_message.php?mode=notification'),
|
||||
'search_result'=>array('search_result.php','search_result.php'),
|
||||
'signup' =>array('signup.php','signup'),
|
||||
'upload' =>array('upload.php','upload'),
|
||||
'videos' =>array('videos.php','videos'),
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
# Language: PHP
|
||||
# License: CBLA @ [url]http://clip-bucket.com/cbla[/url]
|
||||
# Version: 2
|
||||
# Last Modified: Monday, March 23, 2009 / 01:08 AM GMT+1 (fwhite)
|
||||
# Notice: Please maintain this section
|
||||
####################################################################
|
||||
*/
|
||||
|
@ -3063,5 +3062,28 @@
|
|||
global $ignore_cb_errors;
|
||||
$ignore_cb_errors = FALSE;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Function used to call sub_menu_easily
|
||||
*/
|
||||
function sub_menu()
|
||||
{
|
||||
/**
|
||||
* Submenu function used to used to display submenu links
|
||||
* after navbar
|
||||
*/
|
||||
$funcs = get_functions('sub_menu');
|
||||
if(is_array($funcs) && count($funcs)>0)
|
||||
{
|
||||
foreach($funcs as $func)
|
||||
{
|
||||
if(!function_exists($func))
|
||||
{
|
||||
return $func($u);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
|
@ -83,7 +83,7 @@ menuObjArray[7] = new Array();
|
|||
var timerSlide = null;
|
||||
var numMenuItem = 0;
|
||||
var slideDelay = 5;
|
||||
var divHeight = 17;
|
||||
var divHeight = 26;
|
||||
var moveSlidePix = 7;
|
||||
var isLocked = null;
|
||||
var doFading = true;
|
||||
|
|
|
@ -11,10 +11,11 @@ require 'includes/config.inc.php';
|
|||
$pages->page_redir();
|
||||
|
||||
$page = mysql_clean($_GET['page']);
|
||||
$type = $_GET['type'];
|
||||
$type = $_GET['type'] ;
|
||||
$type = $type ? $type : 'videos';
|
||||
$search = cbsearch::init_search($type);
|
||||
|
||||
$search->key = $_GET['keywords'];
|
||||
$search->key = $_GET['query'];
|
||||
$search->category = $_GET['category'];
|
||||
$search->date_margin = $_GET['datemargin'];
|
||||
$search->sort_by = $_GET['sort'];
|
||||
|
|
|
@ -53,12 +53,12 @@
|
|||
<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>
|
||||
<li><a href="{link name='category' data=$cat[c_list] type=v}">{$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}" />
|
||||
<form action="{link name='search_result'}" method="get" name="search" id="search" style="margin:0px; padding:0px;">
|
||||
<input name="query" id="query" type="text" class="searchbar" value="{'query'|get_form_val:true}" />
|
||||
<input name="submit" type="submit" class="searchbutton" value="Search" />
|
||||
</form>
|
||||
</div> <!--SEARCH_CON END-->
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
<div style="width:98%; margin:auto">
|
||||
<h2>ClipBucket Search</h2>
|
||||
|
||||
<div id="simple_search" class="simple_container" style="border:none">
|
||||
<div class="search_type">
|
||||
<div>
|
||||
<form name="search-form" method="get" action="">
|
||||
<div>
|
||||
<label class="label">Kewords</label>
|
||||
<input type="text" name="keywords" value="{$smarty.get.keywords|form_val}" id="keywords" />
|
||||
</div>
|
||||
<input type="submit" name="cbsearch" id="cbsearch" value="Search" class="cb_button" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="quick_search">
|
||||
<form name="search-form" method="get" action="">
|
||||
<span class='title'>ClipBucket Search –</span>
|
||||
<input type="text" name="keywords" value="{'query'|get_form_val:true}" id="keywords" />
|
||||
type
|
||||
<select name="type">
|
||||
{foreach from=$Cbucket->search_types item=t key=stypes}
|
||||
<option value="{$stypes}" {if $smarty.get.type==$stypes} selected="selected"{/if}>{$stypes}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="submit" name="cbsearch" id="cbsearch" value="Search" class="cb_button" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="simple_container" style="height:400px; overflow:visible; display:none" id="advance_search">
|
||||
{foreach from=$Cbucket->search_types item=search_type key=search_type_key}
|
||||
|
|
|
@ -720,4 +720,7 @@ display:inline-block; width:18px; height:18px; line-height:18px; text-align:cent
|
|||
.search_type:nth-child(3){border-right:none; margin-right:0px}
|
||||
.search_type .label{display:block; font-size:11px; font:tahoma; font-weight:bold}
|
||||
.search_type div{margin-bottom:10px}
|
||||
.search_type input[type='textfied'],.search_type input[type='text'],.search_type select{width:200px; border:1px solid #999}
|
||||
.search_type input[type='textfied'],.search_type input[type='text'],.search_type select{width:200px; border:1px solid #999}
|
||||
|
||||
.quick_search .title{font-size:15px; font-weight:bold}
|
||||
.quick_search input[type=text],.quick_search select{width:200px; border:1px solid #939393; font-size:11px; padding:2px}
|