<?php TPL::output('global/header.tpl.htm'); ?>

		<?php TPL::output('account/setting/setting_header.tpl.htm'); ?>
		<form id="setting_form" method="post" action="account/ajax/privacy_setting/">
			<div class="v_setting">

				<h4 class="h4" id="inbox">Message setting</h4>
				<div class="v_setMain v_sver">
					<span class="tny-cl_01">Anyone can give me a message:</span>&nbsp;&nbsp;<input name="inbox_recv" id="inbox_recv" type="radio" value="0" <?php if ($this->user_info["inbox_recv"] == 0) { ?>checked="checked"<?php } ?>/> All people &nbsp; <input name="inbox_recv" id="inbox_recv" type="radio" value="1" <?php if ($this->user_info["inbox_recv"] == 1) { ?>checked="checked"<?php } ?> /> People I have followed
                </div>
                
                <h4 class="h4" id="email">Email setting</h4>
                <div class="v_setMain v_sver">
                	<h5 class="tny-cl_01" >When to send me an Email</h5>
                	<p class="v_setLsit">
                        <span><input type="checkbox" name="sender_11" value="1" <?php if ($this->email_setting['sender_11'] == 1) { ?>checked="checked"<?php } ?> /> There are concerns me </span><span><input type="checkbox" name="sender_13" value="1" <?php if ($this->email_setting['sender_13'] == 1) { ?>checked="checked"<?php } ?> /> When someone has invited me to answer a question</span>
                        <span><input type="checkbox" name="sender_14" value="1" <?php if ($this->email_setting['sender_14'] == 1) { ?>checked="checked"<?php } ?> /> When a question I have followed gets new reply </span><span><input type="checkbox" name="sender_15" value="1" <?php if ($this->email_setting['sender_15'] == 1) { ?>checked="checked"<?php } ?> /> When someone messages me</span>
                    </p>
                </div>
                <h4 class="h4" id="notifications">Notification setting</h4>
                <div class="v_setMain v_sver">
                	<h5 class="tny-cl_01">Let me know what circumstances</h5>
                    <p class="v_setLsit">
                     <?php foreach($this->notify_actions as $key => $val) { ?>
                        <?php if ($val['user_setting']) { ?>
                        <span><input name="notification_setting[<?php echo $key;?>]" type="checkbox" value="1" <?php if (!in_array($key, $this->notification_setting['data']) || !$this->notification_setting['data']) { ?>checked="checked"<?php } ?> /> <?php echo $val['desc'];?></span>
                        <?php } ?>
                    <?php } ?>
                    </p>
                </div>
                
                <p class="v_submit tny-tr"><a title="Save" href="javascript:;" onclick="ajax_post($('#setting_form'))" class="btn-raplay2">Save</a></p>
			</div>
		</form>
		<?php TPL::output('account/setting/setting_footer.tpl.htm'); ?>

<?php TPL::output('global/footer.tpl.htm'); ?>