<form name="onlineRepo" action="config.php" method="post">
	<input type="hidden" name="display" value="modules"/>
	<input type="hidden" name="online" value="<?php echo $online ?>"/>
	<?php if(!empty($repo_list)) {?>
		<table width="600px">
			<tr>
				<td>
					<?php echo fpbx_label(_("Repositories"), $tooltip); ?>
				</td>
				<td>
					<table>
						<tr class="repo_boxes radioset">
							<?php foreach($repo_list as $repo) {?>
								<td>
									<input id="<?php echo $repo?>_repo" type="checkbox" name="active_repos[<?php echo $repo?>]" value="1" tabindex="<?php echo ++$tabindex;?>" <?php echo !empty($active_repos[$repo])?"checked":""?>/>
									<label for="<?php echo $repo?>_repo"><?php echo ucwords(_($repo)) ?></label>
								</td>
							<?php } ?>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	<?php } ?>
	<div>
		<input type="hidden" value="1" name="check_online">
		<input type="submit" value="<?php echo _("Check Online") ?>" style="<?php if($online) {?>display:none;<?php } ?>"/>
		<?php echo $button_display ?>
		<?php if($online) {?>
			<a class="btn" href="config.php?display=modules&amp;online=0"><?php echo _("Manage local modules")?></a>
			<input id="show_upgradable_only" type="checkbox" name="ugo" onclick="showhide_upgrades();" />
			<label for="show_upgradable_only"><?php echo _("Show only upgradeable")?></label>
		<?php } ?>
	</div>
</form>
<div class="screendoor">
	<div class="message center-block">
		<div class="text">
			<?php echo _("Checking Online, Please Wait...");?>
		</div>
		<i class="fa fa-spinner fa-spin"></i>
	</div>
</div>
