?> <span class="required">*</span></label> <div class="controls"> <input id="name" type="text" name="name" class="input-large" maxlength="30" value="<?php echo set_value('name', isset($permissions['name']) ? $permissions['name'] : ''); ?> " /> <span class="help-inline"><?php echo form_error('name'); ?> </span> </div> </div> <div class="control-group <?php echo form_has_error('description') ? 'error' : ''; ?> "> <label for="description" class="control-label"><?php echo lang('permissions_description'); ?> </label> <div class="controls"> <input id="description" type="text" name="description" maxlength="100" value="<?php echo set_value('description', isset($permissions['description']) ? $permissions['description'] : ''); ?> " /> <span class="help-inline"><?php echo form_error('description'); ?> </span>
} } ?> <?php echo form_dropdown("view_field_type{$count}", $view_field_types, set_value("view_field_type{$count}", $default_field_type), lang('mb_form_type'), 'id="view_field_type' . $count . '"', '<span class="help-inline">' . form_error("view_field_type{$count}") . '</span>'); ?> <?php $db_field_types = array('VARCHAR' => 'VARCHAR', 'BIGINT' => 'BIGINT', 'BINARY' => 'BINARY', 'BIT' => 'BIT', 'BLOB' => 'BLOB', 'BOOL' => 'BOOL', 'CHAR' => 'CHAR', 'DATE' => 'DATE', 'DATETIME' => 'DATETIME', 'DECIMAL' => 'DECIMAL', 'DOUBLE' => 'DOUBLE', 'ENUM' => 'ENUM', 'FLOAT' => 'FLOAT', 'INT' => 'INT', 'LONGBLOB' => 'LONGBLOB', 'LONGTEXT' => 'LONGTEXT', 'MEDIUMBLOB' => 'MEDIUMBLOB', 'MEDIUMINT' => 'MEDIUMINT', 'MEDIUMTEXT' => 'MEDIUMTEXT', 'SET' => 'SET', 'SMALLINT' => 'SMALLINT', 'TEXT' => 'TEXT', 'TIME' => 'TIME', 'TIMESTAMP' => 'TIMESTAMP', 'TINYBLOB' => 'TINYBLOB', 'TINYINT' => 'TINYINT', 'TINYTEXT' => 'TINYTEXT', 'VARBINARY' => 'VARBINARY', 'YEAR' => 'YEAR'); ?> <?php echo form_dropdown("db_field_type{$count}", $db_field_types, set_value("db_field_type{$count}", isset($existing_table_fields[$count]) ? $existing_table_fields[$count]['type'] : ''), lang('mb_form_dbtype'), 'id="db_field_type' . $count . '"', '<span class="help-inline">' . form_error("db_field_type{$count}") . '</span>'); ?> <div class="control-group <?php echo form_has_error("db_field_length_value{$count}") ? 'error' : ''; ?> "> <label class="control-label" for="db_field_length_value<?php echo $count; ?> "><?php echo lang('mb_form_length'); ?> </label> <?php $default_max_len = ''; if (isset($existing_table_fields[$count]) && $existing_table_fields[$count]['type'] != 'TEXT' && $existing_table_fields[$count]['type'] != 'MEDIUMTEXT' && $existing_table_fields[$count]['type'] != 'LONGTEXT') { $default_max_len = $existing_table_fields[$count]['type'] == 'ENUM' || $existing_table_fields[$count]['type'] == 'SET' ? $existing_table_fields[$count]['values'] : $existing_table_fields[$count]['max_length']; } ?>
<div class="control-group<?php echo form_has_error('context_name') ? ' error' : ''; ?> "> <label for="context_name" class="control-label"><?php echo lang('mb_context_name'); ?> </label> <div class="controls"> <input type="text" name="context_name" id="context_name" class="input-large" value="<?php echo settings_item('context_name'); ?> " /> <span class="help-inline"><?php echo form_has_error('context_name') ? form_error('context_name') . '<br />' : ''; echo lang('mb_context_name_help'); ?> </span> </div> </div> <?php if (isset($roles) && is_array($roles) && count($roles)) { ?> <div class="control-group"> <label class="control-label" id="roles_label"><?php echo lang('mb_roles_label'); ?> </label> <div class="controls" aria-labelledby="roles_label" role="group">
<?php } ?> <?php } ?> </select> <span class="help-inline"><?php echo form_error('default_context') ? form_error('default_context') : lang('role_default_context_note'); ?> </span> </div> </div> <div class="control-group <?php echo form_has_error('default') ? 'error' : ''; ?> "> <label class="control-label" for="default"><?php echo lang('role_default_role'); ?> </label> <div class="controls"> <label class="checkbox" for="default" > <input type="checkbox" name="default" id="default" value="1" <?php echo set_checkbox('default', 1, isset($role) && $role->default == 1 ? TRUE : FALSE); ?> /> <?php echo lang('role_default_note'); ?>
echo form_error($obj_type . '_person_name_' . $type); ?> </td> </tr> <?php } ?> <tr> <td><label for="name">Name:</label></td> <td><?php echo input_tag($obj_type . '_person_name_' . $type, $sf_params->get($obj_type . '_person_name_' . $type)); ?> </td> </tr> <?php if (form_has_error($obj_type . '_email_' . $type)) { ?> <tr> <td colspan="2"><?php echo form_error($obj_type . '_email_' . $type); ?> </td> </tr> <?php } ?> <tr> <td><label for="email">Email:</label></td> <td><?php echo input_tag($obj_type . '_email_' . $type, $sf_params->get($obj_type . '_email_' . $type)); ?> </td> </tr>