Updated : Comments in Admin Area

Added : getcommetns function
Updated : Search Type style
Updated : Main.css
Added : admin_bar.html
This commit is contained in:
Fawaz 2011-01-06 11:19:01 +00:00
parent 2c04aeeefd
commit 3cea117e3e
12 changed files with 247 additions and 130 deletions

View file

@ -3,89 +3,65 @@ require'../includes/admin_config.php';
$userquery->admin_login_check(); $userquery->admin_login_check();
$pages->page_redir(); $pages->page_redir();
if(empty($_GET['type']))
$type = "v";
else
$type = $_GET['type'];
$comment_cond = array();
$comment_cond['order'] = " comment_id DESC";
//Function used to delete multiple comments
if(isset($_POST['delete_selected']))
{
$total = count($_POST['check_comments']);
for($i=0;$i<$total;$i++)
{
$myquery->delete_comment($_POST['check_comments'][$i]);
}
$eh->flush();
e("Selected comments have been deleted","m");
}
//Function used to mark multiple comments as spam
if(isset($_POST['mark_spam']))
{
$total = count($_POST['check_comments']);
for($i=0;$i<$total;$i++)
{
$myquery->spam_comment($_POST['check_comments'][$i]);
}
$eh->flush();
e("Selected comments have been marked as spam","m");
}
//Function used to mark multiple comments as spam
if(isset($_POST['not_spam']))
{
$total = count($_POST['check_comments']);
for($i=0;$i<$total;$i++)
{
$myquery->remove_spam($_POST['check_comments'][$i]);
}
$eh->flush();
e("Selected comments have been removed from spam","m");
}
$mode = $_GET['mode'];
$cid = $_GET['cid'];
$comment = array();
$comment['order'] = " comment_id DESC";
/* By default only video comments list but when you change this is used list video comments */
if(isset($_GET['filter'])) {
$comment['type'] = $_GET['filter'];
assign('filters',$_GET['filter']);
}
/* Used to list topic posts */
if(isset($_GET['filter'])) {
$comment['type'] = $_GET['filter'];
assign('filters',$_GET['filter']);
}
/* Used to list topic posts */
if(isset($_GET['filter'])) {
$comment['type'] = $_GET['filter'];
assign('filters',$_GET['filter']);
}
/* Used to update a comment */
if($cid) {
if(isset($_POST['update_comment'])) {
$updated_comment = $_POST['comment'];
$cbvid->update_comment($cid,$updated_comment);
}
}
/* Getting comments and assigning smarty variables */
$page = mysql_clean($_GET['page']); $page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page,RESULTS); $get_limit = create_query_limit($page,RESULTS);
$comment['limit'] = $get_limit; $comment_cond['limit'] = $get_limit;
$comments = $cbvideo->get_comments($comment); assign('type',$type);
assign("comments",$comments); switch($type)
if($mode) { {
assign('mode',$mode); case "v":
default:
{
$comment_cond['type'] = "v";
$comment_cond['type_id'] = "videoid";
$comment_cond['sectionTable'] = "video";
}
break;
case "c":
{
$comment_cond['type'] = "c";
$comment_cond['type_id'] = "userid";
$comment_cond['sectionTable'] = "users";
}
break;
case "t":
{
$comment_cond['type'] = "t";
$comment_cond['type_id'] = "topic_id";
$comment_cond['sectionTable'] = "group_topics";
}
break;
case "cl":
{
$comment_cond['type'] = "cl";
$comment_cond['type_id'] = "collection_id";
$comment_cond['sectionTable'] = "collections";
}
break;
case "p":
{
$comment_cond['type'] = "p";
$comment_cond['type_id'] = "photo_id";
$comment_cond['sectionTable'] = "photos";
}
break;
} }
/* Pagination */ $comments = getComments($comment_cond);
$ccount = $comment; assign("comments",$comments);
$ccount['count_only'] = true;
$total_rows = $cbvideo->get_comments($ccount); $comment_cond['count_only'] = TRUE;
$total_rows = getComments($comment_cond);
$total_pages = count_pages($total_rows,RESULTS); $total_pages = count_pages($total_rows,RESULTS);
$pages->paginate($total_pages,$page); $pages->paginate($total_pages,$page);

View file

@ -2,7 +2,7 @@
<br /> <br />
<div style="padding:10px;"> <div style="padding:10px;">
<div style="clear:both; height:5px;"></div> <div style="clear:both; height:5px;"></div>
<a href="?filter=v" title="View Video Comments">View Video Comments</a> | <a href="?filter=t">View Topic Posts</a> | <a href="?filter=c">View Channel Comments</a> <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>
<div style="clear:both; height:5px;"></div> <div style="clear:both; height:5px;"></div>
</div> </div>
@ -31,8 +31,6 @@
{if $comments} {if $comments}
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{foreach from=$comments item=comment} {foreach from=$comments item=comment}
@ -42,12 +40,11 @@
{assign var=comment_owner value=$userquery->get_user_details($comment.3)} {assign var=comment_owner value=$userquery->get_user_details($comment.3)}
{/if} {/if}
<tr class="video_opt_td" id="comment_{$comment.comment_id}" style="background-color:{if $comment.spam_votes > 0} #ffd7d7{else}{$bgcolor}{/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="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 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()" > <td valign="top" class="video_opt_td" onmouseover="$('#comm_opt-{$comment.comment_id}').show()" onmouseout="$('#comm_opt-{$comment.comment_id}').hide()" >
{if $filters == '' || $filters == 'v'} {if $type == '' || $type == 'v'}
<span class="vdo_sets"> <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> {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> </span>
@ -68,7 +65,7 @@
</tr> </tr>
{/if} {/if}
{if $filters == 't'} {if $type == 't'}
<span class="vdo_sets"> <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> {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> </span>
@ -85,7 +82,7 @@
</div></div> </div></div>
{/if} {/if}
{if $filters == 'c'} {if $type == 'c'}
<span class="vdo_sets"> <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> {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> </span>
@ -103,6 +100,42 @@
</div></div> </div></div>
{/if} {/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 == ""} {if $bgcolor == ""}
{assign var = bgcolor value = "#EEE"} {assign var = bgcolor value = "#EEE"}
{else} {else}

View file

@ -441,7 +441,7 @@ class ClipBucket
{ {
$this->head_menu(); $this->head_menu();
if(!$params['tag']) if(!$params['tag'])
$params['tag'] = 'li'; //$params['tag'] = 'li';
if(!$params['class']) if(!$params['class'])
$params['class'] = ''; $params['class'] = '';

View file

@ -139,7 +139,8 @@ abstract class CBCategory
function getCbCategories($params) function getCbCategories($params)
{ {
global $db; global $db;
if($this->use_sub_cats && config('use_subs') == 1 && $params['use_sub_cats'] = $params['use_sub_cats'] ? $params['use_sub_cats'] : "yes";
if($this->use_sub_cats && config('use_subs') == 1 && $params['use_sub_cats'] == "yes" &&
($params['type'] == "videos" || $params['type'] == "video" || $params['type'] == "v")) ($params['type'] == "videos" || $params['type'] == "video" || $params['type'] == "v"))
{ {
$cond = " parent_id = 0"; $cond = " parent_id = 0";
@ -253,6 +254,13 @@ abstract class CBCategory
return $html; return $html;
} }
function displayCollpasedListCateogry($catArray,$params)
{
$html = '';
return $html;
}
function displayOutput($CatArray,$params) function displayOutput($CatArray,$params)
{ {
$output = $params['output']; $output = $params['output'];
@ -263,7 +271,10 @@ abstract class CBCategory
case "list": case "li": case "list": case "li":
default: default:
{ {
$html = $this->displayListCategories($CatArray,$params); if($params['list_style'] == "" || $params['list_style'] == "simple")
$html = $this->displayListCategories($CatArray,$params);
if($params['list_style'] == "collapsed")
$html = $this->displayCollpasedListCateogry($CatArray,$params);
} }
break; break;

View file

@ -134,8 +134,6 @@ class formObj
//Generate Category list //Generate Category list
$type = $field['type'] ? $field['type'] : 'video'; $type = $field['type'] ? $field['type'] : 'video';
$catArray = getCategoryList(array("type"=>$field['category_type'])); $catArray = getCategoryList(array("type"=>$field['category_type']));
if(is_array($catArray)) if(is_array($catArray))
{ {

View file

@ -876,6 +876,47 @@
} }
} }
/**
* FUNCTION USED TO GET COMMENTS
* @param : array();
*/
function getComments($params=NULL)
{
global $db;
$order = $params['order'];
$limit = $params['limit'];
$type = $params['type'];
$cond = '';
if(empty($type))
$type = "v";
$cond .= tbl("comments.type")." = '".$type."'";
if($params['type_id'] && $params['sectionTable'])
{
if($cond != "")
$cond .= " AND ";
$cond .= tbl("comments.type_id")." = ".tbl($params['sectionTable'].".".$params['type_id']);
}
if($params['cond'])
{
if($cond != "")
$cond .= " AND ";
$cond .= $params['cond'];
}
if(!$params['count_only'])
$result = $db->select(tbl("comments".($params['sectionTable']?",".$params['sectionTable']:NULL)),"*",$cond,$limit,$order);
//echo $db->db_query;
if($params['count_only'])
$result = $db->count(tbl("comments"),"*",$cond);
if($result)
return $result;
else
return false;
}
/** /**
* FUNCTION USED TO GET ADVERTISMENT * FUNCTION USED TO GET ADVERTISMENT
* @param : array(Ad Code, LIMIT); * @param : array(Ad Code, LIMIT);
@ -2179,7 +2220,9 @@
} }
assign('template_files',$new_list); assign('template_files',$new_list);
Template('body.html'); Template('body.html');
footer(); footer();
} }

View file

@ -5,7 +5,7 @@
<div class="categories"> <div class="categories">
<ul> <ul>
{cbCategories type=$type echo="TRUE" output="list" orderby="category_name" order="DESC" with_all="TRUE"} {cbCategories type=$type echo="TRUE" output="list" orderby="category_name" order="DESC" with_all="TRUE"}
</ul> </ul>
</div> </div>

View file

@ -2,22 +2,6 @@
{include file="$style_dir/global_header.html"} {include file="$style_dir/global_header.html"}
<body> <body>
<!-- ADMIN BAR -->
{if has_access('admin_access') || $userquery->is_admin_logged_as_user()}
<div class="admin_bar">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><a href="{$baseurl}/admin_area">{lang code='admin_panel'}</a> | <a href="{$baseurl}/admin_area/video_manager.php">{lang code='moderate_videos'}</a> | <a href="{$baseurl}/admin_area/members.php">{lang code='moderate_users'}</a></td>
<td align="right">
{if $userquery->is_admin_logged_as_user()}
<a href="{$baseurl}/admin_area/login_as_user.php?revert=yes">{lang code='revert_back_to_admin'}</a>
{/if}</td>
</tr>
</table>
</div>
{/if}
<!-- ADMIN BAR -->
<!-- Including Commong header --> <!-- Including Commong header -->
<div class="container_container"> <div class="container_container">
{include file="$style_dir/header.html" } {include file="$style_dir/header.html" }
@ -39,15 +23,7 @@
{/foreach} {/foreach}
</div> <!--CONTENT END--> </div> <!--CONTENT END-->
<div class="clear"></div> <div class="clear"></div>
<div class="search_footer clearfix">
<div class="foot_s_con">
<div class="advance" title="Advanced Search"></div>
<form name="search-form" method="get" action="{link name='search_result'}">
<input type="text" name="query" value="{'query'|get_form_val:true}" />
<input type="submit" value="{lang code='search'}" class="foot_s_btn" name="cbsearch" />
</form>
</div> <!--FOOT_S_CON END-->
</div> <!--SEARCH_FOOTER END-->
<div id="footer"> <div id="footer">
<div class="changer"> <div class="changer">
<div class="copyright">Powered By Clipbucket</div> <div class="copyright">Powered By Clipbucket</div>

View file

@ -80,6 +80,19 @@ var mid = {$smarty.get.mid};
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {
{/literal}
{if $smarty.get.query == ""}
{literal}
$("#searchSelectWrapper ul li:first-child").addClass('selected');
$('#selectedText').text($("#searchSelectWrapper ul li:first-child a").text());
$('#searchType').val($("#searchSelectWrapper ul li:first-child a").attr('id'));
{/literal}
{else}
{literal}
{/literal}
{/if}
{literal}
$('.user_login').hide(); $('.user_login').hide();
$('#user_login').toggle( $('#user_login').toggle(
@ -91,7 +104,17 @@ var mid = {$smarty.get.mid};
} }
); );
$("#searchSelectWrapper ul li a").bind({
click : function(event) {
event.preventDefault();
$("#searchType").val($(this).attr('id'));
$('#selectedText').text($(this).text());
$(this).parent().parent().children().removeClass('selected');
$(this).parent().addClass('selected')
$('#searchSelectWrapper').hide();
},
});
$('.tabs li').click( $('.tabs li').click(
function() { function() {
$('.tabs li').removeClass('selected') $('.tabs li').removeClass('selected')

View file

@ -40,7 +40,7 @@
{/if} {/if}
</a> </a>
</div> <!--USER_LOGIN ID END--><div class="updatedUpload"> </div> <!--USER_LOGIN ID END--><div class="updatedUpload">
<a href="javascript:void(0)">Upload video</a> | <a href="javascript:void(0)">Upload Photo</a> <a href="{link name='upload'}">Upload video</a> | <a href="{link name='photo_upload'}">Upload Photo</a>
</div> </div>
</div> <!--LOGIN_CON END--> </div> <!--LOGIN_CON END-->
@ -73,11 +73,21 @@
<div class="s_bg"> <div class="s_bg">
<form action="{link name='search_result'}" method="get" name="search" id="search" style="margin:0px; padding:0px;"> <form action="{link name='search_result'}" method="get" name="search" id="search" style="margin:0px; padding:0px;">
<input name="query" id="query" type="text" class="searchbar" value="{'query'|get_form_val:true}" /> <input name="query" id="query" type="text" class="searchbar" value="{'query'|get_form_val:true}" />
<select name="type" class="s_type"> <input type="hidden" name="type" id="searchType" value="{$smarty.get.type}" />
{foreach from=$Cbucket->search_types item=t key=stypes} <div class="moveL">
<option value="{$stypes}" {if $smarty.get.type==$stypes} selected="selected"{/if}>{$stypes}</option> <div id="selectedSearch" class="clearfix" onclick="$('#searchSelectWrapper').toggle();">
{/foreach} <span id="selectedText">{$smarty.get.type|capitalize}</span>
</select> </div>
<div id="searchSelectWrapper">
<ul>
{foreach from=$Cbucket->search_types item=t key=stypes name=SearchTypes}
<li{if $smarty.get.type == $stypes && $smarty.const.THIS_PAGE == "search_result"} class="selected"{/if}>
<a id="{$stypes}" href="#">{$stypes|capitalize}</a>
</li>
{/foreach}
</ul>
</div>
</div>
<input name="submit" type="submit" class="searchbutton" value="Search" /> <input name="submit" type="submit" class="searchbutton" value="Search" />
</form> </form>
</div> <!--S_BG END--> </div> <!--S_BG END-->

View file

@ -117,7 +117,7 @@ span.remember { font-size:10px; }
/* SEARCH */ /* SEARCH */
.s_bg { background:url(../images/search.png) no-repeat; width:359px; height:29px; margin:0px; padding:0px; -moz-border-radius:4px 0px 0px 4px; border:1px solid transparent; } .s_bg { background:url(../images/search.png) no-repeat; width:359px; height:29px; margin:0px; padding:0px; -moz-border-radius:4px 0px 0px 4px; border:1px solid transparent; }
.searchbar { background:none; width:200px; border:none; margin:2px 10px 0px 0px; font-size:11px; color:#323232; font-family:Verdana,Tahoma,sans-serif; float:left; padding:6px 5px 7px; float:left; border-right:1px solid #ccc; } .searchbar { background:none; width:200px; border:none; margin:2px 0px 0px 0px; font-size:11px; color:#323232; font-family:Verdana,Tahoma,sans-serif; float:left; padding:6px 5px 7px; float:left; border-right:1px solid #ccc; }
.searchbutton { background:none; text-indent:-5000px; border:0px; width:59px; height:25px; line-height:18px; cursor:pointer; margin-top:2px; margin-left:5px; font-weight:bold; font-family:tahoma; font-size:11px; } .searchbutton { background:none; text-indent:-5000px; border:0px; width:59px; height:25px; line-height:18px; cursor:pointer; margin-top:2px; margin-left:5px; font-weight:bold; font-family:tahoma; font-size:11px; }
.s_type { background:url(../images/dot.gif) repeat; float:left; margin:7px 9px 0px 1px; padding:0px 0px; font-size:10px; font-family:Verdana,Arial,sans-serif; border:0px none; color:#323232; width:64px; } .s_type { background:url(../images/dot.gif) repeat; float:left; margin:7px 9px 0px 1px; padding:0px 0px; font-size:10px; font-family:Verdana,Arial,sans-serif; border:0px none; color:#323232; width:64px; }
@ -397,7 +397,7 @@ input[disabled].cbSubmitUpload{ background:#f2f2f2; cursor:default; color:#999;
.categories ul li{list-style:none; display:block; margin-bottom:6px;} .categories ul li{list-style:none; display:block; margin-bottom:6px;}
.categories ul li:last-child{border-bottom:none} .categories ul li:last-child{border-bottom:none}
.categories .selected { background-color:#efefef; display:block;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px} .categories .selected { background-color:#efefef; display:block;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px}
.categories ul a{font:bold 14px arial;color:#0066cc; text-decoration:none; display:block; padding:2px 2px 2px 6px; } .categories ul a{font:bold 14px arial;color:#0066cc; text-decoration:none; display:inline-block; padding:2px 2px 2px 6px; }
.categories ul.sub_categories { padding:0px; margin:0px 0px 0px 5px; } .categories ul.sub_categories { padding:0px; margin:0px 0px 0px 5px; }
.categories ul.sub_categories li { padding:1px; margin:0px; } .categories ul.sub_categories li { padding:1px; margin:0px; }
.categories ul.sub_categories li a { font:bold 11px Tahoma; } .categories ul.sub_categories li a { font:bold 11px Tahoma; }
@ -865,6 +865,16 @@ a.CollectThumb { border:1px solid #ccc; display:inline-block; background:#FFF; }
.PhotoUploaderWrapper { border:1px solid #CCC; width:100%; background-color:#EEE; display:inline-block; padding:15px 0px; text-align:center; } .PhotoUploaderWrapper { border:1px solid #CCC; width:100%; background-color:#EEE; display:inline-block; padding:15px 0px; text-align:center; }
.updatedUpload { float:right; background:url(../images/upload_bg.png) top repeat-x; position:relative; top:-1px; height:25px; padding:0px 8px; border:solid #090909; margin:0 0px 0 0; border-width:0 1px 1px; display:block; text-decoration:none; text-align:center; color:#555; line-height:25px; overflow:visible; -moz-border-radius-bottomleft:5px; -webkit-border-bottom-left-radius:5px; z-index:1000; } .updatedUpload { float:right; background:url(../images/upload_bg.png) top repeat-x; position:relative; top:-1px; height:25px; padding:0px 8px; border:solid #090909; margin:0 0px 0 0; border-width:0 1px 1px; display:block; text-decoration:none; text-align:center; color:#555; line-height:25px; overflow:visible; -moz-border-radius-bottomleft:5px; -webkit-border-bottom-left-radius:5px; z-index:1000; }
.updatedUpload a { display:inline-block; color:#fff; text-decoration:none; font-weight:bold; margin:0px 5px } .updatedUpload a { display:inline-block; color:#fff; text-decoration:none; font-weight:bold; margin:0px 5px }
.updatedUpload a:hover{color:#53baff} .updatedUpload a:hover{color:#53baff}
#selectedSearch { position:relative; width:82px; margin:0px; padding:9px 0 5px 0px; text-align:center; font:bold 11px Tahoma; overflow:hidden; color:#000; }
#selectedSearch:hover { cursor:pointer; }
#searchSelectWrapper { padding:0px; margin:0px; position:relative; display:none;}
#searchSelectWrapper ul { position:absolute; background:#EEE; width:104%; top:1px; text-align:center; list-style:none; z-index:999999; padding:0px; margin:0px; border:1px solid #ccc; border-top:0px none; left:-1px; }
#searchSelectWrapper ul li { padding:5px 0px; list-style:none; margin:0px; color:#000; display:block; float:none; border:0px none; position:relative; border:1px solid transparent; margin:0 -1px -1px -1px; }
#searchSelectWrapper ul li a { margin:0px; font:normal 11px Tahoma; color:#000; text-transform:none; display:block; }
#searchSelectWrapper ul li:hover, #searchSelectWrapper ul li.selected { background:#333; border-color:#000; }
#searchSelectWrapper ul li:hover a, #searchSelectWrapper ul li.selected a { color:#FFF; }

View file

@ -0,0 +1,37 @@
<style type="text/css">
{literal}
.CBadminBar { background:#333; border-bottom:1px solid #000; padding:0px; font:bold 11px Tahoma, Geneva, sans-serif; color:#FFF; margin:0px; }
.CBadminBar .CBadminBarWrapper { margin:0px; padding:0px; position:relative; top:1px; }
.CBadminBarWrapper { margin:0px; padding:0px; list-style:none; width:100%; }
.CBadminBarWrapper li { margin:0px; padding:0px; }
.CBadminBarHeading { display:inline-block; list-style:none; margin:0px; padding:0px; position:relative; }
.CBadminBarHeading a { color:#CCC; text-decoration:none; display:inline-block; padding:6px; }
.CBadminBarHeading:hover a { background:#EEE; color:black; }
.CBadminBarSubMenuWrapper { display:none; position:absolute; top:25px; width:200px; left:0px; margin:0px; list-style:none; padding:0px; height:auto; z-index:999999999; background:#EEE; }
.CBadminBarSubMenu { display:block; margin:0px; padding:0px; list-style:none; }
.CBadminBarHeading:hover .CBadminBarSubMenuWrapper { display:block; }
.CBadminBarHeading:hover .CBadminBarSubMenu a { color:#666; width:100%; border:1px solid #EEE;}
.CBadminBarHeading:hover .CBadminBarSubMenu a:hover { color:#FFF; border:1px solid #000; background:#333; }
{/literal}
</style>
<div class="CBadminBar clearfix">
<ul class="CBadminBarWrapper">
{assign var=adminLinks value=$Cbucket->AdminMenu}
{foreach from=$adminLinks item=menu key=name}
<li class="CBadminBarHeading">
<a href="javascript:void(0)">{$name}</a>
<ul class="CBadminBarSubMenuWrapper" id="{$name}">
{foreach from=$menu key=sub_menu item=sub_link}
<li class="CBadminBarSubMenu"><a target="_blank" href="{$baseurl}/admin_area/{$sub_link}">{$sub_menu}</a></li>
{/foreach}
</ul>
</li>
{/foreach}
{if $userquery->is_admin_logged_as_user()}
<li class="CBadminBarHeading" style="float:right;"><a href="{$baseurl}/admin_area/login_as_user.php?revert=yes">{lang code='revert_back_to_admin'}</a></li>
{/if}
</ul>
</div>