<?php if (isset($title) && trim($title) != '') { echo "<title>" . $title . "</title>"; } ?> <link href="<?php echo base_url(); ?> system/application/views/css/acrav.css" rel="stylesheet" type="text/css" /> <body topmargin="0" class="mainbg"> <?php #********************************************************************************* # Displays details required in a popup #********************************************************************************* $table_HTML = ''; #=============================================================================================== # Display this popup to show the employee data #=============================================================================================== if ($type == 'employee') { $table_HTML = "<table width='100%' border='0' cellspacing='0' cellpadding='4'>" . "<tr>" . " <td colspan='2' class='bottomtableborder_heading'>User Details</td>" . "</tr>" . "<tr><td width='1%' nowrap>Salutation:</td><td width='99%'><b>" . $userdetails['salutation'] . "</b></td></tr>" . "<tr><td nowrap>First Name:</td><td><b>" . $userdetails['firstname'] . "</b></td></tr>" . "<tr><td nowrap>Middle Name:</td><td><b>" . $userdetails['middlename'] . "</b></td></tr>" . "<tr><td nowrap>Last Name:</td><td><b>" . $userdetails['lastname'] . "</b></td></tr>" . "<tr><td nowrap>User Name:</td><td><b>" . $userdetails['username'] . "</b></td></tr>" . "<tr><td nowrap>Gender:</td><td><b>" . $userdetails['gender'] . "</b></td></tr>" . "<tr><td nowrap>Job Title:</td><td><b>" . $userdetails['jobtitle'] . "</b></td></tr>" . "<tr><td nowrap>Email Address:</td><td><b>" . $userdetails['emailaddress'] . "</b></td></tr>" . "<tr><td nowrap>Telephone:</td><td><b>" . $userdetails['telephone'] . "</b></td></tr>" . "<tr><td nowrap>User Type:</td><td><b>" . format_user_type($userdetails['usertype']) . "</b></td></tr>" . "</table>"; } elseif ($type == 'payment') { $table_HTML = "<table width='100%' border='0' cellspacing='0' cellpadding='4'>" . "<tr>" . " <td colspan='2' class='bottomtableborder_heading'>Payment Details</td>" . "</tr>" . "<tr><td nowrap>Billing Address:</td><td><b>" . $userdetails['billingaddress'] . "</b></td></tr>" . "<tr><td nowrap>Bank Name:</td><td><b>" . $userdetails['companybank'] . "</b></td></tr>" . "<tr><td nowrap>Bank Account:</td><td><b>" . $userdetails['bankaccount'] . "</b></td></tr>" . "<tr><td nowrap>Cashier First Name:</td><td><b>" . $userdetails['fname'] . "</b></td></tr>" . "<tr><td nowrap>Cashier Last Name:</td><td><b>" . $userdetails['lname'] . "</b></td></tr>" . "<tr><td nowrap>Email Address:</td><td><b>" . $userdetails['emailaddress'] . "</b></td></tr>" . "<tr><td nowrap>Telephone Number:</td><td><b>" . $userdetails['telephone'] . "</b></td></tr>" . "<tr><td nowrap>Payment Terms:</td><td><b>" . $userdetails['paymentterms'] . "</b></td></tr>" . "</table>"; } echo $table_HTML; ?> </body>
?> ');">Delete</a></td> <td><?php echo $user['firstname'] . ' ' . $user['lastname']; ?> </td> <td><?php echo $user['emailaddress']; ?> </td> <td><?php echo $user['telephone']; ?> </td> <td><?php echo format_user_type($user['usertype']); ?> <br />(<a href="javascript:void(0)" onclick="openWindow('<?php echo base_url(); ?> index.php/companyprofile/users/view_rights/value/<?php echo $user['usertype']; ?> ')">View Rights</a>)</td> </tr> <?php $counter++; } ?> </table> </div></td>
<td align="left" valign="top" class="header"> <!-- start MAROON header !--> <div style="height:50px; overflow: visible;"> <table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr style="height:50px"> <td width="14%"> </td> <td align="left" width="84%" valign="middle"> <div id="cur_user"> <a href="#" class="whitetext"> <?php if (isset($userid)) { echo "<b>" . $names; if (!isset($isnew)) { echo " ( " . format_user_type($usertype) . " | " . $this->session->userdata('companyname') . " )</b>"; } } else { echo " "; } ?> </a> </div> <div id="top_links"> <ul> <!-- start home link !--> <li> <a href="<?php if (!isset($isnew)) { if ($this->session->userdata('isadmin') == 'N') {
$table_HTML = "<table width='100%' border='0' cellspacing='0' cellpadding='4'>" . "<tr>" . " <td colspan='4'><hr /></td>" . "</tr>" . "<tr>" . "<td> </td>" . "<td nowrap><b>Page</b></td>" . "<td nowrap><b>Help Topic</b></td>" . "<td nowrap><b>Help Content</b></td>" . "</tr>" . "<tr>" . "<td colspan='4'><hr /></td>" . "</tr>"; } $counter = 0; foreach ($searchdata as $row) { if (isset($inpop)) { $table_HTML .= "<tr style='" . get_row_color($counter, 2) . "'><td nowrap><a href=\"javascript:showFormLayer('" . base_url() . "index.php/settings/acravhelp/load_form/id/" . $row['id'] . "/ispop/Y/layername/" . $row['id'] . "_div','" . $row['id'] . "_div')\">" . $row['topic'] . "</a><br>" . "<div id='" . $row['id'] . "_div' style='visibility:hidden; height:0px'></div>" . "</td></tr>"; } else { $table_HTML .= "<tr style='" . get_row_color($counter, 2) . "'>" . "<td width='1%' valign='top' nowrap>[ <a href='" . base_url() . "index.php/settings/acravhelp/load_form/id/" . $row['id'] . "'>Edit</a>" . " | <a href=\"javascript:deleteEntity('" . base_url() . "index.php/settings/acravhelp/delete_help_data/id/" . $row['id'] . "','help topic','" . $row['topic'] . "');\">Delete</a> ]</td>" . "<td width='1%' valign='top'>" . $row['page'] . "</td>" . "<td width='1%' valign='top'>" . $row['topic'] . "</td>" . "<td width='97%' valign='top'>" . format_to_length($row['content'], 200) . "</td>" . "</tr>"; } $counter++; } $table_HTML .= "</table>"; } else { if ($area == 'searchdetails') { $table_HTML = "<table width='100%' border='0' cellspacing='0' cellpadding='4'>" . "<tr><td><input name='closediv' type='button' id='closediv' value='Close' " . "onclick=\"hideDiv('" . $layername . "')\" class='button'/></td></tr>" . "<tr><td>" . $helpdetails['content'] . "</td></tr>" . "</table>"; } else { if ($area == 'templaterights') { $table_HTML = "<table width='100%' border='0' cellspacing='0' cellpadding='4'>" . "<tr><td><b>User Rights for Template \"" . format_user_type($value) . "\"</b></td></tr>"; $i = 0; #Show the rights foreach ($rights as $rightdefn) { $table_HTML .= "<tr style='" . get_row_color($i, 2) . "'><td>" . $rightdefn['definition'] . "</td></tr>"; $i++; } $table_HTML .= "</table>"; } } } } } echo $table_HTML;
function generate_new_co_user_email($email_content) { $msg = "Dear " . $email_content['firstname'] . "," . "<br><br>Your account on Automated Cargo Route and Vehicle Management (ACRAV) has been created by " . $email_content['adminname'] . "." . "<br>Please click the link below (or copy and paste the complete URL into your browser) and " . "login to complete your profile to start using ACRAV:" . "<br><br>" . base_url() . "index.php/admin/confirm_company_user/" . str_replace('=', '_', $email_content['confirmationid']) . "<br><br>These are your login details:" . "<br>User Name: " . $email_content['username'] . "<br>Password: "******"<br><br>These are your registration details:" . "<br>Salutation: " . $email_content['salutation'] . "<br>First Name: " . $email_content['firstname'] . "<br>Middle Name: " . $email_content['middlename'] . "<br>Last Name: " . $email_content['lastname'] . "<br>Gender: " . $email_content['gender'] . "<br>Email Address: " . $email_content['emailaddress'] . "<br>Phone Number: " . $email_content['telephone'] . "<br>Job Title: " . $email_content['jobtitle'] . "<br>Account Expiry Date: " . $email_content['passwordexpirydate'] . "<br>Permission Group: " . format_user_type($email_content['usertype']) . "<br><br>Best Regards, " . "<br>The ACRAV Team " . "<br><i>Track your cargo.. wherever!</i>" . "<br>----------------------------------------------------------" . "<br><br>MESSAGE ID: " . $email_content['messageid']; return $msg; }
?> "><img src='<?php echo BASE_IMAGE_URL; ?> logo_main.png' alt='Click to go back to your dashboard' border='0'/></a></td> <td width="1%" valign="top" nowrap="nowrap" align="right" class="datetext"><?php echo date("l, F d, Y g:ia T"); ?> </td> </tr> <tr> <td nowrap="nowrap" align="right" valign="bottom"><?php if (isset($userid)) { echo "Logged in as: <b>" . $names; if (!isset($isnew)) { echo " (<i>" . format_user_type($usertype) . "</i> )</b>"; } echo "<br><br>"; } else { echo " "; } ?> </td> </tr> </table></td> </tr> <?php if (isset($userid) && isset($iscomplete) && $iscomplete == 'Y') { ?> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0">