bhq@iemsoft.cn
2018-11-27 e2b48dac099e43f4b3243cdf19a7522e4b5eccbe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!-- $Id: templates_backup.htm 14216 2008-03-10 02:27:21Z  $ -->
{include file="pageheader.htm"}
<!-- start templates list -->
<div class="list-div1">
  <table width="100%" cellpadding="3" cellspacing="1">
  <tr><th>{$lang.cur_setting_template}</th></tr>
  {if $files}
  <tr><td>
    <form action="template.php" method="post" >
    <table style="background:none">
      <tr>
        <td colspan="2"><input type="checkbox" name="chkall" onclick="checkall(this.form, 'files[]')"><strong>{$lang.select_all}<strong></td>
      </tr>
      <tr>
      {foreach from=$files item=file key=key name=template}
      {if $smarty.foreach.template.iteration > 1 and ($smarty.foreach.template.iteration-1)%3 eq 0 }
        </tr><tr>
      {/if}
      <td><input type="checkbox" name="files[]" value="{$key}" >{$file}</td>
      {if $smarty.foreach.template.last}
        {if $smarty.foreach.template.iteration%3 eq 0}
          </tr>
        {elseif $smarty.foreach.template.iteration%3 eq 1 }
          <td>&nbsp;</td><td>&nbsp;</td></tr>
        {else}
           <td>&nbsp;</td></tr>
        {/if}
      {/if}
      {/foreach}
      <tr>
        <td colspan="3" >{$lang.remarks}:&nbsp;&nbsp;<input type="text" name="remarks" size="40" /></td>
      </tr>
      <tr>
      <td colspan="3" /><input type="hidden" name="act" value="act_backup_setting" /><input type="submit" value="{$lang.backup_setting}" class="button" /><td>
      </tr>
    </table>
    </form>
  </td></tr>
  {else}
  <tr><td colspan="2" align="center">{$lang.no_setting_template}</td></tr>
  {/if}
  <tr><th>{$lang.cur_backup}</th></tr>
  {foreach from=$list item=remarks}
  <tr><td><span style="float:right"><a href="template.php?act=restore_backup&remarks={$remarks.url}">{$lang.restore}</a>&nbsp;&nbsp;<a href="template.php?act=del_backup&remarks={$remarks.url}">{$lang.remove}</a></span>{$remarks.content}</td></tr>
  {foreachelse}
  <tr><td colspan="2" align="center">{$lang.no_backup}</td></tr>
  {/foreach}
  </table>
</div>
<!-- end templates list -->
 
<script language="JavaScript">
<!--
{literal}
 
onload = function()
{
  // 开始检查订单
  startCheckOrder();
}
 
function checkall(frm, chk)
{
    for (i = 0; i < frm.elements.length; i++)
    {
        if (frm.elements[i].name == chk)
        {
            frm.elements[i].checked = frm.elements['chkall'].checked;
        }
    }
}
 
//-->
{/literal}
</script>
{include file="pagefooter.htm"}