Peruttu

Modify a baked [url removed, login to view] View in CakePHP

I need to modify a baked [url removed, login to view] View in a CakePHP project. Actually the edit-view has got a section of checkboxes which refers the following join table (in a MySQL database):

CREATE TABLE IF NOT EXISTS `amenities_properties` (

`id` int(11) unsigned NOT NULL auto_increment,

`property_id` int(11) NOT NULL,

`amenity_id` int(11) NOT NULL,

`specify` varchar(100) NOT NULL default 'yes',

PRIMARY KEY (`id`)

);

The join table is extended with the extra field 'specify' and right now the [url removed, login to view] partially refers this table by using the default FormHelper like this:

echo $form->input('Amenity', array( 'type' => 'select', 'multiple' => 'checkbox' ));

But, as you can see, like this no extra value for 'specify' is handled.

What I need is to change the edit-view so that a user can set values 3 possible values for the 'specify' field like this:

'no' ....................if checkbox is left unchecked

'yes' ...................if checkbox is checked

'whatever'...............if checkbox is checked AND a string 'whatever' is inserted

and after that, the join table in the database should be properly updated when button SUBMIT is pushed.

In other words I need to associate to each checkboxes an additional input text field to be eventually filled only if the checkboxes are previously checked.

To let this type of choice possible I would like to be used a javascript function like the following (see it in action):

[url removed, login to view]

In order to visualize better what I need, i attached an image "from this to this" that should better show you what I'm talking about.

If you think you can do this work don't hesitate to ask me any further details and if you'll be choose for the job I will upload the working CakePHP project on a webhosting and give you FTP and MySQL access.

Taidot: Javascript, PHP

Näytä lisää: cakephp checkbox change view, cakephp checkbox edit, cakephp edit baked ctp, cakephp edit join table, work view, work values, view work, view job, primary job, m string, job values, job edit, edit job, upload edit view cakephp, cakephp change edit view, cakephp checkbox edit form, cakephp checkbox javascript, cakephp ctp javascript, cakephp upload edit, cakephp extra checkbox view, cakephp javascript checkbox, cakephp edit ctp, the view, php cakephp, null

About the Employer:
( 0 reviews ) La Spezia, Italy

Projektin tunnus: #497794

4 freelanceria on tarjonnut keskimäärin 100 $ tähän työhön

oredale

Hello! Our professional team is interested in this project. We have a great experience with CakePHP.

120 $ USD 3 päivässä
(2 arvostelua)
3.8
LabsAtl

ATL Labs having a good experience of web designing, web programming using php/mysql/ajax and programmed many applications. We are the Professional Web Development Company having couple of years experience. We have expe Lisää

80 $ USD 3 päivässä
(1 arvostelu)
0.0
agphp

I worked in cakephp1.1 and also working cakephp1.2 with ajax & javascript. This is very simple task to do as I did this kind of functionalities in two of my latest projects. I will show all those before starting the jo Lisää

100 $ USD 2 päivässä
(0 arvostelua)
0.0
anaknewbie

Let me finished for you. It's easy for me.

100 $ USD 1 päivässä
(0 arvostelua)
0.0