
 
 <div class="row">

    <div class="col-md-12">
		<div class="panel panel-info" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title" id="redcolor" >
            		<i class="entypo-plus-circled"></i>
		
				
				<h1> <center> WELCOME TO  ROBISEARCH LTD DIGITAL VISITOR BOOK & SUGGESTION PLATFORM </BR>
				 
				
				
				
</center>  </H1>
				
			
            	</div>
            </div>
			<div class="panel-body">

		
										
				<div class="container" style="width:100%">
				
				
							<br/><div style="clear:both;"/>

<div class="row">
				
	   	<div class="col-md-12">
		
		
	<div>
  <div>

  
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Digital Visitor Book</h4>
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('addnewcalls' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
		  		<input type="hidden" name="action" value="insert" class="form-control" required placeholder="Enter action">
		  		<input type="hidden" name="userid" value="1" class="form-control" required placeholder="Enter action">

		  		<input type="hidden" name="mycategoryid" value="" class="form-control" required placeholder="Enter mycategoryid">

  	
	<div class="form-group">
    <label for="inputcallername" class="col-sm-2 control-label">Visitor Name </label>
    <div class="col-sm-10">
	
		  		<input type="text" autofocus name="callername" value="<?php echo set_value(''); ?>" class="form-control" required placeholder="Enter Visitor name">
		 
				
		<span class="text-danger">Name of the visitor or customer  <?php echo form_error('callername'); ?>
		
		</span>
	</div>
  </div>
  
  	<div class="form-group">
    <label for="inputdescription" class="col-sm-2 control-label">	Business Name / Company </label>
    <div class="col-sm-10">
		  		<input type="text" name="description" value="<?php echo set_value('description'); ?>"   class="form-control"  placeholder="Enter business name/company">

			
		<span class="text-danger"> <?php echo form_error('description'); ?>
		
		</span>
	</div>
  </div>
  
  
  	<div class="form-group">
    <label for="inputphone" class="col-sm-2 control-label">Visitor Phone </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="phone" value="<?php echo set_value('phone',"2547"); ?>" class="form-control" required placeholder="Enter phone  number">
		 
				
		<span class="text-danger"> <?php echo form_error('phone'); ?>
		
		</span>
	</div>
  </div>

  
	<div class="form-group">
    <label for="inputsubject" class="col-sm-2 control-label"> Purpose of Visit /Service   </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="subject" value="<?php echo set_value('subject'); ?>"  required class="form-control"  placeholder="Enter Purpose of Visit /Service">
		 
				
		<span class="text-danger"> <?php echo form_error('subject'); ?>
		
		</span>
	</div>
  </div>

  <div class="form-group">
    <label for="inputemail" class="col-sm-2 control-label">Visitor Email </label>
    <div class="col-sm-10">
	
		  		<input type="email" name="email" value="<?php echo set_value('email'); ?>" class="form-control"  placeholder="Enter Visitor email">
		 
				
		<span class="text-danger">  <?php echo form_error('email'); ?>
		
		</span>
	</div>
  </div>
 

	
  
  
   <div class="form-group">
    <label for="inputreceiver" class="col-sm-2 control-label">Person Incharge Name / Checked-in By? </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="receiver" value="<?php echo set_value('receiver'); ?>" class="form-control" required placeholder="Enter Name of the Person Incharge ">
		 
				
		<span class="text-danger">Who received the visitor? <?php echo form_error('receiver'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  
  
  
  
  
  <div class="form-group">
    <label for="inputcalldate" class="col-sm-2 control-label">Visitor Date </label>
    <div class="col-sm-10">
	
		  		<input type="date-TIME"  name="calldate" value="<?php echo  date("Y-m-d H:i:s"); ?>" class="form-control" required placeholder="Enter Visitor date">
		 
				
		<span class="text-danger"> <?php echo form_error('calldate'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  <div class="form-group">
    <label for="inputmedia" class="col-sm-2 control-label">Gate Name/ Location</label>
    <div class="col-sm-10">
	
		  		<input type="text" name="media" value="<?php echo set_value('media',"Office"); ?>" class="form-control" required placeholder="How did customer know us  e.g Tv adverts">
		 
				
		<span class="text-danger">Location / Source <?php echo form_error('media'); ?>
		
		</span>
	</div>
  </div>
    	
	 <div class="form-group" >
    <label for="inputcategory" class="col-sm-2 control-label">Send Sms?</label>
    <div class="col-sm-10">
	<select class="form-control" name="sendsms" required>
	
	<option value=""  >Do you want Send thank you Sms?</option>
				<option  value="yes"  >Yes</option>
				<option   value="no"  >No</option>


	
	
</select>
		

	</div>
  </div>
  
  <?php
  
   $getmessage= $this->usermodel->populateallarray('smstemplate','status',"visitor");
	 $currentmessage=$getmessage[0]['description'];
  if(isset($currentmessage)) { $currentmessage; }
  
  ?>
  
  
  
  
  
		<div class="form-group" >
    <label for="inputsms" class="col-sm-2 control-label">Text sms </label>
    <div class="col-sm-10">
	<textarea name="sms"   value="<?php echo set_value('sms'); ?>"  required class="form-control"  placeholder="Enter sms "><?php if(isset($currentmessage)) {echo$currentmessage; }  ?></textarea>
			
		<span class="text-danger"> <?php echo form_error('sms'); ?>
		
		</span>
	</div>
  </div>
  

		
  <div class="form-group" style="display:none">
    <label for="inputstatus" class="col-sm-2 control-label">Status?</label>
    <div class="col-sm-10">
	<select class="form-control" name="status" required>
	
	<option value=""  >Select status</option>
			<option value="new" selected >new</option>
						<option value="intrested"  >intrested</option>
						<option value="Not Intrested"  > Not intrested</option>
			<option value="General Visitor"  >General Visitor</option>

			<option value="attended"  >attended</option>

	<option value="pending"  >pending</option>
		<option value="solved"  >solved</option>

	<option value="completed"  >Completed</option>
	<option value="Other"  >Other</option>

	
	
</select>
		
						<span class="text-danger"><?php echo form_error('status'); ?>

	</div>
  </div>

  <div class="form-group">
    <label for="inputcategory" class="col-sm-2 control-label">Category?</label>
    <div class="col-sm-10">
	<select class="form-control" name="category" required>
	
	<option value=""  >Select Visitor Category</option>
				<option value="OfficeVisitor"  >Office Visitor</option>
				<option selected value="EventVisitor"  >Event Visitor</option>

			<option value="Sales"  >Sales</option>
			<option value="Inquiry"  >Inquiry</option>

	<option value="Complain"  >Complain</option>
		<option value="Support"  >Support</option>

	<option value="Message"  >Message</option>
	<option value="Other"  >Other</option>

	
	
</select>
		
						<span class="text-danger"><?php echo form_error('category'); ?>

	</div>
  </div>
	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="calls" name="btn_addaddnewcalls" class="btn btn-primary"> Submit </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    </div>	
		
		
		
		
		
		
		
		
	
		<?php
								//echo $this->session->flashdata('msg'); 

	
 if(!is_array($viewsubcategory)) 

 {
  
    }else {
?>
    
             <?php 
  
  	foreach ($viewsubcategory as $cat): 
             ?>




            
                
            <?php 

$finalproductname=$cat->name;
$code=$cat->id;
$url="";
$icon=$cat->icon;
$myheader=$cat->myheader;

if($myheader !="") { $myheader=$myheader; }else {$myheader="primary";  }
if($icon !="") { $icon=$icon; } else { $icon="home";   }
if($finalproductname !="") { $finalproductname=$finalproductname; }else {$finalproductname=" No category Name"  ;}



?>

  <div class="col-md-6">
    		<div class="tile-progress tile-<?php echo $myheader;?>">
    			<div class="tile-header">
									<a   href="  <?php echo base_url();?>postcomments?myproductcategory=<?php   {echo  $code;}  ?>&categoryname=<?php   {echo  $finalproductname;}  ?>"><?php   if($url !=""){ ?> <img src="<?php echo $url ?>" style="height:50px" > </br> <?php  } ?>   <span style="color:white;font-weight: bold;"> 
					

    				<B STYLE="font-size: 2.2em;">POST  <?php echo $finalproductname;?>.</B>


					
					</span></a>



    				
					
    			</div>
    			
    			
    		</div>
    	</div>


		
		
		<?php endforeach;
		
		
		} ?>	
		</DIV>		
		   </div>		
				
				
				
				
		
				
				
				
		
 
</div>				
									



</div>
</div>














































