2 <div
class="panel panel-default">
3 <div
class="panel-heading">
8 <div
class="list-group">
9 <?php
if ($_SESSION['utype'] == "admin") { ?
>
10 <a
class="list-group-item <?php echo (isset($_GET['crar'])) ? "active
" : ""; ?>" href
="?crar">Create Artist Account
</a
>
11 <a
class="list-group-item <?php echo (isset($_GET['vtrans'])) ? "active
" : ""; ?>" href
="?vtrans">View Transactions
</a
>
12 <a
class="list-group-item <?php echo (isset($_GET['alist'])) ? "active
" : ""; ?>" href
="?alist">Artist
List</a
>
13 <?php
} elseif ($_SESSION['utype'] == "user") { ?
>
14 <a
class="list-group-item <?php echo (isset($_GET['art'])) ? "active
" : ""; ?>" href
="?art">Art
List (Uncategorized
) </a
>
15 <a
class="list-group-item <?php echo (isset($_GET['usercat'])) ? "active
" : ""; ?>" href
="?usercat">User Category
List</a
>
16 <a
class="list-group-item <?php echo (isset($_GET['upload'])) ? "active
" : ""; ?>" href
="?upload">Upload Image
</a
>
21 <?php
if($_SESSION['utype'] == "user") {
22 $category = file(ADBD_PATH
."class.log");
23 if(count($category)>0){
25 <div
class="panel panel-default">
26 <div
class="panel-heading">
31 <div id
="categoryList" class="list-group">
33 $getCat = (isset($_GET['cat'])) ?
$_GET['cat'] : "";
34 foreach ($category as $key => $value) {
35 $name = within_str($value, "<classname>", "</classname>");
36 $id = within_str($value, "<id>", "</id>");
37 $current = ($getCat==$name) ?
"active" : "";
38 echo '<a class="list-group-item '.$current.'" href="?art&cat='.$name.'">'.ucfirst($name).' <span class="badge pull-right">'.countClass($id, $_SESSION['artistid']).'</span></a>';
47 <!-- end panel heading
-->