         
        <script type="text/javascript">  
		
		
		
		
			 $(document).ready(function() { 
			   $("#name").hide();
     
   $("#roomno").hide();
					});
						
		         $(function () {
        $("#type").change(function () {
            if ($(this).val() == "Yes") {
            
			
               $("#name").show();
   $("#roomno").show();


            } else {
               $("#name").hide();
                 $("#roomno").hide();

            
			
            }
        });
    });
		
					
			 </script>		
					
<div class="container-fluid">
 <div class="row">
 
 
 
 
 <div class="col-md-8">
  
  
		   <div class="panel panel-info" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title"  id="redcolor">
            		<i class="entypo-plus-circled"></i>
				WELCOME TO DIGITAL SUGGESTION BOX. YOU CAN NOW TYPE YOUR SUGGESTIONS.</br>

				
				</div>
            </div>
		
 
 
 
 
 
 


  
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Post <?php if(isset($categoryname)) {echo $categoryname; }?></h4>
		            					 	  				 <a href="<?php echo base_url();?>box" class="btn btn-primary"> Go back </a>

      </div>
      <div class="modal-body">
      
	  	

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



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('addcomplain' , 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="subject" id="myproductcategory" value="<?php if(isset($categoryname)) {echo $categoryname; }?>" class="form-control"  placeholder="view" >
<input type="hidden" name="messageid" id="messageid" value="<?php if(isset($myproductcategory)) {echo $myproductcategory; }?>" class="form-control"  placeholder="view" >


  <div class="form-group">
    <label for="inputtype" class="col-sm-2 control-label">Show your	Identity?</label>
    <div class="col-sm-10">
	<select class="form-control" name="type" id="type" required>
			<option value=""  >Do you want to Show your Identity ?</option>


	<option value="Yes"  >Yes</option>
	<option value="No"  >No</option>

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

	</div>
  </div>
  	

  

	<div class="form-group" id="name">
    <label for="inputname" class="col-sm-2 control-label"> </label>
    <div class="col-sm-10">
	Your name(Optional)
		  		<input type="text" name="name" value="<?php echo set_value('subject'); ?>" class="form-control"  placeholder="Enter your name">
		 </br>	
	Phone 

				<input type="text" name="phone" value="<?php echo set_value('phone'); ?>" class="form-control"  placeholder="Enter Phone Number">

		<span class="text-danger"> <?php echo form_error('name'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  
  
   
	<div class="form-group">
    <label for="inputitemname" class="col-sm-2 control-label">	Apartment/Building Name</label>
    <div class="col-sm-10">
				<input type="text" name="itemname" value="<?php echo set_value('itemname'); ?>" class="form-control"  placeholder="Enter  Apartment/Building Name ">

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

  
  
  
  
  
	<div class="form-group" id="roomno">
    <label for="inputnumber" class="col-sm-2 control-label">	House/Room Number</label>
    <div class="col-sm-10">
				<input type="text" name="number" value="<?php echo set_value('number'); ?>" class="form-control"  placeholder="Enter  House/Room Number">

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

  	<div class="form-group">
    <label for="inputlocation" class="col-sm-2 control-label">	Location</label>
    <div class="col-sm-10">
				<input type="text" name="location" value="<?php echo set_value('location'); ?>" class="form-control"  placeholder="Enter  location">

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

  
  
  
  
  

  
	<div class="form-group">
    <label for="inputdescription" class="col-sm-2 control-label">	Description</label>
    <div class="col-sm-10">

				<textarea name="description" value="<?php echo set_value('description'); ?>"  required class="form-control"  placeholder="Enter <?php if(isset($categoryname)) {echo $categoryname; }?> details "></textarea>
			
		<span class="text-danger"> <?php echo form_error('description'); ?>
		
		</span>
	</div>
  </div>
		

	

	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="addcomplain" name="btn_addcomplain" class="btn btn-primary"> Post <?php if(isset($categoryname)) {echo $categoryname; }?>   </button>

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

    

				</div>

		</div>
	 
 
 
 
 
 
 
 
 
 
  </div>
 </div>
 
 
 
 
 
 
 
  <div class="col-md-4">
   
		
		
		
		
		
		
		   <div class="panel panel-info" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title"  id="redcolor">
            		<i class="entypo-plus-circled"></i>
				Guidelines on posting
            	</div>
            </div>
			<div class="panel-body">
			<h1>
			<center>
READ THE INSTRUCTION BELOW
 	</center>
</h1>





      
	 				<h3>
			<ul>


			
			<li>To help us serve you and have real time communication, the management strongly advice that you can make use of this digital suggestion box:</li>
			<li>This is a digital platform that you can use to interact with the management real time on the issues that could affect you or others.	</li>


			<li>Whatever you post here would be treated with uttermost respect and secrecy and will be acted upon accordingly</li>
			<li>You  are allowed to show or hide your identity during the time you are posting</li>
			<li>Feel free to interact with us any time through this platform.</li>
			</u>
			
			</h3>
 	

</div>
</div>

</div>


  

 </div>



