Changeset 1156226
- Timestamp:
- 05/08/2015 02:57:51 PM (11 years ago)
- Location:
- contact-form-advanced-database/trunk
- Files:
-
- 4 edited
-
lib/cf7_adb.class.php (modified) (3 diffs)
-
lib/display/cf7-db-view.php (modified) (2 diffs)
-
lib/js/cf7-script.js (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contact-form-advanced-database/trunk/lib/cf7_adb.class.php
r1156213 r1156226 15 15 16 16 function renderGUI(){ 17 add_submenu_page( 'wpcf7','C F7 Advance DB','CF Advance DB', 'manage_options', 'cf7-adb', array($this,'renderBackend') );17 add_submenu_page( 'wpcf7','Contact Form Advanced Database','Contact Form Advanced Database', 'manage_options', 'cf7-adb', array($this,'renderBackend') ); 18 18 } 19 19 … … 50 50 foreach($_POST['data'] as $postData){ 51 51 delete_post_meta($postData['id'],$postData['key'],maybe_unserialize(base64_decode($postData['val']))); 52 52 53 } 53 54 echo "success"; … … 64 65 add_action('load-' . $hook, function() { 65 66 $id= $_GET['id']; 66 $filename = "c fad_" . date('Ymd') . ".xls";67 $filename = "contact_form_advanced_database_" . date('Ymd') . ".xls"; 67 68 header("Content-Disposition: attachment; filename=\"$filename\""); 68 69 header("Content-Type: application/vnd.ms-excel"); -
contact-form-advanced-database/trunk/lib/display/cf7-db-view.php
r1156213 r1156226 1 1 <?php add_thickbox(); ?> 2 2 <div class="wrap"> 3 <h2>C F Advance DB3 <h2>Contact Form Advanced Database 4 4 <select id="cf7-selector"> 5 5 <?php … … 88 88 89 89 </div> 90 <a href="#TB_inline?width=600&height=550&inlineId=<?php echo $thDiv; ?>" title="Contact Form 7fields and value" class="view-button thickbox">View</a></td>90 <a href="#TB_inline?width=600&height=550&inlineId=<?php echo $thDiv; ?>" title="Contact Form fields and value" class="view-button thickbox">View</a></td> 91 91 <td> 92 92 <span class="del-button" data-id="<?php echo $cf7Selector; ?>" data-key="cf7-adb-data" data-val="<?php echo base64_encode(maybe_serialize($leadData)); ?>">Delete</span> -
contact-form-advanced-database/trunk/lib/js/cf7-script.js
r1156213 r1156226 7 7 //gathering data 8 8 alldataArr = []; 9 dataObj = {};9 10 10 var dataDiv = []; 11 11 $('.adb-chk:checked').each(function(indx){ 12 dataObj = {}; 12 13 dataObj.id = $(this).data('id'); 13 14 dataObj.key = $(this).data('key'); … … 16 17 dataDiv[indx] = $(this); 17 18 }); 19 18 20 19 21 //ajax call … … 24 26 }, 25 27 function(response){ 28 26 29 if(response=="success"){ 27 30 dataDiv.forEach(function(el){ -
contact-form-advanced-database/trunk/readme.txt
r1156213 r1156226 1 === Contact Form Advance Database===1 === Contact Form Advanced Database=== 2 2 Contributors: akosicb 3 3 Tags: contact, form, contact form database, contact form leads. … … 17 17 == Installation == 18 18 19 1. Upload the entire `contact-form-advance -db` folder to the `/wp-content/plugins/` directory.19 1. Upload the entire `contact-form-advanced-database` folder to the `/wp-content/plugins/` directory. 20 20 2. Activate the plugin through the 'Plugins' menu in WordPress. 21 21 3. Contact Form 7 plugin is required, please install it (https://wordpress.org/plugins/contact-form-7/).
Note: See TracChangeset
for help on using the changeset viewer.