Example #1
0
 function comment_abuse()
 {
     global $user;
     $client_id = $user['cid'];
     $db_function_onj = new DbFunctions();
     $commets = $db_function_onj->get_comment_abuse_by_client($client_id);
     $output = "<br /><br /><b>Comments Abuse:</b><br /><br />\n                    <table id='add_article_html_table' style='font-size: 10px' class='table table-hover table-nomargin table-bordered'>\n                      <tr>\n                        <th>Comment Id</th>\n                        <th>Username</th>     \n                        <th>Comment</th>  \n                        <th>Abuse Count</th>\n                        <th>Date Added</th>  \n                        <th>Delete</th>  \n                      </tr>";
     foreach ($commets as $key => $data) {
         $output .= "<tr id='commnet_" . $data->id . "'>\n                          <td>" . $data->id . "</td>\n                          <td>" . $data->username . "</td>      \n                          <td>" . $data->comment . "</td>        \n                          <td><b><span style='color:red'>" . $data->c . "</span></b></td>      \n                          <td>" . $data->abuse_date . "</td>      \n                          <td><input type='checkbox' value='" . $data->id . "' onclick='deleteComment(this);'></td>\n                       </tr>";
     }
     $this->content = $output;
 }