50) ? substr($category, 0, 50) . '...' : $category; $faq_col_max_len[1] = max($faq_col_max_len[1], mb_strlen($catDisp)); $question_text = $row['question'] ? strip_tags($row['question']) : 'N/A'; $qDisp = (strlen($question_text) > 50) ? substr($question_text, 0, 50) . '...' : $question_text; $faq_col_max_len[2] = max($faq_col_max_len[2], mb_strlen($qDisp)); $faq_st = (isset($row['is_active']) && (int) $row['is_active'] === 1) ? 'Active' : 'In-Active'; $faq_col_max_len[3] = max($faq_col_max_len[3], mb_strlen($faq_st)); $faq_col_max_len[4] = max($faq_col_max_len[4], 4); } $faq_col_min_px = [48, 100, 200, 88, 72]; $faq_col_max_px = [64, 280, 480, 120, 88]; $faq_col_width_px = nhance_dt_column_widths_px($faq_header_labels, $faq_col_max_len, $faq_col_min_px, $faq_col_max_px); ?>