<% include "../tools/tools.php"; $id = $_GET["id"] ; $company_row = get_row ("SELECT * FROM company WHERE Id ='".$id."' and Active=1 and fActive=1"); // if (!$company_row["Code"]) // header ("Location: sorry.company.php"); // $id=$company_row["Id"]; include "../template.company.farsi/header.php"; %> <% include "../template.company.farsi/top_page.php"; include "../template.company.farsi/right_page.php"; %> <% $homepage = get_field ("SELECT fContent FROM pages WHERE Id=1 and CompanyCode = ".$company_row["Code"],"fContent") ; if ($company_row["PlanCode"] > 1) { echo $homepage ; } if ($company_row["PlanCode"] < 1 or !$homepage ) { %>
 
درباره ما
 
<%=nl2br($company_row["fDescription"])%>
<%=$company_row["fProducts"]%>
 
اطلاعات عمومی شرکت
 
<% if ($company_row["BusinessType"] < 6 and $company_row["BusinessType"] >0) {%> <% } %> <% if ($company_row["fKeyword"]!= "") {%> <% } %> <% $companycategory_table = mysql_query ("SELECT Code,(SELECT fName FROM productcategory WHERE Code=CC.CategoryCode) fName FROM companycategory CC WHERE CompanyCode=".$company_row["Code"]); if ( mysql_num_rows($companycategory_table) > 0 ) { $companycategory = array(); while ($companycategory_row = mysql_fetch_array ($companycategory_table) ) $companycategory [] = $companycategory_row["fName"] ; $StrCompanyCategory = implode (" , ", $companycategory ); %> <% } %>
نام شرکت : <%=$company_row["fName"]%>
کشور/استان/شهر : <%=get_field("SELECT fName FROM country WHERE Code=".$company_row["CountryCode"],"fName")%>/ <%if ($company_row["CityCode"]) echo get_field("SELECT fName FROM province WHERE Code=".$company_row["CityCode"],"fName")." / "%> <%=$company_row["City"]%>
نوع تجارت : <% switch ($company_row["BusinessType"]) { case "0" : echo "تولید کننده" ; break; case "1" : echo "شرکت بازرگانی" ; break; case "2" : echo "خدماتی" ; break; case "3" : echo "نمایندگی" ; break; case "4" : echo "توزیع کننده / عمده فروش" ; break; case "5" : echo "خرده فروش" ; break; } %>
تاریخ ثبت : <% $time_stamp=strtotime($company_row["RegDate"]); $date_str=mtosh(date("Y-m-d",$time_stamp)); echo $date_str ; %>
کلیدواژه : <%=$company_row["fKeyword"]%>
گروه محصولات : <%=$StrCompanyCategory%>
 
<% } %> <% include "../template.company.farsi/left_page.php"; include "../template.company.farsi/bottom_page.php"; %>