* adjust for load lang from db.

This commit is contained in:
azhi
2013-08-07 15:48:55 +08:00
parent aebe854ad9
commit ea739d600b
6 changed files with 49 additions and 34 deletions
+13 -2
View File
@@ -63,7 +63,7 @@ EOT;
<td class='divider'></td>
<td>
<form method='post'>
<table align='center' class='table-1'>
<table class='table-1'>
<caption><?echo $lang->custom->$module . ' >> ' . $config->custom->$module->fields[$field]?></caption>
<tr>
<th class='w-100px'><?php echo $lang->custom->key;?></th>
@@ -85,7 +85,18 @@ EOT;
<?php endif;?>
</tr>
<?php endforeach;?>
<tfoot><tr><td colspan='<?php $canAdd ? print(3) : print(2);?>' class='a-center'><?php echo html::submitButton() . html::linkButton($lang->custom->restore, inlink('restore', "module=$module&field=$field"), 'hiddenwin')?></td></tr><tfoot>
<tfoot>
<tr>
<td colspan='<?php $canAdd ? print(3) : print(2);?>' class='a-center'>
<?php
$appliedTo = array($currentLang => $lang->custom->currentLang, 'all' => $lang->custom->allLang);
echo html::radio('lang', $appliedTo, 'all');
echo html::submitButton();
if(common::hasPriv('custom', 'restore')) echo html::linkButton($lang->custom->restore, inlink('restore', "module=$module&field=$field"), 'hiddenwin');
?>
</td>
</tr>
<tfoot>
</table>
</form>
</td>