dongxue163536 2010-08-02 09:23
浏览 29
已采纳

需要帮助制作和查询成本矩阵表?

I had built a website for my client with Drupal 6 . Now he wants to query cost of his service from one town to another town. I know basics of CCK and Views. I will need two select box for towns and show cost of between two towns and a way to let customer enter cost between towns. What is the easiest way of doing it in Drupal ? I am a java guy no PHP experience.

Edit:tablefield look promising. I need a way filter it view module. If I will succeed will write how to do it here.

  • 写回答

1条回答 默认 最新

  • dongyingdao8867 2010-08-02 09:38
    关注

    As a hack-type solution, you could do this:

    1. Create a new content (node) type, say, "Transport Routes".
    2. In it, define CCK fields From town, To town, Cost.
    3. Create a new View, which would display the Cost field.
    4. For the above view, enable two filters on the From and To fields, and make these filters accessible to the user.

    It does sound very awkward, I know, and a better solution is probably to write a simple custom module, yet if you prefer to stay away from PHP - this is one way to do it.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?