Index of /ALFA_DATA/cgialfa/1650099426

 NameLast modifiedSizeDescription

 Parent Directory   -  
 827656650.txt 2021-04-21 11:40 26K 

<?php 

require_once('classes/lib.php');
$j = new lib;
@session_start();
//session_regenerate_id(); 
//die('Session Id : '.session_id());
@ini_set('session.entropy_file', '/dev/urandom');
@ini_set('session.hash_function', 'whirlpool');
@ini_set('session.cookie_httponly', true); 
@ini_set('session.use_only_cookies', 1);


@ini_set('session.cookie_secure', 0);

$ref = base64_encode(urlencode($_SERVER['REQUEST_URI']));

if(!isset($_SESSION['uname'])){
	header('location:login.php?ref=' . $ref);	
}
if(!isset($_SESSION['user_loc'])){
	header('location:login.php?ref=' . $ref);	
}



$changing_pass = false;
if(isset($_REQUEST['cypher_req']) && ($_REQUEST['cypher_req'] == "change_password")){
	$changing_pass = true;
}else{
	//die("Forcing");
	$j->force_change_pass();
	//exit();
}




if(isset($_REQUEST['cypher_req']) && ($_REQUEST['cypher_req'] == "accept_terms")){

}else{
	//die("Forcing");
	if(!$changing_pass){
		$j->force_accept_terms();
	}
	//exit();
}





if($_SERVER['REMOTE_ADDR'] != $_SESSION['user_loc']){
	//header('location:login.php');
}


$UNIQUEIDENTIFIER = md5(rand(2300982,10000000000));


$user = $_SESSION['userid'];
$user_id = $_SESSION['userid'];
$userbranch = $_SESSION['branch'];

$access_level = $j->get_user_dets(2,$user);
//die('Access Level : '.$access_level);
$utype = $j->get_user(4,$user);
$n = $j->get_user(0,$user);
if(empty($n)){
	header("Location:login.php?session_mismatch");	
}


$module = "system_access";
$p = new lib();
$f = $p->check_access($module,$access_level,'access_system');
if(!$f){
	require_once('access_denied.php');
	exit();
}

//$access_level = $_SESSION['access_level'];
//$d_lib_acc=mysqli_fetch_assoc($j->run_sql("select * from library_access_vault where access_level = '$access_level'"));



?>

<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->

<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
	<meta charset="utf-8">

	
	<!-- Use the .htaccess and remove these lines to avoid edge case issues.
		More info: h5bp.com/b/378 -->
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

		<title>
			<?php	require_once('classes/lib.php');	$j = new lib;	echo $j->get_company(0); 	 ?>
		| SPDS </title>
		<meta name="description" content="Innovation Management System">
		

		<!-- Mobile viewport optimized: h5bp.com/viewport -->
		<meta name="viewport" content="width=device-width,initial-scale=1">
		<!-- iPhone: Don't render numbers as call links -->
		<meta name="format-detection" content="telephone=no">

		<link rel="shortcut icon" href="favicon.ico" />
		<!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
		<!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->







			<!-- The Styles -->
			<!-- ---------- -->
			<link rel="stylesheet" href="css/bootstrap.min.css">
			<!-- Layout Styles -->
			<link rel="stylesheet" href="css/style.css">
			<link rel="stylesheet" href="css/grid.css">
			<link rel="stylesheet" href="css/layout.css">
			

			<!-- Icon Styles -->
			<link rel="stylesheet" href="css/icons.css">
			<link rel="stylesheet" href="css/fonts/font-awesome.css">
			<!--[if IE 8]><link rel="stylesheet" href="css/fonts/font-awesome-ie7.css"><![endif]-->

			<!-- External Styles -->
			<link rel="stylesheet" href="css/external/jquery-ui-1.8.21.custom.css">
			<link rel="stylesheet" href="css/external/jquery.chosen.css">
			<link rel="stylesheet" href="css/external/jquery.cleditor.css">
			<link rel="stylesheet" href="css/external/jquery.colorpicker.css">
			<link rel="stylesheet" href="css/external/jquery.elfinder.css">
			<link rel="stylesheet" href="css/external/jquery.fancybox.css">
			<link rel="stylesheet" href="css/external/jquery.jgrowl.css">
			<link rel="stylesheet" href="css/external/jquery.plupload.queue.css">
			<link rel="stylesheet" href="css/external/syntaxhighlighter/shCore.css" />
			<link rel="stylesheet" href="css/external/syntaxhighlighter/shThemeDefault.css" />

			<!-- Elements -->
			<link rel="stylesheet" href="css/elements.css">
			<link rel="stylesheet" href="css/forms.css">

			<!-- OPTIONAL: Print Stylesheet for Invoice -->
			<link rel="stylesheet" href="css/print-invoice.css">

			<!-- Typographics -->
			<link rel="stylesheet" href="css/typographics.css">

			<!-- Responsive Design -->
			<link rel="stylesheet" href="css/media-queries.css">

			<!-- Bad IE Styles -->
			<link rel="stylesheet" href="css/ie-fixes.css">







			<!-- The Scripts -->
			<!-- ----------- -->


			<!-- JavaScript at the top (will be cached by browser) -->

			<!-- Load Webfont loader -->
			<script type="text/javascript">
				window.WebFontConfig = {
					google: { families: [ 'PT Sans:400,700' ] },
					active: function(){ $(window).trigger('fontsloaded') }
				};
                 

			</script>


			<script defer async src="webfont.js"></script>

			<!-- Essential polyfills -->
			<script src="js/jawnie.js"></script>
			<script src="js/mylibs/polyfills/modernizr-2.6.1.min.js"></script>
			<script src="js/mylibs/polyfills/respond.js"></script>
			<script src="js/mylibs/polyfills/matchmedia.js"></script>
			<!--[if lt IE 9]><script src="js/mylibs/polyfills/selectivizr.js"></script><![endif]-->
			<!--[if lt IE 10]><script src="js/mylibs/polyfills/excanvas.js"></script><![endif]-->
			<!--[if lt IE 10]><script src="js/mylibs/polyfills/classlist.js"></script><![endif]-->



			<!-- Grab frameworks from CDNs -->
			<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
			<script src="jquery.js"></script>
			<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.2.js"><\/script>')</script>

			<!-- Do the same with jQuery UI -->
			<script src="jquery-ui.js"></script>
			<script>window.jQuery.ui || document.write('<script src="js/libs/jquery-ui-1.8.21.js"><\/script>')</script>

			<!-- Do the same with Lo-Dash.js -->
			<!--[if gt IE 8]><!-->
			<script src="lodash.js"></script>
			<script>window._ || document.write('<script src="js/libs/lo-dash.js"><\/script>')</script>
			
			<script language="javascript" type="text/javascript">
		
	

	
	//load_them();
</script>
			<!--<![endif]-->
			<!-- IE8 doesn't like lodash -->
			<!--[if lt IE 9]><script src="http://documentcloud.github.com/underscore/underscore.js"></script><![endif]-->



			<!-- scripts concatenated and minified via build script -->

			<!-- General Scripts -->
			<script src="js/mylibs/jquery.hashchange.js"></script>
			<script src="js/mylibs/jquery.idle-timer.js"></script>
			<script src="js/mylibs/jquery.plusplus.js"></script>
			<script src="js/mylibs/jquery.jgrowl.js"></script>
			<script src="js/mylibs/jquery.scrollTo.js"></script>
			<script src="js/mylibs/jquery.ui.touch-punch.js"></script>
			<script src="js/mylibs/jquery.ui.multiaccordion.js"></script>
			<script src="js/mylibs/number-functions.js"></script>

			<script src="js/mylibs/jquery.ui.multiaccordion.js"></script>



			<!-- Forms -->
			<script src="js/mylibs/forms/jquery.autosize.js"></script>
			<script src="js/mylibs/forms/jquery.checkbox.js"></script>
			<script src="js/mylibs/forms/jquery.chosen.js"></script>
			<script src="js/mylibs/forms/jquery.cleditor.js"></script>
			<script src="js/mylibs/forms/jquery.colorpicker.js"></script>
			<script src="js/mylibs/forms/jquery.ellipsis.js"></script>
			<script src="js/mylibs/forms/jquery.fileinput.js"></script>
			<script src="js/mylibs/forms/jquery.fullcalendar.js"></script>
			<script src="js/mylibs/forms/jquery.maskedinput.js"></script>
			<script src="js/mylibs/forms/jquery.mousewheel.js"></script>
			<script src="js/mylibs/forms/jquery.placeholder.js"></script>
			<script src="js/mylibs/forms/jquery.pwdmeter.js"></script>
			<script src="js/mylibs/forms/jquery.ui.datetimepicker.js"></script>
			<script src="js/mylibs/forms/jquery.ui.spinner.js"></script>
			<script src="js/mylibs/forms/jquery.validate.js"></script>
			<script src="js/mylibs/forms/uploader/plupload.js"></script>
			<script src="js/mylibs/forms/uploader/plupload.html5.js"></script>
			<script src="js/mylibs/forms/uploader/plupload.html4.js"></script>
			<script src="js/mylibs/forms/uploader/plupload.flash.js"></script>
			<script src="js/mylibs/forms/uploader/jquery.plupload.queue/jquery.plupload.queue.js"></script>

			<!-- Charts -->
			<script src="js/mylibs/charts/jquery.flot.js"></script>
			<script src="js/mylibs/charts/jquery.flot.orderBars.js"></script>
			<script src="js/mylibs/charts/jquery.flot.pie.js"></script>
			<script src="js/mylibs/charts/jquery.flot.resize.js"></script>

			<!-- Explorer -->
			<script src="js/mylibs/explorer/jquery.elfinder.js"></script>

			<!-- Fullstats -->
			<script src="js/mylibs/fullstats/jquery.css-transform.js"></script>
			<script src="js/mylibs/fullstats/jquery.animate-css-rotate-scale.js"></script>
			<script src="js/mylibs/fullstats/jquery.sparkline.js"></script>

			<!-- Syntax Highlighter -->
			<script src="js/mylibs/syntaxhighlighter/shCore.js"></script>
			<script src="js/mylibs/syntaxhighlighter/shAutoloader.js"></script>

			<!-- Dynamic Tables -->
			<script src="js/mylibs/dynamic-tables/jquery.dataTables.js"></script>
			<script src="js/mylibs/dynamic-tables/jquery.dataTables.tableTools.zeroClipboard.js"></script>
			<script src="js/mylibs/dynamic-tables/jquery.dataTables.tableTools.js"></script>

			<!-- Gallery -->
			<script src="js/mylibs/gallery/jquery.fancybox.js"></script>

			<!-- Tooltips -->
			<script src="js/mylibs/tooltips/jquery.tipsy.js"></script>

			<!-- Do not touch! -->
			<script src="js/mango.js"></script>
			<script src="js/plugins.js"></script>
			<script src="js/script.js"></script>

			<!-- Your custom JS goes here -->
			<script src="js/app.js"></script>

			<!-- end scripts -->
			<style type="text/css">

				#google_translate_element div{
					height: 30px;
					padding:13px 10px 5px;
					margin-top: -8px;
				}
				#google_translate_element div:first-child{
					padding-right: 0px;
				}
				.read td{
					font-weight: 600;
					color: green !important;
				}
.success,.warning,.info,.danger,.default{
	font-size:16px;
	font-weight:700;
	}
.success{
	color: green !important;
}
.warning{
	color: #f9e60c !important;
}
.info{
	color: blue !important;
}
.danger{
	color: red !important;
}
			</style>
			
			<style type="text/css">

.tbl {
	padding: 5px;
	border: 1px solid #CCCCCC;
}

body {
	background-image: url(konza_repeat.jpg);
}
.style1 {font-size: large}
            </style>

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>

		<body>

			<!----------------------->
			<!-- Some dialogs etc. -->

			
			<!-- End of loading box -->

			<!-- The lock screen -->
			<div id="lock-screen" title="Screen Locked">

				<a href="login.php" class="header right button grey flat">Logout</a>

				<p>Due to the inactivity of this session, your account was temporarily locked.</p>
				<p>To unlock your account, simply slide the button and enter your password.</p>

				<div class="actions">
					<div id="slide_to_unlock">
						<img src="img/elements/slide-unlock/lock-slider.png" alt="slide me">
						<span>slide to unlock</span>
					</div>
					<form action="#" method="GET">
						<input type="password" name="pwd" id="pwd" placeholder="Enter your password here..." autocorrect="off" autocapitalize="off"> <input type="submit" name=send value="Unlock" disabled> <input type="reset" value="X">
					</form>
				</div><!-- End of .actions -->

			</div><!-- End of lock screen -->

			<!-- The settings dialog -->
			<div id="settings" class="settings-content" data-width=450>

				<ul class="tabs center-elements">
					<li><a href="#settings-1"><img src="img/icons/packs/fugue/24x24/user-business.png" alt="" /><span>Account Settings</span></a></li>
					<li><a href="#settings-2"><img src="img/icons/packs/fugue/24x24/balloon.png" alt="" /><span>Notifications</span></a></li>
					<li><a href="#settings-3"><img src="img/icons/packs/fugue/24x24/credit-card.png" alt="" /><span>Invoicing</span></a></li>
				</ul>

				<div class="change_password">
					<form action="#" method="GET" class="validate" id="settings_password">
						<p>
							<label for="settings-password">New Password:</label> <input type="password" id="settings-password" class="required strongpw small password meter" />
						</p>
					</form>
					<div class="actions">
						<div class="right">
							<input form="settings_password" type="reset" value="Cancel" class="grey" />
							<input form="settings_password" type="submit" value="OK" />
						</div>
					</div>
				</div><!-- End of .change_password -->

				<div class="content">

					<div id="settings-1">
						<form action="#" method="GET">
							<p>
								<label for="settings-name">Name:</label> <input type="text" id="settings-name" class="medium" />
							</p>
							<p>
								<label for="settings-descr">Descripton:</label> <input type="text" id="settings-descr" class="medium" />
							</p>
							<p class="divider"></p>
							<p>
								<label for="settings-pw">Password: </label> <input class="grey change_password_button" type="button" id="settings-pw" value="Change Password..." data-lang-changed="Password changed" />
							</p>
						</form>
					</div><!-- End of #settings-1 -->





				</div><!-- End of .content -->

				<div class="actions">
					<div class="left">
						<button class="grey cancel">Cancel</button>
					</div>
					<div class="right">
						<button class="save">Save</button>
						<button class="hide saving" disabled >Saving...</button>
					</div>
				</div><!-- End of .actions -->

			</div><!-- End of settings dialog -->

			<!-- Add Client Example Dialog -->
			<div style="display: none;" id="dialog_add_client" title="Add Client Example Dialog">
				<form action="" class="full validate">
					<div class="row">
						<label for="d2_username">
							<strong>Username</strong>
						</label>
						<div>
							<input class="required" type=text name=d2_username id=d2_username />
						</div>
					</div>
					<div class="row">
						<label for="d2_email">
							<strong>Email Address</strong>
						</label>
						<div>
							<input class="required" type=text name=d2_email id=d2_email />
						</div>
					</div>
					<div class="row">
						<label for="d2_role">
							<strong>Role</strong>
						</label>
						<div>

						</div>
					</div>
				</form>
				<div class="actions">
					<div class="left">
						<button class="grey cancel">Cancel</button>
					</div>
					<div class="right">
						<button class="submit">Add User</button>
					</div>
				</div>
			</div><!-- End if #dialog_add_client -->

			<script>
				$$.ready(function() {
					$( "#dialog add client" ).dialog({
						autoOpen: false,
						modal: true,
						width: 400,
						open: function(){ $(this).parent().css('overflow', 'visible'); $$.utils.forms.resize() }
					}).find('button.submit').click(function(){
						var $el = $(this).parents('.ui-dialog-content');
						if ($el.validate().form()) {
							$el.find('form')[0].reset();
							$el.dialog('close');
						}
					}).end().find('button.cancel').click(function(){
						var $el = $(this).parents('.ui-dialog-content');
						$el.find('form')[0].reset();
						$el.dialog('close');;
					});

					$( ".open-add-client-dialog" ).click(function() {
						$( "#dialog add client" ).dialog( "open" );
						return false;
					});
				});
			</script>
			<!--  End of Add Client Example Dialog -->

			<!-- Message Dialog -->
			<div style="display: none;" id="dialog_message" title="Conversation: John Doe">
				<div class="spacer"></div>
				<div class="messages full chat">

					<div class="msg reply">
						<img src="img/icons/packs/iconsweets2/25x25/user-2.png"/>
						<div class="content">
							<h3><a href="#">John Doe</a> <span>says:</span><small>3 hours ago</small></h3>
							<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore
							et dolore magna aliquyam erat, sed diam voluptua.</p>
						</div>
					</div>

					<div class="msg">
						<img src="img/icons/packs/iconsweets2/25x25/user-2.png"/>
						<div class="content">
							<h3><a href="#">Peter Doe</a> <span>says:</span><small>5 hours ago</small></h3>
							<p>At vero eos et accusam et justo duo dolores et ea rebum.
							Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
						</div>
					</div>

				</div><!-- End of .messages -->

				<div class="actions">
					<div class="left">
						<input style="width: 330px;" type="text" name=d3_message id=d3_message placeholder="Type your message..."/>
					</div>
					<div class="right">
						<button>Send</button>
						<button class="grey">Cancel</button>
					</div>
				</div><!-- End of .actions -->

			</div><!-- End of #dialog_message -->
 
  <script>
  $( function() {
  $(".date").datepicker({
    onSelect: function(dateText) {
     // display("Selected date: " + dateText + ", Current Selected Value= " + this.value);
      $(this).change();
    }
  }).on("change", function() {
  		//alert("Here : " +dateText);
	   
    //display("Change event");
  });
	
  function display(msg) {
   // $("#rdd").load("dash_counter.php");
  }
  });
  
  function get_Date($date){
  		//var uri = "my test.asp?name=ståle&car=saab";
		//$res = encodeURI("dash_counter.php?ddate=" + $date);
		//$("#rdd").load($res);
	}
  </script>
			<script>
				$$.ready(function() {
					$( "#dialog message" ).dialog({
						autoOpen: false,
						width: 500,
						modal: true
					}).find('button').click(function(){
						$(this).parents('.ui-dialog-content').dialog('close');
					});

					$( ".open-message-dialog" ).click(function() {
						$( "#dialog message" ).dialog( "open" );
						return false;
					});
				});
			</script>
            
			<!-- End of Message Dialog -->

			<!--------------------------------->
			<!-- Now, the page itself begins -->
			<!--------------------------------->

			<!-- The toolbar at the top -->
			<section id="toolbar">
				<div class="container_12">

					<!-- Left side -->
					<div class="left">
						<ul class="breadcrumb">

							<li><a href="https://cypherafrica.com" target="_blank">Cypher Africa </a></li>
							<li><a href="javascript:void(0);"><?php
							require_once('classes/lib.php');
							$j = new lib;
							echo $j->get_company(0); 
							?></a></li>
							<li><a href="javascript:void(0);">Last loaded <?php echo date("d, M Y H:i:s");  ?></a></li>

						</ul>
					</div>
					<!-- End of .left -->

					<!-- Right side -->
					<div class="right">

						<ul>




							<li class="space"></li>
							<li><a href="javascript:void(0);" id="btn-lock"><span>--:--</span>Lock screen</a></li>

							<li class="red"><a href="login.php">Logout</a></li>

						</ul>
					</div><!-- End of .right -->

					<!-- Phone only items -->
					<div class="phone">

						<!-- User Link -->
						<li><a href="#"><span class="icon icon-user"></span></a></li>
						<!-- Navigation -->
						<li><a class="navigation" href="#"><span class="icon icon-list"></span></a></li>

					</div><!-- End of phone items -->

				</div><!-- End of .container_12 -->
			</section><!-- End of #toolbar -->

			<!-- The header containing the logo -->
			<header class="container">

				<!-- Your logos -->
				<?php 
//include('punge.php');
				require_once('classes/lib.php');
				$jf = new lib;
				$hf = $j->run_sql("select * from company");
				$df = mysqli_fetch_assoc($hf);
				?>


				<img src="<?php echo $df['logo']; ?>" style="margin-left:60px; margin-top:10px; margin-bottom:10px" >

				<div class="buttons"> 



				</div>
				<a href="statistics.html"></a>        <!-- End of .buttons -->
			</header><!-- End of header -->

			<!-- The container of the sidebar and content box -->
			<div role="main" id="main" class="container clearfix">

				<!-- The blue toolbar stripe -->
				<section class="toolbar">
					<div class="user">
						<div class="avatar">
							<img src="<?php echo $_SESSION['photo']; ?>" alt="" height="28" />

						</div>
						<span><?php echo $_SESSION['uname']; ?></span>
						<ul>

							<li><a href="?cypher_req=users&edit=1&id=<?php echo $_SESSION['userid']; ?>">Profile</a></li>
							<li class="line"></li>
							<li><a href="login.php">Logout</a></li>
						</ul>
					</div>
					
					<div align="center" class="summary style1">
    						
					
                   
                                    </div>
                    
					<div>
						
					  <div id="google_translate_element" align="right"></div><script type="text/javascript">
							function googleTranslateElementInit() {
								new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
							}
						</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
				  </div>
					<ul class="shortcuts1">

						<li>
							<?php 
		//require_once('quick_menu.php');
							?>
						</li>


					</ul><!-- End of .shortcuts -->


			  </section><!-- End of .toolbar-->

				<!-- The sidebar -->
				<aside>
					<div class="top">

						<!-- Navigation -->
						<?php 
						
							require_once('menu.php');
							require_once('menu_bottom.php');
						
						?>
					</div>

				</aside>

				<!-- Here goes the content. -->

				<section id="content" class="container_12 clearfix" data-sort=true>
					<?php 
					if(isset($_REQUEST['cypher_req'])){
						?>


						<?php
						$r = $_REQUEST['cypher_req'];
						if(is_file(strtolower($_REQUEST['cypher_req']).'.php')){
							require_once(strtolower($_REQUEST['cypher_req']).'.php');	
						}else{
							require_once('404.php');
						}

						?>
					</section>

					<?php
				}else{

					$access_level = $p->get_user_dets(2,$user);

					$f = $p->check_access("admin_dashboard",$access_level,'access_dashboard');
					if($f){
						require_once('respondent_dashboard.php');
					}
					
					$f = $p->check_access("judges_dashboard",$access_level,'access_dashboard');
					if($f){
					
						require_once('judges_dashboard.php');
					}

					

					$f = $p->check_access("mentors_dashboard",$access_level,'access_dashboard');
					if($f){
					
						require_once('mentors_dashboard.php');
					}
					
					
					$f = $p->check_access("innovators_dashboard",$access_level,'access_dashboard');
					if($f){
					
						require_once('innovators_dashboard.php');
					}
					

					?>

					<!-- End of ul.stats -->

					<?php } ?><!-- End of #content -->

				</div><!-- End of #main -->

				<!-- The footer -->
				<footer class="container_12">


					<span class="grid_6">
						Cypher Africa. Copyright &copy; <?php echo date('Y'); ?> 
					</span>
				</footer><!-- End of footer -->

				<!-- Spawn $$.loaded -->

<!--LOADING SCRIPTS FOR PAGE-->

  
<script src="js/ui-tabs.js"></script>
<script src="js/bootstrap.min.js"></script>

<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/css/datepicker.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="bootstrap-datepicker.js"></script>
			
			<script language="javascript" type="text/javascript">
	$(function () {
  $(".jawnie_date").datepicker({ 
        autoclose: true, 
		
        todayHighlight: true
  });
  

   
});
</script>




				<script>
					$$.loaded();
				</script>

				<script type="text/javascript">
					jQuery(window).load(function() {
					
					//$("#rdd").load("dash_counter.php");

    $("#nav > li > a").click(function () { // binding onclick
    	if ($(this).parent().hasClass('selected')) {
            $("#nav .selected div div").slideUp(100); // hiding popups
            $("#nav .selected").removeClass("selected");
        } else {
            $("#nav .selected div div").slideUp(100); // hiding popups
            $("#nav .selected").removeClass("selected");

            if ($(this).next(".subs").length) {
                $(this).parent().addClass("selected"); // display popup
                $(this).next(".subs").children().slideDown(200);
            }
        }
    }); 

});

if(sms_received == 1){
	
	$('#inbox').load('received_inbox.php');
	$('#sent').load('received_sent.php');
	$('#drafts').load('received_drafts.php');
	$('#archives').load('received_archived.php');
	$('#deleted').load('received_deleted.php');
	setInterval(function(){
		$('#inbox').load('received_inbox.php');
		$('#sent').load('received_sent.php');
		$('#drafts').load('received_drafts.php');
		$('#archives').load('received_archived.php');
		$('#deleted').load('received_deleted.php');
	},60000)
	}
	
	
	
	
</script>

	<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
		chromium.org/developers/how-tos/chrome-frame-getting-started -->
	<!--[if lt IE 7 ]>
	<script defer src="CFInstall.min.js"></script>
	<script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
<![endif]-->

</body>
</html>