echo FHtml::beginForm(array('settings/save'), 'post', array('enctype' => 'multipart/form-data')); echo FHtml::hiddenField('Module', $module); foreach ($params as $param) { ?> <?php if ($group != $param->GroupName) { $index++; $group = $param->GroupName; //Close form for old group echo "<div class=\"Action\" style=\"margin-left:250px\">" . FHtml::submitButton('Save') . "</div>"; echo FHtml::endForm(); echo "</div>"; //Open form for new group echo '<div id="group_' . $index . '" style="display:none" class="SettingGroup">'; echo "<h2 class=\"title\">{$param->GroupName}</h2>"; echo FHtml::beginForm(array('settings/save')); echo FHtml::hiddenField('Module', $module); } ?> <div class="Input"> <label class="LongFieldname" for="param_<?php echo $param->Name; ?> "><?php echo $param->Label; ?> </label> <?php echo $param->Html; ?> </div>
<?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 //$this->ActiveMenu = 'page/managePage'; $cs = Yii::app()->ClientScript; $cs->registerScriptFile(Yii::app()->theme->BaseUrl . '/scripts/common.js', CClientScript::POS_BEGIN); $cs->registerScriptFile(Yii::app()->request->getBaseUrl(true) . '/themes/global/scripts/jquery.tablesorter.js', CClientScript::POS_BEGIN); $cs->registerScriptFile(Yii::app()->request->getBaseUrl(true) . '/themes/global/scripts/jquery-ui-1.7.2.interaction.min.js', CClientScript::POS_BEGIN); ?> <h3><?php echo $module . " Parameters"; ?> </h3> <?php $output = FHtml::beginForm('', 'post', array('id' => 'frmModule')); $output .= "<span>Select module to see setting param</span> "; $output .= "<select name='module' id='lsModules'>"; foreach ($modules as $m) { if (empty($m['Module'])) { $m['Module'] = 'System'; } $output .= "<option value='" . $m['Module'] . "' " . ($m['Module'] == $module ? "selected='selected'" : "") . ">" . $m['Module'] . "</option>"; } $output .= "</select>"; $output .= FHtml::endForm(); echo $output; if (count($params)) { $groups = array_keys($params); $i = 0; foreach ($groups as $group) {
<?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 ? '' : '*';
<h3>My Account</h3> <?php echo FHtml::beginForm('', 'post', array('class' => 'form', 'id' => 'frmEditAccount')); FHtml::hightlightErrorFields(); $user->scenario = 'editAccount'; if (isset($errors)) { echo FHtml::showErrors($errors); } 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>
<h2 style="padding: 0px; height: 25px"><?php if ($this->get('Id', 0) == 0) { echo 'Add '; } else { echo 'Edit '; } ?> Module</h2> <?php if (!empty($module)) { echo FHtml::beginForm(array('/Core/modules/save'), 'post', array('id' => 'FormModuleEdit')); FHtml::hightlightErrorFields(); ?> <div class="Input"> <label>Name: (*)</label> <?php if ($module->IsNewRecord) { echo FHtml::activeTextField($module, 'Name'); } else { echo FHtml::encode($module->Name); echo FHtml::activeHiddenField($module, 'Name'); } ?> </div> <div class="Input"> <label>Title:</label> <?php echo FHtml::activeTextField($module, 'Title'); ?> </div>
<?php if (!empty($param)) { if (!isset($action)) { echo FHtml::beginForm(array('/Core/settings/saveNewParam')); } else { echo FHtml::beginForm(array('/Core/settings/' . $action)); } FHtml::hightlightErrorFields(); ?> <h3>Create parameter</h3> <div class="Input"> <label for="Page_Name">Name</label> <?php echo FHtml::activeTextField($param, 'Name'); ?> </div> <div class="Input"> <label for="Page_Label">Label</label> <?php echo FHtml::activeTextField($param, 'Label'); ?> </div> <div class="Input"> <label for="Page_Value">Value</label> <?php echo FHtml::activeTextField($param, 'Value'); ?> </div> <div class="Input"> <label for="Page_Description">Description</label>
<h1>Flexica</h1> <?php echo FHtml::beginForm(); // FHtml::hightlightErrorFields(); // FHtml::setScenario('login'); ?> <h2 class="User">Login</h2> <?php $controller = Yii::app()->getController(); //Show errors if (($errorMessage = $controller->Errors) != '<br/>') { echo $errorMessage; } if (isset($_GET['msg']) && !empty($_GET['msg'])) { echo $_GET['msg']; Yii::app()->user->returnUrl = Yii::app()->controller->createUrl('/Cms/admin/home'); } ?> <div class="Input"> <label for="User_Email">Email:</label><br/> <?php echo FHtml::activeTextField($user, 'Email', array('class' => 'TextBox')); ?> </div> <div class="Input"> <label for="User_Password">Password:</label><br/> <?php echo FHtml::activePasswordField($user, 'Password', array('class' => 'TextBox')); ?> </div> <div class="Remember">