0

Hoping someone has stumble on something that would help me, I am trying to add a jquery calendar to my site, and the only ones I can seem to find are ones that have hourly events, for one person. I am looking for a grid, booked out type thing. My explanation is poor so I brought pictures. Something like.

Grid layout

So basically I can add a list of items and what days they are marked out. Sort of a booking system. I don't need hourly, just daily markers.

Anyone know one? If not I am going to have to write my own.

Thanks.

4

1 回答 1

0

为什么需要日历?你没有日期,它是一个每周的概念,你可以用表格或 div 做你需要的一切。

您只需要返回一个带有人员及其可用性的 json 对象。

data = {
  'schedule': [
    {
    'name': 'Car1',
    'week': 51,
    'availability':  {
         'mon': True,
         'tue': False,
         //etc
     }
     }, /etc
   ]
  }

或者

data = {
   // ...
  'availability': [1,0,0,0,0,0,1]
}

只是我的两分钱,我看不出对日历有什么特别需要。

于 2013-02-10T14:13:38.443 回答