Guest User

Untitled

a guest
Dec 25th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. $ccards[] = array('visa', "<img src='" . base_url() . "images/visa.png' />");
  2. $ccards[] = array('mastercard', '<img src="' . base_url() . 'images/masterCard.png" />');
  3. $this->form
  4. ->open('payments/process')
  5. ->fieldset('Personal Information')
  6. ->text('name', 'Your Name', 'required|max_length[40]', $this->input->get('name'))
  7. ->text('license', 'License #', 'required', $this->input->get('license'))
  8. ->text('email', 'Email', 'required', $this->input->get('email'))
  9. ->fieldset('Shipping Information')
  10. ->text('ship_address1', 'Street Address', 'required', $this->input->get('ship_address1'))
  11. ->text('ship_address2', 'Address Line 2', '', $this->input->get('ship_address2'))
  12. ->col(150, 'left', 'right')
  13. ->label('City', 'ship_city', 'class=left combine')
  14. ->label('/Zip', 'ship_zip', 'class=left combine')
  15. ->label('State', 'ship_state', 'class=left')->margin(6, 'top')
  16. ->col()
  17. ->text('ship_city|ship_city', '', 'required',$this->input->get('ship_city'),'style=width:137px,element_suffix=""')
  18. ->text('ship_zip|ship_zip', '', 'required|exact_length[5]',$this->input->get('ship_zip'),'style=width:40px;')
  19. ->text('ship_state|ship_state', '', 'required', $this->input->get('ship_state'),'')
  20. ->col(0)
  21. ->fieldset('Billing Information')
  22. ->checkbox('same_as_ship', 'yes', 'Same as Shipping')
  23. ->space()
  24. ->text('bill_address1', 'Street Address', 'required')
  25. ->text('bill_address2', 'Address Line 2')
  26. ->col(150, 'left', 'right')
  27. ->label('City', 'bill_city', 'class=left combine')
  28. ->label('/Zip', 'bill_zip', 'class=left combine')
  29. ->label('State', 'bill_state', 'class=left')->margin(6, 'top')
  30. ->col()
  31. ->text('bill_city|bill_city', '', 'required','','style=width:137px,element_suffix=""')
  32. ->text('bill_zip|bill_zip', '', 'required|exact_length[5]','','style=width:40px;')
  33. ->text('bill_state|bill_state', '', 'required', '')
  34. ->col(0)
  35. ->fieldset('Credit Card Information')
  36. ->text('amount', 'Payment Amount', 'required')
  37. ->radiogroup('card_type', $ccards, 'CC Type', '', 'required')
  38. ->space()
  39. ->text('card_number', 'Card Number', 'required')
  40. ->text('cvv', 'CVV#', 'required', '', 'style=width:100px;')
  41. ->text('exp', 'Exp(MMYY)', 'required', '', 'style=width:100px;')
  42. ->indent(150)
  43. ->submit()
  44. ->reset()
  45. ->margin(10)
  46.  
  47. ;
  48.  
  49. $this->wform = $this->form->get();
Add Comment
Please, Sign In to add comment