Subversion Repositories SmartDukaan

Rev

Rev 12738 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
12694 anikendra 1
<style type="text/css">
2
#mydeals {    
3
    float: left;
4
    height: 41px;
5
    margin: 0 2px 0 0;
6
    text-align: right;
7
}	
8
#mydeals .mydeals-btn {	
9
    background-color: #888888;
10
    border: 1px solid #CCCCCC;
11
    color: #FFFFFF;
12
    display: inline-block;
13
    font: 2.2em/1.2em Helvetica,Arial,sans-serif;
14
    height: 30px;
15
    margin: 0;
16
    padding: 13px 0 5px;
17
    text-align: center;
18
    width: 100%;
19
}
20
.fl{float: left;}
21
.w23p{width: 23%;}
22
.w75p{width: 75%;margin-left:24%;}
23
</style>
12738 anikendra 24
<!--
25
<div id="subView" class="offers clearfix" style="display:none;">
26
   <a href="<?php echo base_url().'recharge'?>" class="recharge-btn btn" onclick="changeRecharge('3')">Recharge Your Mobile Now </a>
27
</div>
28
-->
29
<!--offers-->
12694 anikendra 30
<?php $authorized = $this->session->userdata('authorized');?>
31
<?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
32
	<div id="mydeals" class="w23p">
33
		<a href="<?php echo base_url().'private-deals/1'?>" class="mydeals-btn">Deals</a>
34
	</div>
35
    <div class="search-box w75p">
36
    	<div id="search" class="search-hldr clearfix">
13032 anikendra 37
    	        <input <?php if(!$authorized):?>disabled="true"<?php endif;?> type="text" id="autocomplete" onkeyup="autoComplete()" value="<?php if(isset($_GET['q'])) echo urldecode($_GET['q']); ?>" placeholder="Search for more items" onKeyDown="if(event.keyCode==13) searchTrigger();" autocorrect="off" autocapitalize="off" autocomplete="off" spellcheck="false"/><div class="search" onclick="searchTrigger()"></div>
12694 anikendra 38
    	</div> 
39
        <div id="search-result"></div>
40
    </div>
41
<?php else:?>
42
    <div class="search-box">
43
    	<div id="search" class="search-hldr clearfix">
13032 anikendra 44
    	        <input <?php if(!$authorized):?>disabled="true"<?php endif;?> type="text" id="autocomplete" onkeyup="autoComplete()" value="<?php if(isset($_GET['q']) && $_GET['q'] != '*') echo urldecode($_GET['q']); ?>" placeholder="Search for more items" onKeyDown="if(event.keyCode==13) searchTrigger();" autocorrect="off" autocapitalize="off" autocomplete="off" spellcheck="false"/><div class="search" onclick="searchTrigger()"></div>
12694 anikendra 45
    	</div>
46
        <div id="search-result"></div>
47
    </div> 
48
<?php endif;?>