} else { $page['current'] = 1; } $page['item'] = PAGE_MAX; if ($auth == '3') { $dosearch = TRUE; } if (isset($_GET['pay_flag']) && $_GET['pay_flag'] != '') { $dosearch = TRUE; } if ($dosearch) { // specialist auth if ($auth == '3') { $login_id = $_SESSION['PREGO_ADMIN']['STAFF_ID']; $sql = "select * from mp_account where login_id = '{$login_id}' "; $account_data = $account_dao->get_rows($sql); foreach ($account_data as $k => $v) { $spec_id = $v['other_id']; } //$spec_data = $spec_dao->get ( $spec_id ); $wherearr[] = "spec_id = '{$spec_id}'"; // prego auth } else { $spec_name = $forms['spec_name']; } if (!empty($spec_name)) { $wherearr[] = "spec_name = '{$spec_name}'"; } // deal with year if ($auth == '1') { /*
$account_values = array(); $account_values['other_id'] = $id; $smarty->assign('corporate_id', $id); if ($account_dao->edit($account_id, $account_values)) { } else { $executeflg = FALSE; break; } } else { $executeflg = FALSE; } if ($executeflg) { $corporate_dao->commit_trans(); // get login_id and login_pwd $account_sql = "select * from mp_account where other_id = '{$id}' "; $mail_account_data = $account_dao->get_rows($account_sql); foreach ($mail_account_data as $k => $v) { $mail_id = $v['login_id']; $mail_pwd = $v['login_pwd']; } $prego_mail_corporate_insert_content = PREGO_MAIL_CORPORATE_INSERT_CONTENT_A . $mail_id . PREGO_MAIL_CORPORATE_INSERT_CONTENT_B . $mail_pwd . PREGO_MAIL_CORPORATE_INSERT_CONTENT_C . "\n" . PREGO_LOGIN_URL; // get corporate tantou mailAddress $sql = "select * from mp_corporate_tantou where corporate_id = '{$id}' "; $tantou_mail_data = $tantou_dao->get_rows($sql); foreach ($tantou_mail_data as $k => $v) { if ($v['mail_address'] != '') { $smtp_dao->senduserMail($v['mail_address'], PREGO_MAIL_CORPORATE_INSERT_SUBJECT, $prego_mail_corporate_insert_content); } } $smarty->assign('message', '登録が完了しました。通知メール送信完了しました。'); } else {