<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title;?></title>
<?php $this->load->view('common/meta_tags'); ?>
<?php $this->load->view('common/before_head_close'); ?>
</head>
<body>
<?php $this->load->view('common/after_body_open'); ?>
<!--Site Wraper Start-->
<div class="siteWraper">
  <?php $this->load->view('common/header'); ?>
  <?php if($this->session->userdata('is_user_login')):?>
    <?php $this->load->view('common/logged_in_bar'); ?>
    <?php endif;?>
  <div class="inner">
	   <div class="privacyWrap">
       <h1 class="titleheading">Privacy Setting</h1>
        <form name="edit_form" id="edit_form" method="post" action="">
       <ul class="privacyList">
            	<li class="headbar">
                	<div class="priv-col left">&nbsp;</div>
                    <div class="head-col left">Public</div>
                    <div class="head-col left">Friends</div>
                    <div class="head-col left">Only Me</div>
                <div class="clear"></div>    
                </li>
                
                <li>
                	<div class="priv-col left">My email id appears to</div>
                    <div class="check-col left"><input type="radio" name="email_setting" value="public" /></div>
                    <div class="check-col left"><input type="radio" name="email_setting" value="friends" /></div>
                    <div class="check-col left"><input type="radio" name="email_setting" value="me" /></div>
                    <?php echo form_error('email_setting', '<div class="error"><span>', '</span></div>'); ?>
                    <script>
					var SelectdValue = '<?php echo $privacy_row->email_setting;?>';
					$('input[name="email_setting"][value="' + SelectdValue + '"]').prop('checked', true);
					</script>
                <div class="clear"></div>    
                </li>
                
                <li>
                	<div class="priv-col left">My phone number appears to</div>
                    <div class="check-col left"><input type="radio" name="phone_setting" value="public" /></div>
                    <div class="check-col left"><input type="radio" name="phone_setting" value="friends" /></div>
                    <div class="check-col left"><input type="radio" name="phone_setting" value="me" /></div>
                    <?php echo form_error('phone_setting', '<div class="error"><span>', '</span></div>'); ?>
                    <script>
					var SelectdValue = '<?php echo $privacy_row->phone_setting;?>';
					$('input[name="phone_setting"][value="' + SelectdValue + '"]').prop('checked', true);
					</script>
                <div class="clear"></div>    
                </li>
                
                <li>
                	<div class="priv-col left">My photo Gallery appears to</div>
                    <div class="check-col left"><input type="radio" name="gallery_setting" value="public"   /></div>
                    <div class="check-col left"><input type="radio" name="gallery_setting" value="friends" /></div>
                    <div class="check-col left"><input type="radio" name="gallery_setting" value="me"/></div>
                    <?php echo form_error('gallery_setting', '<div class="error"><span>', '</span></div>'); ?>
                    <script>
					var SelectdValue = '<?php echo $privacy_row->gallery_setting;?>';
					$('input[name="gallery_setting"][value="' + SelectdValue + '"]').prop('checked', true);
					</script>
                <div class="clear"></div>    
                </li>
                
                <li>
                	<div class="priv-col left">My date of birth appears to</div>
                    <div class="check-col left"><input type="radio" name="dob_setting" value="public" /></div>
                    <div class="check-col left"><input type="radio" name="dob_setting" value="friends" /></div>
                    <div class="check-col left"><input type="radio" name="dob_setting" value="me" /></div>
                    <?php echo form_error('dob_setting', '<div class="error"><span>', '</span></div>'); ?>
                    <script>
					var SelectdValue = '<?php echo $privacy_row->dob_setting;?>';
					$('input[name="dob_setting"][value="' + SelectdValue + '"]').prop('checked', true);
					</script>
                <div class="clear"></div>    
                </li>
                
                <li>
                	<div class="priv-col left">My Location appears to (Country and City)</div>
                    <div class="check-col left"><input type="radio" name="location_setting" value="public" /></div>
                    <div class="check-col left"><input type="radio" name="location_setting" value="friends" /></div>
                    <div class="check-col left"><input type="radio" name="location_setting" value="me" /></div>
                    <?php echo form_error('location_setting', '<div class="error"><span>', '</span></div>'); ?>
                    <script>
					var SelectdValue = '<?php echo $privacy_row->location_setting;?>';
					$('input[name="location_setting"][value="' + SelectdValue + '"]').prop('checked', true);
					</script>
                <div class="clear"></div>    
                </li>
                
                <li>
                	<div class="priv-col left">Who can send messages to you</div>
                    <div class="check-col left"><input type="radio" name="msg_setting" value="public" /></div>
                    <div class="check-col left"><input type="radio" name="msg_setting" value="friends" /></div>
                    <?php echo form_error('msg_setting', '<div class="error"><span>', '</span></div>'); ?>
                    <div class="check-col left">&nbsp;</div>
                    <script>
					var SelectdValue = '<?php echo $privacy_row->msg_setting;?>';
					$('input[name="msg_setting"][value="' + SelectdValue + '"]').prop('checked', true);
					</script>
                <div class="clear"></div>    
                </li>
                
                <li>
                	<div class="priv-col left">Who can comments on your profile</div>
                    <div class="check-col left"><input type="radio" name="comment_setting" value="public" /></div>
                    <div class="check-col left"><input type="radio" name="comment_setting" value="friends" /></div>
                    <?php echo form_error('comment_setting', '<div class="error"><span>', '</span></div>'); ?>
                    <div class="check-col left">&nbsp;</div>
                    <script>
					var SelectdValue = '<?php echo $privacy_row->comment_setting;?>';
					$('input[name="comment_setting"][value="' + SelectdValue + '"]').prop('checked', true);
					</script>
                <div class="clear"></div>    
                </li>
                
                
                
                <li>
                	<div class="submit-setting"><input type="submit" value="Submit and Save" name="" /></div> 
                </li>
            </ul>
            </form>  
    <div class="clear"></div>
    </div>
    </div>
  <?php $this->load->view('common/footer'); ?>
</div>
<!--/Site Wraper End-->
<?php $this->load->view('common/after_body_open'); ?>
</body>
</html>
