batch entry for pledges

Batch entry support for pledges:
User selects contact and it gives the list of pledges for recording pledge payment.

fix all if statements:  if($params['option_type'][$key]==2) {  should be if ($params['option_type'][$key] == 2 ) {