select("*","WHERE {$table->name}.is_activated='1' ORDER BY `arrange` DESC"); $_id = $_GET['id']; if($_id==''){$_id=$M[0]["id"];} if($_id!=''){ $video = $table->selectrow("*","WHERE {$table->name}.is_activated='1' AND `id`='".$_id."' ORDER BY `arrange` DESC"); } $file_record = $table_file->selectRow('*',"WHERE video_id = '{$video['id']}'"); $category_table = table("product_category"); $table = table("product"); $table_file = table("product_file"); if($_SESSION['member']=='memlog'){$member_login="";}else{$member_login=" AND `is_vip`='0' ";} $sub_p=$table->select("*","WHERE {$table->name}.is_activated='1' AND `is_hot`='1' ".$member_login." ORDER BY RAND() LIMIT 4"); foreach($sub_p as $ll=>$img_r){ $sub_cat = $category_table->selectrow("parent_id","WHERE {$category_table->name}.id='".$img_r['category_id']."' AND `is_activated`='1' ORDER BY `arrange` DESC"); $sub_p[$ll]['cid'] = $sub_cat["parent_id"]; $files = $table_file->select('id, filename, caption,is_show_home',"WHERE `product_id` = '{$img_r['id']}' ORDER BY arrange DESC"); $sub_p[$ll]['image'] = $files[0]['filename'] ? "getimage.php?size=92x92&bgcolor=0x000000&location=file/product/".$files[0]['filename'] : ''; //$sub_p[$ll]['LImage'] = $files[0]['filename'] ? "getimage.php?size=600x500&is_crop=0&location=file/product/".$files[0]['filename'] : ''; } ?> Home | Acarda
  •  
    $img_r){ ?>

  • I'm sorry that our content requires Adobe Flash Player.

    Get Adobe Flash player

    Please download flash player here.

FOR GLOBAL BRAND