<!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" />
<meta name="description" content="<?=getsett_head_description();?>">
<meta name="keywords" content="<?=getsett_head_keywords();?>">
<title><?=getsett_head_title();?></title>
<!-- Framework CSS -->
<link rel="stylesheet" href="<?=cdn_url();?>css/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="<?=cdn_url();?>css/typography.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="<?=cdn_url();?>css/fancy-type.css" type="text/css" media="screen, projection">
<link  rel="stylesheet" href="<?=cdn_url();?>css/my.css" type="text/css" />
<link  rel="stylesheet" href="<?=cdn_url();?>js/facebox.css" type="text/css" />
<style type="text/css" media="screen">

			@import "<?=cdn_url();?>css/demo_table_jui.css";

			
			/*
			 * Override styles needed due to the mix of three different CSS sources! For proper examples
			 * please see the themes example in the 'Examples' section of this site
			 */
			.dataTables_info { padding-top: 0; }
			.dataTables_paginate { padding-top: 0; }
			.css_right { float: right; }
			#example_wrapper .fg-toolbar { font-size: 0.8em }
			#theme_links span { float: left; padding: 2px 10px; }
</style>


<link rel="shortcut icon" href="<?=base_url();?>cdn/images/icon.ico" /></head>
<link rel="stylesheet" type="text/css" href="<?=base_url();?>cdn/css/custom-theme-2/jquery-ui-1.8.4.custom.css" /> 
<link rel="stylesheet" type="text/css" href="<?=base_url();?>cdn/css/jtable.css" media="screen" /> 

<script type='text/javascript' src='http://www.google.com/jsapi'></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="<?=cdn_url();?>js/jquery.hoverIntent.minified.js" type="text/javascript" charset="utf-8"></script>
<script src="<?=cdn_url();?>js/jquery.bgiframe.min.js" type="text/javascript" charset="utf-8"></script>
<script src="<?=cdn_url();?>js/jquery.bt.min.js" type="text/javascript" charset="utf-8"></script>
<script src="<?=cdn_url();?>js/jquery.easing.1.3.js" type="text/javascript" charset="utf-8"></script>
<script src="<?=cdn_url();?>js/facebox.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="<?base_url();?><?=index_page();?>js"></script>  
<script type="text/javascript" src="<?=cdn_url();?>js/jquery.dataTables.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {	 
$('a[rel*=facebox]').facebox();

<?php if($json == FALSE)
{
?>
$('#example').dataTable(
{
"aaSorting": [[ 0, "desc" ]],	 
"iDisplayLength": 5,
"bLengthChange": false,
"bInfo": false,
"bAutoWidth": true,
"bJQueryUI": true,
"sPaginationType": "full_numbers"
} 
);
<?php 
}
else
{
?>
$('#example').dataTable
({	
'iDisplayLength': 5,
'bLengthChange': false,
'bInfo': false,
'bServerSide': true,
'bJQueryUI'      : true,
"sDom": '<"toolbar">frtip',
'sPaginationType': 'full_numbers',
<?php
if($ajax_type =='pub_transactions')
{
?>
'sAjaxSource'    : '<?=base_url();?><?=index_page();?>ajax/pub_transactions',
<?php
}
elseif($ajax_type =='widgets')
{
?>  
'sAjaxSource'    : '<?=base_url();?><?=index_page();?>ajax/widgets',	
<?php
}
?>		
'fnServerData': function(sSource, aoData, fnCallback)
{
$.ajax
({
'dataType': 'json',
'type'    : 'POST',
'url'     : sSource,
'data'    : aoData,
'success' : fnCallback
});
}
});
<?php
}
?>

<?php
if($ajax_type =='widgets')
{
?>  
$("div.toolbar").html('<div align="right"> <h2 class="bottompad"><strong>Widgets</strong></h2></div><a class="button" href="<?=base_url();?><?=index_page();?>welcome/add_offerpage/"><span>Create Widget</span></a>');
<?php
}
?>

} );
</script>
<script type="text/javascript">
  var _kmq = _kmq || [];
  function _kms(u){
    setTimeout(function(){
      var s = document.createElement('script'); var f = document.getElementsByTagName('script')[0]; s.type = 'text/javascript'; s.async = true;
      s.src = u; f.parentNode.insertBefore(s, f);
    }, 1);
  }
  _kms('//i.kissmetrics.com/i.js');_kms('//doug1izaerwt3.cloudfront.net/13002d1292c956a6d7252f810591e1329b79ce35.1.js');
</script>
<body>
<script type="text/javascript" src="//asset0.zendesk.com/external/zenbox/zenbox-2.0.js"></script>
<style type="text/css" media="screen, projection">
  @import url(//asset0.zendesk.com/external/zenbox/zenbox-2.0.css);
</style>
<script type="text/javascript">
  if (typeof(Zenbox) !== "undefined") {
    Zenbox.init({
      dropboxID:   "812",
      url:         "<?=base_url();?>feedback",
      tabID:       "feedback",
      tabColor:    "orange",
      tabPosition: "Left"
    });
  }
</script>
<div id="headertop">
<div  class="constrain" style="vertical-align:middle;">
<br />
<a href="<?=base_url();?>"><img alt="<?=site_name()?>" src="<?=cdn_url();?>images/adtoleads.jpg"></a>
</div>
</div>

