Plugin Directory

Changeset 2543210


Ignore:
Timestamp:
06/06/2021 09:39:39 AM (5 years ago)
Author:
mrlast
Message:

readme.txt

Location:
easy-form-builder
Files:
50 added
6 edited

Legend:

Unmodified
Added
Removed
  • easy-form-builder/trunk/emsfb.php

    r2543066 r2543210  
    44 * Plugin URI:          https://whitestudio.team
    55 * 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.0
     6 * Version:             1.33.1
    77 * Author:              WhiteStudio
    88 * Author URI:          https://whitestudio.team
  • easy-form-builder/trunk/includes/admin/assets/js/admin.js

    r2542987 r2543210  
    14991499              {id:'register', title:efb_var.text.registerForm, desc:efb_var.text.createRegistrationForm, status:true, icon:'fa-user-plus'},
    15001500              {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'},
    15021502              {id:'support', title:efb_var.text.supportForm, desc:efb_var.text.createSupportForm, status:true, icon:'fa-life-ring'},
    15031503              {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  
    12331233  //json ready for download
    12341234  //778899
    1235   let exp =[];
     1235 // let exp =[];
    12361236  let head ={};
    12371237  let heads =[];
    12381238  let ids =[];
    12391239  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'));
    12421243  let i_count =-1;
    12431244  for (v of value){
    12441245    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'));
    12461248    console.log(content);
    12471249   count +=1;
     
    12771279    //  console.log(c)
    12781280      let name = `${content[c].name} [${content[c].id_}]`;
     1281      let test =-1;
    12791282      if (c==0){
    12801283        rows[0][0]=name;
    12811284        value_col_index=0;
    12821285      }else{
     1286        test =1;
    12831287         name = `${content[c].name} [${content[c].id_}]`;
    12841288        let value_col_index = rows[0].findIndex(x=>x ==name);
     1289        console.log(name , value_col_index);
    12851290        if(value_col_index!=-1){
    12861291         // 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;
    12881293        }else{
     1294          test =2;
    12891295          value_col_index = rows[0].findIndex(x=>x =='null@EFB');
    12901296         // console.log(content[c] , c );
    12911297          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          }
    12921302         // rows[parseInt(c)+1][value_col_index]=content[c].value;
    12931303        }
     1304        /* test code */
     1305   
     1306        /* test code */
     1307
    12941308       // console.log(i_count)
    1295         rows[parseInt(i_count)][parseInt(value_col_index)] = content[c].value;
     1309       
    12961310      }
    1297 
    1298     }
    1299     console.log(rows);
     1311      rows[parseInt(i_count)][parseInt(value_col_index)] = content[c].value;
     1312    }
     1313//    console.log(rows);
    13001314    /*  let r ;
    13011315      if (c.type!="checkbox"){
     
    13421356    }
    13431357    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    }
    13451367  }
    13461368  console.log(exp);
     1369 // console.log(exp);
    13471370  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
     1376function exportCSVFile_emsFormBuilder(items, fileTitle) {
    13541377  //source code :https://codepen.io/danny_pule/pen/WRgqNx
    13551378
    1356   if (headers) {
     1379 /* if (headers) {
    13571380      items.unshift(headers);
    1358   }
     1381  } */
    13591382  // Convert Object to JSON
    13601383  var jsonObject = JSON.stringify(items);
     
    14031426
    14041427function generat_csv_emsFormBuilder(){
    1405   const head  = JSON.parse(localStorage.getItem("head_ws_p"));
     1428  //const head  = JSON.parse(localStorage.getItem("head_ws_p"));
    14061429  const exp  = JSON.parse(localStorage.getItem("rows_ws_p"));
    14071430  /* console.log(head);
     
    14101433  //040820
    14111434 
    1412   exportCSVFile_emsFormBuilder(head,exp,filename); // create csv file
     1435  exportCSVFile_emsFormBuilder(exp,filename); // create csv file
    14131436 //convert_to_dataset_emsFormBuilder(); //create dataset for chart :D
    14141437}
     
    14191442  const head  = JSON.parse(localStorage.getItem("head_ws_p"));
    14201443  const exp  = JSON.parse(localStorage.getItem("rows_ws_p"));
    1421   let titles =[];
     1444  let rows =exp;
     1445 /*  let titles =[];
    14221446  let rowNo =0;
    14231447  let yy =0
    1424   for(let h in head){
     1448 // for(let h in head){
     1449  for(let h in Exp[0]){
    14251450    titles.push(h);
    14261451    rowNo +=1;
     
    14611486    }
    14621487  }
    1463   console.log(rows);
     1488  console.log(rows); */
    14641489  let countEnrty = Array.from(Array(rows[0].length), () => Array(0).fill(0));
    14651490  let entry = Array.from(Array(rows[0].length), () => Array(0).fill(0));
     
    14881513    }
    14891514  }
    1490 /*  console.log(titleTable);
     1515  /* console.log(titleTable);
    14911516  console.log(entry);
    1492   console.log(countEnrty ); */
     1517  console.log(countEnrty );  */
    14931518 emsFormBuilder_chart(titleTable,entry,countEnrty);
    14941519}
  • easy-form-builder/trunk/includes/admin/class-Emsfb-panel.php

    r2520621 r2543210  
    182182                "survey" => __('Survey','easy-form-builder'),
    183183                "chart" => __('Chart','easy-form-builder'),
     184                "noComment" => __('No comment','easy-form-builder'),
    184185                "please" => __('Please','easy-form-builder'),
    185186            ];
  • easy-form-builder/trunk/includes/class-Emsfb-public.php

    r2542987 r2543210  
    150150                "info" => __('information'),
    151151                "areYouSureYouWantDeleteItem" => __('Are you sure want to delete this item?','easy-form-builder'),
     152                "noComment" => __('No comment','easy-form-builder'),
    152153                "please" => __('Please','easy-form-builder'),
    153154
     
    798799                //$ip = $this->ip;
    799800            }
    800 
     801            $r = false;
    801802            if($value!=null){
    802                
     803                $r=true;
    803804               
    804805                $response = array( 'success' => true  , "value" =>$value[0] , "content"=>$content);
     
    811812        //recaptcha end
    812813
    813 
     814           
    814815      }//end function
    815816
  • easy-form-builder/trunk/readme.txt

    r2543066 r2543210  
    33Tags:                   form builder, form creator, contact form, support form, subscribe form
    44Donate link:            https://ko-fi.com/whitestudio
    5 Stable tag:             1.33
     5Stable tag:             1.33.1
    66Requires at least:      4.7
    77Tested up to:           5.7.2
     
    2626- Create sample file upload form
    2727- Create Support forms
    28 - Create subscription or newsletters signup forms (this will active at next version)
     28- Create subscription or newsletters signup forms
    2929- Create Login (sign-in) forms
    3030- Create Registration (sign-up) forms
     
    9393== Changelog ==
    9494
     95= 1.33.1 =
     96* Fixed issues
     97* Add subscription form type
     98
    9599= 1.33.0 =
    96 * fixed issues
     100* Fixed issues
    97101
    98102= 1.32.9 =
    99 * fixed issues
     103* Fixed issues
    100104
    101105= 1.32.8 =
    102106* Fixed issues about UI
    103 * deactive subscription form card
     107* Deactive subscription form card
    104108
    105109= 1.32.7 =
Note: See TracChangeset for help on using the changeset viewer.