/home/mjc1/public_html/adm/sms_admin/ajax.sms_write_group.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
$sub_menu 
"900300";
include_once(
"./_common.php");

$colspan 3;

auth_check($auth[$sub_menu], "r");

$no_group sql_fetch("select * from {$g5['sms5_book_group_table']} where bg_no=1");

$group = array();
$qry sql_query("select * from {$g5['sms5_book_group_table']} where bg_no>1 order by bg_name");
while (
$res sql_fetch_array($qry)) array_push($group$res);
?>
<div class="tbl_head01 tbl_wrap">
    <table>
    <thead>
    <tr>
        <th scope="col">그룹명</th>
        <th scope="col">수신가능</th>
        <th scope="col">추가</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td><a href="javascript:sms_obj.person(1)"><?php echo $no_group['bg_name']?></a></td>
        <td class="td_num"><?php echo number_format($no_group['bg_receipt'])?></td>
        <td class="td_mngsmall"><button type="button" class="btn_frmline" onclick="sms_obj.group_add(1, '<?php echo $no_group['bg_name']?>', '<?php echo number_format($no_group['bg_receipt'])?>')">추가</button></td>
    </tr>
    <?php
    $line 
1;
    for (
$i=0$i<count($group); $i++) {
        
$bg 'bg'.($line++%2);
    
?>
    <tr class="<?php echo $bg?>">
        <td><a href="javascript:sms_obj.person(<?php echo $group[$i]['bg_no']?>)"><?php echo $group[$i]['bg_name']?></a></td>
        <td class="td_num"><?php echo number_format($group[$i]['bg_receipt'])?></td>
        <td class="td_mngsmall"><button type="button" class="btn_frmline" onclick="sms_obj.group_add(<?php echo $group[$i]['bg_no']?>, '<?php echo $group[$i]['bg_name']?>', '<?php echo number_format($group[$i]['bg_receipt'])?>')">추가</button></td>
    </tr>
    <?php ?>
    </tbody>
    </table>
</div>