echo '未通过'; } ?> </td> <td align="left"><a href="<?php echo site_url("module/inquiry/inq_show2/" . $class . "/" . $v['id']); ?> " title="<?php echo $v['title']; ?> "> <?php echo $v['title']; ?> </a></td> <td><a href="<?php echo company_url(site_url("content/index/" . $v['sid'] . "/" . $v['item_url']), $v['username']); ?> " target="_blank"><?php echo $v['sid']; ?> </a></td> <td><a href="<?php echo site_url("member/member/get_detail/{$v['fromuser']}"); ?> "><?php echo $v['fromuser']; ?> </a></td> <td><a href="<?php echo site_url("member/member/get_detail/{$v['touser']}"); ?>
function sell_list() { //for test //$username='******'; $thisurl = current_url(); if (preg_match("/http:\\/\\/(.*)\\./isU", $thisurl, $arr)) { $username = $arr[1]; } else { show_404(); die; } $company_data = $this->comm->find("company", array("username" => $username)); if (!$company_data) { show_404(); die; } $data['username'] = $username; $site = $this->config->item("site"); $data['site'] = $site; $kwtable = $this->db->dbprefix("tagindex"); $sql = "SELECT t1.id,t1.tag,t1.linkurl"; $sql .= " FROM `{$kwtable}` AS t1 JOIN (SELECT ROUND(RAND() * ((SELECT MAX(id) FROM `{$kwtable}`)-(SELECT MIN(id) FROM `{$kwtable}`))+(SELECT MIN(id) FROM `{$kwtable}`)) AS id) AS t2"; $sql .= " WHERE t1.id >= t2.id LIMIT 0,5"; $query = $this->db->query($sql); if ($query->num_rows() > 0) { $data['keywords'] = $query->result_array(); } else { $data['keywords'] = $this->comm->findAll("tagindex", "", "", "", "0,5"); } $userid = $company_data['userid']; $company_data = $this->comm->find("company", array("userid" => $userid)); $area = $this->comm->find("area", array("areaid" => $company_data['areaid']), "", "areaname"); $company_data['areaname'] = $area['areaname']; $data['company_data'] = $company_data; $com_type = $this->comm->findAll("type", array("userid" => $userid)); $btype = array(); foreach ($com_type as $x => $c) { if ($x <= 2) { $btype[] = $c['tname']; } $com_type[$x]['count'] = $this->comm->findCount("sell", array("mycatid" => $c['tid'], "username" => $username)); } $data['com_type'] = $com_type; $btype = join(",", $btype); $page = $this->uri->rsegment(3, 0); $page_size = 10; $uri_segment = 2; $base_url = company_url(site_url("company/" . __FUNCTION__ . "/"), $username); $condition = array("username" => $username, "status" => 3); $data['title'] = $btype . " from " . $company_data['company'] . " On " . $site['site_name'] . " | Page " . ceil($page / $page_size + 1); if (preg_match("/^[a-zA-Z]{1,}_[0-9]{1,}\$/isU", $page)) { $tid = explode("_", $page); $tid = intval($tid[1]); $uri_segment = 3; $base_url = company_url(site_url("company/" . __FUNCTION__ . "/" . $page), $username); $page = $this->uri->rsegment(4, 0); $condition = array("username" => $username, "mycatid" => $tid, "status" => 3); $data['mytype'] = $mytype = $this->comm->find("type", array("tid" => $tid, "userid" => $userid)); if (!$mytype) { show_404(); die; } $data['title'] = $mytype['tname'] . " from " . $company_data['company'] . " On " . $site['site_name'] . " | Page " . ceil($page / $page_size + 1); } $page = intval($page); if (ceil($page / $page_size + 1) > 1) { $data['link'] = "<link rel='canonical' href='" . site_url("company/sell_list/{$username}") . "'/>"; } $sell_list = $this->comm->findAll("sell", $condition, "", "itemid,title,unit,minprice,keyword,hits,currency,minamount,thumb,username,linkurl", "{$page},{$page_size}"); $data['sell_list'] = $sell_list; $data['sell_count'] = $sell_count = $this->comm->findCount("sell", $condition); $data['total_page'] = ceil($sell_count / $page_size); $this->load->library('pagination'); $config['base_url'] = $base_url; $config['total_rows'] = $sell_count; $config['per_page'] = $page_size; $config['uri_segment'] = $uri_segment; $config['num_links'] = 8; $config['suffix'] = $this->config->item('url_suffix'); $config['anchor_class'] = "rel='nofollow'"; $config['cur_tag_open'] = '<span class="current">'; $config['cur_tag_close'] = '</span>'; $this->pagination->initialize($config); $data['pages'] = $pages = $this->pagination->create_links(); $data['hot_sell'] = $this->comm->findAll("sell", array("username" => $company_data['username']), "hits desc", "itemid,title,currency,minprice,hits,linkurl,thumb,minamount,unit", "0,4"); /*$rand_id=array_rand($com_type,1); $rand_id=0; $data['rand_type'] = $com_type[$rand_id]['tname']; $data['rand_sell']=$this->comm->findAll("sell",array("mycatid"=>$com_type[$rand_id]['tid'],"username"=>$company_data['username']),"","","0,4");*/ $this->load->view('header', $data); $this->load->view('company/com_sell_list'); $this->load->view('footer'); }
<div class="clear"></div> </div> </div> <?php if (isset($rand_type)) { ?> <div class="searched"> <div class="searched1">Buyers who searched <span><?php echo $rand_type; ?> </span> bought:</div> <div class="searched2"> <?php foreach ($rand_sell as $n) { echo "<div class='searched2_1'><a href='", company_url(site_url('sell_detail/index/' . $n['itemid'] . '/' . $n['linkurl']), $n['username']), "'><img src='", $site['image_domain'] . $n['thumb'], "' width='180' height='180' onerror=\"javascript:this.src='", base_url("skin/images/nopic.jpg"), "';\"/></a><A href='", company_url(site_url('sell_detail/index/' . $n['itemid'] . '/' . $n['linkurl']), $n['username']), "' id='searched2_1_a'>", $n['title'], "</A><p>"; echo $n['minprice'] > 0 ? $n['currency'] . " " . $n['minprice'] : "Negotiable"; echo "</b>/", $n['unit'], "</p><p>MOQ:", $n['minamount'], "</p><p>Recently Hits:", $n['hits'], "</p></div>"; } ?> </div> <div class=" clear"></div> </div> <?php } ?> <div class="ad1"><a href="#" rel="nofollow"><img src="<?php echo base_url('/skin/images/nopic.jpg'); ?> " data-src="<?php echo base_url('/skin/images/main_01_48.png');
if ($k == 0) { ?> <div class="status_right211"> <?php } elseif ($k == 1) { ?> <?php } else { ?> <div class="status_right211 status_right211_noline"> <?php } ?> <div class="status_right2_2"> <A href="<?php echo company_url(site_url('content/index/' . $v['itemid'] . '/' . $v['linkurl']), $v['username']); ?> " target="_blank"><?php echo $v['title']; ?> </A> <p class="status_right2_2_p"><?php echo mb_substr(strip_tags($v['introduce']), 0, 65, "utf-8"); ?> ...</p> <p class="status_right2_line"><span class="status_right2_2_left">replies(<b><?php echo $v['replies']; ?> </b>)</span><span class="status_right2_2_left">browse(<b><?php echo $v['hits']; ?>
<div class="Info-Hotsearch"> <ul> <?php foreach ($senior_new as $k => $a) { if ($k > 7) { break; } ?> <li> <i class="Info-Popular <?php echo $k > 2 ? 'Info-Psearch' : 'Info-Popular'; ?> "><?php echo $k + 1; ?> </i><a href="<?php echo company_url(site_url("company/index/"), $a['username']); ?> " title="<?php echo $a['company']; ?> "> <?php echo mb_substr($a['company'], 0, 30, "utf-8"); ?> </a> </li> <?php } ?> </ul> </div>
echo $v['userid']; ?> </td> <td align="left"> <a href="<?php echo site_url("member/member/get_detail/{$v['username']}"); ?> " title="<?php echo $v['truename']; ?> "><?php echo $v['username']; ?> </a></td> <td align="left"> <a href="<?php echo company_url(site_url(), $v['username']); ?> " rel="nofollow" target="_blank"><?php echo $v['company']; ?> </a> <?php if ($v['mcompany']['thumb']) { ?> <a href="javascript:_preview('<?php echo $site['image_domain'] . $v['mcompany']['thumb']; ?> ');"><img width="10" height="10" alt="" title="标题图,点击预览" src="<?php echo base_url("skin/images/img.gif"); ?> "></a><?php
?> </p> <p id="Details1_right1_p"><b>Telephone:</b><?php echo $company_data['telephone']; ?> </p> </div> <div class="Details1_right2"> <div class="main_left3"> <div class="main_left3_1">Category</div> <div class="main_left3_3"> <ul> <?php if (is_array($com_type)) { foreach ($com_type as $c) { echo "<li><a href='", company_url(site_url("company/sell_list/tid_{$c['tid']}"), $username), "'>", $c['tname'], "</a></li>"; } } ?> </ul> </div> </div> </div> </div> <div class="clear"></div> </div> </div> <div class="ad1"><a href="#" rel="nofollow"><img src="<?php echo base_url('/skin/images/main_01_48.png'); ?> " width="918" height="88" /></a></div>
<div class="clear"></div> </div> <form method="post" action="<?php echo site_url("supplier_connect/nomem_inquiry/" . $mid . "/" . $auth); ?> "> <div class="reply"> <p><a href="<?php echo main_url(site_url('content/index/' . $inquiry['sid'] . '/' . $inquiry['linkurl'])); ?> " class="reply1" target="_blank"><?php echo $inquiry['product_name']; ?> </a></p> <p><a href="<?php echo company_url(site_url(), $inquiry['fromuser']); ?> " class="reply2" target="_blank"><?php echo $inquiry['company']; ?> </a></p> <p><?php echo $inquiry['inquiry_data']['message']; ?> </p> <p><textarea name="content" id="content" cols="30" rows="10"></textarea></p> <p><input type="button" value="reply" class="reply_button" onclick="check_reply()"/> <input type="button" value="cancel" class="reply_button1" onclick="this.form.reset();"/></p> </div> </form> <div class="clear"></div>
?> </li> <?php foreach (array_slice($v['attr'], 0, 18) as $kk => $vv) { echo "<li title=" . $vv . "><i >" . $kk . ":</i>" . $vv . "</li>"; } ?> </ul> <div class="Key_word"></div> </div> <div class="Commodity_right"> <h3><a title="<?php echo $v['company']; ?> " href="<?php echo company_url(site_url('company/index/'), $v['username']); ?> "><?php echo $v['company']; ?> </a></h3> <ul> <li><i>Business Type:</i> <?php if (!$v['mode']) { ?> Suppliers<?php } else { echo $v['mode']; } ?> </li>
<i></i></a></li> <?php } ?> </ul> </div> <div class="sup_Hotsearch_more"> <span>More</span><i class="fa fa-caret-down"></i> </div> </div> <div class="Supplers_Totallist"> <?php foreach ($list as $k => $v) { ?> <div class="Supplers_List"> <div class="Supplers_Listleft"> <h2><a href="<?php echo company_url(site_url(''), $o['username']); ?> "><?php echo $v['company']; ?> </a></h2> <span><i></i>Audited Supplier</span> <ul> <li><b>Business Type :</b><i><?php echo $v['mode']; ?> </i></li> <li><b>Main Products :</b><i><?php echo $v['business']; ?> </i></li>
</div> <div class="list2_right2"> <div class="px"> <div class="left"><a href="#" rel="nofollow"><span id="m1" class="cMain">most popular</span></a>|<a href="#" rel="nofollow"><span id="n2">new arrivals</span></a>|<a href="#" rel="nofollow"><span id="p3">price</span></a></div> <div class="right"> <div id="list" class="l">List</div> <div id="gallery" class="gNone">Gallery</div> </div> <div class="clear"></div> </div> </div> <div class="list2_right3"> <div id="ListGallery" class="listL"> <?php foreach ($sells as $fg) { echo "<ul>\n\t\t\t<li class='pic'><a href='", company_url(site_url('sell_detail/index/' . $fg['itemid'] . '/' . $fg['linkurl']), $fg['username']), "'><img src='", $site['image_domain'] . $fg['thumb'], "' width='150px' height='150px' alt='", $fg['title'], "' onerror=\"javascript:this.src='", base_url("skin/images/nopic.jpg"), "';\"/></a></li>\n\t\t\t<li class='nrBox'>\n\t\t\t\t<p class='h2'><a href='", company_url(site_url('sell_detail/index/' . $fg['itemid'] . '/' . $fg['linkurl']), $fg['username']), "'>", $fg['title'], "</a></p>\n\t\t\t\t<p class='listNone'><span class='bold'>Business Type:</span>", $fg['mode'], "</p>\n\t\t\t\t<p class='listNone'><span class='bold'>Introduce:</span> ", strip_tags($fg['introduce']), "</p>\n\t\t\t\t<p class='listNone'><span class='bold'>Supplier:</span><a href='", company_url(site_url("company/index/"), $fg['username']), "'>", $fg['company'], "</a></p>\n\t\t\t\t\n\t\t\t</li>\n\t\t\t<li class='priceBox'>\n\t\t\t\t<p> "; echo $fg['minprice'] > 0 ? $fg['currency'] . " <span>" . $fg['minprice'] : " <span>Negotiable"; echo "</span></p><div class='clear'></div>\n\t\t\t\t<div class='listGConte'><a style='cursor: pointer;' onclick='GetInquiry.GetInquiryBox(" . $fg['itemid'] . ");' rel='nofollow'><img src='", base_url('/skin/images/list_06.jpg'), "' alt='contact Supplier' /></a></div>\n\t\t\t</li><div class='clear'></div>\n\t\t</ul>"; } ?> <div class="clear"></div> </div> <div class="clear"></div> </div> <div class="list2_right4"> <div class="grayr"><?php echo $pages; ?> <span>Go to Page</span><form><p><input name="" type="text" class="grayr_text" /></p><input name="" type="button" class="grayr_button" /></form></div> </div>
<div class="Product_Price_Details"> <div class="mob-tr"> <div class="Product-Name">Product Name</div> <div class="ProductAttribute">Voltage (v)</div> <div class="ProductAttribute"> Power (w) </div> <div class="ProductAttribute">Price (US)</div> </div> <?php foreach ($productPrice as $k => $v) { ?> <div class="mob-tr"> <div class="mob-Product-Name"><a title="<?php echo $v['title']; ?> " href="<?php echo company_url(site_url('sell_detail/index/' . $v['itemid'] . '/' . $v['linkurl']), $v['username']); ?> "><?php echo substr($v['title'], 0, 25); ?> </a></div> <div class="ProductAttribute" title="<?php echo $v['attr']['Voltage']; ?> "><?php echo substr($v['attr']['Voltage'], 0, 10); ?> </div> <div class="ProductAttribute" title="<?php echo $v['attr']['Power']; ?>
<input type="hidden" name="iid" value="<?php echo $inquiry_detail['id']; ?> "/> <table class="tb" cellpadding="2" cellspacing="1"> <tbody><tr> <td class="tl">询单标题</td> <td class="f_b"><?php echo $inquiry_detail['title']; ?> </td> </tr> <tr> <td class="tl">询盘产品ID</td> <td><a href="<?php echo sell_url(company_url("content/index/" . $inquiry_detail['sid'] . "/" . $inquiry_detail['item_url']), $inquiry_detail['username']); ?> " target="_blank"><?php echo $inquiry_detail['sid']; ?> </a></td> </tr> <tr> <td class="tl">供应商</td> <td><a href="<?php echo site_url("member/member/get_detail/{$inquiry_detail['touser']}"); ?> "><?php echo $inquiry_detail['touser']; ?> </a></td>