fix
This commit is contained in:
@@ -1014,11 +1014,25 @@ class Member extends Users_Controller {
|
||||
$data = $this->getSessionArray();
|
||||
$this->load->library('table');
|
||||
$this->table->set_template($this->template);
|
||||
$mysql = "SELECT added::date AS msg_date,msg,id AS msg_id
|
||||
FROM members_messages
|
||||
WHERE member_id = " . $_SESSION['member_id'] . " AND reply IS NULL
|
||||
ORDER BY id DESC LIMIT 20";
|
||||
$mysql88 = "SELECT mm.added::date AS msg_date,mm.msg,id AS msg_id ,ms.firstname AS senders_name
|
||||
FROM members_messages mm
|
||||
LEFT JOIN members ms ON mm.senders_id = ms.id
|
||||
WHERE mm.member_id = " . $_SESSION['member_id'] . " AND mm.reply IS NULL
|
||||
ORDER BY mm.id DESC LIMIT 20";
|
||||
|
||||
|
||||
$mysql = "SELECT mm.added::date AS msg_date,mm.msg,mm.id AS msg_id ,ms.firstname AS senders_name ,mm.senders_id, mm.memo
|
||||
FROM members_messages mm
|
||||
LEFT JOIN members ms ON mm.senders_id = ms.id
|
||||
WHERE mm.member_id = " . $_SESSION['member_id'] . " AND mm.reply IS NULL
|
||||
UNION
|
||||
SELECT mm.added::date AS msg_date,mm.msg,mm.id AS msg_id ,'Me' AS senders_name ,mm.senders_id, mm.memo
|
||||
FROM members_messages mm
|
||||
WHERE mm.senders_id = " . $_SESSION['member_id'] . " AND mm.reply IS NULL
|
||||
ORDER BY msg_date DESC LIMIT 30";
|
||||
|
||||
$query = $this->db->query($mysql);
|
||||
$data['my_message_rows'] = $query->result_array(); // new implementation
|
||||
|
||||
$myTable = "<table class='table table-row-bordered table-row-gray-100 align-middle gs-0 gy-3'>";
|
||||
|
||||
@@ -1037,6 +1051,13 @@ class Member extends Users_Controller {
|
||||
. "<tr><td colspan = '2'><div id='" . $row['msg_id'] . "'></div></td></tr>";
|
||||
}
|
||||
|
||||
public function setupReply(){
|
||||
//E&message_id=" + message_id +"&job_id="+job_id
|
||||
$message_id = $this->input->get('message_id');
|
||||
$job_id = $this->input->get('job_id');
|
||||
|
||||
echo '.....';
|
||||
}
|
||||
public function messagedetail() {
|
||||
|
||||
// echo 'Ameye';
|
||||
|
||||
Reference in New Issue
Block a user