在表中显示行 [英] show rows in table

查看:66
本文介绍了在表中显示行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨大师


我想知道你是否可以把我送到正确的方向:


我有一张约300行的桌子。我想让所有这些都隐形

当用户在表单中输入代码然后将选定的代码显示出来。


目前,我是这样做:

www.corstorphinehouse.com /d/avail.html


目标是允许用户查看特定日期的可用性。他们将

输入抵达日期和他们入住的天数。


TIA

- Nicolaas

Hi Gurus

I was wondering if you can send me in the right direction:

I have a table with about 300 rows. I want to make all of them invisible
and when a user enters a code in a form then make selected ones visible.

At the moment, I am doing it as follows:

www.corstorphinehouse.com/d/avail.html

The goal is to allow users to view availability for certain days. They will
enter the arrival date and the number of days that they will be staying.

TIA
- Nicolaas

推荐答案

" WindAndWaves" <交流**** @ ngaru.com>在消息中写道

新闻:iz ******************* @ news.xtra.co.nz ...
"WindAndWaves" <ac****@ngaru.com> wrote in message
news:iz*******************@news.xtra.co.nz...
嗨大师

我想知道你是否可以把我送到正确的方向:

我有一张约300排的桌子。我想让所有这些都看不见
当用户在表单中输入代码然后将选定的代码显示出来。

目前,我的工作如下:

www.corstorphinehouse.com/d/avail.html

目标是允许用户查看特定日期的可用性。他们
将输入抵达日期和他们将入住的天数。

TIA

- Nicolaas
Hi Gurus

I was wondering if you can send me in the right direction:

I have a table with about 300 rows. I want to make all of them invisible
and when a user enters a code in a form then make selected ones visible.

At the moment, I am doing it as follows:

www.corstorphinehouse.com/d/avail.html

The goal is to allow users to view availability for certain days. They will enter the arrival date and the number of days that they will be staying.

TIA
- Nicolaas



为什么不使用日历控件,因为它更加用户友好。


至少,将d / m / y值默认为当前或明天'这是他们可能不必进入/更改

字段中的一个或两个的日期。


另一个,也许是首选,替代方案是显示下一个

几个月的日历,颜色表示可用性。例如,请访问
http://www.chippewahotel.com/room_rates .phtml


WindAndWaves写道:
WindAndWaves wrote:
嗨大师

我想知道你是否可以发送我在正确的方向:
[...]目标是允许用户查看特定日期的可用性。他们将输入到达日期和他们将要入住的天数。
Hi Gurus

I was wondering if you can send me in the right direction: [...] The goal is to allow users to view availability for certain days. They will
enter the arrival date and the number of days that they will be staying.




如果您的目标是在没有数据库的情况下提供信息并且<没有使用JS的
,你已经取得了很好的成功。


你需要什么样的方向? :-)


Fred。



If your goal was to provide the information without a database and
without using JS, you''ve suceeded quite nicely.

What kind of direction do you need? :-)

Fred.


" Fred Oz" <盎司**** @ iinet.net.auau>在留言中写道

news:41 ********************** @ per-qv1-newsreader-01.iinet.net.au ...
"Fred Oz" <oz****@iinet.net.auau> wrote in message
news:41**********************@per-qv1-newsreader-01.iinet.net.au...
WindAndWaves写道:
WindAndWaves wrote:
嗨大师

我想知道你是否可以向我发送正确的方向:
Hi Gurus

I was wondering if you can send me in the right direction:


[...]


[...]

目标是允许用户查看特定日期的可用性。他们
将输入到达日期和他们将要入住的天数。
The goal is to allow users to view availability for certain days. They will enter the arrival date and the number of days that they will be staying.



如果你的目标是在没有数据库的情况下提供信息而没有使用JS,你已经取得了相当不错的成就。​​

你需要什么样的方向? :-)

弗雷德。



If your goal was to provide the information without a database and
without using JS, you''ve suceeded quite nicely.

What kind of direction do you need? :-)

Fred.




亲爱的弗雷德


谢谢 - 你是对的,我希望所有数据都包含在一个HTML

页面(包括Javascript)中,因为我对PHP一无所知而且

使得它变得更加困难。我的网页是从

预订的数据库中自动发送的。


我想要做的基本上就是我现在所拥有的,但是,我想如果我只有一张桌子,我可以隐藏所有的行,按需显示适用的

天。


McKirahan建议一个日历,但我们的地方不喜欢同时显示所有日期,因为 - 如果我们还不忙,这个

看起来很糟糕。


我有一个脚本,允许你使用鼠标悬停来隐藏/显示div

脚本,我基本上想要这样做,但是一开始和结束日期

以一种形式输入,然后打开多行。我有可能,每个TR的
使用一个ID(例如日期,例如D041223)


TIA


- 尼古拉斯



Dear Fred

Thank you - you are right, I would like all data to be contained in one HTML
page (inc. Javascript ), because I do not know anything about PHP and it
makes it a lot more difficult. My webpage is send automatically from a
reservation''s database.

What I want to do is basically what I have now, but, I thought if I just had
one table where I could hide all the rows and on demand show the applicable
days.

McKirahan suggested a calender, but our place does not like to show all
their dates at the same time, because - in case we are not busy yet, this
will look bad.

I have a script that allows you to hide / show a div using a mouseover
script and I basically would like to do this, but with a start and end date
entered in a form which then "open up" a number of rows. I could possible,
for each TR use an ID (e.g. the date, e.g. D041223 )

TIA

- Nicolaas


这篇关于在表中显示行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆