Загрузить файлы в «js»
This commit is contained in:
79
js/1.txt
Normal file
79
js/1.txt
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
|
||||||
|
<script type=\"text/javascript\">
|
||||||
|
google.charts.load('current', {'packages':['corechart']});
|
||||||
|
google.charts.setOnLoadCallback(drawChart);
|
||||||
|
|
||||||
|
function drawChart() {
|
||||||
|
|
||||||
|
var data = google.visualization.arrayToDataTable([
|
||||||
|
['Task', 'Hours per Day'],
|
||||||
|
['Академическая', '<?php $this->akademcash ?>'],
|
||||||
|
['Бескудниково', '<?php $this->beskutcash ?>'],
|
||||||
|
['Бибирево', '<?php $this->bibirevocash ?>'],
|
||||||
|
['Бутово', '<?php $this->butovocash ?>'],
|
||||||
|
['Водный Стадион', '<?php $this->vodnikcash ?>'],
|
||||||
|
['Динамо', '<?php $this->dinamocash ?>'],
|
||||||
|
['Домодедовская', '<?php $this->domodedovocash ?>'],
|
||||||
|
['Дубровка', '<?php $this->dubrovkacash ?>'],
|
||||||
|
['Измайлово', '<?php $this->izmailovocash ?>'],
|
||||||
|
['Кантемировская', '<?php $this->kantimcash ?>'],
|
||||||
|
['Коломенская', '<?php $this->kolomencash ?>'],
|
||||||
|
['Люберцы', '<?php $this->lubercash ?>'],
|
||||||
|
['Марьино', '<?php $this->marinocash ?>'],
|
||||||
|
['Митино', '<?php $this->mitinocash ?>'],
|
||||||
|
['Ордженикидзе', '<?php $this->ordjencash ?>'],
|
||||||
|
['Перово', '<?php $this->perovocash ?>'],
|
||||||
|
['Пионерская', '<?php $this->pionerkacash ?>'],
|
||||||
|
['Свиблово', '<?php $this->sviblovocash ?>'],
|
||||||
|
['Строгино', '<?php $this->stroginocash ?>'],
|
||||||
|
['Чертаново', '<?php $this->chertanovocash ?>'],
|
||||||
|
['Ясенево', '<?php $this->yasenevocash ?>']
|
||||||
|
]);
|
||||||
|
|
||||||
|
var options = {
|
||||||
|
title: 'Выручка за сегодня',
|
||||||
|
pieHole: 0.4,
|
||||||
|
};
|
||||||
|
|
||||||
|
var chart = new google.visualization.PieChart(document.getElementById('piechart'));
|
||||||
|
|
||||||
|
chart.draw(data, options);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
protected function GetTottalUsersArray(){
|
||||||
|
$data = array();
|
||||||
|
$data['1'] = $this->beskudtuser;
|
||||||
|
$data['2'] = $this->mitinouser;
|
||||||
|
$data['3'] = $this->kolomenuser;
|
||||||
|
$data['6'] = $this->sviblovouser;
|
||||||
|
$data['7'] = $this->stroginouser;
|
||||||
|
$data['8'] = $this->kantimuser;
|
||||||
|
$data['9'] = $this->domodedovouser;
|
||||||
|
$data['10'] = $this->dubrovkauser;
|
||||||
|
$data['11'] = $this->pionerkauser;
|
||||||
|
$data['12'] = $this->luberuser;
|
||||||
|
$data['13'] = $this->bibirevouser;
|
||||||
|
$data['14'] = $this->marinouser;
|
||||||
|
$data['15'] = $this->perovouser;
|
||||||
|
$data['16'] = $this->chertanovouser;
|
||||||
|
$data['17'] = $this->butovouser;
|
||||||
|
$data['18'] = $this->akademuser;
|
||||||
|
$data['19'] = $this->ordjenuser;
|
||||||
|
$data['20'] = $this->dinamouser;
|
||||||
|
$data['21'] = $this->izmailovouser;
|
||||||
|
$data['22'] = $this->yasenevouser;
|
||||||
|
$data['24'] = $this->vodnikuse;
|
||||||
|
}
|
||||||
|
|
||||||
|
<!-- JQuery -->
|
||||||
|
<script type="text/javascript" src="js/jquery/jquery-3.1.0.min.js"></script>
|
||||||
|
<!-- arcticModal -->
|
||||||
|
<script src="js/arcticmodal/jquery.arcticmodal.js"></script>
|
||||||
|
<link rel="stylesheet" href="js/arcticmodal/jquery.arcticmodal.css">
|
||||||
|
<!-- arcticModal theme -->
|
||||||
|
<link rel="stylesheet" href="js/arcticmodal/themes/simple.css">
|
||||||
|
<!-- cookie -->
|
||||||
|
<script src="js/jquery.cookie.min.js"></script>
|
||||||
23
js/alert.js
Normal file
23
js/alert.js
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
(function($) {
|
||||||
|
$(function() {
|
||||||
|
|
||||||
|
// Проверим, есть ли запись в куках о посещении посетителя
|
||||||
|
// Если запись есть - ничего не делаем
|
||||||
|
if (!$.cookie('was')) {
|
||||||
|
|
||||||
|
// Покажем всплывающее окно
|
||||||
|
$('#boxUserFirstInfo').arcticmodal({
|
||||||
|
closeOnOverlayClick: false,
|
||||||
|
closeOnEsc: true
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Запомним в куках, что посетитель к нам уже заходил
|
||||||
|
$.cookie('was', true, {
|
||||||
|
expires: 365,
|
||||||
|
path: '/'
|
||||||
|
});
|
||||||
|
|
||||||
|
})
|
||||||
|
})(jQuery)
|
||||||
1
js/jquery.cookie.min.js
vendored
Normal file
1
js/jquery.cookie.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};
|
||||||
Reference in New Issue
Block a user