Advertisement
Guest User

Untitled

a guest
Feb 9th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. <form action="" id="form" method="post" >
  2.  
  3. <div class="form-group">
  4.  
  5. <div class="form-group">
  6. <label>Select</label>
  7. <select class="form-control" name="selection">
  8. <option>Telephonic</option>
  9. <option>F2F</option>
  10. <option>HR</option>
  11. </select>
  12. </div>
  13.  
  14. <div class="box-body pad">
  15. <label>Comments</label>
  16. <textarea class="textarea" name="comments" id="Comments "placeholder="Place comments here" style="width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;"></textarea>
  17. </div>
  18.  
  19. <div class="box-body pad">
  20. <label>Results</label>
  21. <textarea class="textarea" name="results" placeholder="Place results here" style="width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;"></textarea>
  22. </div>
  23.  
  24. <div class="form-group">
  25. <label>
  26. <input type="radio" name="selection_process" value="1" class="flat-red" checked>Selected
  27. </label>
  28.  
  29. <label>
  30. <input type="radio" name="selection_process" value="2" class="flat-red">Not Selected
  31. </label>
  32. </div>
  33.  
  34. <div class="row">
  35. <div class="col-xs-8">
  36. <div class="checkbox icheck">
  37.  
  38. </div>
  39. </div>
  40.  
  41. <div class="col-xs-4">
  42. <button type="submit" name="submit" id="submit"class="btn btn-primary btn-block btn-flat">Submit</button>
  43. </div>
  44. </div>
  45.  
  46. </div>
  47.  
  48. </form>
  49.  
  50. <?php
  51. public function add_selection()
  52. {
  53. $data=array(
  54. 'selection'=>$this->input->post('selection'),
  55. 'comments'=>$this->input->post('comments'),
  56. 'results'=>$this->input->post('results'),
  57. 'selection_process'=>$this->input->post('selection_process')
  58. );
  59.  
  60. if($data['selection_process']==1)
  61. {
  62. $config = Array(
  63. 'protocol' => 'smtp',
  64. 'smtp_host' => 'ssl://md-in-42.webhostbox.net',
  65. 'smtp_port' => 465,
  66. 'smtp_user' => 'test3@clozloop.com',
  67. 'smtp_pass' => 'test3'
  68. );
  69. $this->load->library('email',$config);
  70. $this->email->set_mailtype("html");
  71. $this->email->from('test3@clozloop.com', 'bharathi');
  72. $list=array('nalamalapu.bharathi@gmail.com','bharathi.nalamalapu@gmail.com');
  73. $this->email->to($list);
  74. $this->email->subject('YOU ARE SELECTED');
  75. $link = 'Click on this link - <a href="http://localhost/job_portal/index.php/Login/signin">Click Here</a>';
  76. $this->email->message($link);
  77. $this->email->send();
  78. }
  79. else
  80. {
  81. $config = Array(
  82. 'protocol' => 'smtp',
  83. 'smtp_host' => 'ssl://md-in-42.webhostbox.net',
  84. 'smtp_port' => 465,
  85. 'smtp_user' => 'test3@clozloop.com',
  86. 'smtp_pass' => 'test3'
  87. );
  88. $this->load->library('email',$config);
  89. $this->email->set_mailtype("html");
  90. $this->email->from('test3@clozloop.com', 'bharathi');
  91. $list=array('nalamalapu.bharathi@gmail.com','bharathi.nalamalapu@gmail.com','mounikavemula537@gmail.com');
  92. $this->email->to($list);
  93. $this->email->subject('YOU ARE NOT SELECTED');
  94. $link = 'Click on this link - <a href="http://localhost/job_portal/index.php/Login/signin">Click Here</a>';
  95. $this->email->message($link);
  96. $this->email->send();
  97. }
  98. $this->SelectionModel->add_selection_details($data);
  99. $this->load->view('selection/selection_details',$data);
  100. }
  101. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement