|
127 | 127 | <select class="form-select" name="sort" onchange="this.form.submit()"> |
128 | 128 | <option value="strCompanyName ASC" <cfif session.cust_sort eq "strCompanyName ASC">selected</cfif>>Customer name A -> Z</option> |
129 | 129 | <option value="strCompanyName DESC" <cfif session.cust_sort eq "strCompanyName DESC">selected</cfif>>Customer name Z -> A</option> |
| 130 | + <option value="strContactPerson ASC" <cfif session.cust_sort eq "strContactPerson ASC">selected</cfif>>Contact name A -> Z</option> |
| 131 | + <option value="strContactPerson DESC" <cfif session.cust_sort eq "strContactPerson DESC">selected</cfif>>Contact name Z -> A</option> |
| 132 | + <option value="strCity ASC" <cfif session.cust_sort eq "strCity ASC">selected</cfif>>City A -> Z</option> |
| 133 | + <option value="strCity DESC" <cfif session.cust_sort eq "strCity DESC">selected</cfif>>City Z -> A</option> |
| 134 | + <option value="dtmInsertDate DESC" <cfif session.cust_sort eq "dtmInsertDate DESC">selected</cfif>>Registered (newest first)</option> |
| 135 | + <option value="dtmInsertDate ASC" <cfif session.cust_sort eq "dtmInsertDate ASC">selected</cfif>>Registered (oldest first)</option> |
130 | 136 | </select> |
131 | 137 | </div> |
132 | 138 | </div> |
|
143 | 149 | <table class="table table-vcenter table-mobile-md card-table"> |
144 | 150 | <thead> |
145 | 151 | <tr> |
146 | | - <th width="20%">Company</th> |
| 152 | + <th width="25%">Company</th> |
147 | 153 | <th width="20%">Contact</th> |
148 | | - <th width="20%">City</th> |
149 | | - <th width="20%">Phone</th> |
150 | | - <th width="15%"></th> |
| 154 | + <th width="15%">City</th> |
| 155 | + <th width="15%">Phone</th> |
| 156 | + <th width="10%">Registered</th> |
| 157 | + <th width="15%">Actions</th> |
151 | 158 | </tr> |
152 | 159 | </thead> |
153 | 160 | <tbody> |
|
167 | 174 | <a href="#application.mainURL#/sysadmin/customers/details/#qCustomers.intCustomerID#"> |
168 | 175 | <div class="flex-fill"> |
169 | 176 | <cfif len(trim(qCustomers.strCompanyName))> |
170 | | - <div class="font-weight-medium">#qCustomers.strCompanyName#</div> |
| 177 | + <div class="font-weight-medium">#qCustomers.strCompanyName# <cfif qCustomers.intCustomerID eq session.customer_id>(SysAdmin)</cfif></div> |
171 | 178 | <cfelse> |
172 | 179 | <div class="font-weight-medium">#qCustomers.strContactPerson# (Private)</div> |
173 | 180 | </cfif> |
|
185 | 192 | <td data-label="Phone"> |
186 | 193 | #qCustomers.strPhone# |
187 | 194 | </td> |
| 195 | + <td data-label="Registered"> |
| 196 | + #lsDateFormat(qCustomers.dtmInsertDate)# |
| 197 | + </td> |
188 | 198 | <td> |
189 | 199 | <div class="btn-list flex-nowrap"> |
190 | 200 | <a href="#application.mainURL#/sysadmin/customers/edit/#qCustomers.intCustomerID#" class="btn"> |
191 | 201 | Edit |
192 | 202 | </a> |
193 | | - <a href="#application.mainURL#/sysadm/customers?logincustomer=#qCustomers.intCustomerID#" class="btn" data-bs-toggle="tooltip" data-bs-placement="top" title="Login as customer" onclick="return confirm('You are about to leave your sysadmin session and log in as this customer. Do you want to proceed?')"> |
194 | | - Login |
195 | | - </a> |
| 203 | + <cfif qCustomers.intCustomerID neq session.customer_id> |
| 204 | + <a href="#application.mainURL#/sysadm/customers?logincustomer=#qCustomers.intCustomerID#" class="btn" data-bs-toggle="tooltip" data-bs-placement="top" title="Login as customer" onclick="return confirm('You are about to leave your sysadmin session and log in as this customer. Do you want to proceed?')"> |
| 205 | + Login |
| 206 | + </a> |
| 207 | + </cfif> |
196 | 208 | </div> |
197 | 209 | </td> |
198 | 210 | </tr> |
|
0 commit comments