(a)imprisonment in the quarter guard of a police line or such other place as may be considered suitable, for a term which may extend to 28 (twenty eight) days when the order is passed by the Commandant General or to 7 (seven ) days when it is passed by any other officer. Such imprisonment shall involve the forfeiture of pay and allowances, if any, for the period of imprisonment;