Пример #1
0
function showDownloads($filename, $filesize, $filedesc, $fileuploader, $file_upload_time, $fileuri, $course_name)
{
    echo '<div style="box-shadow:rgb(200,200,200) 3px 4px; border-radius:10px; width: 500px; margin:10px;  padding:5px; background-color:#eee; z-index:10;>
				<p style="font-family: verdana; padding:10px;">
					<label style=" float:left;font-size:14px;color:#AABBCC">' . $fileuploader . '</label>
					<label style=" float:right;font-size:14px;color:#AABBCC">' . getHumanTime($file_upload_time) . '</label>
					<br /><label style="font-size:18px;font-family: Arial;color:#0AB3F1">' . $filename . '</label> 
					<a style="float:right;" target="_blank" href="' . $fileuri . '"><img src="images/ui/ic_download_option.png"/></a>
					<br /><label style="font-size:12px;color:#999">' . $filedesc . '</label><br />
					<label style="font-size:14px; float:right;color:#AABBCC">' . $course_name . '</label>
					<label style="font-size:14px; float:left;color:#AABBCC">' . getFileSize($filesize) . '</label>
					
				</p>
	</div>';
}
Пример #2
0
function pagemenu()
{
    $username = $_SESSION['username'];
    $t = get_proxy_info_timeleft();
    $time = getHumanTime($t);
    print <<<EOS
<div>
<a href='/home.php'>FedCloud Web</a>

Welcome {$username}
<a href='/logout.php'>[logout]</a>
proxy time left : {$time}
</div>
EOS;
    http:
    //sebnitu.github.io/HorizontalNav/#
    print <<<EOS
<div>
<nav class="horizontal-nav full-width horizontalNav-notprocessed">
  <ul>
    <li><a href="pxinfo.php">Proxy Info</a></li>
    <li><a href="create.php">Create VM</a></li>
    <li><a href="vmlist.php">Manage VM</a></li>
    <li><a href="curl.php">curl client</a></li>
    <li><a href="mgr.php">Management</a></li>
  </ul>
</nav>
</div>

<script>
\$(document).ready(function() {
  \$('.full-width').horizontalNav({});
});
</script>
EOS;
}
Пример #3
0
    $id = $row['id'];
    $alive = true;
    $state = $row['state'];
    if ($state == 'deleted' or $state == 'not found') {
        $alive = false;
    }
    if ($alive) {
        $delete = "<span onclick=\"_delete('{$id}',this)\" class='link'>delete</span>";
    } else {
        $show = '';
        $delete = '';
    }
    $show = "<span onclick=\"_show('{$id}',this)\" class='link'>show</span>";
    //dd($row['createTime']);
    $ct = $row['createTime'];
    $ct = getHumanTime($ct) . ' ago';
    $cnt++;
    print <<<EOS
<tr>
<td>{$cnt}</td>
<td>{$row['affiliation']}</td>
<td>{$row['cc']}</td>
<!--
<td>{$row['hostsite']}</td>
<td>{$row['osid']}</td>
<td>{$row['vmurl']}</td>
-->
<td><span onclick="_chname('{$id}',this)" class='link'>{$row['vmname']}</span></td>
<td>{$row['cmf']}</td>
<td>{$row['resid']}</td>
<td>{$row['core']}</td>