Esempio n. 1
0
 function get_country_category_rss_source()
 {
     $db_functions_obj = new DbFunctions();
     $helper_obj = new Helper();
     $country_category_rss = $db_functions_obj->get_country_category_rss_source();
     $output = "";
     $output = "<table id='add_country_category_rss_source_table' style='font-size: 10px' class='table table-hover table-nomargin table-bordered'>\n                      <tr>\n                        <th>" . $helper_obj->t("ID") . "</th>\n                        <th>" . $helper_obj->t("Country") . "</th>     \n                        <th>" . $helper_obj->t("Category") . "</th>   \n                        <th>" . $helper_obj->t("RSS Source") . "</th>\n                        <th>" . $helper_obj->t("Delete") . "</th>\n                      </tr>";
     foreach ($country_category_rss as $key => $data) {
         $class = $helper_obj->table_row_class($i);
         $output .= "<tr id='rss_{$data->id}'>\n                          <td>" . $data->id . "</td>\n                          <td>" . $data->country_name . "</td>      \n                          <td>" . $data->category_name . "</td>  \n                          <td>" . $data->source_name . "</td>  \n                          <td><a href='javascript:void(0);' onclick='deleteCountryCategoryRssSource({$data->id})'>" . $helper_obj->t("Delete") . "</a></td>\n                       </tr>";
     }
     return $output;
 }