diff --git a/app/conference_profiles/conference_profile_params.php b/app/conference_profiles/conference_profile_params.php index 055349b8de..83a394a7d2 100644 --- a/app/conference_profiles/conference_profile_params.php +++ b/app/conference_profiles/conference_profile_params.php @@ -25,20 +25,21 @@ //add the search term $search = check_str($_GET["search"]); if (strlen($search) > 0) { - $sql_search = "and ("; + $sql_search = "where ("; $sql_search .= "profile_param_name like '%".$search."%'"; $sql_search .= "or profile_param_value like '%".$search."%'"; $sql_search .= "or profile_param_enabled like '%".$search."%'"; $sql_search .= "or profile_param_description like '%".$search."%'"; $sql_search .= ")"; } + //additional includes require_once "resources/header.php"; require_once "resources/paging.php"; //prepare to page the results $sql = "select count(*) as num_rows from v_conference_profile_params "; - $sql .= "where domain_uuid = '$domain_uuid' "; + //$sql .= "where domain_uuid = '$domain_uuid' "; $sql .= $sql_search; $sql .= "and conference_profile_uuid = '$conference_profile_uuid' "; if (strlen($order_by)> 0) { $sql .= "order by $order_by $order "; } @@ -47,10 +48,10 @@ $prep_statement->execute(); $row = $prep_statement->fetch(PDO::FETCH_ASSOC); if ($row['num_rows'] > 0) { - $num_rows = $row['num_rows']; + $num_rows = $row['num_rows']; } else { - $num_rows = '0'; + $num_rows = '0'; } } @@ -64,7 +65,7 @@ //get the list $sql = "select * from v_conference_profile_params "; - $sql .= "where domain_uuid = '$domain_uuid' "; + //$sql .= "where domain_uuid = '$domain_uuid' "; $sql .= $sql_search; $sql .= "and conference_profile_uuid = '$conference_profile_uuid' "; if (strlen($order_by)> 0) { $sql .= "order by $order_by $order "; } @@ -161,4 +162,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>