diff --git a/ajax.php b/ajax.php
index 78c7c877..bc052352 100644
--- a/ajax.php
+++ b/ajax.php
@@ -141,4 +141,16 @@ if(isset($_GET['network_get_json_details'])){
}
echo json_encode($response);
+}
+
+if(isset($_POST['client_set_notes'])){
+ $client_id = intval($_POST['client_id']);
+ $notes = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['notes'])));
+
+ // Update notes
+ mysqli_query($mysqli, "UPDATE clients SET client_notes = '$notes' WHERE client_id = '$client_id'");
+
+ // Logging
+ mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Client', log_action = 'Modify', log_description = '$session_name modified client notes', log_ip = '$session_ip', log_user_agent = '$session_user_agent', log_created_at = NOW(), log_client_id = $client_id, log_user_id = $session_user_id, company_id = $session_company_id");
+
}
\ No newline at end of file
diff --git a/client_domain_edit_modal.php b/client_domain_edit_modal.php
index a475154e..9a3c0bff 100644
--- a/client_domain_edit_modal.php
+++ b/client_domain_edit_modal.php
@@ -72,6 +72,16 @@
+
+
diff --git a/client_domains.php b/client_domains.php
index 41c2c87c..94b7d38c 100644
--- a/client_domains.php
+++ b/client_domains.php
@@ -168,6 +168,7 @@ include("client_domain_add_modal.php");
document.getElementById("editDomainId").value = domain_id;
document.getElementById("editDomainName").value = domain.domain_name;
document.getElementById("editExpire").value = domain.domain_expire;
+ document.getElementById("editDomainIP").value = domain.domain_ip;
document.getElementById("editNameServers").value = domain.domain_name_servers;
document.getElementById("editMailServers").value = domain.domain_mail_servers;
document.getElementById("editRawWhois").value = domain.domain_raw_whois;
diff --git a/client_overview.php b/client_overview.php
index d9be2bbc..3520b7d8 100644
--- a/client_overview.php
+++ b/client_overview.php
@@ -5,7 +5,7 @@ $sql_contacts = mysqli_query($mysqli,"SELECT * FROM contacts LEFT JOIN departmen
$sql_vendors = mysqli_query($mysqli,"SELECT * FROM vendors WHERE vendor_client_id = $client_id AND company_id = $session_company_id ORDER BY vendor_updated_at DESC LIMIT 5");
$sql_documents = mysqli_query($mysqli, "SELECT * FROM documents WHERE document_client_id = $client_id AND documents.company_id = $session_company_id ORDER BY document_updated_at DESC LIMIT 5");
-
+
$sql_tickets = mysqli_query($mysqli, "SELECT * FROM tickets WHERE ticket_client_id = $client_id AND tickets.company_id = $session_company_id ORDER BY ticket_updated_at DESC LIMIT 5");
$sql_logins = mysqli_query($mysqli,"SELECT * FROM logins WHERE login_client_id = $client_id AND company_id = $session_company_id ORDER BY login_updated_at DESC LIMIT 5");
@@ -40,201 +40,193 @@ $sql_tickets_stale = mysqli_query($mysqli,"SELECT * FROM tickets
-
+ 0){ ?>
-
+
-
-
-
-
- Items Expiring
- 410
-
-
-
+
-
-
-
-
- Bookmarks
- 410
-
+
+
- 0){ ?>
+
-
-
-
-
-
Recent Contacts
-
-
-
- while($row = mysqli_fetch_array($sql_contacts)){
- $contact_id = $row['contact_id'];
- $contact_name = $row['contact_name'];
- $contact_title = $row['contact_title'];
- $contact_phone = formatPhoneNumber($row['contact_phone']);
- $contact_extension = $row['contact_extension'];
- $contact_mobile = formatPhoneNumber($row['contact_mobile']);
- $contact_email = $row['contact_email'];
- $client_id = $row['client_id'];
- $client_name = $row['client_name'];
- $department_name = $row['department_name'];
+
+
+
Recent Contacts
+
+
+
-
-
-
- |
- |
-
|
-
+ while($row = mysqli_fetch_array($sql_contacts)){
+ $contact_id = $row['contact_id'];
+ $contact_name = $row['contact_name'];
+ $contact_title = $row['contact_title'];
+ $contact_phone = formatPhoneNumber($row['contact_phone']);
+ $contact_extension = $row['contact_extension'];
+ $contact_mobile = formatPhoneNumber($row['contact_mobile']);
+ $contact_email = $row['contact_email'];
+ //$client_id = $row['client_id'];
+ //$client_name = $row['client_name'];
+ $department_name = $row['department_name'];
-
+ ?>
+
+
+
+ |
+ |
+
|
+
-
-
-
+
+
+
+
+>>>>>>> 7b816e0879511ef11bd8642294103cbeaa3bf01e
+
-
+
- 0){ ?>
+ 0){ ?>
-
+
-
-
-
-
Domains Expiring Soon (30d)
-
-
-
+
+
Domains Expiring Soon (30d)
+
+
+
-
- |
- |
-
+ while($row = mysqli_fetch_array($sql_domains_expiring)){
+ $domain_id = $row['domain_id'];
+ $domain_name = $row['domain_name'];
+ $domain_expire = $row['domain_expire'];
-
+ ?>
+
+ |
+ |
+
-
-
-
+
+
+
+
+
-
+
- 0){ ?>
+ 0){ ?>
-
-
-
-
Asset Warranties Expiring Soon (90d)
-
-
-
+
+
Asset Warranties Expiring Soon (90d)
+
+
+
-
- |
- |
-
+ while($row = mysqli_fetch_array($sql_asset_warranties_expiring)){
+ $asset_id = $row['asset_id'];
+ $asset_name = $row['asset_name'];
+ $asset_warranty_expire = $row['asset_warranty_expire'];
-
+ ?>
+
+ |
+ |
+
-
-
-
+
+
+
+
+
-
+
- 0){ ?>
+ 0){ ?>
-
-
-
-
Stale Tickets (14d)
-
-
-
+
+
Stale Tickets (14d)
+
+
+
-
- |
- |
- |
-
+ while($row = mysqli_fetch_array($sql_tickets_stale)){
+ $ticket_id = $row['ticket_id'];
+ $ticket_prefix = $row['ticket_prefix'];
+ $ticket_number = $row['ticket_number'];
+ $ticket_subject = $row['ticket_subject'];
+ $ticket_created_at = $row['ticket_created_at'];
-
+ ?>
+
+ |
+ |
+ |
+
-
-
-
+
+
+
+
+
-
+
-
\ No newline at end of file
+
+
+
diff --git a/db.sql b/db.sql
index 81307296..078d3db5 100644
--- a/db.sql
+++ b/db.sql
@@ -431,9 +431,10 @@ CREATE TABLE `domains` (
`domain_id` int(11) NOT NULL AUTO_INCREMENT,
`domain_name` varchar(200) NOT NULL,
`domain_expire` date DEFAULT NULL,
- `domain_name_servers` VARCHAR(255) NULL DEFAULT NULL,
- `domain_mail_servers` VARCHAR(255) NULL DEFAULT NULL,
- `domain_raw_whois` TEXT NULL DEFAULT NULL,
+ `domain_ip` varchar(255) DEFAULT NULL,
+ `domain_name_servers` varchar(255) DEFAULT NULL,
+ `domain_mail_servers` varchar(255) DEFAULT NULL,
+ `domain_raw_whois` text DEFAULT NULL,
`domain_created_at` datetime NOT NULL,
`domain_updated_at` datetime DEFAULT NULL,
`domain_archived_at` datetime DEFAULT NULL,
diff --git a/portal/check_login.php b/portal/check_login.php
new file mode 100644
index 00000000..41667071
--- /dev/null
+++ b/portal/check_login.php
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
| Client Portal
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Logged in as
+
+
+
My open tickets
+
+
+
+ | Subject |
+ State |
+
+
+
+
+ ";
+ echo " $ticket[ticket_subject] | ";
+ echo "$ticket[ticket_status] | ";
+ echo "";
+ }
+ ?>
+
+
+
\ No newline at end of file
diff --git a/portal/login.php b/portal/login.php
new file mode 100644
index 00000000..95209987
--- /dev/null
+++ b/portal/login.php
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
| Client Portal Login
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Client Portal Login
+
+
+
+
+
+
diff --git a/portal/ticket.php b/portal/ticket.php
new file mode 100644
index 00000000..f5a60f2f
--- /dev/null
+++ b/portal/ticket.php
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
| Client Portal - Tickets
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Ticket Details -
+
State:
+
Priority:
+
+
+
+
+
+
+
+
+
+
+
+
+
+