<!-- {include file="header.html"} -->
<div id="currentPosition">
	<p>{lang your_current_position} {lang trade_management} &raquo; {lang product_center}</p>
</div>
<div id="rightTop"> 
    <h3>{lang product_center}</h3> 
    <ul class="subnav">
		<li><a class="btn1" href="product.php"><span>{lang management}</span></a></li>
        <li><a href="product.php?do=edit">{lang add_or_edit}</a></li>
		<li><a href="productsort.php">{lang category}</a></li>
		<li><a href="productcategory.php">{lang product}{lang sorts}</a></a></li>
		<li><a href="brand.php">{lang brands}</a></a></li>
		<li><a href="brandtype.php">{lang brands}{lang sorts}</a></a></li>
		<li><a href="price.php">{lang prices}</a></a></li>
    </ul>
</div>
<div class="mrightTop"> 
    <div class="fontr"> 
        <form name="search_frm" id="SearchFrm" method="get" action="product.php"> 
        <input type="hidden" name="do" value="search" />
             <div> 
				{lang member_name}{lang colon} <input class="queryInput" type="text" name="username" value="{$smaty.get.username}" /> 
				{lang company_name}{lang colon}<input class="queryInput" type="text" name="companyname" value="{$smaty.get.companyname}" /> 
                <select class="querySelect" name="status" id="ProductStatus">
					<option value="-1">{lang pls_select}</option>
					{html_options options=$CheckStatus selected=$smaty.get.status}
				</select>
				{lang title_keyword}<input class="queryInput" type="text" name="q" value="" /> 
                <input type="submit" name="search" id="Search" class="formbtn" value="{lang searching}" /> 
            </div> 
        </form> 
    </div> 
    <div class="fontr"></div> 
</div> 
<div class="tdare">
  <form name="list_frm" id="ListFrm" action="product.php" method="post">
  <input type="hidden" name="page" value="{$smarty.get.page}" />
  <table width="100%" cellspacing="0" class="dataTable" summary="{lang data_zone}">
    <thead>
		<tr>
		  <th class="firstCell"><input type="checkbox" name="idAll" id="idAll" onclick="pbCheckAll(this,'id[]');" title="{lang select_switch}"></th>
		  <th></th>
		  <th><label for="idAll">{lang product}{lang naming}</label></th>
		  <th>{lang company_name}</th>
		  <th>{lang switch_the_shelf}</th>
		  <th>{lang status}</th>
		  <th>{lang pub_date}</th>
		  <th>{lang action}</th>
		</tr>
    </thead>
    <tfoot>
		<tr>
		  <th colspan="8"><div class="pageLinks">{$ByPages}</div></th>
		</tr>
    <tfoot>
    <tbody>
		<!--{foreach from=$Items item=item}-->
		<tr class="tatr2">
		  <td class="firstCell"><input type="checkbox" name="id[]" value="{$item.id}" onclick="pbCheckItem(this,'idAll');" id="item_{$item.id}" title="{$item.id}"></td>
		  <td>{if $item.created>$today_timestamp}<span class="icon-new"></span>{/if}{if $item.Ifcommend}<span class="icon-commend"></span>{/if}{if $item.ProductPicture!=''}<span class="icon-pic"></span>{/if}</td>
		  <td><label for="item_{$item.id}">{$item.ProductName|pl}</label></td>
		  <td><a href="company.php?do=edit&id={$item.CID}">{$item.companyname}</a></td>
		  <td>{$BooleanVars[$item.ProductState]}</td>
		  <td>{$CheckStatus[$item.ProductStatus]}</td>
		  <td class="pb_datetime">{$item.pubdate}</td>
		  <td class="handler">
          <ul id="handler_icon">
            <li><a class="btn_delete" href="product.php?id={$item.id}&do=del" title="{lang delete}">{lang delete}</a></li>
            <li><a class="btn_edit" href="product.php?do=edit&id={$item.id}" title="{lang edit}">{lang edit}</a></li> 
             <li><a class="btn_browse" href="{the_url id=$item.id module='product'}" target="_blank" title="{lang preview}">{lang preview}</a></li>
          </ul>  
		  </td>
		</tr>
		<!--{foreachelse}-->
		<tr class="no_data info">
		  <td colspan="7">{lang no_datas}</td>
		</tr>
		<!--{/foreach}-->
    </tbody>
	</table>
	<div id="dataFuncs" title="{lang action_zone}">
    <div class="left paddingT15" id="batchAction">
      <input type="submit" name="del" value="{lang delete}" class="formbtn batchButton"/>
      <input type="submit" name="recommend" value="{lang commend}{lang product}" class="formbtn batchButton"/>
      <select name="status" id="Status" onchange="$('#ListFrm').submit();">
      	<option>{lang set_status}</option>
        <option value="0">{lang invalid}</option>
        <option value="1">{lang effective}</option>
      </select>
    </div>
    <div class="clear"/>
    </div>
	</form>
</div>
<!-- {include file="footer.html"} -->