echo"<span class='text-danger'>".gettext("Connection Error")."</span><br/><span class='btn-link' onclick='checkupdate()'>".gettext("Click to retry")."</span>";
echo"<span class='text-danger'>".gettext("Connection Error")."</span><br/><span class='btn-link' onclick='system_information_widget_checkupdate()'>".gettext("Click to retry")."</span>";
}elseif($pkg_status["repository"]=="error"){
}elseif($pkg_status["repository"]=="error"){
echo"<span class='text-danger'>".gettext("Repository Problem")."</span><br/><span class='btn-link' onclick='checkupdate()'>".gettext("Click to retry")."</span>";
echo"<span class='text-danger'>".gettext("Repository Problem")."</span><br/><span class='btn-link' onclick='system_information_widget_checkupdate()'>".gettext("Click to retry")."</span>";
}elseif($pkg_status["updates"]=="0"){
}elseif($pkg_status["updates"]=="0"){
echo"<span class='text-info'>".gettext("Your system is up to date.")."</span><br/><span class='btn-link' onclick='checkupdate()'>".gettext('Click to check for updates')."</span>";
echo"<span class='text-info'>".gettext("Your system is up to date.")."</span><br/><span class='btn-link' onclick='system_information_widget_checkupdate()'>".gettext('Click to check for updates')."</span>";
}else{
}else{
echo"<span class='text-info'>".sprintf(gettext("There are %s update(s) available."),$pkg_status["updates"])."</span><br/><a href='/ui/core/firmware/#checkupdate'>".gettext("Click to upgrade")."</a> | <span class='btn-link' onclick='checkupdate()'>".gettext('Re-check now')."</span>";
echo"<span class='text-info'>".sprintf(gettext("There are %s update(s) available."),$pkg_status["updates"])."</span><br/><a href='/ui/core/firmware/#checkupdate'>".gettext("Click to upgrade")."</a> | <span class='btn-link' onclick='system_information_widget_checkupdate()'>".gettext('Re-check now')."</span>";
<spanid="cpumeter">(<?=gettext('Updating in 10 seconds')?>)</span>
<spanid="memusagemeter"><?=$memUsage.'%';?></span> used <?=sprintf("%.0f/%.0f",$memUsage/100.0*get_single_sysctl('hw.physmem')/(1024*1024),get_single_sysctl('hw.physmem')/(1024*1024))?> MB
<spanid="memusagemeter"><?=$memUsage.'%';?></span> used <?=sprintf("%.0f/%.0f",$memUsage/100.0*get_single_sysctl('hw.physmem')/(1024*1024),get_single_sysctl('hw.physmem')/(1024*1024))?> MB
<?phpecho"{$fs['mountpoint']} ({$fs['type']})";?>: <spanid="diskusagemeter<?phpecho$d++?>"><?=$fs['percent_used'].'%';?></span> used <?phpecho$fs['used_size']."/".$fs['total_size'];
<?phpecho"{$fs['mountpoint']} ({$fs['type']})";?>: <spanid="diskusagemeter<?phpecho$d++?>"><?=$fs['percent_used'].'%';?></span> used <?phpecho$fs['used_size']."/".$fs['total_size'];
if($d!=count($filesystems)){
if($d!=count($filesystems)){
echo'<br/><br/>';
echo'<br/><br/>';
}
}
endforeach;?>
endforeach;?>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
<script type="text/javascript">
//<![CDATA[
functioncheckupdate(){
jQuery('#updatestatus').html('<span class="text-info"><?=html_safe(gettext('Fetching... (may take up to 30 seconds)'))?></span>');