This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
/** | |
* Функция конвертирует utf8 в 1251 | |
* @param $arr | |
* @param $charset | |
* | |
* @return array|object|string | |
*/ | |
function iconv_1251($arr, $charset) { | |
if ($charset == 'windows-1251') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[aviable=main] | |
<!DOCTYPE html> | |
<html> | |
<head> | |
{headers} | |
</head> | |
<body> | |
{custom} | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Спроектировать класс (объект) для рисования диаграммы с графиками вида http://joxi.ru/4OKiUxjKTJBQH4JRgPc. Класс должен отрисовывать две оси координат заданного (или автоматически устанавливаемого масштаба), по оси Y откладываются числовые значения, по оси X - произвольные. На диаграмме можно рисовать неограниченное кол-во графиков, каждый из которых строится по своему массиву точек вида (x: y), при этом считаем, что в каждом массиве одни и те же значения X. Пример, | |
'план по задачам': ['исправление': 2, 'техподдержка': 3, 'тикет': 3, 'обучение': 0] | |
'факт по задачам': ['исправление': 0, 'техподдержка': 4, 'тикет': 4, 'обучение': 1] | |
На оси Х должны выводиться значения из массивов данных для построения графиков, то есть, 'исправление' и т.д. | |
На каждом графике около точек с данными необходимо выводить соответствующие значения (на рисунке это числа 1231, 3213, хотя надо было бы вывести в обоих случаях значения 3). Рядом с графиками необходимо выводить легенду (стрелка 4). | |
Предусмотреть в коде класса возможн |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<script> | |
'use strict'; | |
var JSCourses = { | |
title: 'HTML', | |
show: function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.isMobile = function () { | |
var check = false; | |
(function (a) { | |
if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{* | |
Это блок с комментарием, его не будет видно на сайте. | |
Очень удобно таким образом оставлять полезные записи | |
*} | |
{*Это определение маленькой картинки-заглушки*} | |
{var $noimage = '{THEME}/images/noimage.png'} | |
{*Это определение большой картинки-заглушки*} | |
{var $noimageBig = '{THEME}/images/noimage.png'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!defined('DATALIFEENGINE')) die("Go fuck yourself!"); | |
if($showstat) { | |
$start = microtime(true); | |
$dbStat = ''; | |
} | |
// Конфиг модуля | |
$cfg = array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) { | |
$.urlParam = function(name){ | |
var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href); | |
return results[1] || 0; | |
} | |
$('[name="subj"]').val(decodeURI($.urlParam('subj'))) | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
============================================================================= | |
BlockPro - ajax часть модуля | |
============================================================================= | |
Автор: ПафНутиЙ | |
URL: http://pafnuty.name/ | |
twitter: https://twitter.com/pafnuty_name | |
google+: http://gplus.to/pafnuty | |
email: pafnuty10@gmail.com |