<?php if ($module != '') { Yii::app()->layout = 'module'; } if (!empty($category)) { 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)) { ?>
<?php if (!empty($user)) { ?> <?php echo FHtml::beginForm(array('save')); // if($user->Id <= 0) FHtml::setScenario('register'); else FHtml::setScenario('editAccount'); echo FHtml::activeHiddenField($user, 'Id'); echo FHtml::activeHiddenField($user, 'Status'); ?> <h3>Edit user</h3> <div class="Input"> <label for="User_Username">Username *: </label> <?php echo FHtml::activeTextField($user, 'Username'); ?> </div> <div class="Input"> <label for="User_Password">Password <?php echo $requiredField = $user->Id > 0 ? '' : '*'; ?> : </label> <?php echo FHtml::activePasswordField($user, 'Password'); ?> </div> <div class="Input"> <label for="User_rePassword">Password (confirm) <?php echo $requiredField = $user->Id > 0 ? '' : '*';
<?php echo FHtml::activeTextField($module, 'TablePrefix'); ?> </div> <div class="Action"> <?php echo FHtml::submitButton('Save', array('name' => 'Save')); ?> <?php echo FHtml::link('Cancel', array('/Core/modules/all')); ?> </div> <?php echo FHtml::activeHiddenField($module, 'Id'); if ($module->IsSystem) { echo FHtml::activeHiddenField($module, 'Enabled'); echo FHtml::activeHiddenField($module, 'IsSystem'); } echo FHtml::endForm(); $cs = Yii::app()->ClientScript; $cs->registerScriptFile(Yii::app()->theme->BaseUrl . '/scripts/common.js', CClientScript::POS_BEGIN); } else { ?> <p><?php echo Yii::t('Module', 'MODULE_NOT_FOUND'); ?> </p> <?php }
} if (isset($message)) { echo '<div style="font-weight: bold; padding-left: 165px;">' . $message . '</div>'; } ?> <div class="Input"> <?php echo FHtml::activeHiddenField($user, 'Id'); ?> <label for="User_Username">Username</label> <span style="line-height: 20px; font-weight: bold;margin: 3px 5px 0px 0px; background-color: none; display: block;"><?php echo FHtml::encode($user->Username); ?> </span> <?php echo FHtml::activeHiddenField($user, 'Username'); ?> </div> <div class="Input"> <label for="User_FirstName">First name</label> <?php echo FHtml::activeTextField($user, 'FirstName', array('class' => 'text')); ?> </div> <div class="Input"> <label for="User_LastName">Last name</label> <?php echo FHtml::activeTextField($user, 'LastName', array('class' => 'text')); ?> </div> <div class="Input">
<label for="Page_Visible">Visible</label> <?php echo FHtml::activeDropDownList($param, 'Visible', array('1' => 'True', '0' => 'False')); ?> </div> <div class="Input"> <label for="Page_Module">Module</label> <?php echo CHtml::dropDownList('Setting[Module]', $param->Module, CHtml::listData($modules, 'Name', 'Name')); ?> </div> <div class="Action"> <?php echo FHtml::submitButton('Save'); ?> <?php echo FHtml::link('Cancel', array('/Core/settings/list')); ?> </div> <?php if (isset($action) && $action == 'updateParam') { echo FHtml::activeHiddenField($param, 'Module', array('name' => 'OldModule')); echo FHtml::activeHiddenField($param, 'Name', array('name' => 'OldName')); echo FHtml::activeHiddenField($param, 'Ordering', array('name' => 'OldOrdering')); } echo FHtml::endForm(); $cs = Yii::app()->ClientScript; $cs->registerScriptFile(Yii::app()->theme->BaseUrl . '/scripts/common.js', CClientScript::POS_BEGIN); } //!empty($user)