-
Notifications
You must be signed in to change notification settings - Fork 0
/
group.php
59 lines (57 loc) · 1.75 KB
/
group.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
<?php
include_once('kart/kartlib.php');
$gid=$_GET['gid'];
$op = $_GET['op'];
if (!isset($op)) {
$op=1;
}
if(!isset($gid)){
if (isset($_SESSION['gid'])) {
$gid = $_SESSION['gid'];
}
}
if(isset($gid))
{
if(!is_numeric($gid))
die('01');
$_SESSION['gid']=$gid;
$q="SELECT * FROM `groups` WHERE id=$gid";
$result=mysql_query($q) or die('sql error mod_group 1');
$row=mysql_fetch_array($result);
?>
<div class="row">
<div class="col-sm-3">
<img src="kart/groupimage/<?=$row['pic']?>" height="150" width="150" />
</div>
<div class="col-sm-9">
<div class="row">
<? $txt="Yourkart.com enables you to Buy and Sell used books/mobile phones/laptops/calculators etc within your college. This is a group for ".$row['name']." . Use \"Post a Free Ad\" button above to post your ad in this group or Use \"Post a Request\" button to post a Request."; info($txt); ?>
</div>
<div class="row">
<font size="+2"><a href="index.php?gid=<?=$row['id']?>&n=<?=$row['name']?>"><?=$row['name']?></a></font>
</div>
<div class="row">
<ul class="nav nav-tabs">
<li <? if($op==1) echo 'class="active"'; ?>><a href="index.php?gid=<?=$row['id']?>&n=<?=$row['name']?>&op=1&opname=Browse_Ads">Browse Ads</a></li>
<li <? if($op==3) echo 'class="active"'; ?>><a href="index.php?gid=<?=$row['id']?>&n=<?=$row['name']?>&op=3&opname=Browse_Requests">Browse Requests</a></li>
</ul>
</div>
</div>
</div>
<div class="row">
<?
if ($op==1) {
include_once('groupads.php');
}
if ($op==2) {
message('Congratulations!! You have reached end of internet !! Contact Us with the page URL. You might get a chance to work with us !');
//include_once('groupcat.php');
}
if ($op==3) {
include_once('grouprequest.php');
}
?>
</div>
<?
}
?>