Changeset 2543210
- Timestamp:
- 06/06/2021 09:39:39 AM (5 years ago)
- Location:
- easy-form-builder
- Files:
-
- 50 added
- 6 edited
-
tags/1.33.1 (added)
-
tags/1.33.1/emsfb.php (added)
-
tags/1.33.1/includes (added)
-
tags/1.33.1/includes/admin (added)
-
tags/1.33.1/includes/admin/assets (added)
-
tags/1.33.1/includes/admin/assets/css (added)
-
tags/1.33.1/includes/admin/assets/css/admin-rtl.css (added)
-
tags/1.33.1/includes/admin/assets/css/admin.css (added)
-
tags/1.33.1/includes/admin/assets/image (added)
-
tags/1.33.1/includes/admin/assets/image/logo-20px.png (added)
-
tags/1.33.1/includes/admin/assets/image/logo-gray.png (added)
-
tags/1.33.1/includes/admin/assets/image/logo.png (added)
-
tags/1.33.1/includes/admin/assets/js (added)
-
tags/1.33.1/includes/admin/assets/js/admin.js (added)
-
tags/1.33.1/includes/admin/assets/js/core.js (added)
-
tags/1.33.1/includes/admin/assets/js/list_form.js (added)
-
tags/1.33.1/includes/admin/assets/js/listicons.js (added)
-
tags/1.33.1/includes/admin/assets/js/popper.min.js (added)
-
tags/1.33.1/includes/admin/assets/js/server.js (added)
-
tags/1.33.1/includes/admin/class-Emsfb-admin.php (added)
-
tags/1.33.1/includes/admin/class-Emsfb-create.php (added)
-
tags/1.33.1/includes/admin/class-Emsfb-panel.php (added)
-
tags/1.33.1/includes/class-Emsfb-install.php (added)
-
tags/1.33.1/includes/class-Emsfb-public.php (added)
-
tags/1.33.1/includes/class-Emsfb.php (added)
-
tags/1.33.1/includes/functions.php (added)
-
tags/1.33.1/index.php (added)
-
tags/1.33.1/languages (added)
-
tags/1.33.1/languages/index.php (added)
-
tags/1.33.1/public (added)
-
tags/1.33.1/public/assets (added)
-
tags/1.33.1/public/assets/css (added)
-
tags/1.33.1/public/assets/css/all5-14-0.min.css (added)
-
tags/1.33.1/public/assets/css/bootstrap-multiselect.css (added)
-
tags/1.33.1/public/assets/css/bootstrapv4-6-0.min.css (added)
-
tags/1.33.1/public/assets/css/choices.min.css (added)
-
tags/1.33.1/public/assets/css/font-awesome-animation.min.css (added)
-
tags/1.33.1/public/assets/css/font-awesome4-7-0.min.css (added)
-
tags/1.33.1/public/assets/css/style-rtl.css (added)
-
tags/1.33.1/public/assets/css/style.css (added)
-
tags/1.33.1/public/assets/images (added)
-
tags/1.33.1/public/assets/images/.keep (added)
-
tags/1.33.1/public/assets/images/efb-poster.png (added)
-
tags/1.33.1/public/assets/js (added)
-
tags/1.33.1/public/assets/js/choices.min.js (added)
-
tags/1.33.1/public/assets/js/core.js (added)
-
tags/1.33.1/public/assets/js/jquery.js (added)
-
tags/1.33.1/public/assets/js/listicons.js (added)
-
tags/1.33.1/public/assets/js/popper.min.js (added)
-
tags/1.33.1/readme.txt (added)
-
trunk/emsfb.php (modified) (1 diff)
-
trunk/includes/admin/assets/js/admin.js (modified) (1 diff)
-
trunk/includes/admin/assets/js/list_form.js (modified) (8 diffs)
-
trunk/includes/admin/class-Emsfb-panel.php (modified) (1 diff)
-
trunk/includes/class-Emsfb-public.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-form-builder/trunk/emsfb.php
r2543066 r2543210 4 4 * Plugin URI: https://whitestudio.team 5 5 * Description: Easily create multi-step forms with tracking code support by using Easy Form Builder's drag & drop form wizard. This is the free version with limits. 6 * Version: 1.33. 06 * Version: 1.33.1 7 7 * Author: WhiteStudio 8 8 * Author URI: https://whitestudio.team -
easy-form-builder/trunk/includes/admin/assets/js/admin.js
r2542987 r2543210 1499 1499 {id:'register', title:efb_var.text.registerForm, desc:efb_var.text.createRegistrationForm, status:true, icon:'fa-user-plus'}, 1500 1500 {id:'login', title:efb_var.text.loginForm, desc:efb_var.text.createLoginForm, status:true, icon:'fa-sign-in'}, 1501 {id:'subscription', title:efb_var.text.subscriptionForm, desc:efb_var.text.createnewsletterForm, status: false, icon:'fa-bell'},1501 {id:'subscription', title:efb_var.text.subscriptionForm, desc:efb_var.text.createnewsletterForm, status:true, icon:'fa-bell'}, 1502 1502 {id:'support', title:efb_var.text.supportForm, desc:efb_var.text.createSupportForm, status:true, icon:'fa-life-ring'}, 1503 1503 {id:'survey', title:efb_var.text.survey, desc:efb_var.text.createsurveyForm, status:false, icon:'fa-bar-chart'}, -
easy-form-builder/trunk/includes/admin/assets/js/list_form.js
r2542987 r2543210 1233 1233 //json ready for download 1234 1234 //778899 1235 let exp =[];1235 // let exp =[]; 1236 1236 let head ={}; 1237 1237 let heads =[]; 1238 1238 let ids =[]; 1239 1239 let count =-1; 1240 // console.log(value); 1241 const rows = Array.from(Array(value.length+1), () => Array(100).fill('null@EFB')); 1240 console.log(value.length); 1241 console.log(value); 1242 const rows = Array.from(Array(value.length), () => Array(100).fill('null@EFB')); 1242 1243 let i_count =-1; 1243 1244 for (v of value){ 1244 1245 const content =v.content ? JSON.parse(v.content.replace(/[\\]/g, '')) : {name:'not found', value:'not found'} 1245 const rows = Array.from(Array(content.length+1), () => Array(100).fill('null@EFB')); 1246 console.log(content.length); 1247 // const rows = Array.from(Array(content.length+1), () => Array(100).fill('null@EFB')); 1246 1248 console.log(content); 1247 1249 count +=1; … … 1277 1279 // console.log(c) 1278 1280 let name = `${content[c].name} [${content[c].id_}]`; 1281 let test =-1; 1279 1282 if (c==0){ 1280 1283 rows[0][0]=name; 1281 1284 value_col_index=0; 1282 1285 }else{ 1286 test =1; 1283 1287 name = `${content[c].name} [${content[c].id_}]`; 1284 1288 let value_col_index = rows[0].findIndex(x=>x ==name); 1289 console.log(name , value_col_index); 1285 1290 if(value_col_index!=-1){ 1286 1291 // rows[0][value_col_index]=name; 1287 rows[parseInt( c)+1][parseInt(value_col_index)]=content[c].value;1292 rows[parseInt(i_count)][parseInt(value_col_index)]=content[c].value; 1288 1293 }else{ 1294 test =2; 1289 1295 value_col_index = rows[0].findIndex(x=>x =='null@EFB'); 1290 1296 // console.log(content[c] , c ); 1291 1297 rows[0][parseInt(value_col_index)]=name; 1298 if(name == 'Check box [gv08k9v3p]'){ 1299 console.log(`77778 value_col_index=[${value_col_index}] c=[${c}] row[0]=[${rows[0][parseInt(value_col_index)]}] test[${test}]`); 1300 console.log(`77778`,rows[0]); 1301 } 1292 1302 // rows[parseInt(c)+1][value_col_index]=content[c].value; 1293 1303 } 1304 /* test code */ 1305 1306 /* test code */ 1307 1294 1308 // console.log(i_count) 1295 rows[parseInt(i_count)][parseInt(value_col_index)] = content[c].value;1309 1296 1310 } 1297 1298 } 1299 console.log(rows);1311 rows[parseInt(i_count)][parseInt(value_col_index)] = content[c].value; 1312 } 1313 // console.log(rows); 1300 1314 /* let r ; 1301 1315 if (c.type!="checkbox"){ … … 1342 1356 } 1343 1357 console.log(rows,"rslt") 1344 exp.push(rows); 1358 // exp.push(rows); 1359 } 1360 const col_index = rows[0].findIndex(x=>x =='null@EFB'); 1361 console.log(efb_var.text.noComment); 1362 const exp = Array.from(Array(value.length), () => Array(col_index).fill(efb_var.text.noComment)); 1363 for (e in exp){ 1364 for (let i =0 ; i<col_index ; i++){ 1365 if(rows[e][i]!="null@EFB") exp[e][i]=rows[e][i]; 1366 } 1345 1367 } 1346 1368 console.log(exp); 1369 // console.log(exp); 1347 1370 localStorage.setItem('rows_ws_p', JSON.stringify(exp)); 1348 localStorage.setItem('head_ws_p', JSON.stringify(head));1349 } 1350 1351 1352 1353 function exportCSVFile_emsFormBuilder( headers,items, fileTitle) {1371 // localStorage.setItem('head_ws_p', JSON.stringify(head)); 1372 } 1373 1374 1375 1376 function exportCSVFile_emsFormBuilder(items, fileTitle) { 1354 1377 //source code :https://codepen.io/danny_pule/pen/WRgqNx 1355 1378 1356 if (headers) {1379 /* if (headers) { 1357 1380 items.unshift(headers); 1358 } 1381 } */ 1359 1382 // Convert Object to JSON 1360 1383 var jsonObject = JSON.stringify(items); … … 1403 1426 1404 1427 function generat_csv_emsFormBuilder(){ 1405 const head = JSON.parse(localStorage.getItem("head_ws_p"));1428 //const head = JSON.parse(localStorage.getItem("head_ws_p")); 1406 1429 const exp = JSON.parse(localStorage.getItem("rows_ws_p")); 1407 1430 /* console.log(head); … … 1410 1433 //040820 1411 1434 1412 exportCSVFile_emsFormBuilder( head,exp,filename); // create csv file1435 exportCSVFile_emsFormBuilder(exp,filename); // create csv file 1413 1436 //convert_to_dataset_emsFormBuilder(); //create dataset for chart :D 1414 1437 } … … 1419 1442 const head = JSON.parse(localStorage.getItem("head_ws_p")); 1420 1443 const exp = JSON.parse(localStorage.getItem("rows_ws_p")); 1421 let titles =[]; 1444 let rows =exp; 1445 /* let titles =[]; 1422 1446 let rowNo =0; 1423 1447 let yy =0 1424 for(let h in head){ 1448 // for(let h in head){ 1449 for(let h in Exp[0]){ 1425 1450 titles.push(h); 1426 1451 rowNo +=1; … … 1461 1486 } 1462 1487 } 1463 console.log(rows); 1488 console.log(rows); */ 1464 1489 let countEnrty = Array.from(Array(rows[0].length), () => Array(0).fill(0)); 1465 1490 let entry = Array.from(Array(rows[0].length), () => Array(0).fill(0)); … … 1488 1513 } 1489 1514 } 1490 /*console.log(titleTable);1515 /* console.log(titleTable); 1491 1516 console.log(entry); 1492 console.log(countEnrty ); */1517 console.log(countEnrty ); */ 1493 1518 emsFormBuilder_chart(titleTable,entry,countEnrty); 1494 1519 } -
easy-form-builder/trunk/includes/admin/class-Emsfb-panel.php
r2520621 r2543210 182 182 "survey" => __('Survey','easy-form-builder'), 183 183 "chart" => __('Chart','easy-form-builder'), 184 "noComment" => __('No comment','easy-form-builder'), 184 185 "please" => __('Please','easy-form-builder'), 185 186 ]; -
easy-form-builder/trunk/includes/class-Emsfb-public.php
r2542987 r2543210 150 150 "info" => __('information'), 151 151 "areYouSureYouWantDeleteItem" => __('Are you sure want to delete this item?','easy-form-builder'), 152 "noComment" => __('No comment','easy-form-builder'), 152 153 "please" => __('Please','easy-form-builder'), 153 154 … … 798 799 //$ip = $this->ip; 799 800 } 800 801 $r = false; 801 802 if($value!=null){ 802 803 $r=true; 803 804 804 805 $response = array( 'success' => true , "value" =>$value[0] , "content"=>$content); … … 811 812 //recaptcha end 812 813 813 814 814 815 }//end function 815 816 -
easy-form-builder/trunk/readme.txt
r2543066 r2543210 3 3 Tags: form builder, form creator, contact form, support form, subscribe form 4 4 Donate link: https://ko-fi.com/whitestudio 5 Stable tag: 1.33 5 Stable tag: 1.33.1 6 6 Requires at least: 4.7 7 7 Tested up to: 5.7.2 … … 26 26 - Create sample file upload form 27 27 - Create Support forms 28 - Create subscription or newsletters signup forms (this will active at next version)28 - Create subscription or newsletters signup forms 29 29 - Create Login (sign-in) forms 30 30 - Create Registration (sign-up) forms … … 93 93 == Changelog == 94 94 95 = 1.33.1 = 96 * Fixed issues 97 * Add subscription form type 98 95 99 = 1.33.0 = 96 * fixed issues100 * Fixed issues 97 101 98 102 = 1.32.9 = 99 * fixed issues103 * Fixed issues 100 104 101 105 = 1.32.8 = 102 106 * Fixed issues about UI 103 * deactive subscription form card107 * Deactive subscription form card 104 108 105 109 = 1.32.7 =
Note: See TracChangeset
for help on using the changeset viewer.