Server : Apache
System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64
User : www ( 1000)
PHP Version : 5.6.40
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Directory :  /www/wwwroot/saimikebio.com/ecshopjcw/templates/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : /www/wwwroot/saimikebio.com/ecshopjcw/templates/category_list.htm
<!-- $Id: category_list.htm 17019 2010-01-29 10:10:34Z liuhui $ -->

{if $full_page}

{include file="pageheader.htm"}

{insert_scripts files="../js/utils.js,listtable.js"}



<form method="post" action="" name="listForm">

<!-- start ad position list -->

<div class="list-div" id="listDiv">

{/if}



<table width="100%" cellspacing="1" cellpadding="2" id="list-table">

  <tr>

    <th>{$lang.cat_name}</th>

	<th>分类图标</th>

    <th>{$lang.goods_number}</th>

    <th>{$lang.measure_unit}</th>

    <th>{$lang.nav}</th>

    <th>{$lang.is_show}</th>
	
	<th>{$lang.is_hot_cat}</th>

    <th>{$lang.short_grade}</th>

    <th>{$lang.sort_order}</th>

    <th>{$lang.handler}</th>

  </tr>

  {foreach from=$cat_info item=cat}

  <tr align="center" class="{$cat.level}" id="{$cat.level}_{$cat.cat_id}" {if $cat.level gt 0}style="display:none;"{/if}>

    <td align="left" class="first-cell" >

      {if $cat.is_leaf neq 1}

      <img src="images/menu_plus.gif" id="icon_{$cat.level}_{$cat.cat_id}" width="12" height="12" border="0" style="margin-left:{$cat.level}em" onclick="rowClicked(this)" />

      {else}

      <img src="images/menu_arrow.gif" width="9" height="9" border="0" style="margin-left:{$cat.level}em" />

      {/if}

      <span onclick="listTable.edit(this, 'edit_catname', {$cat.cat_id})">{$cat.cat_name}</span>

    </td>

	<td align="center">

    {if $cat.cat_ico}

      <img src="../data/cat_ico/{$cat.cat_ico}" border="0" style="vertical-align:middle;" width="40px">

    {/if}

	</td>

    <td width="10%"><a href="goods.php?act=list&cat_id={$cat.cat_id}"> {$cat.goods_num} </a></td>

    <td width="10%"><span onclick="listTable.edit(this, 'edit_measure_unit', {$cat.cat_id})"><!-- {if $cat.measure_unit} -->{$cat.measure_unit}<!-- {else} -->&nbsp;&nbsp;&nbsp;&nbsp;<!-- {/if} --></span></td>

    <td width="10%"><img src="images/{if $cat.show_in_nav eq '1'}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_show_in_nav', {$cat.cat_id})" /></td>

    <td width="10%"><img src="images/{if $cat.is_show eq '1'}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_is_show', {$cat.cat_id})" /></td>
	
	<td width="10%"><img src="images/{if $cat.is_hot_cat eq '1'}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_is_hot_cat', {$cat.cat_id})" /></td>

    <td><span onclick="listTable.edit(this, 'edit_grade', {$cat.cat_id})">{$cat.grade}</span></td>

    <td width="10%" align="center"><span onclick="listTable.edit(this, 'edit_sort_order', {$cat.cat_id})">{$cat.sort_order}</span></td>

    <td width="24%" align="center">

      <a href="category.php?act=move&cat_id={$cat.cat_id}">{$lang.move_goods}</a> |

      <a href="category.php?act=edit&amp;cat_id={$cat.cat_id}">{$lang.edit}</a> |

      <a href="javascript:;" onclick="listTable.remove({$cat.cat_id}, '{$lang.drop_confirm}')" title="{$lang.remove}">{$lang.remove}</a>

    </td>

  </tr>

  {/foreach}

</table>

{if $full_page}

</div>

</form>



{literal}

<script language="JavaScript">

<!--



onload = function()

{

  // 开始检查订单

  startCheckOrder();

}



var imgPlus = new Image();

imgPlus.src = "images/menu_plus.gif";



/**

 * 折叠分类列表

 */

function rowClicked(obj)

{

  // 当前图像

  img = obj;

  // 取得上二级tr>td>img对象

  obj = obj.parentNode.parentNode;

  // 整个分类列表表格

  var tbl = document.getElementById("list-table");

  // 当前分类级别

  var lvl = parseInt(obj.className);

  // 是否找到元素

  var fnd = false;

  var sub_display = img.src.indexOf('menu_minus.gif') > 0 ? 'none' : (Browser.isIE) ? 'block' : 'table-row' ;

  // 遍历所有的分类

  for (i = 0; i < tbl.rows.length; i++)

  {

      var row = tbl.rows[i];

      if (row == obj)

      {

          // 找到当前行

          fnd = true;

          //document.getElementById('result').innerHTML += 'Find row at ' + i +"<br/>";

      }

      else

      {

          if (fnd == true)

          {

              var cur = parseInt(row.className);

              var icon = 'icon_' + row.id;

              if (cur > lvl)

              {

                  row.style.display = sub_display;

                  if (sub_display != 'none')

                  {

                      var iconimg = document.getElementById(icon);

                      iconimg.src = iconimg.src.replace('plus.gif', 'minus.gif');

                  }

              }

              else

              {

                  fnd = false;

                  break;

              }

          }

      }

  }



  for (i = 0; i < obj.cells[0].childNodes.length; i++)

  {

      var imgObj = obj.cells[0].childNodes[i];

      if (imgObj.tagName == "IMG" && imgObj.src != 'images/menu_arrow.gif')

      {

          imgObj.src = (imgObj.src == imgPlus.src) ? 'images/menu_minus.gif' : imgPlus.src;

      }

  }

}

//-->

</script>

{/literal}



{include file="pagefooter.htm"}

{/if}