Guest User

Untitled

a guest
Apr 25th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. ?php defined('SYSPATH') or die('No direct script access.');
  2.  
  3. class About_Controller extends Controller {
  4.  
  5.  
  6. public function __construct(){
  7. parent::__construct();
  8.  
  9. }
  10.  
  11. function index()
  12. {
  13.  
  14. $form = new Forge();
  15. $form->input('name')->label('Name')->rules('required')->class('input-field')->style('width:300px');
  16. $form->input('company_name')->label('Company Name')->class('input-field')->style('width:300px');
  17. $form->input('email')->label('Email')->rules('required|valid_email')->class('input-field')->style('width:300px');
  18. $form->input('phone')->label('Phone Number')->rules('required')->class('input-field')->style('width:300px');
  19. $form->input('website')->label('Website')->class('input-field')->style('width:300px');
  20. $form->input('start_date')->label('When would you like to get started?')->rules('required')->class('input-field')->style('width:300px');
  21. $form->input('budget')->label('What is your estimated budget?')->class('input-field')->style('width:300px');
  22. $form->textarea('message')->label("Describe your project in detail:")->rules('required')->style('width:750px; height: 100px;')->class('input-field');
  23.  
  24. $view = new View('about', array(
  25. 'form_quote' => $form,
  26. ));
  27.  
  28. $view->header = new View('header', array(
  29. 'title' => 'Known Gallery :: About',
  30. 'extra_head_content' => array
  31. (
  32. '<script src="' . url::base() . 'media/js/scrollto.js" type="text/javascript"></script>',
  33. ),
  34. ));
  35.  
  36. $view->footer = new View('footer');
  37. $view->render(TRUE);
  38.  
  39. }
  40.  
  41. }
Add Comment
Please, Sign In to add comment