-
Notifications
You must be signed in to change notification settings - Fork 0
/
grouplist.php
75 lines (68 loc) · 1.59 KB
/
grouplist.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
<?php
$alias=array();
$q="SELECT * FROM `groups`";
$result=mysql_query($q) or die('MySQL Error(curcol)!!');
$count=mysql_num_rows($result);
?>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><b>Group List</b></div>
<div class="panel-body">
<table width="120px" border="1">
<?
while($row=mysql_fetch_array($result))
{$i=0;
$alias[$i]=$row['alias'];
$link="index.php?gid=".$row['id'];
?>
<tr>
<td>
<center>
<a href="<?=$link?>"><img
<?
if($row['id']==$_SESSION['gid'])
echo 'style="border:double #F00"';
?>
width="70" height="70" src="kart/groupimage/<?=$row['pic']?>" /></a></center></td>
<td> </td>
<?
$i++;
$row=mysql_fetch_array($result);
$link="index.php?gid=".$row['id'];
$alias[$i]=$row['alias'];
?>
<td>
<center>
<a href="<?=$link?>"><img <?
if($row['id']==$_SESSION['gid'])
echo 'style="border:double #F00"';
?>width="70" height="70" src="kart/groupimage/<?=$row['pic']?>" /></a></center></td>
</tr>
<tr>
<?
$j=0;
foreach($alias as $a)
{
?>
<td><center><?=$a?></center></td>
<?
if($j==0){
?>
<td> </td>
<?
}
$j++;
} // foreach end
?>
</tr>
<?
} //while loop end
?>
</table>
</br>
<a class="btn btn-success" href="addcampus.php">Add Your College</a>
</div>
</div>
</div>
</div>