<{include file="header.htm"}>
<{$PrintXajax}>
<script language="Javascript">
	function checkForm() {
		return xajax.upload('CreateLanguage','f1');
	}

	function updateForm() {
		return xajax.upload('UpdateLanguage','f2');
	}
</script>
<div id="createlanguage">
 <a href="" onclick="xajax_ShowCreateLanguage(1);return false" title="">create language</a>
</div>
<div id="h" style="margin:0 auto;padding:0;display:none;">
<div style="margin:0 auto;padding:0;">
<form id="f1" name="f1" onsubmit="return checkForm()" method="post" enctype="multipart/form-data">
<table id="addlanguage" class="th" align="center">
 <th>Language Name</th>
 <th>Icon(21px * 14px)</th>
 <th>Charset</th>
 <th>Order</th>
 <th width="150">Control</th>
   <tr>
 <td><input type="text" name="name" id="name" /></td>
 <td><input type="file" name="filename" /></td>
 <td><input type="text" name="charset" id="charset" /></td>
 <td><input type="text" name="ord" id="ord" /></td>
 <td><input type="submit" class="button1" name="" value="<{$LANG.add}>" /></td>
 </tr>
 </table>
 </form>
</div>
 </div>
<div id="page">
 <{$page}>
</div>

<div id="language">
<ul id="th" class="th">
 <li>ID</li>
 <li>Name</li>
 <li>Icon</li>
 <li>Charset</li>
 <li>Order</li>
 <li widli="150">Action</li>
</ul>
<{section name=out loop=$language}>
 <{if $smarty.section.out.index is div by 2}>
<ul id="page_<{$language[out].languageid}>" class="one">
 <{else}>
<ul id="page_<{$language[out].languageid}>" class="two">
 <{/if}>
 <li><{$language[out].languageid}></li>
 <li><{$language[out].name}></li>
 <li><{$language[out].filename}></li>
 <li><{$language[out].charset}></li>
 <li><{$language[out].ord}></li>
 <li style="width:180px;"><a class="button1" href="" onclick="if(confirm('sure?')) xajax_DeleteLanguage(<{$language[out].languageid}>);return false;" title=""><{$LANG.delete}></a> <a class="button1" href="" onclick="xajax_ModifyLanguage(<{$language[out].languageid}>); return false;" title=""><{$LANG.edit}></a></li>
 </ul>
 <{/section}>
</div>

<div id="languageadded">
 
</div>
<div id="page">
 <{$page}>
</div>
<{include file="footer.htm"}>