帮助花园日历 [英] help with garden calendar

查看:92
本文介绍了帮助花园日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作输入霜冻日期的日历,并根据此日期计算其他日期列表,这些日期将是输入日期的特定时间。我有很少的编程技巧,并希望得到任何帮助。


我已经获得了输入霜冻日期并输出一个日期的代码(此日期前6周=番茄种植日期)。我希望输出按钮是一个日期列表,或者弹出多个按钮.....也许有人可以帮助添加一个日期行,我可以弄清楚如何重复。或者指导我研究更多需要的功能。谢谢!


测试网站: http://bioarray.us/generate%20planti...=5&d1=20&m1=10

代码到目前为止:

I''m trying to make a calendar where the frost date is input and based on this date, a list of other dates are calculated that will be specific times from the input date. I have minimal programming skills and would appreciate any help.

I''ve gotten code that will input the frost date and output a single date (6 weeks prior to this date = tomato planting date). I wish the output button was a list of dates, or there were multiple buttons that pop up..... Maybe someone could help with adding one more date line and I can figure out how to repeat. Or direct me to the function I need to research more. Thanks!

test site: http://bioarray.us/generate%20planti...=5&d1=20&m1=10

code so far:

展开 | 选择 | Wrap | 行号

推荐答案

@carletongardener


将帖子移至appropr在这个论坛上讨论董事会。 (X)HTML / CSS不符合要求......
@carletongardener
Move post to appropriate board on this forum. (X)HTML/CSS does not meet need required...


@carletongardener


您可以使用几个复选框来设置要计算的日期(番茄,黄瓜等)复选框的值可以是减去/添加到当前日期的天数。这样,按钮触发的功能需要使用传递的值来获取所有选中的复选框以计算日期。


为了更好地设置页面样式,请查看CSS,特别是属性 padding margin 应该是好的开始。


最后,我认为你最好使用HTML而不是XHTML以

开头 - Internet Explorer不支持true XHTML(使用推荐的mime类型application / xhtml + xml)

- XHTML作为文本/ HTML"被视为HTML

- XHTML必须格式正确,否则浏览器会给你一个错误(所谓的黄色死亡屏幕(YSOD))

(空元素) (例如< img>,< br>,< hr>)写成< tagname />(< img />,< br />,< hr />),&必须永远逃脱)


问候
@carletongardener
you could use a couple of checkboxes to set the dates (tomato, cucumber, ...) to be computed. the checkboxes'' value could be the number of days to subtract/add to the current date. this way, the function triggered by the button needs to fetch all the checked checkboxes using their passed value to compute the date.

for a better styling of the page have a look at CSS, especially the properties padding and margin should be good to start.

finally, I think you''d better use HTML than XHTML to start with
- true XHTML (with the recommended mime type "application/xhtml+xml") is not supported by Internet Explorer
- XHTML served as "text/html" is treated as HTML
- XHTML must be well-formed, otherwise browsers give you an error (the so-called Yellow Screen Of Death (YSOD))
(empty elements (like <img>, <br>, <hr>) are written <tagname/> (<img/>, <br/>, <hr/>), & must always be escaped)

regards


感谢您的建议!


对不起,我不知道如何移动这个帖子,甚至不确定它应该移动到哪里。 (令人尴尬......)


我认为我转换为HTML。我正在使用DreamWeaver。


新测试站点: http://bioarray.us/planting%20calendar%202.html


现在看起来更好了。我只需要获取计算器函数来生成几个不同的日期,这些日期与输入日期的时间长度不同,并将这些日期输入相应的框中。


新代码:
Thanks for the suggestions!

I''m sorry I can''t figure out how to move this thread and am not even sure where it should be moved to. (embarrassing...)

I converted to HTML, I think. I''m using DreamWeaver.

New test site: http://bioarray.us/planting%20calendar%202.html

Looks nicer now. I just need get the calculator functions to generate several different dates that are different lengths fo time form input date and enter these into the appropriate boxes.

New code:
展开 | 选择 | Wrap | 行号


这篇关于帮助花园日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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