使用 GD 或任何其他 php 库构建工作流程
我正在开发一个体育网站,该网站将记录网球、足球和橄榄球的所有锦标赛。现在我的数据库结构是为了保存谁在哪个锦标赛中比赛而建立的,因此只需选择即可显示所有信息。我所说的工作流程类型是体育竞技场中常用的一种工作流程,其中会列出选手的姓名,并且还列出该场比赛的级别(淘汰赛、四分之一决赛、半决赛等) 。但我不知道正确的术语。我会给你一个例子来说明它的外观。
我确信通过使用网络技术这是可能的,我只是发现很难从哪里开始。非常感谢任何意见或建议。另外,如果有任何我可以用于此目的的库,那将非常有帮助。
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.
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据您想要格式化信息的方式,您应该可以通过几种方式来实现。
您可以像您提到的那样使用 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.
乍一看,我会看到以下数据:
您可以将其建模到关系数据库中,例如 MySQL。
然后,您可以在应用程序的类中创建模型,例如在 PHP 中。
然后,您可以创建一个 Web UI 来显示您输入到数据库中的数据。您可以使用 GD 来实现这一点(如果有需要,我认为 HTML 对此并没有那么糟糕,在将所有内容转换为图像之前,首先使用基于简单文本的输出来实现)。
也许这很有帮助。评论有点长,所以我将其添加为答案。
Well on a first glance I would see the following data:
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.