<?php include("includes/head.php");?>

<body>
<form name="frmStockholders" id="frmStockholders">
  <input type="hidden" name="action" value="addStrategies">
  <input type="hidden" name="sid" value="<?php echo isset($_GET['sid'])?$_GET['sid']:'';?>">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close" onClick="$.colorbox.close();"><span aria-hidden="true">&times;</span> </button>
    <h4 class="modal-title" id="myModalLabel">Add Stakeholder Strategies</h4>
  </div>
  <div class="modal-body">
    <div role="tabpanel">
      <!-- Tab panes -->
      <div class="tab-content">
        <!--<div role="tabpanel" class="tab-pane active" id="uploadTab">upload Tab</div>
            <div role="tabpanel" class="tab-pane" id="browseTab">browseTab</div>-->
        <div id="TabGeneral" class="tab-pane in active custon-tab-style1">
          <div class="basic-login-form-ad">
            <div class="row" style="margin-top:30px;">
              <div class="col-lg-12">
                <div class="all-form-element-inner">
                  <div class="form-group-inner">
                    <div class="row">
                      <div class="col-lg-3">
                        <label class="login2 pull-right pull-right-pro">Strategy <span style="color: #FF0000;">*</span></label>
                      </div>
                      <div class="col-lg-9">
                        <input type="text" class="form-control" name="strategy" id="strategy" value="" required/>
                      </div>
                    </div>
                  </div>
                  <div class="form-group-inner">
                    <div class="row">
                      <div class="col-lg-3">
                        <label class="login2 pull-right pull-right-pro">Responsibility <span style="color: #FF0000;">*</span></label>
                      </div>
                      <div class="col-lg-9">
                        <input type="text" class="form-control" name="responsibility" id="responsibility" value="" required/>
                      </div>
                    </div>
                  </div>
                  <div class="form-group-inner">
                    <div class="row">
                      <div class="col-lg-3">
                        <label class="login2 pull-right pull-right-pro">Key milestones <span style="color: #FF0000;">*</span></label>
                      </div>
                      <div class="col-lg-9">
                        <input type="text" class="form-control" name="key_milestones" id="key_milestones" value="" required/>
                      </div>
                    </div>
                  </div>
                  <div class="form-group-inner">
                    <div class="row">
                      <div class="col-lg-3">
                        <label class="login2 pull-right pull-right-pro">Related Documents <span style="color: #FF0000;">*</span></label>
                      </div>
                      <div class="col-lg-9">
                        <input type="file" name="related_documents" id="related_documents" value=""/>
                        <input type="hidden" name="old_sh_logo" value="">
                        
                      </div>
                    </div>
                  </div>
                  
                </div>
              </div>
            </div>
            
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="modal-footer">
    <button type="button" class="btn btn-default" data-dismiss="modal" onClick="$.colorbox.close();">Close</button>
    <!--<button type="button" class="btn btn-primary save">Save changes</button>-->
    <!--<button class="btn btn-sm btn-primary login-submit-cs" type="button" onClick="shActions('frmStockholders');">Update & Finish</button>-->
    <button data-loading-text="Saving..." type="submit" class="btn btn-success"> <i class="fa fa-floppy-o"></i> Save </button>
  </div>
</form>
<!-- jquery
		============================================ -->
<!--<script src="js/vendor/jquery-1.11.3.min.js"></script>-->
<!-- bootstrap JS
		============================================ -->
<script src="js/bootstrap.min.js"></script>
<!-- summernote JS
		============================================ -->
<script src="js/summernote.min.js"></script>
<script src="js/summernote-active.js"></script>
<!-- notification JS
		============================================ -->
<script src="js/Lobibox.js"></script>
<script src="js/notification-active.js"></script>
<!-- main JS
		============================================ -->
<script src="js/main.js"></script>
<script>
$(document).ready(function(e){
    
	$("#frmStockholders").on('submit', function(e){
	
	e.preventDefault();
	
	var shdata = new FormData(this);
	
	$.ajax({		
		type: 'POST',
        url: 'sh-update-config.php',
		processData: false,
		contentType: false,
        data: shdata,
		cache: false,
		dataType: 'html',
        success:function(response){
			
			$('#shRISREMA').html(response);
			 
            //$('#myModal').modal('hide');			
			$.colorbox.close();
			
			Lobibox.notify('success', {
                    title: 'Success',
                    msg: 'Info added successfully.'
                });
        },
		error:function(html)
		{	
			//$('#myModal').modal('hide');
			$.colorbox.close();
			
			Lobibox.notify('error', {
                    title: 'Error',
                    msg: 'Some problem occurred, Please try again.'
                });
        }
    });
	
	});
	
});
</script>
</body>
</html>
