Файл: InstantSocial/uploud/templates/_default_/admin/autoform.php
Строк: 25
<?php
global $tpl_data;
extract($tpl_data);
?>
<input type="hidden" name="do" value="save_auto_config" />
<div class="params-form">
<table cellpadding="3" cellspacing="0" border="0">
<?php foreach($fields as $fid=>$field){ ?>
<tr id="f<?php echo $fid; ?>">
<td class="param-name">
<div class="label"><strong><?php echo $field['title']; ?></strong></div>
<?php if ($field['hint']) { ?>
<div class="hinttext"><?php echo $field['hint']; ?></div>
<?php } ?>
<?php if ($field['type']=='list_db' && $field['multiple']) { ?>
<div class="param-links">
<a href="javascript:" onclick="$('tr#f<?php echo $fid; ?> td input[type=checkbox]').attr('checked', 'checked')">Выделить все</a> |
<a href="javascript:" onclick="$('tr#f<?php echo $fid; ?> td input[type=checkbox]').attr('checked', '')">Снять все</a>
</div>
<?php } ?>
</td>
<td class="param-value">
<?php echo $field['html']; ?>
</td>
</tr>
<?php } ?>
</table>
</div>
<div class="params-buttons">
<input type="submit" name="save" class="button" value="Сохранить" />
</div>
<script type="text/javascript">
function submitModuleConfig(){
$('#optform').submit();
}
</script>