Changeset 954745
- Timestamp:
- 07/25/2014 12:34:50 PM (12 years ago)
- File:
-
- 1 edited
-
wordpress-custom-fields/trunk/wp-customfields.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-custom-fields/trunk/wp-customfields.php
r780356 r954745 124 124 where 125 125 option_name like 'wpcf_%' and option_name != 'wpcf_activation'"; 126 $result_posts = mysql_query($sql); 126 $options = $wpdb->get_results($sql); 127 127 128 $i = 0; 128 while ($row_post = mysql_fetch_assoc($result_posts)) {129 foreach ($options as $option) { 129 130 print '<div style="margin-bottom:30px;" id="d' . $i . '">'; 130 print '<strong>name : ' . str_replace('wpcf_', '', $ row_post["option_name"]) . '</strong>';131 print '<strong>name : ' . str_replace('wpcf_', '', $option->option_name) . '</strong>'; 131 132 print '<br/>'; 132 print '<input type="hidden" id="i' . $i . '" name="wpcf[]" value="' . stripslashes($ row_post["option_name"]) . '"/>';133 print '<strong>value : </strong><textarea id="tb' . $i . '" name="wpcfv[]">' . stripslashes($ row_post["option_value"]) . '</textarea>';133 print '<input type="hidden" id="i' . $i . '" name="wpcf[]" value="' . stripslashes($option->option_name) . '"/>'; 134 print '<strong>value : </strong><textarea id="tb' . $i . '" name="wpcfv[]">' . stripslashes($option->option_value) . '</textarea>'; 134 135 print ' <input type="checkbox" onClick="flip(document.getElementById(\'tb' . $i . '\'));"/> Delete'; 135 136 print '</div>';
Note: See TracChangeset
for help on using the changeset viewer.