<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Copyright" content="DouCo Co.,Ltd." />
<title>{$lang.home}{if $ur_here} - {$ur_here} {/if}</title>
<link href="{$site.root_url}favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link href="templates/public.css" rel="stylesheet" type="text/css">
{include file="javascript.htm"}
<script type="text/javascript" src="images/jquery.tab.js"></script>
</head>
<body>
<div id="dcWrap">
 {include file="header.htm"}
 <div id="dcLeft">{include file="menu.htm"}</div>
 <div id="dcMain">
   {include file="handle.htm"}
   <div id="system" class="mainBox" style="{$workspace.height}">
    <h3><!-- {if $site.developer} --><a href="{$action_link.href}" class="actionBtn">{$action_link.text}</a><!-- {/if} -->{$ur_here}</h3>
    <div class="idTabs">
     <ul class="tab">
      <!-- {foreach from=$cfg item=tab} -->
      <li><a href="#{$tab.name}">{$tab.lang}</a></li>
      <!-- {/foreach} -->
						<!-- {if $parameter_list} -->
						<li><a href="#parameter">{$lang.parameter}</a></li>
						<!-- {/if} -->
						<!-- {if $sms_tab} -->
						<li><a href="sms.php">{$lang.sms}</a></li>
						<!-- {/if} -->
     </ul>
     <div class="formBox">
      <form action="system.php?rec=update" method="post" enctype="multipart/form-data">
       <!-- {foreach from=$cfg item=cfg} -->
       <div id="{$cfg.name}">
								<table width="100%" border="0" cellpadding="0" cellspacing="0" class="formTable">
									<!-- {foreach from=$cfg.list item=cfg_list} -->
									{if $cfg_list.type neq 'array'}
									<tr>
										<th>{$cfg_list.lang}</th>
										<td>
											<!-- {if $cfg_list.type eq 'radio'} -->
											<label for="{$cfg_list.name}_0">
												<input type="radio" name="{$cfg_list.name}" id="{$cfg_list.name}_0" value="0"{if $cfg_list.value eq '0'} checked="true"{/if}>
												{$lang.no}</label>
											<label for="{$cfg_list.name}_1">
												<input type="radio" name="{$cfg_list.name}" id="{$cfg_list.name}_1" value="1"{if $cfg_list.value eq '1'} checked="true"{/if}>
												{$lang.yes}</label>
											<!-- {elseif $cfg_list.type eq 'select'} -->
											<select name="{$cfg_list.name}">
												<!-- {foreach from=$cfg_list.box key=name item=value} -->
												<option value="{$value}"{if $cfg_list.value eq $value} selected{/if}>{$value}</option>
												<!-- {/foreach} -->
											</select>
											<!-- {elseif $cfg_list.type eq 'file'} -->
											<input type="file" name="{$cfg_list.name}" size="18" />
											{if $cfg_list.value}<a href="../{$cfg_list.value}" target="_blank"><img src="images/icon_yes.png"></a>{else}<img src="images/icon_no.png">{/if}
											<!-- {elseif $cfg_list.type eq 'textarea'} -->
											<textarea name="{$cfg_list.name}" cols="83" rows="8" class="textArea" />{$cfg_list.value}</textarea>
											<!-- {else} -->
											<input type="text" name="{$cfg_list.name}" value="{$cfg_list.value}" size="80" class="inpMain" />
											<!-- {/if} -->
											<!-- {if $cfg_list.cue} -->
												<!-- {if $cfg_list.type eq 'radio' || $cfg_list.type eq 'select'} -->
												<span class="cue ml">{$cfg_list.cue}</span>
												<!-- {else} -->
												<p class="cue">{$cfg_list.cue}</p>
												<!-- {/if} -->
											<!-- {/if} -->
										</td>
									</tr>
									{else}
									<!-- {foreach from=$cfg_list.value item=cfg} -->
									<tr>
										<th>{$cfg.lang}</th>
										<td>
											<input type="text" name="{$cfg.name}" value="{$cfg.value}" size="80" class="inpMain" />
											<!-- {if $cfg.cue} -->
												<p class="cue">{$cfg.cue}</p>
											<!-- {/if} -->
										</td>
									</tr>
									<!-- {/foreach} -->
									{/if}
									<!-- {/foreach} -->
								</table>
       </div>
       <!-- {/foreach} -->
					  <!-- {if $parameter_list} -->
					  <div id="parameter">
								<table width="100%" border="0" cellpadding="0" cellspacing="0" class="formTable">
									<!-- {foreach from=$parameter_list item=parameter} -->
									<tr>
										<th>{$parameter.lang}</th>
										<td>
											<input type="text" name="_parameter_{$parameter.name}" value="{$parameter.value}" size="80" class="inpMain">
										</td>
									</tr>
									<!-- {/foreach} -->
								</table>
							</div>
					  <!-- {/if} -->
       <table width="100%" border="0" cellpadding="0" cellspacing="0" class="formTable" style="margin: 20px 0;">
        <tr>
         <th></th>
         <td>
          <input type="hidden" name="token" value="{$token}" />
          <input name="submit" class="btn" type="submit" value="{$lang.btn_submit}" />
         </td>
        </tr>
       </table>
       </form>
     </div>
    </div>
   </div>
 </div>
 {include file="footer.htm"}
</div>
<script type="text/javascript">
 {literal}$(function(){$(".idTabs").idTabs();});{/literal}
</script>
</body>
</html>