Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
get_image.js.php
Содержимое
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Provides the functionality for retreiving images * which may be actual images or an icon from a sprite * * @package PhpMyAdmin */ chdir('..'); // Send correct type: header('Content-Type: text/javascript; charset=UTF-8'); header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT'); // Avoid loading the full common.inc.php because this would add many // non-js-compatible stuff like DOCTYPE define('PMA_MINIMUM_COMMON', true); require_once './libraries/common.inc.php'; // Get the data for the sprites, if it's available if (is_readable($_SESSION['PMA_Theme']->getPath() . '/sprites.lib.php')) { include $_SESSION['PMA_Theme']->getPath() . '/sprites.lib.php'; } $sprites = array(); if (function_exists('PMA_sprites')) { $sprites = PMA_sprites(); } // We only need the keys from the array of sprites data, // since they contain the (partial) class names $keys = array(); foreach ($sprites as $key => $value) { $keys[] = "'$key'"; } ?> /** * Returns an HTML IMG tag for a particular image from a theme, * which may be an actual file or an icon from a sprite * * @param string image The name of the file to get * @param string alternate Used to set 'alt' and 'title' attributes of the image * @param object attributes An associative array of other attributes * * @return Object The requested image, this object has two methods: * .toString() - Returns the IMG tag for the requested image * .attr(name) - Returns a particular attribute of the IMG * tag given it's name * .attr(name, value) - Sets a particular attribute of the IMG * tag to the given value * And one property: * .isSprite - Whether the image is a sprite or not */ function PMA_getImage(image, alternate, attributes) { var in_array = function (needle, haystack) { for (i in haystack) { if (haystack[i] == needle) { return true; } } return false; }; var sprites = [ <?php echo implode($keys, ",\n ") . "\n"; ?> ]; // custom image object, it will eventually be returned by this functions var retval = { data: { // this is private alt: '', title: '', src: 'themes/dot.gif' }, isSprite: true, attr: function (name, value) { if (value == undefined) { if (this.data[name] == undefined) { return ''; } else { return this.data[name]; } } else { this.data[name] = value; } }, toString: function () { var retval = '<' + 'img'; for (var i in this.data) { retval += ' ' + i + '="' + this.data[i] + '"'; } retval += ' /' + '>'; return retval; } }; // initialise missing parameters if (attributes == undefined) { attributes = {}; } if (alternate == undefined) { alternate = ''; } // set alt if (attributes.alt != undefined) { retval.attr('alt', attributes.alt); } else { retval.attr('alt', alternate); } // set title if (attributes.title != undefined) { retval.attr('title', attributes.title); } else { retval.attr('title', alternate); } // set src var klass = image.replace('.gif', '').replace('.png', ''); if (in_array(klass, sprites)) { // it's an icon from a sprite retval.attr('class', 'icon ic_' + klass); } else { // it's an image file retval.isSprite = false; retval.attr('src', "<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>" + image); } // set all other attrubutes for (var i in attributes) { if (i == 'src') { // do not allow to override the 'src' attribute continue; } else if (i == 'class') { retval.attr(i, retval.attr('class') + ' ' + attributes[i]); } else { retval.attr(i, attributes[i]); } } return retval; };
/admin/phpmyadmin/js/
Имя
Дата
Размер
..
2013-04-27
canvg
2013-04-27
codemirror
2013-04-27
highcharts
2013-04-27
jqplot
2013-04-27
jquery
2013-04-27
openlayers
2013-04-27
pmd
2013-04-27
rte
2013-04-27
OpenStreetMap.js
2012-10-10
2 кб.
common.js
2012-10-10
5 кб.
config.js
2012-10-10
9 кб.
cross_framing_protection.js
2012-10-10
331 байт
date.js
2012-10-10
4 кб.
db_operations.js
2012-10-10
2 кб.
db_search.js
2012-10-10
3 кб.
db_structure.js
2012-10-10
6 кб.
dom-drag.js
2012-10-10
3 кб.
export.js
2012-10-10
5 кб.
functions.js
2012-10-10
47 кб.
get_image.js.php
2012-10-10
4 кб.
gis_data_editor.js
2012-10-10
6 кб.
import.js
2012-10-10
1 кб.
indexes.js
2012-10-10
978 байт
keyhandler.js
2012-10-10
856 байт
makegrid.js
2012-10-10
23 кб.
messages.php
2012-10-10
23 кб.
navigation.js
2012-10-10
3 кб.
querywindow.js
2012-10-10
685 байт
replication.js
2012-10-10
1 кб.
server_plugins.js
2012-10-10
462 байт
server_privileges.js
2012-10-10
7 кб.
server_status.js
2012-10-10
12 кб.
server_status_monitor.js
2012-10-10
33 кб.
server_synchronize.js
2012-10-10
5 кб.
server_variables.js
2012-10-10
3 кб.
sql.js
2012-10-10
9 кб.
tbl_change.js
2012-10-10
7 кб.
tbl_chart.js
2012-10-10
4 кб.
tbl_gis_visualization.js
2012-10-10
5 кб.
tbl_relation.js
2012-10-10
334 байт
tbl_select.js
2012-10-10
2 кб.
tbl_structure.js
2012-10-10
11 кб.
tbl_zoom_plot_jqplot.js
2012-10-10
6 кб.
update-location.js
2012-10-10
758 байт
/admin/phpmyadmin/js
Загрузить файлы
Файл 1
Файл 2
Файл 3