<?php include 'models/database.php'; include 'models/customers.php'; include 'views/header.php'; include 'views/activeTab_customers.php'; if (isset($_GET['customer_id'])) { $customer_id = $_GET['customer_id']; $exists = CustomerExistsByID($customer_id); if ($exists) { $customer = CustomerInfo($customer_id); include 'views/customers_edit_form.php'; } else { header('Location: customers_view.php?missing=true'); } } else { header('Location: customers_view.php'); } include 'views/footer.php';
<?php include './config.php'; include './auth.php'; $UsersAll = CustomerInfo(); if ($_REQUEST['new_mail'] == '1') { extract($_POST); $sql = "INSERT INTO sohorepro_email\n\t\t\tSET name = '" . $name . "',\n email_id = '" . $email . "',\n\t\t\t\tstatus = '" . $status . "' "; $sql_result = mysql_query($sql); if ($sql_result) { $result = "success"; } else { $result = "failure"; } } if ($_GET['status_id']) { $change_status = $_GET['change_id'] == 1 ? '0' : '1'; $status_id = $_GET['status_id']; $sql = "UPDATE sohorepro_company\n\t\t\tSET status = '" . $change_status . "' WHERE comp_id= '" . $status_id . "'"; $sql_result = mysql_query($sql); if ($sql_result) { $result = "success_status"; } else { $result = "failure_status"; } } if ($_GET['archive_id']) { $archive_id = $_GET['archive_id']; $customer_info = getCustomeInfo($archive_id); $message = '<html>'; $message .= '<head>';
<HEAD> <TITLE><?php msg('CUSTOMERS_INFO'); ?> </TITLE> <?php include 'part_htmlheader.php'; ?> </HEAD> <BODY> <TABLE cellspacing="0" cellpadding="0" align="center" border="0" width="670"> <TR> <TD> <?php CustomerInfo(); ?> </TD> </TR> <TFOOT> <TR height=100> <TH><?php // // Insert Page Footer // include 'part_footer_popup.php'; ?> </TH> </TR> </TFOOT> </TABLE>