how add a form in views - drupal

I created a views showing user details, and i would like to show this views by date-wise.
I want to create a starting date and ending date (January 1 2011 to February 25 2011), then click submit. It show only the user join between January 1 to February 25.
Is it not possible to do in views, if so please tell me the other methods to do.

For this you can use the Filter area in views. You select the User Join date as a filter, then you click the Expose button. Then in the radio list choose the one where it says something like "is between". Then you should have a form where you can select a start and end date for the users on the page.

Related

show only one date picker when creating new appointment telerik

Can i create a new appointment inside rad Scheduler based on a single date(select only one day without the need of selecting start date and end date)
For example if we have an occasion like birthday the user should have only one date picker to select the day of the birthday without the need of selecting start day and end day.
Please review the attached picture to help you understand more what i need.
enter image description here
Telerik supports creating custom Scheduler Edit form Templates. See any of the links below for sample code:
http://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/how-to/customize-the-advanced-form-template
http://demos.telerik.com/aspnet-ajax/scheduler/examples/raddock/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx
It should also be possible to intercept the client-side event when the edit form is being shown and hide the control you want hidden at that time.
http://blogs.msmvps.com/bmains/2010/08/15/telerik-radscheduler-client-side-capabilities-part-2-the-advanced-form/

Combine 2 user profile fields to provide "Add More" to the whole field

I am trying to create a user profile field in drupal 7 that combines multiple fields and can have multiple values.
For Example,
the field is "Past Job Title" ,"From Year", "To Year" and the whole field ( having 3 sub fields ) can have multiple values thus can have values like
< "Google" , 2000, 2003 ><br/>
< "Facebook" , 2003, 2007 ><br/>
< "Xerox", 2007, 2009 ><br/>
The user should be able to add as many values he/she wants.
In Drupal 7, Multiple Values for a single field can be enabled by setting Number of Values to Unlimited, but how to do in case of multiple fields combined together.
Please Do Suggest...
I believe what you are looking for is the Field Collection module. It allows you to group fields together and allows the entering of many groups. The following article gives a good description of what the module does: Create Multigroups in Drupal 7 using Field Collections
From the Field Collection project page:
Provides a field-collection field, to which any number of fields can
be attached.
A field collection is internally represented as an entity, which is
embedded in the host entity. Thus, if desired field collections may be
viewed and edited separately too.
How can we validate each field collection entity?
Let me Explain:
I have used field collection in line item types.
Line Item type = People
Field collection fields are:
Title
First Name
Last Name etc
I have given the number of values: unlimited. That's why add another item button is appearing.
Now, if user entered values in one set and left others blank and then clicked on add to cart button then, how can stop him to continue further.

food-menu problem in drupal

I am trying to create a food menu for a boarding school. The idea is to let the students view what they have on menu for the whole day. That is, breakfast, lunch and dinner. This menu would be prepopulated weekly by a user.
My problem are as follows:
1) How do i use view module to just display items for one day?
2) Do i need like a date field, and calender module?
I would recommend using the Date module.
Add a date field to your 'boardingschoolmenu' content type.
Then in views you would add the fields you want visible (breakfast, lunch, dinner, etc)
Add a filter on content type 'boardingschoolmenu'
Add an argument for the date field. In the settings of the argument, under "Action to take if argument is not present", select: Provide default argument followed by: Current date (or can use php code if you want another date).

Submitting form custom module

I have a question regarding drupal 6 forms.
I have 4 tables:
location[locationid, name];
package[packageid, name],
person[personid, name, locationid, address, etc...]
pickup[pickupid, personid, packageid, locationid, _pickup_day_,...].
I've made forms and form_submit for the three tables: location, package, person (simple CRUD as usual).
Now, I want to make a form to submit data into the "pickup" table. The twist is, the only
data the user needs to input is the "pickup_day" field, which can be 1 or 0 (monday or tuesday).
So I imagine when I go to the pickups url, I'll see a list of output fields:
firstname | lastname | location | pickup day | package type
first1 last1 church1 select box (monday/tuesday) select box (type1/type2/type3)
first2 last2 church1 select box (monday/tuesday) select box (type1/type2/type3)
first3 last3 church1 select box (monday/tuesday) select box (type1/type2/type3)
[submit button]
When its submitted, the data goes into "pickup" table.
I'm trying to figure how to render the select boxes while outputting person's information.
(Just an aside, would it be possible to have a search before seeing the form...for example I search for
location to be church1, then I'll see all the users at that location in a form as above)
All help is very much appreciated...even pointing to a module that does something similar to this is fine...
I just need to get some hints on how people have approached this. Much thanks!
End goal:
So, basically, I have a number of people in my database. Each person is assigned a location where they can go and pickup food. I want to record each pickup for each week for each person. So I have a pickups table to do that. So I'm trying to make a single form (pickups), where I can go to and update who picked up what...on what day (Monday or Tuesday). But so in this form, I need to show all the people registered for a particular location. So lets say a person is registered for a church called Church 1...I want to search for the Church 1 location, then all the people who are registered for that location comes up row by row. Then I can select which day each person picked up food and what type of food they picked up...and click submit. Then I'll run a query against my database to add this information.
The big deal I guess is that instead of making a form for each person (for each row), I just make one form and when the form is submitted everyone will be added to the "pickup" table with the appropriate day and item they picked up.
I would suggest you look at the form API's built-in AHAH support. You can find more information here: http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html/6#ahah. Assuming I understand your question correctly, this is a fairly typical ajax/ahah form situation; an element in your form triggers the creation of new form elements.
For example, you can create a select box of locations. Once a location is selected (#ahah['event'] => 'change'), you can make a callback to a menu location (#ahah['path'] => path/to/callback) which can generate the new form elements to add, in this case select boxes for the persons and/or packages associated with that location.
You could also do something similar using search instead of a select element.

Versatile DatePicker control which satisfies these requirements

I am looking for a ready made control, ASP.NET server control or jQuery, or close enough which satisfies these requirements for a ASP.NET app:
1- Supports a year view (can display 12 months).
2- Ability to select a date range using Click on start date - shift click on end date and it selects all the days in between.
3- A date range can span more than one month. Start date can be in one month and end date in another month and it selects all days in between.
4- Can deselect a day inside a selected range (using ctrl-click).
5- Can select multiple individual days using ctrl-click. (Can do this across 12 months).
6- Can select multiple date ranges. (none of the controls I know supports this. When I select another date, the days in the older range disappear)
7- Selected dates will be saved in a database and I need to support ability to display previously selected dates when page renders the datepicker.
8- Need source code to be able to customize
There probably doesn't exist a control which does all this. The closest ones I have found so far:
1- JS Calendar. Can't select more than one date range. Can't display more than one month?
2- DatePicker. Can't select more than one date range. Can't multiselect.
3- Telerik RadCalendar. All I know I can multiselect. No date range. Need to purchase whole ASP.NET suite.
The one from EssentialObjects.com did it. The one from about.com was second. Telerik's datepicker does a postback every time I changed the month which I didn't like.

Resources