维护会员在组织中花费的时间:Drupal 网站

发布于 2024-09-07 03:44:08 字数 560 浏览 1 评论 0原文

我正在运行我大学的 Drupal 网站。每个学生在任何类型的运动中都有一定的(固定)小时数要完成。现在,我使用CCK和Views在我的网站上维护各种体育项目。

现在,如果一名学生参加某项运动(如 A),他将访问该网站并查看 A 的详细信息。此外,在指定的时间段后,A 页面上会出现一个链接,学生可以在其中查看他的时间。然后,他可以登录并查看 A 的工作时间。类似地,也可以查看其他人的工作时间。这里重要的一点是,对于不同的运动,他会看到不同的管理时间。

他还会在某个时间点看到已批准的总时间。

我网站上的大部分时间都是使用 .csv 文件上传的。因此,我主要尝试在不使用 Drupal 模块的情况下完成此操作。当有人上传 .csv 文件时,我将页面标题作为参数,并创建一个名称为页面标题的表,该表只是我的事件名称。而且,当某个学生查询他的小时数时,我将其作为隐藏参数发送页面标题,然后返回该学生的小时数。

但是,现在我想使用 Drupal 模块来执行此操作,因为这种方法在某种程度上不起作用。谁能给我推荐一个用于上述内容的 Drupal 模块?

我尝试使用上面的许多模块,最接近的是用户点,其中我将点视为小时。但这有一些问题。

I am running a Drupal powered website of my college. Each student has a certain (fixed) number of hours to complete in any kind of sport. Now, I am maintaining various sports on my website using CCK and Views.

Now, if a student plays some sport say A, he will go to the website and check out A's details. Also, after specified period of time a link appears on the A page where student can check out his hours. He can then log in and check his hours for A. And similarly, for others. Important point here is for different sports he will see differently managed hours.

There will also be a point where he can see his total hours that have been approved.

Most of the hours in my website are uploaded using .csv file. So, I am trying to do this mainly without the Drupal Modules. When someone uploads a .csv file I take the page title as a parameter and create a table with name as page title which is nothing but my event name. And, when some student queries his hours, I send it as a hidden parameter the title of the page and then return the hours of the student.

But, now I want to do this using a Drupal Module because this approach is somehow not working. Can anyone suggest me a Drupal Module for the above?

I tried using many modules for above, most close being User Points, in which I perceive points as hours. But this had some problems.

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

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

发布评论

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

评论(1

一笑百媚生 2024-09-14 03:44:08

问题没有明确说明,但这可以是一个解决方案:

  • 学生是该网站的用户。
  • 体育是节点。
  • 会话是节点。
  • 会话有开始日期和结束日期以及两个日期字段。
  • 会话使用节点引用字段与体育相关。
  • 会话与使用多值用户引用字段的学生相关。
  • 当学生与会话相关联时,意味着它已经完成与该会话相关的运动的一些小时。总小时数由课程的开始和结束日期决定。
  • 使用视图和视图附加,您可以
    • 在其页面上显示即将举行的运动比赛。
    • 在其页面上显示某项运动最近的会议。
    • 在学生的个人资料页面上显示其最新已完成课程。
  • 使用自定义模块和视图主题,在体育页面上,您可以添加指向最近的每个会话的链接,以允许学生(即用户)将他/她自己与该会话相关联。

The problem is not clearly stated, but this can be a solution:

  • Students are users of the site.
  • Sports are nodes.
  • Sessions are nodes.
  • Sessions have a start and end date, two Date fields.
  • Sessions are related to Sports using a nodereference field.
  • Sessions are related to Students using a multivalued userreference field.
  • When a Students is associated to a Session, it means it has completed some hours of the Sport related to that Session. The total number of hours are determined by the Session's start and end dates.
  • Using Views and Views Attach you can
    • Display upcoming Sessions for a Sport on its page.
    • Display recent previous Sessions for a Sport on its page.
    • Display the latest completed Sessions for a student on his/her profile page.
  • Using a custom module and Views theming, on a Sport page you can add links to each of its recent previous Sessions to allow a student (ie. a user) to associate him/herself with that Session.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文