Expandable rows?
-
Hey there, great looking plugin! I have just a couple questions for you…
1. I need to be able to expand each row to show more detailed information about the expanded row. Is this plugin capable of doing this? If not, do you know how I would be able to add this functionality because I know that it is possible with the Jquery DataTables API which I assume is where this plugin is developed from…
2. My table is being generated dynamically using PHP via a shortcode/function pair that I am developing. How would you suggest that I use your plugin in conjunction with this?
here is my code:
add_shortcode('user_database_mm','user_database_generate'); function user_database_generate(){ global $wpdb; $user_ID = get_current_user_id(); $form_db_name = "form_contact_information"; $results = $wpdb->get_results("Select * FROM $form_db_name"); echo '<table style="width:100%" id="user_data_table"> <tr> <th></th> <th>User ID</th> <th>First Name</th> <th>Last Name</th> <th>Contact Form</th> <th>Edit</th> </tr>'; foreach ($results as $user_data){ echo '<tr> <td>'.get_avatar($user_data->user_ID,30).'</td> <td>'.$user_data->user_ID.'</td> <td>'.$user_data->first_name.'</td> <td>'.$user_data->last_name.'</td> <td>YES</td> <td><form method="post" action="'.$this_page.'"></td> </tr>'; } echo '</table>'; echo do_shortcode('[wp_jdt id="user_data_table"]'); }
many thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Expandable rows?’ is closed to new replies.