本文整理汇总了PHP中check_regon函数的典型用法代码示例。如果您正苦于以下问题:PHP check_regon函数的具体用法?PHP check_regon怎么用?PHP check_regon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了check_regon函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: trans
}
if ($customeradd['post_apartment'] != '' && $customeradd['post_building'] == '') {
$error['post_building'] = trans('Building number required!');
}
if ($customeradd['ten'] != '' && !check_ten($customeradd['ten']) && !isset($customeradd['tenwarning'])) {
$error['ten'] = trans('Incorrect Tax Exempt Number! If you are sure you want to accept it, then click "Submit" again.');
$customeradd['tenwarning'] = 1;
}
if ($customeradd['ssn'] != '' && !check_ssn($customeradd['ssn']) && !isset($customeradd['ssnwarning'])) {
$error['ssn'] = trans('Incorrect Social Security Number! If you are sure you want to accept it, then click "Submit" again.');
$customeradd['ssnwarning'] = 1;
}
if ($customeradd['icn'] != '' && !check_icn($customeradd['icn'])) {
$error['icn'] = trans('Incorrect Identity Card Number!');
}
if ($customeradd['regon'] != '' && !check_regon($customeradd['regon'])) {
$error['regon'] = trans('Incorrect Business Registration Number!');
}
if ($customeradd['zip'] != '' && !check_zip($customeradd['zip']) && !isset($customeradd['zipwarning'])) {
$error['zip'] = trans('Incorrect ZIP code! If you are sure you want to accept it, then click "Submit" again.');
$customeradd['zipwarning'] = 1;
}
if ($customeradd['post_zip'] != '' && !check_zip($customeradd['post_zip']) && !isset($customeradd['post_zipwarning'])) {
$error['post_zip'] = trans('Incorrect ZIP code! If you are sure you want to accept it, then click "Submit" again.');
$customeradd['post_zipwarning'] = 1;
}
if ($customeradd['pin'] == '') {
$error['pin'] = trans('PIN code is required!');
} elseif (!preg_match('/^[0-9]{4,6}$/', $customeradd['pin'])) {
$error['pin'] = trans('Incorrect PIN code!');
}
示例2: trans
}
if ($customerdata['name'] == '' && !$customerdata['type']) {
$error['name'] = trans('First name cannot be empty!');
}
if ($customerdata['address'] == '') {
$error['address'] = trans('Address required!');
}
if ($customerdata['ten'] != '' && !check_ten($customerdata['ten']) && !isset($customerdata['tenwarning'])) {
$error['ten'] = trans('Incorrect Tax Exempt Number! If you are sure you want to accept it, then click "Submit" again.');
$tenwarning = 1;
}
if ($customerdata['ssn'] != '' && !check_ssn($customerdata['ssn']) && !isset($customerdata['ssnwarning'])) {
$error['ssn'] = trans('Incorrect Social Security Number! If you are sure you want to accept it, then click "Submit" again.');
$ssnwarning = 1;
}
if ($customerdata['regon'] != '' && !check_regon($customerdata['regon'])) {
$error['regon'] = trans('Incorrect Business Registration Number!');
}
if ($customerdata['icn'] != '' && !check_icn($customerdata['icn'])) {
$error['icn'] = trans('Incorrect Identity Card Number!');
}
if ($customerdata['zip'] != '' && !check_zip($customerdata['zip']) && !isset($customerdata['zipwarning'])) {
$error['zip'] = trans('Incorrect ZIP code! If you are sure you want to accept it, then click "Submit" again.');
$zipwarning = 1;
}
if ($customerdata['post_zip'] != '' && !check_zip($customerdata['post_zip']) && !isset($customerdata['post_zipwarning'])) {
$error['post_zip'] = trans('Incorrect ZIP code! If you are sure you want to accept it, then click "Submit" again.');
$post_zipwarning = 1;
}
if ($customerdata['pin'] == '') {
$error['pin'] = trans('PIN code is required!');
示例3: trans
if ($division['address'] == '') {
$error['address'] = trans('Address is required!');
}
if ($division['city'] == '') {
$error['city'] = trans('City is required!');
}
if ($division['zip'] == '') {
$error['zip'] = trans('Zip code is required!');
} elseif (!check_zip($division['zip'])) {
$error['zip'] = trans('Incorrect ZIP code!');
}
if ($division['ten'] != '' && !check_ten($division['ten']) && !isset($division['tenwarning'])) {
$error['ten'] = trans('Incorrect Tax Exempt Number! If you are sure you want to accept it, then click "Submit" again.');
$division['tenwarning'] = 1;
}
if ($division['regon'] != '' && !check_regon($division['regon'])) {
$error['regon'] = trans('Incorrect Business Registration Number!');
}
if ($division['account'] != '' && (strlen($division['account']) > 48 || !preg_match('/^([A-Z][A-Z])?[0-9]+$/', $division['account']))) {
$error['account'] = trans('Wrong account number!');
}
if ($division['inv_paytime'] == '') {
$division['inv_paytime'] = NULL;
}
if (!$error) {
$args = array('name' => $division['name'], 'shortname' => $division['shortname'], 'address' => $division['address'], 'city' => $division['city'], 'zip' => $division['zip'], $SYSLOG_RESOURCE_KEYS[SYSLOG_RES_COUNTRY] => $division['countryid'], 'ten' => $division['ten'], 'regon' => $division['regon'], 'account' => $division['account'], 'inv_header' => $division['inv_header'], 'inv_footer' => $division['inv_footer'], 'inv_author' => $division['inv_author'], 'inv_cplace' => $division['inv_cplace'], 'inv_paytime' => $division['inv_paytime'], 'inv_paytype' => $division['inv_paytype'] ? $division['inv_paytype'] : null, 'description' => $division['description']);
$DB->Execute('INSERT INTO divisions (name, shortname, address, city, zip,
countryid, ten, regon, account, inv_header, inv_footer, inv_author,
inv_cplace, inv_paytime, inv_paytype, description)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($args));
if ($SYSLOG) {