Issue list

$issue){ if(trim($issue['master_category']) == "AGRICULTURE" || trim($issue['master_category']) == "ANIMAL WELFARE" || trim($issue['master_category']) == "BANKS"|| trim($issue['master_category']) == "CONSUMER PROTECTION & PRIVACY" || trim($issue['master_category']) == "CRIME" || trim($issue['master_category']) == "EDUCATION"){ $issues_column_1[$key] = $issue; } elseif(trim($issue['master_category']) == "ENERGY" || trim($issue['master_category']) == "ENVIRONMENT" || trim($issue['master_category']) == "FOREIGN POLICY & IMMIGRATION" || trim($issue['master_category']) == "GLOBALIZATION" || trim($issue['master_category']) == "GOVERNMENT, POLITICS & TAXES"){ $issues_column_2[$key] = $issue; } elseif(trim($issue['master_category']) == "GUNS" || trim($issue['master_category']) == "HEALTH" || trim($issue['master_category']) == "HUMAN RIGHTS"|| trim($issue['master_category']) == "LABOR" || trim($issue['master_category']) == "LEGAL SYSTEM"){ $issues_column_3[$key] = $issue; } else{ $issues_column_4[$key] = $issue; } } //$issues_column_1 = array_slice($issues, 0 ,$items_in_column); //$issues_column_2 = array_slice($issues, $items_in_column-1 ,$items_in_column); //$issues_column_3 = array_slice($issues, ($items_in_column*2)-1 ,$items_in_column); //$issues_column_4 = array_slice($issues, ($items_in_column*3)-1 ,$items_in_column); /*foreach($issues as $issue) { $category = $issue['master_category']; if($category != $prev_category) { print""; //print $category->category."
"; print $issue['master_category']."
"; } $prev_category = $category; if ($issue['category'] != $prev_subcat) { //int_r($issue_array); //ssue_array = null; print""; print"    ".$issue['category']."
"; } $prev_subcat = $issue['category']; $_issue = ucfirst(strtolower($issue['issue'])); print""; //echo CHtml::hiddenField('issue_id' , $issue['issue_id']); print $_issue; print"
"; }*/ ?>
displayAllIssueByColumn($issues_column_1); ?>
displayAllIssueByColumn($issues_column_2); ?>
displayAllIssueByColumn($issues_column_3); ?>
displayAllIssueByColumn($issues_column_4); ?>