function ninja_forms_feditor_new_sub_rule() { $rule_id = $_REQUEST['new_rule_id']; ninja_forms_feditor_output_sub_rule_tr($rule_id); die; }
function ninja_forms_feditor_sub_edit_rules($metabox) { $plugin_settings = get_option('ninja_forms_settings'); if (isset($plugin_settings['feditor'])) { $feditor_settings = $plugin_settings['feditor']; } else { $feditor_settings = array(); } if (isset($feditor_settings['sub_rules'])) { $sub_rules = $feditor_settings['sub_rules']; } else { $sub_rules = array(); } ?> <h3><?php _e('Submission Editing Rules', 'ninja-forms-feditor'); ?> </h3> <div id="" class="tablenav top"> <div class="alignleft actions"> <input type="submit" name="submit" value="<?php _e('Save', 'ninja-forms-feditor'); ?> " class="button-primary"> </div> <div class="alignleft actions"> <input type="button" id="new_sub_rule" value="<?php _e('+ New Rule', 'ninja-forms-feditor'); ?> " class="button-secondary"> </div> <div class="alignleft actions"> <select id="" class="" name="bulk_action"> <option value=""><?php _e('Bulk Actions', 'ninja-forms'); ?> </option> <option value="delete"><?php _e('Delete', 'ninja-forms'); ?> </option> <!-- <option value="export"><?php _e('Export Forms', 'ninja-forms'); ?> </option> --> </select> <input type="submit" name="submit" value="Apply" class="button-secondary"> </div> <div class="alignleft actions"> <span class="spinner"></span> </div> </div> <table class="wp-list-table widefat fixed posts"> <thead> <tr> <th class="check-column"><input type="checkbox" id="" class="ninja-forms-select-all" title="ninja-forms-bulk-action"></th> <th></th> <th><?php _e('Allow user', 'ninja-forms-feditor'); ?> </th> <th><?php _e('Allow role', 'ninja-forms-feditor'); ?> </th> <th><?php _e('To Edit Submissions', 'ninja-forms-feditor'); ?> </th> <th><?php _e('To Delete Submissions', 'ninja-forms-feditor'); ?> </th> <th><?php _e('Using', 'ninja-forms-feditor'); ?> </tr> </thead> <tbody id="rule_tbody"> <li id="rule_x_user_y" class="rule-x-user-template hidden" rel="x-y"> <a href="#" class="rule-remove-user button-secondary" rel="x-y">X</a> - <span class="user-name"></span> </li> <?php foreach ($sub_rules as $key => $data) { ninja_forms_feditor_output_sub_rule_tr($key); } ?> </tbody> <tfoot> <tr> <th class="check-column"><input type="checkbox" id="" class="ninja-forms-select-all" title="ninja-forms-bulk-action"></th> <th></th> <th><?php _e('Allow user', 'ninja-forms-feditor'); ?> </th> <th><?php _e('Allow role', 'ninja-forms-feditor'); ?> </th> <th><?php _e('To Edit Submissions', 'ninja-forms-feditor'); ?> </th> <th><?php _e('To Delete Submissions', 'ninja-forms-feditor'); ?> </th> <th><?php _e('Using', 'ninja-forms-feditor'); ?> </tr> </tfoot> </table> <br /> <div class="alignleft actions"> <input type="submit" name="submit" value="<?php _e('Save', 'ninja-forms-feditor'); ?> " class="button-primary"> </div> <?php }