<?php
$page = 'Profile';
?>
<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Admin</title>

    <!-- Bootstrap Core CSS -->
    <link href="<?php echo base_url(); ?>assets/Backend/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="<?php echo base_url(); ?>assets/Backend/css/sb-admin.css" rel="stylesheet">

    <!-- Morris Charts CSS -->
    <link href="<?php echo base_url(); ?>assets/Backend/css/plugins/morris.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>assets/Backend/font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="<?php echo base_url();?>assets/Backend/editor/css/font-awesome.min.css" rel="stylesheet" type="text/css">
	<link href="<?php echo base_url();?>assets/Backend/editor/css/froala_editor.min.css" rel="stylesheet" type="text/css">
</head>

<body>

    <div id="wrapper" style="background-color:#222;">

        <!-- Navigation -->
        <?php
		include "include/header.php";
		?>
      

        <div id="page-wrapper" style="height:1900px;">

            <div class="container-fluid">

                <!-- Page Heading -->
                <div class="row">
                    <div class="col-lg-12">
                        <h1 class="page-header">
                            Company Profile
                            <small></small>
                        </h1>
                        
                    </div>
                </div>
				<?php
				foreach($profile as $row)
				$c_id = $row->c_id;
				?>
				<div class="row">
                    <form role="form" action="<?php echo base_url(); ?>update/up_profile/<?php echo $c_id; ?>" method="post">
                    <div class="col-lg-6">                        
                        <legend>Profile Details</legend>
                            <div class="form-group">
                                <label>Company Name</label>
                                <input class="form-control" name="c_name" value="<?php echo $row->c_name; ?>">
                            </div>
                            <div class="form-group">
                                <label>Phone</label>
                                <input class="form-control" name="c_phone" value="<?php echo $row->c_phone; ?>">
                            </div>
                            <div class="form-group">
                                <label>Mobile</label>
                                <input class="form-control" name="c_mobile" value="<?php echo $row->c_mobile; ?>">
                            </div>
                            <div class="form-group">
                                <label>Email</label>
                                <input class="form-control" name="c_email" value="<?php echo $row->c_email; ?>">
                            </div>
							 <div class="form-group">
                                <label>Website</label>
                                <input class="form-control" name="c_website" value="<?php echo $row->c_website; ?>">
                            </div>
							<div class="form-group">
                                <label>Address</label>
                                <textarea class="form-control" name="c_address" rows="5"><?php echo $row->c_address; ?></textarea>
                            </div>                           
                        
                    </div>
                    <div class="col-lg-6">                        
                        <legend>Social Media Details ( Links )</legend>
                            <div class="form-group">
                                <label>Facebook</label>
                                <input class="form-control" name="c_facebook" value="<?php echo $row->c_facebook; ?>">
                            </div>
                            <div class="form-group">
                                <label>Twitter</label>
                                <input class="form-control" name="c_twitter" value="<?php echo $row->c_twitter; ?>">
                            </div>
                            <div class="form-group">
                                <label>Google Plus</label>
                                <input class="form-control" name="c_google" value="<?php echo $row->c_google; ?>">
                            </div>
                            <div class="form-group">
                                <label>Youtube</label>
                                <input class="form-control" name="c_youtube" value="<?php echo $row->c_youtube; ?>">
                            </div>
                         </div>
                         
                    <div class="col-lg-12">
                    <div class="form-group">
                    <input type="submit" value="Update Profile" class="btn btn-primary">    
                    </div>
                    </div>
                    </form>
                </div>
            </div>
            <!-- /.container-fluid -->

        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery Version 1.11.0 -->
    <script src="<?php echo base_url(); ?>assets/Backend/js/jquery-1.11.0.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="<?php echo base_url(); ?>assets/Backend/js/bootstrap.min.js"></script>

    <!-- Morris Charts JavaScript -->
    <script src="<?php echo base_url(); ?>assets/Backend/js/plugins/morris/raphael.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/Backend/js/plugins/morris/morris.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/Backend/js/plugins/morris/morris-data.js"></script>
<script src="<?php echo base_url(); ?>assets/Backend/js/plugins/morris/raphael.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/Backend/js/plugins/morris/morris.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/Backend/js/plugins/morris/morris-data.js"></script>
	<script src="<?php echo base_url(); ?>assets/Backend/editor/js/libs/jquery-1.11.1.min.js"></script>
  <script src="<?php echo base_url(); ?>assets/Backend/editor/js/froala_editor.min.js"></script>
  
  <script src="<?php echo base_url(); ?>assets/Backend/editor/js/plugins/tables.min.js"></script>
  <script src="<?php echo base_url(); ?>assets/Backend/editor/js/plugins/lists.min.js"></script>
  <script src="<?php echo base_url(); ?>assets/Backend/editor/js/plugins/colors.min.js"></script>
  <script src="<?php echo base_url(); ?>assets/Backend/editor/js/plugins/font_family.min.js"></script>
  <script src="<?php echo base_url(); ?>assets/Backend/editor/js/plugins/font_size.min.js"></script>
  <script src="<?php echo base_url(); ?>assets/Backend/editor/js/plugins/block_styles.min.js"></script>
  <script src="<?php echo base_url(); ?>assets/Backend/editor/js/plugins/media_manager.min.js"></script>
  <script src="<?php echo base_url(); ?>assets/Backend/editor/js/plugins/video.min.js"></script>

  <script>
      $(function(){
        $('#edit').editable({inlineMode: false})
      });
  </script>
</body>

</html>
