dashboard.php 1.92 KB
Newer Older
Kulya's avatar
Kulya committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php //namespace AloVoice; include("header.php"); ?>
<div class="alvtop_header" id="alv_mainblock"> <?php //card?>
	<center>
		<h3 class="h3 card-body">Телефония <span style="color:#ff9800; font-weight:bold;">AloVoice</span>&copy;</h3>
		<div class="container" id="dsbblock">
		</div>
	</center>

</div>
<style>
.card-body-bottomtitle{
	display:none;
}
</style>
<script>
var afterLoadPage = function(reload){
Kulya's avatar
Kulya committed
17
	
Kulya's avatar
Kulya committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
	$.ajax({
		url: location.origin+location.pathname, 
		data: {
			restmethod:"load_all_events"        
		},
		success: function( result ){
			// console.log("load_all_events RES: " + result);
		}
	});
	/*
	$.ajax({
		url: location.origin+location.pathname, 
		data: {
			restmethod:"is_allonoteInstalled"        
		},
		success: function( result ){
			console.log("is_allonoteInstalled RES: " + result);
			if(result=="true"){
				//$("#allonote_installed").show();
				//$("#allonote_install").hide();
				$("#dsbblock").append('<div class="row">Сервис SMS "AlloNote" - запущен!</div>');
			} else {
				$("#dsbblock").append('<div class="row">Сервис SMS "AlloNote" - не запущен!</div>');
				//$("#allonote_installed").hide();
				//$("#allonote_install").show();
			}

		}
	});

	$.ajax({
		url: location.origin+location.pathname, 
		data: {
			restmethod:"is_allotginstalled"          
		},
		success: function( result ){
			console.log("is_allotginstalled RES: " + result);
			if(result=="true"){
				$("#dsbblock").append('<div class="row">Сервис Телеграм "AlloTG" - не запущен!</div>');
				//$("#allotg_installed").show();
				//$("#allotg_install").hide();
			} else {
				$("#dsbblock").append('<div class="row">Сервис Телеграм "AlloTG" - не запущен!</div>');
				//$("#allotg_installed").hide();
				//$("#allotg_install").show();
			}
		}
	});
	*/
};
</script>
<?php //include("footer.php"); ?>