コード例 #1
0
						
						
						
					</div>
					
					
				</fieldset>
				
				<fieldset id="fieldset_table_qbe">
					<legend style="color:#cc0000">ROLE信息</legend>
					
					<div>
							
						<div class="checkbox-list">
							<?php 
$role_arr = AdminRole::getAdminRoleArr();
foreach ($role_arr as $id => $label) {
    $checked = '';
    if (in_array($id, $role_ids)) {
        $checked = 'checked="true"';
    }
    ?>
							<label class="checkbox-inline">
								<div id="uniform-inlineCheckbox21" class="checker">
									<span><input <?php 
    echo $checked;
    ?>
  type="checkbox" value="<?php 
    echo $id;
    ?>
" id="inlineCheckbox" name="role[<?php 
コード例 #2
0
 public function getTableFieldArr()
 {
     $table_th_bar = [['orderField' => 'id', 'label' => 'ID', 'width' => '110', 'align' => 'center'], ['orderField' => 'username', 'label' => '用户名称', 'width' => '110', 'align' => 'center'], ['orderField' => 'person', 'label' => '姓名', 'width' => '110', 'align' => 'center'], ['orderField' => 'role', 'width' => '110', 'align' => 'left', 'display' => AdminRole::getAdminRoleArr()], ['orderField' => 'email', 'width' => '110', 'align' => 'center'], ['orderField' => 'created_at_datetime', 'width' => '190', 'align' => 'center'], ['orderField' => 'updated_at_datetime', 'width' => '190', 'align' => 'center'], ['orderField' => 'auth_key', 'width' => '190', 'align' => 'center'], ['orderField' => 'status', 'width' => '60', 'align' => 'center', 'display' => ['1' => '激活', '10' => '关闭']], ['orderField' => 'access_token', 'align' => 'center']];
     return $table_th_bar;
 }
コード例 #3
0
 public function getEditArr()
 {
     return [['label' => '用户名', 'name' => 'username', 'display' => ['type' => 'inputString'], 'require' => 1], ['label' => '密码', 'name' => 'password', 'display' => ['type' => 'inputPassword'], 'require' => 0], ['label' => '邮箱', 'name' => 'email', 'require' => 1, 'display' => ['type' => 'inputEmail']], ['label' => '姓名', 'name' => 'person', 'require' => 1, 'display' => ['type' => 'inputString']], ['label' => '用户状态', 'name' => 'status', 'display' => ['type' => 'select', 'data' => [AdminUserForm::STATUS_ACTIVE => '激活', AdminUserForm::STATUS_DELETED => '关闭']], 'require' => 1, 'default' => AdminUserForm::STATUS_ACTIVE], ['label' => '权限', 'name' => 'role', 'display' => ['type' => 'select', 'data' => AdminRole::getAdminRoleArr()]], ['label' => '出生日期', 'name' => 'birth_date', 'display' => ['type' => 'inputDate']], ['name' => 'auth_key', 'display' => ['type' => 'inputString']], ['name' => 'access_token', 'display' => ['type' => 'inputString']]];
 }