Created
March 2, 2018 00:10
-
-
Save andronex/a3ca98b6d74e0f52f1056edc29bf91f8 to your computer and use it in GitHub Desktop.
Квитанции, счета на оплату в HTML формате. Легко и непринуждённо конвертируются в PDF.
This file contains hidden or 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
<html lang="ru"> | |
<head> | |
<meta name="robots" content="noindex"> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<title>[[*pagetitle]]</title> | |
<style type="text/css"> | |
*{font-family: DejaVu Sans} | |
[[+toPDF:is=`1`:then=`*{font-family: DejaVu Sans;font-size:13px}small{font-size:8px}body { | |
line-height: 1;}`]] | |
body{width:100%;margin:0;padding-top:10px;} | |
@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}} | |
@media print { | |
.header-left-top, .a-right-bottom, .time-right-bottom, button, .margin-control { | |
display: none; | |
}} | |
</style> | |
</head> | |
<body> | |
<table bordercolorlight="#000000" bordercolordark="#FFFFFF" align="center" border="1" cellpadding="3" cellspacing="0" style="width:99%"> | |
<tr> | |
<td align="left" valign="middle" style="width:37.5%"> <b>ИЗВЕЩЕНИЕ</b> <br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
Кассир<br> | |
</td> | |
<td align="right" valign="middle" style="width:62.5%"> | |
<table bordercolorlight="#000000" bordercolordark="#FFFFFF" border="1" cellpadding="3" cellspacing="0" style="width:100%"> | |
<tr> | |
<td colspan="3">Получатель платежа: [[++company_name]], ИНН/КПП: [[++company_inn]] / [[++company_kpp]], тел.[[#4.phone1]]<br> | |
Р/c: [[++company_rs]], [[++company_bank]]<br> | |
Корр.сч.: [[++company_ks]],<br> | |
БИК: [[++company_bik]]</td> | |
</tr> | |
<tr> | |
<td colspan="3"><br> | |
<div> | |
<p>Внесение аванса в счёт оплаты информ. услуг по выставленному счёту №[[+number]] от [[+date]]</p> | |
</div> | |
<hr color="#000000" size="1"> | |
<div style="font-family: sans-serif; font-size: 8pt;" align="center"><small>(наименование платежа)<br> | |
</small></div> | |
</td> | |
</tr> | |
<tr> | |
<td colspan="3" height="35"> Дата:________ Сумма платежа:_[[+amount_rub]]_ руб. [[+amount_kop:default=`00`]] коп. </td> | |
</tr> | |
<tr> | |
<td rowspan="2" colspan="3" align="left" valign="center"><br> | |
Плательщик: [[+fio]] , подпись:<br><br> | |
Телефон плательщика: [[+phone]]</td> | |
</tr> | |
</table> | |
</td> | |
</tr> | |
<tr> | |
<td align="left" valign="middle" style="width:37.5%"> <b>КВИТАНЦИЯ</b> <br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
Кассир<br> | |
</td> | |
<td align="right" valign="middle" style="width:62.5%"> | |
<table bordercolorlight="#000000" bordercolordark="#FFFFFF" border="1" cellpadding="3" cellspacing="0" style="width:100%"> | |
<tr> | |
<td colspan="3">Получатель платежа: [[++company_name]], ИНН/КПП: [[++company_inn]] / [[++company_kpp]], тел.[[#4.phone1]]<br> | |
Р/c: [[++company_rs]], [[++company_bank]]<br> | |
Корр.сч.: [[++company_ks]],<br> | |
БИК: [[++company_bik]]</td> | |
</tr> | |
<tr> | |
<td colspan="3"><br> | |
<div> | |
<p>Внесение аванса в счёт оплаты информ. услуг по выставленному счёту №[[+number]] от [[+date]]</p> | |
</div> | |
<hr color="#000000" size="1"> | |
<div style="font-family: sans-serif; font-size: 8pt;" align="center"><small>(наименование платежа)<br> | |
</small></div> | |
</td> | |
</tr> | |
<tr> | |
<td colspan="3" height="35"> Дата:________ Сумма платежа:_[[+amount_rub]]_ руб. [[+amount_kop:default=`00`]] коп. </td> | |
</tr> | |
<tr> | |
<td rowspan="2" colspan="3" align="left" valign="center"><br> | |
Плательщик: [[+fio]] , подпись:<br><br> | |
Телефон плательщика: [[+phone]]</td> | |
</tr> | |
</table> | |
</td> | |
</tr> | |
</table> | |
[[+toPDF:ne=`1`:then=` | |
<div style="text-align:center;width:100%"> | |
<button style="text-align:center;margin:10px auto;font-size:20px;color:yellow;background-color:#000" onclick="window.print();return false;">Распечатать</button> | |
</div> | |
`]] | |
[[- | |
<table bordercolorlight="#000000" bordercolordark="#FFFFFF" align="center" border="1" cellpadding="3" cellspacing="0" width="640"> | |
<tbody> | |
<tr> | |
<td align="right" valign="top" width="400"> | |
<table bordercolorlight="#000000" bordercolordark="#FFFFFF" border="0" cellpadding="3" cellspacing="0" width="410"> | |
<tbody> | |
<tr> | |
<td colspan="3">Информация о плательщике:<br> | |
<br> | |
<hr color="#000000" size="1"> | |
<div style="font-family: sans-serif; font-size: 8pt;" align="center"><small><small>(Ф.И.О., адрес плательщика)</small></small></div> | |
<br> | |
<hr color="#000000" size="1"> | |
<br> | |
<hr color="#000000" size="1"> | |
<br> | |
<br> | |
N | |
<hr color="#000000" size="1"> | |
<div style="font-family: sans-serif; font-size: 8pt;" align="center"><small><small>(номер лицевого счета (код) плательщика)</small></small></div> | |
<br> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
</td> | |
<td align="left" valign="middle" width="240"><br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
</td> | |
</tr> | |
<tr> | |
<td align="right" valign="top" width="400"> | |
<table bordercolorlight="#000000" bordercolordark="#FFFFFF" border="0" cellpadding="3" cellspacing="0" width="410"> | |
<tbody> | |
<tr> | |
<td colspan="3">Информация о плательщике:<br> | |
<br> | |
<hr color="#000000" size="1"> | |
<div style="font-family: sans-serif; font-size: 8pt;" align="center"><small><small>(Ф.И.О., адрес плательщика)</small></small></div> | |
<br> | |
<hr color="#000000" size="1"> | |
<br> | |
<hr color="#000000" size="1"> | |
<br> | |
<br> | |
N | |
<hr color="#000000" size="1"> | |
<div style="font-family: sans-serif; font-size: 8pt;" align="center"><small><small>(номер лицевого счета (код) плательщика)</small></small></div> | |
<br> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
</td> | |
<td align="left" valign="middle" width="240"><br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
<br> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
]] | |
</body> | |
</html> |
This file contains hidden or 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="ru"> | |
<head> | |
<title>[[*pagetitle]]</title> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<style type="text/css"> | |
body { | |
margin: 0 | |
} | |
article, | |
aside, | |
details, | |
figcaption, | |
figure, | |
footer, | |
header, | |
hgroup, | |
main, | |
nav, | |
section, | |
summary { | |
display: block | |
} | |
audio, | |
canvas, | |
progress, | |
video { | |
display: inline-block; | |
vertical-align: baseline | |
} | |
audio:not([controls]) { | |
display: none; | |
height: 0 | |
} | |
[hidden], | |
template { | |
display: none | |
} | |
a { | |
background: transparent | |
} | |
a:active, | |
a:hover { | |
outline: 0 | |
} | |
abbr[title] { | |
border-bottom: 1px dotted | |
} | |
b, | |
strong { | |
font-weight: bold | |
} | |
dfn { | |
font-style: italic | |
} | |
h1 { | |
font-size: 2em; | |
margin: 0.67em 0 | |
} | |
mark { | |
background: #ff0; | |
color: #000 | |
} | |
small { | |
font-size: 80% | |
} | |
sub, | |
sup { | |
font-size: 75%; | |
line-height: 0; | |
position: relative; | |
vertical-align: baseline | |
} | |
sup { | |
top: -0.5em | |
} | |
sub { | |
bottom: -0.25em | |
} | |
img { | |
border: 0 | |
} | |
svg:not(:root) { | |
overflow: hidden | |
} | |
figure { | |
margin: 1em 40px | |
} | |
hr { | |
box-sizing: content-box; | |
height: 0 | |
} | |
pre { | |
overflow: auto | |
} | |
button, | |
input, | |
optgroup, | |
select, | |
textarea { | |
color: inherit; | |
font: inherit; | |
margin: 0 | |
} | |
button { | |
overflow: visible | |
} | |
button, | |
select { | |
text-transform: none | |
} | |
button, | |
html input[type="button"], | |
input[type="reset"], | |
input[type="submit"] { | |
-webkit-appearance: button; | |
cursor: pointer | |
} | |
button[disabled], | |
html input[disabled] { | |
cursor: default | |
} | |
button::-moz-focus-inner, | |
input::-moz-focus-inner { | |
border: 0; | |
padding: 0 | |
} | |
input { | |
line-height: normal | |
} | |
input[type="checkbox"], | |
input[type="radio"] { | |
box-sizing: border-box; | |
padding: 0 | |
} | |
input[type="number"]::-webkit-inner-spin-button, | |
input[type="number"]::-webkit-outer-spin-button { | |
height: auto | |
} | |
input[type="search"] { | |
-webkit-appearance: textfield; | |
box-sizing: content-box | |
} | |
input[type="search"]::-webkit-search-cancel-button, | |
input[type="search"]::-webkit-search-decoration { | |
-webkit-appearance: none | |
} | |
fieldset { | |
border: 1px solid #c0c0c0; | |
margin: 0 2px; | |
padding: 0.35em 0.625em 0.75em | |
} | |
legend { | |
border: 0; | |
padding: 0 | |
} | |
textarea { | |
overflow: auto | |
} | |
optgroup { | |
font-weight: bold | |
} | |
table { | |
border-collapse: collapse; | |
border-spacing: 0 | |
} | |
td, | |
th { | |
padding: 0 | |
} | |
* { | |
box-sizing: border-box | |
} | |
*:before, | |
*:after { | |
box-sizing: border-box | |
} | |
*:focus { | |
outline: none !important | |
} | |
html { | |
font-size: 10px; | |
-webkit-tap-highlight-color: transparent | |
} | |
input, | |
button, | |
select, | |
a { | |
color: #ed5c15; | |
text-decoration: underline; | |
transition: all, 0.15s | |
} | |
a:hover, | |
a:focus { | |
color: #a9400d; | |
text-decoration: none | |
} | |
a:focus { | |
outline: thin dotted; | |
outline: 5px auto -webkit-focus-ring-color; | |
outline-offset: -2px | |
} | |
a.back { | |
padding-left: 10px; | |
border-left: 1px solid #b5b5b5; | |
line-height: 38px | |
} | |
figure { | |
margin: 0 | |
} | |
img { | |
vertical-align: middle | |
} | |
.img-responsive { | |
display: block; | |
width: 100% \9; | |
max-width: 100%; | |
height: auto | |
} | |
.img-rounded { | |
border-radius: 6px | |
} | |
.img-circle { | |
border-radius: 50% | |
} | |
hr { | |
margin-top: 30px; | |
margin-bottom: 30px; | |
border: 0; | |
border-top: 1px dashed #b5b5b5 | |
} | |
hr.well { | |
height: 2px; | |
background-color: #f0f0f0; | |
border-radius: 4px; | |
border: none; | |
border-top: 1px solid #e3e3e3 | |
} | |
h1 small, | |
h1 .small, | |
h2 small, | |
h2 .small, | |
h3 small, | |
h3 .small, | |
h4 small, | |
h4 .small, | |
h5 small, | |
h5 .small, | |
h6 small, | |
h6 .small, | |
.h1 small, | |
.h1 .small, | |
.h2 small, | |
.h2 .small, | |
.h3 small, | |
.h3 .small, | |
.h4 small, | |
.h4 .small, | |
.h5 small, | |
.h5 .small, | |
.h6 small, | |
.h6 .small { | |
font-weight: normal; | |
line-height: 1; | |
color: #888; | |
display: block; | |
margin-top: 5px | |
} | |
h1 a, | |
h2 a, | |
h3 a, | |
h4 a, | |
h5 a, | |
h6 a, | |
.h1 a, | |
.h2 a, | |
.h3 a, | |
.h4 a, | |
.h5 a, | |
.h6 a { | |
color: #ed5c15 | |
} | |
h1, | |
.h1 { | |
font-weight: 700 | |
} | |
h1 small, | |
h1 .small, | |
.h1 small, | |
.h1 .small, | |
h2 small, | |
h2 .small, | |
.h2 small, | |
.h2 .small, | |
h3 small, | |
h3 .small, | |
.h3 small, | |
.h3 .small { | |
font-size: 65% | |
} | |
h4, | |
.h4, | |
h5, | |
.h5, | |
h6, | |
.h6 { | |
font-weight: 500 | |
} | |
h4 small, | |
h4 .small, | |
.h4 small, | |
.h4 .small, | |
h5 small, | |
h5 .small, | |
.h5 small, | |
.h5 .small, | |
h6 small, | |
h6 .small, | |
.h6 small, | |
.h6 .small { | |
font-size: 75% | |
} | |
h1, | |
.h1 { | |
font-size: 26px | |
} | |
h2, | |
.h2 { | |
font-size: 22px | |
} | |
h3, | |
.h3 { | |
font-size: 18px | |
} | |
h4, | |
.h4 { | |
font-size: 16px | |
} | |
h5, | |
.h5 { | |
font-size: 14px | |
} | |
h6, | |
.h6 { | |
font-size: 12px | |
} | |
.page-title { | |
font-size: 24px; | |
font-weight: 600; | |
margin: 0 0 5px | |
} | |
p { | |
margin: 0 0 10px | |
} | |
.lead { | |
margin-bottom: 20px; | |
font-size: 16px; | |
font-weight: 300; | |
line-height: 1.4 | |
} | |
@media (min-width: 768px) { | |
.lead { | |
font-size: 21px | |
} | |
} | |
.nowrap { | |
white-space: nowrap | |
} | |
small, | |
.small { | |
font-size: 85% | |
} | |
.italic { | |
font-style: italic | |
} | |
cite { | |
font-style: normal | |
} | |
mark, | |
.mark { | |
background-color: #fcf8e3; | |
padding: .2em | |
} | |
.text-left { | |
text-align: left | |
} | |
.text-right { | |
text-align: right | |
} | |
.text-center { | |
text-align: center | |
} | |
.text-justify { | |
text-align: justify | |
} | |
.text-nowrap { | |
white-space: nowrap | |
} | |
.text-lowercase { | |
text-transform: lowercase | |
} | |
.text-uppercase { | |
text-transform: uppercase | |
} | |
.text-capitalize { | |
text-transform: capitalize | |
} | |
.text-muted { | |
color: #888 | |
} | |
.text-red { | |
color: #ed5c15 | |
} | |
a.text-red:hover { | |
color: #c0490f | |
} | |
.text-white { | |
color: #fff | |
} | |
a.text-white:hover { | |
color: #e6e6e6 | |
} | |
.text-black { | |
color: #000 | |
} | |
a.text-black:hover { | |
color: #000 | |
} | |
.bg-gray { | |
color: #fff | |
} | |
.bg-gray { | |
background-color: #b5b5b5 | |
} | |
a.bg-gray:hover { | |
background-color: #9c9c9c | |
} | |
.bold { | |
font-weight: 800; | |
font-style: normal | |
} | |
.fz13 { | |
font-size: 13px | |
} | |
.fz15 { | |
font-size: 15px | |
} | |
.fz16 { | |
font-size: 16px | |
} | |
.page-header { | |
padding-bottom: 9px; | |
margin: 40px 0 20px; | |
border-bottom: 1px solid #eee | |
} | |
ul, | |
ol { | |
margin-top: 0; | |
margin-bottom: 10px | |
} | |
ul ul, | |
ul ol, | |
ol ul, | |
ol ol { | |
margin-bottom: 0 | |
} | |
.list-unstyled, | |
.list-inline, | |
.list-list, | |
.list-ok { | |
padding-left: 0; | |
list-style: none | |
} | |
.list-inline { | |
margin-left: -5px | |
} | |
.list-inline>li { | |
display: inline-block; | |
padding-left: 5px; | |
padding-right: 5px | |
} | |
.list-list>li { | |
position: relative; | |
padding-left: 20px; | |
margin-bottom: 5px | |
} | |
.list-list>li:last-child { | |
margin-bottom: 0 | |
} | |
.list-list>li:before { | |
content: '—'; | |
display: block; | |
position: absolute; | |
top: 0; | |
left: 0 | |
} | |
.list-ok>li { | |
position: relative; | |
padding-left: 20px; | |
margin-bottom: 5px; | |
display: block | |
} | |
.list-ok>li:last-child { | |
margin-bottom: 0 | |
} | |
.list-ok>li:before { | |
content: ''; | |
display: block; | |
position: absolute; | |
top: 6px; | |
left: 0; | |
width: 9px; | |
height: 7px; | |
background-image: url("../img/sprite.png"); | |
background-repeat: no-repeat; | |
background-position: -196px 0 | |
} | |
.list-orange { | |
position: relative; | |
padding-left: 35px; | |
margin-bottom: 8px; | |
display: block; | |
font-weight: 900 | |
} | |
.list-orange:before { | |
content: ''; | |
display: block; | |
position: absolute; | |
top: 7px; | |
left: 0; | |
width: 24px; | |
height: 6px; | |
background-image: url("../img/sprite.png"); | |
background-repeat: no-repeat; | |
background-position: -169px -50px | |
} | |
dl { | |
margin-top: 0; | |
margin-bottom: 20px | |
} | |
dt, | |
dd { | |
line-height: 1.42857 | |
} | |
dt { | |
font-weight: bold | |
} | |
dd { | |
margin-left: 0 | |
} | |
.dl-horizontal dd:before, | |
.dl-horizontal dd:after { | |
content: " "; | |
display: table | |
} | |
.dl-horizontal dd:after { | |
clear: both | |
} | |
@media (min-width: 768px) { | |
.dl-horizontal dt { | |
float: left; | |
width: 160px; | |
clear: left; | |
text-align: right; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap | |
} | |
.dl-horizontal dd { | |
margin-left: 180px | |
} | |
} | |
abbr[title], | |
abbr[data-original-title] { | |
cursor: help; | |
border-bottom: 1px dotted #b5b5b5 | |
} | |
.initialism { | |
font-size: 90%; | |
text-transform: uppercase | |
} | |
blockquote { | |
padding: 10px 20px; | |
margin: 0 0 20px; | |
font-size: 17.5px; | |
border-left: 5px solid #eee | |
} | |
blockquote p:last-child, | |
blockquote ul:last-child, | |
blockquote ol:last-child { | |
margin-bottom: 0 | |
} | |
blockquote footer, | |
blockquote small, | |
blockquote .small { | |
display: block; | |
font-size: 80%; | |
line-height: 1.42857; | |
color: #b5b5b5 | |
} | |
blockquote footer:before, | |
blockquote small:before, | |
blockquote .small:before { | |
content: '\2014 \00A0' | |
} | |
.blockquote-reverse, | |
blockquote.pull-right { | |
padding-right: 15px; | |
padding-left: 0; | |
border-right: 5px solid #eee; | |
border-left: 0; | |
text-align: right | |
} | |
.blockquote-reverse footer:before, | |
.blockquote-reverse small:before, | |
.blockquote-reverse .small:before, | |
blockquote.pull-right footer:before, | |
blockquote.pull-right small:before, | |
blockquote.pull-right .small:before { | |
content: '' | |
} | |
.blockquote-reverse footer:after, | |
.blockquote-reverse small:after, | |
.blockquote-reverse .small:after, | |
blockquote.pull-right footer:after, | |
blockquote.pull-right small:after, | |
blockquote.pull-right .small:after { | |
content: '\00A0 \2014' | |
} | |
blockquote:before, | |
blockquote:after { | |
content: "" | |
} | |
address { | |
margin-bottom: 20px; | |
font-style: normal; | |
line-height: 1.42857 | |
} | |
.container { | |
margin-right: auto; | |
margin-left: auto; | |
padding-left: 10px; | |
padding-right: 10px | |
} | |
.container:before, | |
.container:after { | |
content: " "; | |
display: table | |
} | |
.container:after { | |
clear: both | |
} | |
@media (min-width: 768px) { | |
.container { | |
width: 740px | |
} | |
} | |
@media (min-width: 992px) { | |
.container { | |
width: 970px | |
} | |
} | |
@media (min-width: 1000px) { | |
.container { | |
width: 970px | |
} | |
} | |
.container-fluid { | |
margin-right: auto; | |
margin-left: auto; | |
padding-left: 10px; | |
padding-right: 10px | |
} | |
.container-fluid:before, | |
.container-fluid:after { | |
content: " "; | |
display: table | |
} | |
.container-fluid:after { | |
clear: both | |
} | |
.container-fluid.inset { | |
background-color: #f4f4f4; | |
padding-top: 20px; | |
padding-bottom: 20px; | |
box-shadow: inset 0 2px 10px -4px rgba(0, 0, 0, 0.6) | |
} | |
.row { | |
margin-left: -10px; | |
margin-right: -10px | |
} | |
.row:before, | |
.row:after { | |
content: " "; | |
display: table | |
} | |
.row:after { | |
clear: both | |
} | |
.col-xs-1, | |
.col-sm-1, | |
.col-md-1, | |
.col-lg-1, | |
.col-xs-2, | |
.col-sm-2, | |
.col-md-2, | |
.col-lg-2, | |
.col-xs-3, | |
.col-sm-3, | |
.col-md-3, | |
.col-lg-3, | |
.col-xs-4, | |
.col-sm-4, | |
.col-md-4, | |
.col-lg-4, | |
.col-xs-5, | |
.col-sm-5, | |
.col-md-5, | |
.col-lg-5, | |
.col-xs-6, | |
.col-sm-6, | |
.col-md-6, | |
.col-lg-6, | |
.col-xs-7, | |
.col-sm-7, | |
.col-md-7, | |
.col-lg-7, | |
.col-xs-8, | |
.col-sm-8, | |
.col-md-8, | |
.col-lg-8, | |
.col-xs-9, | |
.col-sm-9, | |
.col-md-9, | |
.col-lg-9, | |
.col-xs-10, | |
.col-sm-10, | |
.col-md-10, | |
.col-lg-10, | |
.col-xs-11, | |
.col-sm-11, | |
.col-md-11, | |
.col-lg-11, | |
.col-xs-12, | |
.col-sm-12, | |
.col-md-12, | |
.col-lg-12 { | |
position: relative; | |
min-height: 1px; | |
padding-left: 10px; | |
padding-right: 10px | |
} | |
.col-xs-1, | |
.col-xs-2, | |
.col-xs-3, | |
.col-xs-4, | |
.col-xs-5, | |
.col-xs-6, | |
.col-xs-7, | |
.col-xs-8, | |
.col-xs-9, | |
.col-xs-10, | |
.col-xs-11, | |
.col-xs-12 { | |
float: left | |
} | |
.col-xs-1 { | |
width: 8.33333% | |
} | |
.col-xs-2 { | |
width: 16.66667% | |
} | |
.col-xs-3 { | |
width: 25% | |
} | |
.col-xs-4 { | |
width: 33.33333% | |
} | |
.col-xs-5 { | |
width: 41.66667% | |
} | |
.col-xs-6 { | |
width: 50% | |
} | |
.col-xs-7 { | |
width: 58.33333% | |
} | |
.col-xs-8 { | |
width: 66.66667% | |
} | |
.col-xs-9 { | |
width: 75% | |
} | |
.col-xs-10 { | |
width: 83.33333% | |
} | |
.col-xs-11 { | |
width: 91.66667% | |
} | |
.col-xs-12 { | |
width: 100% | |
} | |
.col-xs-pull-0 { | |
right: auto | |
} | |
.col-xs-pull-1 { | |
right: 8.33333% | |
} | |
.col-xs-pull-2 { | |
right: 16.66667% | |
} | |
.col-xs-pull-3 { | |
right: 25% | |
} | |
.col-xs-pull-4 { | |
right: 33.33333% | |
} | |
.col-xs-pull-5 { | |
right: 41.66667% | |
} | |
.col-xs-pull-6 { | |
right: 50% | |
} | |
.col-xs-pull-7 { | |
right: 58.33333% | |
} | |
.col-xs-pull-8 { | |
right: 66.66667% | |
} | |
.col-xs-pull-9 { | |
right: 75% | |
} | |
.col-xs-pull-10 { | |
right: 83.33333% | |
} | |
.col-xs-pull-11 { | |
right: 91.66667% | |
} | |
.col-xs-pull-12 { | |
right: 100% | |
} | |
.col-xs-push-0 { | |
left: auto | |
} | |
.col-xs-push-1 { | |
left: 8.33333% | |
} | |
.col-xs-push-2 { | |
left: 16.66667% | |
} | |
.col-xs-push-3 { | |
left: 25% | |
} | |
.col-xs-push-4 { | |
left: 33.33333% | |
} | |
.col-xs-push-5 { | |
left: 41.66667% | |
} | |
.col-xs-push-6 { | |
left: 50% | |
} | |
.col-xs-push-7 { | |
left: 58.33333% | |
} | |
.col-xs-push-8 { | |
left: 66.66667% | |
} | |
.col-xs-push-9 { | |
left: 75% | |
} | |
.col-xs-push-10 { | |
left: 83.33333% | |
} | |
.col-xs-push-11 { | |
left: 91.66667% | |
} | |
.col-xs-push-12 { | |
left: 100% | |
} | |
.col-xs-offset-0 { | |
margin-left: 0% | |
} | |
.col-xs-offset-1 { | |
margin-left: 8.33333% | |
} | |
.col-xs-offset-2 { | |
margin-left: 16.66667% | |
} | |
.col-xs-offset-3 { | |
margin-left: 25% | |
} | |
.col-xs-offset-4 { | |
margin-left: 33.33333% | |
} | |
.col-xs-offset-5 { | |
margin-left: 41.66667% | |
} | |
.col-xs-offset-6 { | |
margin-left: 50% | |
} | |
.col-xs-offset-7 { | |
margin-left: 58.33333% | |
} | |
.col-xs-offset-8 { | |
margin-left: 66.66667% | |
} | |
.col-xs-offset-9 { | |
margin-left: 75% | |
} | |
.col-xs-offset-10 { | |
margin-left: 83.33333% | |
} | |
.col-xs-offset-11 { | |
margin-left: 91.66667% | |
} | |
.col-xs-offset-12 { | |
margin-left: 100% | |
} | |
@media (min-width: 768px) { | |
.col-sm-1, | |
.col-sm-2, | |
.col-sm-3, | |
.col-sm-4, | |
.col-sm-5, | |
.col-sm-6, | |
.col-sm-7, | |
.col-sm-8, | |
.col-sm-9, | |
.col-sm-10, | |
.col-sm-11, | |
.col-sm-12 { | |
float: left | |
} | |
.col-sm-1 { | |
width: 8.33333% | |
} | |
.col-sm-2 { | |
width: 16.66667% | |
} | |
.col-sm-3 { | |
width: 25% | |
} | |
.col-sm-4 { | |
width: 33.33333% | |
} | |
.col-sm-5 { | |
width: 41.66667% | |
} | |
.col-sm-6 { | |
width: 50% | |
} | |
.col-sm-7 { | |
width: 58.33333% | |
} | |
.col-sm-8 { | |
width: 66.66667% | |
} | |
.col-sm-9 { | |
width: 75% | |
} | |
.col-sm-10 { | |
width: 83.33333% | |
} | |
.col-sm-11 { | |
width: 91.66667% | |
} | |
.col-sm-12 { | |
width: 100% | |
} | |
.col-sm-pull-0 { | |
right: auto | |
} | |
.col-sm-pull-1 { | |
right: 8.33333% | |
} | |
.col-sm-pull-2 { | |
right: 16.66667% | |
} | |
.col-sm-pull-3 { | |
right: 25% | |
} | |
.col-sm-pull-4 { | |
right: 33.33333% | |
} | |
.col-sm-pull-5 { | |
right: 41.66667% | |
} | |
.col-sm-pull-6 { | |
right: 50% | |
} | |
.col-sm-pull-7 { | |
right: 58.33333% | |
} | |
.col-sm-pull-8 { | |
right: 66.66667% | |
} | |
.col-sm-pull-9 { | |
right: 75% | |
} | |
.col-sm-pull-10 { | |
right: 83.33333% | |
} | |
.col-sm-pull-11 { | |
right: 91.66667% | |
} | |
.col-sm-pull-12 { | |
right: 100% | |
} | |
.col-sm-push-0 { | |
left: auto | |
} | |
.col-sm-push-1 { | |
left: 8.33333% | |
} | |
.col-sm-push-2 { | |
left: 16.66667% | |
} | |
.col-sm-push-3 { | |
left: 25% | |
} | |
.col-sm-push-4 { | |
left: 33.33333% | |
} | |
.col-sm-push-5 { | |
left: 41.66667% | |
} | |
.col-sm-push-6 { | |
left: 50% | |
} | |
.col-sm-push-7 { | |
left: 58.33333% | |
} | |
.col-sm-push-8 { | |
left: 66.66667% | |
} | |
.col-sm-push-9 { | |
left: 75% | |
} | |
.col-sm-push-10 { | |
left: 83.33333% | |
} | |
.col-sm-push-11 { | |
left: 91.66667% | |
} | |
.col-sm-push-12 { | |
left: 100% | |
} | |
.col-sm-offset-0 { | |
margin-left: 0% | |
} | |
.col-sm-offset-1 { | |
margin-left: 8.33333% | |
} | |
.col-sm-offset-2 { | |
margin-left: 16.66667% | |
} | |
.col-sm-offset-3 { | |
margin-left: 25% | |
} | |
.col-sm-offset-4 { | |
margin-left: 33.33333% | |
} | |
.col-sm-offset-5 { | |
margin-left: 41.66667% | |
} | |
.col-sm-offset-6 { | |
margin-left: 50% | |
} | |
.col-sm-offset-7 { | |
margin-left: 58.33333% | |
} | |
.col-sm-offset-8 { | |
margin-left: 66.66667% | |
} | |
.col-sm-offset-9 { | |
margin-left: 75% | |
} | |
.col-sm-offset-10 { | |
margin-left: 83.33333% | |
} | |
.col-sm-offset-11 { | |
margin-left: 91.66667% | |
} | |
.col-sm-offset-12 { | |
margin-left: 100% | |
} | |
} | |
@media (min-width: 992px) { | |
.col-md-1, | |
.col-md-2, | |
.col-md-3, | |
.col-md-4, | |
.col-md-5, | |
.col-md-6, | |
.col-md-7, | |
.col-md-8, | |
.col-md-9, | |
.col-md-10, | |
.col-md-11, | |
.col-md-12 { | |
float: left | |
} | |
.col-md-1 { | |
width: 8.33333% | |
} | |
.col-md-2 { | |
width: 16.66667% | |
} | |
.col-md-3 { | |
width: 25% | |
} | |
.col-md-4 { | |
width: 33.33333% | |
} | |
.col-md-5 { | |
width: 41.66667% | |
} | |
.col-md-6 { | |
width: 50% | |
} | |
.col-md-7 { | |
width: 58.33333% | |
} | |
.col-md-8 { | |
width: 66.66667% | |
} | |
.col-md-9 { | |
width: 75% | |
} | |
.col-md-10 { | |
width: 83.33333% | |
} | |
.col-md-11 { | |
width: 91.66667% | |
} | |
.col-md-12 { | |
width: 100% | |
} | |
.col-md-pull-0 { | |
right: auto | |
} | |
.col-md-pull-1 { | |
right: 8.33333% | |
} | |
.col-md-pull-2 { | |
right: 16.66667% | |
} | |
.col-md-pull-3 { | |
right: 25% | |
} | |
.col-md-pull-4 { | |
right: 33.33333% | |
} | |
.col-md-pull-5 { | |
right: 41.66667% | |
} | |
.col-md-pull-6 { | |
right: 50% | |
} | |
.col-md-pull-7 { | |
right: 58.33333% | |
} | |
.col-md-pull-8 { | |
right: 66.66667% | |
} | |
.col-md-pull-9 { | |
right: 75% | |
} | |
.col-md-pull-10 { | |
right: 83.33333% | |
} | |
.col-md-pull-11 { | |
right: 91.66667% | |
} | |
.col-md-pull-12 { | |
right: 100% | |
} | |
.col-md-push-0 { | |
left: auto | |
} | |
.col-md-push-1 { | |
left: 8.33333% | |
} | |
.col-md-push-2 { | |
left: 16.66667% | |
} | |
.col-md-push-3 { | |
left: 25% | |
} | |
.col-md-push-4 { | |
left: 33.33333% | |
} | |
.col-md-push-5 { | |
left: 41.66667% | |
} | |
.col-md-push-6 { | |
left: 50% | |
} | |
.col-md-push-7 { | |
left: 58.33333% | |
} | |
.col-md-push-8 { | |
left: 66.66667% | |
} | |
.col-md-push-9 { | |
left: 75% | |
} | |
.col-md-push-10 { | |
left: 83.33333% | |
} | |
.col-md-push-11 { | |
left: 91.66667% | |
} | |
.col-md-push-12 { | |
left: 100% | |
} | |
.col-md-offset-0 { | |
margin-left: 0% | |
} | |
.col-md-offset-1 { | |
margin-left: 8.33333% | |
} | |
.col-md-offset-2 { | |
margin-left: 16.66667% | |
} | |
.col-md-offset-3 { | |
margin-left: 25% | |
} | |
.col-md-offset-4 { | |
margin-left: 33.33333% | |
} | |
.col-md-offset-5 { | |
margin-left: 41.66667% | |
} | |
.col-md-offset-6 { | |
margin-left: 50% | |
} | |
.col-md-offset-7 { | |
margin-left: 58.33333% | |
} | |
.col-md-offset-8 { | |
margin-left: 66.66667% | |
} | |
.col-md-offset-9 { | |
margin-left: 75% | |
} | |
.col-md-offset-10 { | |
margin-left: 83.33333% | |
} | |
.col-md-offset-11 { | |
margin-left: 91.66667% | |
} | |
.col-md-offset-12 { | |
margin-left: 100% | |
} | |
} | |
@media (min-width: 1000px) { | |
.col-lg-1, | |
.col-lg-2, | |
.col-lg-3, | |
.col-lg-4, | |
.col-lg-5, | |
.col-lg-6, | |
.col-lg-7, | |
.col-lg-8, | |
.col-lg-9, | |
.col-lg-10, | |
.col-lg-11, | |
.col-lg-12 { | |
float: left | |
} | |
.col-lg-1 { | |
width: 8.33333% | |
} | |
.col-lg-2 { | |
width: 16.66667% | |
} | |
.col-lg-3 { | |
width: 25% | |
} | |
.col-lg-4 { | |
width: 33.33333% | |
} | |
.col-lg-5 { | |
width: 41.66667% | |
} | |
.col-lg-6 { | |
width: 50% | |
} | |
.col-lg-7 { | |
width: 58.33333% | |
} | |
.col-lg-8 { | |
width: 66.66667% | |
} | |
.col-lg-9 { | |
width: 75% | |
} | |
.col-lg-10 { | |
width: 83.33333% | |
} | |
.col-lg-11 { | |
width: 91.66667% | |
} | |
.col-lg-12 { | |
width: 100% | |
} | |
.col-lg-pull-0 { | |
right: auto | |
} | |
.col-lg-pull-1 { | |
right: 8.33333% | |
} | |
.col-lg-pull-2 { | |
right: 16.66667% | |
} | |
.col-lg-pull-3 { | |
right: 25% | |
} | |
.col-lg-pull-4 { | |
right: 33.33333% | |
} | |
.col-lg-pull-5 { | |
right: 41.66667% | |
} | |
.col-lg-pull-6 { | |
right: 50% | |
} | |
.col-lg-pull-7 { | |
right: 58.33333% | |
} | |
.col-lg-pull-8 { | |
right: 66.66667% | |
} | |
.col-lg-pull-9 { | |
right: 75% | |
} | |
.col-lg-pull-10 { | |
right: 83.33333% | |
} | |
.col-lg-pull-11 { | |
right: 91.66667% | |
} | |
.col-lg-pull-12 { | |
right: 100% | |
} | |
.col-lg-push-0 { | |
left: auto | |
} | |
.col-lg-push-1 { | |
left: 8.33333% | |
} | |
.col-lg-push-2 { | |
left: 16.66667% | |
} | |
.col-lg-push-3 { | |
left: 25% | |
} | |
.col-lg-push-4 { | |
left: 33.33333% | |
} | |
.col-lg-push-5 { | |
left: 41.66667% | |
} | |
.col-lg-push-6 { | |
left: 50% | |
} | |
.col-lg-push-7 { | |
left: 58.33333% | |
} | |
.col-lg-push-8 { | |
left: 66.66667% | |
} | |
.col-lg-push-9 { | |
left: 75% | |
} | |
.col-lg-push-10 { | |
left: 83.33333% | |
} | |
.col-lg-push-11 { | |
left: 91.66667% | |
} | |
.col-lg-push-12 { | |
left: 100% | |
} | |
.col-lg-offset-0 { | |
margin-left: 0% | |
} | |
.col-lg-offset-1 { | |
margin-left: 8.33333% | |
} | |
.col-lg-offset-2 { | |
margin-left: 16.66667% | |
} | |
.col-lg-offset-3 { | |
margin-left: 25% | |
} | |
.col-lg-offset-4 { | |
margin-left: 33.33333% | |
} | |
.col-lg-offset-5 { | |
margin-left: 41.66667% | |
} | |
.col-lg-offset-6 { | |
margin-left: 50% | |
} | |
.col-lg-offset-7 { | |
margin-left: 58.33333% | |
} | |
.col-lg-offset-8 { | |
margin-left: 66.66667% | |
} | |
.col-lg-offset-9 { | |
margin-left: 75% | |
} | |
.col-lg-offset-10 { | |
margin-left: 83.33333% | |
} | |
.col-lg-offset-11 { | |
margin-left: 91.66667% | |
} | |
.col-lg-offset-12 { | |
margin-left: 100% | |
} | |
} | |
fieldset { | |
padding: 0; | |
margin: 0; | |
border: 0; | |
min-width: 0 | |
} | |
legend { | |
display: block; | |
width: 100%; | |
padding: 0; | |
margin-bottom: 20px; | |
font-size: 21px; | |
line-height: inherit; | |
color: #333; | |
border: 0; | |
border-bottom: 1px solid #e5e5e5 | |
} | |
label { | |
display: inline-block; | |
max-width: 100%; | |
margin-bottom: 5px; | |
font-weight: bold | |
} | |
p.label { | |
margin: 0; | |
height: 42px; | |
line-height: 40px | |
} | |
p.label.text-left { | |
text-align: left | |
} | |
.text-center p.label { | |
text-align: center | |
} | |
@media (min-width: 992px) { | |
p.label { | |
text-align: right | |
} | |
} | |
input[type="search"] { | |
box-sizing: border-box | |
} | |
input[type="radio"], | |
input[type="checkbox"] { | |
margin: 4px 0 0; | |
margin-top: 1px \9; | |
line-height: normal | |
} | |
input[type="file"] { | |
display: block | |
} | |
input[type="range"] { | |
display: block; | |
width: 100% | |
} | |
select[multiple], | |
select[size] { | |
height: auto | |
} | |
input[type="file"]:focus, | |
input[type="radio"]:focus, | |
input[type="checkbox"]:focus { | |
outline: thin dotted; | |
outline: 5px auto -webkit-focus-ring-color; | |
outline-offset: -2px | |
} | |
output { | |
display: block; | |
padding-top: 7px; | |
font-size: 14px; | |
line-height: 1.42857; | |
color: #888 | |
} | |
.form-control { | |
display: block; | |
width: 100%; | |
height: 42px; | |
padding: 6px 20px; | |
font-size: 14px; | |
line-height: 1.42857; | |
color: #ed5c15; | |
background-color: #fff; | |
background-image: none; | |
border: 2px solid #c8c8c8; | |
border-radius: 22px; | |
text-align: center; | |
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s | |
} | |
.form-control:focus { | |
border-color: #ed5c15; | |
outline: 0; | |
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(237, 92, 21, 0.6) | |
} | |
.form-control::-moz-placeholder { | |
color: #b5b5b5; | |
opacity: 1 | |
} | |
.form-control:-ms-input-placeholder { | |
color: #b5b5b5 | |
} | |
.form-control::-webkit-input-placeholder { | |
color: #b5b5b5 | |
} | |
.form-control[disabled], | |
.form-control[readonly], | |
fieldset[disabled] .form-control { | |
cursor: not-allowed; | |
background-color: #eee; | |
opacity: 1 | |
} | |
.form-control.gray { | |
background-color: #e6e6e6; | |
border-color: #e6e6e6; | |
color: #111; | |
font-weight: 600 | |
} | |
.form-control.gray:focus { | |
border-color: #888; | |
outline: 0; | |
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(136, 136, 136, 0.6) | |
} | |
textarea.form-control { | |
height: auto; | |
padding-top: 15px; | |
padding-bottom: 15px | |
} | |
input[type="search"] { | |
-webkit-appearance: none | |
} | |
input[type="date"], | |
input[type="time"], | |
input[type="datetime-local"], | |
input[type="month"] { | |
line-height: 42px; | |
line-height: 1.42857 \0 | |
} | |
input[type="date"].input-sm, | |
.form-horizontal .form-group-sm input[type="date"].form-control, | |
input[type="time"].input-sm, | |
.form-horizontal .form-group-sm input[type="time"].form-control, | |
input[type="datetime-local"].input-sm, | |
.form-horizontal .form-group-sm input[type="datetime-local"].form-control, | |
input[type="month"].input-sm, | |
.form-horizontal .form-group-sm input[type="month"].form-control { | |
line-height: 30px | |
} | |
input[type="date"].input-lg, | |
.form-horizontal .form-group-lg input[type="date"].form-control, | |
input[type="time"].input-lg, | |
.form-horizontal .form-group-lg input[type="time"].form-control, | |
input[type="datetime-local"].input-lg, | |
.form-horizontal .form-group-lg input[type="datetime-local"].form-control, | |
input[type="month"].input-lg, | |
.form-horizontal .form-group-lg input[type="month"].form-control { | |
line-height: 46px | |
} | |
.form-group { | |
margin-bottom: 15px | |
} | |
.radio, | |
.checkbox { | |
position: relative; | |
display: block; | |
margin-top: 10px; | |
margin-bottom: 10px; | |
line-height: 25px | |
} | |
.radio label, | |
.checkbox label { | |
min-height: 20px; | |
padding-left: 30px; | |
margin-left: 0; | |
margin-bottom: 0; | |
font-weight: normal; | |
cursor: pointer; | |
position: relative | |
} | |
.radio label:before, | |
.checkbox label:before { | |
content: ""; | |
display: block; | |
position: absolute; | |
width: 20px; | |
height: 20px; | |
left: 0; | |
top: 2px; | |
border: 2px solid #c8c8c8; | |
background-color: #fff; | |
transition: all, 0.15s | |
} | |
.radio label:after, | |
.checkbox label:after { | |
content: ''; | |
display: block; | |
position: absolute; | |
width: 16px; | |
height: 16px; | |
transition: all, 0.15s | |
} | |
.radio label p, | |
.checkbox label p { | |
line-height: 1.4em | |
} | |
.radio input[type="checkbox"], | |
.radio input[type="radio"], | |
.checkbox input[type="checkbox"], | |
.checkbox input[type="radio"] { | |
opacity: 0; | |
z-index: 1 | |
} | |
.radio input[type="checkbox"]:checked+label:after, | |
.radio input[type="radio"]:checked+label:after, | |
.checkbox input[type="checkbox"]:checked+label:after, | |
.checkbox input[type="radio"]:checked+label:after { | |
content: '' | |
} | |
.radio input[type="checkbox"]:disabled+label, | |
.radio input[type="radio"]:disabled+label, | |
.checkbox input[type="checkbox"]:disabled+label, | |
.checkbox input[type="radio"]:disabled+label { | |
color: #888; | |
opacity: 0.6 | |
} | |
.radio input[type="checkbox"]:disabled+label:before, | |
.radio input[type="radio"]:disabled+label:before, | |
.checkbox input[type="checkbox"]:disabled+label:before, | |
.checkbox input[type="radio"]:disabled+label:before { | |
background-color: #c8c8c8; | |
cursor: not-allowed | |
} | |
.checkbox>label:before { | |
border-radius: 3px | |
} | |
.checkbox>label:after { | |
width: 12px; | |
height: 12px; | |
left: 4px; | |
top: 6px; | |
border-radius: 3px | |
} | |
.checkbox input[type="checkbox"]:checked+label:after { | |
background: #ed5c15; | |
background-size: contain | |
} | |
.checkbox.col { | |
width: auto; | |
display: inline-block | |
} | |
.checkbox.col input { | |
display: none | |
} | |
.checkbox.col>label { | |
height: 45px; | |
width: auto; | |
min-width: 25px | |
} | |
.checkbox.col>label:before, | |
.checkbox.col>label:after { | |
left: 50%; | |
-webkit-transform: translateX(-50%); | |
-ms-transform: translateX(-50%); | |
transform: translateX(-50%) | |
} | |
.checkbox.col>label>span { | |
display: block; | |
position: absolute; | |
text-align: center; | |
bottom: 0; | |
left: 50%; | |
-webkit-transform: translateX(-50%); | |
-ms-transform: translateX(-50%); | |
transform: translateX(-50%) | |
} | |
.checkbox.black input[type="checkbox"]:checked+label:after { | |
background: #111 | |
} | |
.radio>label:before { | |
border-radius: 50% | |
} | |
.radio>label:after { | |
width: 12px; | |
height: 12px; | |
left: 4px; | |
top: 6px; | |
border-radius: 50% | |
} | |
.radio input[type="radio"]:checked+label:before { | |
border-color: #c8c8c8 | |
} | |
.radio input[type="radio"]:checked+label:after { | |
background: #ed5c15 | |
} | |
.radio.black input[type="radio"]:checked+label:after { | |
background: #111 | |
} | |
.radio input[type="radio"], | |
.radio-inline input[type="radio"], | |
.checkbox input[type="checkbox"], | |
.checkbox-inline input[type="checkbox"] { | |
position: absolute; | |
margin-top: 4px \9 | |
} | |
.radio+.radio, | |
.checkbox+.checkbox { | |
margin-top: -5px | |
} | |
.radio-inline, | |
.checkbox-inline { | |
position: relative; | |
display: inline-block; | |
margin-bottom: 0; | |
margin-top: 0; | |
vertical-align: middle; | |
font-weight: normal; | |
cursor: pointer | |
} | |
.radio-inline+.radio-inline, | |
.checkbox-inline+.checkbox-inline { | |
margin-top: 0; | |
margin-left: 10px | |
} | |
.form-select { | |
position: relative | |
} | |
.form-select>select { | |
text-overflow: ellipsis; | |
width: 100%; | |
background-color: #fff; | |
background-image: none; | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
padding-right: 35px | |
} | |
.form-select:after { | |
display: block; | |
content: ''; | |
width: 0; | |
height: 0; | |
border-style: solid; | |
border-width: 7px 5px 0 5px; | |
border-color: #c8c8c8 transparent transparent transparent; | |
background: none; | |
position: absolute; | |
top: 50%; | |
margin-top: -4px; | |
right: 13px; | |
pointer-events: none | |
} | |
.form-select>select::-ms-expand { | |
display: none | |
} | |
.form-select.gray>select { | |
background-color: #e6e6e6; | |
border-color: #e6e6e6; | |
color: #111; | |
font-weight: 600 | |
} | |
.form-select.gray>select:focus { | |
border-color: #888; | |
outline: 0; | |
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(136, 136, 136, 0.6) | |
} | |
.form-select.gray:after { | |
border-color: #888 transparent transparent transparent | |
} | |
.form-select.shadow { | |
box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.35); | |
border-radius: 22px | |
} | |
.form-select.shadow>select { | |
border: none; | |
color: #111 | |
} | |
.form-select.shadow:after { | |
width: 16px; | |
height: 7px; | |
border: none; | |
background-image: url("../img/sprite.png"); | |
background-repeat: no-repeat; | |
background-position: -198px -124px; | |
margin-top: -2px | |
} | |
input[type="radio"][disabled], | |
input[type="radio"].disabled, | |
fieldset[disabled] input[type="radio"], | |
input[type="checkbox"][disabled], | |
input[type="checkbox"].disabled, | |
fieldset[disabled] input[type="checkbox"] { | |
cursor: not-allowed | |
} | |
.radio-inline.disabled, | |
fieldset[disabled] .radio-inline, | |
.checkbox-inline.disabled, | |
fieldset[disabled] .checkbox-inline { | |
cursor: not-allowed | |
} | |
.radio.disabled label, | |
fieldset[disabled] .radio label, | |
.checkbox.disabled label, | |
fieldset[disabled] .checkbox label { | |
cursor: not-allowed | |
} | |
.form-control-static { | |
padding-top: 7px; | |
padding-bottom: 7px; | |
margin-bottom: 0 | |
} | |
.form-control-static.input-lg, | |
.form-horizontal .form-group-lg .form-control-static.form-control, | |
.form-control-static.input-sm, | |
.form-horizontal .form-group-sm .form-control-static.form-control { | |
padding-left: 0; | |
padding-right: 0 | |
} | |
.input-sm, | |
.form-horizontal .form-group-sm .form-control { | |
height: 30px; | |
padding: 5px 10px; | |
font-size: 12px; | |
line-height: 1.5; | |
border-radius: 3px | |
} | |
select.input-sm, | |
.form-horizontal .form-group-sm select.form-control { | |
height: 30px; | |
line-height: 30px | |
} | |
textarea.input-sm, | |
.form-horizontal .form-group-sm textarea.form-control, | |
select[multiple].input-sm, | |
.form-horizontal .form-group-sm select[multiple].form-control { | |
height: auto | |
} | |
.input-lg, | |
.form-horizontal .form-group-lg .form-control { | |
height: 46px; | |
padding: 10px 16px; | |
font-size: 18px; | |
line-height: 1.33; | |
border-radius: 6px | |
} | |
select.input-lg, | |
.form-horizontal .form-group-lg select.form-control { | |
height: 46px; | |
line-height: 46px | |
} | |
textarea.input-lg, | |
.form-horizontal .form-group-lg textarea.form-control, | |
select[multiple].input-lg, | |
.form-horizontal .form-group-lg select[multiple].form-control { | |
height: auto | |
} | |
.has-feedback { | |
position: relative | |
} | |
.has-feedback .form-control { | |
padding-right: 52.5px | |
} | |
.form-control-feedback { | |
position: absolute; | |
top: 25px; | |
right: 0; | |
z-index: 2; | |
display: block; | |
width: 42px; | |
height: 42px; | |
line-height: 42px; | |
text-align: center | |
} | |
.input-lg+.form-control-feedback, | |
.form-horizontal .form-group-lg .form-control+.form-control-feedback { | |
width: 46px; | |
height: 46px; | |
line-height: 46px | |
} | |
.input-sm+.form-control-feedback, | |
.form-horizontal .form-group-sm .form-control+.form-control-feedback { | |
width: 30px; | |
height: 30px; | |
line-height: 30px | |
} | |
.has-success .help-block, | |
.has-success .control-label, | |
.has-success .radio, | |
.has-success .checkbox, | |
.has-success .radio-inline, | |
.has-success .checkbox-inline { | |
color: #3c763d | |
} | |
.has-success .form-control { | |
border-color: #3c763d; | |
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) | |
} | |
.has-success .form-control:focus { | |
border-color: #2b542c; | |
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168 | |
} | |
.has-success .input-group-addon { | |
color: #3c763d; | |
border-color: #3c763d; | |
background-color: #dff0d8 | |
} | |
.has-success .form-control-feedback { | |
color: #3c763d | |
} | |
.has-warning .help-block, | |
.has-warning .control-label, | |
.has-warning .radio, | |
.has-warning .checkbox, | |
.has-warning .radio-inline, | |
.has-warning .checkbox-inline { | |
color: #8a6d3b | |
} | |
.has-warning .form-control { | |
border-color: #8a6d3b; | |
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) | |
} | |
.has-warning .form-control:focus { | |
border-color: #66512c; | |
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b | |
} | |
.has-warning .input-group-addon { | |
color: #8a6d3b; | |
border-color: #8a6d3b; | |
background-color: #fcf8e3 | |
} | |
.has-warning .form-control-feedback { | |
color: #8a6d3b | |
} | |
.has-error .help-block, | |
.has-error .control-label, | |
.has-error .radio, | |
.has-error .checkbox, | |
.has-error .radio-inline, | |
.has-error .checkbox-inline { | |
color: #a94442 | |
} | |
.has-error .form-control { | |
border-color: #a94442; | |
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) | |
} | |
.has-error .form-control:focus { | |
border-color: #843534; | |
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483 | |
} | |
.has-error .input-group-addon { | |
color: #a94442; | |
border-color: #a94442; | |
background-color: #f2dede | |
} | |
.has-error .form-control-feedback { | |
color: #a94442 | |
} | |
.has-feedback label.sr-only ~ .form-control-feedback { | |
top: 0 | |
} | |
.help-block { | |
display: block; | |
margin-top: 5px; | |
margin-bottom: 10px; | |
color: #515151 | |
} | |
@media (min-width: 768px) { | |
.form-inline .form-group { | |
display: inline-block; | |
margin-bottom: 0; | |
vertical-align: middle | |
} | |
.form-inline label { | |
font-weight: normal; | |
margin-right: 10px | |
} | |
.form-inline .form-control { | |
display: inline-block; | |
width: auto; | |
vertical-align: middle | |
} | |
.form-inline .input-group { | |
display: inline-table; | |
vertical-align: middle | |
} | |
.form-inline .input-group .input-group-addon, | |
.form-inline .input-group .input-group-btn, | |
.form-inline .input-group .form-control { | |
width: auto | |
} | |
.form-inline .input-group>.form-control { | |
width: 100% | |
} | |
.form-inline .control-label { | |
margin-bottom: 0; | |
vertical-align: middle | |
} | |
.form-inline .radio, | |
.form-inline .checkbox { | |
display: inline-block; | |
margin-top: 0; | |
margin-bottom: 0; | |
vertical-align: middle | |
} | |
.form-inline .radio label, | |
.form-inline .checkbox label { | |
padding-left: 0 | |
} | |
.form-inline .radio input[type="radio"], | |
.form-inline .checkbox input[type="checkbox"] { | |
position: relative; | |
margin-left: 0 | |
} | |
.form-inline .has-feedback .form-control-feedback { | |
top: 0 | |
} | |
} | |
.form-horizontal .radio, | |
.form-horizontal .checkbox, | |
.form-horizontal .radio-inline, | |
.form-horizontal .checkbox-inline { | |
margin-top: 0; | |
margin-bottom: 0; | |
padding-top: 7px | |
} | |
.form-horizontal .radio, | |
.form-horizontal .checkbox { | |
min-height: 27px | |
} | |
.form-horizontal .form-group { | |
margin-left: -10px; | |
margin-right: -10px | |
} | |
.form-horizontal .form-group:before, | |
.form-horizontal .form-group:after { | |
content: " "; | |
display: table | |
} | |
.form-horizontal .form-group:after { | |
clear: both | |
} | |
@media (min-width: 768px) { | |
.form-horizontal .control-label { | |
text-align: right; | |
margin-bottom: 0; | |
padding-top: 7px | |
} | |
} | |
.form-horizontal .has-feedback .form-control-feedback { | |
top: 0; | |
right: 10px | |
} | |
@media (min-width: 768px) { | |
.form-horizontal .form-group-lg .control-label { | |
padding-top: 14.3px | |
} | |
} | |
@media (min-width: 768px) { | |
.form-horizontal .form-group-sm .control-label { | |
padding-top: 6px | |
} | |
} | |
.form-group.input-file input[type="file"] { | |
display: none | |
} | |
.form-group.input-file label { | |
padding-left: 20px !important; | |
padding-right: 20px !important | |
} | |
.btn, | |
.form-group.input-file label { | |
display: inline-block; | |
margin-bottom: 0; | |
font-weight: normal; | |
text-align: center; | |
text-decoration: none; | |
vertical-align: middle; | |
cursor: pointer; | |
background-image: none; | |
border: none; | |
height: 42px; | |
white-space: nowrap; | |
transition: all, 0.15s; | |
padding: 11px 22px; | |
font-size: 16px; | |
line-height: 1.2em; | |
border-radius: 21px; | |
-webkit-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
font-size: 13px | |
} | |
.btn:focus, | |
.form-group.input-file label:focus, | |
.btn:active:focus, | |
.form-group.input-file label:active:focus, | |
.btn.active:focus, | |
.form-group.input-file label.active:focus { | |
outline: thin dotted; | |
outline: 5px auto -webkit-focus-ring-color; | |
outline-offset: -2px | |
} | |
.btn:hover, | |
.form-group.input-file label:hover, | |
.btn:focus, | |
.form-group.input-file label:focus { | |
color: #111; | |
text-decoration: none | |
} | |
.btn:active, | |
.form-group.input-file label:active, | |
.btn.active, | |
.form-group.input-file label.active { | |
outline: 0; | |
background-image: none; | |
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) | |
} | |
.btn.disabled, | |
.form-group.input-file label.disabled, | |
.btn[disabled], | |
.form-group.input-file label[disabled], | |
fieldset[disabled] .btn, | |
fieldset[disabled] .form-group.input-file label, | |
.form-group.input-file fieldset[disabled] label { | |
cursor: not-allowed; | |
pointer-events: none; | |
opacity: 0.65; | |
filter: alpha(opacity=65); | |
box-shadow: none | |
} | |
@media (min-width: 768px) { | |
.btn, | |
.form-group.input-file label { | |
font-size: 16px | |
} | |
} | |
.btn-orange, | |
.form-group.input-file label { | |
background-image: linear-gradient(to bottom, #ffcf3e 0, #ed5c15 100%); | |
background-repeat: repeat-x; | |
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#FFFFCF3E', endColorstr='#FFED5C15', GradientType=0); | |
color: #fff; | |
text-shadow: 0px 1px 1px #ed5c15; | |
font-weight: 600; | |
padding-left: 40px; | |
padding-right: 40px | |
} | |
.btn-orange:hover, | |
.form-group.input-file label:hover, | |
.btn-orange:focus, | |
.form-group.input-file label:focus { | |
background-image: linear-gradient(to bottom, #ffc20b 0, #d85211 100%); | |
background-repeat: repeat-x; | |
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#FFFFC20B', endColorstr='#FFD85211', GradientType=0); | |
color: #fff | |
} | |
.btn-border { | |
color: #fdc13b; | |
background: transparent; | |
border: 2px solid #fdc13b | |
} | |
.btn-border:hover, | |
.btn-border:focus { | |
color: #ed5c15; | |
border-color: #ed5c15 | |
} | |
.btn-modal { | |
border: none; | |
border-bottom: 1px dotted; | |
height: auto; | |
line-height: 1.3em; | |
padding: 0 0 1px; | |
border-radius: 0; | |
font-size: inherit; | |
box-shadow: none !important | |
} | |
.btn-modal:hover, | |
.btn-modal:focus { | |
color: inherit | |
} | |
.btn-link { | |
color: #111; | |
background-color: transparent; | |
text-decoration: underline; | |
border: none; | |
padding: 10px 20px; | |
font-size: 14px; | |
font-weight: 800; | |
box-shadow: none !important | |
} | |
.btn-gray { | |
background-image: linear-gradient(to bottom, #cecece 0, #686869 100%); | |
background-repeat: repeat-x; | |
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#FFCECECE', endColorstr='#FF686869', GradientType=0); | |
color: #fff; | |
text-shadow: 0px 1px 1px #000; | |
font-weight: 600; | |
padding-left: 40px; | |
padding-right: 40px | |
} | |
.btn-gray:hover, | |
.btn-gray:focus { | |
background-image: linear-gradient(to bottom, #b4b4b4 0, #5b5b5c 100%); | |
background-repeat: repeat-x; | |
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#FFB4B4B4', endColorstr='#FF5B5B5C', GradientType=0); | |
color: #fff | |
} | |
.btn-lg { | |
padding: 18px 30px; | |
font-size: 18px; | |
line-height: 1.33; | |
border-radius: 30px; | |
height: auto; | |
font-size: 20px | |
} | |
.btn-sm { | |
padding: 5px 15px; | |
font-size: 12px; | |
line-height: 1.5; | |
border-radius: 21px; | |
height: auto | |
} | |
.btn-block { | |
display: block; | |
width: 100% | |
} | |
.btn-block+.btn-block { | |
margin-top: 5px | |
} | |
input[type="submit"].btn-block, | |
input[type="reset"].btn-block, | |
input[type="button"].btn-block { | |
width: 100% | |
} | |
.btn-enter { | |
height: 38px; | |
padding: 10px 22px | |
} | |
.btn-enter:before { | |
content: ''; | |
display: inline-block; | |
background-image: url("../img/sprite.png"); | |
background-repeat: no-repeat; | |
background-position: -68px -20px; | |
width: 11px; | |
height: 14px; | |
margin-right: 8px; | |
margin-bottom: -2px | |
} | |
.btn-cabinet { | |
height: 31px; | |
font-size: 11px; | |
text-transform: uppercase; | |
line-height: 28px; | |
padding-top: 0; | |
padding-bottom: 0; | |
font-weight: 700; | |
font-style: normal | |
} | |
#header .btn-cabinet { | |
color: #fdc13b | |
} | |
#header .btn-cabinet:hover, | |
#header .btn-cabinet:focus { | |
color: #ed5c15 | |
} | |
.btn-cabinet:hover .icon.icon-cabinet, | |
.btn-cabinet:focus .icon.icon-cabinet { | |
background-position: -85px 0 | |
} | |
.clearfix:before, | |
.clearfix:after { | |
content: " "; | |
display: table | |
} | |
.clearfix:after { | |
clear: both | |
} | |
.clear { | |
clear: both; | |
display: block | |
} | |
.center-block { | |
display: block; | |
margin-left: auto; | |
margin-right: auto | |
} | |
.pull-right { | |
float: right !important | |
} | |
.pull-left { | |
float: left !important | |
} | |
.hide { | |
display: none !important | |
} | |
.show { | |
display: block !important | |
} | |
.invisible { | |
visibility: hidden | |
} | |
.text-hide { | |
font: 0/0 a; | |
color: transparent; | |
text-shadow: none; | |
background-color: transparent; | |
border: 0 | |
} | |
.inline { | |
display: inline-block | |
} | |
@media (min-width: 768px) { | |
.pull-sm-left { | |
float: left !important | |
} | |
.pull-sm-right { | |
float: right !important | |
} | |
.pull-sm-none { | |
float: none !important | |
} | |
.text-sm-left { | |
text-align: left | |
} | |
.text-sm-right { | |
text-align: right | |
} | |
.text-sm-center { | |
text-align: center | |
} | |
} | |
@media (min-width: 992px) { | |
.pull-md-left { | |
float: left !important | |
} | |
.pull-md-right { | |
float: right !important | |
} | |
.pull-md-none { | |
float: none !important | |
} | |
.text-md-left { | |
text-align: left | |
} | |
.text-md-right { | |
text-align: right | |
} | |
.text-md-center { | |
text-align: center | |
} | |
} | |
@media (min-width: 1000px) { | |
.pull-lg-left { | |
float: left !important | |
} | |
.pull-lg-right { | |
float: right !important | |
} | |
.pull-lg-none { | |
float: none !important | |
} | |
.text-lg-left { | |
text-align: left | |
} | |
.text-lg-right { | |
text-align: right | |
} | |
.text-lg-center { | |
text-align: center | |
} | |
} | |
.hidden { | |
display: none !important; | |
visibility: hidden !important | |
} | |
.affix { | |
position: fixed; | |
-webkit-transform: translate3d(0, 0, 0); | |
transform: translate3d(0, 0, 0) | |
} | |
.mauto { | |
margin-left: auto; | |
margin-right: auto | |
} | |
.m0 { | |
margin: 0 !important | |
} | |
.p0 { | |
padding: 0 !important | |
} | |
.m5 { | |
margin: 5px | |
} | |
.p5 { | |
padding: 5px | |
} | |
@media (min-width: 768px) { | |
.sm-m5 { | |
margin: 5px | |
} | |
.sm-p5 { | |
padding: 5px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-m5 { | |
margin: 5px | |
} | |
.md-p5 { | |
padding: 5px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-m5 { | |
margin: 5px | |
} | |
.lg-p5 { | |
padding: 5px | |
} | |
} | |
.m10 { | |
margin: 10px | |
} | |
.p10 { | |
padding: 10px | |
} | |
@media (min-width: 768px) { | |
.sm-m10 { | |
margin: 10px | |
} | |
.sm-p10 { | |
padding: 10px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-m10 { | |
margin: 10px | |
} | |
.md-p10 { | |
padding: 10px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-m10 { | |
margin: 10px | |
} | |
.lg-p10 { | |
padding: 10px | |
} | |
} | |
.m20 { | |
margin: 20px | |
} | |
.p20 { | |
padding: 20px | |
} | |
@media (min-width: 768px) { | |
.sm-m20 { | |
margin: 20px | |
} | |
.sm-p20 { | |
padding: 20px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-m20 { | |
margin: 20px | |
} | |
.md-p20 { | |
padding: 20px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-m20 { | |
margin: 20px | |
} | |
.lg-p20 { | |
padding: 20px | |
} | |
} | |
.m30 { | |
margin: 30px | |
} | |
.p30 { | |
padding: 30px | |
} | |
@media (min-width: 768px) { | |
.sm-m30 { | |
margin: 30px | |
} | |
.sm-p30 { | |
padding: 30px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-m30 { | |
margin: 30px | |
} | |
.md-p30 { | |
padding: 30px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-m30 { | |
margin: 30px | |
} | |
.lg-p30 { | |
padding: 30px | |
} | |
} | |
.mt0 { | |
margin-top: 0px | |
} | |
.pt0 { | |
padding-top: 0px | |
} | |
@media (max-width: 768px) { | |
.xs-mt0 { | |
margin-top: 0px | |
} | |
.xs-pt0 { | |
padding-top: 0px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-mt0 { | |
margin-top: 0px | |
} | |
.sm-pt0 { | |
padding-top: 0px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-mt0 { | |
margin-top: 0px | |
} | |
.md-pt0 { | |
padding-top: 0px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-mt0 { | |
margin-top: 0px | |
} | |
.lg-pt0 { | |
padding-top: 0px | |
} | |
} | |
.mt5 { | |
margin-top: 5px | |
} | |
.pt5 { | |
padding-top: 5px | |
} | |
@media (max-width: 768px) { | |
.xs-mt5 { | |
margin-top: 5px | |
} | |
.xs-pt5 { | |
padding-top: 5px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-mt5 { | |
margin-top: 5px | |
} | |
.sm-pt5 { | |
padding-top: 5px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-mt5 { | |
margin-top: 5px | |
} | |
.md-pt5 { | |
padding-top: 5px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-mt5 { | |
margin-top: 5px | |
} | |
.lg-pt5 { | |
padding-top: 5px | |
} | |
} | |
.mt10 { | |
margin-top: 10px | |
} | |
.pt10 { | |
padding-top: 10px | |
} | |
@media (max-width: 768px) { | |
.xs-mt10 { | |
margin-top: 10px | |
} | |
.xs-pt10 { | |
padding-top: 10px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-mt10 { | |
margin-top: 10px | |
} | |
.sm-pt10 { | |
padding-top: 10px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-mt10 { | |
margin-top: 10px | |
} | |
.md-pt10 { | |
padding-top: 10px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-mt10 { | |
margin-top: 10px | |
} | |
.lg-pt10 { | |
padding-top: 10px | |
} | |
} | |
.mt20 { | |
margin-top: 20px | |
} | |
.pt20 { | |
padding-top: 20px | |
} | |
@media (max-width: 768px) { | |
.xs-mt20 { | |
margin-top: 20px | |
} | |
.xs-pt20 { | |
padding-top: 20px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-mt20 { | |
margin-top: 20px | |
} | |
.sm-pt20 { | |
padding-top: 20px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-mt20 { | |
margin-top: 20px | |
} | |
.md-pt20 { | |
padding-top: 20px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-mt20 { | |
margin-top: 20px | |
} | |
.lg-pt20 { | |
padding-top: 20px | |
} | |
} | |
.mt30 { | |
margin-top: 30px | |
} | |
.pt30 { | |
padding-top: 30px | |
} | |
@media (max-width: 768px) { | |
.xs-mt30 { | |
margin-top: 30px | |
} | |
.xs-pt30 { | |
padding-top: 30px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-mt30 { | |
margin-top: 30px | |
} | |
.sm-pt30 { | |
padding-top: 30px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-mt30 { | |
margin-top: 30px | |
} | |
.md-pt30 { | |
padding-top: 30px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-mt30 { | |
margin-top: 30px | |
} | |
.lg-pt30 { | |
padding-top: 30px | |
} | |
} | |
.mb5 { | |
margin-bottom: 5px | |
} | |
.pb5 { | |
padding-bottom: 5px | |
} | |
@media (max-width: 768px) { | |
.xs-mb5 { | |
margin-bottom: 5px | |
} | |
.xs-pb5 { | |
padding-bottom: 5px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-mb5 { | |
margin-bottom: 5px | |
} | |
.sm-pb5 { | |
padding-bottom: 5px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-mb5 { | |
margin-bottom: 5px | |
} | |
.md-pb5 { | |
padding-bottom: 5px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-mb5 { | |
margin-bottom: 5px | |
} | |
.lg-pb5 { | |
padding-bottom: 5px | |
} | |
} | |
.mb10 { | |
margin-bottom: 10px | |
} | |
.pb10 { | |
padding-bottom: 10px | |
} | |
@media (max-width: 768px) { | |
.xs-mb10 { | |
margin-bottom: 10px | |
} | |
.xs-pb10 { | |
padding-bottom: 10px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-mb10 { | |
margin-bottom: 10px | |
} | |
.sm-pb10 { | |
padding-bottom: 10px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-mb10 { | |
margin-bottom: 10px | |
} | |
.md-pb10 { | |
padding-bottom: 10px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-mb10 { | |
margin-bottom: 10px | |
} | |
.lg-pb10 { | |
padding-bottom: 10px | |
} | |
} | |
.mb20 { | |
margin-bottom: 20px | |
} | |
.pb20 { | |
padding-bottom: 20px | |
} | |
@media (max-width: 768px) { | |
.xs-mb20 { | |
margin-bottom: 20px | |
} | |
.xs-pb20 { | |
padding-bottom: 20px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-mb20 { | |
margin-bottom: 20px | |
} | |
.sm-pb20 { | |
padding-bottom: 20px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-mb20 { | |
margin-bottom: 20px | |
} | |
.md-pb20 { | |
padding-bottom: 20px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-mb20 { | |
margin-bottom: 20px | |
} | |
.lg-pb20 { | |
padding-bottom: 20px | |
} | |
} | |
.mb30 { | |
margin-bottom: 30px | |
} | |
.pb30 { | |
padding-bottom: 30px | |
} | |
@media (max-width: 768px) { | |
.xs-mb30 { | |
margin-bottom: 30px | |
} | |
.xs-pb30 { | |
padding-bottom: 30px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-mb30 { | |
margin-bottom: 30px | |
} | |
.sm-pb30 { | |
padding-bottom: 30px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-mb30 { | |
margin-bottom: 30px | |
} | |
.md-pb30 { | |
padding-bottom: 30px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-mb30 { | |
margin-bottom: 30px | |
} | |
.lg-pb30 { | |
padding-bottom: 30px | |
} | |
} | |
.ml5 { | |
margin-left: 5px | |
} | |
.pl5 { | |
padding-left: 5px | |
} | |
@media (max-width: 768px) { | |
.xs-ml5 { | |
margin-left: 5px | |
} | |
.xs-pl5 { | |
padding-left: 5px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-ml5 { | |
margin-left: 5px | |
} | |
.sm-pl5 { | |
padding-left: 5px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-ml5 { | |
margin-left: 5px | |
} | |
.md-pl5 { | |
padding-left: 5px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-ml5 { | |
margin-left: 5px | |
} | |
.lg-pl5 { | |
padding-left: 5px | |
} | |
} | |
.ml10 { | |
margin-left: 10px | |
} | |
.pl10 { | |
padding-left: 10px | |
} | |
@media (max-width: 768px) { | |
.xs-ml10 { | |
margin-left: 10px | |
} | |
.xs-pl10 { | |
padding-left: 10px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-ml10 { | |
margin-left: 10px | |
} | |
.sm-pl10 { | |
padding-left: 10px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-ml10 { | |
margin-left: 10px | |
} | |
.md-pl10 { | |
padding-left: 10px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-ml10 { | |
margin-left: 10px | |
} | |
.lg-pl10 { | |
padding-left: 10px | |
} | |
} | |
.ml20 { | |
margin-left: 20px | |
} | |
.pl20 { | |
padding-left: 20px | |
} | |
@media (max-width: 768px) { | |
.xs-ml20 { | |
margin-left: 20px | |
} | |
.xs-pl20 { | |
padding-left: 20px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-ml20 { | |
margin-left: 20px | |
} | |
.sm-pl20 { | |
padding-left: 20px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-ml20 { | |
margin-left: 20px | |
} | |
.md-pl20 { | |
padding-left: 20px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-ml20 { | |
margin-left: 20px | |
} | |
.lg-pl20 { | |
padding-left: 20px | |
} | |
} | |
.ml30 { | |
margin-left: 30px | |
} | |
.pl30 { | |
padding-left: 30px | |
} | |
@media (max-width: 768px) { | |
.xs-ml30 { | |
margin-left: 30px | |
} | |
.xs-pl30 { | |
padding-left: 30px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-ml30 { | |
margin-left: 30px | |
} | |
.sm-pl30 { | |
padding-left: 30px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-ml30 { | |
margin-left: 30px | |
} | |
.md-pl30 { | |
padding-left: 30px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-ml30 { | |
margin-left: 30px | |
} | |
.lg-pl30 { | |
padding-left: 30px | |
} | |
} | |
.mr5 { | |
margin-right: 5px | |
} | |
.pr5 { | |
padding-right: 5px | |
} | |
@media (max-width: 768px) { | |
.xs-mr5 { | |
margin-right: 5px | |
} | |
.xs-pr5 { | |
padding-right: 5px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-mr5 { | |
margin-right: 5px | |
} | |
.sm-pr5 { | |
padding-right: 5px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-mr5 { | |
margin-right: 5px | |
} | |
.md-pr5 { | |
padding-right: 5px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-mr5 { | |
margin-right: 5px | |
} | |
.lg-pr5 { | |
padding-right: 5px | |
} | |
} | |
.mr10 { | |
margin-right: 10px | |
} | |
.pr10 { | |
padding-right: 10px | |
} | |
@media (max-width: 768px) { | |
.xs-mr10 { | |
margin-right: 10px | |
} | |
.xs-pr10 { | |
padding-right: 10px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-mr10 { | |
margin-right: 10px | |
} | |
.sm-pr10 { | |
padding-right: 10px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-mr10 { | |
margin-right: 10px | |
} | |
.md-pr10 { | |
padding-right: 10px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-mr10 { | |
margin-right: 10px | |
} | |
.lg-pr10 { | |
padding-right: 10px | |
} | |
} | |
.mr20 { | |
margin-right: 20px | |
} | |
.pr20 { | |
padding-right: 20px | |
} | |
@media (max-width: 768px) { | |
.xs-mr20 { | |
margin-right: 20px | |
} | |
.xs-pr20 { | |
padding-right: 20px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-mr20 { | |
margin-right: 20px | |
} | |
.sm-pr20 { | |
padding-right: 20px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-mr20 { | |
margin-right: 20px | |
} | |
.md-pr20 { | |
padding-right: 20px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-mr20 { | |
margin-right: 20px | |
} | |
.lg-pr20 { | |
padding-right: 20px | |
} | |
} | |
.mr30 { | |
margin-right: 30px | |
} | |
.pr30 { | |
padding-right: 30px | |
} | |
@media (max-width: 768px) { | |
.xs-mr30 { | |
margin-right: 30px | |
} | |
.xs-pr30 { | |
padding-right: 30px | |
} | |
} | |
@media (min-width: 768px) { | |
.sm-mr30 { | |
margin-right: 30px | |
} | |
.sm-pr30 { | |
padding-right: 30px | |
} | |
} | |
@media (min-width: 992px) { | |
.md-mr30 { | |
margin-right: 30px | |
} | |
.md-pr30 { | |
padding-right: 30px | |
} | |
} | |
@media (min-width: 1000px) { | |
.lg-mr30 { | |
margin-right: 30px | |
} | |
.lg-pr30 { | |
padding-right: 30px | |
} | |
} | |
@-ms-viewport { | |
width: device-width | |
} | |
.visible-xs, | |
.visible-sm, | |
.visible-md, | |
.visible-lg { | |
display: none !important | |
} | |
.visible-xs-block, | |
.visible-xs-inline, | |
.visible-xs-inline-block, | |
.visible-sm-block, | |
.visible-sm-inline, | |
.visible-sm-inline-block, | |
.visible-md-block, | |
.visible-md-inline, | |
.visible-md-inline-block, | |
.visible-lg-block, | |
.visible-lg-inline, | |
.visible-lg-inline-block { | |
display: none !important | |
} | |
@media (max-width: 767px) { | |
.visible-xs { | |
display: block !important | |
} | |
table.visible-xs { | |
display: table | |
} | |
tr.visible-xs { | |
display: table-row !important | |
} | |
th.visible-xs, | |
td.visible-xs { | |
display: table-cell !important | |
} | |
} | |
@media (max-width: 767px) { | |
.visible-xs-block { | |
display: block !important | |
} | |
} | |
@media (max-width: 767px) { | |
.visible-xs-inline { | |
display: inline !important | |
} | |
} | |
@media (max-width: 767px) { | |
.visible-xs-inline-block { | |
display: inline-block !important | |
} | |
} | |
@media (min-width: 768px) and (max-width: 991px) { | |
.visible-sm { | |
display: block !important | |
} | |
table.visible-sm { | |
display: table | |
} | |
tr.visible-sm { | |
display: table-row !important | |
} | |
th.visible-sm, | |
td.visible-sm { | |
display: table-cell !important | |
} | |
} | |
@media (min-width: 768px) and (max-width: 991px) { | |
.visible-sm-block { | |
display: block !important | |
} | |
} | |
@media (min-width: 768px) and (max-width: 991px) { | |
.visible-sm-inline { | |
display: inline !important | |
} | |
} | |
@media (min-width: 768px) and (max-width: 991px) { | |
.visible-sm-inline-block { | |
display: inline-block !important | |
} | |
} | |
@media (min-width: 992px) and (max-width: 999px) { | |
.visible-md { | |
display: block !important | |
} | |
table.visible-md { | |
display: table | |
} | |
tr.visible-md { | |
display: table-row !important | |
} | |
th.visible-md, | |
td.visible-md { | |
display: table-cell !important | |
} | |
} | |
@media (min-width: 992px) and (max-width: 999px) { | |
.visible-md-block { | |
display: block !important | |
} | |
} | |
@media (min-width: 992px) and (max-width: 999px) { | |
.visible-md-inline { | |
display: inline !important | |
} | |
} | |
@media (min-width: 992px) and (max-width: 999px) { | |
.visible-md-inline-block { | |
display: inline-block !important | |
} | |
} | |
@media (min-width: 1000px) { | |
.visible-lg { | |
display: block !important | |
} | |
table.visible-lg { | |
display: table | |
} | |
tr.visible-lg { | |
display: table-row !important | |
} | |
th.visible-lg, | |
td.visible-lg { | |
display: table-cell !important | |
} | |
} | |
@media (min-width: 1000px) { | |
.visible-lg-block { | |
display: block !important | |
} | |
} | |
@media (min-width: 1000px) { | |
.visible-lg-inline { | |
display: inline !important | |
} | |
} | |
@media (min-width: 1000px) { | |
.visible-lg-inline-block { | |
display: inline-block !important | |
} | |
} | |
@media (max-width: 767px) { | |
.hidden-xs { | |
display: none !important | |
} | |
} | |
@media (min-width: 768px) and (max-width: 991px) { | |
.hidden-sm { | |
display: none !important | |
} | |
} | |
@media (min-width: 992px) and (max-width: 999px) { | |
.hidden-md { | |
display: none !important | |
} | |
} | |
@media (min-width: 1000px) { | |
.hidden-lg { | |
display: none !important | |
} | |
} | |
.visible-print { | |
display: none !important | |
} | |
@media print { | |
.visible-print { | |
display: block !important | |
} | |
table.visible-print { | |
display: table | |
} | |
tr.visible-print { | |
display: table-row !important | |
} | |
th.visible-print, | |
td.visible-print { | |
display: table-cell !important | |
} | |
} | |
.visible-print-block { | |
display: none !important | |
} | |
@media print { | |
.visible-print-block { | |
display: block !important | |
} | |
} | |
.visible-print-inline { | |
display: none !important | |
} | |
@media print { | |
.visible-print-inline { | |
display: inline !important | |
} | |
} | |
.visible-print-inline-block { | |
display: none !important | |
} | |
@media print { | |
.visible-print-inline-block { | |
display: inline-block !important | |
} | |
} | |
@media print { | |
.hidden-print { | |
display: none !important | |
} | |
} | |
.taglist { | |
margin: 40px 0; | |
} | |
.taglist:before, .taglist:after { | |
content: " "; | |
display: table; | |
} | |
.taglist:after { | |
clear: both; | |
} | |
.taglist .title { | |
font-size: 12px; | |
display: inline-block; | |
color: #888; | |
padding: 0 10px 0 0; | |
} | |
.taglist .tag { | |
font-size: 13px; | |
display: inline-block; | |
background-color: #eee; | |
color: #000; | |
text-decoration: none; | |
padding: 5px 10px; | |
margin: 0 5px 5px | |
} | |
.taglist .tag:hover, .taglist .tag:active, .taglist .tag:focus { | |
background-color: #000; | |
color: #fff | |
} | |
</style> | |
<meta name="robots" content="noindex"> | |
<style type="text/css"> | |
[[+toPDF:is=`1`:then=`*{font-family: DejaVu Sans;font-size:12px}small{font-size:8px}body { | |
line-height: 1;}`:else=`body { | |
font-family: "Open Sans", sans-serif; | |
font-size: 14px; | |
line-height: 1.32;}`]] | |
body{width:100%;margin:0;padding-top:10px;font-size:14px} | |
@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}} | |
@media print { | |
.header-left-top, .a-right-bottom, .time-right-bottom, button, .margin-control { | |
display: none; | |
} | |
} | |
.ppp td{padding:5px;} | |
/* Custom container */ | |
.container { | |
margin: 0 auto; | |
width:100%; | |
} | |
.container-narrow > hr { | |
margin: 30px 0; | |
} | |
.border { | |
border: 1px solid #000; | |
} | |
.border-top { | |
border-top: 1px solid #000; | |
} | |
.pp { | |
width:100%; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<table style="width:100%"> | |
<tr> | |
<td class="text-center"> | |
<b>Внимание! Оплата данного счёта означает согласие с условиями поставки товара и оказания услуг. Уведомление об оплате обязательно. Товар отпускается, а услуги оказываются только по факту прихода денег на р/с Поставщика (Исполнителя).</b> | |
</td> | |
</tr> | |
<tr><td> </td></tr> | |
<tr> | |
<td> | |
<b>Счёт действителен при выполнении следующих условий:</b> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<div class="offset1">- сумма платежа строго соответствует указанной в счёте и составляет [[+amount]] руб.;</div> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<div class="offset1">- платеж произведен в течение 3-х банковских дней с даты его выставления.</div> | |
</td> | |
</tr> | |
<tr><td> </td></tr> | |
<tr> | |
<td class="text-center"> | |
<b></b> | |
</td> | |
</tr> | |
<tr><td> </td></tr> | |
<tr> | |
<td> | |
<div class="text-center"><b>Образец заполнения платежного поручения</b></div> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<table class="pp border"> | |
<tr> | |
<td class="border" style="width: 30%;">ИНН [[++company_inn]]</td> | |
<td class="border" style="width: 30%;">КПП [[++company_kpp]]</td> | |
<td class="border text-center" style="width: 10%;" rowspan="3" valign="bottom">Р/Сч. №</td> | |
<td class="border" style="width: 30%;" rowspan="3" valign="bottom">[[++company_rs]]</td> | |
</tr> | |
<tr> | |
<td colspan="2">Получатель</td> | |
</tr> | |
<tr> | |
<td colspan="2">[[++company_name]] ОГРН [[++company_ogrn]]</td> | |
</tr> | |
<tr class="border-top"> | |
<td colspan="2" style="border-top:1px solid #000;">Банк получателя</td> | |
<td class="border text-center">БИК</td> | |
<td>[[++company_bik]]</td> | |
</tr> | |
<tr> | |
<td colspan="2">[[++company_bank]]</td> | |
<td class="border text-center" valign="top">К/Сч. №</td> | |
<td valign="top">[[++company_ks]]</td> | |
</tr> | |
</table> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<h2>СЧЁТ №[[+number]] от [[+date]]</h2> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<div style="width:100%;border-top:1px solid;height:20px"></div> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<table> | |
<tr> | |
<td valign="top"><b>Поставщик:<br><small><small>(Исполнитель)</small></small> </b></td> | |
<td> <b>ИНН/КПП [[++company_inn]] / [[++company_kpp]] [[++company_name]], [[++company_address]], тел. [[#4.phone1]]</b> | |
</td> | |
</tr> | |
<tr> | |
<td valign="top"><b>Покупатель:<br><small><small>(Заказчик)</small></small> </b></td> | |
<td> <b>ИНН/КПП [[+inn]] / [[+kpp]] [[+fullname]], [[+address]], тел. [[+phone]]</b> | |
</td> | |
</tr> | |
</table> | |
</td> | |
</tr> | |
<tr><td> </td></tr> | |
<tr> | |
<td> | |
<table class="pp ppp" cellpadding="4"> | |
<tr> | |
<td class="border text-center" style="width:5%">№</td> | |
<td class="border text-center" style="width:48%">Наименование<br>товара</td> | |
<td class="border text-center" style="width:9%">Единица<br>изме-<br>рения</td> | |
<td class="border text-center" style="width:7%">Коли-<br>чество</td> | |
<td class="border text-center" style="width:14%">Цена</td> | |
<td class="border text-center" style="width:17%">Сумма</td> | |
</tr> | |
<tr> | |
<td class="border text-right" valign="top">1</td> | |
<td class="border">Внесение аванса в счёт предоставления информационных услуг о заявках/запросах клиентов Поставщика (Исполнителя) на оказание услуг эвакуации транспортных средств и прочей технической помощи на дорогах</td> | |
<td class="border text-center" valign="bottom">услуга</td> | |
<td class="border text-right" valign="bottom">1</td> | |
<td class="border text-right" valign="bottom">[[+amount_rub]]-[[+amount_kop]]</td> | |
<td class="border text-right" valign="bottom">[[+amount_rub]]-[[+amount_kop]]</td> | |
</tr> | |
<tr> | |
<td class="text-right" colspan="5"><b>Итого:</b></td> | |
<td class="border text-right"><b>[[+amount_rub]]-[[+amount_kop]]</b></td> | |
</tr> | |
<tr> | |
<td class="text-right" colspan="5"><b>Без налога (НДС).</b></td> | |
<td class="border text-right"><b> | |
-</b></td> | |
</tr> | |
<tr> | |
<td class="text-right" colspan="5"><b>Всего к оплате:</b></td> | |
<td class="border text-right"><b>[[+amount_rub]]-[[+amount_kop]]</b></td> | |
</tr> | |
</table> | |
</td> | |
</tr> | |
<tr><td> </td></tr> | |
<tr> | |
<td> | |
Всего наименований 1, на сумму [[+amount]] руб. <br> | |
<b>[[+amount_string]]</b> | |
</td> | |
</tr> | |
<tr><td> </td></tr> | |
<tr><td><div style="width:100%;border-top:1px solid;height:30px"></div></td></tr> | |
</table> | |
<div class="clear clearfix"></div> | |
<div> | |
<img src="[[+toPDF:is=`1`:then=`[[++assets_path]]img/pechat_ooo.gif`:else=`/assets/img/pechat_ooo.gif`]]" style="max-width:100%;width:648px;height:205px" width="648" height="205" alt=""> | |
</div> | |
</div> | |
[[+toPDF:ne=`1`:then=` | |
<div style="text-align:center;width:100%"> | |
<button style="text-align:center;margin:10px auto;font-size:20px;color:yellow;background-color:#000" onclick="window.print();return false;">Распечатать</button> | |
</div> | |
`]] | |
</body> | |
</html> |
This file contains hidden or 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 (!$_GET['uid']) { | |
$modx->sendUnauthorizedPage(); | |
} | |
if(!is_numeric($_GET['uid'])){ | |
$modx->sendUnauthorizedPage(); | |
} | |
//защита от перебора номеров квитанций | |
//$_SESSION['trampampam']['getPlatezka'] = 0;//TODO: временно для разработки | |
if(!$_SESSION['trampampam']['getPlatezka']) $_SESSION['trampampam']['getPlatezka'] = 0; | |
if($_SESSION['trampampam']['getPlatezka'] >= 7){ | |
$modx->sendUnauthorizedPage(); | |
} | |
$modx->addPackage('Evacuators', $modx->getOption('core_path') . 'components/Evacuators/model/', ''); | |
$order_id = (int)$_GET['uid']; | |
//////////////////////////////////////////////////////////////// | |
function num2str($num) { | |
$nul='ноль'; | |
$ten=array( | |
array('','один','два','три','четыре','пять','шесть','семь', 'восемь','девять'), | |
array('','одна','две','три','четыре','пять','шесть','семь', 'восемь','девять'), | |
); | |
$a20=array('десять','одиннадцать','двенадцать','тринадцать','четырнадцать' ,'пятнадцать','шестнадцать','семнадцать','восемнадцать','девятнадцать'); | |
$tens=array(2=>'двадцать','тридцать','сорок','пятьдесят','шестьдесят','семьдесят' ,'восемьдесят','девяносто'); | |
$hundred=array('','сто','двести','триста','четыреста','пятьсот','шестьсот', 'семьсот','восемьсот','девятьсот'); | |
$unit=array( // Units | |
array('копейка' ,'копейки' ,'копеек', 1), | |
array('рубль' ,'рубля' ,'рублей' ,0), | |
array('тысяча' ,'тысячи' ,'тысяч' ,1), | |
array('миллион' ,'миллиона','миллионов' ,0), | |
array('миллиард','милиарда','миллиардов',0), | |
); | |
// | |
list($rub,$kop) = explode('.',sprintf("%015.2f", floatval($num))); | |
$out = array(); | |
if (intval($rub)>0) { | |
foreach(str_split($rub,3) as $uk=>$v) { // by 3 symbols | |
if (!intval($v)) continue; | |
$uk = sizeof($unit)-$uk-1; // unit key | |
$gender = $unit[$uk][3]; | |
list($i1,$i2,$i3) = array_map('intval',str_split($v,1)); | |
// mega-logic | |
$out[] = $hundred[$i1]; # 1xx-9xx | |
if ($i2>1) $out[]= $tens[$i2].' '.$ten[$gender][$i3]; # 20-99 | |
else $out[]= $i2>0 ? $a20[$i3] : $ten[$gender][$i3]; # 10-19 | 1-9 | |
// units without rub & kop | |
if ($uk>1) $out[]= morph($v,$unit[$uk][0],$unit[$uk][1],$unit[$uk][2]); | |
} //foreach | |
} | |
else $out[] = $nul; | |
$out[] = morph(intval($rub), $unit[1][0],$unit[1][1],$unit[1][2]); // rub | |
$out[] = $kop.' '.morph($kop,$unit[0][0],$unit[0][1],$unit[0][2]); // kop | |
return trim(preg_replace('/ {2,}/', ' ', join(' ',$out))); | |
} | |
/** | |
* Склоняем словоформу | |
* @ author runcore | |
*/ | |
function morph($n, $f1, $f2, $f5) { | |
$n = abs(intval($n)) % 100; | |
if ($n>10 && $n<20) return $f5; | |
$n = $n % 10; | |
if ($n>1 && $n<5) return $f2; | |
if ($n==1) return $f1; | |
return $f5; | |
} | |
//////////////////////////////////////////////////////////////// | |
if($order = $modx->getObject('EvacuatorsPaidsBeznal', array('order_id' => $order_id))){ | |
if(!$order->published){ | |
$modx->sendErrorPage(); | |
return; | |
} | |
$html = <<<'ENDHTML' | |
<html> | |
<head> | |
<meta name="robots" content="noindex"> | |
<title>Квитанция</title></head> | |
<body><h3>оплачено и учтено</h3></body> | |
</html> | |
ENDHTML; | |
if($order->status) die($html); | |
$user_id = $order->user_id; | |
$amount = $order->amount; | |
$date = date('d.m.Y г.', $order->createtime); | |
$amount_rub = $amount; | |
$amount_kop = 0; | |
$amount_string = num2str($amount); | |
if(is_float($amount)){ | |
$amount = explode('.', $amount); | |
$amount_rub = $amount[0]; | |
$amount_kop = ($amount[1]) ? $amount[1] : '00'; | |
} | |
//проверка профиля пользователя | |
if(!$profile = $modx->getObject('modUserProfile', array('internalKey' => $user_id))){ | |
$modx->sendErrorPage(); | |
return; | |
} | |
//телефон и ФИО из профиля пользователя | |
$phone = $profile->mobilephone; | |
$fio = $profile->fullname; | |
if($extended = $profile->extended){ | |
$extended = json_decode($extended, true); | |
if(is_array($extended)){ | |
//выставляем плэйсхолдеры | |
$modx->toPlaceholders(array( | |
'inn' => $extended['inn'], | |
'kpp' => $extended['kpp'] | |
)); | |
} | |
} | |
//выставляем плэйсхолдеры | |
$modx->toPlaceholders(array( | |
'fio' => $fio, | |
'fullname' => $fio, | |
'phone' => $phone, | |
'amount' => $order->amount, | |
'address' => $profile->address, | |
'type' => ($profile->fax) ? $profile->fax : 'fizic', | |
'amount_rub' => $amount_rub, | |
'amount_kop' => $amount_kop, | |
'amount_string' => $amount_string, | |
'date' => $date, | |
'number' => $order_id, | |
'toPDF' => ($_GET['topdf']) ? true : false | |
)); | |
} | |
else{ | |
//прибавляем неудачную попытку | |
$_SESSION['trampampam']['getPlatezka']++; | |
$modx->sendUnauthorizedPage(); | |
} | |
return; |
This file contains hidden or 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 | |
/* | |
* конвертация квитанции в PDF с сохранением файла в директории | |
* используется библиотека Dompdf | |
*/ | |
//шлём заголовки | |
header('Access-Control-Allow-Origin: *'); | |
header('Content-type: application/json; charset=utf-8'); | |
require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/index.php'; | |
require_once $modx->getOption('assets_path'). 'components/dompdf/autoload.inc.php'; | |
use Dompdf\Dompdf; | |
if (!$modx->user->isAuthenticated('web')) { | |
$out = array('success' => false, 'message' => 'Вы не авторизованы!'); | |
die(json_encode($out)); | |
} | |
$modx->addPackage('Evacuators', $modx->getOption('core_path') . 'components/Evacuators/model/', ''); | |
switch($_POST['action']){ | |
case 'getbeznal': | |
date_default_timezone_set('UTC+3'); | |
$amount = floatval(str_replace(array(' ', ','), array('', '.'), $_POST['amount'])); | |
$order_id = $modx->user->id . date('dmYHis'); | |
if(!$amount){ | |
$out = array('success' => false, 'message' => 'Не указана сумма пополнения счёта!'); | |
die(json_encode($out)); | |
} | |
if(!$modx->getObject('EvacuatorsPaidsBeznal', array('user_id' => $modx->user->id, 'order_id' => $order_id))){ | |
$newOrder = $modx->newObject('EvacuatorsPaidsBeznal'); | |
$newOrder->set('user_id', $modx->user->id); | |
$newOrder->set('order_id', $order_id); | |
$newOrder->set('amount', $amount); | |
$newOrder->set('createtime', time()); | |
if(!$user = $modx->getObject('modUserProfile', array('internalKey' => $modx->user->id))){ | |
$out = array('success' => false); | |
die(json_encode($out)); | |
} | |
$user_type = ($user->fax) ? $user->fax : 'fizic'; | |
$newOrder->set('type', $user_type); | |
if(!$newOrder->getOne('EvacuatorsBalance')){ | |
$balance = $modx->newObject('EvacuatorsBalance'); | |
$balance->set('createtime', time()); | |
$balance->set('user_id', $modx->user->id); | |
$newOrder->addOne($balance); | |
} | |
if(!$newOrder->save()){ | |
$out = array('success' => false); | |
die(json_encode($out)); | |
} | |
$url = $modx->makeUrl(59, '', array('uid' => $order_id), 'full'); | |
$url_pdf = ''; | |
if($html = file_get_contents($url . '&topdf=1')){ | |
// instantiate and use the dompdf class | |
if($dompdf = new Dompdf()){ | |
$dompdf->set_option('isHtml5ParserEnabled', true); | |
$dompdf->load_html($html); | |
$dompdf->setPaper('A4', 'portrait'); | |
$dompdf->render(); | |
$path_pdf = $modx->getOption('assets_path') . 'receipts/'; | |
$innerPath_pdf = $modx->user->id; | |
if(!file_exists($path_pdf . $innerPath_pdf)) { | |
mkdir($path_pdf . $innerPath_pdf, 0755); | |
} | |
if(file_put_contents($path_pdf . $innerPath_pdf . '/' . $order_id .'.pdf', $dompdf->output())){ | |
$url_pdf = $_SERVER['HTTP_ORIGIN'] . $modx->getOption('assets_url') . 'receipts/' . $innerPath_pdf . '/' . $order_id .'.pdf'; | |
} | |
} | |
} | |
$out = array('success' => true, 'order_id' => $order_id, 'url' => $url, 'url_pdf' => $url_pdf); | |
die(json_encode($out)); | |
} | |
$out = array('success' => false, 'message' => 'Счёт уже был выставлен!'); | |
die(json_encode($out)); | |
break; | |
} | |
$out = array('success' => false, 'message' => 'Пустой запрос'); | |
die(json_encode($out)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment