$end_item_num = $start_item_num + $current_row_number - 1;
        echo '<tr><td>
				  <table width="100%">
				  <tr>
				  	<td style="border-top: #3b5998 1px solid;background-color: #d4dae8;text-align: right;padding:5px">
				  	Results ' . $start_item_num . ' - ' . $end_item_num . ' of ' . $total_num_of_rows . ' for this search
				  	</td>
				  </tr>
				  ';
        while ($search_row = mysql_fetch_array($search_results)) {
            $default_page = $search_row['default_page'];
            $app_name = $search_row['app_name'];
            $app_description = $search_row['app_description'];
            $app_id = $search_row['id'];
            $is_canvas = $search_row['is_canvas'];
            get_search_result_contents($default_page, $app_name, $app_description, $app_id, $is_canvas);
        }
        echo '
				  <tr><td height="25px"></td></tr>
				  <tr><td style="text-align:center;">
				  ' . get_paging_contents($pageNum, $maxPage) . '
				  </td></tr>
				  </table>
				  </td></tr>';
    }
} catch (Exception $e) {
    echo 'Caught exception: ', $e->getMessage(), "\n";
}
?>
	
	<?php 
Exemplo n.º 2
0
				  <tr>
				  	<td style="border-top: #3b5998 1px solid;background-color: #d4dae8;text-align: right;padding:5px">
				  	Results ' . $start_item_num . ' - ' . $end_item_num . ' of ' . $total_num_of_rows . ' blocked applications
				  	</td>
				  </tr>
				  <tr><td height="15px"></td></tr>';
                while ($search_row = mysql_fetch_array($search_results)) {
                    $default_page = $search_row['default_page'];
                    $app_name = $search_row['app_name'];
                    $app_description = $search_row['app_description'];
                    $app_id = $search_row['id'];
                    $block_app = $search_row['block_app'];
                    $bookmark_app = $search_row['bookmark_app'];
                    $total_bookmark_app = $search_row['total_bookmark_app'];
                    $is_canvas = $search_row['is_canvas'];
                    get_search_result_contents($default_page, $app_name, $app_description, $app_id, $block_app, $bookmark_app, $total_bookmark_app, $is_canvas);
                }
                echo '
				  <tr><td height="25px"></td></tr>
				  <tr><td style="text-align:center;">
				  ' . get_search_paging_contents($pageNum, $maxPage) . '
				  </td></tr>
				  </table>
				  </td><td width="10%"></td></tr>
				  </table></td></tr>';
            }
        }
    }
} catch (Exception $e) {
    echo 'Caught exception: ', $e->getMessage(), "\n";
}