396 lines
14 KiB
PHP
396 lines
14 KiB
PHP
<?
|
|
|
|
// Level 6 이하만 사용 가능
|
|
$func->checkLevelModal(7);
|
|
|
|
|
|
//////////////////////////////////
|
|
// EXPORT - CUSTOMER INFO
|
|
//////////////////////////////////
|
|
|
|
$customer_cnt = 1;
|
|
$customerSTR = "<tr>";
|
|
foreach ($customerArray AS $key=>$value)
|
|
{
|
|
//echo "[$key][$value]"; => [0][Waiting][1][Confirmed][E][Declined]...
|
|
|
|
if ($customer_cnt%4 == 0) $divideSTR = "</tr><tr>";
|
|
else $divideSTR = "";
|
|
|
|
if ($key == "c_accountno" || $key == "d_inputdate" || $key == "d_quantity") $disableTAG = "disabled";
|
|
else $disableTAG = "";
|
|
|
|
$customerSTR .= "
|
|
<td>
|
|
<label class=\"container-chk\">".$value."
|
|
<input type=\"checkbox\" name=\"export_customer[]\" id='customer_".$key."' value=\"".$key."\" checked=\"checked\" $disableTAG>
|
|
<span class=\"checkmark\"></span>
|
|
</label>
|
|
</td>".$divideSTR;
|
|
$customer_cnt++;
|
|
}
|
|
$customerSTR .= "</tr>";
|
|
|
|
?>
|
|
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
|
|
$("#checkboxallcustomer").click(function () {
|
|
$('#checkboxcustomer input:checkbox:not(:disabled)').not('this').prop('checked', this.checked);
|
|
});
|
|
|
|
$("#exportcustomer").submit(function() {
|
|
$("input").removeAttr("disabled");
|
|
});
|
|
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
<main id="main" class="main">
|
|
|
|
<!-- ======= Breadcrumbs ======= -->
|
|
<div class="breadcrumbs">
|
|
<div class="container">
|
|
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<h2>EXPORT</h2>
|
|
<ol>
|
|
<li><a href="index.html">HOME</a></li>
|
|
<li>CONFIGURATION</li>
|
|
<li>EXPORT</li>
|
|
</ol>
|
|
</div>
|
|
|
|
</div>
|
|
</div><!-- End Breadcrumbs -->
|
|
|
|
<section class="page">
|
|
|
|
|
|
<div class="container" data-aos="fade-up">
|
|
|
|
<div class="h3-title-section">
|
|
<br><h3><span style="color:var(--color-primary);">CUSTOMER</span> Data</h3>
|
|
</div>
|
|
|
|
<FORM NAME=exportcustomer id=exportcustomer class="form-config-search" METHOD=POST ACTION=/doc/export_process.php >
|
|
<input type=hidden name=mode value="export">
|
|
<input type=hidden name=actionStr value="CUSTOMER">
|
|
|
|
<table id="checkboxcustomer" class="td-search">
|
|
|
|
<?=$customerSTR ?>
|
|
|
|
<!--
|
|
<tr>
|
|
<td>
|
|
<label class="container-chk">Account No
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
|
|
<td>
|
|
<label class="container-chk">Account Status
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
|
|
<td>
|
|
<label class="container-chk">Restaurant Name
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
|
|
<td>
|
|
<label class="container-chk">Driver
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<label class="container-chk">Address
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
|
|
<td>
|
|
<label class="container-chk">City
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
|
|
<td>
|
|
<label class="container-chk">Postal Code
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
|
|
<td>
|
|
<label class="container-chk">Area
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<label class="container-chk">Phone
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
|
|
<td>
|
|
<label class="container-chk">Ext
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
|
|
<td>
|
|
<label class="container-chk">Cell
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
|
|
<td>
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<label class="container-chk">Rate
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Payment
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Main Container
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Container Detail
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<label class="container-chk">Container Location
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Pickup Schedule
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Pickup Weekday
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Main Container
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<label class="container-chk">Cycle
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Forced Cycle
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Sludge
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Comment
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<label class="container-chk">Contract Date
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Form
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">US
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">EU Date
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td>
|
|
<label class="container-chk">Contact By
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Email
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Removal Date
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Sales Person
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<label class="container-chk">Sales Method
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Sale Commission Date
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Install Date
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">First Pickup Date
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<label class="container-chk">Payable To
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Payment Cycle
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Mailing Address
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<label class="container-chk">Comment
|
|
<input type="checkbox" name="export_customer[]" value="c_accountno" checked="checked">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
|
|
</tr>
|
|
-->
|
|
|
|
<tr>
|
|
<td colspan="2"></td>
|
|
<td>
|
|
<label class="container-chk">Select All
|
|
<input type="checkbox" name="checkboxallcustomer" id="checkboxallcustomer" checked="checked" value="1">
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<div class="text-center"><button class="btn-sub" type="submit">CSV DOWNLOAD</button></div>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
</form>
|
|
|
|
</div><!--container Ends-->
|
|
|
|
</section>
|
|
|
|
|
|
</main><!-- End #main -->
|