echo FHtml::beginForm(array('/Core/category/save'), 'post', array('enctype' => 'multipart/form-data')); FHtml::hightlightErrorFields(); echo FHtml::activeHiddenField($category, 'Id'); echo FHtml::activeHiddenField($category, 'IsActive', array('value' => 1)); ?> <h3>Edit category</h3> <div class="Input"> <label for="Category_Title">Name (*): </label><a name="title"></a> <?php echo FHtml::activeTextField($category, 'Title'); ?> </div> <div class="Input"> <label for="Category_Description">Description: </label> <?php echo FHtml::activeTextArea($category, 'Description', array('cols' => 48, 'rows' => 6)); ?> </div> <div class="Input"> <label for="Category_Image">Image: </label><a name="title"></a> <?php echo FHtml::activeFileField($category, 'Image'); if (!empty($category->Image)) { ?> <div style="padding: 1em 0 0 160px;"> <img src="<?php echo BASEURL . '/image.php?thumb=' . $category->Image; ?> " /> <?php
<label>Enabled: (*)</label> <div class="radio-list"> <?php $htmlOptions = array('separator' => ' '); if ($module->IsSystem) { $htmlOptions['disabled'] = 'disabled'; } echo FHtml::activeRadioButtonList($module, 'Enabled', $module->getEnabledOptions(), $htmlOptions); ?> </div> </div> <div class="Input"> <label>Description</label> <?php echo FHtml::activeTextArea($module, 'Description'); ?> </div> <div class="Input"> <label>Author:</label> <?php echo FHtml::activeTextField($module, 'Author'); ?> </div> <div class="Input"> <label>Version:</label> <?php echo FHtml::activeTextField($module, 'Version'); ?>