芝麻web文件管理V1.00
编辑当前文件:/home/krishnamexports/public_html/panel/pages/signup/uploadDistributor.php
1) { $designation = mysqli_real_escape_string($cn,trim($filesop[0])); $customerName = mysqli_real_escape_string($cn,trim($filesop[1])); $companyName = mysqli_real_escape_string($cn,trim($filesop[2])); $mobile = mysqli_real_escape_string($cn,trim($filesop[3])); $email = mysqli_real_escape_string($cn,trim($filesop[4])); $state = mysqli_real_escape_string($cn,trim($filesop[5])); $city = mysqli_real_escape_string($cn,trim($filesop[6])); $gst = mysqli_real_escape_string($cn,trim($filesop[7])); $address = mysqli_real_escape_string($cn,trim($filesop[8])); //Check Designation $sqlDesignation = mysqli_query($cn, "select * from `tbl_designation` where name='$designation'"); if(mysqli_num_rows($sqlDesignation)>0) { $sqlDesignationData = mysqli_fetch_array($sqlDesignation); $designation_id = $sqlDesignationData['id']; } else { $designation_id = 'N/A'; } //Check Employee Already exits $sqlEmployee = mysqli_query($cn, "select * from `tbl_employee` where `mobile`='$mobile' and `designation_id` IN(2,3,4)"); if(mysqli_num_rows($sqlEmployee)>0) { $mobile = "Already Exists"; } //Check State $sqlState = mysqli_query($cn, "select * from `tbl_state` where name='$state'"); if(mysqli_num_rows($sqlState)>0) { $sqlStateData = mysqli_fetch_array($sqlState); $state_id = $sqlStateData['id']; } else { $state_id = 'N/A'; } //Check City $sqlCity = mysqli_query($cn, "select * from `tbl_city` where name='$city'"); if(mysqli_num_rows($sqlCity)>0) { $sqlCityData = mysqli_fetch_array($sqlCity); $city_id = $sqlCityData['id']; } else { $city_id = 'N/A'; } if(!empty($customerName)) { mysqli_query($cn,"insert into `tbl_employee_excel` set `name`='$customerName', `company_name`='$companyName', `mobile`='$mobile', `email`='$email', `designation_id`='$designation_id', `state_id`='$state_id', `city_id`='$city_id', `gst`='$gst', `address`='$address', `date`=Now();"); $count++; } } } $_SESSION['updateCount'] = $count; } ?>
Upload Dealer / Distributor / Retailer
Name
SUBMIT
DOWNLOAD SAMPLE
Delete
Verify
Dealer / Distributor / Retailer List
Select All
customer Type
Name
Company Name
Mobile
Email
GST
State
City
Address
Action
0) { $sqlDesignation = mysqli_query($cn, "select * from `tbl_designation` where id='".$sqlEmployeeData['designation_id']."'"); $sqlDesignationData = mysqli_fetch_array($sqlDesignation); $designation_id = $sqlDesignationData['name']; } else { $designation_id = '
'.$sqlEmployeeData['designation_id'].'
'; $status = 1; } if($sqlEmployeeData['mobile']>0) { $mobile = $sqlEmployeeData['mobile']; } else { $mobile = '
'.$sqlEmployeeData['mobile'].'
'; $status = 1; } if($sqlEmployeeData['state_id']>0) { $sqlState = mysqli_query($cn,"select * from `tbl_state` where id='".$sqlEmployeeData['state_id']."'"); $sqlStateData = mysqli_fetch_array($sqlState); $state_id = $sqlStateData['name']; } else { $state_id = '
'.$sqlEmployeeData['state_id'].'
'; $status = 1; } if($sqlEmployeeData['city_id']>0) { $sqlCity = mysqli_query($cn,"select * from `tbl_city` where id='".$sqlEmployeeData['city_id']."'"); $sqlCityData = mysqli_fetch_array($sqlCity); $city_id = $sqlCityData['name']; } else { $city_id = '
'.$sqlEmployeeData['city_id'].'
'; $status = 1; } ?>
style="background:#f0aeae;color:#FFF;">
Delete