Can we have Multiple select in a dropdown in Zend - php

Any body have an idea how to have a multiple select in a drop down box in Zend framework.
Is it possible to do that user can have more than once selection in a drop down?
How we can do that in Zend form?
I will appreciate if any have knows this issue

I think Zend Framework doesn't have such option, but you can transform regular multiple select to a dropdown.
Try this plugin for regular multiselect

i don't think you can select multiples in a drop down box, But you can try.. Multiselect

Are you able to do it in a standard html page? (i.e without using zend just a normal html page).
I dont think that there is such an option to have a drop down with multi select in the standard html(dont know about HTML 5 though :) ).
So if the functionality is not available in the language of representation(HTML) itself, I dont think a that a server side framework can provide such a feature. (please enlighten me if I am wrong)
And yes you can do it on the client side for sure(javascript) as mentioned by divide by zero.

Related

Changing dropdown list/check box options

I have 4 drop-down lists / group of checkboxes in I need that after making a selection in any one list the options available in the other 3 lists change accordingly...either are not available for selection or are not present in the list itself.
I'm coding using PHP & MYSQL
Could someone please help me with this. I'm new to PHP.
This can not be done with just PHP and MySQL. You need to use Javascript or jQuery. jQuery is the easiest to learn.
You can do it but very hard. You should use jQuery, it's easier than PHP.

Cascading Dropdown In PHP

I have two dropdown list in my page i.e Location and Employee.
What I want to do is that I want to filter the employee according to the location.
That is ,,, When I select location Delhi than all the employees at delhi location are came into employee dropdown.
Is it possible in PHP????
Please help me out
That is not possible using just PHP unless you are okay with a page refresh in between. There are many ways to do this in JavaScript, have you tried using JavaScript?
EDIT: There might be some complex way using CSS3 selectors, but even if there is I would not advise doing it.
yes nothing is imposible. you can do it.. but you have to use scripting languages like ajax to accomplish that.. If you need more help please post your code....Yuo could find the answer here..
Populating second drop down based on selection of first with value from first database
Yes it's possible using php with ajax implementation.
Here's a good tutorial in which country, state, city example given. Hope this will help you.
http://roshanbh.com.np/2008/01/populate-triple-drop-down-list-change-options-value-from-database-using-ajax-and-php.html

Table Filtering with dropdown menu with jqGrid and php

I just wondering if i can create something similar to this but with javascript code cause i don't wanna buy the whole Jgrid php library.
I talk about the 4th column (drop down menu filter).
I have just create the first grid as they say here
Also i read some similar questions here but the most of them are based on ASP .net
If this can be achieved please give me some hints..
Thanks in advance.
What you need is just toolbar searching together with the common searching configuration. All the feature exists in the free open source version of jqGrid. Look at the demo. I hope it does what you need.

Layout Designer - Drag and Drop in PHP

I would like to build a Layout designer in PHP or would like to use a readymade script( even if it is a paid one )
Basically I would like to create a sort of Layout where users could choose fields to add from a "field chooser". Each field could be of any type... and we would like to provide a field group too, where the user could choose the number of columns, and make the columns of this "panel" droppable.
We should drag a field from a list, and drop the field to a placeholder on a Form (Panel?).
Finally, is it possible to "read" the form layout in order to store it for later use?
thanks
kabir
Yes there is a Drag and drop form/window designer for PHP - since 2007 the Delphi PHP IDE. It is now become part of the RADPHP X2 IDE available from Embarcadero. Both use the Delphi VCL framework.
There is RADPHP from Embarcadero technologies. It uses vcl for php framework for visual design. You can drag & drop while designing the page. But the html code it produces is not compatible with w3 standards.
Drag and drop isn't available in PHP. PHP is a server-side language; what you're asking for in client-side and would be accomplished using something like JavaScript. You would then use PHP to read the user's choices based on an event occuring, i.e. an item dropped or the user click a confirmation button.

Editable timetable using Drupal

I'd like to manage a timetable using Drupal 6, there are several pieces of equipment on which an administrator distributes people who get to use the equipment.
Essentially I want a table of equipment versus day of the week. The plan shows the occupation of all equipment for the whole week.
What makes it more complicated is that the editing of the timetable should be very easy and quick. Usually people have the equipment for multiple days, so one should be able e.g. to drag an entry and fill out more days this way. I'd also like to have a selection of people visible that one could drag onto the timetable and fill it out that way. I assume one can do that with javascript, but I have no experience with that.
Is it possible to create something
like that with the Drupal Forms API?
Any pointers/examples for the
dragging javascript?
Or is there some existing software or
Drupal module that can do that?
I've found a nice javascript example for drag and drop in a timetable, it should be possible to adapt that for my case. I'll just have to figure out how to best integrate it with Drupal.
Edit:
The script I've mentioned at the top of the answer did not work inside my Drupal installation so I switched to Jquery UI.
I've implemented it now as a custom Drupal module that uses JQuery UI for Drag&Drop functionality. I've enabled Drag&Drop for a HTML table, to save the timetable the elements of the table are read out via Javascript and then sent to my custom Drupal module using ajax.
A Fields drupal 7 module that creates a timetable field that can be display through an nice weekly grid. Can be use to display opening hours or working hours in a very neat way :
http://drupal.org/project/field_timetable
Couldn't Equipment be a Content Type, and have different properties as you describe? Then you can enter each piece of equipment as a node. This would save you a ton of time vs making it with the Form API.
CCK
TableField CCK
Why don't you use the Event module? Basically, it gives you an Event node type. Then a view can generate the calendar page of all nodes.
I am not exactly sure whether the MERCI module has every functionality you want. I ran some tests and it looks pretty good, works even better. It is though available only in the prerelease aplpha 5 version but it should do it's job.
To drag and drop. It should not be that difficult to improve the forms using some JQuery as #Fabian suggested.

Categories