<?php include('site-header.php'); ?>

  <!-- end of LOGO CONTAINER -->

  <!-- - - - - - - - - - - - - -->

  <!-- start of SIDEBAR        -->

  <!-- - - - - - - - - - - - - -->

  <?php include('left-nevigation.php'); ?>

  <!-- - - - - - - - - - - - - -->

  <!-- end of SIDEBAR          -->

  <!-- - - - - - - - - - - - - -->

   <?php 

if(isset($_REQUEST['Updt'])){

$fb_add=$_REQUEST['fb_add']; 

$twitter_add=$_REQUEST['twitter_add']; 

$google_add=$_REQUEST['google_add']; 

$linkdn_add=$_REQUEST['linkdn_add']; 

echo $sqlUp="update tbl_social_media set 

fb_add='$fb_add',

twitter_add='$twitter_add',

google_add='$google_add',

linkdn_add='$linkdn_add' where social_id='1'";

mysql_query($sqlUp);

}

		   ?>

           <?php

		   $sql="select * from tbl_social_media where social_id='1'";

	$data=mysql_query($sql);

	$result=mysql_fetch_array($data);

			 ?>

  <main id="playground">

    <!-- - - - - - - - - - - - - -->

    <!-- start of TOP NAVIGATION -->

    <!-- - - - - - - - - - - - - -->

     <?php include('site-top-header.php'); ?>

    <!-- - - - - - - - - - - - - -->

    <!-- end of TOP NAVIGATION   -->

    <!-- - - - - - - - - - - - - -->

    <!-- PAGE TITLE -->

    <section id="page-title" class="row">

      <div class="col-md-8">

        <h1>Dashboard</h1>

        <p class="lead">Update your social media links</strong>.</p>

      </div>

      <div class="col-md-4">

        <ol class="breadcrumb pull-right no-margin-bottom">

          

          <li><a href="dashboard.html">Dashboard</a></li>

          <li class="active">Update Social Media</li>

        </ol>

      </div>

    </section>

    <!-- / PAGE TITLE -->

    <div class="container-fluid">

      <div class="row">

        <div class="col-md-6">

          <div class="panel-body">

            <form method="post">

              <div class="form-group">

                <label for="">Facebook</label>

                <input type="text" class="form-control" id="" name="fb_add" value="<?php echo $result['fb_add']; ?>" placeholder="Enter Your Facebook Link">

              </div>

              

              <div class="form-group">

                <label for="">Twitter</label>

                <input type="text" class="form-control" id="" name="twitter_add" value="<?php echo $result['twitter_add']; ?>" placeholder="Enter Your Twitter Link">

              </div>

              

           

          </div>

        </div>

        <div class="col-md-6">

          <div class="panel-body">

          

              <div class="form-group">

                <label for="">Google+</label>

                <input type="text" class="form-control" id="" name="google_add" value="<?php echo $result['google_add']; ?>" placeholder="Enter Your Google+ Link">

              </div>

              <div class="form-group">

                <label for="">Linked IN</label>

                <input type="text" class="form-control" id="" name="linkdn_add" value="<?php echo $result['linkdn_add']; ?>" placeholder="Enter Your Linked IN Link">

              </div>

           

          </div>

        </div>

      </div>

      <div class="panel-footer text-center"> <button class="btn btn-primary" name="Updt">Submit</button> </div>

       </form>

    </div>

    <!-- / container-fluid -->

<?php include('site-footer.php'); ?>