Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JS :
- var showReference = document.getElementById('show-reference'),
- firstDateInput = document.getElementById('firstDate'),
- table = document.getElementById('table'),
- secDateInput = document.getElementById('secDate'),
- output = [],
- cells = [];
- document.getElementById('save').onclick = function () {
- saveFile(output.join(''));
- }
- function sendRequestToServer(arr, wanted) {
- var request = new XMLHttpRequest();
- request.onreadystatechange = function () {
- if (request.readyState == 4 && request.status == 200) {
- if (wanted == 'documents') {
- wanted = request.responseText;
- wanted = wanted.replace(/,\s+}|,}/g, '}');
- wanted = JSON.parse(wanted);
- console.log(wanted);
- wanted.sort(function (a, b) { return a.date - b.date });
- fillArray(wanted);
- }
- }
- }
- request.open("POST", "http://192.168.1.184:8000/pm", true);
- request.send(JSON.stringify(arr));
- }
- function fillArray(arr) {
- var strArray = [],
- footerArray = [],
- footerFullSum = document.getElementById('footerFullSum');
- output = [];
- for (var i = 0; i < arr.length; i++) {
- var client = arr[i].partner.slice(arr[i].partner.lastIndexOf(':') + 1),
- date = arr[i].date.slice(6, 8) + '/' + arr[i].date.slice(4, 6) + '/' + arr[i].date.slice(0, 4),
- vat = Number(arr[i].vat).toFixed(2) || ' ',
- sumWithoutVat = ((Number(arr[i].sum) - Number(arr[i].vat)).toFixed(2)) || ' ';
- cells[i] = [];
- cells[i][0] = i + 1;
- cells[i][1] = '';
- cells[i][2] = arr[i].ВИДДОК;
- cells[i][3] = arr[i].docNumber;
- cells[i][4] = date;
- cells[i][5] = 'Идент. номер';
- cells[i][6] = client;
- cells[i][7] = arr[i].comment || '';
- cells[i][8] = '';
- cells[i][9] = (arr[i].type == 3) ? sumWithoutVat : '';
- cells[i][10] = (arr[i].type == 1) ? sumWithoutVat : '';
- cells[i][11] = (arr[i].type == 1) ? vat : '';
- cells[i][12] = (arr[i].type == 2) ? sumWithoutVat : '';
- cells[i][13] = (arr[i].type == 2) ? vat : '';
- cells[i][14] = '';
- cells[i][15] = (arr[i].type == 4) ? sumWithoutVat : '';
- footerArray[0] = (arr[i].type == 4) ? (footerArray[0]) ? footerArray[0] + Number(sumWithoutVat) : 0 + Number(sumWithoutVat) : footerArray[0];
- footerArray[1] = (arr[i].type == 1) ? (footerArray[1]) ? footerArray[1] + Number(sumWithoutVat) : 0 + Number(sumWithoutVat) : footerArray[1];
- footerArray[2] = (arr[i].type == 1) ? (footerArray[2]) ? footerArray[2] + Number(vat) : 0 + Number(vat) : footerArray[2];
- footerArray[3] = (arr[i].type == 2) ? (footerArray[3]) ? footerArray[3] + Number(sumWithoutVat) : 0 + Number(sumWithoutVat) : footerArray[3];
- footerArray[4] = (arr[i].type == 2) ? (footerArray[4]) ? footerArray[4] + Number(vat) : 0 + Number(vat) : footerArray[4];
- filloutput(cells[i]);
- strArray.push('<div class="table-row">')
- for (var a = 0; a < cells[i].length; a++) {
- strArray.push('<div class="table-cell">' + cells[i][a] + '</div>');
- }
- strArray.push('</div>');
- }
- for (var f = 3; f < footerFullSum.childElementCount; f++) {
- footerFullSum.children[f].innerHTML = (footerArray[f - 3]) ? (footerArray[f - 3]).toFixed(2) : ' ';
- }
- table.innerHTML = strArray.join('');
- }
- function filloutput(arr) {
- var NumberZDDS = document.getElementById('InZDDS').innerHTML;
- output.push(addingSymbol(NumberZDDS, 15) + addingSymbol(arr[1], 4) + addingSymbol(arr[0], 15) + addingSymbol(arr[2], 2) + addingSymbol(arr[3], 20) + addingSymbol(arr[4], 8) +
- addingSymbol(arr[5], 15) + addingSymbol(arr[6], 50) + addingSymbol(arr[7], 30) + addingSymbol(Number(arr[9]).toFixed(2), 15) + addingSymbol(Number(arr[10]).toFixed(2), 15) +
- addingSymbol(Number(arr[11]).toFixed(2), 15) + addingSymbol(Number(arr[12]).toFixed(2), 15) + addingSymbol(Number(arr[13]).toFixed(2), 15) + addingSymbol(Number(arr[14]).toFixed(2), 15) +
- addingSymbol(Number(arr[15]).toFixed(2), 15) + addingSymbol(arr[8], 2) + '\r\n');
- //(NumberZDDS.length < 15) ? output.push(NumberZDDS + addingSymbol(15 - NumberZDDS).length, ' ') : NumberZDDS; // ИН по ЗДДС
- //output.push(document.getElementById('DanPer').innerHTML); // Данъчен период
- //(String(arr[1]).length < 4) ? output.push(arr[1] + addingSymbol(4 - String(arr[1].length), ' ')) : output.push(arr[1]); // клон
- //(String(arr[0]).length < 15) ? output.push(arr[0] + addingSymbol(15 - String(arr[0]).length, ' ')) : output.push(arr[0]); // пореден номер
- //output.push(arr[2]); // вид на документа
- //(String(arr[3]).length < 20) ? output.push(arr[3] + addingSymbol(20 - String(arr[3].length), ' ')) : output.push(arr[3]); // Номер на документа
- //output.push(arr[4]); // дата на документа
- //(String(arr[5]).length < 15) ? output.push(arr[5] + addingSymbol(15 - String(arr[5].length), ' ')) : output.push(arr[5]); // ИН на лицето
- //(String(arr[6]).length < 50) ? output.push(arr[6] + addingSymbol(50 - String(arr[6].length), ' ')) : output.push(arr[6]); // Име на лицето
- //(String(arr[7]).length < 30) ? output.push(arr[7] + addingSymbol(30 - String(arr[7].length), ' ')) : output.push(arr[7]);// Вид на стоката
- //(String(arr[9]).length < 15 && String(arr[9]) == '') ? output.push(Number(arr[9].toFixed(2)) + addingSymbol(11 - String(arr[9].length), ' ')) : (String(arr[9]).length < 15 && String(arr[9]) != '')? output.push(arr[9] + addingSymbol(12 - String(arr[9].length))) : output.push(arr[9]) // ДО без ПДК
- //(String(arr[10]).length < 15) ? output.push(arr[10] + addingSymbol(15 - String(arr[10].length), ' ')) : output.push(arr[10]); // ДО с ПДК
- //(String(arr[11]).length < 15) ? output.push(arr[11] + addingSymbol(15 - String(arr[11].length), ' ')) : output.push(arr[11]); // ДДЗ с ПДК
- //(String(arr[12]).length < 15) ? output.push(arr[12] + addingSymbol(15 - String(arr[12].length), ' ')) : output.push(arr[12]); // ДО с ЧДК
- //(String(arr[13]).length < 15) ? output.push(arr[13] + addingSymbol(15 - String(arr[13].length), ' ')) : output.push(arr[13]); // ДДЗ с ЧДК
- //(String(arr[14]).length < 15) ? output.push(arr[14] + addingSymbol(15 - String(arr[14].length), ' ')) : output.push(arr[14]); // Годишни корекции по член 73
- //(String(arr[15]).length < 15) ? output.push(arr[15] + addingSymbol(15 - String(arr[15].length), ' ')) : output.push(arr[15]); // ДО тристранни операции
- //(String(arr[8]).length < 2) ? output.push(arr[8] + addingSymbol(2 - String(arr[8].length), ' ')) : output.push(arr[8]);// Доставка по чл. 163а
- //output.push('\r\n');
- }
- showReference.onclick = checkIfDatesInputAreActive;
- function checkIfDatesInputAreActive() {
- var firstDateArr = (firstDateInput.value).split('-'),
- secDateArr = (secDateInput.value).split('-');
- if (firstDateInput.value && secDateInput.value) {
- document.getElementById('DanPer').innerHTML = secDateArr[2] + secDateArr[1];
- //sending request for documents at given
- sendRequestToServer(['documents', 'ЛЕЙДИ СОФИЯ АД', firstDateArr.reverse().join(''), secDateArr.reverse().join(''), '', 'forward', '{"doc":"+ФЕ"}', 'false'], 'documents');
- }
- }
- function saveFile(obj) {
- var filename = 'POKUPKI.txt',
- blob = new Blob([obj], { type: 'text/plain' }),
- a = document.getElementById('a');
- a.href = webkitURL.createObjectURL(blob);
- a.download = filename;
- a.click();
- }
- function addingSymbol(str, num) {
- if (typeof str != 'string') str = String(str);
- var len = num - str.length,
- spaceArray = [str];
- for (var i = 0; i < len; i++) spaceArray.push(' ');
- return spaceArray.join('');
- }
- var datePickerBtns = document.querySelectorAll('.open-date-picker');
- for (var i = 0; i < datePickerBtns.length; i++) {
- datePickerBtns[i].onclick = generateDateForm;
- }
- function generateDateForm(ev) {
- var datePicker = document.getElementById('date-picker');
- //Set the main structure of the date-picker element;
- datePicker.innerHTML = '<div><button>◄</button><span></span><button>►</button></div><span class="hor-line"></span><div id="date-picker-week"><span>Sun</span>' +
- '<span>Mon</span><span>Tue</span><span>Wed</span><span>Thu</span><span>Fri</span><span>Sat</span></div><span class="hor-line"></span><div id="date-picker-days"></div>';
- var monthNames = ["January", "February", "March", "April", "May", "June",
- "July", "August", "September", "October", "November", "December"],
- month = datePicker.querySelectorAll('span')[0],
- startOrEndDate = this.previousSibling,
- currentMonth = Number(startOrEndDate.value.substr(3, 2)) - 1,
- currentYear = Number(startOrEndDate.value.substr(6, 4));
- if (datePicker.style.display == 'inline-block' && datePicker.style.left == Math.floor(this.offsetLeft - datePicker.offsetWidth / 2) + 'px') {
- datePicker.style.display = 'none';
- return;
- }
- datePicker.style.display = 'inline-block';
- datePicker.style.left = Math.floor(this.offsetLeft - (datePicker.offsetWidth / 2)) + 'px';
- datePicker.style.top = (this.offsetTop + 23) + 'px';
- month.innerHTML = monthNames[currentMonth] + ' - ' + currentYear;
- //Change months
- document.querySelectorAll('#date-picker button')[0].onclick = function () {
- if (currentMonth > 0) {
- currentMonth -= 1;
- }
- else {
- currentMonth = 11;
- currentYear -= 1;
- }
- month.innerHTML = monthNames[currentMonth] + ' - ' + currentYear;
- generateDays(currentMonth, currentYear);
- }
- document.querySelectorAll('#date-picker button')[1].onclick = function () {
- if (currentMonth < 11) {
- currentMonth += 1;
- }
- else {
- currentMonth = 0;
- currentYear += 1;
- }
- month.innerHTML = monthNames[currentMonth] + ' - ' + currentYear;
- generateDays(currentMonth, currentYear);
- }
- //Click on day to pick date
- datePicker.onclick = function (ev) {
- var target = (typeof (event) != 'undefined') ? event.srcElement : ev.target;
- if (target.className == 'active-day') {
- var inputMonth = (Number(currentMonth) + 1 > 9) ? Number(currentMonth) + 1 : 0 + '' + (Number(currentMonth) + 1),
- inputDay = (target.innerHTML > 9) ? target.innerHTML : 0 + '' + target.innerHTML;
- startOrEndDate.value = inputDay + '-' + inputMonth + '-' + currentYear;
- datePicker.style.display = 'none';
- }
- }
- //Add days from current month, previous month (if current month starts from week day different from Sunday)
- //and next month (if there is empty space at the end of the last row with days)
- function generateDays(chosenMonth, chosenYear) {
- var activeMonth = new Date(chosenYear, chosenMonth),
- currentMonthDays = getDaysInMonth(chosenMonth, chosenYear).length,
- prevMonthDays = getDaysInMonth(chosenMonth - 1, chosenYear).length,
- wrapper = [],
- nextMonthDays = 0;
- for (var z = 0; z < activeMonth.getDay() ; z++) {
- wrapper.push('<span class="inactive-day">' + ((prevMonthDays + 1) - (activeMonth.getDay() - z)) + '</span>');
- nextMonthDays++;
- }
- for (var i = 1; i <= currentMonthDays; i++) {
- wrapper.push('<span class="active-day">' + i + '</span>');
- nextMonthDays++;
- }
- lastDaysLength = (nextMonthDays <= 35) ? 35 : 42;
- lastDaysLength = ((nextMonthDays + activeMonth.getDay()) == 28) ? 28 : lastDaysLength;
- for (var h = 1; h <= lastDaysLength - nextMonthDays; h++) {
- wrapper.push('<span class="inactive-day">' + h + '</span>');
- }
- document.getElementById('date-picker-days').innerHTML = wrapper.join('');
- }
- generateDays(currentMonth, currentYear);
- //Get the number of days in month
- function getDaysInMonth(month, year) {
- var month = month;
- if (month < 0) {
- month = 11;
- year -= year;
- }
- var date = new Date(year, month, 1),
- days = [];
- while (date.getMonth() === month) {
- days.push(new Date(date));
- date.setDate(date.getDate() + 1);
- }
- return days;
- }
- document.onclick = function (ev) {
- var target = (typeof (event) != 'undefined') ? event.srcElement : ev.target;
- while (target) {
- if (target.id == 'date-picker' || target.className == 'open-date-picker') {
- return;
- };
- target = target.parentNode
- }
- datePicker.style.display = 'none';
- }
- }
- html :
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Покупки</title>
- <link href="styles/purchasesSTYLE.css" rel="stylesheet" />
- <meta charset="UTF-8">
- </head>
- <body>
- <nav>
- <div id="dateHolder">
- <label for="firstDate">От:</label><input type="text" id="firstDate" value="01-06-2014" /><button class="open-date-picker">▼</button>
- <label for="secDate">До:</label><input type="text" id="secDate" value="30-06-2014" /><button class="open-date-picker">▼</button>
- <br />
- <button id="show-reference">Изведи</button>
- <button id="save">Запази</button>
- </div>
- </nav>
- <div id="main-wrapper">
- <div id="nameHeader" class="table-row">
- <div class="table-row">
- <div class="table-cell">ДНЕВНИК НА ПОКУПКИТЕ</div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- </div>
- <div class="table-row">
- <div class="table-cell">ИН по ЗДДС: <span id="InZDDS">ИН ЗДДС</span></div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- </div>
- <div class="table-row">
- <div class="table-cell">Данъчен период: <span id="DanPer"></span></div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- </div>
- </div>
- <div id="tableHeader" class="table-row">
- <div class="table-row">
- <div class="table-cell">
- <div class="table-cell">
- <div class="table-cell">N</div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell">Документ</div>
- <div class="table-cell"> </div>
- <div class="table-cell">Идентиф.</div>
- </div>
- <div class="table-cell">
- <div class="table-cell">по</div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell">номер на контр.</div>
- </div>
- <div class="table-cell">
- <div class="table-cell">ред</div>
- <div class="table-cell">Клон</div>
- <div class="table-cell">Вид</div>
- <div class="table-cell">Номер</div>
- <div class="table-cell">Дата</div>
- <div class="table-cell">доставчик</div>
- </div>
- </div>
- <div class="table-cell">
- <div class="table-cell">
- <div class="table-cell"> </div>
- <div class="table-cell">Вид на</div>
- <div class="table-cell">Доставка по</div>
- <div class="table-cell">ДО и данък на получ.дост. ВОП,</div>
- <div class="table-cell">ДО на пол.дост ВОП,чл.82 ал.2-5 ЗДДС,</div>
- <div class="table-cell">ДДС с право</div>
- <div class="table-cell">ДО на пол.дост ВОП,чл.82 ал.2-5 ЗДДС,</div>
- </div>
- <div class="table-cell">
- <div class="table-cell">Име на контрагента (доставчик)</div>
- <div class="table-cell">стоката</div>
- <div class="table-cell">чл. 163а</div>
- <div class="table-cell">чл.82,ал2-5 ЗДДС и внос без </div>
- <div class="table-cell">внос, ДО на получ. дост. използвани за </div>
- <div class="table-cell">на пълен</div>
- <div class="table-cell">внос, ДО на получ. дост. използвани за</div>
- </div>
- <div class="table-cell">
- <div class="table-cell"> </div>
- <div class="table-cell">услугата</div>
- <div class="table-cell">от ЗДДС</div>
- <div class="table-cell">право на дан.кред. или без данък</div>
- <div class="table-cell">дост. по чл.69 ал 2 ЗДДС с право на ПДК</div>
- <div class="table-cell">данъчен кредит</div>
- <div class="table-cell">дост.по чл.69 ал.2 ЗДДС с право на ЧДК</div>
- </div>
- </div>
- <div class="table-cell">
- <div class="table-cell">
- <div class="table-cell">ДДС с право на</div>
- <div class="table-cell">Годишна корекция по</div>
- <div class="table-cell">ДО при придобиване</div>
- </div>
- <div class="table-cell">
- <div class="table-cell">частичен данъчен </div>
- <div class="table-cell">чл. 73, ал8 ЗДДС</div>
- <div class="table-cell">на стоки от тристр.</div>
- </div>
- <div class="table-cell">
- <div class="table-cell">кредит</div>
- <div class="table-cell"> </div>
- <div class="table-cell">операция</div>
- </div>
- </div>
- </div>
- </div>
- <div id="tableHeadersFooter" class="table-row">
- <div class="table-cell"> </div>
- <div class="table-cell">
- <div class="table-cell">Общо: <span></span></div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- </div>
- <div class="table-cell">
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- </div>
- </div>
- <div id="table" class="table-row">
- <div class="table-row">
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- </div>
- </div>
- <div id="footer" class="table-row">
- <div class="table-row">
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell footerPaintBorder">Общо без вид 11,12,13:</div>
- <div class="table-cell footerPaintBorder"> </div>
- <div class="table-cell footerPaintBorder"> </div>
- <div class="table-cell footerPaintBorder"> </div>
- <div class="table-cell footerPaintBorder"> </div>
- <div class="table-cell footerPaintBorder"> </div>
- <div class="table-cell footerPaintBorder"> </div>
- <div class="table-cell footerPaintBorder"> </div>
- </div>
- <div class="table-row" id="footerFullSum">
- <div class="table-cell"> </div>
- <div class="table-cell"> </div>
- <div class="table-cell footerPaintBorder">Общо:</div>
- <div class="table-cell footerPaintBorder"> </div>
- <div class="table-cell footerPaintBorder"> </div>
- <div class="table-cell footerPaintBorder"> </div>
- <div class="table-cell footerPaintBorder"> </div>
- <div class="table-cell footerPaintBorder"> </div>
- <div class="table-cell footerPaintBorder"> </div>
- <div class="table-cell footerPaintBorder"> </div>
- </div>
- <div class="table-row">
- <div class="table-cell">
- <div class="table-cell">Длъжност:</div>
- <div class="table-cell">Управител:</div>
- </div>
- <div class="table-cell">Подпис и печат:</div>
- </div>
- </div>
- </div>
- <div id="date-picker" style="display:none;">
- </div>
- <a id="a"></a>
- <script src="scripts/purchasesJS.js"></script>
- </body>
- </html>
- css :
- html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
- margin: 0;
- padding: 0;
- border: 0;
- font-size: 100%;
- font: inherit;
- vertical-align: baseline;
- font-family: Calibri;
- }
- body {
- -moz-user-select: -moz-none;
- -khtml-user-select: none;
- -webkit-user-select: none;
- -ms-user-select: none;
- user-select: none;
- }
- body * {
- box-sizing: border-box;
- }
- div, nav {
- display: inline-block;
- float: left;
- }
- #main-wrapper {
- width: 1750px;
- border: 1px solid #999999;
- margin-top: 10px;
- margin-left: 10px;
- border-right: none;
- font-size: 12px;
- }
- .table-row {
- width: 100%;
- }
- .table-cell {
- border-right: 1px solid #999999;
- }
- #nameHeader .table-cell:nth-child(3), #tableHeader .table-cell:nth-child(3), #nameHeader .table-cell:first-child, #tableHeader .table-cell:first-child {
- width: 20%;
- }
- #nameHeader .table-cell:nth-child(2), #tableHeader .table-cell:nth-child(2) {
- width: 60%;
- }
- #nameHeader .table-row:nth-child(2), #nameHeader .table-row:nth-child(3), #tableHeader {
- text-align: center;
- }
- #nameHeader > .table-row:first-child {
- font-size: 20px;
- font-weight: bold;
- }
- #tableHeader .table-row .table-cell .table-cell {
- width: 100%;
- border-right: none;
- }
- #tableHeader .table-cell .table-cell .table-cell {
- height: 15px;
- }
- #tableHeader > .table-row > .table-cell:first-child > .table-cell:first-child > .table-cell:nth-child(4) {
- text-align: left;
- }
- #tableHeader .table-row .table-cell:first-child .table-cell .table-cell:first-child, #tableHeader .table-row .table-cell:first-child .table-cell .table-cell:nth-child(2) {
- width: 9%;
- }
- #tableHeader .table-row .table-cell:first-child .table-cell .table-cell:nth-child(3) {
- width: 8%;
- }
- #tableHeader .table-row .table-cell:first-child .table-cell .table-cell:nth-child(4) {
- width: 24%;
- }
- #tableHeader .table-row .table-cell:first-child .table-cell .table-cell:nth-child(5) {
- width: 20%;
- }
- #tableHeader .table-row .table-cell:first-child .table-cell .table-cell:nth-child(6) {
- width: 30%;
- }
- #tableHeader .table-row .table-cell:nth-child(2) .table-cell .table-cell:first-child {
- width: 18%;
- }
- #tableHeader .table-row .table-cell:nth-child(2) .table-cell .table-cell:nth-child(4),
- #tableHeader .table-row .table-cell:nth-child(2) .table-cell .table-cell:nth-child(5), #tableHeader .table-row .table-cell:nth-child(2) .table-cell .table-cell:nth-child(7),
- #tableHeadersFooter .table-cell:nth-child(2) .table-cell:nth-child(2), #tableHeadersFooter .table-cell:nth-child(2) .table-cell:nth-child(3),
- #tableHeadersFooter .table-cell:nth-child(2) .table-cell:nth-child(5) {
- width: 19.75%;
- }
- #tableHeader .table-row .table-cell:nth-child(2) .table-cell .table-cell:nth-child(6), #tableHeadersFooter .table-cell:nth-child(2) .table-cell:nth-child(4) {
- width: 8.75%;
- }
- #tableHeader .table-row .table-cell:nth-child(2) .table-cell .table-cell:nth-child(2) {
- width: 7%;
- overflow: hidden;
- height: 14px;
- }
- #tableHeader .table-row .table-cell:nth-child(2) .table-cell .table-cell:nth-child(3) {
- width: 7%;
- }
- #tableHeader .table-row .table-cell:nth-child(3) .table-cell .table-cell:first-child, #tableHeadersFooter .table-cell:nth-child(3) .table-cell:first-child {
- width: 30%;
- }
- #tableHeader .table-row .table-cell:nth-child(3) .table-cell .table-cell:nth-child(2), #tableHeader .table-row .table-cell:nth-child(3) .table-cell .table-cell:nth-child(3),
- #tableHeadersFooter .table-cell:nth-child(3) .table-cell:nth-child(2), #tableHeadersFooter .table-cell:nth-child(3) .table-cell:nth-child(3) {
- width: 35%;
- }
- #tableHeadersFooter .table-cell:first-child, #tableHeadersFooter .table-cell:nth-child(3) {
- width: 20%;
- border-right: none;
- }
- #tableHeadersFooter .table-cell:nth-child(2){
- width: 60%;
- }
- #tableHeadersFooter .table-cell:nth-child(2) .table-cell:first-child {
- width: 32%;
- }
- #tableHeadersFooter .table-cell, #tableHeader .table-row > .table-cell:first-child .table-cell:nth-child(3) {
- border-right: none;
- }
- #tableHeadersFooter .table-cell .table-cell, #tableHeadersFooter .table-cell:first-child, #tableHeader .table-row .table-cell .table-cell .table-cell,
- #tableHeader .table-row .table-cell:nth-child(3) .table-cell:first-child .table-cell:last-child {
- border-right: 1px solid #999999;
- }
- #tableHeader .table-row .table-cell:first-child .table-cell:last-child .table-cell:nth-child(4), #tableHeader .table-row .table-cell:first-child .table-cell:last-child .table-cell:nth-child(3),
- #tableHeader .table-row .table-cell:first-child .table-cell:last-child .table-cell:nth-child(5) {
- border-top: 1px solid #999999;
- }
- #tableHeadersFooter {
- background: #e5e5ff;
- }
- #tableHeadersFooter > .table-cell:nth-child(2) > .table-cell {
- text-align: right;
- }
- #tableHeadersFooter > .table-cell:nth-child(2) > .table-cell:first-child {
- padding-right: 40px;
- }
- #tableHeader, #nameHeader, #tableHeadersFooter, #table .table-row {
- border-bottom: 1px solid #999999;
- }
- .footerPaintBorder {
- border-bottom: 1px solid #999999;
- background: #e5e5ff;
- }
- #table .table-row .table-cell:first-child {
- width:1.85%;
- }
- #table .table-row .table-cell:nth-child(2) {
- width:1.8%;
- }
- #table .table-row .table-cell:nth-child(3) {
- width:1.5%;
- }
- #table .table-row .table-cell:nth-child(4) {
- width:4.85%;
- }
- #table .table-row .table-cell:nth-child(5) {
- width:4%;
- }
- #table .table-row .table-cell:nth-child(6), #table .table-row .table-cell:nth-child(14), #footer .table-row > .table-cell:nth-child(8) {
- width:6%;
- }
- #table .table-row .table-cell:nth-child(7), #footer .table-row > .table-cell:nth-child(2) {
- width:10.8%;
- }
- #table .table-row .table-cell:nth-child(8), #table .table-row .table-cell:nth-child(9) {
- width:4.2%;
- }
- #table .table-row .table-cell:nth-child(10), #table .table-row .table-cell:nth-child(11), #table .table-row .table-cell:nth-child(13), #footer .table-row > .table-cell:nth-child(4),
- #footer .table-row > .table-cell:nth-child(5), #footer .table-row > .table-cell:nth-child(7) {
- width:11.85%;
- }
- #table .table-row .table-cell:nth-child(12), #footer .table-row > .table-cell:nth-child(6) {
- width:5.25%;
- }
- #table .table-row .table-cell:nth-child(15), #footer .table-row > .table-cell:last-child{
- width:7.05%;
- }
- #table .table-row .table-cell:nth-child(16), #footer .table-row > .table-cell:nth-child(9) {
- width:6.95%;
- }
- #table .table-row .table-cell {
- height:14px;
- }
- #table .table-row .table-cell:nth-child(8) {
- overflow:hidden;
- }
- #footer .table-row .table-cell:first-child {
- width:20%;
- }
- #footer .table-row .table-cell:nth-child(3) {
- width:8.4%;
- }
- #footer .table-row:last-child > .table-cell:first-child .table-cell:first-child, #footer .table-row:last-child > .table-cell:first-child .table-cell:nth-child(2) {
- width:50%;
- border-right:none;
- padding-left:5px;
- }
- #footer .table-row:last-child .table-cell {
- line-height:40px;
- height:40px;
- }
- #footer .table-row:last-child > .table-cell:nth-child(2) {
- width:80%;
- padding-left: 10.85%;
- }
- #tableHeader > .table-row > .table-cell {
- border-right:none;
- }
- #a {
- display:none;
- }
- /*****************************************************************************************/
- #dateHolder {
- margin-top: 30px;
- margin-left: 30px;
- border: 1px solid #999999;
- background: #e9e9e9;
- }
- #dateHolder * {
- margin: 10px;
- }
- #dateHolder label {
- margin-right: 0;
- }
- #firstDate, #secDate {
- border: 1px solid lightblue;
- width: 102px;
- padding: 4px;
- margin: 10px 5px;
- }
- #start-date {
- width: 100px;
- }
- #date-picker {
- position: absolute;
- width: 215px;
- padding: 5px;
- border: 1px solid #999999;
- background: rgb(252,252,252); /* Old browsers */
- background: -moz-radial-gradient(center, ellipse cover, rgba(252,252,252,1) 41%, rgba(221,221,221,1) 100%); /* FF3.6+ */
- background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(41%,rgba(252,252,252,1)), color-stop(100%,rgba(221,221,221,1))); /* Chrome,Safari4+ */
- background: -webkit-radial-gradient(center, ellipse cover, rgba(252,252,252,1) 41%,rgba(221,221,221,1) 100%); /* Chrome10+,Safari5.1+ */
- background: -o-radial-gradient(center, ellipse cover, rgba(252,252,252,1) 41%,rgba(221,221,221,1) 100%); /* Opera 12+ */
- background: -ms-radial-gradient(center, ellipse cover, rgba(252,252,252,1) 41%,rgba(221,221,221,1) 100%); /* IE10+ */
- background: radial-gradient(ellipse at center, rgba(252,252,252,1) 41%,rgba(221,221,221,1) 100%); /* W3C */
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#dddddd',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
- border-bottom-left-radius: 12px;
- border-bottom-right-radius: 12px;
- overflow: hidden;
- }
- #date-picker div:first-child button:first-child, #date-picker div:first-child button:last-child {
- cursor: pointer;
- margin: -1px;
- height: 23px;
- }
- #date-picker div:first-child button {
- float: right;
- }
- #date-picker div:first-child button:first-child {
- float: left;
- }
- #main-wrapper #date-picker div:first-child {
- text-align: center;
- width: 100%;
- }
- #main-wrapper #date-picker div:first-child span {
- width: 55%;
- border-bottom: 1px solid #999999;
- padding-bottom: 1px;
- }
- #date-picker > div {
- padding: 5px 0px;
- }
- #date-picker #date-picker-week {
- border-bottom: 1px solid #999999;
- }
- #date-picker > div span {
- width: 29px;
- display: inline-block;
- text-align: center;
- font-size: 14px;
- }
- #date-picker #date-picker-days span {
- display: inline-block;
- width: 29px;
- padding: 5px 0px;
- text-align: center;
- }
- #date-picker #date-picker-days .active-day:hover {
- background-color: #bdedff;
- cursor: pointer;
- }
- .inactive-day {
- color: #aaaaaa;
- }
- #dateHolder .open-date-picker {
- width: 23px;
- height: 25px;
- margin: 0;
- padding: 0;
- margin-left: -28px;
- background: transparent;
- border: 1px solid lightblue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement