<?php /* Smarty version 2.6.18, created on 2007-10-20 21:02:02
         compiled from language.htm */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php echo $this->_tpl_vars['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="<?php echo $this->_tpl_vars['LANG']['add']; ?>
" /></td>
 </tr>
 </table>
 </form>
</div>
 </div>
<div id="page">
 <?php echo $this->_tpl_vars['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>
<?php unset($this->_sections['out']);
$this->_sections['out']['name'] = 'out';
$this->_sections['out']['loop'] = is_array($_loop=$this->_tpl_vars['language']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['out']['show'] = true;
$this->_sections['out']['max'] = $this->_sections['out']['loop'];
$this->_sections['out']['step'] = 1;
$this->_sections['out']['start'] = $this->_sections['out']['step'] > 0 ? 0 : $this->_sections['out']['loop']-1;
if ($this->_sections['out']['show']) {
    $this->_sections['out']['total'] = $this->_sections['out']['loop'];
    if ($this->_sections['out']['total'] == 0)
        $this->_sections['out']['show'] = false;
} else
    $this->_sections['out']['total'] = 0;
if ($this->_sections['out']['show']):

            for ($this->_sections['out']['index'] = $this->_sections['out']['start'], $this->_sections['out']['iteration'] = 1;
                 $this->_sections['out']['iteration'] <= $this->_sections['out']['total'];
                 $this->_sections['out']['index'] += $this->_sections['out']['step'], $this->_sections['out']['iteration']++):
$this->_sections['out']['rownum'] = $this->_sections['out']['iteration'];
$this->_sections['out']['index_prev'] = $this->_sections['out']['index'] - $this->_sections['out']['step'];
$this->_sections['out']['index_next'] = $this->_sections['out']['index'] + $this->_sections['out']['step'];
$this->_sections['out']['first']      = ($this->_sections['out']['iteration'] == 1);
$this->_sections['out']['last']       = ($this->_sections['out']['iteration'] == $this->_sections['out']['total']);
?>
 <?php if (!($this->_sections['out']['index'] % 2)): ?>
<ul id="page_<?php echo $this->_tpl_vars['language'][$this->_sections['out']['index']]['languageid']; ?>
" class="one">
 <?php else: ?>
<ul id="page_<?php echo $this->_tpl_vars['language'][$this->_sections['out']['index']]['languageid']; ?>
" class="two">
 <?php endif; ?>
 <li><?php echo $this->_tpl_vars['language'][$this->_sections['out']['index']]['languageid']; ?>
</li>
 <li><?php echo $this->_tpl_vars['language'][$this->_sections['out']['index']]['name']; ?>
</li>
 <li><?php echo $this->_tpl_vars['language'][$this->_sections['out']['index']]['filename']; ?>
</li>
 <li><?php echo $this->_tpl_vars['language'][$this->_sections['out']['index']]['charset']; ?>
</li>
 <li><?php echo $this->_tpl_vars['language'][$this->_sections['out']['index']]['ord']; ?>
</li>
 <li style="width:180px;"><a class="button1" href="" onclick="if(confirm('sure?')) xajax_DeleteLanguage(<?php echo $this->_tpl_vars['language'][$this->_sections['out']['index']]['languageid']; ?>
);return false;" title=""><?php echo $this->_tpl_vars['LANG']['delete']; ?>
</a> <a class="button1" href="" onclick="xajax_ModifyLanguage(<?php echo $this->_tpl_vars['language'][$this->_sections['out']['index']]['languageid']; ?>
); return false;" title=""><?php echo $this->_tpl_vars['LANG']['edit']; ?>
</a></li>
 </ul>
 <?php endfor; endif; ?>
</div>

<div id="languageadded">
 
</div>
<div id="page">
 <?php echo $this->_tpl_vars['page']; ?>

</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>