Code Duplication    Length = 8-8 lines in 2 locations

web_interface/astpp/application/modules/accounts/libraries/accounts_form.php 2 locations

@@ 619-626 (lines=8) @@
616
        return $buttons_json;
617
    }
618
619
    function build_grid_buttons_admin() {
620
        $buttons_json = json_encode(array(
621
            array(gettext("Create Admin"), "btn btn-line-warning btn", "fa fa-plus-circle fa-lg", "button_action", "/accounts/admin_add/"),
622
            array(gettext("Create Subadmin"), "btn btn-line-warning btn", "fa fa-plus-circle fa-lg", "button_action", "/accounts/subadmin_add/4"),
623
            array(gettext("Delete"), "btn btn-line-danger", "fa fa-times-circle fa-lg", "button_action", "/accounts/admin_selected_delete/")
624
                ));
625
        return $buttons_json;
626
    }
627
628
    function build_grid_buttons_reseller() {
629
        $buttons_json = json_encode(array(
@@ 628-635 (lines=8) @@
625
        return $buttons_json;
626
    }
627
628
    function build_grid_buttons_reseller() {
629
        $buttons_json = json_encode(array(
630
            array(gettext("Create"), "btn btn-line-warning btn", "fa fa-plus-circle fa-lg", "button_action", "/accounts/reseller_add/"),
631
            array(gettext("Export"), "btn btn-xing", " fa fa-download fa-lg", "button_action", "/accounts/reseller_export_cdr_xls", 'single'),
632
            array(gettext("Delete"), "btn btn-line-danger", "fa fa-times-circle fa-lg", "button_action", "/accounts/reseller_selected_delete/")
633
                ));
634
        return $buttons_json;
635
    }
636
637
    function build_ip_list_for_customer($accountid, $accountype) {
638
        $grid_field_arr = json_encode(array(