|
link to this page:
http://pastebin.antiyes.com/pastebin/index283.html
download this file: click here
|
description/question: call for papers parser
|
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
|
|
<html>
<head>
<style type="text/css">
body{font-family:verdana;}
</style>
<head>
<body>
<?php
$handle = fopen("/tmp/file.csv", "r");
$row = 0;
$body = "";
$titles = "";
while(($data = fgetcsv($handle, 2000, ",")) !== FALSE)
{
$row++;
if($row < 4)
continue;
$n = $row -3;
$data[0] = trim($data[0]);
$data[1] = trim($data[1]);
$data[2] = trim($data[2]);
$data[3] = trim($data[3]);
$data[4] = trim($data[4]);
$data[5] = trim($data[5]);
$data[6] = trim($data[6]);
$data[7] = trim($data[7]);
$data[8] = trim($data[8]);
$data[9] = trim($data[9]);
$titles = "$titles<a href='#$data[4]'>$data[4]</a> <br />";
$body = "$body<a name='$data[4]'></a>$n";
$body = "$body<ul>";
$body = "$body<li><strong>Name:</strong> $data[3]</li>";
$body = "$body<li><strong>Title:</strong> $data[4]</li>";
$body = "$body<li><strong>SID:</strong> $data[2]</li>";
$body = "$body<li><strong>Level:</strong> $data[8]</li>";
$body = "$body<li><strong>Summary:</strong> <p>$data[6]</p></li>";
$body = "$body<li><strong>Bio:</strong> <p>$data[9]</p></li>";
$body = "$body</ul>";
$body = "$body<hr />";
}
echo "<div style='width:100%; border:solid 1px black; height:300px; overflow:auto;'>$titles</div>";
echo $body;
?>
</body>
</html>
|
|
|
|
|