예제 #1
0
if ($team_id) {
    echo "<hr>";
    switch ($GLOBALS['package']) {
        case 1:
            for ($i = 1; $i < 6; $i++) {
                echo "<div class='form-group'>";
                echo ' <label for="inputEmail3" class="col-md-2 control-label">' . GlobalGetRole($i) . '</label>';
                echo '<div class="col-md-5">';
                GetUserSelection($i, GetUserForRosterRole($i, $team_id), 'role_selection');
                echo "</div>";
                echo "</div>";
            }
            echo "<div class='form-group'>";
            echo ' <label for="inputEmail3" class="col-md-2 control-label">' . GlobalGetRole(9) . '</label>';
            echo '<div class="col-md-5">';
            GetUserSelection(9, GetUserForRosterRole(9, $team_id), 'role_selection');
            echo "</div>";
            echo "</div>";
            break;
    }
}
?>
	     		      		     		      
      </form>
      </div>
     <div class="modal-footer">
		<button type="button" data-dismiss='modal' class="btn btn-primary">Close</button>
		<button type='button'  data-dismiss='modal'  id='save_team' class='btn btn-success'>Save</button>
	</div>
    </div>
  </div>
예제 #2
0
                break;
            case 2:
                $row[] = UserGetInfoByColumn('username', 'id', GetUserForRosterRole(1, $aRow['id']));
                break;
            case 3:
                $row[] = UserGetInfoByColumn('username', 'id', GetUserForRosterRole(2, $aRow['id']));
                break;
            case 4:
                $row[] = UserGetInfoByColumn('username', 'id', GetUserForRosterRole(3, $aRow['id']));
                break;
            case 5:
                $row[] = UserGetInfoByColumn('username', 'id', GetUserForRosterRole(4, $aRow['id']));
                break;
            case 6:
                $row[] = UserGetInfoByColumn('username', 'id', GetUserForRosterRole(5, $aRow['id']));
                break;
            case 7:
                $row[] = UserGetInfoByColumn('username', 'id', GetUserForRosterRole(6, $aRow['id']));
                break;
            case 8:
                $row[] = '
								  <button type="button" data-id="' . $aRow['id'] . '" class="btn btn-warning edit"><i class="fa fa-cogs"></i></button>
								   <button type="button" data-id="' . $aRow['id'] . '" class="btn btn-danger delete"><i class="fa fa-times"></i></button>
						      ';
                break;
        }
    }
    $output['aaData'][] = $row;
}
echo json_encode($output);
/* Data set length after filtering */