This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @avg_price = ( SELECT avg( price ) AS av_pr | |
FROM product_items ); | |
SELECT | |
count( o.id ) orders_per_day, | |
'заказов в категории товара' AS c1, | |
CASE | |
WHEN pi.price < @avg_price - 2000 | |
THEN 'ДЕШЕВЫЙ' | |
WHEN pi.price > @avg_price - 2000 AND pi.price < @avg_price + 2000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// without loop | |
function getTimeString1() | |
{ | |
$keys = [2, 1, 0, 0, 0, 2]; | |
$timeSigns = ['H','i','s']; | |
$hoursSufx = [" часa ", " час ", " часов "]; | |
$minutesSufx =[" минуты ", " минутa ", " минут "]; | |
$secondsSufx = [" секунды ", " секунда ", " секунд "]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
require_once(__DIR__.'/abc/second.php'); | |
echo 'Call from "first.php. cwd: "'.getcwd().'<br>'; | |
echo 'Call from "first.php. __DIR__: "'.__DIR__.'<br>'; | |
/* | |
Иными словами текущая папка не зависит от того из какого файла мы(программисты, скажем так, в момент компиляции в байт код) смотрим на текущую директорию, текущая папка зависит от того | |
*из какого файла на нее смотрит наша программа в рантайме, то есть в момент работы программы.Если запустить сразу second.php | |
*то текущая папка будет иной, а абсолютный путь __DIR__ всегда будет неизменным | |
*__DIR__ contains absolute path to directory where executed file exists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, | |
body { | |
width: 300px; | |
margin: 0; | |
padding: 0; | |
font-size: 18px; | |
font-family: "Arial", sans-serif; | |
background: #ecf0f1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, | |
body { | |
width: 300px; | |
margin: 0; | |
padding: 0; | |
font-size: 18px; | |
font-family: "Arial", sans-serif; | |
background: #ecf0f1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
form.cn{ | |
width: 60%; | |
margin: 0 auto; | |
font-size: 16px; | |
} | |
.cn-Wrapper-halfWidth{ | |
width: auto; | |
} | |
.cn-Fieldset{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, | |
body { | |
margin: 0; | |
padding: 0; | |
font-family: "Arial", sans-serif; | |
} | |
body { | |
min-width: 550px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.footer-middle, | |
.footer-bottom { | |
border-top: 1px solid #5e5e5e; | |
} | |
.footer-title{ | |
font-family:"Georgia", serif; | |
font-size: 24px; | |
font-weight: bold; | |
color: #a38b70; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul:nth-last-child(2)>li{ | |
background-color:#ff3300; | |
} | |
li:nth-last-child(2){ | |
background-color:#339933; | |
} | |
ul:nth-last-child(2)>li:nth-last-child(2){ | |
background-color:#0099ff; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.cards li:not(.king){ | |
background-color:#808080; | |
} | |
.cards li:not(.diamond){ | |
background-color: #0099ff; | |
} | |
.cards li:not(:first-child){ | |
font-family: "Arial", sans-serif | |
} |
NewerOlder