// batchuploads.php: This page functions for uploading the company transactions. $etel_debug_mode = 0; $headerInclude = "startHere"; $pageConfig['HideHeader'] = true; include "includes/header.php"; $sessionAdmin = isset($HTTP_SESSION_VARS["sessionAdmin"]) ? $HTTP_SESSION_VARS["sessionAdmin"] : ""; if ($_REQUEST['upload'] == 'yes') { $upload_status = 'Fail'; $company_id = intval($_REQUEST['company']); $document_type = isset($HTTP_POST_VARS['document_type']) ? quote_smart($HTTP_POST_VARS['document_type']) : ""; if ($document_type == "") { $document_type = isset($HTTP_GET_VARS['document_type']) ? quote_smart($HTTP_GET_VARS['document_type']) : ""; } $upload = isset($HTTP_POST_VARS['upload']) ? quote_smart($HTTP_POST_VARS['upload']) : ""; if (isset($_FILES['file_document']) && $company_id) { $upload_status = func_upload_file($cnn_cs, $_FILES['file_document'], $company_id, $document_type); if ($document_type == "Contract") { $str_qry = "update cs_companydetails set cd_completion=6 where userId = '{$company_id}' AND cd_completion=5"; sql_query_write($str_qry, $cnn_cs) or dieLog(mysql_errno() . ": " . mysql_error() . "<BR>{$str_qry}"); } } if ($upload_status == 'Success') { ?> <script language="javascript"> window.opener.location.reload(); window.close(); </script> <?php } } ?>
$gateway_id = func_get_value_of_field($cnn_cs, "cs_companydetails", "gateway_id", "userid", $company_id); } if (isset($_FILES['file_license'])) { $file_status[] = func_upload_file($cnn_cs, $_FILES['file_license'], $company_id, "License"); } if (isset($_FILES['file_article'])) { $file_status[] = func_upload_file($cnn_cs, $_FILES['file_article'], $company_id, "Articles"); } if (isset($_FILES['file_process_history'])) { $file_status[] = func_upload_file($cnn_cs, $_FILES['file_process_history'], $company_id, "History"); } if (isset($_FILES['file_merchant_contract'])) { $file_status[] = func_upload_file($cnn_cs, $_FILES['file_merchant_contract'], $company_id, "Contract"); } if (isset($_FILES['file_professional_reference'])) { $file_status[] = func_upload_file($cnn_cs, $_FILES['file_professional_reference'], $company_id, "Professional_Reference"); } $str_qry = "update cs_companydetails set cd_completion=6 where userId = '{$company_id}'"; if ($curUserInfo['cd_completion'] == 5) { sql_query_write($str_qry) or dieLog(mysql_errno() . ": " . mysql_error() . "<BR>{$str_qry}"); en_status_change_notify($curUserInfo['en_ID']); } beginTable(); print "<br><table align=center width='400' cellpadding='0' cellspacing='0'>"; print "<tr bgcolor='#CCCCCC'><td class='cl1'><font class='subhd'> File Name</span></td><td class='cl1'><span class='subhd'> Status</span></td></tr>"; for ($i = 0; $i < count($file_status); $i++) { if ($file_status[$i] != "") { $file_details = split("@#@", $file_status[$i]); print "<tr height='20'><td class='leftbottomright'><font face='verdana' size='1'> {$file_details['0']}</font></td><td class='cl1'><font face='verdana' size='1'> {$file_details['1']}</font></td></tr>"; } }