<div class="list-group page-margin">
    <div class="add-photo row">
       <div class="col-lg-9">
       	<h2><?php echo $wo['lang']['follow_head'];?></h2>
        <h4><?php echo $wo['lang']['get_latest_activity'];?></h4>
        <br>
        <?php
        $users = Wo_GetFemusUsers();
        $user_id = array();
        foreach ($users as $wo['result']) {
        	$user_id[] = $wo['result']['user_id'];
        	$wo['result']['no_btn'] = true;
        	echo Wo_LoadPage('search/result');
        }
        echo '<input type="hidden" name="users" id="users-id" value="' . implode(',' , $user_id) . '">';
        ?>
       </div>
       <div class="col-lg-2 continue-button">
       	<button class="con-button btn btn-main" onclick="Wo_SubmitFollow();">
        <?php
        $string = str_replace('{number}', count($users), $wo['lang']['follow_num']);
        echo $string;
        ?>
        </button><br>
       </div>
       <div class="clear"></div>
    </div>
</div>
<script type="text/javascript">
function Wo_SubmitFollow() {
	$('.con-button').attr('disabled', true);
  $('.con-button').text("<?php echo $wo['lang']['please_wait'];?>");
	var users = $('#users-id').val();
	$.post(Wo_Ajax_Requests_File() + '?f=follow_users', {user:users}, function (data) {
		if (data.status == 200) {
			window.location.reload()
		}
	});
}
</script>