Файл: Kagao-v3.0/upload/init/productsearch.php
Строк: 40
<?php
//Product-Search V1
//Kogao 3.0.5
$open = file_get_contents('http://kogaoscript.com/api/itemsearch/?q=' . urlencode($_POST['val']));
$json = json_decode($open);
?>
<?php
foreach($json as $key => $value){
    switch($key){
        
        case 3:
        case 7:
        case 11:
        case 15:
        case 19:
        case 23:
            $addCSS = '';
        break;
        
        default:
            $addCSS = 'border-right:1px solid #e2e2e2;';
        break;
            
    }
?>
<div style="float:left; width:153px; padding:20px 38px;<?php echo $addCSS; ?> border-bottom:1px solid #e2e2e2; padding-top:20px;" class="itemSearch_<?php echo $key; ?> allIteamsHide">
    <div style="float:left;">
        <div style="float:left; width:145px; height:145px; background:url(<?php echo $value->prodcut_photo_big; ?>) no-repeat center; background-size:145px auto;"></div>
    </div>
    <div style="float:left; clear:both; padding-top:10px; width:145px; height:80px;" align="center"><?php echo $value->product_name; ?></div>
    <div style="float:left; clear:both; width:145px; font-weight:bold; color:#666;" align="center"><?php echo $value->product_category; ?></div>
    <div style="float:left; clear:both; padding-top:10px; width:145px;" align="center" class="hideallButtons"><input type="submit" value="Artikel auswählen" onclick="showonly('<?php echo $key; ?>')" style="border:0px solid #6e7cc5; cursor:pointer; background:#8ab31d; padding:7px 8px; font-size:14px; color:#fff; font-weight:bold; border-radius:3px; font-family:arial;"></div>
</div>
<?php
    
}
?>
<script>
function showonly(i){
    jQuery('.allIteamsHide, .hideallButtons').hide();
    jQuery('.itemSearch_' + i).show();    
}
</script>