Quantcast

Need Help

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Need Help

mohit kumar
Hi Folks,

Can anyone help me regarding this.
http://stackoverflow.com/questions/11864306/how-to-display-a-grid-of-checkboxes-in-cakephp-for-add-action



With Best Regards,
Mohit Kumar

+91-9582894570

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Need Help

mohit kumar
Any idea guys?

With Best Regards,
Mohit Kumar

+91-9582894570



On Thu, Aug 9, 2012 at 11:03 AM, mohit kumar <[hidden email]> wrote:
Hi Folks,

Can anyone help me regarding this.
http://stackoverflow.com/questions/11864306/how-to-display-a-grid-of-checkboxes-in-cakephp-for-add-action



With Best Regards,
Mohit Kumar

+91-9582894570


--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Need Help

Tilen Majerle
i'm not understanding you well, describe more about your problem..
--
Lep pozdrav, Tilen Majerle



2012/8/10 mohit kumar <[hidden email]>
Any idea guys?

With Best Regards,
Mohit Kumar

<a href="tel:%2B91-9582894570" value="+919582894570" target="_blank">+91-9582894570



On Thu, Aug 9, 2012 at 11:03 AM, mohit kumar <[hidden email]> wrote:
Hi Folks,

Can anyone help me regarding this.
http://stackoverflow.com/questions/11864306/how-to-display-a-grid-of-checkboxes-in-cakephp-for-add-action



With Best Regards,
Mohit Kumar

<a href="tel:%2B91-9582894570" value="+919582894570" target="_blank">+91-9582894570


--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Need Help

mohit kumar
How can i display the data in this format. [] are checkboxes
  1.  
  2. Users   Shift1 shift2 shift3 shift4
  3. user1    []      []     []     []
  4. user2    []      []     []     []
  5. user3    []      []     []     []
  6. user4    []      []     []     []
  7. user5    []      []     []     []


With Best Regards,
Mohit Kumar

+91-9582894570



On Fri, Aug 10, 2012 at 2:30 PM, Tilen Majerle <[hidden email]> wrote:
i'm not understanding you well, describe more about your problem..
--
Lep pozdrav, Tilen Majerle



2012/8/10 mohit kumar <[hidden email]>
Any idea guys?

With Best Regards,
Mohit Kumar

<a href="tel:%2B91-9582894570" value="+919582894570" target="_blank">+91-9582894570



On Thu, Aug 9, 2012 at 11:03 AM, mohit kumar <[hidden email]> wrote:
Hi Folks,

Can anyone help me regarding this.
http://stackoverflow.com/questions/11864306/how-to-display-a-grid-of-checkboxes-in-cakephp-for-add-action



With Best Regards,
Mohit Kumar

<a href="tel:%2B91-9582894570" value="+919582894570" target="_blank">+91-9582894570


--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Need Help

Mike Griffin
On Fri, Aug 10, 2012 at 10:05 AM, mohit kumar <[hidden email]> wrote:

> How can i display the data in this format. [] are checkboxes
>
>
> Users   Shift1 shift2 shift3 shift4
> user1    []      []     []     []
> user2    []      []     []     []
> user3    []      []     []     []
> user4    []      []     []     []
> user5    []      []     []     []
>

Is this something like what you are looking for?


<?php
echo "<table>";
foreach($users as $u) {
  // output the users name here, as the first cell of a table, for example
  echo "<tr><td>".$u['name']."</td>";
  for($i=0; $i<5; $i++) {
    // output the shifts here
    echo "<td>[CODE FOR CHECKBOX]</td>";
  }
  // finish the row in the table
  echo "</tr>";
}
echo "</table>";

Mike.

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Need Help

mohit kumar
thanks Mike.. Let me try that . But the problem is my controller that i generated by the bake is like

user -
shift -
save so with 1 form 1 can save only one user, will it be possible for me to save multiple mappings with one go

With Best Regards,
Mohit Kumar

+91-9582894570



On Fri, Aug 10, 2012 at 2:51 PM, Mike Griffin <[hidden email]> wrote:
On Fri, Aug 10, 2012 at 10:05 AM, mohit kumar <[hidden email]> wrote:
> How can i display the data in this format. [] are checkboxes
>
>
> Users   Shift1 shift2 shift3 shift4
> user1    []      []     []     []
> user2    []      []     []     []
> user3    []      []     []     []
> user4    []      []     []     []
> user5    []      []     []     []
>

Is this something like what you are looking for?


<?php
echo "<table>";
foreach($users as $u) {
  // output the users name here, as the first cell of a table, for example
  echo "<tr><td>".$u['name']."</td>";
  for($i=0; $i<5; $i++) {
    // output the shifts here
    echo "<td>[CODE FOR CHECKBOX]</td>";
  }
  // finish the row in the table
  echo "</tr>";
}
echo "</table>";

Mike.

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.



--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Need Help

Salines
http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-saveall-array-data-null-array-options-array

Dana petak, 10. kolovoza 2012. 11:24:07 UTC+2, korisnik mohit napisao je:
thanks Mike.. Let me try that . But the problem is my controller that i generated by the bake is like

user -
shift -
save so with 1 form 1 can save only one user, will it be possible for me to save multiple mappings with one go

With Best Regards,
Mohit Kumar

+91-9582894570



On Fri, Aug 10, 2012 at 2:51 PM, Mike Griffin <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="uDyrOb-W6pcJ">grif...@...> wrote:
On Fri, Aug 10, 2012 at 10:05 AM, mohit kumar <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="uDyrOb-W6pcJ">mohi...@...> wrote:
> How can i display the data in this format. [] are checkboxes
>
>
> Users   Shift1 shift2 shift3 shift4
> user1    []      []     []     []
> user2    []      []     []     []
> user3    []      []     []     []
> user4    []      []     []     []
> user5    []      []     []     []
>

Is this something like what you are looking for?


<?php
echo "<table>";
foreach($users as $u) {
  // output the users name here, as the first cell of a table, for example
  echo "<tr><td>".$u['name']."</td>";
  for($i=0; $i<5; $i++) {
    // output the shifts here
    echo "<td>[CODE FOR CHECKBOX]</td>";
  }
  // finish the row in the table
  echo "</tr>";
}
echo "</table>";

Mike.

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="uDyrOb-W6pcJ">cake...@....
To unsubscribe from this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="uDyrOb-W6pcJ">cake-php+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.



--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Need Help

Mike Griffin
In reply to this post by mohit kumar
On Fri, Aug 10, 2012 at 10:24 AM, mohit kumar <[hidden email]> wrote:
> thanks Mike.. Let me try that . But the problem is my controller that i
> generated by the bake is like
>
> user -
> shift -
> save so with 1 form 1 can save only one user, will it be possible for me to
> save multiple mappings with one go
>

Yes, it will. Once again, have you tried it? Please read the manual
and understand it, it's all in there.

Mike.

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Loading...