correct gramm

This commit is contained in:
arlemp@selectel.ru
2022-02-03 17:58:35 +03:00
parent 0be1cf1139
commit df1bbc481e
5 changed files with 19 additions and 6 deletions

View File

@@ -113,8 +113,10 @@ function client_status_sub($client_id, $client_group = 3){
} }
$findsql = "SELECT number_id FROM `anbuy` WHERE `client_id` = '$client_id' AND `number_id` = '486' AND `buy_status` = '1' LIMIT 1"; $findsql = "SELECT number_id FROM `anbuy` WHERE `client_id` = '$client_id' AND `number_id` = '486' AND `buy_status` = '1' LIMIT 1";
// echo $findsql;
$findsub = db_get($findsql); $findsub = db_get($findsql);
//print_r($findsub);
if (isset($findsub['number_id'])){ if (isset($findsub['number_id'])){
return True; return True;

View File

@@ -48,7 +48,7 @@ function checkout_kuri($priceslug, $delivery_id = 1){
} }
else { else {
$price = $price_id['offline_price']; // бумажный прайс $price = $price_id['offline_price']; // бумажный прайс
$delivery = delivery_list(); // список доставок для бумажной версии $delivery = delivery_list($price_id['weight']); // список доставок для бумажной версии
} }
@@ -308,17 +308,26 @@ function status_kuri($order_id){
} }
function delivery_list() { function delivery_list($weight = 250) {
$result = []; $result = [];
$delivery = db_get("SELECT * FROM delivery WHERE delivery_id > 1"); $delivery = db_get("SELECT * FROM delivery WHERE delivery_id > 1");
foreach ($delivery as $del){ foreach ($delivery as $del){
$key = $del['delivery_id']; $key = $del['delivery_id'];
$result[$key] = $del; $result[$key] = $del;
if ($del['delivery_id'] == 4){
if ($weight > 250){
$result[$key]['delivery_price'] = 450;
}
}
} }
return $result; return $result;

View File

@@ -50,6 +50,7 @@ function pdfs_init($source, $page = 1){
$name = pdfs_hash($source); $name = pdfs_hash($source);
$cachedir = PGDIR.$name.'/'; $cachedir = PGDIR.$name.'/';
//echo $cachedir;
$cachefile = $name.'-'.$page.'.pdf'; $cachefile = $name.'-'.$page.'.pdf';
$fullcachefile = $cachedir.$cachefile; $fullcachefile = $cachedir.$cachefile;

View File

@@ -71,8 +71,9 @@
<p><em>*Куда придет информация о заказе</em></p> <p><em>*Куда придет информация о заказе</em></p>
<p><input style="border: solid 1px #ccc;border-radius:3px;" 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 style="font-weight: bold;font-size: 22px;"><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")?>" type="text"></p> <p><input id="buy_name" name="buy_name" value="<?=post_value("buy_name")?>" type="text"></p>

View File

@@ -3,4 +3,4 @@
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/root PATH=/bin:/sbin:/usr/bin:/usr/sbin:/root
PATH=$PATH:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin PATH=$PATH:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
docker exec ds_fpm php /thosts/anpdf/app/index.php sendstatus docker exec arlemp_pdftk_1 php /vhosts/anpdf/app/index.php sendstatus