Added : template.php as template file

Added : function filters files replacing function hooks
Added : add_admin_menu a whole new function and replaced all existing functions with new
Added : New Admin Area with Bootstrap and new icons
Added : functions for widgets
Added : Sidebars and Widgets
This commit is contained in:
Arslan Hassan 2012-04-28 20:11:43 +00:00
parent d7fe0b6d89
commit 5962836294
151 changed files with 20224 additions and 1892 deletions

View file

@ -0,0 +1,808 @@
/*!
* Bootstrap Responsive v2.0.3
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
.clearfix {
*zoom: 1;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
}
.clearfix:after {
clear: both;
}
.hide-text {
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
}
.input-block-level {
display: block;
width: 100%;
min-height: 28px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.hidden {
display: none;
visibility: hidden;
}
.visible-phone {
display: none !important;
}
.visible-tablet {
display: none !important;
}
.hidden-desktop {
display: none !important;
}
@media (max-width: 767px) {
.visible-phone {
display: inherit !important;
}
.hidden-phone {
display: none !important;
}
.hidden-desktop {
display: inherit !important;
}
.visible-desktop {
display: none !important;
}
}
@media (min-width: 768px) and (max-width: 979px) {
.visible-tablet {
display: inherit !important;
}
.hidden-tablet {
display: none !important;
}
.hidden-desktop {
display: inherit !important;
}
.visible-desktop {
display: none !important ;
}
}
@media (max-width: 480px) {
.nav-collapse {
-webkit-transform: translate3d(0, 0, 0);
}
.page-header h1 small {
display: block;
line-height: 18px;
}
input[type="checkbox"],
input[type="radio"] {
border: 1px solid #ccc;
}
.form-horizontal .control-group > label {
float: none;
width: auto;
padding-top: 0;
text-align: left;
}
.form-horizontal .controls {
margin-left: 0;
}
.form-horizontal .control-list {
padding-top: 0;
}
.form-horizontal .form-actions {
padding-right: 10px;
padding-left: 10px;
}
.modal {
position: absolute;
top: 10px;
right: 10px;
left: 10px;
width: auto;
margin: 0;
}
.modal.fade.in {
top: auto;
}
.modal-header .close {
padding: 10px;
margin: -10px;
}
.carousel-caption {
position: static;
}
}
@media (max-width: 767px) {
body {
padding-right: 20px;
padding-left: 20px;
}
.navbar-fixed-top,
.navbar-fixed-bottom {
margin-right: -20px;
margin-left: -20px;
}
.container-fluid {
padding: 0;
}
.dl-horizontal dt {
float: none;
width: auto;
clear: none;
text-align: left;
}
.dl-horizontal dd {
margin-left: 0;
}
.container {
width: auto;
}
.row-fluid {
width: 100%;
}
.row,
.thumbnails {
margin-left: 0;
}
[class*="span"],
.row-fluid [class*="span"] {
display: block;
float: none;
width: auto;
margin-left: 0;
}
.input-large,
.input-xlarge,
.input-xxlarge,
input[class*="span"],
select[class*="span"],
textarea[class*="span"],
.uneditable-input {
display: block;
width: 100%;
min-height: 28px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.input-prepend input,
.input-append input,
.input-prepend input[class*="span"],
.input-append input[class*="span"] {
display: inline-block;
width: auto;
}
}
@media (min-width: 768px) and (max-width: 979px) {
.row {
margin-left: -20px;
*zoom: 1;
}
.row:before,
.row:after {
display: table;
content: "";
}
.row:after {
clear: both;
}
[class*="span"] {
float: left;
margin-left: 20px;
}
.container,
.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
width: 724px;
}
.span12 {
width: 724px;
}
.span11 {
width: 662px;
}
.span10 {
width: 600px;
}
.span9 {
width: 538px;
}
.span8 {
width: 476px;
}
.span7 {
width: 414px;
}
.span6 {
width: 352px;
}
.span5 {
width: 290px;
}
.span4 {
width: 228px;
}
.span3 {
width: 166px;
}
.span2 {
width: 104px;
}
.span1 {
width: 42px;
}
.offset12 {
margin-left: 764px;
}
.offset11 {
margin-left: 702px;
}
.offset10 {
margin-left: 640px;
}
.offset9 {
margin-left: 578px;
}
.offset8 {
margin-left: 516px;
}
.offset7 {
margin-left: 454px;
}
.offset6 {
margin-left: 392px;
}
.offset5 {
margin-left: 330px;
}
.offset4 {
margin-left: 268px;
}
.offset3 {
margin-left: 206px;
}
.offset2 {
margin-left: 144px;
}
.offset1 {
margin-left: 82px;
}
.row-fluid {
width: 100%;
*zoom: 1;
}
.row-fluid:before,
.row-fluid:after {
display: table;
content: "";
}
.row-fluid:after {
clear: both;
}
.row-fluid [class*="span"] {
display: block;
float: left;
width: 100%;
min-height: 28px;
margin-left: 2.762430939%;
*margin-left: 2.709239449638298%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.row-fluid [class*="span"]:first-child {
margin-left: 0;
}
.row-fluid .span12 {
width: 99.999999993%;
*width: 99.9468085036383%;
}
.row-fluid .span11 {
width: 91.436464082%;
*width: 91.38327259263829%;
}
.row-fluid .span10 {
width: 82.87292817100001%;
*width: 82.8197366816383%;
}
.row-fluid .span9 {
width: 74.30939226%;
*width: 74.25620077063829%;
}
.row-fluid .span8 {
width: 65.74585634900001%;
*width: 65.6926648596383%;
}
.row-fluid .span7 {
width: 57.182320438000005%;
*width: 57.129128948638304%;
}
.row-fluid .span6 {
width: 48.618784527%;
*width: 48.5655930376383%;
}
.row-fluid .span5 {
width: 40.055248616%;
*width: 40.0020571266383%;
}
.row-fluid .span4 {
width: 31.491712705%;
*width: 31.4385212156383%;
}
.row-fluid .span3 {
width: 22.928176794%;
*width: 22.874985304638297%;
}
.row-fluid .span2 {
width: 14.364640883%;
*width: 14.311449393638298%;
}
.row-fluid .span1 {
width: 5.801104972%;
*width: 5.747913482638298%;
}
input,
textarea,
.uneditable-input {
margin-left: 0;
}
input.span12,
textarea.span12,
.uneditable-input.span12 {
width: 714px;
}
input.span11,
textarea.span11,
.uneditable-input.span11 {
width: 652px;
}
input.span10,
textarea.span10,
.uneditable-input.span10 {
width: 590px;
}
input.span9,
textarea.span9,
.uneditable-input.span9 {
width: 528px;
}
input.span8,
textarea.span8,
.uneditable-input.span8 {
width: 466px;
}
input.span7,
textarea.span7,
.uneditable-input.span7 {
width: 404px;
}
input.span6,
textarea.span6,
.uneditable-input.span6 {
width: 342px;
}
input.span5,
textarea.span5,
.uneditable-input.span5 {
width: 280px;
}
input.span4,
textarea.span4,
.uneditable-input.span4 {
width: 218px;
}
input.span3,
textarea.span3,
.uneditable-input.span3 {
width: 156px;
}
input.span2,
textarea.span2,
.uneditable-input.span2 {
width: 94px;
}
input.span1,
textarea.span1,
.uneditable-input.span1 {
width: 32px;
}
}
@media (min-width: 1200px) {
.row {
margin-left: -30px;
*zoom: 1;
}
.row:before,
.row:after {
display: table;
content: "";
}
.row:after {
clear: both;
}
[class*="span"] {
float: left;
margin-left: 30px;
}
.container,
.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
width: 1170px;
}
.span12 {
width: 1170px;
}
.span11 {
width: 1070px;
}
.span10 {
width: 970px;
}
.span9 {
width: 870px;
}
.span8 {
width: 770px;
}
.span7 {
width: 670px;
}
.span6 {
width: 570px;
}
.span5 {
width: 470px;
}
.span4 {
width: 370px;
}
.span3 {
width: 270px;
}
.span2 {
width: 170px;
}
.span1 {
width: 70px;
}
.offset12 {
margin-left: 1230px;
}
.offset11 {
margin-left: 1130px;
}
.offset10 {
margin-left: 1030px;
}
.offset9 {
margin-left: 930px;
}
.offset8 {
margin-left: 830px;
}
.offset7 {
margin-left: 730px;
}
.offset6 {
margin-left: 630px;
}
.offset5 {
margin-left: 530px;
}
.offset4 {
margin-left: 430px;
}
.offset3 {
margin-left: 330px;
}
.offset2 {
margin-left: 230px;
}
.offset1 {
margin-left: 130px;
}
.row-fluid {
width: 100%;
*zoom: 1;
}
.row-fluid:before,
.row-fluid:after {
display: table;
content: "";
}
.row-fluid:after {
clear: both;
}
.row-fluid [class*="span"] {
display: block;
float: left;
width: 100%;
min-height: 28px;
margin-left: 2.564102564%;
*margin-left: 2.510911074638298%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.row-fluid [class*="span"]:first-child {
margin-left: 0;
}
.row-fluid .span12 {
width: 100%;
*width: 99.94680851063829%;
}
.row-fluid .span11 {
width: 91.45299145300001%;
*width: 91.3997999636383%;
}
.row-fluid .span10 {
width: 82.905982906%;
*width: 82.8527914166383%;
}
.row-fluid .span9 {
width: 74.358974359%;
*width: 74.30578286963829%;
}
.row-fluid .span8 {
width: 65.81196581200001%;
*width: 65.7587743226383%;
}
.row-fluid .span7 {
width: 57.264957265%;
*width: 57.2117657756383%;
}
.row-fluid .span6 {
width: 48.717948718%;
*width: 48.6647572286383%;
}
.row-fluid .span5 {
width: 40.170940171000005%;
*width: 40.117748681638304%;
}
.row-fluid .span4 {
width: 31.623931624%;
*width: 31.5707401346383%;
}
.row-fluid .span3 {
width: 23.076923077%;
*width: 23.0237315876383%;
}
.row-fluid .span2 {
width: 14.529914530000001%;
*width: 14.4767230406383%;
}
.row-fluid .span1 {
width: 5.982905983%;
*width: 5.929714493638298%;
}
input,
textarea,
.uneditable-input {
margin-left: 0;
}
input.span12,
textarea.span12,
.uneditable-input.span12 {
width: 1160px;
}
input.span11,
textarea.span11,
.uneditable-input.span11 {
width: 1060px;
}
input.span10,
textarea.span10,
.uneditable-input.span10 {
width: 960px;
}
input.span9,
textarea.span9,
.uneditable-input.span9 {
width: 860px;
}
input.span8,
textarea.span8,
.uneditable-input.span8 {
width: 760px;
}
input.span7,
textarea.span7,
.uneditable-input.span7 {
width: 660px;
}
input.span6,
textarea.span6,
.uneditable-input.span6 {
width: 560px;
}
input.span5,
textarea.span5,
.uneditable-input.span5 {
width: 460px;
}
input.span4,
textarea.span4,
.uneditable-input.span4 {
width: 360px;
}
input.span3,
textarea.span3,
.uneditable-input.span3 {
width: 260px;
}
input.span2,
textarea.span2,
.uneditable-input.span2 {
width: 160px;
}
input.span1,
textarea.span1,
.uneditable-input.span1 {
width: 60px;
}
.thumbnails {
margin-left: -30px;
}
.thumbnails > li {
margin-left: 30px;
}
.row-fluid .thumbnails {
margin-left: 0;
}
}
@media (max-width: 979px) {
body {
padding-top: 0;
}
.navbar-fixed-top {
position: static;
margin-bottom: 18px;
}
.navbar-fixed-top .navbar-inner {
padding: 5px;
}
.navbar .container {
width: auto;
padding: 0;
}
.navbar .brand {
padding-right: 10px;
padding-left: 10px;
margin: 0 0 0 -5px;
}
.nav-collapse {
clear: both;
}
.nav-collapse .nav {
float: none;
margin: 0 0 9px;
}
.nav-collapse .nav > li {
float: none;
}
.nav-collapse .nav > li > a {
margin-bottom: 2px;
}
.nav-collapse .nav > .divider-vertical {
display: none;
}
.nav-collapse .nav .nav-header {
color: #999999;
text-shadow: none;
}
.nav-collapse .nav > li > a,
.nav-collapse .dropdown-menu a {
padding: 6px 15px;
font-weight: bold;
color: #999999;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.nav-collapse .btn {
padding: 4px 10px 4px;
font-weight: normal;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.nav-collapse .dropdown-menu li + li a {
margin-bottom: 2px;
}
.nav-collapse .nav > li > a:hover,
.nav-collapse .dropdown-menu a:hover {
background-color: #222222;
}
.nav-collapse.in .btn-group {
padding: 0;
margin-top: 5px;
}
.nav-collapse .dropdown-menu {
position: static;
top: auto;
left: auto;
display: block;
float: none;
max-width: none;
padding: 0;
margin: 0 15px;
background-color: transparent;
border: none;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.nav-collapse .dropdown-menu:before,
.nav-collapse .dropdown-menu:after {
display: none;
}
.nav-collapse .dropdown-menu .divider {
display: none;
}
.nav-collapse .navbar-form,
.nav-collapse .navbar-search {
float: none;
padding: 9px 15px;
margin: 9px 0;
border-top: 1px solid #222222;
border-bottom: 1px solid #222222;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
}
.navbar .nav-collapse .nav.pull-right {
float: none;
margin-left: 0;
}
.nav-collapse,
.nav-collapse.collapse {
height: 0;
overflow: hidden;
}
.navbar .btn-navbar {
display: block;
}
.navbar-static .navbar-inner {
padding-right: 10px;
padding-left: 10px;
}
}
@media (min-width: 980px) {
.nav-collapse.collapse {
height: auto !important;
overflow: visible !important;
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 827 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 863 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 732 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 883 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 B

View 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">&nbsp;</td>
<td align="center" class="head">{$types[t].user_permission_type_name}</td>
<td width="30" class="right_head">&nbsp;</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>

View file

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

View file

@ -0,0 +1,58 @@
{assign var='required_fields' value=$userquery->load_signup_fields()}
{assign var='custom_field' value=$userquery->custom_signup_fields}
<h2>Add New Member</h2>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10" align="center" valign="middle" class="left_head">&nbsp;</td>
<td class="head">Required Member Details</td>
<td width="10" class="right_head">&nbsp;</td>
</tr>
</table>
<form action="" method="post">
<fieldset class="fieldset">
<legend>User Information</legend>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$required_fields item=field}
<tr>
<td width="200"><label for="{$field.id}" class="label">{$field.title}</label></td>
<td>{if $field.hint_1}{$field.hint_1}<br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}{if $field.hint_2}<br>{$field.hint_2}{/if}</td>
</tr>
{/foreach}
<tr>
<td width="200"><label for="level" class="label">User level</label></td>
<td><select name="level" id="level">
{assign var=levels value=$userquery->get_levels()}
{foreach from=$levels item=level}
<option value="{$level.user_level_id}" {if $smarty.post.level==$level.user_level_id} selected{elseif $level.user_level_id==2}selected{/if}>{$level.user_level_name}</option>
{/foreach}
</select></td>
</tr>
<tr>
<td>Status</td>
<td><label for="active"></label>
<select name="active" id="active">
<option value="Ok">Active</option>
<option value="ToActivate">Inactive</option>
</select></td>
</tr>
</table>
</fieldset>
{if $custom_field}
<fieldset class="fieldset">
<legend>Other</legend>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$custom_field item=field}
<tr>
<td width="200"><label for="{$field.id}" class="label">{$field.title}</label></td>
<td>{if $field.hint_1}{$field.hint_1}<br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}{if $field.hint_2}<br>{$field.hint_2}{/if}</td>
</tr>
{/foreach}
</table>
</fieldset>
{/if}
<div align="left" style="padding:10px"><input type="submit" name="add_member" value="Add Member" class="button" id="add_member" ></div>
</form>

View 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="100%" 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>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>
</td>
<td>&nbsp;</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>

View file

@ -0,0 +1,79 @@
{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="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10" class="left_head">&nbsp;</td>
<td class="head">Add Placement </td>
<td width="10" class="right_head">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td colspan="3" class="td_body">&nbsp;</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">&nbsp;</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="100%" 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="100%" 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}

View file

@ -0,0 +1,163 @@
{if $ad_data.ad_name !=''}
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10" class="left_head">&nbsp;</td>
<td class="head">Eid Advertisement</td>
<td width="10" class="right_head">&nbsp;</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">&nbsp;</td>
<td align="right">all fields are required</td>
</tr>
<tr>
<td valign="top">&nbsp;</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>&nbsp;</td>
<td align="right"><input type="submit" name="update" class="button" 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="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10" class="left_head">&nbsp;</td>
<td class="head">Add Advertisement</td>
<td width="10" class="right_head">&nbsp;</td>
</tr>
<tr>
<td colspan="3"><form id="form1" name="form1" method="post" action="ads_manager.php">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="block">
<tr>
<td valign="top">&nbsp;</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>&nbsp;</td>
<td align="right"><input type="submit" name="add" class="button" 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="100%" 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="200" 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()}
{if $ads}
{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="200" align="left"><div style="padding-left:10px"><a href="ads_manager.php?ad_id={$ad.ad_id}">Edit</a> |
<a href="ads_manager.php?delete={$ad.ad_id}">Delete</a> | {if $ad.ad_status!=1}<a href="?activate={$ad.ad_id}">Activate</a>{else}<a href="?deactivate={$ad.ad_id}">Deactivate</a>{/if}</div></td>
</tr>
{/foreach}
{/if}
</table></div></td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
</table>
{/if}

View 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>

View file

@ -0,0 +1,50 @@
{assign var=bgcolor value =F2F2F2}
{if $comments}
<table width="99%" border="0" cellpadding="2" cellspacing="1" style="color:#fff">
<tr>
<td width="35" height="30" bgcolor="#0066cc">CID</td>
<td width="35" height="30" bgcolor="#0066cc">UID</td>
<td width="100" height="30" bgcolor="#0066cc">Username</td>
<td width="150" height="30" bgcolor="#0066cc">Email</td>
<td height="30" bgcolor="#0066cc">Comment</td>
<td width="200" height="30" bgcolor="#0066cc" >Date</td>
<td width="70" height="30" bgcolor="#0066cc">Votes</td>
<td width="100" height="30" bgcolor="#0066cc">&nbsp;</td>
</tr>
</table>
<div>
{foreach from=$comments.comments item=comment}
<table width="99%" border="0" cellpadding="2" cellspacing="1" >
<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}{$comment.username}{/if}</td>
<td width="150" align="left">{if $comment.anonym_email}{$comment.anonym_email}{else}{$comment.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}&amp;delete_comment={$comment.comment_id}">Delete</a></td>
</tr>
{if $bgcolor == 'F2F2F2'}
{assign var=bgcolor value =FFF}
{elseif $bgcolor == 'FFF'}
{assign var=bgcolor value =F2F2F2}
{/if}
{/foreach}
</table>
</div>
{else}
<div align="center"><em>No User Comments</em></div>
{/if}
{literal}
<script type="text/javascript">
$(document).ready(function() {
$('.edit_comment').editable(baseurl+'/actions/edit_comment.php', {
indicator : '<img src="'+baseurl+'/images/icons/progIndicator.gif">',
tooltip : 'Click to edit...',
});
</script>
{/literal}

View file

@ -0,0 +1,194 @@
{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">&nbsp;</td>
<td width="200" align="right" class="right_head">&nbsp;</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><strong>Referal URL</strong></td>
<td><input disabled="disabled" name="refer_url" type="text" id="refer_url" value="{$data.refer_url}" 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 Conversion 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}&amp;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}

View file

@ -0,0 +1,5 @@
<div class="pagination" align="center">
{if $pagination}
Pages : {if $first_link !=''}<a {$first_link}>&laquo;</a>{/if} {if $pre_link !=''}<a {$pre_link} >&#8249;</a>{/if} {$pagination} {if $next_link !=''}<a {$next_link}>&#8250;</a>{/if} {if $last_link !=''}<a {$last_link}>&raquo;</a>{/if}
{/if}
</div>

View file

@ -0,0 +1,43 @@
{include file="$style_dir/global_header.html" }
<body>
<!-- Including Commong header -->
{include file="$style_dir/header.html" }
{include file="$style_dir/msg.html" }
<div style="{if $mode!='watermark_settings'}min-height:600px;{/if} min-width:1000px">
{if $smarty.cookies.admin_menu=='hide'}
{assign var='left_menu_class' value='left_menu_0'}
{assign var='contentcolumn_class' value='contentcolumn0'}
{else}
{assign var='left_menu_class' value='left_menu'}
{assign var='contentcolumn_class' value='contentcolumn'}
{/if}
<div class="clearfix"></div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span200">
{include file="$style_dir/left_menu.html" }
</div>
<div class="span9">
{if $Cbucket->show_page}
{foreach from=$template_files item=file}
{include_template_file file=$file}
{/foreach}
{/if}
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
{include file="$style_dir/footer.html" }
</body>
</html>

View file

@ -0,0 +1,179 @@
<span class="page_title">Video Categories</span>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="200" align="left" valign="middle" class="left_head" style="text-indent:10px">Manage Video Categories</td>
<td class="head">&nbsp;</td>
<td width="100" class="right_head">&nbsp;</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="100%" border="0" cellpadding="0" cellspacing="0" class="block">
<tr>
<td class="td_body">&nbsp;</td>
<td align="right" class="td_body">* are required fields</td>
</tr>
<tr>
<td valign="top" class="td_body">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>
{assign var=useSubs value=func->config(use_subs)}
{if $useSubs == 1}
<tr>
<td valign="top" class="td_body">Parent Category</td>
<td class="td_body">
{cbCategories output="dropdown" name="parent_cat" id="parent_cat" blank_option=TRUE echo=TRUE type="video"}
</td>
</tr>
{/if}
<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">&nbsp;</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="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td class="td_body">&nbsp;</td>
<td align="right" class="td_body">* are required fields</td>
</tr>
<tr>
<td valign="top" class="td_body">Category Name*</td>
<td class="td_body"><label>
<input name="name" type="text" id="name" value="{$cat_details.category_name}" size="45" />
</label></td>
</tr>
<tr>
<td valign="top" class="td_body">Category Description*</td>
<td class="td_body"><textarea name="desc" id="desc" cols="33" rows="5">{$cat_details.category_desc}</textarea></td>
</tr>
<tr>
<td valign="top" class="td_body">Parent Category</td>
<td class="td_body">
{cbCategories output="dropdown" selected=$cat_details.parent_id name="parent_cat" id="parent_cat" blank_option=TRUE type="video" echo=TRUE}
</td>
</tr>
<tr>
<td valign="top" class="td_body">Make Default Category</td>
<td class="td_body"><p>
<label>
<input type="radio" name="default" value="yes" id="default_0" {if $cat_details.isdefault=='yes'} checked="checked"{/if} />
Yes</label>
<label>
<input name="default" type="radio" id="default_1" value="no" {if $cat_details.isdefault=='no'} checked="checked"{/if} />
No</label>
<br />
</p></td>
</tr>
<tr>
<td class="td_body">Category Thumb</td>
<td class="td_body"><label>
<input type="file" name="cat_thumb" id="cat_thumb" />
</label></td>
</tr>
<tr>
<td colspan="2" align="right" class="tr_head"><label>
<input type="submit" name="update_category" id="button" value="Update Category" onclick="return validate_category_form(edit_category)" class="button"/>
</label></td>
</tr>
</table>
</form>
{/if}
<div style="margin:10px 0px 10px 0px">
<span class="page_title">Category List</span>
</div>
{if $total != 0}
<form name="category" action="?update_order" method="post">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="225" class="left_head" style="text-indent:10px">Category Name</td>
<td width="75" align="left" class="head">Order</td>
<td width="225" align="left" class="head">Parent Category</td>
<td width="250" class="head">Description</td>
<td width="100" class="head">Default</td>
<td width="150" class="head">Action</td>
<td width="20" align="left" class="right_head">&nbsp;</td>
</tr>
{assign var = bgcolor value = ""}
{section name=list loop=$category}
<script type="text/javascript">
cat_div = "#thumbs_{$category[list].category_id}";
{literal}
$(function() { {/literal}
$("#thumbs_{$category[list].category_id}").tooltip({literal}{showURL: false,delay: 0});
});
{/literal}
</script>
<tr bgcolor="{$bgcolor}" class="item_listing">
<td style="text-indent:10px">{$category[list].category_name} - <a id="thumbs_{$category[list].category_id}" title="<img src='{$cbvid->get_category_thumb($category[list])}' />" href="javascript:void(0)">View Thumb</a></td>
<td >
<input name="category_order_{$category[list].category_id}" type="text" id="order" style="border:1px solid #999; padding:2px; width:30px" value="{$category[list].category_order}" size="5" maxlength="5" /></td>
{if $category[list].parent_id == "0"}
{assign var=p_name value="None"}
{else}
{assign var=p_name value=$cbvid->get_category_field($category[list].parent_id,'category_name')}
{/if}
<td>{$p_name}</td>
<td>{if $category[list].category_desc}{$category[list].category_desc}{else}<em>N/A</em>{/if}</td>
<td>{$category[list].isdefault}</td>
<td>
<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>&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
<div><input type="submit" value="Update" name="update_order" class="button" style="margin-top:10px"/></div>
</form>
{else}
No Category Has Been Created Yet
{/if}

View file

@ -0,0 +1,66 @@
<h2>ClipBucket Queue Manager</h2> {if conv_lock_exists()}<span class="button" style="padding:5px; margin-left:10px" onclick="window.location='?delete_lock=yes'">Delete Conversion Lock</span>{/if}
<div></div>
do not try to change the things here, can cause problems to your Clipbucket conversion system.
<!-- DIsplaying Videos -->
<form name="video_manage" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle"><img src="{$imageurl}/arrow_return.png" width="25" height="25"></td>
<td height="50" style="padding-left:15px">
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are your sure you want to remove these items')"/>
<input name="processed" type="submit" class="button" id="processed" value="Set as processed" />
<input name="pending" type="submit" class="button" id="pending" value="Set as pending" /></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" class="head">ID</td>
<td class="head">Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
{if $queues}
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{foreach from=$queues item=queue}
<tr bgcolor="{$bgcolor}">
<td width="30" align="center"valign="top" class="video_opt_td" style="height:25px">
<input name="check_queue[]" type="checkbox" value="{$queue.cqueue_id}" /></td>
<td width="50"valign="top" class="video_opt_td" style="height:25px">
{$queue.cqueue_id}
</td>
<td valign="top" class="video_opt_td" style="height:25px">
<a href="{$baseurl}/{$smarty.const.ADMINDIR}/view_conversion_log.php?file_name={$queue.cqueue_name}" target="_blank">{$queue.cqueue_name}</a> -
<span class="vdo_sets">
File Type : <strong>{$queue.cqueue_ext}</strong> &#8226;
Temp Ext : <strong>{$queue.cqueue_tmp_ext}</strong> &#8226;
Conversion Process : <strong>{$queue.cqueue_conversion|conv_status}</strong> &#8226;
{if $queue.time_started}
Started : <strong>{"Y-m-d H:i:s"|date:$queue.time_started}</strong> &#8226;
{/if}
{if $queue.time_completed}
Completed : <strong>{"Y-m-d H:i:s"|date:$queue.time_completed}</strong>
{/if}
</span> </td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/foreach}
</table>
{else}
<div align="center"><strong>No Conversion Queue File Found</strong></div>
{/if}
</form>
{include file="$style_dir/blocks/pagination.html" }

View file

@ -0,0 +1,102 @@
<h2>Server Video Conversion Modules &amp; Tools</h2>
<p>
A brief test to check weather server modules exist or not, also displays versions and paths if applicable
</p>
<div class="cb_title">
Modules and Paths
</div>
<div class="cb_row font_12 font_ah">
{check_module_path path='ffmpeg' get_path='true' assign='ffmpeg_status'}
<img src="{$imageurl}/{if $ffmpeg_status.status=='ok'}tick.png{else}alert.png{/if}"
style="position:absolute"/><strong style="font-size:16px; margin-left:21px">FFMPEG</strong>
<div style="color:#999">FFmpeg is used to convert videos from different versions to FLV , MP4 and many other formats. <a href="http://clip-bucket.com/ffmpeg">Learn more</a></div>
{if $ffmpeg_status.status=='ok'}
Version <strong>{$ffmpeg_status.version}</strong> &#8226; Expected Path <strong>{get_binaries path=ffmpeg type=server}</strong>
{else}
<strong>FFmpeg is not found</strong>
{if $ffmpeg_status.error}
<br /><span style="color:#e70000">{$ffmpeg_status.error}</span>
{/if}
{/if}
</div>
<div class="cb_row font_12 font_ah" style="margin-top:15px">
{check_module_path path='flvtool2' get_path='true' assign='flvtool2_status'}
<img src="{$imageurl}/{if $flvtool2_status.status=='ok'}tick.png{else}alert.png{/if}"
style="position:absolute"/><strong style="font-size:16px; margin-left:21px">FLVTool2</strong>
<div style="color:#999">FLVTool2 is a tool to repair FLV files to make them streamable
<a href="http://docs.clip-bucket.com/clipbucket-docs/flvtool2">Learn more</a></div>
{if $flvtool2_status.status=='ok'}
Version <strong>{$flvtool2_status.version}</strong> &#8226; Expected Path <strong>{get_binaries path=flvtool2 type=server}</strong>
{else}
<strong>FLVTool2 is not found</strong>
{if $flvtool2_status.error}
<br /><span style="color:#e70000">{$flvtool2_status.error}</span>
{/if}
{/if}
</div>
<div class="cb_row font_12 font_ah" style="margin-top:15px">
{check_module_path path='mp4box' get_path='true' assign='mp4box_status'}
<img src="{$imageurl}/{if $mp4box_status.status=='ok'}tick.png{else}alert.png{/if}"
style="position:absolute"/><strong style="font-size:16px; margin-left:21px">MP4Box</strong>
<div style="color:#999">MP4Box is a tool used to repair MP4 files to make them streamable
<a href="http://docs.clip-bucket.com/clipbucket-docs/mp4box">Learn more</a></div>
{if $mp4box_status.status=='ok'}
Version
{if $mp4box_status.version}
<strong>{$mp4box_status.version}</strong>
{/if} &#8226; Expected Path <strong>{get_binaries path=mp4box type=server}</strong>
{else}
<strong>Mp4box is not found</strong>
{if $mp4box_status.error}
<br /><span style="color:#e70000">{$mp4box_status.error}</span>
{/if}
{/if}
</div>
<br>
<div class="cb_title">
PHP Specific
</div>
<div class="cb_row font_12 font_ah" style="margin-top:15px">
{check_module_path path='php' get_path='true' assign='php_status'}
<img src="{$imageurl}/{if $php_status.status=='ok'}tick.png{else}alert.png{/if}"
style="position:absolute"/><strong style="font-size:16px; margin-left:21px">PHP CLI</strong>
<div style="color:#999">PHP CLI is used to preform video conversion in a background process.
<a href="http://php.net/manual/en/features.commandline.php">Learn more</a></div>
{if $php_status.status=='ok'}
Version <strong>{$php_status.version}</strong> &#8226; Expected Path <strong>{get_binaries path=php type=server}</strong>
{else}
<strong>PHP is not found</strong>
{if $php_status.error}
<br /><span style="color:#e70000">{$php_status.error}</span>
{/if}
{/if}
</div>

View file

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

View file

@ -0,0 +1,160 @@
<h2>Collection Manager</h2>
<img src="{$imageurl}/dot.gif" class="sarch_button" onclick="toggle_search('searchdiv')" />
<div class="search_box" id="searchdiv" {if $smarty.cookies.show_searchdiv_search!='show'} style="display:none"{/if}>
<form action="collection_manager.php" method="get" name="search_collections">
<table width="400" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="106" align="right"><label for="title">Collection name</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="collectionid">Collection id</label></td>
<td><input name="collectionid" type="text" class="input" id="collectionid" value="{'collectionid'|get_form_val:true}" //></td>
</tr>
<tr>
<td align="right"><label for="tags">Collection 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">Userid</td>
<td><input name="userid" type="text" class="input" id="userid" value="{'userid'|get_form_val:true}" /></td>
</tr>
<tr>
<td align="right">Active</td>
<td><label for="active"></label>
<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">Broadcast</td>
<td><label for="broadcast"></label>
<select name="broadcast" id="broadcast" class="input">
<option value="" ></option>
<option value="public" {if $smarty.get.broadcast=='public'} selected="selected"{/if}>Public</option>
<option value="private" {if $smarty.get.broadcast=='private'} selected="selected"{/if}>Private</option>
</select></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">Type</td>
<td>
<select name="collection_type" id="collection_type">
<option value="" ></option>
{foreach from=$cbcollection->types item=name key=type}
<option value="{$type}" {if $smarty.get.collection_type == $type}selected="selected"{/if}>{$name}</option>
{/foreach}
</select>
</td>
</tr>
<tr>
<td align="right">Order</td>
<td>
<select name="order" id="order">
<option value="" ></option>
<option value="collection_id" {if $smarty.get.order == 'collection_id'}selected="selected"{/if}>ID</option>
<option value="total_objects" {if $smarty.get.order == 'total_objects'}selected="selected"{/if}>Total Items</option>
<option value="collection_name" {if $smarty.get.order == 'collection_name'}selected="selected"{/if}>Name</option>
<option value="views" {if $smarty.get.order == 'views'}selected="selected"{/if}>Views</option>
</select>
</td>
</tr>
</table>
<br />
<input type="submit" name="search" id="search" value="Search Form" class="button"/>
</form>
</div>
<form name="video_manage" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle"><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="return confirm_it('Are you sure you want to delete selected collection(s)')"/>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="75" class="head">Collection ID</td>
<td class="head">Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
{if $c}
{section name=list loop=$c}
<li class="clearfix myAdminList" style="background:#{cycle values='FFFFFF,EEEEEE'}"
OnMouseOver="$('#vid_opt-{$c[list].collection_id}').show()"
OnMouseOut="$('#vid_opt-{$c[list].collection_id}').hide()">
<div class="moveL PhotoCheckBox">
<div align="center"><input name="check_collection[]" type="checkbox" id="check_collection" value="{$c[list].collection_id}" /></div>
</div>
<div class="moveL PhotoID">{$c[list].collection_id}</div>
<div class="moveL clearfix PhotoDetails" style="width:88%; min-height:inherit;">
<div class="moveL AdminPhotoThumb">
<img src="{$cbcollection->get_thumb($c[list],'small',TRUE)}" style="padding:2px; border:1px solid #ccc" />
</div>
<div class="moveL">
<a style="font-size:12px;" href="{$baseurl}/admin_area/edit_collection.php?collection={$c[list].collection_id}">{$c[list].collection_name}</a> ({$c[list].total_objects} {$c[list].type})
<div style="height:4px;"></div>
<span class="vdo_sets">
Featured:<strong>{$c[list].featured} </strong> &#8226;
Active:<strong>{$c[list].active}</strong> &#8226;
Type:<strong>{$c[list].type}</strong> &#8226;
Uploaded:<strong>{$c[list].date_added|niceTime}</strong> &#8226;
User:<strong><a href="view_user.php?uid={$c[list].userid}">{if $c[list].username}{$c[list].username}{else}{$c[list].userid|get_username}{/if}</a></strong>
</span>
<div id="vid_opt-{$c[list].collection_id}" style="display:none" class="AdminPhotoActions">
<a href="edit_collection.php?collection={$c[list].collection_id}">Edit</a> |
<a href="{$baseurl}/view_collection.php?cid={$c[list].collection_id}" target="_blank">View</a> {if $c[list].featured == yes} |
<a href="?make_unfeature={$c[list].collection_id}">Make Unfeatured</a> {/if}
{if $c[list].featured == no} |
<a href="?make_feature={$c[list].collection_id}">Make Featured</a> {/if}
{if $c[list].active == yes} |
<a href="?deactivate={$c[list].collection_id}">Deactivate</a> {else} |
<a href="?activate={$c[list].collection_id}">Activate</a> {/if} |
<a href="?delete_collection={$c[list].collection_id}">Delete</a>
</div>
</div>
</div>
</li>
{/section}
{else}
<div align="center"><strong><em>No Photo Found</em></strong></div>
{/if}
<table width="100%" 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="return confirm_it('Are you sure you want to delete selected collection(s)')"/>
</td>
</tr>
</table>
</form>
{include file="$style_dir/blocks/pagination.html" }

View file

@ -0,0 +1,151 @@
<span class="page_title">Comments Manager</span>
<br />
<div style="padding:10px;">
<div style="clear:both; height:5px;"></div>
<a href="?type=v" title="View Video Comments">View Video Comments</a> | <a href="?type=t">View Topic Posts</a> | <a href="?type=c">View Channel Comments</a> | <a href="?type=cl">View Collection Comments</a> | <a href="?type=p">View Photo Comments</a>
<div style="clear:both; height:5px;"></div>
</div>
<form name="comments_manager" method="post">
<table width="100%" 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="mark_spam" value="Mark Spam" class="button" id="mark_spam"/>
<input type="submit" name="not_spam" value="Not Spam" class="button" id="not_spam"/>
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected comment(s)')"/>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="40" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" class="head">CID</td>
<td class="head">Comment</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
{if $comments}
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{foreach from=$comments item=comment}
{if $comment.anonym_name != ""}
{assign var=comment_owner value=$comment.anonym_name}
{else}
{assign var=comment_owner value=$userquery->get_user_details($comment.3)}
{/if}
<tr class="video_opt_td" id="comment_{$comment.comment_id}" style="background-color:{if $comment.spam_votes > 0} #ffd7d7{else}{$bgcolor}{/if};">
<td width="40" align="center" valign="top" class="video_opt_td"><input name="check_comments[]" type="checkbox" id="check_comments" value="{$comment.comment_id}" /></td>
<td width="50" align="left" valign="top" class="video_opt_td">{$comment.comment_id}</td>
<td valign="top" class="video_opt_td" onmouseover="$('#comm_opt-{$comment.comment_id}').show()" onmouseout="$('#comm_opt-{$comment.comment_id}').hide()" >
{if $type == '' || $type == 'v'}
<span class="vdo_sets">
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong>{$comment_owner}</strong> {/if} commented on <strong>{$comment.date_added|date_format}</strong> on a video named <span style="text-transform:none"><a href="{videoLink vdetails=$comment}" title="{$comment.title}">{$comment.title|truncate:40}</a></span>
</span>
<div style="height:5px; clear:both;"></div>
<span style="font-size:11px;" id="{$comment.comment_id}" class="edit_comment">{$comment.comment}</span>
<div style="height:20px;">
<div id="comm_opt-{$comment.comment_id}" class="vid_opts" style="display:none">
<a href="{videoLink vdetails=$comment}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a> |
<a href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> <a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a> |
<a href="#" onclick="delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a>
</div></div>
</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
</tr>
{/if}
{if $type == 't'}
<span class="vdo_sets">
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong>{$comment_owner}</strong> {/if} commented on <strong>{$comment.date_added|date_format}</strong> on a topic named <span style="text-transform:none"><a href="{$cbgroup->topic_link($comment)}" title="{$comment.topic_title}">{$comment.topic_title|truncate:40}</a></span>
</span>
<div style="height:5px; clear:both;"></div>
<span style="font-size:11px;" class="edit_comment">{$comment.comment}</span>
<div style="height:20px;">
<div id="comm_opt-{$comment.comment_id}" class="vid_opts" style="display:none">
<a href="{$cbgroup->topic_link($comment)}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a> |
<a href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> <a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a> |
<a href="#" onclick="delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a>
</div></div>
{/if}
{if $type == 'c'}
<span class="vdo_sets">
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong>{$comment_owner}</strong> {/if} commented on <strong>{$comment.date_added|date_format}</strong> on a channel named <span style="text-transform:none"><a href="{$userquery->profile_link($comment)}" title="{$comment.username}">{$comment.username|truncate:40}</a></span>
</span>
<div style="height:5px; clear:both;"></div>
<span style="font-size:11px;" class="edit_comment">{$comment.comment}</span>
<div style="height:20px;">
<div id="comm_opt-{$comment.comment_id}" class="vid_opts" style="display:none">
<a href="{$userquery->profile_link($comment)}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a> |
<a href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> <a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a> |
<a href="#" onclick="delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a>
</div></div>
{/if}
{if $type == 'cl'}
<span class="vdo_sets">
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong>{$comment_owner}</strong> {/if} commented on <strong>{$comment.date_added|date_format}</strong> on a collection named <span style="text-transform:none"><a href="{$cbcollection->collection_links($comment,'vc')}" title="{$comment.collection_name}">{$comment.collection_name|truncate:40}</a></span>
</span>
<div style="height:5px; clear:both;"></div>
<span style="font-size:11px;" class="edit_comment">{$comment.comment}</span>
<div style="height:20px;">
<div id="comm_opt-{$comment.comment_id}" class="vid_opts" style="display:none">
<a href="{$cbcollection->collection_links($comment,'vc')}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a> |
<a href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> <a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a> |
<a href="#" onclick="delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a>
</div></div>
{/if}
{if $type == 'p'}
<span class="vdo_sets">
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong>{$comment_owner}</strong> {/if} commented on <strong>{$comment.date_added|date_format}</strong> on a photo named <span style="text-transform:none"><a href="{$cbphoto->photo_links($comment,'view_photo')}" title="{$comment.photo_title}">{$comment.photo_title|truncate:40}</a></span>
</span>
<div style="height:5px; clear:both;"></div>
<span style="font-size:11px;" class="edit_comment">{$comment.comment}</span>
<div style="height:20px;">
<div id="comm_opt-{$comment.comment_id}" class="vid_opts" style="display:none">
<a href="{$cbphoto->photo_links($comment,'view_photo')}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a> |
<a href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> <a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a> |
<a href="#" onclick="delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a>
</div></div>
{/if}
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/foreach}
</table>
{else}
<div align="center"><em>{lang code='no_comments'}</em></div>
{/if}
</form>
<div style="height:10px; clear:both"></div>
{include file="$style_dir/blocks/pagination.html" }

View file

@ -0,0 +1,86 @@
<script>
var labRUrl = '{$smarty.const.ADMIN_BASEURL}/lab_resources';
{literal}
function experimentPart(mode)
{
if(mode=='getPreDetails')
$('#expOut').html('');
var victim = $('#victim option:selected').val();
var expHeads =
{
'getPreDetails' : "Getting modules and video details...",
'convertVideo1' : "Testing "+victim+" conversion Phase 1.."
}
$('#expOut').append('<div class="expHead" onClick="$(\'#'+mode+'\').slideToggle()" >'+expHeads[mode]+'</div>');
$('#expOut').append('<div id="loadinDetails">please wait...</div>');
$.post(labRUrl+'/experiments.php',{
"experiment":"yes",mode : mode,"victim":victim},
function(data){
var dataMsg = "";
var dataErr = "";
if(data.err)
dataErr = data.err;
if(data.msg)
dataMsg = data.msg;
$('#loadinDetails').after("<div id='"+mode+"'>"+dataMsg+dataErr+"</div>");
$('#loadinDetails').remove();
if(data.status)
{
$('#'+mode).slideToggle();
experimentPart(data.status)
}
}
,"json");
}
{/literal}
</script>
{literal}
<style>
.expHead{ color:#fff; font-size:13px; font-weight:bold; background-color:#0099cc; padding:3px; font-family:Arial, Helvetica, sans-serif;
margin-bottom:5px; cursor:pointer}
#expOut{margin-top:10px;}
.expMsg{margin-bottom:20px}
.expOK{ height:16px; {/literal}background:url({$imageurl}/button_ok.png){literal} no-repeat; padding-left:18px; color:#2C7300; font-weight:bold}
.expErr{ height:16px; {/literal}background:url({$imageurl}/error.png){literal} no-repeat; padding-left:18px; color:#ed0000; font-weight:bold}
.code{background-color:#ccc; width:100%; overflow:auto; height:30px; border:none}
</style>
{/literal}
<h2>Conversion lab - <strong>&alpha;</strong>lpha</h2>
<img src="{$imageurl}/botal.png"><br />
<div style="margin:10px 0px">
Conversion environment for clipbucket users so they can test why their videos are not converting.
This test is in early beta stages, we are hopeful to get best outcome results.</div>
<div style="font-family:Tahoma; font-size:11px; margin-bottom:10px">
<span>Current scientists</span> : <strong>Arslan Hassan</strong><br>
<span>Current version</span> : <strong>1.0 &alpha;</strong></div>
<span style="font-size:13px; font-weight:bold">Choose your victim</span>
<label for="victim"></label>
<select name="victim" id="victim" style="border:1px solid #DBDBDB; padding:2px">
{if $vdoFiles}
{foreach from=$vdoFiles item=vFile}
<option value="{$vFile.name}">{$vFile.name}</option>
{/foreach}
{else}
<option value="">No victim found</option>
{/if}
</select>
<input type="submit" name="button" id="button" value="Start Experiment..." onClick="experimentPart('getPreDetails')">
<div id="expOut">
</div>

View file

@ -0,0 +1,18 @@
<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="page_content" cols="75" rows="6" style="width:100%;">{get_announcement}</textarea>
<script type="text/javascript">
{literal}
new nicEditor({fullPanel : true,maxHeight:350}).panelInstance('page_content');
{/literal}
</script>
<br />
<input type="submit" name="update" value="Update" />
</form></td>
</tr>
</table>

View file

@ -0,0 +1,135 @@
{assign var=requiredFields value=$cbcollection->load_required_fields($data)}
{assign var=otherFields value=$cbcollection->load_other_fields($data)}
<form action="" method="post" enctype="multipart/form-data" name="edit_collection" id="edit_collection">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="50%" valign="top">
<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.collection_name}</div></td>
<td width="20" align="right" class="right_head">&nbsp;</td>
</tr>
</table>
<div style="width:97%; margin:auto; padding:10px">
<ul class="admin_links" style="font:bold 11px Tahoma;">
{if $data.active!='yes'}
<li><a href="edit_collection.php?collection={$data.collection_id}&amp;mode=ac">Activate</a></li>
{else}
<li><a href="edit_collection.php?collection={$data.collection_id}&amp;mode=dac">Deactivate</a></li>
{/if}
{if $data.featured!='yes'}
<li><a href="edit_collection.php?collection={$data.collection_id}&amp;mode=mcf">Make Featured</a></li>
{else}
<li><a href="edit_collection.php?collection={$data.collection_id}&amp;mode=mcuf">Make Unfeatured</a></li>
{/if}
<li><a href="javascript:void(0)" onClick="javascript:Confirm_Delete('collection_manager.php?delete_collection={$data.collection_id}')">Delete This Collection</a></li>
</ul>
</div>
<input name="admin" type="hidden" id="admin" value="true" />
<input name="collection_id" type="hidden" value="{$data.collection_id}" />
<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|get_username}</a></td>
</tr>
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Collection Details</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td width="200"><strong>Collection ID</strong></td>
<td><input disabled="disabled" name="collecionID" type="text" id="collecionID" value="{$data.collection_id}" size="45" /></td>
</tr>
{foreach from=$requiredFields item=field}
<tr>
<td width="200" ><strong>{$field.title} :</strong></td>
<td>{$field.hint_1}<br />
{$formObj->createField($field)}<br/>
{$field.hint_2}</td>
</tr>
{/foreach}
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Collection Stats</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td width="200"><strong>Total Objects</strong></td>
<td><input name="total_objects" type="text" id="total_objects" value="{$data.total_objects}" /></td>
</tr>
<tr>
<td width="200"><strong>Total Comments</strong></td>
<td><input name="total_comments" type="text" id="total_comments" value="{$data.total_comments}" /></td>
</tr>
</table>
</fieldset>
<input type="submit" class="button" value="Update Collection Details" style="margin:15px 0px 0px 15px" name="update_collection">
</td>
<td width="50%" valign="top">
<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">Items</div></td>
<td width="20" align="right" class="right_head">&nbsp;</td>
</tr>
<tr>
<td>
{if $objects}
{section name=list loop=$objects}
{if $data.type == 'photos'}
<div class="moveL" style="padding:2px; border:1px solid #ccc; margin:4px;">
{get_photo details=$objects[list] output='html' title=$photos[list].photo_title}
</div>
{/if}
{if $data.type == 'videos'}
<div class="moveL" style="padding:2px; border:1px solid #ccc; margin:4px;">
<img src="{get_thumb vdetails=$objects[list]}" width="120" height="70" />
</div>
{/if}
{/section}
<div style="height:5px; clear:both;"></div>
{assign var=rest value=$data.total_objects-4}
<a style="display:block; font:bold 11px Tahoma; text-align:center; padding:4px; background:#fafafa;border:1px solid #aaa;" href="manage_items.php?collection={$data.collection_id}&amp;type={$data.type}">Manage Items{if $rest && $rest>0} - {$rest} more item{if $rest>1}s{/if}{/if}</a>
{else}
<div align="center" style="font:bold 11px Tahoma; margin-top:10px;">Collection has 0 items</div>
{/if}
</td>
</tr>
</table>
<fieldset class="fieldset">
<legend>Other Fields</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
{foreach from=$otherFields item=field}
<tr>
<td width="200" ><strong>{$field.title} :</strong></td>
<td>{$field.hint_1}<br />
{$formObj->createField($field)}<br/>
{$field.hint_2}</td>
</tr>
{/foreach}
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Collection Preview</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="200" ><strong>Collection Preview :</strong></td>
<td><img style="padding:2px; border:1px solid #ccc;" src="{$cbcollection->get_thumb($data,NULL,TRUE)}" />
</label><input type="checkbox" value="{$data.collection_id}" name="delete_preview" id="del_{$data.collection_id}_preview" /><label for="del_{$data.collection_id}_preview">Delete Preview</label></td>
</tr>
<tr>
<td width="200" ><strong>Upload New :</strong></td>
<td><input type="file" name="collection_thumb" id="collection_thumb" ></td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
</form>

View file

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

View file

@ -0,0 +1,150 @@
<form action="" method="post" name="edit_photo" id="edit_photo">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="50%" valign="top">
<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.photo_title}</div></td>
<td width="20" align="right" class="right_head">&nbsp;</td>
</tr>
</table>
<div style="width:98%; margin:auto; padding:10px">
<ul class="admin_links" style="font:bold 11px Tahoma;">
{if $data.collection_id != 0}
<li><a href="edit_collection.php?collection={$data.collection_id}">Edit Collection ({$data.collection_id|get_collection_field})</a></li>
{else}
<li><a href="#collection_id">Photo is orpahn</a></li>
{/if}
{if $data.featured!='yes'}
<li><a href="edit_photo.php?photo={$data.photo_id}&amp;mode=fp">Make Featured</a></li>
{else}
<li><a href="edit_photo.php?photo={$data.photo_id}&amp;mode=ufp">Make Unfeatured</a></li>
{/if}
<li><a href="recreate_thumbs.php?mode=single&amp;photo={$data.photo_id}">Re-create Photo</a></li>
<li><a href="javascript:void(0)" onClick="javascript:Confirm_Delete('photo_manager.php?delete_photo={$data.photo_id}')">Delete This Photo</a></li>
</ul>
</div>
<input name="admin" type="hidden" id="admin" value="true" />
<input name="photo_id" type="hidden" value="{$data.photo_id}" />
<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|get_username}</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>Photo ID</strong></td>
<td>
<input disabled="disabled" name="photoid" type="text" id="photoid" value="{$data.photo_id}" size="45" />
</td>
</tr>
<tr>
<td width="200"><strong>Photo Key</strong></td>
<td>
<input disabled="disabled" name="photokey" type="text" id="photokey" value="{$data.photo_key}" size="45" />
</td>
</tr>
<tr>
<td width="200"><strong>Filename</strong></td>
<td>
<input disabled="disabled" name="filename" type="text" id="filename" value="{$data.filename}" size="45" />
</td>
</tr>
<tr>
<td width="200"><strong>Extension</strong></td>
<td>
<input disabled="disabled" name="extension" type="text" id="extension" value="{$data.ext}" size="45" />
</td>
</tr>
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Photo Details</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$requiredFields item=field}
<tr>
<td width="200" ><strong>{$field.title} :</strong></td>
<td>{$field.hint_1}<br />
{$formObj->createField($field)}
{$field.hint_2}</td>
</tr>
{/foreach}
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Photo 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" id="views" value="{$data.views}" /></td>
</tr>
<tr>
<td width="200"><strong>Total Favorites:</strong></td>
<td><input name="total_favorites" id="total_favorites" value="{$data.total_favorites}" /></td>
</tr>
<tr>
<td width="200"><strong>Total Comments:</strong></td>
<td><input name="total_comments" id="total_comments" value="{$data.total_comments}" /></td>
</tr>
<tr>
<td width="200"><strong>Total Downloads:</strong></td>
<td><input name="downloaded" id="downloaded" value="{$data.downloaded}" /></td>
</tr>
<tr>
<td width="200"><strong>Rating:</strong></td>
<td><input name="rating" id="rating" disabled="disabled" value="{$data.rating}" /></td>
</tr>
<tr>
<td width="200"><strong>Rated By:</strong></td>
<td><input name="rated_by" id="rated_by" disabled="disabled" value="{$data.rated_by}" /></td>
</tr>
<tr>
<td width="200"><strong>Voters:</strong></td>
<td><textarea name="voters" id="voters" disabled="disabled">{$data.voters}</textarea></td>
</tr>
</table>
</fieldset>
<input type="submit" class="button" value="Update Photo Details" style="margin:15px 0px 0px 15px" name="update">
</td>
<td width="50%" valign="top">
<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">Photo Preview</div></td>
<td width="20" align="right" class="right_head">&nbsp;</td>
</tr>
</table>
<div style="padding:5px">
<div align="center">{get_photo details=$data size='l' output='html' style='max-width:600px'}</div>
</div>
<fieldset class="fieldset">
<legend>Other Fields</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$otherFields item=field}
<tr>
<td width="200" ><strong>{$field.title} :</strong></td>
<td>{$field.hint_1}<br />
{$formObj->createField($field)}
{$field.hint_2}</td>
</tr>
{/foreach}
</table>
</fieldset>
</td>
</tr>
</table>
</table>
</form>

View file

@ -0,0 +1,216 @@
{assign var='custom_upload_fields' value=$Upload->load_custom_upload_fields($data,TRUE)}
{assign var='video_fields' value=$Upload->load_video_fields($data)}
{if $data.title neq ""}
<form action="" method="post" name="Edit Member" id="Edit Member">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="50%" valign="top">
<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">&nbsp;</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>-->
<ul class="admin_links">
<li><a href="{videoLink vdetails=$data}">Watch this video</a></li>
{if $data.active!='yes'}
<li><a href="edit_video.php?video={$data.videoid}&amp;mode=activate">Activate</a></li>
{else}
<li><a href="edit_video.php?video={$data.videoid}&amp;mode=deactivate">Deactivate</a></li>
{/if}
{if $data.featured!='yes'}
<li><a href="edit_video.php?video={$data.videoid}&amp;mode=featured">Make Featured</a></li>
{else}
<li><a href="edit_video.php?video={$data.videoid}&amp;mode=unfeature">Make Unfeatured</a></li>
{/if}
<li><a href="javascript:void(0)" onClick="javascript:Confirm_Delete('video_manager.php?delete_video={$data.videoid}')">Delete This Video</a></li>
</ul>
</div>
<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|get_username}</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 Conversion 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}&amp;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,FALSE,TRUE,FALSE)}
{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;max-width:120px" /><br />
<input type="radio" value="{$vid_thumb|getname}.{$vid_thumb|getext}" id="{$vid_thumb|getname}" name="default_thumb" {if $data.default_thumb==$vid_thumb|get_thumb_num} checked="checked"{/if} />Default</label><br />
{if $vid_thumb|getname!='processing'}
<a href="?video={$data.videoid}&delete={$vid_thumb|getname}.{$vid_thumb|getext}">Delete</a>
{/if}
</div>
{/foreach}
</td>
</tr>
{foreach from=$requiredFields item=field}
{/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>Custom Upload Fields</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$custom_upload_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>
</td>
<td width="50%" valign="top"><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">Viewing {$data.title}</div></td>
<td width="20" align="right" class="right_head">&nbsp;</td>
</tr>
</table>
<div style="padding:5px">
{FlashPlayer vdetails = $data width='100%' autoplay='false'}
</div>
{foreach from=$video_fields item=field_group}
<fieldset class="fieldset">
<legend>{$field_group.group_name}</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$field_group.fields item=field}
<tr>
<td width="200"><strong>{$field.title} </strong></td>
<td >{if $field.hint_1}{$field.hint_1}<br />{/if}
{$formObj->createField($field)}
{if $field.hint_2}<br />{$field.hint_2}{/if}</td>
</tr>
{/foreach}
</table>
</fieldset>
{/foreach}
</td>
</tr>
<tr>
<td colspan="2" valign="top">{assign var=id value=$data.videoid}{include file="$style_dir/blocks/comments.html" type=v id=$data.videoid link="video=$id"}</td>
</tr>
</table>
</form>
{/if}

View file

@ -0,0 +1,71 @@
<span class="page_title">Editor's Pick</span>
<form name="editors_pick" action="" method="post">
<table width="100%" 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" value="Update" name="update_order" class="button" />
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected video(s)')"/>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" class="head">Order</td>
<td class="head">Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{assign var = bgcolor value = ""}
{section name=list loop=$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="left" valign="top" class="video_opt_td"><input name="ep_order_{$videos[list].pick_id}" type="text" id="order" style="border:1px solid #999; padding:2px; width:30px" value="{$videos[list].sort}" size="5" maxlength="5" /></td>
<td valign="top" class="video_opt_td"
onmouseover="$('#ep_opts-{$videos[list].videoid}').show()"
onmouseout="$('#ep_opts-{$videos[list].videoid}').hide()"
>
<a href="{$baseurl}/watch_video.php?v={$videos[list].videokey}" target="_blank" style="text-indent:10px">
{$videos[list].title}
</a> &#8211;<a href="?remove={$videos[list].videoid}"> Remove from editor's pick</a>&#8212;
<span class="vdo_sets">
Featured:<strong>{$videos[list].featured} </strong> &#8226;
Active:<strong>{$videos[list].active}</strong> &#8226;
Status:<strong>{$videos[list].status}</strong>
</span>
<br />
<div id="ep_opts-{$videos[list].videoid}" style="display:none" class="vid_opts">
<a href="?remove={$videos[list].videoid}">Remove from editor's pick</a>
</div>
</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
<table width="100%" 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" value="Update" name="update_order" class="button" />
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected video(s)')"/>
</td>
</tr>
</table>
</form>

View file

@ -0,0 +1,102 @@
<h2>Email Settings</h2>
<form action="" method="post" enctype="multipart/form-data" name="player_settings">
<fieldset class="fieldset" style="border:none">
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td width="301" valign="top"><strong><label for="mail_type">Mailer</label></strong><br />
Select Mailer Type php Mail() or SMTP</label></td>
<td width="813" valign="top">
<select name="mail_type" id="mail_type">
<option value="mail" {if $row.mail_type=='mail'} selected="selected"{/if}>PHP mail()</option>
<option value="smtp" {if $row.mail_type=='smtp'} selected="selected"{/if}>smtp</option>
</select></td>
</tr>
<tr>
<td valign="top"><strong><label for="smtp_host">SMTP Host</label><br />
</strong>If using smtp, please enter its server</td>
<td valign="top">
<input type="text" name="smtp_host" id="smtp_host" value="{$row.smtp_host}" /></td>
</tr>
<tr>
<td valign="top"><strong><label for="smtp_port">SMTP Port</label></strong><br />
if using smtp, Set SMTP server port</td>
<td valign="top">
<input type="text" name="smtp_port" id="smtp_port" value="{$row.smtp_port}" /></td>
</tr>
<tr>
<td valign="top"><strong><label for="smtp_user">SMTP Username</label></strong><br />
if using smtp, please enter SMTP username</td>
<td valign="top">
<input type="text" name="smtp_user" id="smtp_user" value="{$row.smtp_user}" /></td>
</tr>
<tr>
<td valign="top"><strong><label for="smtp_pass">SMTP Password</label></strong><br />
Enter SMTP password</td>
<td valign="top">
<input type="password" name="smtp_pass" id="smtp_pass" value="{$row.smtp_pass}" /></td>
</tr>
<tr>
<td valign="top"><strong>SMTP Auth</strong><br />
Enable SMTP Authentication
</td>
<td valign="top"><select name="smtp_auth" id="smtp_auth">
<option value="yes" {if $row.smtp_auth=='yes'} selected="selected"{/if}>yes</option>
<option value="no" {if $row.smtp_auth=='no'} selected="selected"{/if}>no</option>
</select></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
</table>
<div align="left"><input type="submit" class="button" value="Update" name="update_settings" /></div>
</fieldset>
</form>
<div style="height:10px"></div>
<h2>Email Templates Settings</h2>
<div style="height:10px"></div>
<div style="padding-right:10px">
{assign var=templates value=$cbemail->get_templates()}
{if $templates}<form name="email_templates" method="post">
<ul class="optionsLists" >
{foreach from=$templates item=template name=etemp}
<li {if $smarty.foreach.etemp.iteration=='1'} class="selected"{/if}
onclick="
$('.tempselected').removeClass('selected').hide();
$('#template-{$template.email_template_id}').show().addClass('tempselected');
$('.selected').removeClass('selected');
$(this).toggleClass('selected');
">{$template.email_template_name}</li>
{/foreach}
</ul>
<div class="optionsListsCont">
{foreach from=$templates item=template name=etemp}
<div id="template-{$template.email_template_id}"
{if $smarty.foreach.etemp.iteration!='1'} style="display:none" {else}class="tempselected"{/if}>
<label for="subject{$template.email_template_id}">Email Subject</label>
<div class="templateCodeCont" style="padding:3px"><input type="text" name="subject{$template.email_template_id}" id="subject{$template.email_template_id}"
value="{$template.email_template_subject|form_val}" style="border:0px; background:none; width:100%" /></div>
<br />
<label for="message{$template.email_template_id}">Email message</label>
<div class="templateCodeCont"><textarea name="message{$template.email_template_id}" cols="60" rows="8" id="message{$template.email_template_id}" class="templateCode">{$template.email_template|form_val}</textarea></div></td>
</div>
{/foreach}
<div align="right" style="margin-top:5px"><input type="submit" class="button" value="Save Templates" name="update" /></div>
</div></form>
{/if}
</div>

View file

@ -0,0 +1,100 @@
{if $mode == 'view'}
<span class="page_title">Flagged Collections Manager</span>
<form name="flagged_photo" method="post" id="flagged_photo">
<table width="100%" 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="delete_selected" value="Delete Collection" class="button" onclick="return confirm_it('Are you sure you want to delete these collection(s)')"/>
<input type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected collection(s)')"/>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="75" align="left" class="head">Collection ID</td>
<td class="head">Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
{if $c}
{section name=list loop=$c}
<li class="clearfix myAdminList" style="background:#{cycle values='FFFFFF,EEEEEE'}"
OnMouseOver="$('#vid_opt-{$c[list].collection_id}').show()"
OnMouseOut="$('#vid_opt-{$c[list].collection_id}').hide()">
<div class="moveL PhotoCheckBox">
<div align="center"><input name="check_collect[]" type="checkbox" id="check_collection" value="{$c[list].collection_id}" /></div>
</div>
<div class="moveL PhotoID">{$c[list].collection_id}</div>
<div class="moveL clearfix PhotoDetails" style="width:88%;">
<div class="moveL AdminPhotoThumb">
<img src="{$cbcollection->get_thumb($c[list],'small',TRUE)}" style="padding:2px; border:1px solid #ccc" />
</div>
<div class="moveL">
<a style="font-size:12px;" href="{$baseurl}/admin_area/edit_collection.php?collection={$c[list].collection_id}">{$c[list].collection_name}</a> ({$c[list].total_objects} {$c[list].type})
<div style="height:4px;"></div>
<span class="vdo_sets">
Featured:<strong>{$c[list].featured} </strong> &#8226;
Uploaded:<strong>{$c[list].date_added|niceTime}</strong> &#8226;
User:<strong><a href="view_user.php?uid={$c[list].userid}">{if $c[list].username}{$c[list].username}{else}{$c[list].userid|get_username}{/if}</a></strong> &#8226;
Flag: <strong>{$c[list].total_flags}</strong>
</span>
<div style="height:4px;"></div>
<div id="vid_opt-{$c[list].collection_id}" style="display:none" class="AdminPhotoActions">
<a href="{$baseurl}/admin_area/edit_collection.php?collection={$c[list].collection_id}">Edit Collection</a> |
<a href="{$cbcollection->collection_links($c[list],'view')}" target="_blank">View Collection</a> | <a href="?delete_collection={$c[list].collection_id}">Delete Collection</a> | <a href="?mode=view_flags&cid={$c[list].collection_id}">View Flags</a> | <a href="?delete_flags={$c[list].collection_id}">Delete Flags</a>
</div>
</div>
</div>
</li>
{/section}
{else}
<div align="center"><strong>No Flags Found</strong></div>
{/if}
<table width="100%" 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="delete_selected" value="Delete Photos" class="button" onclick="return confirm_it('Are you sure you want to delete these photo(s)')"/>
<input type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected photo(s)')"/>
</td>
</tr>
</table>
</form>
{include file="$style_dir/blocks/pagination.html" }
{/if}
{if $mode == 'view_flags'}
<span class="page_title">Viewing {$collection.colleciton_name} flags</span> &#8212; <a href="{$cbcollection->collection_links($collection,'view')}">View Collection</a> &#8226; <a href="edit_collection.php?collection={$collection.collection_id}">Edit Collection</a> &#8226; <a href="?delete_flags={$collection.collection_id}">Delete Flags</a> &#8226; <a href="?delete_collection={$collection.collection_id}">Delete Collection</a>
<div style="margin-bottom:10px"></div>
<form name="video_manage" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">&nbsp;</td>
<td class="head">Flag Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
{section name=list loop=$flags}
<li class="clearfix myAdminList" style="background:#{cycle values='FFFFFF,EEEEEE'}">
<div class="moveL PhotoID" style="width:30px;">{$smarty.section.list.iteration}</div>
<div class="moveL">
Reported as "{$flags[list].flag_type|flag_type}" by {$flags[list].userid|get_username} {$flags[list].date_added|niceTime}
</div>
</li>
{/section}
</form>
{/if}

View file

@ -0,0 +1,148 @@
{if $mode=='view'}
<span class="page_title">Flagged Groups Manager</span>
<!-- DIsplaying Videos -->
<form name="flagged_video" method="post" id="flagged_video">
<table width="100%" 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="delete_selected" value="Delete Groups" class="button" onclick="return confirm_it('Are you sure you want to delete these group(s)')"/>
<input type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected group(s)')"/>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" align="left" class="head">GP-ID</td>
<td class="head">Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{assign var = bgcolor value = ""}
{section name=gp_list loop=$groups}
<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="{$groups[gp_list].group_id}" /></td>
<td width="50" align="left" valign="top" class="video_opt_td">{$groups[gp_list].group_id}</td>
<td valign="top" class="video_opt_td"
onmouseover="$('#vid_opt-{$groups[gp_list].group_id}').show()"
onmouseout="$('#vid_opt-{$groups[gp_list].group_id}').hide()" >
<div style="float:left; width:45px; height:34px;" >
<img src="{$cbgroup->get_group_thumb($groups[gp_list])}" border="1" class="mid_user_thumb" />
</div>
<a href="{$baseurl}/view_group.php?url={$groups[gp_list].group_url}" target="_blank" style="text-indent:10px">
{$groups[gp_list].group_name}
</a> &#8212;
<span class="vdo_sets">
Group Owner:<strong> <a href="view_user.php?uid={$groups[gp_list].userid}">{$groups[gp_list].userid|get_username}</a></strong> &#8226;
Group Type:<strong> {if $groups[gp_list].group_privacy =="0"}Public{elseif $groups[gp_list].group_privacy =="1"}Private{else}Invited{/if}</strong> &#8226;
Group Status:<strong>{if $groups[gp_list].active=="yes"} Active{else}Inactive{/if}</strong> &#8226;
Group Members:<strong>{$groups[gp_list].total_members|number_format}</strong> &#8226;
Flags:<strong>{$groups[gp_list].total_flags}</strong>
</span>
<br />
<div id="vid_opt-{$groups[gp_list].group_id}" style="display:none" class="vid_opts">
<a href="{group_link details=$groups[gp_list]}" target="_blank">View</a> |
<a href="edit_group.php?group_id={$groups[gp_list].group_id}">Edit</a>
{if $groups[gp_list].active == yes} |
<a href="?deactivate={$groups[gp_list].group_id}">Deactivate</a> {else} |
<a href="?activate={$groups[gp_list].group_id}">Activate</a> {/if} |
<a href="{$baseurl}/manage_groups.php?mode=manage_videos&gid={$groups[gp_list].group_id}">Manage</a> |
<a href="?delete_group={$groups[gp_list].group_id}">Delete</a> |
<a href="?mode=view_flags&gid={$groups[gp_list].group_id}">View Flags</a> |
<a href="?delete_flags={$groups[gp_list].group_id}">Delete Flags</a>
</div>
</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
<table width="100%" 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="delete_selected" value="Delete Groups" class="button" onclick="return confirm_it('Are you sure you want to delete these group(s)')"/>
<input type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected group(s)')"/>
</td>
</tr>
</table>
</form>
<!-- DIsplaying Videos Ends-->
{include file="$style_dir/blocks/pagination.html" }
{/if}
{if $mode=='view_flags'}
<span class="page_title">Viewing {$group.group_name} flags</span> &#8212; <a href="{group_link details=$group}">View Group</a> &#8226; <a href="edit_group.php?group_id={$group.group_id}">Edit Group</a> &#8226; <a href="?delete_flags={$group.group_id}">Delete Flags</a> &#8226; <a href="?delete_group={$group.group_id}">Delete Group</a>
<div style="margin-bottom:10px"></div>
<!-- DIsplaying Videos -->
<form name="video_manage" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">&nbsp;</td>
<td class="head">Flag Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{assign var = bgcolor value = ""}
{section name=list loop=$flags}
<tr class="video_opt_td" bgcolor="{$bgcolor}">
<td width="30" align="left" valign="top" class="video_opt_td">{$smarty.section.list.iteration}</td>
<td align="left" valign="top" class="video_opt_td">Reported as "{$flags[list].flag_type|flag_type}" by {$flags[list].userid|get_username} {$flags[list].date_added|niceTime}</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
</form>
{/if}

View file

@ -0,0 +1,105 @@
{if $mode == 'view'}
<span class="page_title">Flagged Photos Manager</span>
<form name="flagged_photo" method="post" id="flagged_photo">
<table width="100%" 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="delete_selected" value="Delete Photos" class="button" onclick="return confirm_it('Are you sure you want to delete these photo(s)')"/>
<input type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected photo(s)')"/>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="75" align="left" class="head">Photo-ID</td>
<td class="head">Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
{if $photos}
{section name=list loop=$photos}
<li class="clearfix myAdminList" style="background:#{cycle values='FFFFFF,EEEEEE'}"
OnMouseOver="$('#vid_opt-{$photos[list].photo_id}').show()"
OnMouseOut="$('#vid_opt-{$photos[list].photo_id}').hide()">
<div class="moveL PhotoCheckBox">
<div align="center"><input name="check_photo[]" type="checkbox" id="check_photo" value="{$photos[list].photo_id}" /></div>
</div>
<div class="moveL PhotoID">{$photos[list].photo_id}</div>
<div class="moveL clearfix PhotoDetails" style="width:88%;">
<div class="moveL AdminPhotoThumb">
{get_photo details=$photos[list] id='photo' style='padding:2px; border:1px solid #ccc' output='html'}
</div>
<div class="moveL">
<a href="{$baseurl}/admin_area/edit_photo.php?photo={$photos[list].photo_id}">{$photos[list].photo_title}</a>
<div style="height:4px;"></div>
<span class="vdo_sets">
Featured:<strong>{$photos[list].featured} </strong> &#8226;
{if $photos[list].collection_id}
Collection:<strong><a title="Edit Collection" href="edit_collection.php?collection={$photos[list].collection_id}">{$photos[list].collection_id|get_collection_field}</a></strong>
{else}
Photo is Orphan
{/if} &#8226;
Uploaded:<strong>{$photos[list].date_added|niceTime}</strong> &#8226;
Uploader:<strong><a href="view_user.php?uid={$photos[list].userid}">{$photos[list].userid|get_username}</a></strong> &#8226;
Flag: <strong>{$photos[list].total_flags}</strong>
</span>
<div style="height:4px;"></div>
<div id="vid_opt-{$photos[list].photo_id}" style="display:none" class="AdminPhotoActions">
<a href="edit_photo.php?photo={$photos[list].photo_id}">Edit Photo</a> |
<a href="{$baseurl}/view_item.php?item={$photos[list].photo_key}&amp;type=photos&amp;collection={$photos[list].collection_id}" target="_blank">View Photo</a> | <a href="?delete_photo={$photos[list].photo_id}">Delete Photo</a> | <a href="?mode=view_flags&pid={$photos[list].photo_id}">View Flags</a> | <a href="?delete_flags={$photos[list].photo_id}">Delete Flags</a>
</div>
</div>
</div>
</li>
{/section}
{else}
<div align="center"><strong>No Flags Found</strong></div>
{/if}
<table width="100%" 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="delete_selected" value="Delete Photos" class="button" onclick="return confirm_it('Are you sure you want to delete these photo(s)')"/>
<input type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected photo(s)')"/>
</td>
</tr>
</table>
</form>
{include file="$style_dir/blocks/pagination.html" }
{/if}
{if $mode == 'view_flags'}
<span class="page_title">Viewing {$photo.photo_title} flags</span> &#8212; <a href="{$cbcollection->collection_links($photo,'view_item')}">View Photo</a> &#8226; <a href="edit_photo.php?photo={$photo.photo_id}">Edit Photo</a> &#8226; <a href="?delete_flags={$photo.photo_id}">Delete Flags</a> &#8226; <a href="?delete_photo={$photo.photo_id}">Delete Photo</a>
<div style="margin-bottom:10px"></div>
<form name="video_manage" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">&nbsp;</td>
<td class="head">Flag Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
{section name=list loop=$flags}
<li class="clearfix myAdminList" style="background:#{cycle values='FFFFFF,EEEEEE'}">
<div class="moveL PhotoID" style="width:30px;">{$smarty.section.list.iteration}</div>
<div class="moveL">
Reported as "{$flags[list].flag_type|flag_type}" by {$flags[list].userid|get_username} {$flags[list].date_added|niceTime}
</div>
</li>
{/section}
</form>
{/if}

View file

@ -0,0 +1,155 @@
{if $mode=='view'}
<span class="page_title">Flagged Users Manager</span>
<!-- DIsplaying Videos -->
<form name="flagged_video" method="post" id="flagged_video">
<table width="100%" 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="delete_selected" value="Delete Users" class="button" onclick="return confirm_it('Are you sure you want to delete these users(s)')"/>
<input type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected users(s)')"/>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="40" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" class="head">UID</td>
<td class="head">User Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
{if $users}
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{foreach from=$users item=u}
<tr class="video_opt_td" bgcolor="{$bgcolor}">
<td width="40" align="center" valign="top" class="video_opt_td"> <input name="check_user[]" type="checkbox" id="check_user" value="{$u.userid}" /></td>
<td width="50" align="left" 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;"><img src="{$userquery->getUserThumb($u,'small')}" class="mid_user_thumb" /></div>
<a href="#" target="_blank" style="text-indent:10px">
{$u.username}
</a> &#8212;
<span class="vdo_sets">Email:<strong><span style="text-transform:none">{$u.email}</span> </strong> &#8226;
Status:<strong>{$u.usr_status}</strong> &#8226;
Level:<strong>{$u.level|get_user_level}</strong> &#8226;
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} |
<a href="?delete_user={$u.userid}">Delete</a> |
<a href="?mode=view_flags&uid={$u.userid}">View Flags</a> |
<a href="?delete_flags={$u.userid}">Delete Flags</a>
</div>
</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/foreach}
</table>
{else}
<div align="center"><strong><em>NO USER FOUND</em></strong></div>
{/if}
<table width="100%" 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="delete_selected" value="Delete Users" class="button" onclick="return confirm_it('Are you sure you want to delete these users(s)')"/>
<input type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected users(s)')"/>
</td>
</tr>
</table>
</form>
<!-- DIsplaying Videos Ends-->
{include file="$style_dir/blocks/pagination.html" }
{/if}
{if $mode=='view_flags'}
<span class="page_title">Viewing {$user.username} flags</span> &#8212; <a href="view_user.php?uid={$user.userid}">View User</a> &#8226; <a href="view_user.php?uid={$user.userid}">Edit User</a> &#8226; <a href="?delete_flags={$user.userid}">Delete Flags</a> &#8226; <a href="?delete_group={$user.user}">Delete User</a>
<div style="margin-bottom:10px"></div>
<!-- DIsplaying Videos -->
<form name="video_manage" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">&nbsp;</td>
<td class="head">Flag Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{assign var = bgcolor value = ""}
{section name=list loop=$flags}
<tr class="video_opt_td" bgcolor="{$bgcolor}">
<td width="30" align="left" valign="top" class="video_opt_td">{$smarty.section.list.iteration}</td>
<td align="left" valign="top" class="video_opt_td">Reported as "{$flags[list].flag_type|flag_type}" by {$flags[list].userid|get_username} {$flags[list].date_added|niceTime}</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
</form>
{/if}

View file

@ -0,0 +1,136 @@
{if $mode=='view'}
<span class="page_title">Flagged Videos Manager</span>
<!-- DIsplaying Videos -->
<form name="flagged_video" method="post" id="flagged_video">
<table width="100%" 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="delete_selected" value="Delete Videos" class="button" onclick="return confirm_it('Are you sure you want to delete these videos')"/>
<input type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected videos')"/>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" class="head_sep_left">VID</td>
<td class="head"><div class="head_sep_left" style="width:250px">Details</div></td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{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> &#8212;
<span class="vdo_sets">
Active:<strong>{$videos[list].active}</strong> &#8226;
Status:<strong>{$videos[list].status}</strong> &#8226;
Flags:<strong>{$videos[list].total_flags}</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> |
<a href="?mode=view_flags&vid={$videos[list].videoid}">View Flags</a> |
<a href="?delete_video={$videos[list].videoid}">Delete Video</a> |
<a href="?delete_flags={$videos[list].videoid}">Delete Flags</a>
</div>
</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
<table width="100%" 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="delete_selected" value="Delete Videos" class="button" onclick="return confirm_it('Are you sure you want to delete these videos')"/>
<input type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected videos')"/>
</td>
</tr>
</table>
</form>
<!-- DIsplaying Videos Ends-->
{include file="$style_dir/blocks/pagination.html" }
{/if}
{if $mode=='view_flags'}
<span class="page_title">Viewing {$video.title} flags</span> &#8212; <a href="{$baseurl}/watch_video.php?v={$video.videokey}">View video</a> &#8226; <a href="edit_video.php?video={$video.videoid}">Edit video</a> &#8226; <a href="?delete_flags={$video.videoid}">Delete Flags</a> &#8226; <a href="?delete_video={$video.videoid}">Delete Video</a>
<div style="margin-bottom:10px"></div>
<!-- DIsplaying Videos -->
<form name="video_manage" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">&nbsp;</td>
<td class="head">Flag Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{assign var = bgcolor value = ""}
{section name=list loop=$flags}
<tr class="video_opt_td" bgcolor="{$bgcolor}">
<td width="30" align="left" valign="top" class="video_opt_td">{$smarty.section.list.iteration}</td>
<td align="left" valign="top" class="video_opt_td">Reported as "{$flags[list].flag_type|flag_type}" by {$flags[list].userid|get_username} {$flags[list].date_added|niceTime}</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
</form>
{/if}

View file

@ -0,0 +1,7 @@
<div style="height:10px"></div>
<div class="footer_grey_bar">
<img src="{$imageurl}/dot.gif" class="cbicon" /> Thanks for using ClipBucket | &copy; Copyright 2007 &#8211; {$smarty.now|date_format:"%Y"}
<div style="float:right" align="right">
<em>{$Cbucket->cbinfo.version}</em>| <a href="http://forums.clip-bucket.com/">Forums</a> | <a href="http://clip-bucket.com/arslan-hassan">Arslan Hassan</a> | <a href="http://docs.clip-bucket.com/">Docs</a> | <a href="http://www.opensource.org/licenses/attribution.php">Attribution Assurance License</a></div>
</div>

View file

@ -0,0 +1,27 @@
<script>
$(document).ready(function()
{
$('.nav-sub-menu').each(function(){
var ref = $(this).attr('ref');
var cookie = $.cookie('menu-'+ref);
if(cookie!='show')
$(this).hide();
})
$('.nav-header').bind('click',function(){
var ref = $(this).attr('ref');
var obj = $('.nav-sub-menu[ref='+ref+']');
if(obj.css('display')=='none')
$.cookie('menu-'+ref,'show');
else
$.cookie('menu-'+ref,'hide');
obj.slideToggle('normal');
});
})
</script>

View file

@ -0,0 +1,232 @@
<!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>{cbtitle sub_sep='&#8250;'}</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}/functions.js"></script>
<script type="text/javascript" src="{$js}/admin_functions.js"></script>
{if $googleApi}
<script type="text/javascript" src="https://www.google.com/jsapi?key=ABQIAAAAr5pj809LgbJgBTxDJGy0IxQH8siQo9V3STvJ8WIDHu37hIWsoxRX_d1ABxknSddUPvo4LFb7wq8gwA"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.8/themes/redmond/jquery-ui.css" type="text/css" media="all" />
<script type="text/javascript">
google.load("jquery", "1");
google.load("jqueryui", "1");
</script>
{else}
<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>
{/if}
<script type="text/javascript" src="{$js}/jquery_plugs/hover_intent.js"></script>
<script type="text/javascript" src="{$js}/jquery_plugs/cb.tabs.js"></script>
<script type="text/javascript" src="{$js}/jquery_plugs/cookie.js"></script>
<script type="text/javascript" src="{$js}/jquery_plugs/timer.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}/jquery_plugs/css/tipsy.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>
<script src="{$js}/jquery_plugs/jquery.tipsy.js" type="text/javascript"></script>
<script src="{$js}/swfobject.js" type="text/javascript"></script>
{if $Cbucket->AdminJSArray}
<!-- Including JS Files-->
{foreach from=$Cbucket->AdminJSArray key=file item=type}
{if $curActive == $type || $type=='global' }
{include_js type=$type file=$file}
{/if}
{/foreach}
<!-- Including JS Files-->
{/if}
{if $Cbucket->admin_header_files}
<!-- Including Headers -->
{foreach from=$Cbucket->admin_header_files key=file item=type}
{include_header type=$type file=$file}
{/foreach}
<!-- Ending Headers -->
{/if}
<!-- Including Nice Edit -->
<script type="text/javascript" src="{$js}/nicedit/nicEdit.js"></script>
{literal}
<script type="text/javascript" charset="utf-8">
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...',
});
$('.widgets-wrap').sortable({
connectWith: '.widgets-wrap',
handle: 'h2',
cursor: 'move',
placeholder: 'placeholder',
forcePlaceholderSize: true,
opacity: 0.4,
stop: function(event, ui){
$(ui.item).find('h2').click();
}
})
$('#HeadMenu').sortable({
cursor : 'move',
opacity : '0.4',
forcePlaceholderSize: true
})
$('.dragbox').each(function(){
$(this).hover(function(){
$(this).find('h2').addClass('collapse');
}, function(){
$(this).find('h2').removeClass('collapse');
})
.find('h2').hover(function(){
$(this).find('.configure').css('visibility', 'visible');
}, function(){
$(this).find('.configure').css('visibility', 'hidden');
})
.click(function(){
$(this).siblings('.dragbox-content').toggle();
})
.end()
.find('.configure').css('visibility', 'hidden');
});
$('.tipsy_tip').tipsy({gravity: 'w'});
});
</script>
{/literal}
{literal}
<script type="text/javascript">
$(document).ready(function(){
$('#ratios input[name=photo_ratio]').click(function()
{
var ratio = this.value;
ratio_part = ratio.split(':');
width = ratio_part[0];
height = ratio_part[1];
ThumbHeight = $('#image_width').val() / width * height;
ThumbHeight = Math.ceil(ThumbHeight);
MedHeight = $('#med_width').val() / width * height;
MedHeight = Math.ceil(MedHeight);
$('#image_height').val(ThumbHeight);
$('#med_height').val(MedHeight);
});
$('#image_width,#med_width').bind(
{
click: function()
{
$(this).select();
},
focusout: function()
{
var ratio = $('#ratios input:checked').val();
id = this.id;
parts = id.split('_');
word = parts[0];
ratio_part = ratio.split(':');
width = ratio_part[0];
height = ratio_part[1];
newHeight = this.value / width * height;
newHeight = Math.ceil(newHeight);
$('input[id="'+word+'_height"]').val(newHeight);
},
keypress: function(event)
{
if(event.which == '10')
{
var ratio = $('#ratios input:checked').val();
id = this.id;
parts = id.split('_');
word = parts[0];
ratio_part = ratio.split(':');
width = ratio_part[0];
height = ratio_part[1];
newHeight = this.value / width * height;
newHeight = Math.ceil(newHeight);
$('input[id="'+word+'_height"]').val(newHeight);
this.blur();
}
}
});
});
</script>
{/literal}
<!-- Including Bootstrap -->
<link rel="stylesheet" href="{$template_url}/bootstrap/css/bootstrap.min.css" type="text/css" media="all" />
<link rel="stylesheet" href="{$template_url}/bootstrap/css/bootstrap-responsive.min.css" type="text/css" media="all" />
<!-- Including Bootstrap JS -->
<script type="text/javascript" src="{$template_url}/bootstrap/js/bootstrap.min.js"></script>
<!-- Including Default CSS -->
<link rel="stylesheet" href="{$theme}/default.css" type="text/css" media="all" />
<!-- Including JS HTML file -->
{include file="$layout_dir/functions.html"}
</head>

View file

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

View file

@ -0,0 +1,153 @@
<span class="page_title">Groups Manager</span>
<img src="{$imageurl}/dot.gif" class="sarch_button" onclick="toggle_search('groupsearchdiv')" />
<div class="search_box" id="groupsearchdiv" {if $smarty.cookies.show_groupsearchdiv_search!='show'} style="display:none"{/if}> <form id="group_search" name="group_search" method="get" action="groups_manager.php" class="video_search">
<table width="400" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="106" align="right"><label for="title">Group title</label></td>
<td width="280"><input name="title" type="text" class="input" id="title" value="{'title'|get_form_val:true}" //></td>
</tr>
<tr>
<td align="right"><label for="groupid">Group id</label></td>
<td><input name="group_id" type="text" class="input" id="groupid" value="{'group_id'|get_form_val:true}" //></td>
</tr>
<tr>
<td align="right"><label for="tags">Group tags</label></td>
<td><input name="tags" type="text" class="input" id="tags" value="{'tags'|get_form_val:true}" /></td>
</tr>
<tr>
<td align="right">Featured</td>
<td><label for="featured"></label>
<select name="featured" id="featured" class="input">
<option value="" ></option>
<option value="yes" {if $smarty.get.featured=='yes'} selected="selected"{/if}>Yes</option>
<option value="no" {if $smarty.get.featured=='no'} selected="selected"{/if}>No</option>
</select></td>
</tr>
<tr>
<td align="right">Active</td>
<td><select name="active" id="active" class="input">
<option value="" ></option>
<option value="yes" {if $smarty.get.active=='yes'} selected="selected"{/if}>Yes</option>
<option value="no" {if $smarty.get.active=='no'} selected="selected"{/if}>No</option>
</select></td>
</tr>
<tr>
<td align="right">Userid</td>
<td><input name="userid" type="text" class="input" id="userid" value="{'userid'|get_form_val:true}" /></td>
</tr>
<tr>
<td align="right" valign="top">Category</td>
<td>
{$formObj->createField($cat_array)}
</td>
</tr>
</table>
<br />
<input type="submit" name="search" id="search" value="Search Form" class="button"/>
</form>
</div>
<form name="group_manage" method="post">
<table width="100%" 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="return confirm_it('Are you sure you want to delete selected Groups(s)')"/>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" align="left" class="head">GP-ID</td>
<td class="head">Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{assign var = bgcolor value = ""}
{section name=gp_list loop=$groups}
<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="{$groups[gp_list].group_id}" /></td>
<td width="50" align="left" valign="top" class="video_opt_td">{$groups[gp_list].group_id}</td>
<td valign="top" class="video_opt_td"
onmouseover="$('#vid_opt-{$groups[gp_list].group_id}').show()"
onmouseout="$('#vid_opt-{$groups[gp_list].group_id}').hide()" >
<div style="float:left; width:45px; height:34px;" >
<img src="{$cbgroup->get_group_thumb($groups[gp_list])}" border="1" class="mid_user_thumb" />
</div>
<a href="{$baseurl}/view_group.php?url={$groups[gp_list].group_url}" target="_blank" style="text-indent:10px">
{$groups[gp_list].group_name}
</a> &#8212;
<span class="vdo_sets">
Group Owner:<strong> <a href="view_user.php?uid={$groups[gp_list].userid}">{$groups[gp_list].userid|get_username}</a></strong> &#8226;
Group Type:<strong> {if $groups[gp_list].group_privacy =="0"}Public{elseif $groups[gp_list].group_privacy =="1"}Private{else}Invited{/if}</strong> &#8226;
Group Status:<strong>{if $groups[gp_list].active=="yes"} Active{else}Inactive{/if}</strong> &#8226;
Group Members:<strong>{$groups[gp_list].total_members|number_format}</strong>
</span>
<br />
<div id="vid_opt-{$groups[gp_list].group_id}" style="display:none" class="vid_opts">
<a href="{group_link details=$groups[gp_list]}" target="_blank">View</a> |
<a href="edit_group.php?group_id={$groups[gp_list].group_id}">Edit</a>
{if $groups[gp_list].featured == yes}
| <a href="?unfeature={$groups[gp_list].group_id}">Make Unfeatured</a> {/if}
{if $groups[gp_list].featured == no} |
<a href="?feature={$groups[gp_list].group_id}">Make Featured</a> {/if}
{if $groups[gp_list].active == yes} |
<a href="?deactivate={$groups[gp_list].group_id}">Deactivate</a> {else} |
<a href="?activate={$groups[gp_list].group_id}">Activate</a> {/if} |
<a href="{$baseurl}/manage_groups.php?mode=manage_videos&gid={$groups[gp_list].group_id}">Manage</a> |
<a href="?delete_group={$groups[gp_list].group_id}">Delete</a>
</div>
</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
<table width="100%" 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="return confirm_it('Are you sure you want to delete selected Groups(s)')"/>
</td>
</tr>
</table>
</form>
{include file="$style_dir/blocks/pagination.html" }

View file

@ -0,0 +1,23 @@
<div class="header_grey_bar">
<img src="{$imageurl}/dot.gif" class="cbicon" />{$title}
<div class="welcome" style="float:right">
Hello {$userquery->username} <a href="logout.php"><img src="{$imageurl}/dot.gif" border="0" class="logout_button" /></a>
</div>
</div>
<div class="header_menu clearfix">
<ul>
<li><a href="{$baseurl}/admin_area">{$userquery->permission.user_level_name} Home</a></li>
<li><a href="{$baseurl}">Website Home</a></li>
</ul>
<div class="dp_opts"><a href="javascript:void(0)" onclick="$('#dp_opts').slideToggle()">Display Options</a></div>
</div>
<div class="header_menu_after">
<div id="dp_opts">
<form id="display_opts" name="display_opts" method="post" action="">
Results Per Page :
<input name="admin_pages" type="text" style="width:50px" value="{$Cbucket->configs.admin_pages}"/>
<input type="submit" name="update_dp_options" id="button" value="Update" class="button"/>
</form>
</div>
</div>

View file

@ -0,0 +1,200 @@
<table width="100%" border="0" class="index_table">
<tr>
<td valign="top" style="padding-right:13px">
<div class="widgets-wrap" id="column1">
<div class="dragbox" id="cbstats" >
<h2>{$title} Quick Stats</h2>
<div class="dragbox-content" >
<div class="item clearfix">
<div class="stats_subitem">Videos</div>
<div class="stats_subitem_d">Total : <strong>{get_videos count_only=yes}</strong> | Active : <strong>{get_videos count_only=yes active="yes"}</strong> | Flagged : <strong>{$cbvid->action->count_flagged_objects()}</strong> | Processing : <strong>{get_videos count_only=yes status='Processing'}</strong></div>
</div>
<div class="item clearfix">
<div class="stats_subitem">Groups</div>
<div class="stats_subitem_d">Total : <strong>{get_groups count_only=yes}</strong> | Active : <strong>{get_groups count_only=yes active='yes'}</strong> | Flagged : <strong>{$cbgroup->action->count_flagged_objects()}</strong></div>
</div>
<div class="item clearfix">
<div class="stats_subitem">Members</div>
<div class="stats_subitem_d">Total : <strong>{get_users count_only=yes}</strong> | Active : <strong>{get_users count_only=yes status='Ok'}</strong> | Flagged : <strong>{$userquery->action->count_flagged_objects()}</strong> | Banned : <strong>{get_users count_only=yes ban='yes'}</strong></div>
</div>
<div class="item clearfix">
<div class="stats_subitem">Photos</div>
<div class="stats_subitem_d">Total : <strong>{get_photos count_only=yes}</strong> | Active : <strong>{get_photos count_only=yes active='yes'}</strong> | Flagged : <strong>{$cbphoto->action->count_flagged_objects()}</strong> </div>
</div>
<div class="item clearfix">
<div class="stats_subitem">Collections</div>
<div class="stats_subitem_d">Total : <strong>{get_collections count_only=yes}</strong> | Active : <strong>{get_collections count_only=yes active='yes'}</strong>
| Flagged : <strong>{$cbcollection->action->count_flagged_objects()} </strong>
| Videos : <strong>{get_collections count_only=yes type='videos'}</strong> | Photos : <strong>{get_collections count_only=yes type='photos'}</strong>
</strong> </div>
</div>
<div class="item">
{assign var=users value=$userquery->get_online_users()}
<strong><a href="online_users.php">Online Users({$userquery->get_online_users(false,true)})</a></strong><br />
{if $users}
{foreach from=$users item=user name=onlines}
{if $user.username!=""}
<strong><a href="{$userquery->profile_link($user)}" target="_blank">{$user.username}{if $user.logins>1}({$user.logins}){/if}</a>{if !$smarty.foreach.onlines.last}, {/if}</strong> {/if}
{/foreach}
{foreach from=$users item=user name=onlines}
{if $user.session_string=='guest'}
<strong>and {$user.logins} guest{if $user.logins>1}s{/if}</strong>
{/if}
{/foreach}
{else}
No User is Online
{/if}
</div>
<div class="item subitem">
{if $Cbucket->cbinfo.new_available}
<div class="stats_subitem" style="width:60%; color:#060">Currently you are running <strong>{$ClipBucket->cbinfo.version} {$ClipBucket->cbinfo.state}</strong><br />
Latest Version <strong>{$Cbucket->cbinfo.latest.version} {$Cbucket->cbinfo.latest.state} </strong></div>
<div class="stats_subitem" style="width:39%"><span class="simple_button"><a href="{$Cbucket->cbinfo.latest.link}">Update Now</a></span></div>
<div class="clearfix"></div>
{else}
<div>
Currently you are running <strong>{$Cbucket->cbinfo.version} {$Cbucket->cbinfo.state}</strong> - No New Version Available</div>
{/if}
</div>
</div>
</div>
<div class="dragbox" id="cbnews" >
<h2>ClipBucket News</h2>
<div class="dragbox-content" >
<div id="clipbucket_news"></div>
</div>
</div>
<div style="height:20px;"></div>
<div style="font-size:12px">
<h2>Words from ClipBucket!</h2>
<p>ClipBucket is developed by <strong><a href="http://arslanhassan.com">Arslan Hassan</a></strong> and <strong><a href="http://clip-bucket.com/fawaz-tahir">Fawaz Tahir</a></strong>, we started with a small website application with only functionality of serving videos to the community later on we decided to add every possible social networking feature to make social communities more interactive. We didn't have any milestones, no road map, no charts, no nothing. Only thing we had was a vision as of our captain <strong><a href="http://clip-bucket.com/jahanzeb-hassan">Jahanzeb Hassan</a></strong> and plenty of hard work. </p>
<p>We also have two more members named <a href="http://clip-bucket.com/ruman-malik">Ruman Malik</a> and <a href="http://clip-bucket.com/zomail-tahir">Zomail Tahir</a> who manage sales and support department.</p>
<p><strong>ClipBucket team gives special thanks to</strong><br />
<br />
* Frank White for helping us knowing the basics of professional application development<br />
* Christian Russemen for keep our community active<br />
* BigStack for his great forum support
<br />
* You for using ClipBucket.</p>
<h3>What lies head?</h3>
<p>* Easy ClipBucket integeration with other applications<br />
* Make more secured, fast and optimized<br />
* HTML5 ready with mobile support<br />
* Full documentation of our source code
</p>
<h3>Where in the world we belong to?</h3>
<p>We belong to <a href="http://clip-bucket.com/pakistan">Islamic Republic of Pakistan</a> :) you may have seen many negative news about Pakistan on television but there are still <a href="http://clip-bucket.com/pakistan#the_truth">some facts</a> you should know about. Its a great country for us and we will always love it.<br />
<strong>Pakistan Zindabad </strong><br />
<strong><br />
</strong></p></div>
</div>
</td>
<td width="210" valign="top">
<div class="widgets-wrap" style="width:210px" id="column2">
<!-- Admin Todo List -->
<div class="dragbox" id="todo_list" >
<h2>Todo List</h2>
<div class="dragbox-content" >
<div class="item"><a href="video_manager.php?search=search&active=no">Approve Videos ({get_videos active='no' count_only=true})</a></div>
<div class="item"><a href="members.php?search=yes&amp;status=ToActivate">Approve Members ({get_users status='ToActivate' count_only=true})</a></div>
<div class="item"><a href="groups_manager.php?active=no&amp;search=yes">Approve Groups ({get_groups active='no' count_only=true})</a></div>
</div>
</div>
<!-- Admin Todo List -->
<!-- Admin Todo List -->
<div class="dragbox" id="quick_actions" >
<h2>Quick Action</h2>
<div class="dragbox-content" >
<div class="item"><a href="main.php">Website Settings</a></div>
<div class="item"><a href="add_member.php">Add Members</a></div>
<div class="item"><a href="add_group.php">Add Group</a></div>
<div class="item"><a href="cb_mod_check.php">Check Video Modules</a></div>
</div>
</div>
<!-- Admin Todo List -->
<!-- Admin personal Note Widget -->
<div class="dragbox" id="private_notes" >
<h2>Personal Notes</h2>
<div class="dragbox-content" >
{assign var=notes value=$myquery->get_notes()}
<div id="the_notes">
{if $notes}
<div id="no_note"></div>
{foreach from=$notes item=note}
<div class="item" id="note-{$note.note_id}">
<img src="{$imageurl}/cross.png" class="delete_note" onclick="delete_note('{$note.note_id}');" />
{$note.note|nl2br}
</div>
{/foreach}
{else}
<div id="no_note" align="center"><strong><em>No notes</em></strong></div>
{/if}
</div>
<form method="post">
<textarea name="personal_note" id="personal_note" style="width:90%; height:50px; margin:5px; border:1px solid #999"></textarea>
<div align="right" style="padding-right:10px"><a href="javascript:void(0)"
onclick="add_note('#personal_note')">Add Note</a></div>
</form>
</div>
</div>
<!-- Admin personal Note Widget -->
</div>
</td>
</tr>
</table>
<script>
{literal}
$(document).ready(function(){
$.ajax({
url : baseurl+'/ajax.php',
type: "POST",
dataType : 'text',
data : {'mode':'get_news'},
success : function(news){ $('#clipbucket_news').html(news) },
timeout : 5000,
error : function(err) { $('#clipbucket_news').html(' <div align="center"><em><strong>Unable to fetch news</strong></em></div>')},
});
});
{/literal}
</script>

View file

@ -0,0 +1,113 @@
{if $edit_lang != 'yes'}
<h2>Language Settings</h2>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:15px">
<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>
</tr>
</table>
<form name="default_lang" method="post" action="?default">
{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" height="25" 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">{$language_list[l_list].language_name}({$language_list[l_list].language_code})
<div><a href="?create_package={$language_list[l_list].language_code}">Recreate Pack</a>
- <a href="?recreate_from_pack={$language_list[l_list].language_code}" >Recreate from pack</a>
- <a href="?edit_language={$language_list[l_list].language_id}" >Edit Phrases</a>
- <a href="?edit_language={$language_list[l_list].language_id}">Edit</a>
- <a href="javascript:void(0)" onclick="if(confirm_it('Are you sure you want to delete \'{$language_list[l_list].language_name}\' pack')) window.location = '?delete={$language_list[l_list].language_id}'">Delete</a>
- <a href="?download={$language_list[l_list].language_id}" target="_blank">Export</a>{if $language_list[l_list].language_active!='yes'}
- <a href="?action=activate&id={$language_list[l_list].language_id}">Activate</a>{/if}{if $language_list[l_list].language_active=='yes'}
- <a href="?action=deactivate&id={$language_list[l_list].language_id}">Dectivate</a>{/if}</div></td>
</tr>
</table>
</div>
{/section}
</form>
<div style="height:50px"></div>
<h2> Add New Language </h2>
<form action="?import" method="post" enctype="multipart/form-data" name="import_language" id="import_language">
<fieldset>
<legend>Upload file</legend>
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td>Browse ClipBucket Language File ( must be .xml format )
<input type="file" name="lang_file" id="lang_file" />
<input type="submit" name="add_language" id="add_language" value="Add Language" class="button" /></td>
</tr>
</table>
</fieldset>
</form>
{else}
<span class="page_title">Edit {$lang_details.language_name}</span>
<div class="search_box"> <form id="form1" name="form1" method="post" action="">
<label>Language Name
<input name="name" type="text" id="name" value="{$lang_details.language_name}" />
Language Code </label>
<input name="code" type="text" id="code" value="{$lang_details.language_code}" />
Language Regex
<input name="regex" type="text" id="regex" value="{$lang_details.language_regex}" />
<input type="submit" name="update_language" class="button" value="Update" style="margin-top:10px" id="update_language"/>
<br />
</form></div>
<div style="height:10px">
</div>
<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="get" action="?">
<label>Phrase Code - Name<br />
<input name="varname" type="text" id="varname" value="{$smarty.get.varname|form_val}" />
<input name="edit_language" type="hidden" value="{$smarty.get.edit_language}" />
</label>
<br />
<label>Phrase Text<br />
<input name="text" type="text" id="text" value="{$smarty.get.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="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="5" class="left_head" ></td>
<td width="200" class="head">Phrase Code</td>
<td align="left" class="head">Phrase</td>
<td width="200" class="right_head"></td>
</tr>
</table>
{section name=p_list loop=$lang_phrases}
<div class="row_white">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="5" ></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}

View file

@ -0,0 +1,22 @@
<div class="well sidebar-nav">
<ul class="nav nav-list">
{assign var='menu' value = get_admin_menu()}
{foreach from=$menu item=theMenu}
<li class="nav-header" ref="{$theMenu.id}"><i class="{$theMenu.icon}"></i> {$theMenu.title}</li>
<li class="divider"></li>
<li class="nav-sub-menu" ref="{$theMenu.id}">
<ul class="nav nav-list">
{foreach from=$theMenu.sub_menu item=sub_menu}
{if $sub_menu!='icon'}
<li><a href="{$sub_menu.link}">{$sub_menu.title}</a></li>
{/if}
{/foreach}
</ul>
</li>
</li>
{/foreach}
</ul>
</div>

View file

@ -0,0 +1,41 @@
<body>
<div class="header_grey_bar">
<img src="{$imageurl}/dot.gif" class="cbicon" /> {$title} &#8212; <a href="{$baseurl}">Back To Main Website</a>
<div class="clearfix"></div>
</div>
{include file="$style_dir/msg.html" }
<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>
<div align="center" class="login_footer">&copy; ClipBucket Copyright 2007 &#8211; {$smarty.now|date_format:"%Y"} | Arslan Hassan</div>
</body>
</html>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,58 @@
<span class="page_title">Website Maintenance <img src="{$imageurl}/help.png" border="0" class="tipsy_tip" title="Remove inactive sessions, user logs and old user feeds" /></span>
<div style="height:3px;"></div>
Remove inactive sessions, user access logs, comments cache, more options will be available soon
<div style="height:25px; clear:both"></div>
<div class="li_links">
<ul>
<li><a href="?mode=remove_sessions">Remove inactive sessions</a></li>
<li><a href="javascript:void(0)" onclick="$('#access_remove_form').show()" style="">Remove user access log
<span style="display:none" id="access_remove_form">
<form method="get" style="margin:0px; padding:0px; display:inline-block">
older than
<input name="mode" value="remove_access_log" type="hidden" />
<input name="days" type="text" style="border:1px solid #999" size="10" value="30"/>
days
<input type="submit" value="remove" />
</form>
</span>
</a>
</li>
<li><a href="javascript:void(0)" onclick="$('#activity_remove_form').show()" style="">Remove user activity feed
<span style="display:none" id="activity_remove_form">
<form method="get" style="margin:0px; padding:0px; display:inline-block">
older than
<input name="mode" value="remove_activity_feed" type="hidden" />
<input name="days" type="text" style="border:1px solid #999" size="10" value="30"/>
days
with loop size of <input name="loop_size" type="text" style="border:1px solid #999" size="10" value="100"/> users
<input type="submit" value="remove" />
</form>
</span>
</a></li>
</ul>
</div>
{if $smarty.get.mode =='remove_activity_feed'}
{if $indexing}
<div align="right" style="padding:5px">{$from} - {$to} of {$total}</div>
<ul>
{foreach from=$index_msgs item=themsg}
<li>{$themsg}</li>
{/foreach}
</ul>
{if $stop_loop!='yes'}
<script type="text/javascript">
var start_index = '{$next_index}';
var loop_size = '{$smarty.get.loop_size}';
var mode = '{$mode}';
var days = '{$smarty.get.days}';
{literal}$(document).oneTime(2000,function(){
$(window.location).attr('href', '?loop_size='+loop_size+'&mode='+mode+'&start_index='+start_index+'&days'+days)});{/literal}
</script>
redirecting....do not close this window
{else}
Indexing has been completed.
{/if}
{/if}
{/if}

View file

@ -0,0 +1,115 @@
<h2>Manage Items - <a href="{$baseurl}/admin_area/edit_collection.php?collection={$data.collection_id}">{$data.collection_name}</a></h2>
<form action="" method="post">
<table width="100%" 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="remove_selected" value="Remove Selected" class="button"/>
<input type="submit" name="move_selected" value="Move Selected" class="button"/>
<select name="collection_id" id="collection_id">
{foreach from=$c item=item}
<option value="{$item.collection_id}"{if $smarty.get.collection == $item.collection_id} selected="selected"{/if}>{$item.collection_name}</option>
{/foreach}
</select>
<br />
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="75" align="center" valign="middle" class="head">Object ID</td>
<td class="head">Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
{if $obj}
{if $type == ''}
<div align="center"><strong><em>Unknown Type</em></strong></div>
{else}
{if $type == 'photos'}
<li class="clearfix myAdminList" style="background:#f3f3f3; border:1px solid #ccc; margin-top:5px; font:bold 11px Tahoma;">
<div class="clearfix PhotoDetails" style=" text-align:center; min-height:10px;">
<a style="font-size:11px" href="{$baseurl}/admin_area/recreate_thumbs.php?mode=collection&amp;cid={$data.collection_id}">Re-create photos</a>. This will re-create photos found in the collection.
</div>
</li>
{/if}
{section name=list loop=$obj}
{if $type == 'photos'}
<li id="collectionItem_{$obj[list].photo_id}" class="clearfix myAdminList" style="background:#{cycle values='FFFFFF,EEEEEE'}"
OnMouseOver="$('#vid_opt-{$obj[list].photo_id}').show()"
OnMouseOut="$('#vid_opt-{$obj[list].photo_id}').hide()">
<div class="moveL PhotoCheckBox">
<div align="center"><input name="check_obj[]" type="checkbox" id="check_obj" value="{$obj[list].photo_id}" /></div>
</div>
<div class="moveL PhotoID">{$obj[list].photo_id}</div>
<div class="moveL clearfix PhotoDetails" style="width:88%;">
<div class="moveL AdminPhotoThumb">
<img src="{get_photo details=$obj[list]}" id="photo" style="padding:2px; border:1px solid #ccc" />
</div>
<div class="moveL">
<a href="{$baseurl}/admin_area/edit_photo.php?photo={$obj[list].photo_id}" target="_blank">{$obj[list].photo_title}</a>
<div style="height:4px;"></div>
<span class="vdo_sets">
Featured:<strong>{$obj[list].featured} </strong> &#8226;
Collection:<strong><a title="Edit Collection" href="edit_collection.php?collection={$obj[list].collection_id}">{$obj[list].collection_id|get_collection_field}</a></strong> &#8226;
Uploaded:<strong>{$obj[list].date_added|niceTime}</strong> &#8226;
User:<strong><a href="view_user.php?uid={$obj[list].userid}">{$obj[list].username}</a></strong>
</span>
<div style="height:4px;"></div>
<div id="vid_opt-{$obj[list].photo_id}" style="display:none" class="AdminPhotoActions">
<a target="_blank" href="{$cbcollection->collection_links($obj[list],'view_item')}">View</a>
</div>
</div>
</div>
</li>
{/if}
{if $type == 'videos'}
<li id="collectionItem_{$obj[list].videoid}" class="clearfix myAdminList" style="background:#{cycle values='FFFFFF,EEEEEE'}"
OnMouseOver="$('#vid_opt-{$obj[list].videoid}').show()"
OnMouseOut="$('#vid_opt-{$obj[list].videoid}').hide()">
<div class="moveL PhotoCheckBox">
<div align="center"><input name="check_obj[]" type="checkbox" id="check_obj" value="{$obj[list].videoid}" /></div>
</div>
<div class="moveL PhotoID">{$obj[list].videoid}</div>
<div class="moveL clearfix PhotoDetails" style="width:88%;">
<div class="moveL AdminPhotoThumb">
<img src="{get_thumb vdetails=$obj[list]}" width="120" height="70" id="video_{$obj[list].videoid}" style="padding:2px; border:1px solid #ccc" />
</div>
<div class="moveL">
<a href="{$baseurl}/admin_area/edit_video.php?video={$obj[list].videoid}" target="_blank">{$obj[list].title}</a>
<div style="height:4px;"></div>
<span class="vdo_sets">
Featured:<strong>{$obj[list].featured} </strong> &#8226;
Active:<strong>{$obj[list].active}</strong> &#8226;
Uploaded:<strong>{$obj[list].date_added|niceTime}</strong> &#8226;
User:<strong><a href="view_user.php?uid={$obj[list].userid}">{$obj[list].username}</a></strong>
</span>
<div style="height:4px;"></div>
<div id="vid_opt-{$obj[list].videoid}" style="display:none" class="AdminPhotoActions">
<a target="_blank" href="{$cbcollection->collection_links($obj[list],'view_item')}">View</a>
</div>
</div>
</div>
</li>
{/if}
{/section}
{/if}
{else}
<div align="center"><strong><em>No Object Found</em></strong></div>
{/if}
<table width="100%" 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="remove_selected" value="Remove Selected" class="button"/>
<input type="submit" name="move_selected" value="Move Selected" class="button"/>
<br />
</td>
</tr>
</table>
</form>

View file

@ -0,0 +1,197 @@
<span class="page_title">Manage Pages</span>
{if $mode =="new"}
<form method="post">
<fieldset class="fieldset cbform">
<legend>Add New Page
</legend><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td width="200"><label for="page_name">Page Name</label></td>
</tr>
<tr>
<td>
<input name="page_name" type="text" id="page_name" value="{'page_name'|post}"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><label for="page_title">Page Title</label></td>
</tr>
<tr>
<td><input type="text" name="page_title" id="page_title" value="{'page_title'|post}" /></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><label for="page_content">Page Content</label></td>
</tr>
<tr>
<td style="background-color:#FFF">
<textarea name="page_content" id="page_content" style="width:100%; min-height:250px">{'page_content'|post|form_val}</textarea><script type="text/javascript">
{literal}new nicEditor({fullPanel : true,maxHeight:350}).panelInstance('page_content');{/literal}
</script></td>
</tr>
<tr>
<td style="background-color:#FFF">&nbsp;</td>
</tr>
<tr>
<td align="right" style="background-color:#FFF">
<input type="submit" name="add_page" id="add_page" value="Create new page" class="button"/></td>
</tr>
</table>
</fieldset>
</form>
{/if}
{if $mode =="edit" && $page.page_name!=''}
<form method="post">
<fieldset class="fieldset cbform">
<legend>Add New Page
</legend><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td width="200"><label for="page_name">Page Name</label></td>
</tr>
<tr>
<td>
<input name="page_name" type="text" id="page_name" value="{$page.page_name}"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><label for="page_title">Page Title</label></td>
</tr>
<tr>
<td><input type="text" name="page_title" id="page_title" value="{$page.page_title}" /></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><label for="page_content">Page Content</label></td>
</tr>
<tr>
<td style="background-color:#FFF">
<textarea name="page_content" id="page_content" style="width:100%; min-height:250px">{$page.page_content|form_val}</textarea><script type="text/javascript">
{literal}new nicEditor({fullPanel : true,maxHeight:350}).panelInstance('page_content');{/literal}
</script></td>
</tr>
<tr>
<td style="background-color:#FFF">&nbsp;</td>
</tr>
<tr>
<td align="right" style="background-color:#FFF">
<input type="submit" name="update_page" id="update_page" value="Update page" class="button"/></td>
</tr>
</table>
</fieldset>
</form>
{/if}
{if $mode=='manage'}
<form name="page_form" action="?" 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="update_order" value="Update order" class="button" />
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected page(s)')"/>
</td>
<td align="right" style="padding-left:15px"><input type="button" value="Create New Page" class="button" onClick="window.location='?mode=new'"/></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">PID</td>
<td width="50" class="head_sep_left">Order</td>
<td class="head"><div class="head_sep_left" style="width:250px">Details</div></td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
{assign var = bgcolor value = ""}
{section name=list loop=$cbpages}
<tr class="video_opt_td" bgcolor="{$bgcolor}">
<td width="30" align="center" valign="top" class="video_opt_td"> <input name="check_page[]" type="checkbox" id="check_video" value="{$cbpages[list].page_id}" /></td>
<td width="50" align="center" valign="top" class="video_opt_td">{$cbpages[list].page_id}</td>
<td width="50" align="center" valign="top" class="video_opt_td"><input type="text" style="border: 1px solid rgb(153, 153, 153); padding: 2px; width: 30px;" value="{$cbpages[list].page_order}" name="page_ord_{$cbpages[list].page_id}"/></td>
<td valign="top" class="video_opt_td"
onmouseover="$('#vid_opt-{$cbpages[list].page_id}').show()"
onmouseout="$('#vid_opt-{$cbpages[list].page_id}').hide()" style="padding-left:10px">
<a href="{$cbpage->page_link($cbpages[list])}" target="_blank" style="text-indent:10px">
{$cbpages[list].page_name}
</a> &#8212;
<span class="vdo_sets">
Active:<strong>{$cbpages[list].active} </strong> &#8226;
Added:<strong>{$cbpages[list].date_added|niceTime} </strong>
{if $cbpages[list].delete_able =='no'} &#8226; <strong>UNDELETE-ABLE</strong>{/if}
&#8226; Display in footer:<strong>{$cbpages[list].display} </strong>
</span>
<br />
<div id="vid_opt-{$cbpages[list].page_id}" style="display:none" class="vid_opts">
<a href="{$cbpage->page_link($cbpages[list])}">View</a> |
<a href="?mode=edit&pid={$cbpages[list].page_id}">Edit</a>
{if $cbpages[list].active == yes} |
<a href="?deactivate={$cbpages[list].page_id}">Deactivate</a> {else} |
<a href="?activate={$cbpages[list].page_id}">Activate</a> {/if} |
<a href="?delete={$cbpages[list].page_id}">Delete</a> |
{if $cbpages[list].display!='yes'}
<a href="?display={$cbpages[list].page_id}">Display in footer</a>
{else}
<a href="?hide={$cbpages[list].page_id}">Hide in footer</a>
{/if}
</div>
</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
<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="update_order" value="Update order" class="button" />
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected page(s)')"/>
</td>
</tr>
</table>
</form>
{/if}

View file

@ -0,0 +1,278 @@
{if $mode =='show_settings'}
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td align="left" class="settings_inner_title">ClipBucket Website Player Settings</td>
<td width="20" align="right" >&nbsp;</td>
</tr>
</table>
<div style="width:100%; margin:auto" id="player_size">
<form action="manage_players.php?mode=show_settings" method="post" enctype="multipart/form-data" name="player_settings">
<fieldset class="fieldset" style="border:none">
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td valign="top"><strong>Pakplayer license</strong><br />
If you have pakplayer license, please enter it here</td>
<td valign="top"><input type="text" name="pak_license" id="pak_license" value="{$row.pak_license}" /></td>
</tr>
<tr>
<td width="301" valign="top"><label for="autoplay_video"><strong>Autoplay</strong><br />
if yes, all videos will be played automatically
</label></td>
<td width="813" valign="top">
<label>
<input type="radio" name="autoplay_video" value="yes" id="autoplay_video_0" {if $row.autoplay_video=='yes'} checked="checked"{/if} />
Yes</label>
<label><input type="radio" name="autoplay_video" value="no" id="autoplay_video_1" {if $row.autoplay_video=='no'} checked="checked"{/if} />
No</label></td>
</tr>
<tr>
<td valign="top"><strong>Use Playlist<br />
</strong>By turning this on, player will turn on playlists feature in player (if available)</td>
<td valign="top"><label>
<input type="radio" name="use_playlist" value="yes" id="use_playlist" {if $row.use_playlist=='yes'} checked="checked"{/if} />
Yes</label>
<label>
<input type="radio" name="use_playlist" value="no" id="use_playlist" {if $row.use_playlist=='no'} checked="checked"{/if} />
No</label></td>
</tr>
<tr>
<td valign="top"><strong>Logo File</strong><br />
Logo file that will display on your flash player</td>
<td valign="top"><img src="{website_logo}" /><br />
<label>
<input type="file" name="logo_file" id="logo_file" />
</label></td>
</tr>
<tr>
<td valign="top"><strong>Logo Placement</strong><br />
Placement of logo, top, left , right or bottom</td>
<td valign="top"><label>
<select name="logo_placement" id="logo_placement">
<option value="tl" {if $row.logo_placement=='tl'} selected="selected"{/if}>Top Left</option>
<option value="tr" {if $row.logo_placement=='tr'} selected="selected"{/if}>Top Right</option>
<option value="br" {if $row.logo_placement=='br'} selected="selected"{/if}>Bottom Right</option>
<option value="bl" {if $row.logo_placement=='bl'} selected="selected"{/if}>Bottom Left</option>
</select>
</label></td>
</tr>
<tr>
<td valign="top"><label for="logo_padding"><strong>Logo Padding</strong></label><br />
Set logo padding in pixels </td>
<td valign="top"><input type="text" id="logo_padding" name="logo_padding" value="{$row.logo_padding}" /></td>
</tr>
<tr>
<td valign="top"><strong>Buffer Time</strong><br />
To control the buffer seconds</td>
<td valign="top"><label>
<input type="text" name="buffer_time" id="buffer_time" value="{$row.buffer_time}" />
</label></td>
</tr>
<tr>
<td valign="top"><strong>Play Youtube Video Inside Player</strong><br />
this will let you play youtube videos in your player</td>
<td valign="top"><label>
<input type="radio" name="youtube_enabled" value="yes" id="youtube_enabled" {if $row.youtube_enabled=='yes'} checked="checked"{/if} />
Yes</label>
<label>
<input type="radio" name="youtube_enabled" value="no" id="youtube_enabled" {if $row.youtube_enabled=='no'} checked="checked"{/if} />
No</label></td>
</tr>
<tr>
<td valign="top"><strong>Embed Player Width</strong><br />
Enter embedable player width in pixels</td>
<td valign="top"><label for="embed_player_width"></label>
<input name="embed_player_width" type="text" id="embed_player_width" value="{$row.embed_player_width}" /></td>
</tr>
<tr>
<td valign="top"><strong>Embed Player Height</strong><br />
Enter embedable player width in pixels</td>
<td valign="top"><label for="embed_player_width"></label>
<input name="embed_player_height" type="text" id="textfield" value="{$row.embed_player_height}" /></td>
</tr>
<tr>
<td valign="top"><strong>Autoplay Embed</strong><br />
Autoplay embeded video by default</td>
<td valign="top"> <label>
<input type="radio" name="autoplay_embed" value="yes" id="autoplay_embed0" {if $row.autoplay_embed=='yes'} checked="checked"{/if} />
Yes</label>
<label><input type="radio" name="autoplay_embed" value="no" id="autoplay_embed1" {if $row.autoplay_embed=='no'} checked="checked"{/if} />
No</label></td>
</tr>
<tr>
<td valign="top"><strong>Use PseudoStreaming</strong><br />
Let users to play video from anywhere, requires h264 streaming module from webserver<br /></td>
<td valign="top">
<label>
<input type="radio" name="pseudostreaming" value="yes" id="pseudostreaming_0"{if $row.pseudostreaming=='yes'} checked="checked"{/if} />
Yes</label>
<label>
<input type="radio" name="pseudostreaming" value="no" id="pseudostreaming_1" {if $row.pseudostreaming=='no'} checked="checked"{/if} />
No</label>
</td>
</tr>
<tr>
<td valign="top"><strong>Pakplayer Context Menu</strong><br />
Write what you want to display when user right clicks on pakplayer (only if have pak player license)</td>
<td valign="top"><input type="text" name="pakplayer_contextmsg" id="pakplayer_contextmsg" value="{$row.pakplayer_contextmsg}" /></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
</table>
<div align="left"><input type="submit" class="button" value="Update" name="update" /></div>
</fieldset>
</form>{literal}
<style type="text/css">
#resizable-channel,#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 style="height:30px"></div>
In order to change player size, resize the box given below..
<div style="height:10px"></div>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td align="left" class="settings_inner_title"><div onclick="toggle_search('website_player');" style="cursor:pointer">Main Website Player Size -<span style="font-size:11px; color:#06c"> click here to main website player</span></div></td>
<td width="20" align="right" >&nbsp;</td>
</tr>
</table>
<div class="demo" style="width:100%; margin:auto{if $smarty.cookies.website_player_search!='show'};display:none{/if}" id="website_player">
<div id="msg_box" style="margin:5px;"></div>
<div id="resizable" class="ui-widget-content" style="width:{$Cbucket->configs.player_width}px; height:{$Cbucket->configs.player_height}px; margin:auto">
<h3 class="ui-widget-header">Original Size of your Main Website Player</h3>
</div>
<div class="player_dims"><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></div>
<div style="height:10px"></div>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td align="left" class="settings_inner_title"><div onclick="toggle_search('channel_player');" style="cursor:pointer">Channel Player Settings Size -<span style="font-size:11px; color:#06c"> click here to edit channel player settings</span></div></td>
<td width="20" align="right" >&nbsp;</td>
</tr>
</table>
<div class="demo" style="width:100%; margin:auto{if $smarty.cookies.channel_player_search!='show'};display:none{/if}" id="channel_player">
<div id="resizable-channel" class="ui-widget-content" style="width:{$Cbucket->configs.channel_player_width}px; height:{$Cbucket->configs.channel_player_height}px; margin:auto">
<h3 class="ui-widget-header">Original Size of your Main Website Player</h3>
</div>
<div class="player_dims"><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>
</div>
{else}
<div style="height:35px"></div>
<h2>Selected Player</h2>
<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> &#8212; <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 />
<h2>Available Players</h2>
{* 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>
{/if}

View file

@ -0,0 +1,229 @@
<h2>Send email to users</h2>
<p><br />
Send mass email to your users with our new and updated email manager
</p>
{if $send_email==""}
<form name="mass_email" method="post" action="mass_email.php?action=new">
<div class="cb_title">
Email manager
</div>
<div style="padding:5px" class="cb_form">
<div class="cb_field_cont">
<div class="cb_fieldL"><strong>Email to send at once</strong>
<br />loop size of emails when mass emails are sent</div>
<div class="cb_fieldR"><input name="loop_size" type="text" value="500"/></div>
<div class="clear clearfix"></div>
</div>
<div class="cb_field_cont">
<div class="cb_fieldL"><strong>From</strong>
<br />Enter email address to tell user who sent it</div>
<div class="cb_fieldR"><input type="text" name="from" value="{'from'|post}"/></div>
<div class="clear clearfix"></div>
</div>
<div class="cb_field_cont">
<div class="cb_fieldL"><strong>Subject</strong>
<br />Enter your email subject</div>
<div class="cb_fieldR"><input type="text" name="subject" value="{'subject'|post}"//></div>
<div class="clear clearfix"></div>
</div>
<div class="cb_field_cont">
<div class="cb_fieldL"><strong>Message</strong>
<br />Enter your email message</div>
<div class="cb_fieldR"><textarea name="message" cols="50" rows="5" draggable="true"></textarea><br />
{literal}You can use {username}, {userid}, {email}, {datejoined},{avcode} in your message{/literal}</div>
<div class="clear clearfix"></div>
</div>
<div class="cb_field_cont" style="display:none">
<div class="cb_fieldL"><strong>Email delivery method</strong>
<br />Please choose weather you want browser to send emails or create a background process </div>
<div class="cb_fieldR"><label><input type="radio" name="method" value="browser" checked="checked" />Browser</label>
<label><input type="radio" name="method" value="background" />Background Process</label></div>
<div class="clear clearfix"></div>
</div>
</div>
<div class="cb_title" style="background-color:#FFFFFF; margin-top:10px">
More options
</div>
<div style="padding:5px" class="cb_form">
<div class="cb_field_cont">
<div class="cb_fieldL"><strong>Active status</strong>
<br />
Choose whether to send to active users or non active</div>
<div class="cb_fieldR"><label><input name="active" type="radio" value="yes" checked="checked" />Yes</label>
<label><input type="radio" name="active" value="no" />No</label><label><input name="active" type="radio" value="any" />Any</label></div>
<div class="clear clearfix"></div>
</div>
<div class="cb_field_cont">
<div class="cb_fieldL"><strong>Banned status</strong>
<br />Send email to banned users</div>
<div class="cb_fieldR"><label><input type="radio" name="ban" value="yes" />Yes</label>
<label><input name="ban" type="radio" value="no" checked="checked" />No</label>
<label><input name="ban" type="radio" value="any" />Any</label></div>
<div class="clear clearfix"></div>
</div>
<div class="cb_field_cont">
<div class="cb_fieldL"><strong>User level</strong>
<br />Choose which user level to send email</div>
<div class="cb_fieldR">
{assign var=levels value=$userquery->get_levels()}
{foreach from=$levels item=level}
{if $level.user_level_id !='4'}
<label style="width:120px; float:left"><input type='checkbox'
name="level[]" value="{$level.user_level_id}" checked="checked"/>{$level.user_level_name}</label>
{/if}
{/foreach}
</div>
<div class="clear clearfix"></div>
</div>
<div class="cb_field_cont">
<div class="cb_fieldL"><strong>User category</strong>
<br />User category</div>
<div class="cb_fieldR">
{assign var=cats value=$userquery->get_categories()}
{foreach from=$cats item=cat}
<label style="width:120px; float:left">
<input type='checkbox' name="cat[]" value="{$cat.category_id}" checked="checked"/>{$cat.category_name}</label>
{/foreach}
</div>
<div class="clear clearfix"></div>
</div>
<div class="cb_field_cont" style="display:none">
<div class="cb_fieldL"><strong>Send to specified users</strong>
<br />Enter emails or usernames, seperate by commas,leave blank to follow criteria given above</div>
<div class="cb_fieldR"><textarea name="users" cols="50" rows="5" draggable="true" id="users"></textarea></div>
<div class="clear clearfix"></div>
</div>
<div>
<input name="create_email" type="submit" class="button" id="create" value="Create email" />
</div>
</div>
</form>
<div style="height:30px"></div>
<div class="cb_title">
Mass email campaigns
</div>
{if $emails}
{foreach from=$emails item=email}
<div class="cb_row">
<div>
<strong>{$email.email_subj}</strong> &#8212;
<a href="?send_email={$email.id}">Send Email</a> |
<a href="?delete={$email.id}">Delete</a> | <a href="javascript:void(0)" onclick="$('#mytest').dialog('open')">View</a><br />
<span style="font-size:11px; color:#666"><strong>From</strong>
: {$email.email_from} &#8226; <strong>Method</strong> : {$email.method}
&#8226; <strong>Sent</strong> : {$email.sent} &#8226; <strong>Status</strong> : {$email.status}</span><br />
{$email.date_added|niceTime}
</div>
<div id="mytest" style="display:none" class="email_content">{$email.email_msg|nl2br}</div>
<div class="clear clearfix"></div>
</div>
{/foreach}
{else}
<div class="cb_row">
<span style="font-weight:bold">No email campaign was found</span>
</div>
{/if}
{literal}
<script type="text/javascript">
$( ".email_content" ).dialog({autoOpen:false,modal:true});
</script>
{/literal}
{else}
<div class="cb_title">
Sending emails &#8212; <a href="mass_email.php">Go back to mass email page</a></div>
{if $send_email}
{assign var=email value=$send_email}
<div class="cb_row">
<div>
<strong>{$email.email_subj}</strong> &#8212;
<a href="javascript:void(0)" onclick="$('#mytest').dialog('open')">View</a><br />
<span style="font-size:11px; color:#666"><strong>From</strong>
: {$email.email_from} &#8226; <strong>Method</strong> : {$email.method}
&#8226; <strong>Sent</strong> : {$email.sent} &#8226; <strong>Status</strong> : {$email.status}</span><br />
{$email.date_added|niceTime}
</div>
<div id="mytest" style="display:none" class="email_content">{$email.email_msg|nl2br}</div>
<div class="clear clearfix"></div>
</div>
<div style="height:10px"></div>
{$eh->message_list.0}
{if $msgs}
<ul>
{foreach from=$msgs item=msg}
<li>{$msg}</li>
{/foreach}
</ul>
{/if}
{if ($email.total==$email.sent && $email.sent>0)|| $email.status=='completed'}
<div style="background-color:#fff9e3; border:1px solid #e1d5a8; padding:8px; font-size:12px; margin-left:5px">
Email has been sent to {$email.total} users
</div>
{else}
<div style="background-color:#fff9e3; border:1px solid #e1d5a8; padding:8px; font-size:12px; margin-left:5px">
Pelase wait, do not close this window...
(<a href="javascript:void(0);" id="pause" onclick="pause=true; $('#pause,#resume').toggle()">pause</a><a href="javascript:void(0);" onclick="$(window.location).attr('href', '?send_email='+email_id+'&index='+start_index); $('#pause,#resume').toggle()" id="resume" style="display:none">resume</a>)
</div>
<script>
var start_index = '{$email.start_index}';
var email_id = '{$email.id}';
var pause = false;
{literal}$(document).oneTime(5000,function(){
if(!pause)
$(window.location).attr('href', '?send_email='+email_id+'&index='+start_index)});{/literal}
</script>
{/if}
{/if}
{literal}
<script type="text/javascript">
$( ".email_content" ).dialog({autoOpen:false,modal:true});
</script>
{/literal}
{/if}

View file

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

View file

@ -0,0 +1,188 @@
<span class="page_title">Member Manager</span>
<img src="{$imageurl}/dot.gif" class="sarch_button" onclick="toggle_search('memsearchdiv')" />
<div class="search_box" id="memsearchdiv" {if $smarty.cookies.show_memsearchdiv_search!='show'} style="display:none"{/if}> <form id="user_search" name="user_search" method="get" action="members.php" class="video_search">
<table width="400" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="106" align="right">Userid</td>
<td width="280"><input name="userid" type="text" class="input" id="userid" value="{'userid'|get_form_val:true}" //></td>
</tr>
<tr>
<td align="right">Username</td>
<td><input name="username" type="text" class="input" id="username" value="{'username'|get_form_val:true}" //></td>
</tr>
<tr>
<td align="right">Email</td>
<td><input name="email" type="text" class="input" id="email" value="{'email'|get_form_val:true}" //></td>
</tr>
<tr>
<td align="right">Status</td>
<td><select name="status" id="status" class="input">
<option value="" ></option>
<option value="Ok" {if $smarty.get.status=='Ok'} selected="selected"{/if}>OK</option>
<option value="ToActivate" {if $smarty.get.status=='ToActivate'} selected="selected"{/if}>Inactive</option>
</select></td>
</tr>
<tr>
<td align="right">Banned</td>
<td>
<select name="ban" id="ban" class="input">
<option value="" ></option>
<option value="yes" {if $smarty.get.ban=='yes'} selected="selected"{/if}>Yes</option>
<option value="no" {if $smarty.get.ban=='no'} selected="selected"{/if}>No</option>
</select></td>
</tr>
<tr>
<td align="right">Featured</td>
<td><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">
Level
</td>
<td>
<select name="level" id="level" class="input">
<option value="">------</option>
{assign var=levels value=$userquery->get_levels()}
{foreach from=$levels item=level}
<option value="{$level.user_level_id}" {if $smarty.get.level==$level.user_level_id} selected="selected"{/if}>{$level.user_level_name}</option>
{/foreach}
</select>
</td>
<tr>
<td align="right" valign="top">Category</td>
<td>
{$formObj->createField($cat_array)}
</td>
</tr>
</table>
<br />
<input type="submit" name="search" id="search" value="Search Form" class="button"/>
</form>
</div>
<!-- Displaying Members -->
<form name="user_manage" method="post">
<table width="100%" 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="ban_selected2" value="Make Unfeatured" class="button" id="ban_selected2"/>
<input type="submit" name="ban_selected" value="Ban Selected" class="button" id="ban_selected"/>
<input type="submit" name="unban_selected" value="Unban Selected" class="button" id="unban_selected"/>
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected video(s)')"/>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="40" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" class="head">UID</td>
<td class="head">User Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
{if $users}
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{foreach from=$users item=u}
<tr class="video_opt_td" bgcolor="{$bgcolor}">
<td width="40" align="center" valign="top" class="video_opt_td"> <input name="check_user[]" type="checkbox" id="check_user" value="{$u.userid}" /></td>
<td width="50" align="left" 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;"><img src="{$userquery->getUserThumb($u,'small')}" class="mid_user_thumb" /></div>
<a href="{$userquery->profile_link($u)}" target="_blank" style="text-indent:10px">
{$u.username}
</a> &#8212;
<span class="vdo_sets">Email:<strong><span style="text-transform:none">{$u.email}</span> </strong> &#8226;
Status:<strong>{$u.usr_status}</strong> &#8226;
Level:<strong>{$u.level|get_user_level}</strong> &#8226;
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="login_as_user.php?uid={$u.userid}">Login as user</a> | <a href="?deleteuser={$u.userid}">Delete</a>
</div>
</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/foreach}
</table>
{else}
<div align="center"><strong><em>NO USER FOUND</em></strong></div>
{/if}
<table width="100%" 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="ban_selected2" value="Make Unfeatured" class="button" id="ban_selected2"/>
<input type="submit" name="ban_selected" value="Ban Selected" class="button" id="ban_selected"/>
<input type="submit" name="unban_selected" value="Unban Selected" class="button" id="unban_selected"/>
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected video(s)')"/>
</td>
</tr>
</table>
</form>
<!-- DIsplaying Videos Ends-->
{include file="$style_dir/blocks/pagination.html" }

View file

@ -0,0 +1,35 @@
{assign var=msg value=$eh->message_list}
{assign var=err value=$eh->error_list}
{assign var=war value=$eh->warning_list}
{if $err.0 neq '' || $err.1 neq ''}
<div class="msg error">
<ul>
{foreach from=$err item=show_msg}
<li><img src="{$imageurl}/cross.png" />{$show_msg}</li>
{/foreach}
</ul>
</div>
{/if}
{if $msg.0 neq ''}
<div class="msg blue">
<ul>
{foreach from=$msg item=show_msg}
<li><img src="{$imageurl}/ok.png" />{$show_msg}</li>
{/foreach}
</ul>
</div>
{/if}
{if $war.0 neq ''}
<div class="msg blue">
<ul>
{foreach from=$war item=show_msg}
<li><img src="{$imageurl}/error.png" />{$show_msg}</li>
{/foreach}
</ul>
</div>
{/if}

View file

@ -0,0 +1,33 @@
<h2>{$total} users are online</h2>
<div style="height:10px"></div>
<div style="padding:3px; background-color:#09c; font-weight:bold; color:#fff">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="150">User</td>
<td>Browsing</td>
<td width="150">Access time</td>
<td width="100">IP</td>
</tr>
</table>
</div>
{if $online_users}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="browsingUsers">
{foreach from=$online_users item=user}
{$user.agent|get_browser_details:theBrowser}
<tr >
<td width="150">{if $user.username}<a href="view_user?uid={$user.userid}">{$user.username}</a>{else}{$user.session_string}{/if} <img class="tipsy_tip browser {$theBrowser.bname}" src="{$imageurl}/dot.gif" title="{$theBrowser.name} {$theBrowser.version} on {$theBrowser.platform}" /></td>
<td><a href="{$user.current_page}">{$user.current_page|truncate:40:'..':false:true}</a>
{if $user.referer} <sub class="tipsy_tip" title="{$user.referer}"><a href="{$user.referer}" target="_blank" style="color:#030">view referer</a></sub>{/if}</td>
<td width="150">{$user.session_date|niceTime}<br><a href="{$queryString}kick={$user.session_id}" class="kick" title="This will make user force logout">KICK</a></td>
<td width="100">{$user.ip}</td>
</tr>
{/foreach}
</table>
{/if}

View file

@ -0,0 +1,78 @@
<h2>Orphan Photos</h2>
<form action="" method="post" name="manage_orpahns">
<table width="100%" 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="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="return confirm_it('Are you sure you want to delete selected photos(s)')"/>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="75" align="center" valign="middle" class="head">Photo ID</td>
<td class="head">Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
{if $photos}
{section name=list loop=$photos}
<li class="clearfix myAdminList" style="background:#{cycle values='FFFFFF,EEEEEE'}"
OnMouseOver="$('#vid_opt-{$photos[list].photo_id}').show()"
OnMouseOut="$('#vid_opt-{$photos[list].photo_id}').hide()">
<div class="moveL PhotoCheckBox">
<div align="center"><input name="check_photo[]" type="checkbox" id="check_photo_{$photos[list].photo_id}" value="{$photos[list].photo_id}" /></div>
</div>
<div class="moveL PhotoID">{$photos[list].photo_id}</div>
<div class="moveL clearfix PhotoDetails" style="width:88%;">
<div class="moveL AdminPhotoThumb">
<label for="check_photo_{$photos[list].photo_id}">{get_photo details=$photos[list] id='photo' style='padding:2px; border:1px solid #ccc' output='html'}</label>
</div>
<div class="moveL">
<a href="{$baseurl}/admin_area/edit_photo.php?photo={$photos[list].photo_id}">{$photos[list].photo_title}</a>
<div style="height:4px;"></div>
<span class="vdo_sets">
Featured:<strong>{$photos[list].featured} </strong> &#8226;
{if $photos[list].collection_id}
Collection:<strong><a title="Edit Collection" href="edit_collection.php?collection={$photos[list].collection_id}">{$photos[list].collection_id|get_collection_field}</a></strong>
{else}
Photo is Orphan
{/if} &#8226;
Uploaded:<strong>{$photos[list].date_added|niceTime}</strong> &#8226;
User:<strong><a href="view_user.php?uid={$photos[list].userid}">{$photos[list].username}</a></strong>
</span>
<div style="height:4px;"></div>
<div id="vid_opt-{$photos[list].photo_id}" style="display:none" class="AdminPhotoActions">
<a href="edit_photo.php?photo={$photos[list].photo_id}">Edit</a> |
<a href="javascript:void(0);" id="delete-{$photos[list].photo_id}" onmousedown="delete_item('delete','{$photos[list].photo_id}','Are you sure you want to delete? This will permanently delete {$photos[list].photo_title} from website.','?delete_photo={$photos[list].photo_id}');">Delete</a>
</div>
</div>
</div>
</li>
{/section}
<table width="100%" 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="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="return confirm_it('Are you sure you want to delete selected photos(s)')"/>
</td>
</tr>
</table>
</form>
{else}
<div align="center"><strong><em>No Photo Found</em></strong></div>
{/if}

View file

@ -0,0 +1,148 @@
<h2>Photo Manager</h2>
<img src="{$imageurl}/dot.gif" class="sarch_button" onclick="toggle_search('searchdiv')" />
<div class="search_box" id="searchdiv" {if $smarty.cookies.show_searchdiv_search!='show'} style="display:none"{/if}>
<form action="photo_manager.php" method="get" name="search_photos">
<table width="400" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="106" align="right"><label for="title">Photo 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="photokey">Photo key</label></td>
<td><input name="photokey" type="text" class="input" id="photokey" value="{'photokey'|get_form_val:true}" //></td>
</tr>
<tr>
<td align="right"><label for="photoid">Photo id</label></td>
<td><input name="photoid" type="text" class="input" id="photoid" value="{'photoid'|get_form_val:true}" //></td>
</tr>
<tr>
<td align="right"><label for="tags">Photo 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">Userid</td>
<td><input name="userid" type="text" class="input" id="userid" value="{'userid'|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">Extension</td>
<td>
<select name="extension" id="extension">
<option value="" ></option>
{foreach from=$cbphoto->exts item=ext}
<option value="{$ext}"{if $smarty.get.extension == $ext} selected="selected"{/if}>{$ext|capitalize}</option>
{/foreach}
</select>
</td>
</tr>
<tr>
<td align="right">Order</td>
<td>
<select name="order" id="order">
<option value="" ></option>
<option value="photo_id" {if $smarty.get.order == 'photo_id'}selected="selected"{/if}>ID</option>
<option value="photo_title" {if $smarty.get.order == 'photo_title'}selected="selected"{/if}>Name</option>
<option value="views" {if $smarty.get.order == 'views'}selected="selected"{/if}>Views</option>
</select>
</td>
</tr>
</table>
<br />
<input type="submit" name="search" id="search" value="Search Form" class="button"/>
</form>
</div>
<form name="photo_manager" method="post">
<table width="100%" 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="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="return confirm_it('Are you sure you want to delete selected photos(s). This will permanently delete these photos from website.')"/><br />
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="75" align="center" valign="middle" class="head">Photo ID</td>
<td class="head">Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
{if $photos}
{section name=list loop=$photos}
<li class="clearfix myAdminList" style="background:#{cycle values='FFFFFF,EEEEEE'}"
OnMouseOver="$('#vid_opt-{$photos[list].photo_id}').show()"
OnMouseOut="$('#vid_opt-{$photos[list].photo_id}').hide()">
<div class="moveL PhotoCheckBox">
<div align="center"><input name="check_photo[]" type="checkbox" id="check_photo" value="{$photos[list].photo_id}" /></div>
</div>
<div class="moveL PhotoID">{$photos[list].photo_id}</div>
<div class="moveL clearfix PhotoDetails" style="width:88%;">
<div class="moveL AdminPhotoThumb">
{get_photo details=$photos[list] id='photo' style='padding:2px; border:1px solid #ccc' output='html'}
</div>
<div class="moveL">
<a href="{$baseurl}/admin_area/edit_photo.php?photo={$photos[list].photo_id}">{$photos[list].photo_title}</a>
<div style="height:4px;"></div>
<span class="vdo_sets">
Featured:<strong>{$photos[list].featured} </strong> &#8226;
{if $photos[list].collection_id}
Collection:<strong><a title="Edit Collection" href="edit_collection.php?collection={$photos[list].collection_id}">{$photos[list].collection_id|get_collection_field}</a></strong>
{else}
Photo is Orphan
{/if} &#8226;
Uploaded:<strong>{$photos[list].date_added|niceTime}</strong> &#8226;
User:<strong><a href="view_user.php?uid={$photos[list].userid}">{$photos[list].username}</a></strong>
</span>
<div style="height:4px;"></div>
<div id="vid_opt-{$photos[list].photo_id}" style="display:none" class="AdminPhotoActions">
<a href="edit_photo.php?photo={$photos[list].photo_id}">Edit</a> |
<a href="{$baseurl}/view_item.php?item={$photos[list].photo_key}&amp;type=photos&amp;collection={$photos[list].collection_id}" target="_blank">View</a> {if $photos[list].featured == yes} |
<a href="?make_unfeature={$photos[list].photo_id}">Make Unfeatured</a> {/if}
{if $photos[list].featured == no} |
<a href="?make_feature={$photos[list].photo_id}">Make Featured</a> {/if} |
<a href="javascript:void(0);" id="delete-{$photos[list].photo_id}" onmousedown="delete_item('delete','{$photos[list].photo_id}','Are you sure you want to delete? This will permanently delete {$photos[list].photo_title} from website.','?delete_photo={$photos[list].photo_id}');">Delete</a>
</div>
</div>
</div>
</li>
{/section}
<table width="100%" 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="move_to_selected" value="Move To" 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="return confirm_it('Are you sure you want to delete selected photos(s)')"/>
</td>
</tr>
</table>
</form>
{else}
<div align="center"><strong><em>No Photo Found</em></strong></div>
{/if}
{include file="$style_dir/blocks/pagination.html" }

View file

@ -0,0 +1,224 @@
{if $mode == '' || $mode == 'photo_settings'}
<h2>Photo Settings</h2>
<div style="height:5px; clear:both;"></div>
<form name="form1" method="post" id="photo_settings">
<div id="tabbed_div" class="clearfix">
<div class="main_page_div">
<fieldset class="fieldset" style="border:none">
<legend>Photo Resizing</legend>
<div style="height:5px; clear:both;"></div>
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td width="200" valign="top">
Photo Ratio
<span class="smallText">Your photo thumb and medium size thumb will be resized according to these ratios</span>
</td>
<td valign="top">
<div id="ratios">
<input name="photo_ratio" id="ratio_1" value="4:3" type="radio"{if $row.photo_ratio == '4:3'} checked{/if} />
<label for="ratio_1">
<span style="width:120px; height:90px; line-height:90px;" class="RatioBox">4:3</span></label>
<input name="photo_ratio" id="ratio_3" value="16:9" type="radio"{if $row.photo_ratio == '16:9'} checked{/if} />
<label for="ratio_3">
<span style="width:120px; height:68px; line-height:68px;" class="RatioBox">16:9</span>
</label>
<input name="photo_ratio" id="ratio_2" value="16:10" type="radio"{if $row.photo_ratio == '16:10'} checked{/if} />
<label for="ratio_2">
<span style="width:120px; height:75px; line-height:75px;" class="RatioBox">16:10</span>
</label>
</div>
</td>
</tr>
<tr>
<td width="200" valign="top">
Photo Width
<span class="smallText">Height will automatically be updated according to your ratio selected</span>
</td>
<td valign="top" >
<div class="smallText" style="font:bold 10px Tahoma; color:#666; display:block;">Thumb Dimensions:</div>
<input maxlength="3" type="text" name="photo_thumb_width" title="Thumb Width" id="image_width" value="{$row.photo_thumb_width}" />
<input maxlength="3" title="Thumb Height" type="text" name="photo_thumb_height" id="image_height" value="{$row.photo_thumb_height}" readonly>
<br />
<br />
<div class="smallText" style="font:bold 10px Tahoma; color:#666; display:block;"> Medium Thumb Dimensions:</div>
<input maxlength="3" title="Medium Thumb Width" type="text" name="photo_med_width" id="med_width" value="{$row.photo_med_width}" />
<input maxlength="3" title="Medium Thumb Height" type="text" name="photo_med_height" id="med_height" value="{$row.photo_med_height}" readonly>
</td>
</tr>
<tr>
<td width="200" valign="top">
Large Photo Width
<span class="smallText">
Width of Large Photo
</span>
</td>
<td>
<input type="text" maxlength="3" name="photo_lar_width" id="lar_width" value="{$row.photo_lar_width}" />
</td>
</tr>
<tr>
<td width="200" valign="top">
Crop Image
<span class="smallText">
If Enable, your thumb and medium size will be cropped excatly to above dimensions if required.
</span>
</td>
<td valign="top">
<input value="1" type="radio" name="photo_crop" id="crop_yes" {if $row.photo_crop == '1'}checked{/if} /><label for="crop_yes">Enable</label>
<input value="0" type="radio" name="photo_crop" id="crop_no" {if $row.photo_crop == '0'}checked{/if}/><label for="crop_no">Disable</label>
</td>
</tr>
</table>
<div style="height:5px; clear:both;"></div>
<legend>Photo Behavior</legend>
<div style="height:5px; clear:both;"></div>
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td width="200" valign="top">
Multi-upload
<span class="smallText">
Number of photos, user can upload at once.
</span>
</td>
<td valign="top">
<input type="text" name="photo_multi_upload" id="multi_photo" value="{$row.photo_multi_upload}" >
</td>
</tr>
<tr>
<td width="200" valign="top">
Max Photo Size
<span class="smallText">
Maximum allowed photo size, in MBs.
</span>
</td>
<td valign="top">
<input type="text" name="max_photo_size" id="max_photo_size" value="{$row.max_photo_size}" >
</td>
</tr>
<tr>
<td width="200" valign="top">
<label for="photo_download">Enable Photo Downloading</label>
</td>
<td valign="top">
<input type="checkbox" name="photo_download" id="photo_download" value="1" {if $row.photo_download == '1'}checked{/if}>
</td>
</tr>
<tr>
<td width="200" valign="top">
<label for="photo_comments">Enable Photo Comments</label>
</td>
<td valign="top">
<input type="checkbox" name="photo_comments" id="photo_comments" value="1"{if $row.photo_comments == '1'}checked{/if} >
</td>
</tr>
<tr>
<td width="200" valign="top">
<label for="photo_rating">Enable Photo Rating</label>
</td>
<td valign="top">
<input type="checkbox" name="photo_rating" id="photo_rating" value="1"{if $row.photo_rating == '1'}checked{/if} >
- User can rate his own photo
<input type="checkbox" name="own_photo_rating" id="own_photo_rating" value="1"{if $row.own_photo_rating == '1'}checked{/if} /></td>
</tr>
</table>
</fieldset>
</div> <!-- main_page_div end -->
<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>
</div>
</form>
{/if}
{if $mode == 'watermark_settings'}
<h2>Watermark Settings</h2>
<div style="height:5px; clear:both"></div>
<form action="" method="post" enctype="multipart/form-data">
<div class="main_page_div clearfix">
<fieldset class="fieldset" style="border:0px; display:block;">
<div style="float:left; width:800px;">
<legend>Watermark Settings</legend>
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td width="200" valign="top">Enable Watermark</td>
<td valign="top"><input name="watermark_photo" id="watermark_photo" type="checkbox" value="1"{if $row.watermark_photo == '1'} checked{/if} ></td>
</tr>
<tr>
<td width="200" valign="top">Maximum Width <span class="smallText">Maximum Width of watermark image. Recommended is 120.</span></td>
<td valign="top"><input name="watermark_max_width" id="watermark_max_width" type="text" value="{$row.watermark_max_width}" ></td>
</tr>
<tr>
<td width="200" valign="top">Watermark Placement</td>
<td valign="top">
<div style="float:left; width:150px;">
<input type="radio" name="watermark_placement" id="top_left" value="left:top"{if $row.watermark_placement == 'left:top'} checked{/if} />
<label for="top_left">Top - Left</label><br/>
<input type="radio" name="watermark_placement" id="top_right" value="right:top"{if $row.watermark_placement == 'right:top'} checked{/if} />
<label for="top_right">Top - Right</label><br/>
<input type="radio" name="watermark_placement" id="top_center" value="center:top"{if $row.watermark_placement == 'center:top'} checked{/if} />
<label for="top_center">Top - Center</label><br/><br/>
</div>
<div style="float:left; width:150px;">
<input type="radio" name="watermark_placement" id="bottom_left" value="left:bottom"{if $row.watermark_placement == 'left:bottom'} checked{/if} />
<label for="bottom_left">Bottom - Left</label><br/>
<input type="radio" name="watermark_placement" id="bottom_right" value="right:bottom"{if $row.watermark_placement == 'right:bottom'} checked{/if} />
<label for="bottom_right">Bottom - Right</label><br/>
<input type="radio" name="watermark_placement" id="bottom_center" value="center:bottom"{if $row.watermark_placement == 'center:bottom'} checked{/if} />
<label for="bottom_center">Bottom - Center</label><br/><br/>
</div>
<div style="float:left; width:150px;">
<input type="radio" name="watermark_placement" id="left" value="left:center"{if $row.watermark_placement == 'left:center'} checked{/if} />
<label for="left">Left</label><br/>
<input type="radio" name="watermark_placement" id="right" value="right:center"{if $row.watermark_placement == 'right:center'} checked{/if} />
<label for="right">Right</label><br/>
<input type="radio" name="watermark_placement" id="center" value="center:center"{if $row.watermark_placement == 'center:center'} checked{/if} />
<label for="center">Center</label><br/>
</div>
</td>
</tr>
</table>
<div style="height:5px; clear:both"></div>
<legend>Upload New Watermark</legend>
<span class="smallText" style="font-size:11px;">This will over-write your existing watermark file, if exists.</span>
<div style="height:5px; clear:both"></div>
<input type="file" name="watermark_file" id="watermark_file" >
</div>
<div class="main_page_div" style="float:right; width:200px; text-align:center; height:auto; min-height:0px;">
<legend style="width:100%;">Current Watermark</legend>
<div style="height:5px; clear:both"></div>
{assign var=file value=$cbphoto->watermark_file()}
{if $file}
<img src="{$cbphoto->watermark_file()}" />
{else}
<strong>Watermark not found</strong>
{/if}
</div>
</fieldset>
</div> <!-- main_page_div end -->
<div align="right"class="main_page_div" style="padding:5px; min-height:0px; margin-top:10px">
<label>
<input type="submit" name="update_watermark" class="button" value="Update Settings" id="update_watermark" />
</label>
</div>
</form>
{/if}

View file

@ -0,0 +1,153 @@
<h2>Installed Plugins</h2>
{if $installed_plugin_list}
<form name="installed_plugins" id="installed_plugins" method="post" action="plugin_manager.php">
<table width="100%" 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="uninstall_selected" value="Uninstall" class="button" onclick="return confirm_it('Are you sure you want to uninstall selected plugin(s)')" id="uninstall_selected"/>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td class="head">Plugin Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{assign var = bgcolor value = ""}
{foreach from=$installed_plugin_list item=plug name=item}
<tr class="video_opt_td" bgcolor="{$bgcolor}">
<td width="30" align="center" valign="top" class="video_opt_td"><input name="check_plugin[]" type="checkbox" value="{$smarty.foreach.item.iteration}" />
<input type="hidden" name="plugin_file_{$smarty.foreach.item.iteration}" value="{$plug.plugin_file}" />
<input type="hidden" name="plugin_folder_{$smarty.foreach.item.iteration}" value="{$plug.folder}" />
</td>
<td valign="top" class="video_opt_td">
<strong>{$plug.name}</strong> &#8212;
<span class="vdo_sets">
Active:<strong>{$plug.plugin_active}</strong> &#8226;
Author:<strong><a href="{$plug.website}">{$plug.author}</a></strong> &#8226;
Version:<strong>{$plug.version}</strong></span>
<div style="margin-bottom:10px"> {$plug.description}</div>
<span class="vdo_sets">{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} |
<a href="javascript:Confirm_Uninstall('?uninstall={$plug.plugin_file}{if $plug.folder!=''}&f={$plug.folder}{/if}')">Uninstall</a></span>
<div style="height:5px"></div>
</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/foreach}
</table>
<table width="100%" 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="uninstall_selected" value="Uninstall" class="button" onclick="return confirm_it('Are you sure you want to delete selected video(s)')" id="uninstall_selected"/>
</td>
</tr>
</table>
</form>
{else}
<div align="center"><strong><em>No Installed Plugin Found</em></strong></div>
{/if}
{* Listing New Plugins *}
<div style="height:25px"></div>
<h2>Available Plugins </h2>
{if $new_plugin_list}<form name="available_plugins" id="available_plugins" action="plugin_manager.php" method="post">
<table width="100%" 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="install_selected" value="Install" class="button" onclick="return confirm_it('Are you sure you want to install selected plugin(s)')" id="install_selected"/>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td class="head">Plugin Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{assign var = bgcolor value = ""}
{foreach from=$new_plugin_list item=plug name=item}
<tr class="video_opt_td" bgcolor="{$bgcolor}">
<td width="30" align="center" valign="top" class="video_opt_td">
<input name="check_plugin[]" type="checkbox" value="{$smarty.foreach.item.iteration}" />
<input type="hidden" name="plugin_file_{$smarty.foreach.item.iteration}" value="{$plug.file}" />
<input type="hidden" name="plugin_folder_{$smarty.foreach.item.iteration}" value="{$plug.folder}" /></td>
<td valign="top" class="video_opt_td" >
<strong>{$plug.name}</strong> &#8212;
<span class="vdo_sets">
Active:<strong>{$plug.plugin_active}</strong> &#8226;
Author:<strong><a href="{$plug.website}">{$plug.author}</a></strong> &#8226;
Version:<strong>{$plug.version}</strong></span>
<div style="margin-bottom:10px"> {$plug.description}</div>
<span class="vdo_sets"><a href="?install_plugin={$plug.file}{if $plug.folder!=''}&f={$plug.folder}{/if}">Install Plugin</a></span>
<div style="height:5px"></div>
</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/foreach}
</table>
<table width="100%" 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="install_selected" value="Install" class="button" onclick="return confirm_it('Are you sure you want to install selected plugin(s)')" id="install_selected"/>
</td>
</tr>
</table>
</form>
{else}
<div align="center"><strong><em>No Plugin is available</em></strong></div>
{/if}

View file

@ -0,0 +1,246 @@
{if $mode == 'single'}
<h2>Re-create Photos</h2>
<form action="recreate_thumbs.php?mode={$mode}&amp;photo={$data.photo_id}" method="post" enctype="multipart/form-data">
<a href="edit_photo.php?photo={$p.photo_id}">&laquo; Back to Edit Details</a>
<div style="height:5px;"></div>
<fieldset class="fieldset" style="padding:10px;">
<legend style="font:bold 11px Tahoma; text-transform:uppercase; background:#FFF; padding:0 20px;">Settings on which photos will be re-created</legend>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Ratio</div>
<div class="moveL"><input disabled="disabled" value="{$Cbucket->configs.photo_ratio}" class="disabled" /></div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Thumb Size</div>
<div class="moveL"><input disabled="disabled" value="{$Cbucket->configs.photo_thumb_width}" class="disabled" /> x <input disabled="disabled" value="{$Cbucket->configs.photo_thumb_height}" class="disabled" /></div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Medium Size</div>
<div class="moveL"><input disabled="disabled" value="{$Cbucket->configs.photo_med_width}" class="disabled" /> x <input disabled="disabled" value="{$Cbucket->configs.photo_med_height}" class="disabled" /></div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Large Size</div>
<div class="moveL"><input disabled="disabled" value="{$Cbucket->configs.photo_lar_width}" class="disabled" /></div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Cropping</div>
<div class="moveL">
{assign var=cropping value=$Cbucket->configs.photo_crop}
{if $cropping == 1}
<span class="AdminBoldText">Enabled</span>
{else}
Disabled
{/if}
</div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Watermarking</div>
<div class="moveL">
{assign var=watermark value=$Cbucket->configs.watermark_photo}
{if $watermark == 1}
<span class="AdminBoldText">Enabled</span> | <span class="AdminBoldText">Placement</span> - <input disabled="disabled" value="{$Cbucket->configs.watermark_placement}" class="disabled" />
{else}
<span class="AdminBoldText">Disabled</span>
{/if}
</div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px; background:#EEE;">
<div class="moveL PhotoID" style="width:10%">&nbsp;</div>
<div class="moveL">
<span class="AdminBoldText" style="color:#333;">Update settings if they are not according to your needs.</span>
</div>
</li>
</fieldset>
<div style="height:5px; clear:both;"></div>
<a href="recreate_thumbs.php?mode={$mode}&amp;photo={$p.photo_id}&amp;recreate=true" style="margin-bottom:5px;" class="myAdminButton moveR">Re-create Photo</a>
<fieldset class="fieldset" style="padding:8px;">
{foreach from=$files item=file}
<div style="float:left; margin-right:15px;">
<div style="font:bold 11px Tahoma;">
{assign var=size value=$cbphoto->get_image_type($file)}
Filename: {$p.filename}{if $size} - Size: {$size}{/if}
</div>
<div style="height:5px;"></div>
<img src="{$file}" style="max-width:300px;" />
</div>
{/foreach}
</fieldset>
</form>
{/if}
{if $mode == 'mass' || $mode == ''}
<h2>Mass Re-creation of Photos</h2>
<div style="height:10px; clear:both;"></div>
<span class="AdminBoldText">This will re-create all the photos uploaded on your website, according to the settings shown below</span>
<div class="AdminBoldText" style="color:#ed0000; font:normal 10px Tahoma, Geneva, sans-serif; margin-top:5px;">Take caution while using Mass Recreation. Use MAX of 5 photos per GO.</div>
<div style="height:5px; clear:both;"></div>
<fieldset class="fieldset" style="padding:10px;">
<legend style="font:bold 11px Tahoma; text-transform:uppercase; background:#FFF; padding:0 20px;">Settings on which photos will be re-created</legend>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Ratio</div>
<div class="moveL"><input disabled="disabled" value="{$Cbucket->configs.photo_ratio}" class="disabled" /></div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Thumb Size</div>
<div class="moveL"><input disabled="disabled" value="{$Cbucket->configs.photo_thumb_width}" class="disabled" /> x <input disabled="disabled" value="{$Cbucket->configs.photo_thumb_height}" class="disabled" /></div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Medium Size</div>
<div class="moveL"><input disabled="disabled" value="{$Cbucket->configs.photo_med_width}" class="disabled" /> x <input disabled="disabled" value="{$Cbucket->configs.photo_med_height}" class="disabled" /></div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Large Size</div>
<div class="moveL"><input disabled="disabled" value="{$Cbucket->configs.photo_lar_width}" class="disabled" /></div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Cropping</div>
<div class="moveL">
{assign var=cropping value=$Cbucket->configs.photo_crop}
{if $cropping == 1}
<span class="AdminBoldText">Enabled</span>
{else}
Disabled
{/if}
</div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Watermarking</div>
<div class="moveL">
{assign var=watermark value=$Cbucket->configs.watermark_photo}
{if $watermark == 1}
<span class="AdminBoldText">Enabled</span> | <span class="AdminBoldText">Placement</span> - <input disabled="disabled" value="{$Cbucket->configs.watermark_placement}" class="disabled" />
{else}
<span class="AdminBoldText">Disabled</span>
{/if}
</div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px; background:#EEE;">
<div class="moveL PhotoID" style="width:10%">&nbsp;</div>
<div class="moveL">
<span class="AdminBoldText" style="color:#333;">Update settings if they are not according to your needs.</span>
</div>
</li>
</fieldset>
<div style="height:5px; clear:both;"></div>
<div class="moveL">
<span class="AdminBoldText">Loop Size</span> - <input type="text" name="textfield" style="width:60px; font:normal 11px Tahoma" value="{$loop_size}" id="the_loop_size" /><br/>
<div class="smallText" style="margin-top:2px">Number of photos to re-create in one go.</div>
</div>
<form name="mass_recreation" method="get" action="">
<input type="hidden" name="loop_size" value="" id="loop_start" />
<input type="submit" name="mass_recreation" id="mass_recreation" value="Start Recreation" class="myAdminButton moveR"
onclick="$('#loop_start').val($('#the_loop_size').val())"/>
</form>
{if $indexing}
<div align="right" style="padding:5px">{$from} - {$to} of {$total}</div>
<ul>
{foreach from=$index_msgs item=themsg}
<li>{$themsg}</li>
{/foreach}
</ul>
{if $stop_loop!='yes'}
<script type="text/javascript">
var start_index = '{$next_index}';
var loop_size = '{$smarty.get.loop_size}';
var mode = '{$mode}';
var button = '{$button}';
{literal}$(document).oneTime(2000,function(){$(window.location).attr('href', '?loop_size='+loop_size+'&'+button+'=yes&start_index='+start_index)});{/literal}
</script>
redirecting....do not close this window
{else}
Re-creation of photos have been completed.
{/if}
{/if}
{/if}
{if $mode == "collection"}
<h2>Recreate Photos</h2>
<div style="height:10px; clear:both;"></div>
{if $items}
{assign var=cid value=$items[0].collection_id}
{assign var=c_name value=$items[0].collection_id|get_collection_field}
<span style="font:bold 14px Arial; text-transform:uppercase;">{$c_name}</span>
<span style="font:bold 11px Tahoma;">
- <a href="{$cbcollection->collection_links($items[0].collection_id,'vc')}">View Collection</a> -
<a href="{$baseurl}/admin_area/edit_collection.php?collection={$cid}">Edit Collection</a> -
<a href="{$baseurl}/admin_area/manage_items.php?collection={$cid}&amp;type={$items[0].collection_id|get_collection_field:type}">Manage Items</a>
</span>
<fieldset class="fieldset" style="padding:10px;">
<legend style="font:bold 11px Tahoma; text-transform:uppercase; background:#FFF; padding:0 20px;">Settings on which photos will be re-created</legend>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Ratio</div>
<div class="moveL"><input disabled="disabled" value="{$Cbucket->configs.photo_ratio}" class="disabled" /></div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Thumb Size</div>
<div class="moveL"><input disabled="disabled" value="{$Cbucket->configs.photo_thumb_width}" class="disabled" /> x <input disabled="disabled" value="{$Cbucket->configs.photo_thumb_height}" class="disabled" /></div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Medium Size</div>
<div class="moveL"><input disabled="disabled" value="{$Cbucket->configs.photo_med_width}" class="disabled" /> x <input disabled="disabled" value="{$Cbucket->configs.photo_med_height}" class="disabled" /></div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Large Size</div>
<div class="moveL"><input disabled="disabled" value="{$Cbucket->configs.photo_lar_width}" class="disabled" /></div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Cropping</div>
<div class="moveL">
{assign var=cropping value=$Cbucket->configs.photo_crop}
{if $cropping == 1}
<span class="AdminBoldText">Enabled</span>
{else}
Disabled
{/if}
</div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px;">
<div class="moveL PhotoID" style="width:10%">Watermarking</div>
<div class="moveL">
{assign var=watermark value=$Cbucket->configs.watermark_photo}
{if $watermark == 1}
<span class="AdminBoldText">Enabled</span> | <span class="AdminBoldText">Placement</span> - <input disabled="disabled" value="{$Cbucket->configs.watermark_placement}" class="disabled" />
{else}
<span class="AdminBoldText">Disabled</span>
{/if}
</div>
</li>
<li class="clearfix myAdminList" style="padding-bottom:5px; background:#EEE;">
<div class="moveL PhotoID" style="width:10%">&nbsp;</div>
<div class="moveL">
<span class="AdminBoldText" style="color:#333;">Update settings if they are not according to your needs.</span>
</div>
</li>
</fieldset>
<form action="" method="post" name="collection_photos_recreate">
<fieldset class="fieldset" style="padding:10px;">
<legend style="font:bold 11px Tahoma; text-transform:uppercase; background:#FFF; padding:0 20px;">Photos</legend>
<table border="0" cellspacing="0">
{section name=list loop=$items}
<td style="display:inline-block; padding:5px;">
<div style="position:relative">
<input type="checkbox" value="{$items[list].photo_id}" id="photo_{$items[list].photo_id}" style="position:absolute; top:1px; right:1px; " name="check_photo[]" />
<label for="photo_{$items[list].photo_id}">{get_photo output=html details=$items[list] style='padding:1px; border:1px solid #aaa'}</label>
</div>
</td>
{/section}
</table>
</fieldset>
<div class="AdminBoldText moveL" style="padding:10px 0 0;">Select photos you want to re-created | </div>
<label for="id_selectALL" class="myAdminButton clearfix moveL" type="button" name="checkall" onclick="checkUncheckAll(this);" style="margin:5px 0 0 5px">Select All</label><input type="checkbox" id="id_selectALL" style="visibility:hidden;" name="checkall" onclick="checkUncheckAll(this);"/>
<div style="margin-top:5px;" class="moveR"><input type="submit" name="recreating" value="Re-create Photos" class="myAdminButton"/></div>
</form>
{else}
{/if}
{/if}

View file

@ -0,0 +1,91 @@
<span class="page_title">Re-index Clipbucket <img src="{$imageurl}/help.png" border="0" class="tipsy_tip" title="Re-index simples means to recount everything and update it." /></span>
<div style="height:3px;"></div>
Here you can re-index your videos, users or groups statistics. From below select which thing you want to re-index.
<div style="height:25px; clear:both"></div>
<table width="600" border="0" cellpadding="2" cellspacing="2" class="reindex_tbl">
<tr>
<td align="left"><h4>Loop Size</h4>
number of items to reindex at once</td>
<td align="right">
<input type="text" name="textfield" style="width:60px" value="{$loop_size}" id="the_loop_size" /></td>
</tr>
<tr>
<td align="left"><h4>Reindex Videos</h4>
this will reindex total playlists, total favorites and total comments made on video</td>
<td align="right">
<form name="reindex_videos" method="get" action="">
<input type="hidden" name="loop_size" value="" id="loop_start" />
<input type="submit" name="index_vids" id="index_vids" value="Reindex Videos" class="button"
onclick="$('#loop_start').val($('#the_loop_size').val())"/>
</form></td>
</tr>
<tr>
<td align="left"><h4>Reindex Users</h4>
This will reindex total videos, total comments, total comments made, total subscribers and subscriptions, total groups owned, </td>
<td align="right">
<form name="reindex_users" method="get" action="">
<input type="hidden" name="loop_size" value="" id="loop_start_user" />
<input type="submit" name="index_usrs" id="index_usrs" value="Reindex Users" class="button"
onclick="$('#loop_start_user').val($('#the_loop_size').val())"/>
</form></td>
</tr>
<tr>
<td align="left"><h4>Reindex Groups
</h4>
this will reindex all groups , update total members, total videos , total topics</td>
<td align="right">
<form name="reindex_groups" method="get" action="">
<input type="hidden" name="loop_size" value="" id="loop_start_gp" />
<input type="submit" name="index_gps" id="index_gps" value="Reindex Groups" class="button"
onclick="$('#loop_start_gp').val($('#the_loop_size').val())"/>
</form></td>
</tr>
<tr>
<td align="left"><h4>Reindex Collections
</h4>
this will reindex all collections , update total objects, total comments</td>
<td align="right">
<form name="reindex_collections" method="get" action="">
<input type="hidden" name="loop_size" value="" id="loop_start_cl" />
<input type="submit" name="index_collections" id="index_collections" value="Reindex Collections" class="button"
onclick="$('#loop_start_gp').val($('#the_loop_size').val())"/>
</form></td>
</tr>
<tr>
<td align="left"><h4>Reindex Photos
</h4>
this will reindex all photos , update total favorites, total comments</td>
<td align="right">
<form name="reindex_photos" method="get" action="">
<input type="hidden" name="loop_size" value="" id="loop_start_ph" />
<input type="submit" name="index_photos" id="index_photos" value="Reindex Photos" class="button"
onclick="$('#loop_start_gp').val($('#the_loop_size').val())"/>
</form></td>
</tr>
</table>
{if $indexing}
<div align="right" style="padding:5px">{$from} - {$to} of {$total}</div>
<ul>
{foreach from=$index_msgs item=themsg}
<li>{$themsg}</li>
{/foreach}
</ul>
{if $stop_loop!='yes'}
<script type="text/javascript">
var start_index = '{$next_index}';
var loop_size = '{$smarty.get.loop_size}';
var mode = '{$mode}';
{literal}$(document).oneTime(2000,function(){$(window.location).attr('href', '?loop_size='+loop_size+'&'+mode+'=yes&start_index='+start_index)});{/literal}
</script>
redirecting....do not close this window
{else}
Indexing has been completed.
{/if}
{/if}

Some files were not shown because too many files have changed in this diff Show more