使用 GD 或任何其他 php 库构建工作流程

发布于 2024-12-01 22:21:00 字数 328 浏览 4 评论 0原文

我正在开发一个体育网站,该网站将记录网球、足球和橄榄球的所有锦标赛。现在我的数据库结构是为了保存谁在哪个锦标赛中比赛而建立的,因此只需选择即可显示所有信息。我所说的工作流程类型是体育竞技场中常用的一种工作流程,其中会列出选手的姓名,并且还列出该场比赛的级别(淘汰赛、四分之一决赛、半决赛等) 。但我不知道正确的术语。我会给你一个例子来说明它的外观。

在此处输入图像描述

我确信通过使用网络技术这是可能的,我只是发现很难从哪里开始。非常感谢任何意见或建议。另外,如果有任何我可以用于此目的的库,那将非常有帮助。

I am developing a sports website that would be keeping a record of all tournaments in tennis, football and rugby. Now my database structure is built to hold who plays who in which tournament, so it would just be a select to display all the information. The type of workflow that I am talking about is the one that is commonly used in the sports arena where players' names are listed head to head, and the level of that match(knockout,quater final, semifinal, etc.) are also listed. I do not know the correct term for this though. I will give you an example for how it would look.

enter image description here

I am sure this is possible by using web technology, I am just finding it hard on where to start. Any advice or suggestions are much appreciated. Also if there are any libraries I could use for this, that would be immensely helpful.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

唔猫 2024-12-08 22:21:00

根据您想要格式化信息的方式,您应该可以通过几种方式来实现。

您可以像您提到的那样使用 GD,但是一旦您获得越来越大的括号,这可能会有点乏味。 (我对 GD 没有太多的经验,但我知道基础知识)

我已经使用 html 和 css 实现了 256 人的梯子或支架。事实证明这非常简单,并且应该能够轻松扩展并且易于更改。

Depending on how you want to format the information you should be able to do it in a few ways.

You could use GD like you mentioned but that may be a bit tedious once you get larger and larger brackets. (I don't have a lot of exp. with GD but I know the basics)

I have implemented a 256 person ladder or bracket using html and css. This proved to be pretty simple to do and it should be able to scale easily and be easy to make changes to.

彼岸花似海 2024-12-08 22:21:00

乍一看,我会看到以下数据:

  • 球队
  • 杯数(有回合数)
  • 回合数(比赛数)
  • 比赛数(球队数)

您可以将其建模到关系数据库中,例如 MySQL。

然后,您可以在应用程序的类中创建模型,例如在 PHP 中。

然后,您可以创建一个 Web UI 来显示您输入到数据库中的数据。您可以使用 GD 来实现这一点(如果有需要,我认为 HTML 对此并没有那么糟糕,在将所有内容转换为图像之前,首先使用基于简单文本的输出来实现)。

也许这很有帮助。评论有点长,所以我将其添加为答案。

Well on a first glance I would see the following data:

  • Teams
  • Cups (having Rounds)
  • Rounds (of Matches)
  • Matches (of Teams)

You could model that into a relational database, e.g. MySQL.

You can then create models in classes for your application, e.g. in PHP.

You can then create a Web UI to display the data you've entered into the database. You can use GD for that (if it's a need, I think HTML is not that bad for that, would do it with simple text based output first before turning everything into an image).

Maybe that's helpful. Was a bit lengthy for a comment, so I added it as an answer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文