ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Getting a data-view in the front end (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Getting a data-view in the front end
#7064
kleeflang (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Getting a data-view in the front end 3 Months, 1 Week ago Karma: 0  
Hello,

Is there someone who knows how to easily show the form table (the entries of a form) in the front end?

And is there a way to re-open a once filled form to change it?

I can code a little php if needed.

I know this might have been asked before, but I can't find anything on it.


Thank you,

Krijn<br><br>Post edited by: kleeflang, at: 2008/03/28 15:33
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#7071
GreyHead (Admin)
Admin
Posts: 2801
graph
User Offline Click here to see the profile of this user
Re:Getting a data-view in the front end 3 Months, 1 Week ago Karma: 59  
Hi Krijn,

The Profile PlugIn will let you create a single record from any database table in the front end. If you want more than one then you'd need to code the table yourself.

To re-open a form you'd need to look up the record in the database table and set the values of the fields from it. Not very difficult but has to be coded.

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#7622
kleeflang (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Getting a data-view in the front end 2 Months, 2 Weeks ago Karma: 0  
Hello Bob,

Is there any how-to on this plugin, because I'm having a hard time getting it to work.

Thank you,
Krijn
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#7634
GreyHead (Admin)
Admin
Posts: 2801
graph
User Offline Click here to see the profile of this user
Re:Getting a data-view in the front end 2 Months, 2 Weeks ago Karma: 59  
Hi Krijn,

No, I'm afraid there isn't at the moment. Just a few posts in the Forums here. It's on the To_Do list for both Max and I as soon as there's a few hours free.

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#7647
kleeflang (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Getting a data-view in the front end 2 Months, 2 Weeks ago Karma: 0  
Hi Bob,

I've got things to work a bit now, but I still need some help.
I made my own list view of records for the database.
Now I want users to be able to choose a record for editing according to the list.
The profiles plugin is working now, so I've got most covered.
Only thing is, I use radiobuttons, checkboxes etc.
Now how do I get that value from the {} back into a chosen box?
I mean, I don't think &lt;?php if({mycheck} == &quot;checkme&quot; ?&gt; will work or will it?

Thanks again,

Krijn
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#7649
GreyHead (Admin)
Admin
Posts: 2801
graph
User Offline Click here to see the profile of this user
Re:Getting a data-view in the front end 2 Months, 2 Weeks ago Karma: 59  
Hi Krijn,

Here's a chunk of code I've written to do this for Yes/No radio buttons. I'm sure that it can be adopted for checkboxes and otehr radio button configs:
Code:

&lt;?php $checked = &quot;checked='checked'&quot;; // set up an array of radio button names $q_array = array('q1', 'q2', 'q3'); // loop through the array // creating a smaller array for each pair of buttons foreach ($q_array as $q) { $$q = array(); ${$q}['y'] = ${$q}['n'] = &quot;&quot;; if ( $_POST[$q] == 'yes' ) { ${$q}['y'] = $checked; } elseif ( $_POST[$q] == 'no' ) { ${$q}['n'] = $checked; } } ?&gt;
and the input tag looks like
Code:

&lt;input type=&quot;radio&quot; name=&quot;q1&quot; value=&quot;yes&quot; &lt;?php echo $q1['y']; ?&gt; /&gt; &lt;input type=&quot;radio&quot; name=&quot;q1&quot; value=&quot;no&quot; &lt;?php echo $q1['n']; ?&gt; /&gt;
Bob<br><br>Post edited by: GreyHead, at: 2008/04/18 15:37
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials