|
@@ -52,7 +52,7 @@ else {
|
|
|
|
|
|
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
|
|
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
|
|
|
|
|
|
- $sql = "select domain_name, extension, sms_message_uuid,start_stamp,from_numer,to_number,message,direction from v_sms_messages, v_domains, v_extensions where v_sms_messages.domain_uuid = v_domains.domain_uuid and v_sms_messages.extension_uuid = v_extensions.extension_uuid and v_domains.domain_uuid = '" . $domain_uuid . "' order by start_stamp";
|
|
|
|
|
|
+ $sql = "select domain_name, extension, sms_message_uuid,start_stamp,from_number,to_number,message,direction from v_sms_messages, v_domains, v_extensions where v_sms_messages.domain_uuid = v_domains.domain_uuid and v_sms_messages.extension_uuid = v_extensions.extension_uuid and v_domains.domain_uuid = '" . $domain_uuid . "' order by start_stamp";
|
|
error_log("SQL: " . print_r($sql,true));
|
|
error_log("SQL: " . print_r($sql,true));
|
|
$prep_statement = $db->prepare(check_sql($sql));
|
|
$prep_statement = $db->prepare(check_sql($sql));
|
|
$prep_statement->execute();
|
|
$prep_statement->execute();
|
|
@@ -124,7 +124,7 @@ else {
|
|
}
|
|
}
|
|
echo " <td valign='top' class='".$row_style[$c]."'>".$row['extension']." </td>\n";
|
|
echo " <td valign='top' class='".$row_style[$c]."'>".$row['extension']." </td>\n";
|
|
echo " <td valign='top' class='".$row_style[$c]."'>".$row['start_stamp']." </td>\n";
|
|
echo " <td valign='top' class='".$row_style[$c]."'>".$row['start_stamp']." </td>\n";
|
|
- echo " <td valign='top' class='".$row_style[$c]."'>".$row['from_numer']." </td>\n";
|
|
|
|
|
|
+ echo " <td valign='top' class='".$row_style[$c]."'>".$row['from_number']." </td>\n";
|
|
echo " <td valign='top' class='".$row_style[$c]."'>".$row['to_number']." </td>\n";
|
|
echo " <td valign='top' class='".$row_style[$c]."'>".$row['to_number']." </td>\n";
|
|
echo " <td valign='top' class='".$row_style[$c]."'>".$row['message']." </td>\n";
|
|
echo " <td valign='top' class='".$row_style[$c]."'>".$row['message']." </td>\n";
|
|
echo "</tr>\n";
|
|
echo "</tr>\n";
|
|
@@ -132,10 +132,10 @@ else {
|
|
} // end foreach
|
|
} // end foreach
|
|
unset($sql, $result, $row_count);
|
|
unset($sql, $result, $row_count);
|
|
} // end if
|
|
} // end if
|
|
-
|
|
|
|
|
|
+
|
|
echo "</table>\n";
|
|
echo "</table>\n";
|
|
echo "</form>\n";
|
|
echo "</form>\n";
|
|
|
|
|
|
//show the footer
|
|
//show the footer
|
|
require_once "resources/footer.php";
|
|
require_once "resources/footer.php";
|
|
-?>
|
|
|
|
|
|
+?>
|