-
Notifications
You must be signed in to change notification settings - Fork 0
/
ex.php
110 lines (55 loc) · 2.29 KB
/
ex.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
session_start();
require_once 'class.user.php';
$user_home = new USER();
if(!$user_home->is_logged_in())
{
$user_home->redirect('login.php');
}
$stmt = $user_home->runQuery("SELECT * FROM users WHERE userID=:uid");
$stmt->execute(array(":uid"=>$_SESSION['userSession']));
$row = $stmt->fetch(PDO::FETCH_ASSOC);
include_once 'inc/header.php';?>
<div class="grid-100">
<div class="mixed-box content-suggestions topic-digital-literacy">
<div class="box-header">
<h3>You're doing great, sagar!</h3>
</div>
<div class="box-content secondary">
<div class="box-footer box-actions" style="border-radius:4px 4px 4px 4px;padding-bottom: 5px;">
<h3 style="float:left;"> BOLLYGRAM 6th </h3>
<p style="float:left;padding-left: 10%;"> 60 MB</p>
<a style="float:right;margin-top: -8px;" class="button primary"><img src='img/cloud-computing.png'></img></a>
</div>
</div>
<div class="box-footer box-actions">
<h3 style="float:left;"> CopyRight By Sagar Solanki </h3>
</div>
</div>
</div>
<script>
// function bytesToSize(bytes) {
// var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
// if (bytes == 0) return 'n/a';
// var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)));
// if (i == 0) return bytes + ' ' + sizes[i];
// return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i];
// };
// $("input[type=submit]").click(function () {
// $("<tr>").html('');
// $.post('fs.php', 'val=' + $(this).val(), function (data) {
// var items = [];
// $.each(data,function(key,val){
// items.push("<tr>");
// items.push("<td id=''" +key+ "''>" + val.name +"</td>");
// items.push("<td id=''" +key+ "''>" + bytesToSize(val.size) +"</td>");
// items.push("<td>");
// items.push("<a href='" + val.path + "' download='"+ val.name +"' >" + "Download" + "</a>");
// console.log("<a href='" + val.path + "' download='"+ val.name +"'>" + "Download" + "</a>");
// items.push("</td>");
// items.push("</tr>");
// });
// $('<tbody/>',{html:items.join("")}).appendTo("table");
// });
// });
</script>