회원메일발송에서 자바스크립트 오류 해결하고, 생일, 성별, 지역 구분 삭제

This commit is contained in:
gnuboard
2013-01-21 18:48:23 +09:00
parent 05bc1fda26
commit 96fabfd7de
5 changed files with 6 additions and 75 deletions

View File

@ -19,18 +19,6 @@ if ($mb_id1 != 1)
if ($mb_email != "")
$sql_where .= " and mb_email like '%{$mb_email}%' ";
// 성별
if ($mb_sex != "")
$sql_where .= " and mb_sex = '{$mb_sex}' ";
// 생일
if ($mb_birth_from && $mb_birth_to)
$sql_where .= " and substring(mb_birth,5,4) between '{$mb_birth_from}' and '{$mb_birth_to}' ";
// 지역
if ($mb_area != "")
$sql_where .= " and mb_addr1 like '{$mb_area}%' ";
// 메일링
if ($mb_mailling != "")
$sql_where .= " and mb_mailling = '{$mb_mailling}' ";
@ -39,14 +27,12 @@ if ($mb_mailling != "")
$sql_where .= " and mb_level between '{$mb_level_from}' and '{$mb_level_to}' ";
// 게시판그룹회원
if ($gr_id)
{
if ($gr_id) {
$group_member = "";
$comma = "";
$sql2 = " select mb_id from {$g4['group_member_table']} where gr_id = '{$gr_id}' order by mb_id ";
$result2 = sql_query($sql2);
for ($k=0; $row2=sql_fetch_array($result2); $k++)
{
for ($k=0; $row2=sql_fetch_array($result2); $k++) {
$group_member .= "{$comma}'{$row2['mb_id']}'";
$comma = ",";
}
@ -71,10 +57,6 @@ $ma_last_option .= "mb_id1={$mb_id1}";
$ma_last_option .= "||mb_id1_from={$mb_id1_from}";
$ma_last_option .= "||mb_id1_to={$mb_id1_to}";
$ma_last_option .= "||mb_email={$mb_email}";
$ma_last_option .= "||mb_sex={$mb_sex}";
$ma_last_option .= "||mb_birth_from={$mb_birth_from}";
$ma_last_option .= "||mb_birth_to={$mb_birth_to}";
$ma_last_option .= "||mb_area={$mb_area}";
$ma_last_option .= "||mb_mailling={$mb_mailling}";
$ma_last_option .= "||mb_level_from={$mb_level_from}";
$ma_last_option .= "||mb_level_to={$mb_level_to}";
@ -103,7 +85,7 @@ include_once('./admin.head.php');
</thead>
<tbody>
<?
$sql = " select mb_id, mb_name, mb_nick, mb_email, mb_birth, mb_datetime $sql_common $sql_where order by mb_id ";
$sql = " select mb_id, mb_name, mb_nick, mb_email, mb_datetime $sql_common $sql_where order by mb_id ";
$result = sql_query($sql);
$i=0;
$ma_list = "";
@ -111,7 +93,7 @@ $cr = "";
while ($row=sql_fetch_array($result))
{
$i++;
$ma_list .= $cr . $row['mb_email'] . "||" . $row['mb_id'] . "||" . $row['mb_name'] . "||" . $row['mb_nick'] . "||" . $row['mb_birth'] . "||" . $row['mb_datetime'];
$ma_list .= $cr . $row['mb_email'] . "||" . $row['mb_id'] . "||" . $row['mb_name'] . "||" . $row['mb_nick'] . "||" . $row['mb_datetime'];
$cr = PHP_EOL;
?>
<tr>