add new styles

This commit is contained in:
Your Name
2021-07-06 20:30:30 +03:00
parent 3414378534
commit ab187faefa
4 changed files with 37 additions and 35 deletions

View File

@@ -229,7 +229,14 @@ h1 {
#downarrow{ #downarrow{
padding: 8px 0px 8px 8px; padding: 8px 0px 8px 8px;
} }
.adress_box {
background: white;
width: calc(100% - 50px);
padding: 10px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 3px;
}
#stuff-bar { #stuff-bar {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -309,7 +316,7 @@ h1 {
font-weight: bold; font-weight: bold;
color: #181716; color: #181716;
} }
input[type="email"],input[type="password"]{ input[type="email"],input[type="password"], input[type="text"], input[type="tel"]{
background: #fff; background: #fff;
transition: all 800ms; transition: all 800ms;
width: calc(100% - 50px); width: calc(100% - 50px);

View File

@@ -224,8 +224,8 @@ function checkout_kuri($priceslug, $delivery_id = 1){
$submit_link = SITE."checkout/$priceslug/$delivery_id"; $submit_link = SITE."checkout/$priceslug/$delivery_id";
include VIEWPATH.'checkout.phtml'; $tempcontent = VIEWPATH.'checkout.phtml';
include VIEWPATH.'layout_pay.phtml';
} }
@@ -249,8 +249,10 @@ function status_kuri($order_id){
$buy_id = db_get($buy_find); $buy_id = db_get($buy_find);
include(VIEWPATH.'order_status.phtml'); //$tempcontent = VIEWPATH.'order_status.phtml';
//include VIEWPATH.'order_status.phtml';
$tempcontent = VIEWPATH.'order_status.phtml';
include VIEWPATH.'layout_pay.phtml';
} }

View File

@@ -11,13 +11,13 @@
if (myRadio.value == 2){ if (myRadio.value == 2){
itog = product_price; itog = product_price;
document.getElementById("form_adress").style.visibility='hidden'; document.getElementById("form_adress").style.display='none';
document.getElementById("form_samo").style.visibility='visible'; document.getElementById("form_samo").style.display='block';
} }
else if(myRadio.value == 3){ else if(myRadio.value == 3){
itog = product_price + 300; itog = product_price + 300;
document.getElementById("form_adress").style.visibility='visible'; document.getElementById("form_adress").style.display='block';
document.getElementById("form_samo").style.visibility='hidden'; document.getElementById("form_samo").style.display='none';
} }
itog_el.innerHTML = itog + ' руб.'; itog_el.innerHTML = itog + ' руб.';
@@ -41,23 +41,22 @@
<?endif?> <?endif?>
<p><label for="clientmail">Ваш электронный адрес:</label><br> <h1 style="text-align:left;"><label for="clientmail">Ваш электронный адрес*:</label></h1>
<em>Куда придет информация о заказе</em> <p><em>*Куда придет информация о заказе</em></p>
</p>
<p><input type="email" id="clientemail" name="clientmail" value="<?=post_value("clientmail")?>"></p> <p><input style="border: solid 1px #ccc;border-radius:3px;" type="email" id="clientemail" name="clientmail" value="<?=post_value("clientmail")?>"></p>
<?if($delivery_id > 1):?> <?if($delivery_id > 1):?>
<p><label for="buy_adress">Ваше имя:</label><br></p> <p style="font-weight: bold;font-size: 22px;"><label for="buy_adress">Ваше имя:</label><br></p>
<p><input id="buy_name" name="buy_name" value="<?=post_value("buy_name")?>"></p> <p><input id="buy_name" name="buy_name" value="<?=post_value("buy_name")?>" type="text"></p>
<p><label for="buy_tel">Телефон для связи:</label><br> <p style="font-weight: bold;font-size: 22px;"><label for="buy_tel">Телефон для связи*:</label></p>
<em>Для подтверждения заказа</em> <p><em>*Для подтверждения заказа</em></p>
</p>
<p><input id="buy_tel" name="buy_tel" value="<?=post_value("buy_tel")?>"></textarea></p>
<p><label for="devilery_id">Доставка:</label></p> <p><input id="buy_tel" name="buy_tel" value="<?=post_value("buy_tel")?>" type="text"></textarea></p>
<p style="font-weight: bold;font-size: 22px;"><label for="devilery_id">Доставка:</label></p>
<?foreach($delivery as $ditem):?> <?foreach($delivery as $ditem):?>
<?$dd++; <?$dd++;
@@ -70,18 +69,18 @@
</p> </p>
<?endforeach?> <?endforeach?>
<div id="form_samo" style="visibility: <?= ($delivery_id == 2) ? 'visible' : 'hidden' ?>;"> <div id="form_samo" class="adress_box" style="display: <?= ($delivery_id == 2) ? 'block' : 'none' ?>;">
<p>Адрес:</p> <p style="margin:0px;">Адрес:</p>
<p>Москва, Авиационный переулок, д. 4А</p> <p>Москва, Авиационный переулок, д. 4А</p>
</div> </div>
<div id="form_adress" style="visibility: <?= ($delivery_id == 3 or $delivery_id == 4) ? 'visible' : 'hidden' ?>;"> <div id="form_adress" class="adress_box" style="display: <?= ($delivery_id == 3 or $delivery_id == 4) ? 'block' : 'none' ?>;">
<p><label for="buy_adress">Адрес:</label></p> <p style="margin:0px;"><label for="buy_adress">Адрес:</label></p>
<p><textarea id="buy_adress" name="buy_adress" placeholder="Адрес в свободной форме" value="<?=post_value("buy_adress")?>"></textarea></p> <p><textarea id="buy_adress" style="width:100%;height:70px;font-size:15px;" name="buy_adress" placeholder="Адрес в свободной форме" value="<?=post_value("buy_adress")?>"></textarea></p>
</div> </div>
<div id="form_pay"> <div id="form_pay">
<p><label for="buy_adress">Оплата:</label></p> <p style="font-weight: bold;font-size: 22px;"><label for="buy_adress">Оплата:</label></p>
<?foreach($pay_ids as $pkey=>$pitem):?> <?foreach($pay_ids as $pkey=>$pitem):?>
<?$p++; <?$p++;
$pchecked = ($pkey == $pay_id) ? ' checked': '';?> $pchecked = ($pkey == $pay_id) ? ' checked': '';?>
@@ -97,7 +96,7 @@
<?endif?> <?endif?>
<p><label>Нажимая кнопку «Купить», я соглашаюсь <a href="https://argumenti.ru/subscribe_condition">с условиями получения услуги</a></label></p> <p><label>Нажимая кнопку «Купить», я соглашаюсь <a href="https://argumenti.ru/subscribe_condition">с условиями получения услуги</a></label></p>
<p><input type="submit" id="submit" value="Купить"></p> <p><input style="background: #555555;color: white;width: 30%;cursor: pointer;padding: 0;font-weight: 700;font-size: 15px;border-radius: 3px;border: 0;line-height: 0;display: block;outline: none;height: 35px;" type="submit" id="submit" value="Купить"></p>
</form> </form>

View File

@@ -115,13 +115,7 @@ else {
<?if ($checklogin['error'] == 'client not found'):?> <?if ($checklogin['error'] == 'client not found'):?>
<div id="smi_teaser_13132" style="width:100%;">
<center>
<a href="https://24smi.info/?utm_source=informer_13132">
Агрегатор новостей 24СМИ
</a>
</center>
</div>
<script type="text/JavaScript" encoding="utf8"> <script type="text/JavaScript" encoding="utf8">
(function() { (function() {