function get_home_page_contents($user_id) { global $source_server_url; echo ' <tr> <td> <table> <tr> <td class="PageTitleLink"> <a href="' . $source_server_url . 'fbc/select_app.php">Live Search</a> </td> <td class="PageTitleLink"> <a href="' . $source_server_url . 'fbc/select_app.php?search=1">Bookmarked</a> </td> <td class="PageTitleLink"> <a href="' . $source_server_url . 'fbc/select_app.php?search=2">Blocked</a> </td> </tr> </table> </td> </tr> <tr> <td> <table style="height: 650px;border-right: #3b5998 3px solid;border-top: #3b5998 3px solid;border-left: #3b5998 3px solid;border-bottom: #3b5998 3px solid;" width="100%"> ' . get_live_search_contents($user_id) . ' </table>'; }
} ?> </td> <td width="5%"></td> </tr> <tr> <td width="5%"></td> <td width="90%" style="padding-bottom: 25px;padding-top: 25px;border-bottom: #AAAAAA 1px solid;"> <table width="100%"> <?php try { $facebook = new Facebook($appapikey, $appsecret); $user_id = $facebook->require_login(); mysqlSetup($db); get_live_search_contents($user_id); if (isset($_POST['search_txt']) && strlen($_POST['search_txt']) > 0) { $app_select = $_POST['app_select_input']; $app_select_sql_query = ''; if ($app_select == '1') { $app_select_sql_query = 'AND facebook_application.is_canvas = 1'; } else { if ($app_select == '2') { $app_select_sql_query = 'AND facebook_application.is_canvas = 2'; } else { if ($app_select == '3') { $app_select_sql_query = 'AND facebook_application.is_canvas = 3'; } } } $search_txt = $_POST['search_txt'];