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/website.htm
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}

<ul id="lilist" style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
  <li style="border: 1px solid #CC0000; background: #FFFFCC; padding: 10px; margin-bottom: 5px;" >{$lang.warning}</li>
</ul>


<form action="" method="post" name="listForm" onsubmit="return confirmSubmit(this)">
<div class="list-div" id="listDiv">
<table cellpadding="3" cellspacing="1">
	<tr>
    	<th>{$lang.website_name} 
        	<input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox">
        </th>
        <th>{$lang.website_author}</th>
        <th>{$lang.website_qq}</th>
        <th>{$lang.website_www}</th>
        <th>{$lang.version}</th>
        <th>{$lang.update_time}</th>
        <th>{$lang.handler}</th>
    </tr>
    {foreach from=$website item=val}
    <tr align="center">
    	<td align="left"><input type="checkbox" name="checkboxes[]" value="{$val.type}" />
        	{$val.name}
        </td>
        <td>{$val.author}</td>
        <td>{$val.qq}</td>
        <td>{$val.www}</td>
        <td>{$val.version}</td>
        <td>{$val.date}</td>
        <td>{if !$val.install}<a href="website.php?act=install&type={$val.type}">{$lang.install}</a>{else}
        	<a href="website.php?act=view&type={$val.type}">{$lang.edit}</a>
            <a href="website.php?act=uninstall&type={$val.type}">{$lang.uninstall}</a>{/if}
            
        </td>
    </tr>
    {/foreach}
    <tr>
      <td colspan="7">
      <input type="hidden" name="act" value="batch" />
      <select name="type" id="type" onchange="changeAction()">
      		<option value="">{$lang.select_please}</option>
      		<option value="create">{$lang.batch_create}</option>
            <option value="uninstall">{$lang.uninstall}</option>
      </select>
      <span id="show_check" style="display:none">
      	<input id="is_show_name" name="is_show_name" value="1" type="checkbox" />
      	<label for="is_show_name">{$lang.is_show_name}</label>
      	<input type="checkbox" name="is_show_title" value="1" id="is_show_title" />
      	<label for="is_show_title">{$lang.is_show_title}</label>
        <input type="checkbox" name="is_show_help" id="is_show_help" value="1" />
        <label for="is_show_help">{$lang.is_show_help}</label>
        <input type="checkbox" name="is_open" id="is_open" value="1" />
        <label for="is_is_open">{$lang.is_open}</label>
      </span>
      <input type="submit" id="btnSubmit" value="{$lang.button_submit}" disabled="true" class="button" /></td>
  </tr>
</table>
</div>
</form>


<script language="javascript">

/**
   * @param: bool ext 其他条件:用于转移分类
   */
  function confirmSubmit(frm)
  {
      if (frm.elements['type'].value == 'uninstall')
      {
          return confirm(confrim_uninstall);
      }
      else if (frm.elements['type'].value == '')
      {
          return false;
      }
      else
      {
          return true;
      }
  }
  
  function changeAction()
  {
      var frm = document.forms['listForm'];
      // 切换分类列表的显示
	  document.getElementById('show_check').style.display = frm.elements['type'].value == 'create' ? '' : 'none';
	  
	  if(frm.elements['type'].value == 'create')
	  {
		  return;
	  }
	  
      if (!document.getElementById('btnSubmit').disabled &&
          confirmSubmit(frm, false))
      {
          frm.submit();
      }
  }

  

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