Section 252 in The Code of Criminal Procedure
Title: Conviction on plea of guilty
If the accused pleads guilty, the Magistrate shall record the plea as nearly as possible in the words used by the accused and may, in his discretion, convict him thereon
Title: Conviction on plea of guilty in absence of accused in petty cases
(1) Where a summons has been issued under section 206 and the accused desires to plead guilty to the charge without appearing before the Magistrate, he shall transmit to the Magistrate, by post or by messenger, a letter containing his plea and also the amount of fine specified in the summons.
(2) The Magistrate may, in his discretion, convict the accused in his absence, on his plea of guilty and sentence him to pay the fine specified in the summons, and the amount transmitted by the accused shall be adjusted towards that fine, or where a pleader authorised by the accused in this behalf pleads guilty on behalf of the accused, the Magistrate shall record the plea as nearly as possible in the words used by the pleader and may, in his discretion, convict the accused on such plea and sentence him as aforesaid.
Title: Procedure when not convicted
(1) If the Magistrate does not convict the accused under section 252 or section 253, the Magistrate shall proceed to hear the prosecution and take all such evidence as may be produced in support of the prosecution, and also to hear the accused and take all such evidence as he produces in his defence.
(2) The Magistrate may, if he thinks fit, on the application of the prosecution or the accused, issue a summons to any witness directing him to attend or to produce any document or other thing.
(3) The Magistrate may, before summoning any witness on such application require that the reasonable expenses of the witness incurred in attending for the purposes of the trial be deposited in Court.
Title: Acquittal or conviction
(1) If the Magistrate, upon taking the evidence referred to in section 254 and such further evidence, if any, as he may, of his own motion, cause to be produced, finds the accused not guilty, he shall record an order of acquittal.
(2) Where the Magistrate does not proceed in accordance with the provisions of section 325 or section 360, he shall, if he finds the accused guilty, pass sentence upon him according to law.
(3) A Magistrate may, under section 252 or section 255, convict the accused of any offence triable under this Chapter, which from the facts admitted or proved he appears to have committed, whatever may be the nature of the complaint or summons, if the Magistrate is satisfied that the accused would not be prejudiced thereby.
Title: Nonappearance or death of complainant
(1) If the summons has been issued on complaint, and on the day appointed for the appearance of the accused, or any day subsequent thereto to which the hearing may be adjourned, the complainant does not appear, the Magistrate shall, notwithstanding anything hereinbefore contained, acquit the accused, unless for some reason he thinks it proper to adjourn the hearing of the case to some other day:
Provided that where the complainant is represented by a pleader or by the officer conducting the prosecution or where the Magistrate is of opinion that the personal attendance of the complainant is not necessary, the Magistrate may, dispense with his attendance and proceed with the case.
(2) The provisions of sub-section (1) shall, so far as may be, apply also to cases where the non-appearance of the complainant is due to his death.