Notification List

select('Notification','*',NULL,"id = $tblid",NULL,NULL); $result = $db->getResult(); extract($result[0]); $_SESSION['mnsbprogupdate'] = rand(11111111,99999999); ?>
Category Name
Title *
Time *
Date *
Venue *
Description
 
 
 
0) { $error_document1 = $_FILES["image"]["error"]; } else { if($_FILES['file']['image'] > 150000) { print "Error : The image you tried to upload is too large , its need to be Max. 500Kb please try again !"; } else { $image_size = getimagesize($_FILES['file']['tmp_name']); if($image_size[0] > 9400 or $image_size[1] > 8300) { print "Error : The image you tried to upload is too large , its need to be Max. 400 X 300 Px. please try again !"; } else { unlink($folder.$deleteddbimagename); $temp = explode(".", $_FILES["file"]["name"]); $filename=current($temp); $ext = end($temp); $newname= "TL".time().".$ext"; move_uploaded_file($_FILES["file"]["tmp_name"] , "$folder".$newname); $updval = array('cat_id' => $category_id ,'title' => $title , 'description' => $description , 'time' => $time,'date' => $date,'venue' => $venue); $db->update('Notification',$updval,"id = '$tblid'"); print "Success : Notification Successfully Updated !"; } } } } else { $updval = array('cat_id' => $category_id ,'title' => $title , 'description' => $description , 'time' => $time,'date' => $date,'venue' => $venue); $db->update('Notification',$updval,"id = '$tblid'"); print "Success : Notification Successfully Updated !"; } } if(isset($_POST[$_SESSION['mnsbprogdelete']])) { extract($_POST); $db->delete('Notification',"id = '$tblid'"); print "Success : event Successfully Deleted !

"; } $_SESSION['mnsbprogdelete'] = rand(11111111,99999999); $db->selectRowCnt('Notification','*',NULL,$query_txt,NULL); $totalrows = $db->numRows(); if($totalrows > 0) { ?> = $plimit) { $end_count = $start + $plimit; } if ($totalrows - $end_count > $plimit) { $var2 = $plimit; } elseif ($totalrows - $end_count <= $plimit) { $var2 = $totalrows - $end_count; } $cnt = $start; $db->select('Notification','*',NULL,$query_txt," id DESC", "$start,$plimit"); $resultsd = $db->getResult(); foreach($resultsd as $row){ $cnt = $cnt+1; if(($cnt%2) == 0) $class = "darkcss"; else $class = "lightcss"; $id = $row['id']; $item_name = $row['title']; $cat_id = $row['cat_id']; $time = $row['time']; $date = $row['date']; $venue = $row['venue']; $description = $row['description']; $db->select('category','title',NULL,"id = '$cat_id'"); $sdasdas = $db->getResult(); $cat_name = $sdasdas[0]['title']; ?>
Sr. No Category Title Discription Action
Category - Name -
Time -
Date -
Venue -
1) { ?> " class="page-far-left"> " class="page-left"> " class="page-right"> " class="page-far-right">