The annual salary of the district attorneys in counties of the seventh and eighth classes shall be as follows:
In counties of the eighth class, not less than five hundred dollars ($500) or more than one thousand dollars ($1,000).
In counties of the seventh class, not less than six hundred dollars ($600) or more than two thousand dollars ($2,000).
Whenever in this act a maximum and minimum salary is provided, the judge or judges of the court of quarter sessions of the county shall have power to fix the salary of the district attorney within the maximum limits herein provided, but any such salary shall be fixed before the election of any district attorney to whom such salary is to be paid, and such salary shall not thereafter be increased or decreased during the term for which such district attorney was elected: Provided, That where the said judge or judges shall fail, neglect, or refuse to fix a salary for the district attorney as herein provided, he shall receive the minimum salary fixed by this act.
The salaries herein provided for shall be paid by the county.
16 P.S. § 11224