PluginProbe
Taskbuilder – Project Management & Task Management Tool With Kanban Board / 6.0.6
Taskbuilder – Project Management & Task Management Tool With Kanban Board v6.0.6
6.0.6 6.0.5 6.0.2 6.0.3 6.0.4 6.0.1 6.0.0 5.0.8 5.0.9 4.0.9 5.0.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 All 58 releases
taskbuilder / includes / admin / tasks / wppm_get_bulk_change_task_priority.php

wppm_get_bulk_change_task_priority.php in Taskbuilder – Project Management & Task Management Tool With Kanban Board 6.0.6, at includes/admin/tasks/wppm_get_bulk_change_task_priority.php

43 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly
4 }
5 global $wpdb,$wppmfunction,$current_user;
6 $task_ids = isset($_POST['task_ids']) ? $wppmfunction->sanitize_array($_POST['task_ids']) : '' ;
7 $priorities = $wpdb->get_results("SELECT * FROM {$wpdb->prefix}wppm_task_priorities");
8 ob_start();
9 ?>
10 <form id="frm_get_bulk_task_change_priority" method="post">
11 <div class="form-group">
12 <label for="wppm_task_priority" class="wppm_task_priority"><?php echo esc_html_e('Task Priority','taskbuilder');?></label>
13 <select class="form-control" name="wppm_task_priority">
14 <?php
15 if(!empty($priorities)){
16 foreach ( $priorities as $pri ) :
17 echo '<option value="'.esc_attr($pri->id).'">'.esc_html($pri->name).'</option>';
18 endforeach;
19 }
20 ?>
21 </select>
22 </div><?php
23 do_action('wppm_after_edit_bulk_change_task_priority',$task_ids); ?>
24 <input type="hidden" name="action" value="wppm_set_bulk_change_task_priority" />
25 <input type="hidden" name="_ajax_nonce" value="<?php echo esc_attr( wp_create_nonce( 'wppm_set_bulk_change_task_priority' ) ); ?>">
26 <input type="hidden" id="wppm_task_ids" name="task_ids" value="<?php echo esc_attr( implode( ',', $task_ids ) ); ?>" />
27 </form>
28 <?php
29 $body = ob_get_clean();
30
31 ob_start();
32 ?>
33 <button type="button" class="btn wppm_task_popup_close" onclick="wppm_task_modal_close();"><?php echo esc_html_e('Close','taskbuilder');?></button>
34 <button type="button" class="btn wppm_task_popup_action" onclick="wppm_set_bulk_change_task_priority();"><?php echo esc_html_e('Save','taskbuilder');?></button>
35 <?php
36 $footer = ob_get_clean();
37
38 $output = array(
39 'body' => $body,
40 'footer' => $footer
41 );
42
43 echo wp_json_encode($output);