"$customerid", 'sessionid'=>"$sessionid", 'user_name' => "$username", 'where' => "$where",'match' => "$match_condition")); $result = $client->call('get_tickets_list', $params, $Server_Path, $Server_Path); $val = @array_values($result); $rowcount = count($result); $list_fields = Array( 'TICKETID' => '7%', 'TITLE' => '28%', 'PRIORITY' => '10%', 'STATUS' => '10%', 'CATEGORY' => '15%', 'MODIFIED TIME' => '15%', 'CREATED TIME' => '15%' ); //In Tickets/index.html we have opened the tr and td tags. So here we should start with div or table tags if($rowcount >= 1 && $val) { $list .= '
'; $list .= ''; $list .= '
'.$mod_strings['LBL_MY_OPEN_TICKETS'].'
'; $list .= ''; $list .= ''; $closedlist .= '
'; $closedlist .= '
'.$mod_strings['LBL_CLOSED_TICKETS'].'
'; $closedlist .= ''; $closedlist .= ''; foreach($list_fields as $val => $per) { $list .= ''; $closedlist .= ''; } $list .= ''; $ticketexist = 0; for($i=0;$i'; $ticketlist .= ''; $ticketlist .= ''; $ticketlist .= ''; $ticketlist .= ''; $ticketlist .= ''; $ticketlist .= ''; if($result[$i]['status'] == $mod_strings['LBL_STATUS_CLOSED']) $closedlist .= $ticketlist; elseif($result[$i]['status'] != '') $list .= $ticketlist; } } if($ticketexist == 0) { $list .= '
'.$mod_strings[$val].''.$mod_strings[$val].'
'.$result[$i]['title'].''.$result[$i]['priority'].''.$result[$i]['status'].''.$result[$i]['category'].''.$result[$i]['modifiedtime'].''.$result[$i]['createdtime'].'
 
'.$mod_strings['LBL_NO_TCK_AVAIL_ST'].'
'; } $list .= ''; $closedlist .= ''; $closedlist .= '
'; $list .= '

'.$closedlist; } else { $list = ''; $list .= '
'.$mod_strings['LBL_NONE_SUBMITTED'].'
'; } //In Tickets/index.html we have opened the tr and td tags. So here we have to close that td and tr tags $list .= ""; echo $list; ?>