/** * SHORTCODE + AJAX HANDLER FOR BMI FORM */ /** * 1. Shortcode: [bmi_form] * – Auto-fills height from db/localStorage * – Collects height/weight using Syncfusion * – Validates input range * – Submits via AJAX (action: ‘bmi_submit_data’) *…Continue reading
/** * Shortcode: [bmi_table] * Displays stored BMI records in a Syncfusion Grid: * – Date * – Weight (rounded) * – BMI * – Category * Allows deletion via Bootstrap modal (no row highlight). */ add_shortcode(‘bmi_table’, function(){ if(!is_user_logged_in()){ return…Continue reading
/** * Title: BMI Gauge * Shortcode: [bmi_gauge] * Priority: 15 */ function cdx_bmi_gauge_shortcode() { ob_start(); ?>Continue reading
/** * Shortcode: [bmi_stage_syncgrid] * Shows a static table of BMI categories. highlightBmiStageRow(stage,color) * is used by [bmi_interpretation] to color the correct row. */ add_shortcode(‘bmi_stage_syncgrid’, function(){ ob_start(); ?>Continue reading
/** * Shortcode: [bmi_interpretation] * Displays textual interpretation => “Your BMI is X => Category” * Also calls highlightBmiStageRow(…) on [bmi_stage_syncgrid]. */ add_shortcode(‘bmi_interpretation’, function(){ ob_start(); ?>Continue reading
/** * Title: BMI ChartLine * Shortcode: [bmi_chartline] * Priority: 30 */ add_shortcode(‘bmi_chartline’, function(){ if(!is_user_logged_in()){ return “ You must be logged in to see the BMI chart. “; } global $wpdb; $user_id = get_current_user_id(); $table = $wpdb->prefix.’crx_bmi_data’; // Query user’s…Continue reading
/** * Plugin Name: eGFR Plugin (Bootstrap + Manual Checks + Stage Highlight + Alerts) * Description: Final integrated code: eGFR form with manual checks, row highlight, stage highlight with gauge color, plus Bootstrap alerts for validation. */ if(!defined(‘ABSPATH’)) {…Continue reading
add_shortcode(‘egfr_table’, function(){ if(!is_user_logged_in()){ return “ You must be logged in to see eGFR data. “; } global $wpdb; $user_id = get_current_user_id(); $table = $wpdb->prefix.’crx_egfr_data’; // Fetch all eGFR rows, newest first. $rows = $wpdb->get_results($wpdb->prepare(” SELECT id, created_at, creat_value, creat_unit, egfr_value…Continue reading
if(!defined(‘ABSPATH’)) { exit; } /** * SHORTCODE: [egfr_gauge width=”500″ height=”500″] * Similar style to the BMI gauge (arc from 210..150), * but for eGFR in the range 0..120. * * Color-coded ranges from worst to best: * Stage 5 =>…Continue reading
if(!defined(‘ABSPATH’)){ exit; } /** * SHORTCODE: [egfr_stage_syncfusion] * – A 6-row Syncfusion Grid for CKD Stage references (1..5). * – highlightEgfrStageRow(stageName, color). */ add_shortcode(‘egfr_stage_syncfusion’, function(){ ob_start(); ?>Continue reading