Exemplo n.º 1
0
 function get_pgrates()
 {
     $db_functions_obj = new DbFunctions();
     $pgrates = $db_functions_obj->get_pgrates();
     $helper_obj = new Helper();
     $output = "<table id='add_pgrate_table' class='table table-hover table-nomargin table-bordered'>\n                      <tr>\n                        <th>" . $helper_obj->t("ID") . "</th>\n                        <th>" . $helper_obj->t("Name") . "</th>\n                        <th>" . $helper_obj->t("Edit") . "</th>\n                        <th>" . $helper_obj->t("Delete") . "</th>\n                      </tr>";
     foreach ($pgrates as $key => $client) {
         $class = $helper_obj->table_row_class($i);
         $output .= "<tr class='{$class}' id='pgrate_{$client['id']}'>\n                          <td>" . $client['id'] . "</td>\n                          <td>" . $client['name'] . "</td>\n                          <td><a href='javascript:void(0);' onclick='openEditPgratePopup({$client['id']})'>" . $helper_obj->t("Edit") . "</a></td>\n                          <td><a href='javascript:void(0);' onclick='deletePgrate({$client['id']})'>\n                                " . $helper_obj->t("Delete") . "</div>\n                              </a>\n                          </td>\n                       </tr>";
     }
     $output .= "</table>";
     return $output;
 }