| Line 24... |
Line 24... |
| 24 |
<?php if(isset($stylesheet) && !empty($stylesheet)){?>
|
24 |
<?php if(isset($stylesheet) && !empty($stylesheet)){?>
|
| 25 |
<link rel="stylesheet" href="<?php echo base_url();?>assets/css/<?php echo $stylesheet.'?version='.$this->config->item('cdn_version');?>" type="text/css">
|
25 |
<link rel="stylesheet" href="<?php echo base_url();?>assets/css/<?php echo $stylesheet.'?version='.$this->config->item('cdn_version');?>" type="text/css">
|
| 26 |
|
26 |
|
| 27 |
<?php } ?>
|
27 |
<?php } ?>
|
| 28 |
<?php $authorized=$this->session->userdata('authorized');?>
|
28 |
<?php $authorized=$this->session->userdata('authorized');?>
|
| - |
|
29 |
<?php $fosauthorized=$this->session->userdata('fosauthorized');?>
|
| 29 |
|
30 |
|
| 30 |
<script>
|
31 |
<script>
|
| 31 |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
32 |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
| 32 |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
33 |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
| 33 |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
34 |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
| Line 105... |
Line 106... |
| 105 |
$this->load->view($this->layoutName.$headkey);
|
106 |
$this->load->view($this->layoutName.$headkey);
|
| 106 |
}
|
107 |
}
|
| 107 |
else
|
108 |
else
|
| 108 |
{
|
109 |
{
|
| 109 |
if(isset($value) and !empty($value) and count($value)>1)
|
110 |
if(isset($value) and !empty($value) and count($value)>1)
|
| 110 |
{ echo 'data list here';}
|
111 |
{ echo 'header';}
|
| 111 |
}
|
112 |
}
|
| 112 |
|
113 |
|
| 113 |
|
114 |
|
| 114 |
}
|
115 |
}
|
| 115 |
|
116 |
|
| Line 118... |
Line 119... |
| 118 |
?>
|
119 |
?>
|
| 119 |
<div class="profile-overlay" style="display:none">
|
120 |
<div class="profile-overlay" style="display:none">
|
| 120 |
<?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){?>
|
121 |
<?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){?>
|
| 121 |
<div>Account</div>
|
122 |
<div>Account</div>
|
| 122 |
<?php } else { ?>
|
123 |
<?php } else { ?>
|
| 123 |
<div>Account</div>
|
124 |
<div><a href="<?php echo base_url().'fos/login';?>">Sign In</a></div>
|
| 124 |
<?php }?>
|
125 |
<?php }?>
|
| 125 |
<?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
|
126 |
<?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
|
| 126 |
<?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
|
127 |
<?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
|
| 127 |
<a href="<?php echo base_url().'private-deals/1';?>">My Deals</a>
|
128 |
<a href="<?php echo base_url().'private-deals/1';?>">My Deals</a>
|
| 128 |
<?php endif;?>
|
129 |
<?php endif;?>
|
| Line 131... |
Line 132... |
| 131 |
<!-- <a href="<?php echo base_url().'my-wallet';?>">My Wallet</a> -->
|
132 |
<!-- <a href="<?php echo base_url().'my-wallet';?>">My Wallet</a> -->
|
| 132 |
<!-- <a href="<?php echo base_url().'login-details';?>">Change Password</a> -->
|
133 |
<!-- <a href="<?php echo base_url().'login-details';?>">Change Password</a> -->
|
| 133 |
<!-- <a href="<?php echo base_url().'logout';?>">Logout<span><?php print_r($authorized['email']);?></span></a> -->
|
134 |
<!-- <a href="<?php echo base_url().'logout';?>">Logout<span><?php print_r($authorized['email']);?></span></a> -->
|
| 134 |
<!-- <a href="#">My Account</a> -->
|
135 |
<!-- <a href="#">My Account</a> -->
|
| 135 |
<?php } else {?>
|
136 |
<?php } else {?>
|
| 136 |
<a href="<?php echo base_url().'login';?>">Sign In</a>
|
137 |
<!-- <a href="<?php echo base_url().'login';?>">Sign In</a>
|
| 137 |
<a href="<?php echo base_url().'register';?>">Register</a>
|
138 |
<a href="<?php echo base_url().'register';?>">Register</a> -->
|
| 138 |
<?php } ?>
|
139 |
<?php } ?>
|
| - |
|
140 |
<?php if(isset($fosauthorized['Id'])):?>
|
| - |
|
141 |
<a href="<?php echo base_url().'logout';?>">Logout<span><?php print_r($authorized['email']);?></span></a>
|
| - |
|
142 |
<?php endif;?>
|
| 139 |
</div><!--profile-overlay-->
|
143 |
</div><!--profile-overlay-->
|
| 140 |
|
144 |
|
| 141 |
</header>
|
145 |
</header>
|
| 142 |
<?php
|
146 |
<?php
|
| 143 |
$msg = $this->session->flashdata('msg');
|
147 |
$msg = $this->session->flashdata('msg');
|
| 144 |
if(isset($msg) && $msg == 'Registered Successfully'){
|
148 |
if(isset($msg) && $msg == 'Registered Successfully'){
|
| 145 |
$authorized = $this->session->userdata('authorized');
|
149 |
$authorized = $this->session->userdata('authorized');
|
| 146 |
$email = $authorized['email'];?>
|
150 |
$email = $authorized['email'];?>
|
| 147 |
<script type="text/javascript">
|
- |
|
| 148 |
if(typeof _gaq != "undefined" && _gaq != null) {
|
- |
|
| 149 |
_gaq.push(['_trackEvent', 'Account', 'New user Registration','<?php if(isset($email)){echo $email;}?>']);
|
- |
|
| 150 |
}
|
- |
|
| 151 |
</script>
|
- |
|
| 152 |
<?php
|
151 |
<?php
|
| 153 |
echo "<div class='sucess-reg'>".$this->session->flashdata('msg'). "</div>";
|
152 |
echo "<div class='sucess-reg'>".$this->session->flashdata('msg'). "</div>";
|
| 154 |
}
|
153 |
}
|
| 155 |
?>
|
154 |
?>
|