<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php include_once("php/analytics_tracking.php");?> </head> <body> <?php //Query $inID = $_GET['id']; $inLang = $_GET['lang']; $query = "SELECT * FROM brands WHERE id=$inID AND lang='$inLang'"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result) or die(mysql_error()); ?> <div class="clearfix" style="padding: 10px 15px;"> <div id="brandImage"> <div id="image"> <?php if(isset($row['logo'])) { $image = cleanUpURL($row['logo']); } else { $image = "../images/na.png"; } ?> <img src="<?php echo "php/show_image.php?size=300&file=../".$image;?>" alt="<?php echo $row['name'];?>" name="title_img" id="title_img" width="200" height="200" border="0"/><br /> </div> </div> <div id="brandInfo"> <h1><?php echo $row['name'];?></h1> <?php echo $row['content'];?> </div> </div> <br /> <?php include("brand_product_list.php"); //Docs $query_docs= "SELECT * FROM documents WHERE parent_type='".$doctype."' AND parent_id='". $inID."'"; $result_docs = mysql_query($query_docs) or die(mysql_error()); $numrowsDocs = mysql_num_rows($result_docs); if($numrowsDocs>0) { ?> <div class="categoryBox clearfix"> <h3>Downloads</h3> <?php global $docsShown; $docsShown = 1; foreach($doctypes as $doct) { $img_doc = ""; $name_doc = $doct['name']; $q_docs= "SELECT * FROM documents WHERE parent_type='".$doctype."' AND parent_id='". $inID."' AND type='".$doct['id']."'"; $r_docs = mysql_query($q_docs) or die(mysql_error()); $rcd = mysql_num_rows($r_docs); $name_doc.=" (".$rcd.")"; if($doctypes[$ctrd]['id']!=-1) { $img_doc = $doct['url']; } else { $img_doc = "icons/small/unknown.png"; } if($rcd>0) { echo "<p>".$name_doc."</p>"; $query_docs= "SELECT * FROM documents WHERE type='".$doct['id']."' AND parent_id='".$inID."' AND parent_type='".$doctype."' ORDER BY filename"; $result_docs = mysql_query($query_docs) or die(mysql_error()); while($row_docs = mysql_fetch_array($result_docs)) { $name_d = ""; //Fix doc name $name_d = cleanUpURL($row_docs['url']); $aName = split("/",$name_d); $name_d = $aName[sizeof($aName)-1]; $aExt = split("\.",$name_d); $name_d = $aExt[0]; echo "<p class='doc-sub'><a href='".$row_docs['url']."' target='_blank'>".$name_d."</a></p>"; } } } } else { $docsShown = 0; } ?> </div> </body> </html>
×
EN