Changeset 1065359
- Timestamp:
- 01/11/2015 07:35:40 PM (11 years ago)
- Location:
- form-reader
- Files:
-
- 45 added
- 13 edited
-
tags/2.1 (added)
-
tags/2.1/assets (added)
-
tags/2.1/assets/css (added)
-
tags/2.1/assets/css/fr.css (added)
-
tags/2.1/assets/css/fr.css.map (added)
-
tags/2.1/assets/js (added)
-
tags/2.1/assets/js/fr-admin.js (added)
-
tags/2.1/assets/js/fr-user.js (added)
-
tags/2.1/form-reader.php (added)
-
tags/2.1/gulpfile.js (added)
-
tags/2.1/includes (added)
-
tags/2.1/includes/fr-admin.php (added)
-
tags/2.1/includes/fr-data.php (added)
-
tags/2.1/includes/fr-database.php (added)
-
tags/2.1/includes/fr-helper.php (added)
-
tags/2.1/includes/fr-install.php (added)
-
tags/2.1/includes/fr-mailer.php (added)
-
tags/2.1/includes/fr.php (added)
-
tags/2.1/includes/post-requests.php (added)
-
tags/2.1/js (added)
-
tags/2.1/js/fr-admin.js (added)
-
tags/2.1/js/fr-user.js (added)
-
tags/2.1/js/think201-validator.js (added)
-
tags/2.1/libs (added)
-
tags/2.1/libs/phpmailer (added)
-
tags/2.1/libs/phpmailer/PHPMailerAutoload.php (added)
-
tags/2.1/libs/phpmailer/class.phpmailer.php (added)
-
tags/2.1/libs/phpmailer/class.pop3.php (added)
-
tags/2.1/libs/phpmailer/class.smtp.php (added)
-
tags/2.1/pages (added)
-
tags/2.1/pages/admin-add-form.php (added)
-
tags/2.1/pages/admin-dashboard.php (added)
-
tags/2.1/pages/admin-forms-readers.php (added)
-
tags/2.1/pages/admin-reader.php (added)
-
tags/2.1/pages/admin-update-form.php (added)
-
tags/2.1/pages/admin-view-reader.php (added)
-
tags/2.1/pages/user-footer.php (added)
-
tags/2.1/readme.txt (added)
-
tags/2.1/scss (added)
-
tags/2.1/scss/_think201-wp.scss (added)
-
tags/2.1/scss/fr.scss (added)
-
tags/2.1/templates (added)
-
tags/2.1/templates/fr-admin-mail.html (added)
-
tags/2.1/templates/fr-user-mail.html (added)
-
trunk/assets/css/fr.css (modified) (1 diff)
-
trunk/assets/css/fr.css.map (modified) (1 diff)
-
trunk/assets/js/fr-admin.js (added)
-
trunk/assets/js/fr-user.js (modified) (1 diff)
-
trunk/form-reader.php (modified) (2 diffs)
-
trunk/gulpfile.js (modified) (1 diff)
-
trunk/includes/fr-admin.php (modified) (1 diff)
-
trunk/includes/fr-mailer.php (modified) (1 diff)
-
trunk/js/fr-admin.js (modified) (1 diff)
-
trunk/js/fr-user.js (modified) (2 diffs)
-
trunk/pages/admin-add-form.php (modified) (2 diffs)
-
trunk/pages/admin-update-form.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/scss/fr.scss (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
form-reader/trunk/assets/css/fr.css
r1060788 r1065359 1 .tbox{margin:20px 0;overflow:auto;position:relative;background-color:#fff;border:1px solid #dddddd;border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,0.05)}.tbox-heading{border-bottom:1px solid #dddddd;border-top-left-radius:3px;border-top-right-radius:3px;padding:12px 15px}.tbox-body{padding:15px}.tbox-footer{border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:1px solid #ddd;padding:8px 15px}.tbox h3{margin:0;display:inline-block}.pull-right{float:right}.ttable{display:table;width:100%;border-collapse:collapse}.thead{font-weight:bold;display:table-row;line-height:25px;font-size:14px}.trow{display:table-row;border-bottom:1px solid #fefefe}.tcol{display:table-cell;padding:5px}.trow:last-child{border-bottom:0px}.tbtn{padding:5px 10px;border-radius:4px;text-decoration:none}.tbtn-success{border:1px solid #5cb85c}.error-msg{color:#ff0000;font-style:italic;font-size:.85em}.valid{color:#4bb648;position:absolute;right:10px;top:43px;z-index:9;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;transition:all 1s ease}.notvalid{color:#ff0000;font-size:14px;position:absolute;right:10px;top:43px;z-index:9;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;transition:all 1s ease}.form-group{position:relative}.fr_success_msg{font-size:20px;padding-left:15px;color:#368000}.fr-msg{font-size:16px;display:none}.fr-fields-container{margin:10px 0}#fr-add-field{cursor:pointer;f ont-size:16px}.fr-fields-set input{margin:5px 0}.fr-inputs{position:relative}.fr-remove-field{cursor:pointer;position:absolute;right:10px;top:15px;color:#ff0010;font-size:18px;z-index:99}1 .tbox{margin:20px 0;overflow:auto;position:relative;background-color:#fff;border:1px solid #dddddd;border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,0.05)}.tbox-heading{border-bottom:1px solid #dddddd;border-top-left-radius:3px;border-top-right-radius:3px;padding:12px 15px}.tbox-body{padding:15px}.tbox-footer{border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:1px solid #ddd;padding:8px 15px}.tbox h3{margin:0;display:inline-block}.pull-right{float:right}.ttable{display:table;width:100%;border-collapse:collapse}.thead{font-weight:bold;display:table-row;line-height:25px;font-size:14px}.trow{display:table-row;border-bottom:1px solid #fefefe}.tcol{display:table-cell;padding:5px}.trow:last-child{border-bottom:0px}.tbtn{padding:5px 10px;border-radius:4px;text-decoration:none}.tbtn-success{border:1px solid #5cb85c}.error-msg{color:#ff0000;font-style:italic;font-size:.85em}.valid{color:#4bb648;position:absolute;right:10px;top:43px;z-index:9;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;transition:all 1s ease}.notvalid{color:#ff0000;font-size:14px;position:absolute;right:10px;top:43px;z-index:9;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;transition:all 1s ease}.form-group{position:relative}.fr_success_msg{font-size:20px;padding-left:15px;color:#368000}.fr-msg{font-size:16px;display:none}.fr-fields-container{margin:10px 0}#fr-add-field{cursor:pointer;float:right;font-size:25px;padding-top:3px}.fr-fields-set input{margin:5px 0}.fr-inputs{position:relative}.fr-remove-field{cursor:pointer;position:absolute;top:10px;color:#ff0010;font-size:18px;z-index:99}.fr_status{text-align:center} 2 2 /*# sourceMappingURL=fr.css.map */ -
form-reader/trunk/assets/css/fr.css.map
r1060788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,IAAI,CAClB,YAAY,CAAE,IAAI,CAClB,KAAK,CAAE,OAAO,CAGf,OACA,CACI,SAAS,CAAE,IAAI,CACf,OAAO,CAAE,IAAI,CAGjB,oBACA,CACI,MAAM,CAAE,MAAM,CASlB,aACA,CACC,MAAM,CAAE,OAAO,CACZ,KAAK,CAAE,KAAK,CACZ,SAAS,CAAE,IAAI,CACf,WAAW,CAAE,GAAG,CAGpB,oBACA,CACI,MAAM,CAAE,KAAK,CAGjB,UACA,CACI,QAAQ,CAAE,QAAQ,CAGtB,gBACA,CACI,MAAM,CAAE,OAAO,CACf,QAAQ,CAAE,QAAQ,CAClB,GAAG,CAAE,IAAI,CACT,KAAK,CAAE,OAAO,CACd,SAAS,CAAE,IAAI,CACf,OAAO,CAAE,EAAE,CAGf,UACA,CACI,UAAU,CAAE,MAAM", 4 4 "sources": ["file:///D:/wamp_repo/www_s2/web/wp-content/plugins/form-reader/scss/_think201-wp.scss","../fr.scss"], 5 5 "names": [], -
form-reader/trunk/assets/js/fr-user.js
r1060788 r1065359 1 window.$=jQuery.noConflict();var FormReader={ settings:{FormObj:null,FormId:null},add:function(a){this.settings.FormId=a,this.settings.FormObj=$(a),this._appendClass(),this._appendInput(),this._handleSubmit()},_appendClass:function(){this.settings.FormObj.addClass("fr-form")},_appendInput:function(){$("<input>").attr({type:"hidden",name:"action",value:"post_fr_form"}).appendTo(this.settings.FormId),$("<input>").attr({type:"hidden",name:"post_fr_value",value:"1"}).appendTo(this.settings.FormId)},_handleSubmit:function(){$(document).on("submit",this.settings.FormId,function(a){theFormObj=$(this),$.ajax({url:FRUserAjax.ajaxurl,type:"post",data:theFormObj.serialize(),success:function(a,b){console.log(a+" "+b)},error:function(){}}),a.preventDefault()})},_checkValidation:function(){}},FRForm={settings:{isValid:!1},init:function(){this.bindUIActions(),this.validator()},bindUIActions:function(){$(".fr-form").on("submit",function(){if($(this).validator("check","input[type!=submit], select, textarea"),0==FRForm.settings.isValid)return!1;var a=$(this);return $.ajax({url:FRUserAjax.ajaxurl,type:"post",data:a.serialize(),success:function(a){FRForm.settings.isValid=!1,console.log(a)},error:function(){FRForm.settings.isValid=!1}}),!1})},validator:function(){$(".fr-form").find("input").validator({events:"blur change"}),$(".fr-form").validator({events:"submit",selector:"input[type!=submit], select, textarea",formId:".fr-form",preventDefaultIfInvalid:!0,done:function(a){a&&(FRForm.settings.isValid=!0)}})}};$(function(){});1 window.$=jQuery.noConflict();var FormReader={add:function(a,b){var c=new Array;c.FormId=a,c.FormObj=$(a),c.FormDBId=b,this._appendClass(c),this._appendInput(c),this._handleSubmit(c),this._handleInlineValidations(c)},_appendClass:function(a){a.FormObj.addClass("fr-form")},_appendInput:function(a){$("<input>").attr({type:"hidden",name:"action",value:"post_fr_form"}).appendTo(a.FormId),$("<input>").attr({type:"hidden",name:"post_fr_value",value:a.FormDBId}).appendTo(a.FormId)},_handleSubmit:function(a){$(document).on("submit",a.FormId,function(a){return a.preventDefault(),theFormObj=$(this),0==FormReader._checkValidation(theFormObj)?!1:void $.ajax({url:FRUserAjax.ajaxurl,type:"post",data:theFormObj.serialize(),success:function(a){FormReader._handleStatusMessage(theFormObj,a)},error:function(a){FormReader._handleStatusMessage(theFormObj,a)}})})},_checkValidation:function(a){return a.validator("checkform",a)},_handleInlineValidations:function(a){$(a.FormId+" input").validator({events:"blur change"})},_handleStatusMessage:function(a,b){a.find(".fr_status").remove();var c="#439e47";0==b.status&&(c="#ff0010");var d=$("<p class='fr_status'>"+b.msg+"</p>").attr("style","color: "+c);a.prepend(d)}}; -
form-reader/trunk/form-reader.php
r1060795 r1065359 5 5 Description: Form Reader (FR) helps you manage & save your form data. 6 6 Author: Think201 7 Version: 2. 07 Version: 2.1 8 8 Author URI: http://www.think201.com 9 9 License: GPL v1 10 10 11 Mins To ReadPlugin11 Form Reader Plugin 12 12 Copyright (C) 2015, Think201 - [email protected] 13 13 … … 51 51 52 52 if ( !defined( 'FR_VERSION' ) ) 53 define('FR_VERSION', ' 1.0' );53 define('FR_VERSION', '2.1' ); 54 54 55 55 if ( !defined( 'FR_PLUGIN_DIR' ) ) -
form-reader/trunk/gulpfile.js
r1060788 r1065359 32 32 .pipe(uglify('fr-user.js')) 33 33 .pipe(gulp.dest('./assets/js')); 34 35 gulp.src('js/fr-admin.js') 36 .pipe(uglify('fr-admin.js')) 37 .pipe(gulp.dest('./assets/js')); 34 38 }); 35 39 -
form-reader/trunk/includes/fr-admin.php
r1061163 r1065359 78 78 wp_enqueue_style( 'fr-css', plugins_url( 'form-reader/assets/css/fr.css' ), array(), FR_VERSION, 'all' ); 79 79 80 wp_enqueue_script( 'fr-ajax-request', plugins_url( 'form-reader/ js/fr-user.js' ), array( 'jquery' ), false, true );80 wp_enqueue_script( 'fr-ajax-request', plugins_url( 'form-reader/assets/js/fr-user.js' ), array( 'jquery' ), false, true ); 81 81 wp_localize_script( 'fr-ajax-request', 'FRUserAjax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) ); 82 82 wp_enqueue_script( 'fr-validator', plugins_url( 'form-reader/js/think201-validator.js' ), array( 'jquery' ), false, true ); -
form-reader/trunk/includes/fr-mailer.php
r1060877 r1065359 75 75 if(!empty($FormConfig->options->mailtemplates)) 76 76 { 77 $Template = file_get_contents($FormConfig->options->mailtemplates);77 $Template = file_get_contents($FormConfig->options->mailtemplates); 78 78 } 79 79 -
form-reader/trunk/js/fr-admin.js
r1060795 r1065359 53 53 54 54 // Create a input field as required 55 var input = '<div class="fr-inputs"><input type="text" class="fields" name="fields[name][]" placeholder="Enter Field"><span class="fr-remove-field ">X</span></div>';55 var input = '<div class="fr-inputs"><input type="text" class="fields" name="fields[name][]" placeholder="Enter Field"><span class="fr-remove-field dashicons dashicons dashicons-no"></span></div>'; 56 56 57 57 // Handle the input holder -
form-reader/trunk/js/fr-user.js
r1060788 r1065359 59 59 success: function(data, status) 60 60 { 61 console.log(data.msg); 61 theFormObj[0].reset(); 62 FormReader._handleStatusMessage(theFormObj, data); 62 63 }, 63 64 error: function(data, status) 64 65 { 65 66 FormReader._handleStatusMessage(theFormObj, data); 66 67 } 67 68 }); … … 78 79 { 79 80 $(Config['FormId']+' input').validator({events : 'blur change'}); 81 }, 82 83 _handleStatusMessage: function(FormObj, Data) 84 { 85 FormObj.find('.fr_status').remove(); 86 var fr_color = '#439e47'; 87 88 if(Data.status == false) 89 { 90 fr_color = '#ff0010'; 91 } 92 93 var fr_msg = $("<p class='fr_status'>"+Data.msg+"</p>").attr("style", "color: "+fr_color); 94 FormObj.prepend(fr_msg); 80 95 } 81 96 }; -
form-reader/trunk/pages/admin-add-form.php
r1060788 r1065359 18 18 <div class="tbox-body"> 19 19 <form name="fr_add_form" id="fr_add_form" action="#" method="post"> 20 <section>21 20 <input type="hidden" name="action" value="page_add_form"> 22 <div class="twp-row">23 <div class="twp-col-lg-12 twp-col-md-12 twp-col-sm-12 twp-col-xs-12">24 <div class="fr-fields-container">21 <table class="form-table"> 22 <tr valign="top"> 23 <th scope="row"> 25 24 <label for="name">Name:</label> 25 </td> 26 <td> 26 27 <input type="text" id="name" name="name" placeholder="Enter Name"> 27 </div> 28 <div class="fr-fields-container"> 28 </td> 29 </tr> 30 <tr valign="top"> 31 <th scope="row"> 29 32 <label for="emailto">Email To:</label> 33 </td> 34 <td> 30 35 <input type="text" id="emailto" name="emailto" placeholder="Enter Email Address Whom to Send" value="<?php echo get_option('admin_email'); ?>"> 31 </div> 32 <div class="fr-fields-container"> 36 </td> 37 </tr> 38 <tr valign="top"> 39 <th scope="row"> 33 40 <label for="additionalemails">Additional Emails:</label> 41 </td> 42 <td> 34 43 <input type="text" id="additionalemails" name="additionalemails" placeholder="Enter Additional Emails" value=""> 35 </div> 36 <div class="fr-fields-container"> 37 <label for="fields">Fields:</label> 38 <span id="fr-add-field">Add More</span> 44 </td> 45 </tr> 46 <tr valign="top"> 47 <th scope="row"> 48 <label for="fields">Input form fields:</label> 49 <span id="fr-add-field" class="dashicons dashicons dashicons-plus"></span> 50 </td> 51 <td> 39 52 <div class="fr-fields-set"> 40 53 <div class="fr-inputs"> … … 42 55 </div> 43 56 </div> 44 </div> 45 <div class="fr-fields-container"> 57 </td> 58 </tr> 59 <tr valign="top"> 60 <th scope="row"> 46 61 <label for="domid">Form Id ( ex #myform):</label> 62 </td> 63 <td> 47 64 <input type="text" id="domid" name="domid" placeholder="Enter Form Id #contact-form" value=""> 48 </div> 49 <hr> 50 <div class="fr-fields-container"> 65 </td> 66 </tr> 67 <tr valign="top"> 68 <th scope="row"> 69 <label for="validation">Is Validation Required?</label> 70 </td> 71 <td> 51 72 <input type="hidden" value="0" class="validation" name="validation"> 52 73 <input type="checkbox" value="1" class="validation" name="validation"> 53 <label for="validation">Is Validation Required?</label> 54 </div> 55 <div class="fr-fields-container"> 74 Check to add validations for the form. 75 </td> 76 </tr> 77 <tr valign="top"> 78 <th scope="row"> 79 <label for="dbsave">Save into Database?</label> 80 </td> 81 <td> 56 82 <input type="hidden" value="0" class="dbsave" name="dbsave"> 57 <input type="checkbox" value="1" class="dbsave" name="dbsave"> 58 <label for="dbsave">Save into Database?</label> 59 </div> 60 <div class="fr-fields-container"> 83 <input type="checkbox" value="1" class="dbsave" name="dbsave"> 84 Check to add form responses to Database 85 </td> 86 </tr> 87 <tr valign="top"> 88 <th scope="row"> 89 <label for="sendmail">Send Email to User?</label> 90 </td> 91 <td> 61 92 <input type="hidden" value="0" class="sendmail" name="sendmail"> 62 93 <input type="checkbox" value="1" class="sendmail" name="sendmail"> 63 <label for="sendmail">Send Email to User?</label> 64 </div> 65 <div class="fr-fields-container"> 94 Check if you want to send mail to user as well. 95 </td> 96 </tr> 97 <tr valign="top"> 98 <th scope="row"> 66 99 <label for="emailsubject">User Mail Subject:</label> 100 </td> 101 <td> 67 102 <input type="text" id="emailsubject" name="emailsubject"> 68 </div> 69 <div class="fr-fields-container"> 103 </td> 104 </tr> 105 <tr valign="top"> 106 <th scope="row"> 70 107 <label for="formsuccessmessage">Form Success Message:</label> 108 </td> 109 <td> 71 110 <input type="text" id="formsuccessmessage" name="formsuccessmessage"> 72 </div> 73 <div class="fr-fields-container"> 111 </td> 112 </tr> 113 <tr valign="top"> 114 <th scope="row"> 74 115 <label for="formfailmessage">Form Failed Message:</label> 116 </td> 117 <td> 75 118 <input type="text" id="formfailmessage" name="formfailmessage"> 76 </div> 77 <div class="fr-fields-container"> 119 </td> 120 </tr> 121 <tr valign="top"> 122 <th scope="row"> 78 123 <label for="usermail">User Mail Id Field Name:</label> 124 </td> 125 <td> 79 126 <input type="text" id="usermail" name="usermail"> 80 </div> 81 <div class="fr-fields-container"> 127 </td> 128 </tr> 129 <tr valign="top"> 130 <th scope="row"> 82 131 <label for="mailtemplates">Email Template File:</label> 132 </td> 133 <td> 83 134 <input type="text" id="mailtemplates" name="mailtemplates" placeholder="Email Templates"> 84 135 <input id="upload_mailtemplate" class="button" type="button" value="Upload EMail Template File" /> 85 </div> 86 </div> 87 </div> 88 </section> 89 <div class="tclear"></div> 136 </td> 137 </tr> 138 </table> 139 <p class="submit"> 90 140 <button onClick="FRForm.post('#fr_add_form')" class="button button-primary" type="button">Add Form</button> 141 </p> 91 142 </form> 92 143 -
form-reader/trunk/pages/admin-update-form.php
r1060795 r1065359 43 43 <div class="tbox-body"> 44 44 <form name="fr_edit_form" id="fr_edit_form" action="#" method="post"> 45 <section>46 45 <input type="hidden" name="action" value="page_edit_form"> 47 46 <input type="hidden" name="update_id" value="<?php echo $update_id; ?>"> 48 <div class="twp-row"> 49 <div class="twp-col-lg-12 twp-col-md-12 twp-col-sm-12 twp-col-xs-12"> 50 <div class="fr-fields-container"> 47 48 <table class="form-table"> 49 <tr valign="top"> 50 <th scope="row"> 51 51 <label for="name">Name:</label> 52 </td> 53 <td> 52 54 <input type="text" id="name" name="name" placeholder="Enter Name" value="<?php echo $Data->name; ?>"> 53 </div> 54 <div class="fr-fields-container"> 55 </td> 56 </tr> 57 <tr valign="top"> 58 <th scope="row"> 55 59 <label for="emailto">Email To:</label> 60 </td> 61 <td> 56 62 <input type="text" id="emailto" name="emailto" placeholder="Enter Email Address Whome to Send" value="<?php echo $Data->emailto; ?>"> 57 </div> 58 <div class="fr-fields-container"> 63 </td> 64 </tr> 65 <tr valign="top"> 66 <th scope="row"> 59 67 <label for="additionalemails">Additional Emails:</label> 60 <input type="text" id="additionalemails" name="additionalemails" placeholder="Enter Additional Emails" value="<?php echo implode(',', json_decode($Data->additionalemails)); ?>"> 61 </div> 62 63 <div class="fr-fields-container"> 64 <label for="fields">Fields:</label> 65 <span id="fr-add-field">Add More</span> 68 </td> 69 <td> 70 <input type="text" id="additionalemails" name="additionalemails" placeholder="Enter Additional Emails" value="<?php echo implode(',', $Data->additionalemails); ?>"> 71 </td> 72 </tr> 73 <tr valign="top"> 74 <th scope="row"> 75 <label for="fields">Input Fields:</label> 76 <span id="fr-add-field" class="dashicons dashicons dashicons-plus"></span> 77 </td> 78 <td> 66 79 <div class="fr-fields-set"> 67 80 <?php … … 71 84 <div class="fr-inputs"> 72 85 <input type="text" class="fields" name="fields[name][]" value="<?php echo $Item->name; ?>" placeholder="Enter Field"> 73 <span class="fr-remove-field">X</span>86 <span class="fr-remove-field dashicons dashicons dashicons-no"></span> 74 87 </div> 75 88 <?php … … 77 90 ?> 78 91 </div> 79 </div> 80 81 <div class="fr-fields-container"> 92 </td> 93 </tr> 94 <tr valign="top"> 95 <th scope="row"> 82 96 <label for="domid">Form Id ( ex #myform):</label> 97 </td> 98 <td> 83 99 <input type="text" id="domid" name="domid" placeholder="Enter Form Id #contact-form" value="<?php echo $Data->domid; ?>"> 84 </div> 85 <div class="fr-fields-container"> 100 </td> 101 </tr> 102 <tr valign="top"> 103 <th scope="row"> 86 104 <input type="hidden" value="0" class="validation" name="validation"> 87 105 <input type="checkbox" value="<?php echo $Data->options->validation; ?>" class="validation" name="validation" <?php fr\frGetCheckBox($Data->options->validation); ?>> 106 </td> 107 <td> 88 108 <label for="validation">Is Validation Required?</label> 89 </div> 90 <div class="fr-fields-container"> 109 </td> 110 </tr> 111 <tr valign="top"> 112 <th scope="row"> 91 113 <input type="hidden" value="0" class="dbsave" name="dbsave"> 92 114 <input type="checkbox" value="<?php echo $Data->options->dbsave; ?>" class="dbsave" name="dbsave" <?php fr\frGetCheckBox($Data->options->dbsave); ?>> 115 </td> 116 <td> 93 117 <label for="dbsave">Save into Database?</label> 94 </div> 95 <div class="fr-fields-container"> 118 </td> 119 </tr> 120 <tr valign="top"> 121 <th scope="row"> 96 122 <input type="hidden" value="0" class="sendmail" name="sendmail"> 97 123 <input type="checkbox" value="<?php echo $Data->options->sendmail; ?>" class="sendmail" name="sendmail" <?php fr\frGetCheckBox($Data->options->sendmail); ?>> 124 </td> 125 <td> 98 126 <label for="sendmail">Send Email to User?</label> 99 </div> 100 <div class="fr-fields-container"> 127 </td> 128 </tr> 129 <tr valign="top"> 130 <th scope="row"> 101 131 <label for="emailsubject">User Mail Subject:</label> 132 </td> 133 <td> 102 134 <input type="text" id="emailsubject" name="emailsubject" value="<?php echo $Data->options->emailsubject; ?>"> 103 </div> 104 <div class="fr-fields-container"> 135 </td> 136 </tr> 137 <tr valign="top"> 138 <th scope="row"> 105 139 <label for="formsuccessmessage">Form Success Message:</label> 140 </td> 141 <td> 106 142 <input type="text" id="formsuccessmessage" name="formsuccessmessage" value="<?php echo $Data->options->formsuccessmessage; ?>"> 107 </div> 108 <div class="fr-fields-container"> 143 </td> 144 </tr> 145 <tr valign="top"> 146 <th scope="row"> 109 147 <label for="formfailmessage">Form Failed Message:</label> 148 </td> 149 <td> 110 150 <input type="text" id="formfailmessage" name="formfailmessage" value="<?php echo $Data->options->formfailmessage; ?>"> 111 </div> 112 <div class="fr-fields-container"> 151 </td> 152 </tr> 153 <tr valign="top"> 154 <th scope="row"> 113 155 <label for="usermail">User Mail Id Field Name:</label> 156 </td> 157 <td> 114 158 <input type="text" id="usermail" name="usermail" value="<?php echo $Data->usermail; ?>"> 115 </div> 116 <div class="fr-fields-container"> 159 </td> 160 </tr> 161 <tr valign="top"> 162 <th scope="row"> 117 163 <label for="mailtemplates">Email Template File:</label> 164 </td> 165 <td> 118 166 <input type="text" id="mailtemplates" name="mailtemplates" placeholder="Email Templates" value="<?php echo $Data->options->mailtemplates; ?>"> 119 167 <input id="upload_mailtemplate" class="button" type="button" value="Upload EMail Template File" /> 120 </div> 121 </div> 122 </div> 123 </section> 124 <div class="tclear"></div> 168 </td> 169 </tr> 170 </table> 171 <p class="submit"> 125 172 <button onClick="FRForm.post('#fr_edit_form')" class="button button-primary" type="button">Update Form</button> 173 </p> 126 174 </form> 127 175 -
form-reader/trunk/readme.txt
r1060788 r1065359 5 5 Donate link: http://www.think201.com/ 6 6 Tested up to: 4.1 7 Stable tag: 2. 08 Version: 2. 07 Stable tag: 2.1 8 Version: 2.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Form Reader lets developers use powerful, customizable UI blocks that persist data and send mails without writing any code.12 FormReader leaves you free from writing backend code for validation, form data storing to DB, sending mail and much more. Read about the features to know in what ways it can help you 13 13 14 14 == Description == 15 15 16 Form Reader lets developers use powerful, customizable UI blocks that persist data and send mails without writing any code.16 FormReader leaves you free from writing backend code for validation, form data storing to DB, sending mail and much more. Read about the features to know in what ways it can help you 17 17 18 18 … … 86 86 - More configuration options 87 87 - Client side Javascript Validation Added 88 89 = 2.1 = 90 - Admin backend UI Modification 91 - Client side form submission success message -
form-reader/trunk/scss/fr.scss
r1060788 r1065359 28 28 { 29 29 cursor: pointer; 30 font-size: 16px; 30 float: right; 31 font-size: 25px; 32 padding-top: 3px; 31 33 } 32 34 … … 45 47 cursor: pointer; 46 48 position: absolute; 47 right: 10px; 48 top: 15px; 49 top: 10px; 49 50 color: #ff0010; 50 51 font-size: 18px; 51 52 z-index: 99; 52 53 } 54 55 .fr_status 56 { 57 text-align: center; 58 }
Note: See TracChangeset
for help on using the changeset viewer.