137 lines
No EOL
6.1 KiB
HTML
137 lines
No EOL
6.1 KiB
HTML
{$myAccountLinks = $userquery->my_account_links()}
|
|
<div id="container" class="container">
|
|
{include file="$style_dir/blocks/manage/account_menu.html"}
|
|
</div>
|
|
|
|
<div class="container marginBottom">
|
|
<div id="simple_search" class="cb-box marginBottom simple_search row">
|
|
|
|
<div class="row">
|
|
<div class="col-md-10">
|
|
<nav role="navigation" class="navbar-default">
|
|
<div class="container-fluid">
|
|
<!-- Brand and toggle get grouped for better mobile display -->
|
|
<div class="navbar-header">
|
|
<button data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" class="navbar-toggle" type="button">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a href="#" class="navbar-brand">{lang code="Search Results:"}</a>
|
|
</div>
|
|
|
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
<div id="bs-example-navbar-collapse-1" class="collapse navbar-collapse">
|
|
<ul class="nav navbar-nav">
|
|
{* {foreach from=$Cbucket->search_types item=t key=stypes}
|
|
<li class="{if $smarty.get.type==$stypes} active {/if}"><a href="?type={$stypes}">{$stypes}</a></li>
|
|
{/foreach} *}
|
|
<li class="{if !isset($smarty.get.type) || $smarty.get.type=='videos'} active {/if}"><a href="?type=videos">videos</a></li>
|
|
<li class="{if $smarty.get.type=='photos'} active {/if}"><a href="?type=photos">photos</a></li>
|
|
<li class="{if $smarty.get.type=='channels'} active {/if}"><a href="?type=channels">channels</a></li>
|
|
</ul>
|
|
<form class="navbar-form navbar-left" role="search" style="margin-top: 8px;" action="http://dev.clipbucket-2.7.com/upload/search_result.php">
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" name="query" placeholder="{lang code='Search'}"/>
|
|
<input type="hidden" name="type" value="{if !isset($smarty.get.type) || $smarty.get.type=='videos'}videos{else}{$smarty.get.type}{/if}" />
|
|
<span class="input-group-btn">
|
|
<input type="submit" name="cbsearch" id="cbsearch" value="{lang code='Go!'}" class="btn btn-default" />
|
|
</span>
|
|
</div>
|
|
</form>
|
|
</div><!-- /.navbar-collapse -->
|
|
</div><!-- /.container-fluid -->
|
|
</nav>
|
|
<hr style="margin-top: 10px; margin-bottom: 10px;">
|
|
<div class="heading">{$search_type_title}</div>
|
|
<h2>{$searchfor}</h2>
|
|
{*$display_template*}
|
|
<hr>
|
|
<div class="row col-md-12 paddingright0 paddingleft0" style="width:102%">
|
|
{if $results}
|
|
|
|
{foreach item=result from=$results}
|
|
{assign var=$template_var value =$result}
|
|
{include file="$display_template" }
|
|
{/foreach}
|
|
|
|
{else}
|
|
<div class="col-md-12">{lang code='no_results_found'}</div>
|
|
{/if}
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
{*AD place='ad_160x600'*}
|
|
<a href="http://www.arvixe.com/clipbucket_hosting"><img class="banner pull-right" src="{$theme}/assets/images/ad-box-160x600.jpg"></a>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div style="height:10px"></div>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div align="center">{include file="$style_dir/blocks/pagination.html"}</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$(document).ready(function(){
|
|
$("#cbsearchtype a").on({
|
|
click: function(e){
|
|
e.preventDefault();
|
|
var searchtype = $("#SearchType").val();
|
|
var buttonText = $(this).text().toLowerCase();
|
|
if($("#SearchType option[value='"+ buttonText +"']").length > 0){
|
|
$("#SearchType option:selected").removeAttr("selected");
|
|
$("#SearchType option[value='"+ buttonText +"']").attr("selected" , "selected");
|
|
$(this).parents("ul").find(".active").removeClass("active");
|
|
$(this).parent().addClass("active");
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<!--<div class="col-md-6 cb-box" style="min-height:400px; overflow:visible; display:none" id="advance_search">-->
|
|
<!--{foreach from=$Cbucket->search_types item=search_type key=search_type_key}-->
|
|
|
|
<!--{if $search_type}-->
|
|
|
|
<!--{assign var='type' value=$cbsearch->init_search($search_type_key)}-->
|
|
|
|
<!--{if $type}-->
|
|
<!--{assign var='types' value=$type->search_type}-->
|
|
|
|
<!--{foreach from=$types key=stype item=search}-->
|
|
<!--<div id="{$stype}" class="search_type">-->
|
|
<!--{lang code='search_for_s' assign='searchfor'}-->
|
|
<!--<h2>{$searchfor|sprintf:$search.title}</h2>-->
|
|
<!--<div class="row cb-box">-->
|
|
<!--<h2><small>{lang code='Advanced Search'} –</small></h2>-->
|
|
<!--<form name="search-form-{$search.title}" method="get" action="">-->
|
|
<!--<input type="hidden" class="form-control" name="type" value="{$stype}" />-->
|
|
<!--{foreach from=$search.fields item=field}-->
|
|
<!--{$field.class='form-control'}-->
|
|
<!--<div>-->
|
|
<!--<label style="color: #808080">{$field.title}</label>-->
|
|
<!--{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}-->
|
|
<!--</div>-->
|
|
<!--{/foreach}-->
|
|
<!--<hr>-->
|
|
<!--<label for="button"></label>-->
|
|
<!--<input type="submit" name="cbsearch" id="cbsearch" value="Search" class="btn btn-primary" />-->
|
|
<!--</form>-->
|
|
<!--</div>-->
|
|
<!--</div>-->
|
|
<!--{/foreach}-->
|
|
<!--{/if}-->
|
|
<!--{/if}-->
|
|
<!--{/foreach}-->
|
|
<!--</div>-->
|
|
<!--<br>-->
|
|
<!--<span class="btn btn-danger btn-xs" style="margin-bottom:10px"><a style="color: #ffffff" href="javascript:void(0)" onClick="showAdvanceSearch('simple_search','advance_search','more_button','more_button_up');">{lang code='more_options'}</a></span>--> |