<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
    <title><?php echo APP_NAME ; ?> Portal</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta http-equiv='Pragma' content='no-cache'>
    <meta http-equiv='Expires' content='Sat, 01 Jan 2000 06:00:00 GMT'>
    <meta http-equiv='Cache-Control' content='no-store, no-cache, must-revalidate, max-age=0'>
    <link rel="shortcut icon" href="image/eem-logo.png" />
    <link href="<?php echo Util::asset('css/font-awesome.min.css'); ?>" rel="stylesheet" type="text/css">
    <link href="<?php echo Util::asset('css/style.css'); ?>" rel="stylesheet" type="text/css">
    <link href="<?php echo Util::asset('css/bootstrap-theme.css'); ?>" rel="stylesheet" type="text/css">
    <link href="<?php echo Util::asset('css/claim.css'); ?>" rel="stylesheet" type="text/css">
    <link href="<?php echo Util::asset('css/jquery.fileupload.css'); ?>" rel="stylesheet" type="text/css">
    <link href="<?php echo Util::asset('css/bootstrap.min.css'); ?>" rel="stylesheet" type="text/css">
    <link href="<?php echo Util::asset('css/bootstrap-timepicker.min.css'); ?>" rel="stylesheet" type="text/css">
    <link href="<?php echo Util::asset('css/select2.min.css'); ?>" rel="stylesheet" type="text/css">
    <link href="<?php echo Util::asset('css/bootstrap4-toggle.min.css'); ?>" rel="stylesheet" type="text/css">
    <link href="<?php echo Util::asset('css/font-awesome.min.css'); ?>" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="<?php echo Util::asset('css/jquery-ui-1.12.1.css'); ?>" />
    <link href="<?php echo Util::asset('css/datepicker.css'); ?>" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="<?php echo Util::asset('css/dragndrop.table.columns.css'); ?>" type="text/css" />

    <script type="text/javascript" src="<?php echo Util::asset('js/sweetalert2@11.js'); ?>"></script>
    <!-- <script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script> -->
    <script type="text/javascript" src="<?php echo Util::asset('js/jquery-2.2.4.min.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo Util::asset('js/select2.min.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo Util::asset('js/bootstrap4-toggle.min.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo Util::asset('js/jquery-ui-1.12.1.min.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo Util::asset('js/bootstrap.min.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo Util::asset('js/sbg-upload.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo Util::asset('js/sbg-util.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo Util::asset('js/bootstrap-timepicker.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo Util::asset('js/moment.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo Util::asset('js/jquery.formatCurrency-1.4.0.min.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo Util::asset('js/paynowqr.min.js'); ?>"></script>
    <!-- <script type="text/javascript" src="<?php echo Util::asset('js/jquery.blockUI.min.js'); ?>"></script> -->
    <script src="<?php echo Util::asset('js/filter.table.columns.js'); ?>" type="text/javascript"></script>
    <script type="text/javascript" src="<?php echo Util::asset('js/xlsx.full.min.js'); ?>"></script>

    <style>
        .loading-modal {
            display: none;
            position: fixed;
            z-index: 9999;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .loading-screen {
            width: 100%;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .loader {
            border: 8px solid #3498db;
            border-radius: 50%;
            border-top: 8px solid #f3f3f3;
            width: 60px;
            height: 60px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .swal2-confirm, .swal2-cancel {
            min-width: 150px !important;
            padding: 10px 20px !important;
        }
    </style>
</head>

<body class="skin-blue" style="background-color: #f9f9f9">
    <header class="header">
        <!-- <img src="image/logonew.jpg" class="logo" alt="Company Logo" /> -->
        <img src="<?php echo Util::getLogo($_SESSION[SE_ORGID]); ?>" class="logo" alt="Company Logo" style="max-height: 100px;object-fit: contain;" />
        <nav class="navbar  navbar-static-top" role="navigation">
            <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <div class="navbar-left">
                <ul class="nav navbar-nav">
                    <h1 id='contentTitle'> Home</h1>
                </ul>
            </div>
            <div class="navbar-right">
                <ul class="nav navbar-nav">
                    <li class="dropdown" title="Change Password">
                        <a href="javascript:showChangePassword()">
                            <i class="fa fa-lock fa-lg"></i>
                        </a>
                    </li>

                    <li class="dropdown">
                        <a href="javascript:onLogout()" id="btnLogout">
                            <i class="fa fa-power-off"></i>
                            <span style="color:white">Logout</span>
                        </a>

                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <div class="wrapper row-offcanvas row-offcanvas-left">
        <!-- Left side column. contains the logo and sidebar -->
        <aside class="left-side sidebar-offcanvas" role="navigation" style="background-color: #eb8015;">
            <!-- sidebar: style can be found in sidebar.less -->
            <section class="sidebar" style="background-color: #eb8015;">
                <!-- Sidebar user panel -->
                <div class="user-panel">
                    <div class="pull-left image">
                        <img src="image/staff_image.png" class="img-circle" alt="Staff Image" />
                    </div>
                    <div class="pull-left info">
                        <p><?php echo $this->getUserProfile()[UserTable::C_NAME]; ?></p>
                        <a href="#" onclick='javascript:showProfile(empId,this)'>Profile</a>
                    </div>
                </div>

                <!-- sidebar menu: : style can be found in sidebar.less -->
                <ul class="sidebar-menu" style="background-color: #eb8015;">
                    <?php if ($rights[UserRight::C_MARKETING_ENTITY][UserRight::C_ENABLE]){ ?>
                        <li>
                            <a href="#menu_marketing" data-toggle="collapse">
                                <i class="fa fa-check-square-o"></i> <span style="display: inline-flex;width: 140px;">Marketing</span><i class="fa fa-angle-down fa-lg" style="text-align: right;"></i>
                            </a>
                        </li>
                        <li id="menu_marketing" class="collapse" style="padding-left: 20px; background-color: #c06810;">
                            <?php if ($rights[UserRight::C_MARKETING_ENTITY][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("Telemarketing", "Telemarketing", Command::TelemarketingView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Entity</span>
                                </a>
                                <a href="<?php echo $this->createMenuFunc("Telemarketing", "Account", Command::TelemarketingAccountView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Account</span>
                                </a>
                            <?php } ?>
                        </li>
                    <?php } ?>
                    <?php if ($rights[UserRight::C_SALES_ACCOUNT][UserRight::C_ENABLE] || $rights[UserRight::C_SALES_SUSPECT][UserRight::C_ENABLE] || $rights[UserRight::C_SALES_PROSPECT][UserRight::C_ENABLE] || $rights[UserRight::C_SALES_OPPORTUNITY][UserRight::C_ENABLE]){ ?>
                        <li>
                            <a href="#menu_sales" data-toggle="collapse">
                                <i class="fa fa-file-text"></i> <span style="display: inline-flex;width: 140px;">Sales</span><i class="fa fa-angle-down fa-lg" style="text-align: right;"></i>
                            </a>
                        </li>
                        <li id="menu_sales" class="collapse" style="padding-left: 20px;">
                            <?php if ($rights[UserRight::C_SALES_ACCOUNT][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("Telemarketing", "Telemarketing", Command::TelemarketingView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Account</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_SALES_SUSPECT][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("Telemarketing", "Telemarketing", Command::TelemarketingView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Suspect</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_SALES_PROSPECT][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("Telemarketing", "Telemarketing", Command::TelemarketingView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Prospect</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_SALES_OPPORTUNITY][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("Telemarketing", "Telemarketing", Command::TelemarketingView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Opportunity</span>
                                </a>
                            <?php } ?>
                        </li>
                    <?php } ?>
                    <?php if ($rights[UserRight::C_INTEGRATION_CUSTOMER][UserRight::C_ENABLE] || $rights[UserRight::C_INTEGRATION_PROSPECT][UserRight::C_ENABLE] || $rights[UserRight::C_INTEGRATION_EXPORT_DATA][UserRight::C_ENABLE] || $rights[UserRight::C_INTEGRATION_DESTINATION_MASTER][UserRight::C_ENABLE]){ ?>
                        <li>
                            <a href="#menu_integration" data-toggle="collapse">
                                <i class="fa fa-caret-square-o-down"></i> <span style="display: inline-flex;width: 140px;">Integration</span><i class="fa fa-angle-down fa-lg" style="text-align: right;"></i>
                            </a>
                        </li>
                        <li id="menu_integration" class="collapse" style="padding-left: 20px;">
                            <?php if ($rights[UserRight::C_INTEGRATION_CUSTOMER][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("Customer", "Customer", Command::CustomerView) ?>">
                                    <i class="fa fa-user"></i> <span>Customer</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_INTEGRATION_PROSPECT][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("Prospect", "Prospect", Command::ProspectView) ?>">
                                    <i class="fa fa-user"></i> <span>Prospect</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_INTEGRATION_EXPORT_DATA][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("ExportCustomerHistory", "ExportCustomerHistory", Command::ExportCustomerView) ?>">
                                    <i class="fa fa-upload"></i> <span>Export Data</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_INTEGRATION_DESTINATION_MASTER][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("Destination", "Destination", Command::DestinationView) ?>">
                                    <i class="fa fa-gear"></i> <span>Destination Master</span>
                                </a>
                            <?php } ?>
                        </li>
                    <?php } ?>
                    <?php if ($rights[UserRight::C_CORPORATE_GIFT_COMPANY_PROFILE][UserRight::C_ENABLE] || $rights[UserRight::C_ADMIN_USER][UserRight::C_ENABLE] || $rights[UserRight::C_ADMIN_USER_GROUP][UserRight::C_ENABLE] || $rights[UserRight::C_ADMIN_INDUSTRY][UserRight::C_ENABLE] || $rights[UserRight::C_ADMIN_BUSINESS_SECTOR][UserRight::C_ENABLE] || $rights[UserRight::C_ADMIN_SOFTWARE][UserRight::C_ENABLE]){ ?>
                        <li>
                            <a href="#menu_admin" data-toggle="collapse">
                                <i class="fa fa-user"></i> <span style="display: inline-flex;width: 140px;">Admin</span><i class="fa fa-angle-down fa-lg" style="text-align: right;"></i>
                            </a>
                        </li>
                        <li id="menu_admin" class="collapse" style="padding-left: 20px;">
                            <?php if ($rights[UserRight::C_ADMIN_USER][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("User", "User", Command::UserView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>User</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_ADMIN_USER_GROUP][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("UserGroup", "UserGroup", Command::UserGroupView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>User Group</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_ADMIN_DEPARTMENT][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("DepartmentGroup", "DepartmentGroup", Command::DepartmentView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Department Group</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_ADMIN_INDUSTRY][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("Industry", "Industry", Command::IndustryView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Industry</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_ADMIN_BUSINESS_SECTOR][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("BusinessSector", "BusinessSector", Command::BusinessSectorView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Business Sector</span>
                                </a>
                            <?php } ?>
                            <!-- changes -->
                            <?php if ($rights[UserRight::C_ADMIN_BUSINESS_NATURE][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("BusinessNature", "BusinessNature", Command::BusinessNatureView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Business Nature</span>
                                </a>
                            <?php } ?>
                            <!-- changes ended -->
                            <?php if ($rights[UserRight::C_ADMIN_SOFTWARE][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("Software", "Software", Command::SoftwareView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Software</span>
                                </a>
                            <?php } ?>
                        </li>
                    <?php } ?>
                    <?php if ($rights[UserRight::C_REPORT_CUSTOMER_CONTACT_LISTING][UserRight::C_ENABLE] || 
                                $rights[UserRight::C_REPORT_CORPORATE_GIFT_SUMMARY][UserRight::C_ENABLE] ||
                                $rights[UserRight::C_REPORT_CORPORATE_GIFT_INQUIRY][UserRight::C_ENABLE] ||
                                $rights[UserRight::C_REPORT_CORPORATE_GIFT_HISTORY][UserRight::C_ENABLE] ||
                                $rights[UserRight::C_REPORT_CONVERSATION][UserRight::C_ENABLE] ||
                                $rights[UserRight::C_REPORT_ALL_ACCOUNT][UserRight::C_ENABLE]
                            ){ ?>
                        <li>
                            <a href="#menu_report" data-toggle="collapse">
                                <i class="fa fa-file"></i> <span style="display: inline-flex;width: 140px;">Report</span><i class="fa fa-angle-down fa-lg" style="text-align: right;"></i>
                            </a>
                        </li>
                        <li id="menu_report" class="collapse" style="padding-left: 20px;">
                            <?php if ($rights[UserRight::C_REPORT_ALL_ACCOUNT][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("AllAccountReport", "AllAccountReport", Command::AllAccountReportView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>All Account Report</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_REPORT_CUSTOMER_CONTACT_LISTING][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("CustomerContactListing", "CustomerContactListing", Command::CustomerContactListingView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Customer Contact Listing</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_REPORT_CORPORATE_GIFT_SUMMARY][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("CorporateGiftSummaryReport", "CorporateGiftSummaryReport", Command::CorporateGiftSummaryView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Corporate Gift Summary</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_REPORT_CORPORATE_GIFT_INQUIRY][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("CorporateGiftInquiryReport", "CorporateGiftInquiryReport", Command::CorporateGiftInquiryView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Corporate Gift Inquiry</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_REPORT_CORPORATE_GIFT_HISTORY][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("CorporateGiftHistoryReport", "CorporateGiftHistoryReport", Command::CorporateGiftHistoryView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Corporate Gift History</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_REPORT_CONVERSATION][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("ConversationReport", "ConversationReport", Command::ConversationReportView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Conversation Report</span>
                                </a>
                            <?php } ?>
                        </li>
                    <?php } ?>
                    <?php if ($rights[UserRight::C_CORPORATE_GIFT_COMPANY_PROFILE][UserRight::C_ENABLE]||
                                $rights[UserRight::C_CORPORATE_GIFT_LIST][UserRight::C_ENABLE]||
                                $rights[UserRight::C_CORPORATE_GIFT_MASTER][UserRight::C_ENABLE]){ ?>
                        <li>
                            <a href="#menu_gift" data-toggle="collapse">
                                <i class="fa fa-file"></i> <span style="display: inline-flex;width: 140px;">Corporate Gift</span><i class="fa fa-angle-down fa-lg" style="text-align: right;"></i>
                            </a>
                        </li>
                        <li id="menu_gift" class="collapse" style="padding-left: 20px;">
                            <?php if ($rights[UserRight::C_CORPORATE_GIFT_COMPANY_PROFILE][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("CompanyProfile", "CompanyProfile", Command::CompanyProfileView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Company Profile</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_CORPORATE_GIFT_LIST][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("SendCorporateGiftList", "SendCorporateGiftList", Command::SendCorporateGiftListView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Send Corporate Gift List</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_CORPORATE_GIFT_MASTER][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("CorporateGiftMaster", "CorporateGiftMaster", Command::CorporateGiftMasterView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Corporate Gift Master</span>
                                </a>
                            <?php } ?>
                        </li>
                    <?php } ?>
                    <?php if ($rights[UserRight::C_CAMPAIGN_COMPANY_PROFILE][UserRight::C_ENABLE]||
                                $rights[UserRight::C_CAMPAIGN_LIST][UserRight::C_ENABLE]||
                                $rights[UserRight::C_CAMPAIGN_MASTER][UserRight::C_ENABLE]){ ?>
                        <li>
                            <a href="#menu_campaign" data-toggle="collapse">
                                <i class="fa fa-file"></i> <span style="display: inline-flex;width: 140px;">Campaign</span><i class="fa fa-angle-down fa-lg" style="text-align: right;"></i>
                            </a>
                        </li>
                        <li id="menu_campaign" class="collapse" style="padding-left: 20px;">
                            <?php if ($rights[UserRight::C_CAMPAIGN_COMPANY_PROFILE][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("CampaignProfile", "CampaignProfile", Command::CampaignProfileView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Campaign Profile</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_CAMPAIGN_LIST][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("SendCampaignList", "SendCampaignList", Command::SendCampaignListView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Send Campaign List</span>
                                </a>
                            <?php } ?>
                            <?php if ($rights[UserRight::C_CAMPAIGN_MASTER][UserRight::C_ENABLE]){ ?>
                                <a href="<?php echo $this->createMenuFunc("CampaignMaster", "CampaignMaster", Command::CampaignMasterView) ?>">
                                    <i class="fa fa-chevron-right"></i> <span>Campaign Master</span>
                                </a>
                            <?php } ?>
                        </li>
                    <?php } ?>
                </ul>
            </section>
            <!-- /.sidebar -->
        </aside>

        <!-- Right side column. Contains the navbar and content of the page -->
        <aside class="right-side">
            <!-- Content Header (Page header) -->
            <div id='actionsMenu'>
            </div>
            <!-- <div id='exportExcelButton' class="content-header" style="width:20%;"></div> -->

            <!-- Main content -->
            <section class="content" style="padding-top: 0px;overflow:auto;">
                <div>
                </div>
                <?php //echo $this->getHomeInfo(); 
                ?>
            </section><!-- /.content -->
        </aside><!-- /.right-side -->
    </div><!-- ./wrapper -->
    <input type="hidden" id="txtNeedChangePassword" value="0" />
    <input type="hidden" id="txtMaxPasswordAge" value="99999" />
    <div class="modal fade" id="sbg-change-pwd" name="sbg-change-pwd" data-toggle="modal" data-backdrop="static" data-keyboard="false">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                    <h4 class="modal-title">Change Password</h4>
                </div>
                <div class="modal-body">
                    <div id="lblChangePwd">
                    </div>
                    <div class="input-group">
                        <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
                        <input class="form-control" placeholder="Old Password" name="txtOldPwd" id="txtOldPwd" type="password" value=""></input>
                    </div>
                    <div class="input-group">
                        <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
                        <input class="form-control" placeholder="New Password" name="txtNewPwd1" id="txtNewPwd1" type="password" value=""></input>
                    </div>
                    <div class="input-group">
                        <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
                        <input class="form-control" placeholder="Confirm New Password" name="txtNewPwd2" id="txtNewPwd2" type="password" value=""></input>
                    </div>
                    <br>
                    <div>
                        <font color="red">The password has to be at least minimal 8 characters, have minimal of 1 uppercase letter, 1 lowercase letter and 1 numeric letter.</font>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal" id="btnChangePwdCancel">Cancel</button>
                    <button type="button" class="btn btn-primary" id="btnChangePwdOk" name="btnChangePwdOk" onclick="return onChangePassword();">Ok</button>
                </div>
            </div>
        </div>
    </div>

    <!-- Loading Modal -->
    <div class="loading-modal">
        <div class="loading-screen">
            <div class="loader"></div>
        </div>
    </div>

    <script src="<?php echo Util::asset('js/dragndrop.table.columns.js'); ?>" type="text/javascript"></script>
    <script>
        $('.table-hover').dragableColumns({
            drag: true,
            dragClass: 'drag',
            overClass: 'over',
            movedContainerSelector: '.dnd-moved'
        });
    </script>
</body>

</html>

<script type="text/javascript">
    var home_url            = "<?php echo Util::convertLink("Home"); ?>";
    var user_url            = "<?php echo Util::convertLink("User"); ?>";
    var department_url      = "<?php echo Util::convertLink("DepartmentGroup"); ?>";
    var industry_url        = "<?php echo Util::convertLink("Industry"); ?>";
    var business_sector_url = "<?php echo Util::convertLink("BusinessSector"); ?>";
    var business_nature_url = "<?php echo Util::convertLink("BusinessNature"); ?>";
    var software_url        = "<?php echo Util::convertLink("Software"); ?>";
    var destination_url     = "<?php echo Util::convertLink("Destination"); ?>";
    //company profile
    var company_profile_url        = "<?php echo Util::convertLink("CompanyProfile"); ?>";
    var company_profile_entry_url  = "<?php echo Util::convertLink("CompanyProfileEntry"); ?>";
    //customer
    var customer_url        = "<?php echo Util::convertLink("Customer"); ?>";
    var customer_entry_url  = "<?php echo Util::convertLink("CustomerEntry"); ?>";
    var exportcustomer_url  = "<?php echo Util::convertLink("ExportCustomerHistory"); ?>";
    var submitschedule_url  = "<?php echo Util::convertLink("SubmitSchedule"); ?>";
    //usergroup
    var user_group_url       = "<?php echo Util::convertLink("UserGroup"); ?>";
    var user_group_entry_url = "<?php echo Util::convertLink("UserGroupEntry"); ?>";
    //prospect
    var prospect_url        = "<?php echo Util::convertLink("Prospect"); ?>";
    var prospect_entry_url  = "<?php echo Util::convertLink("ProspectEntry"); ?>";

    //telemarketing
    var telemarketing_url   = "<?php echo Util::convertLink("Telemarketing"); ?>";

    //report
    var customercontactlisting_url  = "<?php echo Util::convertLink("CustomerContactListing"); ?>";
    var corporate_gift_url          = "<?php echo Util::convertLink("CorporateGiftMaster"); ?>";
    var corporate_gift_entry_url    = "<?php echo Util::convertLink("CorporateGiftMasterEntry"); ?>";
    var corporate_gift_summary_url  = "<?php echo Util::convertLink("CorporateGiftSummaryReport"); ?>";
    var corporate_gift_inquiry_url  = "<?php echo Util::convertLink("CorporateGiftInquiryReport"); ?>";
    var corporate_gift_history_url  = "<?php echo Util::convertLink("CorporateGiftHistoryReport"); ?>";
    var conversation_report_url     = "<?php echo Util::convertLink("ConversationReport"); ?>";
    var all_account_report_url      = "<?php echo Util::convertLink("AllAccountReport"); ?>";
    
    //report
    var sendcorporategiftlist_url = "<?php echo Util::convertLink("SendCorporateGiftList"); ?>";

    var prospect_todo_url       = "<?php echo Util::convertLink("ProspectToDo"); ?>";
    var prospect_todo_entry_url = "<?php echo Util::convertLink("ProspectToDoEntry"); ?>";

    //campaign
    var campaign_profile_url     = "<?php echo Util::convertLink("CampaignProfile"); ?>";
    var campaign_profile_entry_url = "<?php echo Util::convertLink("CampaignProfileEntry"); ?>";
    var campaign_master_url       = "<?php echo Util::convertLink("CampaignMaster"); ?>";
    var campaign_master_entry_url = "<?php echo Util::convertLink("CampaignMasterEntry"); ?>";
    var sendcampaignlist_url      = "<?php echo Util::convertLink("SendCampaignList"); ?>";

    var base_currency   = "SGD";

    var message         = null;
    var commonCaption   = null;

    var add_caption         = "add";
    var cancel_caption      = "cancel";
    var close_caption       = "close";
    var ok_caption          = "ok";
    var delete_caption      = "delete";
    var submit_caption      = "submit";
    var item_caption        = "item";
    var document_caption    = "doc";
    var update_caption      = "update";

    var screen_index = 0;

    // Session timeout from web.config, converted to milliseconds for JS
    var SERVER_SESSION_TIMEOUT_MS = <?php echo $this->getWebConfigSessionTimeout() * 1000; ?>;

    <?php //include(PATH_CODE . "js/home/home.min.js");
    ?>
    <?php include(PATH_CODE . "js/home/home.js"); ?>

    //user
    <?php include(PATH_CODE . "js/admin/user.js"); ?>
    <?php include(PATH_CODE . "js/admin/usergroup.js"); ?>
    <?php include(PATH_CODE . "js/admin/usergroupentry.js"); ?>
    <?php include(PATH_CODE . "js/admin/industry.js"); ?>
    <?php include(PATH_CODE . "js/admin/departmentgroup.js"); ?>
    <?php include(PATH_CODE . "js/admin/businesssector.js"); ?>
    <?php include(PATH_CODE . "js/admin/businessnature.js"); ?>
    <?php include(PATH_CODE . "js/admin/software.js"); ?>
    <?php include(PATH_CODE . "js/destination/destination.js"); ?>

    //company profile
    
    //customer
    <?php include(PATH_CODE . "js/customer/customer.js"); ?>
    <?php include(PATH_CODE . "js/customer/customerentry.js"); ?>
    <?php include(PATH_CODE . "js/customer/exportcustomerhistory.js"); ?>
    
    //prospect
    <?php include(PATH_CODE . "js/prospect/prospect.js"); ?>
    <?php include(PATH_CODE . "js/prospect/prospectentry.js"); ?>
    
    <?php include(PATH_CODE . "js/prospect/prospecttodo.js"); ?>
    <?php include(PATH_CODE . "js/prospect/prospecttodoentry.js"); ?>
    
    <?php include(PATH_CODE . "js/telemarketing/telemarketing.js"); ?>
    
    //report
    <?php include(PATH_CODE . "js/report/customercontactlisting.js"); ?>
    <?php include(PATH_CODE . "js/report/corporategiftsummaryreport.js"); ?>
    <?php include(PATH_CODE . "js/report/corporategiftinquiryreport.js"); ?>
    <?php include(PATH_CODE . "js/report/corporategifthistoryreport.js"); ?>
    <?php include(PATH_CODE . "js/report/conversationreport.js"); ?>
    <?php include(PATH_CODE . "js/report/allaccountreport.js"); ?>
    
    //corporate gift
    <?php include(PATH_CODE . "js/corporate_gift/corporategiftmaster.js"); ?>
    <?php include(PATH_CODE . "js/corporate_gift/corporategiftmasterentry.js"); ?>
    <?php include(PATH_CODE . "js/corporate_gift/companyprofile.js"); ?>
    <?php include(PATH_CODE . "js/corporate_gift/companyprofileentry.js"); ?>
    <?php include(PATH_CODE . "js/corporate_gift/sendcorporategiftlist.js"); ?>
    <?php include(PATH_CODE . "js/corporate_gift/submitschedule.js"); ?>
    
    //campaign
    <?php include(PATH_CODE . "js/campaign/campaignmaster.js"); ?>
    <?php include(PATH_CODE . "js/campaign/campaignmasterentry.js"); ?>
    <?php include(PATH_CODE . "js/campaign/campaignprofile.js"); ?>
    <?php include(PATH_CODE . "js/campaign/campaignprofileentry.js"); ?>
    <?php include(PATH_CODE . "js/campaign/sendcampaignlist.js"); ?>
    <?php include(PATH_CODE . "js/campaign/submitschedule.js"); ?>
</script>