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/mobile/ecshopjcw/templates/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : /www/wwwroot/saimikebio.com/mobile/ecshopjcw/templates/shophelp_cat_list.htm
<!-- $Id: shophelp_cat_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->
{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../data/static/js/utils.js,./js/listtable.js"}

<!-- start form -->
<div class="form-div">
<form method="post" action="javascript:newArticleCat()" name="theForm">
{$lang.cat_add} <input type="text" name="cat_name" maxlength="150" size="40" />
<input type="submit" value="{$lang.button_submit}" class="button" />
</form>
</div>
<!-- end form -->

<!-- start article list -->
<div class="list-div" id="listDiv">
{/if}

<table cellspacing='1' cellpadding='3' id='listTable'>
  <tr>
    <th>{$lang.cat_name}</th>
    <th>{$lang.num}</th>
    <th>{$lang.sort}</th>
    <th>{$lang.handler}</th>
  </tr>
  {foreach from=$list  item=item}
    <tr>
    <td class="first-cell"><span onclick="javascript:listTable.edit(this,'edit_catname', {$item.cat_id})">{$item.cat_name|escape:html}</span></td>
    <td align="right">{$item.num}{$lang.js_languages.chap}</td>
    <td align="right"><span onclick="javascript:listTable.edit(this,'edit_cat_order', {$item.cat_id})">{$item.sort_order}</span></td>
    <td align ="center">
      <a href ="shophelp.php?act=add&cat_id={$item.cat_id}" title="{$lang.article_add}"><img src="images/icon_add.gif" border="0" width="21" height="21"></a>&nbsp;&nbsp;<a href ="shophelp.php?act=list_article&cat_id={$item.cat_id}" title="{$lang.article_list}"><img src="images/icon_docs.gif" border="0" width="21" height="21"></a>&nbsp;&nbsp;
      <a href="javascript:;" onclick="listTable.remove({$item.cat_id}, '{$lang.drop_confirm}')" title="{$lang.remove}"><img src="images/icon_drop.gif" border="0" width="21" height="21"></a>
      </td>
    </tr>
  {/foreach}
</table>

{if $full_page}
</div>
<!-- end article list -->

<script type="text/javascript" language="JavaScript">
  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}
  {literal}

  onload = function()
  {
    // 开始检查订单
    startCheckOrder();
  }

function newArticleCat()
{
  var cat_name   = Utils.trim(document.forms['theForm'].elements['cat_name'].value);

  if (Utils.trim(cat_name).length > 0)
  {
    Ajax.call('shophelp.php?is_ajax=1&act=add_catname', 'cat_name=' + cat_name, newGoodsTypeResponse, "POST", "JSON");
  }
}

function newGoodsTypeResponse(result)
{
  if (result.error == 0)
  {
    document.getElementById('listDiv').innerHTML = result.content;
    document.forms['theForm'].elements['cat_name'].value = '';
    document.forms['theForm'].elements['cat_name'].focus();
  }

  if (result.message.length > 0)
  {
    alert(result.message);
  }
}

{/literal}
</script>
{include file="pagefooter.htm"}
{/if}