datepicker in admin logs
This commit is contained in:
@@ -41,12 +41,14 @@ class AdminLogsController extends BaseAdminController
|
||||
public function loadLoggerAjaxAction()
|
||||
{
|
||||
$entries = array();
|
||||
|
||||
foreach( AdminLogQuery::getEntries(
|
||||
$this->getRequest()->request->get('admins', array()),
|
||||
null,
|
||||
null,
|
||||
array_merge($this->getRequest()->request->get('resources', array()), $this->getRequest()->request->get('modules', array()))
|
||||
) as $entry) {
|
||||
$this->getRequest()->request->get('admins', array()),
|
||||
$this->getRequest()->request->get('fromDate', null),
|
||||
$this->getRequest()->request->get('toDate', null),
|
||||
array_merge($this->getRequest()->request->get('resources', array()), $this->getRequest()->request->get('modules', array())),
|
||||
null
|
||||
) as $entry) {
|
||||
|
||||
$entries[] = array(
|
||||
"head" => sprintf(
|
||||
|
||||
@@ -43,7 +43,17 @@ class Assetic extends AbstractSmartyPlugin
|
||||
|
||||
public function blockJavascripts($params, $content, \Smarty_Internal_Template $template, &$repeat)
|
||||
{
|
||||
return $this->assetManager->processSmartyPluginCall('js', $params, $content, $template, $repeat);
|
||||
try {
|
||||
return $this->assetManager->processSmartyPluginCall('js', $params, $content, $template, $repeat);
|
||||
} catch(\Exception $e) {
|
||||
$catchException = $this->getNormalizedParam($params, array('catchException'));
|
||||
if($catchException == "true") {
|
||||
$repeat = false;
|
||||
return null;
|
||||
} else {
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function blockImages($params, $content, \Smarty_Internal_Template $template, &$repeat)
|
||||
|
||||
@@ -20,23 +20,25 @@ class AdminLogQuery extends BaseAdminLogQuery
|
||||
{
|
||||
/**
|
||||
* @param null $login
|
||||
* @param \DateTime $maxDateTime
|
||||
* @param \DateTime $minDateTime
|
||||
* @param null $minDate
|
||||
* @param null $maxDate
|
||||
* @param null $resources
|
||||
* @param null $actions
|
||||
*
|
||||
* @return array|mixed|\Propel\Runtime\Collection\ObjectCollection
|
||||
*/
|
||||
public static function getEntries($login = null, \DateTime $maxDateTime = null, \DateTime $minDateTime = null, $resources = null, $actions = null)
|
||||
public static function getEntries($login = null, $minDate = null, $maxDate = null, $resources = null, $actions = null)
|
||||
{
|
||||
$search = self::create();
|
||||
|
||||
if(null !== $minDateTime) {
|
||||
$search->filterByCreatedAt($minDateTime->getTimestamp(), Criteria::GREATER_EQUAL);
|
||||
if(null !== $minDate) {
|
||||
$search->filterByCreatedAt($minDate, Criteria::GREATER_EQUAL);
|
||||
}
|
||||
|
||||
if(null !== $maxDateTime) {
|
||||
$search->filterByCreatedAt($maxDateTime->getTimestamp(), Criteria::LESS_EQUAL);
|
||||
if(null !== $maxDate) {
|
||||
$maxDateObject = new \DateTime($maxDate);
|
||||
$maxDateObject->add(new \DateInterval('P1D'));
|
||||
$search->filterByCreatedAt(date('Y-m-d', $maxDateObject->getTimestamp()), Criteria::LESS_THAN);
|
||||
}
|
||||
|
||||
if(null !== $resources) {
|
||||
|
||||
@@ -24,16 +24,46 @@
|
||||
|
||||
<div class="title title-without-tabs">{intl l="Administration logs"}</div>
|
||||
|
||||
<div class="col-md-12 clearfix">
|
||||
<div class="row inner-toolbar">
|
||||
<div class="col-md-12 inner-actions clearfix">
|
||||
<button type="button" class="btn btn-default btn-success pull-right js-show-logs" title="{intl l='Show logs'}">{intl l='Show logs'} <span class="glyphicon glyphicon-eye-open"></span></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row inner-toolbar">
|
||||
<div class="col-md-12 inner-actions clearfix">
|
||||
<button type="button" class="btn btn-default btn-success pull-right js-show-logs" title="Show logs">Show logs <span class="glyphicon glyphicon-eye-open"></span></button>
|
||||
</div>
|
||||
<div class="col-md-12 clearfix">
|
||||
<div>
|
||||
<strong>{intl l='Period'} :</strong>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-3 clearfix">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">{intl l='From'}</span>
|
||||
<input class="form-control" type="text" id="from_date" readonly="readonly">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default js-show-datepicker" data-datepicker-selector="#from_date" type="button">
|
||||
<span class="glyphicon glyphicon-calendar"></span>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 clearfix input-group">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">{intl l='To'}</span>
|
||||
<input class="form-control" type="text" id="to_date" readonly="readonly">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default js-show-datepicker" data-datepicker-selector="#to_date" type="button">
|
||||
<span class="glyphicon glyphicon-calendar"></span>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 clearfix">
|
||||
<div>
|
||||
<strong>Administrators :</strong>
|
||||
<strong>{intl l='Administrators'} :</strong>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@@ -48,12 +78,11 @@
|
||||
</div>
|
||||
{/loop}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 clearfix">
|
||||
<div>
|
||||
<strong>Resources :</strong>
|
||||
<strong>{intl l='Resources'} :</strong>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@@ -73,7 +102,7 @@
|
||||
|
||||
<div class="col-md-12 clearfix">
|
||||
<div>
|
||||
<strong>Modules :</strong>
|
||||
<strong>{intl l='Modules'} :</strong>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@@ -93,7 +122,7 @@
|
||||
|
||||
<div class="row inner-toolbar">
|
||||
<div class="col-md-12 inner-actions clearfix">
|
||||
<button type="button" class="btn btn-default btn-success pull-right js-show-logs" title="Show logs">Show logs <span class="glyphicon glyphicon-eye-open"></span></button>
|
||||
<button type="button" class="btn btn-default btn-success pull-right js-show-logs" title="{intl l='Show logs'}">{intl l='Show logs'} <span class="glyphicon glyphicon-eye-open"></span></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -116,9 +145,43 @@
|
||||
<script src="{$asset_url}"></script>
|
||||
{/javascripts}
|
||||
|
||||
{javascripts file='assets/js/jquery.ui/jquery.ui.datepicker/jquery.ui.datepicker.js'}
|
||||
<script src="{$asset_url}"></script>
|
||||
{/javascripts}
|
||||
|
||||
{stylesheets file='assets/js/jquery.ui/jquery.ui.theme.css'}
|
||||
<link rel="stylesheet" href="{$asset_url}">
|
||||
{/stylesheets}
|
||||
{stylesheets file='assets/js/jquery.ui/jquery.ui.datepicker/jquery.ui.datepicker.css'}
|
||||
<link rel="stylesheet" href="{$asset_url}">
|
||||
{/stylesheets}
|
||||
|
||||
{javascripts file="assets/js/jquery/jquery.ui.ui.datepicker/i18n/jquery.ui.datepicker-{lang attr="locale"}.js" catchException="true"}
|
||||
<script src="{$asset_url}"></script>
|
||||
{/javascripts}
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
jQuery(function($) {
|
||||
|
||||
$('#from_date').datepicker({
|
||||
maxDate: "-1d",
|
||||
showOn: 'manual'
|
||||
});
|
||||
$('#from_date').datepicker( "setDate", "-7d" );
|
||||
|
||||
$('#to_date').datepicker({
|
||||
maxDate: "0",
|
||||
showOn: 'manual'
|
||||
});
|
||||
$('#to_date').datepicker( "setDate", "0" );
|
||||
|
||||
$('.js-show-datepicker').click(function(e){
|
||||
$($(this).data('datepicker-selector')).datepicker('show');
|
||||
});
|
||||
|
||||
$('.js-show-logs').click(function(e) {
|
||||
|
||||
$('.js-show-logs').attr('disabled', true);
|
||||
@@ -139,12 +202,17 @@
|
||||
modules.push($(v).data('id'));
|
||||
})
|
||||
|
||||
var fromDate = new Date( $('#from_date').datepicker( "getDate" ) );
|
||||
var toDate = new Date( $('#to_date').datepicker( "getDate" ) );
|
||||
|
||||
$.post(
|
||||
"{url path='/admin/configuration/adminLogs/logger'}",
|
||||
{
|
||||
admins: admins,
|
||||
resources: resources,
|
||||
modules: modules
|
||||
fromDate: $.datepicker.formatDate("yy-mm-dd", fromDate),
|
||||
toDate: $.datepicker.formatDate("yy-mm-dd", toDate),
|
||||
admins: admins,
|
||||
resources: resources,
|
||||
modules: modules
|
||||
},
|
||||
function(html) {
|
||||
$('#loading-block').hide();
|
||||
|
||||
@@ -1,474 +0,0 @@
|
||||
///* =========================================================
|
||||
// * bootstrap-datepicker.js
|
||||
// * http://www.eyecon.ro/bootstrap-datepicker
|
||||
// * =========================================================
|
||||
// * Copyright 2012 Stefan Petre
|
||||
// *
|
||||
// * Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// * you may not use this file except in compliance with the License.
|
||||
// * You may obtain a copy of the License at
|
||||
// *
|
||||
// * http://www.apache.org/licenses/LICENSE-2.0
|
||||
// *
|
||||
// * Unless required by applicable law or agreed to in writing, software
|
||||
// * distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// * See the License for the specific language governing permissions and
|
||||
// * limitations under the License.
|
||||
// * ========================================================= */
|
||||
//
|
||||
//!function( $ ) {
|
||||
//
|
||||
// // Picker object
|
||||
//
|
||||
// var Datepicker = function(element, options){
|
||||
// this.element = $(element);
|
||||
// this.format = DPGlobal.parseFormat(options.format||this.element.data('date-format')||'mm/dd/yyyy');
|
||||
// this.picker = $(DPGlobal.template)
|
||||
// .appendTo('body')
|
||||
// .on({
|
||||
// click: $.proxy(this.click, this)//,
|
||||
// //mousedown: $.proxy(this.mousedown, this)
|
||||
// });
|
||||
// this.isInput = this.element.is('input');
|
||||
// this.component = this.element.is('.date') ? this.element.find('.add-on') : false;
|
||||
//
|
||||
// if (this.isInput) {
|
||||
// this.element.on({
|
||||
// focus: $.proxy(this.show, this),
|
||||
// //blur: $.proxy(this.hide, this),
|
||||
// keyup: $.proxy(this.update, this)
|
||||
// });
|
||||
// } else {
|
||||
// if (this.component){
|
||||
// this.component.on('click', $.proxy(this.show, this));
|
||||
// } else {
|
||||
// this.element.on('click', $.proxy(this.show, this));
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// this.minViewMode = options.minViewMode||this.element.data('date-minviewmode')||0;
|
||||
// if (typeof this.minViewMode === 'string') {
|
||||
// switch (this.minViewMode) {
|
||||
// case 'months':
|
||||
// this.minViewMode = 1;
|
||||
// break;
|
||||
// case 'years':
|
||||
// this.minViewMode = 2;
|
||||
// break;
|
||||
// default:
|
||||
// this.minViewMode = 0;
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// this.viewMode = options.viewMode||this.element.data('date-viewmode')||0;
|
||||
// if (typeof this.viewMode === 'string') {
|
||||
// switch (this.viewMode) {
|
||||
// case 'months':
|
||||
// this.viewMode = 1;
|
||||
// break;
|
||||
// case 'years':
|
||||
// this.viewMode = 2;
|
||||
// break;
|
||||
// default:
|
||||
// this.viewMode = 0;
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// this.startViewMode = this.viewMode;
|
||||
// this.weekStart = options.weekStart||this.element.data('date-weekstart')||0;
|
||||
// this.weekEnd = this.weekStart === 0 ? 6 : this.weekStart - 1;
|
||||
// this.onRender = options.onRender;
|
||||
// this.fillDow();
|
||||
// this.fillMonths();
|
||||
// this.update();
|
||||
// this.showMode();
|
||||
// };
|
||||
//
|
||||
// Datepicker.prototype = {
|
||||
// constructor: Datepicker,
|
||||
//
|
||||
// show: function(e) {
|
||||
// this.picker.show();
|
||||
// this.height = this.component ? this.component.outerHeight() : this.element.outerHeight();
|
||||
// this.place();
|
||||
// $(window).on('resize', $.proxy(this.place, this));
|
||||
// if (e ) {
|
||||
// e.stopPropagation();
|
||||
// e.preventDefault();
|
||||
// }
|
||||
// if (!this.isInput) {
|
||||
// }
|
||||
// var that = this;
|
||||
// $(document).on('mousedown', function(ev){
|
||||
// if ($(ev.target).closest('.datepicker').length == 0) {
|
||||
// that.hide();
|
||||
// }
|
||||
// });
|
||||
// this.element.trigger({
|
||||
// type: 'show',
|
||||
// date: this.date
|
||||
// });
|
||||
// },
|
||||
//
|
||||
// hide: function(){
|
||||
// this.picker.hide();
|
||||
// $(window).off('resize', this.place);
|
||||
// this.viewMode = this.startViewMode;
|
||||
// this.showMode();
|
||||
// if (!this.isInput) {
|
||||
// $(document).off('mousedown', this.hide);
|
||||
// }
|
||||
// //this.set();
|
||||
// this.element.trigger({
|
||||
// type: 'hide',
|
||||
// date: this.date
|
||||
// });
|
||||
// },
|
||||
//
|
||||
// set: function() {
|
||||
// var formated = DPGlobal.formatDate(this.date, this.format);
|
||||
// if (!this.isInput) {
|
||||
// if (this.component){
|
||||
// this.element.find('input').prop('value', formated);
|
||||
// }
|
||||
// this.element.data('date', formated);
|
||||
// } else {
|
||||
// this.element.prop('value', formated);
|
||||
// }
|
||||
// },
|
||||
//
|
||||
// setValue: function(newDate) {
|
||||
// if (typeof newDate === 'string') {
|
||||
// this.date = DPGlobal.parseDate(newDate, this.format);
|
||||
// } else {
|
||||
// this.date = new Date(newDate);
|
||||
// }
|
||||
// this.set();
|
||||
// this.viewDate = new Date(this.date.getFullYear(), this.date.getMonth(), 1, 0, 0, 0, 0);
|
||||
// this.fill();
|
||||
// },
|
||||
//
|
||||
// place: function(){
|
||||
// var offset = this.component ? this.component.offset() : this.element.offset();
|
||||
// this.picker.css({
|
||||
// top: offset.top + this.height,
|
||||
// left: offset.left
|
||||
// });
|
||||
// },
|
||||
//
|
||||
// update: function(newDate){
|
||||
// this.date = DPGlobal.parseDate(
|
||||
// typeof newDate === 'string' ? newDate : (this.isInput ? this.element.prop('value') : this.element.data('date')),
|
||||
// this.format
|
||||
// );
|
||||
// this.viewDate = new Date(this.date.getFullYear(), this.date.getMonth(), 1, 0, 0, 0, 0);
|
||||
// this.fill();
|
||||
// },
|
||||
//
|
||||
// fillDow: function(){
|
||||
// var dowCnt = this.weekStart;
|
||||
// var html = '<tr>';
|
||||
// while (dowCnt < this.weekStart + 7) {
|
||||
// html += '<th class="dow">'+DPGlobal.dates.daysMin[(dowCnt++)%7]+'</th>';
|
||||
// }
|
||||
// html += '</tr>';
|
||||
// this.picker.find('.datepicker-days thead').append(html);
|
||||
// },
|
||||
//
|
||||
// fillMonths: function(){
|
||||
// var html = '';
|
||||
// var i = 0
|
||||
// while (i < 12) {
|
||||
// html += '<span class="month">'+DPGlobal.dates.monthsShort[i++]+'</span>';
|
||||
// }
|
||||
// this.picker.find('.datepicker-months td').append(html);
|
||||
// },
|
||||
//
|
||||
// fill: function() {
|
||||
// var d = new Date(this.viewDate),
|
||||
// year = d.getFullYear(),
|
||||
// month = d.getMonth(),
|
||||
// currentDate = this.date.valueOf();
|
||||
// this.picker.find('.datepicker-days th:eq(1)')
|
||||
// .text(DPGlobal.dates.months[month]+' '+year);
|
||||
// var prevMonth = new Date(year, month-1, 28,0,0,0,0),
|
||||
// day = DPGlobal.getDaysInMonth(prevMonth.getFullYear(), prevMonth.getMonth());
|
||||
// prevMonth.setDate(day);
|
||||
// prevMonth.setDate(day - (prevMonth.getDay() - this.weekStart + 7)%7);
|
||||
// var nextMonth = new Date(prevMonth);
|
||||
// nextMonth.setDate(nextMonth.getDate() + 42);
|
||||
// nextMonth = nextMonth.valueOf();
|
||||
// var html = [];
|
||||
// var clsName,
|
||||
// prevY,
|
||||
// prevM;
|
||||
// while(prevMonth.valueOf() < nextMonth) {
|
||||
// if (prevMonth.getDay() === this.weekStart) {
|
||||
// html.push('<tr>');
|
||||
// }
|
||||
// clsName = this.onRender(prevMonth);
|
||||
// prevY = prevMonth.getFullYear();
|
||||
// prevM = prevMonth.getMonth();
|
||||
// if ((prevM < month && prevY === year) || prevY < year) {
|
||||
// clsName += ' old';
|
||||
// } else if ((prevM > month && prevY === year) || prevY > year) {
|
||||
// clsName += ' new';
|
||||
// }
|
||||
// if (prevMonth.valueOf() === currentDate) {
|
||||
// clsName += ' active';
|
||||
// }
|
||||
// html.push('<td class="day '+clsName+'">'+prevMonth.getDate() + '</td>');
|
||||
// if (prevMonth.getDay() === this.weekEnd) {
|
||||
// html.push('</tr>');
|
||||
// }
|
||||
// prevMonth.setDate(prevMonth.getDate()+1);
|
||||
// }
|
||||
// this.picker.find('.datepicker-days tbody').empty().append(html.join(''));
|
||||
// var currentYear = this.date.getFullYear();
|
||||
//
|
||||
// var months = this.picker.find('.datepicker-months')
|
||||
// .find('th:eq(1)')
|
||||
// .text(year)
|
||||
// .end()
|
||||
// .find('span').removeClass('active');
|
||||
// if (currentYear === year) {
|
||||
// months.eq(this.date.getMonth()).addClass('active');
|
||||
// }
|
||||
//
|
||||
// html = '';
|
||||
// year = parseInt(year/10, 10) * 10;
|
||||
// var yearCont = this.picker.find('.datepicker-years')
|
||||
// .find('th:eq(1)')
|
||||
// .text(year + '-' + (year + 9))
|
||||
// .end()
|
||||
// .find('td');
|
||||
// year -= 1;
|
||||
// for (var i = -1; i < 11; i++) {
|
||||
// html += '<span class="year'+(i === -1 || i === 10 ? ' old' : '')+(currentYear === year ? ' active' : '')+'">'+year+'</span>';
|
||||
// year += 1;
|
||||
// }
|
||||
// yearCont.html(html);
|
||||
// },
|
||||
//
|
||||
// click: function(e) {
|
||||
// e.stopPropagation();
|
||||
// e.preventDefault();
|
||||
// var target = $(e.target).closest('span, td, th');
|
||||
// if (target.length === 1) {
|
||||
// switch(target[0].nodeName.toLowerCase()) {
|
||||
// case 'th':
|
||||
// switch(target[0].className) {
|
||||
// case 'switch':
|
||||
// this.showMode(1);
|
||||
// break;
|
||||
// case 'prev':
|
||||
// case 'next':
|
||||
// this.viewDate['set'+DPGlobal.modes[this.viewMode].navFnc].call(
|
||||
// this.viewDate,
|
||||
// this.viewDate['get'+DPGlobal.modes[this.viewMode].navFnc].call(this.viewDate) +
|
||||
// DPGlobal.modes[this.viewMode].navStep * (target[0].className === 'prev' ? -1 : 1)
|
||||
// );
|
||||
// this.fill();
|
||||
// this.set();
|
||||
// break;
|
||||
// }
|
||||
// break;
|
||||
// case 'span':
|
||||
// if (target.is('.month')) {
|
||||
// var month = target.parent().find('span').index(target);
|
||||
// this.viewDate.setMonth(month);
|
||||
// } else {
|
||||
// var year = parseInt(target.text(), 10)||0;
|
||||
// this.viewDate.setFullYear(year);
|
||||
// }
|
||||
// if (this.viewMode !== 0) {
|
||||
// this.date = new Date(this.viewDate);
|
||||
// this.element.trigger({
|
||||
// type: 'changeDate',
|
||||
// date: this.date,
|
||||
// viewMode: DPGlobal.modes[this.viewMode].clsName
|
||||
// });
|
||||
// }
|
||||
// this.showMode(-1);
|
||||
// this.fill();
|
||||
// this.set();
|
||||
// break;
|
||||
// case 'td':
|
||||
// if (target.is('.day') && !target.is('.disabled')){
|
||||
// var day = parseInt(target.text(), 10)||1;
|
||||
// var month = this.viewDate.getMonth();
|
||||
// if (target.is('.old')) {
|
||||
// month -= 1;
|
||||
// } else if (target.is('.new')) {
|
||||
// month += 1;
|
||||
// }
|
||||
// var year = this.viewDate.getFullYear();
|
||||
// this.date = new Date(year, month, day,0,0,0,0);
|
||||
// this.viewDate = new Date(year, month, Math.min(28, day),0,0,0,0);
|
||||
// this.fill();
|
||||
// this.set();
|
||||
// this.element.trigger({
|
||||
// type: 'changeDate',
|
||||
// date: this.date,
|
||||
// viewMode: DPGlobal.modes[this.viewMode].clsName
|
||||
// });
|
||||
// }
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
//
|
||||
// mousedown: function(e){
|
||||
// e.stopPropagation();
|
||||
// e.preventDefault();
|
||||
// },
|
||||
//
|
||||
// showMode: function(dir) {
|
||||
// if (dir) {
|
||||
// this.viewMode = Math.max(this.minViewMode, Math.min(2, this.viewMode + dir));
|
||||
// }
|
||||
// this.picker.find('>div').hide().filter('.datepicker-'+DPGlobal.modes[this.viewMode].clsName).show();
|
||||
// }
|
||||
// };
|
||||
//
|
||||
// $.fn.datepicker = function ( option, val ) {
|
||||
// return this.each(function () {
|
||||
// var $this = $(this),
|
||||
// data = $this.data('datepicker'),
|
||||
// options = typeof option === 'object' && option;
|
||||
// if (!data) {
|
||||
// $this.data('datepicker', (data = new Datepicker(this, $.extend({}, $.fn.datepicker.defaults,options))));
|
||||
// }
|
||||
// if (typeof option === 'string') data[option](val);
|
||||
// });
|
||||
// };
|
||||
//
|
||||
// $.fn.datepicker.defaults = {
|
||||
// onRender: function(date) {
|
||||
// return '';
|
||||
// }
|
||||
// };
|
||||
// $.fn.datepicker.Constructor = Datepicker;
|
||||
//
|
||||
// var DPGlobal = {
|
||||
// modes: [
|
||||
// {
|
||||
// clsName: 'days',
|
||||
// navFnc: 'Month',
|
||||
// navStep: 1
|
||||
// },
|
||||
// {
|
||||
// clsName: 'months',
|
||||
// navFnc: 'FullYear',
|
||||
// navStep: 1
|
||||
// },
|
||||
// {
|
||||
// clsName: 'years',
|
||||
// navFnc: 'FullYear',
|
||||
// navStep: 10
|
||||
// }],
|
||||
// dates:{
|
||||
// days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
|
||||
// daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
||||
// daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
|
||||
// months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
||||
// monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
||||
// },
|
||||
// isLeapYear: function (year) {
|
||||
// return (((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0))
|
||||
// },
|
||||
// getDaysInMonth: function (year, month) {
|
||||
// return [31, (DPGlobal.isLeapYear(year) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month]
|
||||
// },
|
||||
// parseFormat: function(format){
|
||||
// var separator = format.match(/[.\/\-\s].*?/),
|
||||
// parts = format.split(/\W+/);
|
||||
// if (!separator || !parts || parts.length === 0){
|
||||
// throw new Error("Invalid date format.");
|
||||
// }
|
||||
// return {separator: separator, parts: parts};
|
||||
// },
|
||||
// parseDate: function(date, format) {
|
||||
// var parts = date.split(format.separator),
|
||||
// date = new Date(),
|
||||
// val;
|
||||
// date.setHours(0);
|
||||
// date.setMinutes(0);
|
||||
// date.setSeconds(0);
|
||||
// date.setMilliseconds(0);
|
||||
// if (parts.length === format.parts.length) {
|
||||
// var year = date.getFullYear(), day = date.getDate(), month = date.getMonth();
|
||||
// for (var i=0, cnt = format.parts.length; i < cnt; i++) {
|
||||
// val = parseInt(parts[i], 10)||1;
|
||||
// switch(format.parts[i]) {
|
||||
// case 'dd':
|
||||
// case 'd':
|
||||
// day = val;
|
||||
// date.setDate(val);
|
||||
// break;
|
||||
// case 'mm':
|
||||
// case 'm':
|
||||
// month = val - 1;
|
||||
// date.setMonth(val - 1);
|
||||
// break;
|
||||
// case 'yy':
|
||||
// year = 2000 + val;
|
||||
// date.setFullYear(2000 + val);
|
||||
// break;
|
||||
// case 'yyyy':
|
||||
// year = val;
|
||||
// date.setFullYear(val);
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// date = new Date(year, month, day, 0 ,0 ,0);
|
||||
// }
|
||||
// return date;
|
||||
// },
|
||||
// formatDate: function(date, format){
|
||||
// var val = {
|
||||
// d: date.getDate(),
|
||||
// m: date.getMonth() + 1,
|
||||
// yy: date.getFullYear().toString().substring(2),
|
||||
// yyyy: date.getFullYear()
|
||||
// };
|
||||
// val.dd = (val.d < 10 ? '0' : '') + val.d;
|
||||
// val.mm = (val.m < 10 ? '0' : '') + val.m;
|
||||
// var date = [];
|
||||
// for (var i=0, cnt = format.parts.length; i < cnt; i++) {
|
||||
// date.push(val[format.parts[i]]);
|
||||
// }
|
||||
// return date.join(format.separator);
|
||||
// },
|
||||
// headTemplate: '<thead>'+
|
||||
// '<tr>'+
|
||||
// '<th class="prev">‹</th>'+
|
||||
// '<th colspan="5" class="switch"></th>'+
|
||||
// '<th class="next">›</th>'+
|
||||
// '</tr>'+
|
||||
// '</thead>',
|
||||
// contTemplate: '<tbody><tr><td colspan="7"></td></tr></tbody>'
|
||||
// };
|
||||
// DPGlobal.template = '<div class="datepicker dropdown-menu">'+
|
||||
// '<div class="datepicker-days">'+
|
||||
// '<table class=" table-condensed">'+
|
||||
// DPGlobal.headTemplate+
|
||||
// '<tbody></tbody>'+
|
||||
// '</table>'+
|
||||
// '</div>'+
|
||||
// '<div class="datepicker-months">'+
|
||||
// '<table class="table-condensed">'+
|
||||
// DPGlobal.headTemplate+
|
||||
// DPGlobal.contTemplate+
|
||||
// '</table>'+
|
||||
// '</div>'+
|
||||
// '<div class="datepicker-years">'+
|
||||
// '<table class="table-condensed">'+
|
||||
// DPGlobal.headTemplate+
|
||||
// DPGlobal.contTemplate+
|
||||
// '</table>'+
|
||||
// '</div>'+
|
||||
// '</div>';
|
||||
//
|
||||
//}( window.jQuery );
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Inicialización en español para la extensión 'UI date picker' para jQuery. */
|
||||
/* Traducido por Vester (xvester@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['es_ES'] = {
|
||||
closeText: 'Cerrar',
|
||||
prevText: '<Ant',
|
||||
nextText: 'Sig>',
|
||||
currentText: 'Hoy',
|
||||
monthNames: ['enero','febrero','marzo','abril','mayo','junio',
|
||||
'julio','agosto','septiembre','octubre','noviembre','diciembre'],
|
||||
monthNamesShort: ['ene','feb','mar','abr','may','jun',
|
||||
'jul','ogo','sep','oct','nov','dic'],
|
||||
dayNames: ['domingo','lunes','martes','miércoles','jueves','viernes','sábado'],
|
||||
dayNamesShort: ['dom','lun','mar','mié','juv','vie','sáb'],
|
||||
dayNamesMin: ['D','L','M','X','J','V','S'],
|
||||
weekHeader: 'Sm',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['es_ES']);
|
||||
});
|
||||
@@ -0,0 +1,25 @@
|
||||
/* French initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Keith Wood (kbwood{at}iinet.com.au),
|
||||
Stéphane Nahmani (sholby@sholby.net),
|
||||
Stéphane Raimbault <stephane.raimbault@gmail.com> */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['fr_FR'] = {
|
||||
closeText: 'Fermer',
|
||||
prevText: 'Précédent',
|
||||
nextText: 'Suivant',
|
||||
currentText: 'Aujourd\'hui',
|
||||
monthNames: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin',
|
||||
'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
|
||||
monthNamesShort: ['janv.', 'févr.', 'mars', 'avril', 'mai', 'juin',
|
||||
'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],
|
||||
dayNames: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
|
||||
dayNamesShort: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
|
||||
dayNamesMin: ['D','L','M','M','J','V','S'],
|
||||
weekHeader: 'Sem.',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fr_FR']);
|
||||
});
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Italian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Antonello Pasella (antonello.pasella@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['it_IT'] = {
|
||||
closeText: 'Chiudi',
|
||||
prevText: '<Prec',
|
||||
nextText: 'Succ>',
|
||||
currentText: 'Oggi',
|
||||
monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno',
|
||||
'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'],
|
||||
monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu',
|
||||
'Lug','Ago','Set','Ott','Nov','Dic'],
|
||||
dayNames: ['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'],
|
||||
dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'],
|
||||
dayNamesMin: ['Do','Lu','Ma','Me','Gi','Ve','Sa'],
|
||||
weekHeader: 'Sm',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['it_IT']);
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
JQuery UI datepicker localization files were found here : https://github.com/jquery/jquery-ui/tree/master/ui/i18n
|
||||
|
||||
Warning : You must change file name an localization array key declaration in file to match thelia lang locale.
|
||||
|
||||
Exemple : change fr with fr_FR
|
||||
175
templates/admin/default/assets/js/jquery.ui/jquery.ui.datepicker/jquery.ui.datepicker.css
vendored
Normal file
175
templates/admin/default/assets/js/jquery.ui/jquery.ui.datepicker/jquery.ui.datepicker.css
vendored
Normal file
@@ -0,0 +1,175 @@
|
||||
/*!
|
||||
* jQuery UI Datepicker @VERSION
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright 2013 jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* http://api.jqueryui.com/datepicker/#theming
|
||||
*/
|
||||
.ui-datepicker {
|
||||
width: 17em;
|
||||
padding: .2em .2em 0;
|
||||
display: none;
|
||||
}
|
||||
.ui-datepicker .ui-datepicker-header {
|
||||
position: relative;
|
||||
padding: .2em 0;
|
||||
}
|
||||
.ui-datepicker .ui-datepicker-prev,
|
||||
.ui-datepicker .ui-datepicker-next {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
width: 1.8em;
|
||||
height: 1.8em;
|
||||
}
|
||||
.ui-datepicker .ui-datepicker-prev-hover,
|
||||
.ui-datepicker .ui-datepicker-next-hover {
|
||||
top: 1px;
|
||||
}
|
||||
.ui-datepicker .ui-datepicker-prev {
|
||||
left: 2px;
|
||||
}
|
||||
.ui-datepicker .ui-datepicker-next {
|
||||
right: 2px;
|
||||
}
|
||||
.ui-datepicker .ui-datepicker-prev-hover {
|
||||
left: 1px;
|
||||
}
|
||||
.ui-datepicker .ui-datepicker-next-hover {
|
||||
right: 1px;
|
||||
}
|
||||
.ui-datepicker .ui-datepicker-prev span,
|
||||
.ui-datepicker .ui-datepicker-next span {
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
margin-left: -8px;
|
||||
top: 50%;
|
||||
margin-top: -8px;
|
||||
}
|
||||
.ui-datepicker .ui-datepicker-title {
|
||||
margin: 0 2.3em;
|
||||
line-height: 1.8em;
|
||||
text-align: center;
|
||||
}
|
||||
.ui-datepicker .ui-datepicker-title select {
|
||||
font-size: 1em;
|
||||
margin: 1px 0;
|
||||
}
|
||||
.ui-datepicker select.ui-datepicker-month,
|
||||
.ui-datepicker select.ui-datepicker-year {
|
||||
width: 49%;
|
||||
}
|
||||
.ui-datepicker table {
|
||||
width: 100%;
|
||||
font-size: .9em;
|
||||
border-collapse: collapse;
|
||||
margin: 0 0 .4em;
|
||||
}
|
||||
.ui-datepicker th {
|
||||
padding: .7em .3em;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
border: 0;
|
||||
}
|
||||
.ui-datepicker td {
|
||||
border: 0;
|
||||
padding: 1px;
|
||||
}
|
||||
.ui-datepicker td span,
|
||||
.ui-datepicker td a {
|
||||
display: block;
|
||||
padding: .2em;
|
||||
text-align: right;
|
||||
text-decoration: none;
|
||||
}
|
||||
.ui-datepicker .ui-datepicker-buttonpane {
|
||||
background-image: none;
|
||||
margin: .7em 0 0 0;
|
||||
padding: 0 .2em;
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
.ui-datepicker .ui-datepicker-buttonpane button {
|
||||
float: right;
|
||||
margin: .5em .2em .4em;
|
||||
cursor: pointer;
|
||||
padding: .2em .6em .3em .6em;
|
||||
width: auto;
|
||||
overflow: visible;
|
||||
}
|
||||
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* with multiple calendars */
|
||||
.ui-datepicker.ui-datepicker-multi {
|
||||
width: auto;
|
||||
}
|
||||
.ui-datepicker-multi .ui-datepicker-group {
|
||||
float: left;
|
||||
}
|
||||
.ui-datepicker-multi .ui-datepicker-group table {
|
||||
width: 95%;
|
||||
margin: 0 auto .4em;
|
||||
}
|
||||
.ui-datepicker-multi-2 .ui-datepicker-group {
|
||||
width: 50%;
|
||||
}
|
||||
.ui-datepicker-multi-3 .ui-datepicker-group {
|
||||
width: 33.3%;
|
||||
}
|
||||
.ui-datepicker-multi-4 .ui-datepicker-group {
|
||||
width: 25%;
|
||||
}
|
||||
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,
|
||||
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
|
||||
border-left-width: 0;
|
||||
}
|
||||
.ui-datepicker-multi .ui-datepicker-buttonpane {
|
||||
clear: left;
|
||||
}
|
||||
.ui-datepicker-row-break {
|
||||
clear: both;
|
||||
width: 100%;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
/* RTL support */
|
||||
.ui-datepicker-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
.ui-datepicker-rtl .ui-datepicker-prev {
|
||||
right: 2px;
|
||||
left: auto;
|
||||
}
|
||||
.ui-datepicker-rtl .ui-datepicker-next {
|
||||
left: 2px;
|
||||
right: auto;
|
||||
}
|
||||
.ui-datepicker-rtl .ui-datepicker-prev:hover {
|
||||
right: 1px;
|
||||
left: auto;
|
||||
}
|
||||
.ui-datepicker-rtl .ui-datepicker-next:hover {
|
||||
left: 1px;
|
||||
right: auto;
|
||||
}
|
||||
.ui-datepicker-rtl .ui-datepicker-buttonpane {
|
||||
clear: right;
|
||||
}
|
||||
.ui-datepicker-rtl .ui-datepicker-buttonpane button {
|
||||
float: left;
|
||||
}
|
||||
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,
|
||||
.ui-datepicker-rtl .ui-datepicker-group {
|
||||
float: right;
|
||||
}
|
||||
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,
|
||||
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
|
||||
border-right-width: 0;
|
||||
border-left-width: 1px;
|
||||
}
|
||||
2059
templates/admin/default/assets/js/jquery.ui/jquery.ui.datepicker/jquery.ui.datepicker.js
vendored
Normal file
2059
templates/admin/default/assets/js/jquery.ui/jquery.ui.datepicker/jquery.ui.datepicker.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
410
templates/admin/default/assets/js/jquery.ui/jquery.ui.theme.css
vendored
Normal file
410
templates/admin/default/assets/js/jquery.ui/jquery.ui.theme.css
vendored
Normal file
@@ -0,0 +1,410 @@
|
||||
/*!
|
||||
* jQuery UI CSS Framework @VERSION
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright 2013 jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* http://api.jqueryui.com/category/theming/
|
||||
*
|
||||
* To view and modify this theme, visit http://jqueryui.com/themeroller/
|
||||
*/
|
||||
|
||||
|
||||
/* Component containers
|
||||
----------------------------------*/
|
||||
.ui-widget {
|
||||
font-family: Verdana,Arial,sans-serif/*{ffDefault}*/;
|
||||
font-size: 1.1em/*{fsDefault}*/;
|
||||
}
|
||||
.ui-widget .ui-widget {
|
||||
font-size: 1em;
|
||||
}
|
||||
.ui-widget input,
|
||||
.ui-widget select,
|
||||
.ui-widget textarea,
|
||||
.ui-widget button {
|
||||
font-family: Verdana,Arial,sans-serif/*{ffDefault}*/;
|
||||
font-size: 1em;
|
||||
}
|
||||
.ui-widget-content {
|
||||
border: 1px solid #aaaaaa/*{borderColorContent}*/;
|
||||
background: #ffffff/*{bgColorContent}*/ url(images/ui-bg_flat_75_ffffff_40x100.png)/*{bgImgUrlContent}*/ 50%/*{bgContentXPos}*/ 50%/*{bgContentYPos}*/ repeat-x/*{bgContentRepeat}*/;
|
||||
color: #222222/*{fcContent}*/;
|
||||
}
|
||||
.ui-widget-content a {
|
||||
color: #222222/*{fcContent}*/;
|
||||
}
|
||||
.ui-widget-header {
|
||||
border: 1px solid #aaaaaa/*{borderColorHeader}*/;
|
||||
background: #cccccc/*{bgColorHeader}*/ url(images/ui-bg_highlight-soft_75_cccccc_1x100.png)/*{bgImgUrlHeader}*/ 50%/*{bgHeaderXPos}*/ 50%/*{bgHeaderYPos}*/ repeat-x/*{bgHeaderRepeat}*/;
|
||||
color: #222222/*{fcHeader}*/;
|
||||
font-weight: bold;
|
||||
}
|
||||
.ui-widget-header a {
|
||||
color: #222222/*{fcHeader}*/;
|
||||
}
|
||||
|
||||
/* Interaction states
|
||||
----------------------------------*/
|
||||
.ui-state-default,
|
||||
.ui-widget-content .ui-state-default,
|
||||
.ui-widget-header .ui-state-default {
|
||||
border: 1px solid #d3d3d3/*{borderColorDefault}*/;
|
||||
background: #e6e6e6/*{bgColorDefault}*/ url(images/ui-bg_glass_75_e6e6e6_1x400.png)/*{bgImgUrlDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/;
|
||||
font-weight: normal/*{fwDefault}*/;
|
||||
color: #555555/*{fcDefault}*/;
|
||||
}
|
||||
.ui-state-default a,
|
||||
.ui-state-default a:link,
|
||||
.ui-state-default a:visited {
|
||||
color: #555555/*{fcDefault}*/;
|
||||
text-decoration: none;
|
||||
}
|
||||
.ui-state-hover,
|
||||
.ui-widget-content .ui-state-hover,
|
||||
.ui-widget-header .ui-state-hover,
|
||||
.ui-state-focus,
|
||||
.ui-widget-content .ui-state-focus,
|
||||
.ui-widget-header .ui-state-focus {
|
||||
border: 1px solid #999999/*{borderColorHover}*/;
|
||||
background: #dadada/*{bgColorHover}*/ url(images/ui-bg_glass_75_dadada_1x400.png)/*{bgImgUrlHover}*/ 50%/*{bgHoverXPos}*/ 50%/*{bgHoverYPos}*/ repeat-x/*{bgHoverRepeat}*/;
|
||||
font-weight: normal/*{fwDefault}*/;
|
||||
color: #212121/*{fcHover}*/;
|
||||
}
|
||||
.ui-state-hover a,
|
||||
.ui-state-hover a:hover,
|
||||
.ui-state-hover a:link,
|
||||
.ui-state-hover a:visited,
|
||||
.ui-state-focus a,
|
||||
.ui-state-focus a:hover,
|
||||
.ui-state-focus a:link,
|
||||
.ui-state-focus a:visited {
|
||||
color: #212121/*{fcHover}*/;
|
||||
text-decoration: none;
|
||||
}
|
||||
.ui-state-active,
|
||||
.ui-widget-content .ui-state-active,
|
||||
.ui-widget-header .ui-state-active {
|
||||
border: 1px solid #aaaaaa/*{borderColorActive}*/;
|
||||
background: #ffffff/*{bgColorActive}*/ url(images/ui-bg_glass_65_ffffff_1x400.png)/*{bgImgUrlActive}*/ 50%/*{bgActiveXPos}*/ 50%/*{bgActiveYPos}*/ repeat-x/*{bgActiveRepeat}*/;
|
||||
font-weight: normal/*{fwDefault}*/;
|
||||
color: #212121/*{fcActive}*/;
|
||||
}
|
||||
.ui-state-active a,
|
||||
.ui-state-active a:link,
|
||||
.ui-state-active a:visited {
|
||||
color: #212121/*{fcActive}*/;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Interaction Cues
|
||||
----------------------------------*/
|
||||
.ui-state-highlight,
|
||||
.ui-widget-content .ui-state-highlight,
|
||||
.ui-widget-header .ui-state-highlight {
|
||||
border: 1px solid #fcefa1/*{borderColorHighlight}*/;
|
||||
background: #fbf9ee/*{bgColorHighlight}*/ url(images/ui-bg_glass_55_fbf9ee_1x400.png)/*{bgImgUrlHighlight}*/ 50%/*{bgHighlightXPos}*/ 50%/*{bgHighlightYPos}*/ repeat-x/*{bgHighlightRepeat}*/;
|
||||
color: #363636/*{fcHighlight}*/;
|
||||
}
|
||||
.ui-state-highlight a,
|
||||
.ui-widget-content .ui-state-highlight a,
|
||||
.ui-widget-header .ui-state-highlight a {
|
||||
color: #363636/*{fcHighlight}*/;
|
||||
}
|
||||
.ui-state-error,
|
||||
.ui-widget-content .ui-state-error,
|
||||
.ui-widget-header .ui-state-error {
|
||||
border: 1px solid #cd0a0a/*{borderColorError}*/;
|
||||
background: #fef1ec/*{bgColorError}*/ url(images/ui-bg_glass_95_fef1ec_1x400.png)/*{bgImgUrlError}*/ 50%/*{bgErrorXPos}*/ 50%/*{bgErrorYPos}*/ repeat-x/*{bgErrorRepeat}*/;
|
||||
color: #cd0a0a/*{fcError}*/;
|
||||
}
|
||||
.ui-state-error a,
|
||||
.ui-widget-content .ui-state-error a,
|
||||
.ui-widget-header .ui-state-error a {
|
||||
color: #cd0a0a/*{fcError}*/;
|
||||
}
|
||||
.ui-state-error-text,
|
||||
.ui-widget-content .ui-state-error-text,
|
||||
.ui-widget-header .ui-state-error-text {
|
||||
color: #cd0a0a/*{fcError}*/;
|
||||
}
|
||||
.ui-priority-primary,
|
||||
.ui-widget-content .ui-priority-primary,
|
||||
.ui-widget-header .ui-priority-primary {
|
||||
font-weight: bold;
|
||||
}
|
||||
.ui-priority-secondary,
|
||||
.ui-widget-content .ui-priority-secondary,
|
||||
.ui-widget-header .ui-priority-secondary {
|
||||
opacity: .7;
|
||||
filter:Alpha(Opacity=70);
|
||||
font-weight: normal;
|
||||
}
|
||||
.ui-state-disabled,
|
||||
.ui-widget-content .ui-state-disabled,
|
||||
.ui-widget-header .ui-state-disabled {
|
||||
opacity: .35;
|
||||
filter:Alpha(Opacity=35);
|
||||
background-image: none;
|
||||
}
|
||||
.ui-state-disabled .ui-icon {
|
||||
filter:Alpha(Opacity=35); /* For IE8 - See #6059 */
|
||||
}
|
||||
|
||||
/* Icons
|
||||
----------------------------------*/
|
||||
|
||||
/* states and images */
|
||||
.ui-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
.ui-icon,
|
||||
.ui-widget-content .ui-icon {
|
||||
background-image: url(images/ui-icons_222222_256x240.png)/*{iconsContent}*/;
|
||||
}
|
||||
.ui-widget-header .ui-icon {
|
||||
background-image: url(images/ui-icons_222222_256x240.png)/*{iconsHeader}*/;
|
||||
}
|
||||
.ui-state-default .ui-icon {
|
||||
background-image: url(images/ui-icons_888888_256x240.png)/*{iconsDefault}*/;
|
||||
}
|
||||
.ui-state-hover .ui-icon,
|
||||
.ui-state-focus .ui-icon {
|
||||
background-image: url(images/ui-icons_454545_256x240.png)/*{iconsHover}*/;
|
||||
}
|
||||
.ui-state-active .ui-icon {
|
||||
background-image: url(images/ui-icons_454545_256x240.png)/*{iconsActive}*/;
|
||||
}
|
||||
.ui-state-highlight .ui-icon {
|
||||
background-image: url(images/ui-icons_2e83ff_256x240.png)/*{iconsHighlight}*/;
|
||||
}
|
||||
.ui-state-error .ui-icon,
|
||||
.ui-state-error-text .ui-icon {
|
||||
background-image: url(images/ui-icons_cd0a0a_256x240.png)/*{iconsError}*/;
|
||||
}
|
||||
|
||||
/* positioning */
|
||||
.ui-icon-blank { background-position: 16px 16px; }
|
||||
.ui-icon-carat-1-n { background-position: 0 0; }
|
||||
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
||||
.ui-icon-carat-1-e { background-position: -32px 0; }
|
||||
.ui-icon-carat-1-se { background-position: -48px 0; }
|
||||
.ui-icon-carat-1-s { background-position: -64px 0; }
|
||||
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
||||
.ui-icon-carat-1-w { background-position: -96px 0; }
|
||||
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
||||
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
||||
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
||||
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
||||
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
||||
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
||||
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
||||
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
||||
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
||||
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
||||
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
||||
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
||||
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
||||
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
||||
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
||||
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
||||
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
||||
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
||||
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
||||
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
||||
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
||||
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
||||
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
||||
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
||||
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
||||
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
||||
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
||||
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
||||
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
||||
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
||||
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
||||
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
||||
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
||||
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
||||
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
||||
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
||||
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
||||
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
||||
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
||||
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
||||
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
||||
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
||||
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
||||
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
||||
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
||||
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
||||
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
||||
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
||||
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
||||
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
||||
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
||||
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
||||
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
||||
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
||||
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
||||
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
||||
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
||||
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
||||
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
||||
.ui-icon-extlink { background-position: -32px -80px; }
|
||||
.ui-icon-newwin { background-position: -48px -80px; }
|
||||
.ui-icon-refresh { background-position: -64px -80px; }
|
||||
.ui-icon-shuffle { background-position: -80px -80px; }
|
||||
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
||||
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
||||
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
||||
.ui-icon-folder-open { background-position: -16px -96px; }
|
||||
.ui-icon-document { background-position: -32px -96px; }
|
||||
.ui-icon-document-b { background-position: -48px -96px; }
|
||||
.ui-icon-note { background-position: -64px -96px; }
|
||||
.ui-icon-mail-closed { background-position: -80px -96px; }
|
||||
.ui-icon-mail-open { background-position: -96px -96px; }
|
||||
.ui-icon-suitcase { background-position: -112px -96px; }
|
||||
.ui-icon-comment { background-position: -128px -96px; }
|
||||
.ui-icon-person { background-position: -144px -96px; }
|
||||
.ui-icon-print { background-position: -160px -96px; }
|
||||
.ui-icon-trash { background-position: -176px -96px; }
|
||||
.ui-icon-locked { background-position: -192px -96px; }
|
||||
.ui-icon-unlocked { background-position: -208px -96px; }
|
||||
.ui-icon-bookmark { background-position: -224px -96px; }
|
||||
.ui-icon-tag { background-position: -240px -96px; }
|
||||
.ui-icon-home { background-position: 0 -112px; }
|
||||
.ui-icon-flag { background-position: -16px -112px; }
|
||||
.ui-icon-calendar { background-position: -32px -112px; }
|
||||
.ui-icon-cart { background-position: -48px -112px; }
|
||||
.ui-icon-pencil { background-position: -64px -112px; }
|
||||
.ui-icon-clock { background-position: -80px -112px; }
|
||||
.ui-icon-disk { background-position: -96px -112px; }
|
||||
.ui-icon-calculator { background-position: -112px -112px; }
|
||||
.ui-icon-zoomin { background-position: -128px -112px; }
|
||||
.ui-icon-zoomout { background-position: -144px -112px; }
|
||||
.ui-icon-search { background-position: -160px -112px; }
|
||||
.ui-icon-wrench { background-position: -176px -112px; }
|
||||
.ui-icon-gear { background-position: -192px -112px; }
|
||||
.ui-icon-heart { background-position: -208px -112px; }
|
||||
.ui-icon-star { background-position: -224px -112px; }
|
||||
.ui-icon-link { background-position: -240px -112px; }
|
||||
.ui-icon-cancel { background-position: 0 -128px; }
|
||||
.ui-icon-plus { background-position: -16px -128px; }
|
||||
.ui-icon-plusthick { background-position: -32px -128px; }
|
||||
.ui-icon-minus { background-position: -48px -128px; }
|
||||
.ui-icon-minusthick { background-position: -64px -128px; }
|
||||
.ui-icon-close { background-position: -80px -128px; }
|
||||
.ui-icon-closethick { background-position: -96px -128px; }
|
||||
.ui-icon-key { background-position: -112px -128px; }
|
||||
.ui-icon-lightbulb { background-position: -128px -128px; }
|
||||
.ui-icon-scissors { background-position: -144px -128px; }
|
||||
.ui-icon-clipboard { background-position: -160px -128px; }
|
||||
.ui-icon-copy { background-position: -176px -128px; }
|
||||
.ui-icon-contact { background-position: -192px -128px; }
|
||||
.ui-icon-image { background-position: -208px -128px; }
|
||||
.ui-icon-video { background-position: -224px -128px; }
|
||||
.ui-icon-script { background-position: -240px -128px; }
|
||||
.ui-icon-alert { background-position: 0 -144px; }
|
||||
.ui-icon-info { background-position: -16px -144px; }
|
||||
.ui-icon-notice { background-position: -32px -144px; }
|
||||
.ui-icon-help { background-position: -48px -144px; }
|
||||
.ui-icon-check { background-position: -64px -144px; }
|
||||
.ui-icon-bullet { background-position: -80px -144px; }
|
||||
.ui-icon-radio-on { background-position: -96px -144px; }
|
||||
.ui-icon-radio-off { background-position: -112px -144px; }
|
||||
.ui-icon-pin-w { background-position: -128px -144px; }
|
||||
.ui-icon-pin-s { background-position: -144px -144px; }
|
||||
.ui-icon-play { background-position: 0 -160px; }
|
||||
.ui-icon-pause { background-position: -16px -160px; }
|
||||
.ui-icon-seek-next { background-position: -32px -160px; }
|
||||
.ui-icon-seek-prev { background-position: -48px -160px; }
|
||||
.ui-icon-seek-end { background-position: -64px -160px; }
|
||||
.ui-icon-seek-start { background-position: -80px -160px; }
|
||||
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
||||
.ui-icon-seek-first { background-position: -80px -160px; }
|
||||
.ui-icon-stop { background-position: -96px -160px; }
|
||||
.ui-icon-eject { background-position: -112px -160px; }
|
||||
.ui-icon-volume-off { background-position: -128px -160px; }
|
||||
.ui-icon-volume-on { background-position: -144px -160px; }
|
||||
.ui-icon-power { background-position: 0 -176px; }
|
||||
.ui-icon-signal-diag { background-position: -16px -176px; }
|
||||
.ui-icon-signal { background-position: -32px -176px; }
|
||||
.ui-icon-battery-0 { background-position: -48px -176px; }
|
||||
.ui-icon-battery-1 { background-position: -64px -176px; }
|
||||
.ui-icon-battery-2 { background-position: -80px -176px; }
|
||||
.ui-icon-battery-3 { background-position: -96px -176px; }
|
||||
.ui-icon-circle-plus { background-position: 0 -192px; }
|
||||
.ui-icon-circle-minus { background-position: -16px -192px; }
|
||||
.ui-icon-circle-close { background-position: -32px -192px; }
|
||||
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
||||
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
||||
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
||||
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
||||
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
||||
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
||||
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
||||
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
||||
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
||||
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
||||
.ui-icon-circle-check { background-position: -208px -192px; }
|
||||
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
||||
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
||||
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
||||
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
||||
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
||||
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
||||
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
||||
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
||||
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
||||
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
||||
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
||||
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
||||
|
||||
|
||||
/* Misc visuals
|
||||
----------------------------------*/
|
||||
|
||||
/* Corner radius */
|
||||
.ui-corner-all,
|
||||
.ui-corner-top,
|
||||
.ui-corner-left,
|
||||
.ui-corner-tl {
|
||||
border-top-left-radius: 4px/*{cornerRadius}*/;
|
||||
}
|
||||
.ui-corner-all,
|
||||
.ui-corner-top,
|
||||
.ui-corner-right,
|
||||
.ui-corner-tr {
|
||||
border-top-right-radius: 4px/*{cornerRadius}*/;
|
||||
}
|
||||
.ui-corner-all,
|
||||
.ui-corner-bottom,
|
||||
.ui-corner-left,
|
||||
.ui-corner-bl {
|
||||
border-bottom-left-radius: 4px/*{cornerRadius}*/;
|
||||
}
|
||||
.ui-corner-all,
|
||||
.ui-corner-bottom,
|
||||
.ui-corner-right,
|
||||
.ui-corner-br {
|
||||
border-bottom-right-radius: 4px/*{cornerRadius}*/;
|
||||
}
|
||||
|
||||
/* Overlays */
|
||||
.ui-widget-overlay {
|
||||
background: #aaaaaa/*{bgColorOverlay}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlOverlay}*/ 50%/*{bgOverlayXPos}*/ 50%/*{bgOverlayYPos}*/ repeat-x/*{bgOverlayRepeat}*/;
|
||||
opacity: .3/*{opacityOverlay}*/;
|
||||
filter: Alpha(Opacity=30)/*{opacityFilterOverlay}*/;
|
||||
}
|
||||
.ui-widget-shadow {
|
||||
margin: -8px/*{offsetTopShadow}*/ 0 0 -8px/*{offsetLeftShadow}*/;
|
||||
padding: 8px/*{thicknessShadow}*/;
|
||||
background: #aaaaaa/*{bgColorShadow}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlShadow}*/ 50%/*{bgShadowXPos}*/ 50%/*{bgShadowYPos}*/ repeat-x/*{bgShadowRepeat}*/;
|
||||
opacity: .3/*{opacityShadow}*/;
|
||||
filter: Alpha(Opacity=30)/*{opacityFilterShadow}*/;
|
||||
border-radius: 8px/*{cornerRadiusShadow}*/;
|
||||
}
|
||||
Reference in New Issue
Block a user