<?php  
error_reporting(0);
$this->load->view('header_front');
$job_id=$_GET['job_id'];
$user_id=$this->input->get('user_id');
$sel_looking_for = mysql_query("select * from njobn_webusers where user_id='".$user_id."'");
$fetch_candiate_image = mysql_fetch_array($sel_looking_for);
$to = $fetch_candiate_image['email'];
?>


		
		
		
		<div class="container main-content">
  <div class="row">
    <div class="col-xs-12 col-sm-12 col-md-8 profile">
  <p style="color:#FF0000;"> <?php echo $this->session->flashdata('sendemail'); ?></p>
<form name="sendemails"  method="post" action="<?php echo base_url();?>front_end/sendemail_to_users2" onsubmit="return send_emails()">
        <input type="hidden" name="user_id" id="user_id" vale="<?php echo $user_id;?>" />
		
        <div class="panel panel-default" id="profileBasicinfo">
          <h3>Send Email</h3>
          <div class="row">
            <div class="col-sm-10 col-sm-push-1">
              
              
              <div class="form-group">
                <label class="col-sm-4 control-label" for="new-password">Send To</label>
                <div class="col-sm-8">
				<input type="text" name="to" value="<?php echo $to?>" id="to" readonly="readonly" class="form-control" placeholder="Email">
                </div>
              </div>
			  <br><br>
              <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Subject</label>
                <div class="col-sm-8">
                  
   <input type="text" name="subject" value="" id="subject" class="form-control" placeholder="Enter subject">
                  <span id="confirmPasswordHelpblock" class="help-block"></span></div>
              </div>
			  <br>
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Message</label>
                <div class="col-sm-8">
    <textarea class="form-control"  id="message" rows="3" name="message" ></textarea></span></div>
              </div>
               <br><br><br><br>
              <div class="form-group">
                <label class="col-sm-4 control-label">&nbsp;</label>
                <div class="col-sm-8">
                  <button type="submit" class="btn btn-primary btn-block" name="update">Send Email</button>
                </div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </form>
    </div>
    <!-- sidebar -->
    
	<!-- sidebar -->
    <?php $this->load->view('frontleftbar'); ?>
    <!-- /.sidebar -->
    <!-- /.sidebar -->
  </div>
</div>

</div>
</div>
		
   
<?php $this->load->view('footer_front'); ?>