Ejemplo n.º 1
0
$item = array();
$sql = "select *\n        {$sql_common}\n        {$sql_search}\n        {$sql_order}\n        limit {$from_record}, {$rows} ";
$qry = sql_query($sql);
$list = array();
for ($i = 0; $row = sql_fetch_array($qry); ++$i) {
    $row[num] = $total_count - ($page - 1) * $rows - $i;
    if (is_null($item[$row['vt_num']])) {
        $tmp = sql_fetch(" select * from {$mw['vote_item_table']} where vt_id = '{$vt_id}' and vt_num = '{$row['vt_num']}' ");
        $item[$row['vt_num']] = $tmp['vt_item'];
    }
    $row['vt_item'] = $item[$row['vt_num']];
    $mb = get_member($row[mb_id], "mb_nick, mb_name, mb_email, mb_homepage");
    $row[name] = get_sideview($row[mb_id], $board[bo_use_name] ? $mb[mb_name] : $mb[mb_nick], $mb[mb_email], $mb[mb_homepage]);
    $list[$i] = $row;
}
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?bo_table={$bo_table}&wr_id={$wr_id}{$qstr}&page=");
$colspan = 5;
$g4[title] = "설문 참여 목록";
include_once "{$g4['path']}/head.sub.php";
?>
<script src="<?php 
echo $g4[path];
?>
/js/sideview.js"></script>

<link rel="stylesheet" href="<?php 
echo $board_skin_path;
?>
/style.common.css" type="text/css">

<style>
Ejemplo n.º 2
0
}
?>
    </tbody>
    </table>
</div>

<div class="btn_list01 btn_list">
    <input type="submit" name="act_button" value="선택수정" onclick="document.pressed=this.value">
    <input type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value">
    <input type="submit" name="act_button" value="완전삭제" onclick="document.pressed=this.value">
</div>

</form>

<?php 
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, '?' . $qstr . '&amp;page=');
?>

<script>
function fmemberlist_submit(f)
{
    if (!is_checked("chk[]")) {
        alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
        return false;
    }

    if(document.pressed == "선택삭제") {
        if(!confirm("선택회원의 기본정보만 삭제되며 아이디, 닉네임 기록은 남습니다.\n\n선택한 자료를 정말 삭제하시겠습니까?")) {
            return false;
        }
    }
Ejemplo n.º 3
0
if ($i == 0) {
    echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
}
?>
    </tbody>
    </table>
</div>

<div class="btn_list01 btn_list">
    <input type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value">
</div>

</form>

<?php 
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?{$qstr}&amp;page=");
?>

<section id="point_mng">
    <h2 class="h2_frm">개별회원 포인트 증감 설정</h2>

    <form name="fpointlist2" method="post" id="fpointlist2" action="./point_update.php" autocomplete="off">
    <input type="hidden" name="sfl" value="<?php 
echo $sfl;
?>
">
    <input type="hidden" name="stx" value="<?php 
echo $stx;
?>
">
    <input type="hidden" name="sst" value="<?php 
Ejemplo n.º 4
0
                <?php 
}
?>

                <?php 
if ($i == 0) {
    echo "<tr><td colspan=5 align=center height=100>자료가 없습니다.</td></tr>";
}
?>
                </table></td>
        </tr>
        </table></td>
</tr>
<tr> 
    <td height="30" align="center"><?php 
echo get_paging($config[cf_write_pages], $page, $total_page, "?{$qstr}&page=");
?>
</td>
</tr>
<tr> 
    <td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
</tr>
<tr>
    <td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
</tr>
<tr>
    <td height="40" align="center" valign="bottom"><a href="javascript:window.close();"><img src="<?php 
echo $member_skin_path;
?>
/img/btn_close.gif" width="48" height="20" border="0"></a></td>
</tr>
Ejemplo n.º 5
0
} else {
    if ($stx) {
        echo '<p class="empty_list">검색된 게시물이 없습니다.</p>';
    } else {
        echo '<div class="empty_list">등록된 FAQ가 없습니다.';
        if ($is_admin) {
            echo '<br><a href="' . G5_ADMIN_URL . '/faqmasterlist.php">FAQ를 새로 등록하시려면 FAQ관리</a> 메뉴를 이용하십시오.';
        }
        echo '</div>';
    }
}
?>
</div>

<?php 
echo get_paging($page_rows, $page, $total_page, $_SERVER['SCRIPT_NAME'] . '?' . $qstr . '&amp;page=');
?>

<?php 
// 하단 HTML
echo '<div id="faq_thtml">' . conv_content($fm['fm_tail_html'], 1) . '</div>';
if ($timg_src) {
    echo '<div id="faq_timg" class="faq_img"><img src="' . $timg_src . '" alt=""></div>';
}
?>

<fieldset id="faq_sch">
    <legend>FAQ 검색</legend>

    <form name="faq_search_form" method="get">
    <input type="hidden" name="fm_id" value="<?php 
Ejemplo n.º 6
0
    echo "<input type=hidden name=pp_id[{$i}] value='{$row['pp_id']}'>";
    echo "<tr class='list{$list} col1 ht center'>";
    echo "<td height=25><input type=checkbox name=chk[] value='{$i}'></td>";
    echo "<td align='left'>&nbsp; <a href='{$_SERVER['PHP_SELF']}?sfl=pp_word&stx={$word}'>{$word}</a></td>";
    echo "<td>{$row['pp_date']}</td>";
    echo "<td>{$row['pp_ip']}</td>";
    echo "</tr>";
    echo "<tr class='list{$list} col1 ht center'>";
    echo "</tr>\n";
}
if ($i == 0) {
    echo "<tr><td colspan='{$colspan}' align=center height=100 bgcolor=#ffffff>자료가 없습니다.</td></tr>";
}
echo "<tr><td colspan='{$colspan}' class='line2'></td></tr>";
echo "</table>";
$pagelist = get_paging($config[cf_write_pages], $page, $total_page, "{$_SERVER['PHP_SELF']}?{$qstr}&page=");
echo "<table width=100% cellpadding=3 cellspacing=1>";
echo "<tr><td width=50%>";
if ($is_admin == "super") {
    echo "<input type=button class='btn1' value='선택삭제' onclick=\"btn_check(this.form, 'delete')\">";
}
echo "</td>";
echo "<td width=50% align=right>{$pagelist}</td></tr></table>\n";
if ($stx) {
    echo "<script>document.fsearch.sfl.value = '{$sfl}';</script>";
}
?>
</form>

<?php 
include_once "./admin.tail.php";
Ejemplo n.º 7
0
    for ($i = 0; $row = sql_fetch_array($result); $i++) {
        $list[$i] = $row;
        $list[$i]['category'] = get_text($row['qa_category']);
        $list[$i]['subject'] = conv_subject($row['qa_subject'], $subject_len, '…');
        if ($stx) {
            $list[$i]['subject'] = search_font($stx, $list[$i]['subject']);
        }
        $list[$i]['view_href'] = G5_BBS_URL . '/qaview.php?qa_id=' . $row['qa_id'] . $qstr;
        $list[$i]['icon_file'] = '';
        if (trim($row['qa_file1']) || trim($row['qa_file2'])) {
            $list[$i]['icon_file'] = '<img src="' . $qa_skin_url . '/img/icon_file.gif">';
        }
        $list[$i]['name'] = get_text($row['qa_name']);
        $list[$i]['date'] = substr($row['qa_datetime'], 2, 8);
        $list[$i]['num'] = $num - $i;
    }
    $is_checkbox = false;
    $admin_href = '';
    if ($is_admin) {
        $is_checkbox = true;
        $admin_href = G5_ADMIN_URL . '/qa_config.php';
    }
    $list_href = G5_BBS_URL . '/qalist.php';
    $write_href = G5_BBS_URL . '/qawrite.php';
    $list_pages = preg_replace('/(\\.php)(&amp;|&)/i', '$1?', get_paging(G5_IS_MOBILE ? $qaconfig['qa_mobile_page_rows'] : $qaconfig['qa_page_rows'], $page, $total_page, './qalist.php' . $qstr . '&amp;page='));
    $stx = get_text(stripslashes($stx));
    include_once $skin_file;
} else {
    echo '<div>' . str_replace(G5_PATH . '/', '', $skin_file) . '이 존재하지 않습니다.</div>';
}
include_once './_tail.php';
Ejemplo n.º 8
0
// 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows;
// 시작 열을 구함
$sql = "select *\r\n        {$sql_common}\r\n        {$sql_search}\r\n        {$sql_order}\r\n        limit {$from_record}, {$rows} ";
$qry = sql_query($sql);
$list = array();
for ($i = 0; $row = sql_fetch_array($qry); ++$i) {
    $row[num] = $total_count - ($page - 1) * $rows - $i;
    $mb = get_member($row[mb_id], "mb_id, mb_nick, mb_homepage, mb_email");
    $row[name] = get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_homepage], $mb[mb_email]);
    if (!$row[bm_limit][0]) {
        $row[bm_limit] = '';
    }
    $list[$i] = $row;
}
$write_pages = get_paging($rows, $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?bo_table={$bo_table}{$qstr}&page=");
//$g4[title] = "배추 BASIC SKIN 접근권한 설정";
//include_once("$g4[path]/head.sub.php");
?>
<!doctype html>
<html lang="ko">
<head>
<meta charset="<?php 
echo $g4['charset'];
?>
">
<title><?php 
echo $g4['title'];
?>
</title>
<script>
Ejemplo n.º 9
0
        <td class="td_category"><?php 
    echo $os;
    ?>
</td>
        <td class="td_datetime"><?php 
    echo $row['vi_date'];
    ?>
 <?php 
    echo $row['vi_time'];
    ?>
</td>
    </tr>

    <?php 
}
if ($i == 0) {
    echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없거나 관리자에 의해 삭제되었습니다.</td></tr>';
}
?>
    </tbody>
    </table>
</div>

<?php 
if (isset($domain)) {
    $qstr .= "&amp;domain={$domain}";
}
$qstr .= "&amp;page=";
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?{$qstr}");
echo $pagelist;
include_once './admin.tail.php';
Ejemplo n.º 10
0
    $sql = " select *\n                {$sql_common}\n                {$sql_search}\n                {$sql_order}\n                limit {$from_record}, {$page_rows} ";
    $result = sql_query($sql);
    $list = array();
    $num = $total_count - ($page - 1) * $page_rows;
    $subject_len = $qaconfig['qa_subject_len'];
    for ($i = 0; $row = sql_fetch_array($result); $i++) {
        $list[$i] = $row;
        $list[$i]['category'] = get_text($row['qa_category']);
        $list[$i]['subject'] = conv_subject($row['qa_subject'], $subject_len, '…');
        if ($stx) {
            $list[$i]['subject'] = search_font($stx, $list[$i]['subject']);
        }
        $list[$i]['view_href'] = G5_ADMIN_URL . '/shop_admin/admin_qaview.php?qa_id=' . $row['qa_id'] . $qstr;
        $list[$i]['icon_file'] = '';
        if (trim($row['qa_file1']) || trim($row['qa_file2'])) {
            $list[$i]['icon_file'] = '<img src="' . $admin_qa_skin_url . '/img/icon_file.gif">';
        }
        $list[$i]['name'] = get_text($row['qa_name']);
        $list[$i]['date'] = substr($row['qa_datetime'], 2, 8);
        $list[$i]['num'] = $num - $i;
    }
    $is_checkbox = true;
    $list_href = G5_ADMIN_URL . '/shop_admin/admin_qalist.php';
    $write_href = G5_ADMIN_URL . '/shop_admin/admin_qawrite.php';
    $list_pages = preg_replace('/(\\.php)(&amp;|&)/i', '$1?', get_paging($qaconfig['qa_page_rows'], $page, $total_page, './admin_qalist.php?' . $qstr . '&amp;page='));
    $stx = get_text(stripslashes($stx));
    include_once $skin_file;
} else {
    echo '<div>' . str_replace(G5_PATH . '/', '', $skin_file) . '이 존재하지 않습니다.</div>';
}
include_once './admin_qatail.php';
Ejemplo n.º 11
0
</td>
        <td><?php 
    echo $row['mh_hp'];
    ?>
</td>
        <td><?php 
    echo $row['mh_datetime'];
    ?>
</td>
        <td><?php 
    echo $row['mh_booking'] != '0000-00-00 00:00:00' ? "<span title='{$row['mh_booking']}' class='btn btn-default'>예약</span>" : '';
    ?>
</td>
        <td><?php 
    echo $row['mh_log'];
    ?>
</td>
    </tr>
    <?php 
}
?>
    </tbody>
    </table>
</div>

<?php 
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'] . "?st={$st}&amp;sv={$sv}&amp;page=");
?>

<?php 
include_once G5_ADMIN_PATH . '/admin.tail.php';
Ejemplo n.º 12
0
<?php

include_once "./_common.php";
$g4['title'] = "현재접속자";
$connect_skin_path = "{$g4['path']}/skin/connect/{$config['cf_connect_skin']}";
include_once "./_head.php";
$list = array();
$sql = " select a.mb_id, b.mb_nick, b.mb_name, b.mb_email, b.mb_homepage, b.mb_open, b.mb_point, a.lo_ip, a.lo_location, a.lo_url\n           from {$g4['login_table']} a left join {$g4['member_table']} b on (a.mb_id = b.mb_id)\n          where a.mb_id <> '{$config['cf_admin']}'\n          order by a.lo_datetime desc ";
$result = sql_query($sql);
for ($i = 0; $row = sql_fetch_array($result); $i++) {
    $list[$i] = $row;
    if ($row['mb_id']) {
        //$list[$i][name] = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
        $list[$i][name] = get_sideview($row['mb_id'], cut_str($row['mb_nick'], $config['cf_cut_name']), $row['mb_email'], $row['mb_homepage']);
    } else {
        if ($is_admin) {
            $list[$i][name] = $row['lo_ip'];
        } else {
            $list[$i][name] = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "\\1.♡.\\3.\\4", $row['lo_ip']);
        }
    }
    $list[$i][num] = sprintf("%03d", $i + 1);
}
$write_pages = get_paging($config['cf_write_pages'], $page, $total_page, "?gr_id={$gr_id}&page=");
echo "<script type='text/javascript' src=\"{$g4['path']}/js/sideview.js\"></script>\n";
include_once "{$connect_skin_path}/current_connect.skin.php";
include_once "./_tail.php";
Ejemplo n.º 13
0
            <td class="td_datetime"><?php 
    echo $list[$i]['ms_datetime'];
    ?>
</td>
            <td class="td_mng"><a href="<?php 
    echo $list[$i]['del_href'];
    ?>
" onclick="del(this.href); return false;">삭제</a></td>
        </tr>
        <?php 
}
?>

        <?php 
if ($i == 0) {
    echo "<tr><td colspan=\"5\" class=\"empty_table\">자료가 없습니다.</td></tr>";
}
?>
        </tbody>
        </table>
    </div>

    <?php 
echo get_paging($config['cf_write_pages'], $page, $total_page, "?{$qstr}&amp;page=");
?>

    <div class="win_btn">
        <button type="button" onclick="window.close();">창닫기</button>
    </div>
</div>
<!-- } 스크랩 목록 끝 -->
Ejemplo n.º 14
0
    echo $row['ct_status_sum'];
    ?>
</td>
        </tr>
        <?php 
}
if ($i == 0) {
    echo '<tr><td colspan="12" class="empty_table">자료가 없습니다.</td></tr>';
}
?>
    </tbody>
    </table>
</div>

<?php 
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?{$qstr1}&amp;page=");
?>

<script>
$(function() {
    $("#fr_date, #to_date").datepicker({
        changeMonth: true,
        changeYear: true,
        dateFormat: "yymmdd",
        showButtonPanel: true,
        yearRange: "c-99:c+99",
        maxDate: "+0d"
    });
});
</script>
Ejemplo n.º 15
0
            }
            $list[$idx][$i][subject] = $subject;
            $list[$idx][$i][content] = $content;
            $list[$idx][$i][name] = get_sideview($row[mb_id], cut_str($row[wr_name], $config[cf_cut_name]), $row[wr_email], $row[wr_homepage]);
            $k++;
            if ($k >= $rows) {
                break;
            }
        }
        sql_free_result($result);
        if ($k >= $rows) {
            break;
        }
        $from_record = 0;
    }
    $write_pages = get_paging($config[cf_write_pages], $page, $total_page, "{$_SERVER['PHP_SELF']}?{$search_query}&gr_id={$gr_id}&srows={$srows}&onetable={$onetable}&page=");
    echo "<script type=\"text/javascript\" src=\"{$g4['path']}/js/sideview.js\"></script>";
}
$group_select = "<select id='gr_id' name='gr_id' class=select><option value=''>전체 분류";
$sql = " select gr_id, gr_subject from {$g4['group_table']} order by gr_id ";
$result = sql_query($sql);
for ($i = 0; $row = sql_fetch_array($result); $i++) {
    $group_select .= "<option value='{$row['gr_id']}'>{$row['gr_subject']}";
}
$group_select .= "</select>";
if (!$sfl) {
    $sfl = "wr_subject";
}
if (!$sop) {
    $sop = "or";
}
Ejemplo n.º 16
0
								<td><a class="bcolor" href='buy-reports.php?reportid=<?php 
                                    echo $row['proxyaddid'];
                                    ?>
'>Purchase</a></td>
							</tr>
					<?php 
                                }
                                ?>
				</table>
			</div>
		</div>
		<div>
			<label>Page : </label>
			<span class="td-set">
				<?php 
                                get_paging($page_clicked, $final_total_pages);
                                ?>
			</span>
		</div>
<?php 
                            }
                        } else {
                            if (isset($_GET['get_block1'])) {
                                echo "<div class='block-set-pillar-1 return_block'>\n\t\t\t<span style='font-size:16px;text-transform:uppercase; text-decoration: underline;'>Independence</span>\n\t\t\t<p style='margin-top:10px;text-align:justify;font-size:14px;'>We do not have any material association with listed firms. Our employees do not hold directorships at listed companies. This helps us maintain our independence and provide unbiased advice to clients. We do not accept assignments that may have a potential conflict with our objectives.</p>\n\t\t</div>";
                            } else {
                                if (isset($_GET['get_block2'])) {
                                    echo "<div class='block-set-pillar-2 return_block'>\n\t\t\t<span style='font-size:16px;text-transform:uppercase; text-decoration: underline;'>Conflict Management</span>\n\t\t\t<p style='margin-top:10px;text-align:justify;font-size:14px;'>We provide governance advisory services to investors at listed companies. To remove any conflict of interests, we do not have any pecuniary or advisory relationship with listed companies. We have internal controls for interactions with listed firms and maintain a clear audit trail.</p>\n\t\t</div>";
                                } else {
                                    if (isset($_GET['get_block3'])) {
                                        echo "<div class='block-set-pillar-3 return_block'>\n\t\t\t<span style='font-size:16px;text-transform:uppercase; text-decoration: underline;'>Not For Profit</span>\n\t\t\t<p style='margin-top:10px;text-align:justify;font-size:14px;'>SES has adopted a not-for-profit business model to eliminate any perceived compromise with independence and to mitigate any potential conflict of interests. Our business model ensures that we place clients’ interests above our own and treat each client equally.</p>\n\t\t</div>";
                                    } else {
Ejemplo n.º 17
0
        // 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다
        if ($sca || $stx) {
            $row = sql_fetch(" select * from {$write_table} where wr_id = '{$row['wr_parent']}' ");
        }
        $list[$i] = get_list($row, $board, $board_skin_url, G5_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']);
        if (strstr($sfl, 'subject')) {
            $list[$i]['subject'] = search_font($stx, $list[$i]['subject']);
        }
        $list[$i]['is_notice'] = false;
        $list_num = $total_count - ($page - 1) * $list_page_rows - $notice_count;
        $list[$i]['num'] = $list_num - $k;
        $i++;
        $k++;
    }
}
$write_pages = get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, './board.php?bo_table=' . $bo_table . $qstr . '&amp;page=');
$list_href = '';
$prev_part_href = '';
$next_part_href = '';
if ($sca || $stx) {
    $list_href = './board.php?bo_table=' . $bo_table;
    $patterns = array('#&amp;page=[0-9]*#', '#&amp;spt=[0-9\\-]*#');
    //if ($prev_spt >= $min_spt)
    $prev_spt = $spt - $config['cf_search_part'];
    if (isset($min_spt) && $prev_spt >= $min_spt) {
        $qstr1 = preg_replace($patterns, '', $qstr);
        $prev_part_href = './board.php?bo_table=' . $bo_table . $qstr1 . '&amp;spt=' . $prev_spt . '&amp;page=1';
        $write_pages = page_insertbefore($write_pages, '<a href="' . $prev_part_href . '" class="pg_page pg_prev">이전검색</a>');
    }
    $next_spt = $spt + $config['cf_search_part'];
    if ($next_spt < 0) {
Ejemplo n.º 18
0
    $page = 1;
}
// 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows;
// 시작 열을 구함
$sql = "select *\n        {$sql_common}\n        {$sql_search}\n        {$sql_order}\n        limit {$from_record}, {$rows} ";
$qry = sql_query($sql);
$list = array();
for ($i = 0; $row = sql_fetch_array($qry); ++$i) {
    $list[$i] = $row;
    $list[$i][num] = $total_count - ($page - 1) * $rows - $i;
    if (!$row[mb_name]) {
        $list[$i][mb_name] = $row[mb_id];
    }
}
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "./mw.download.log.php?bo_table={$bo_table}&wr_id={$wr_id}{$qstr}&page=");
$colspan = 5;
$g4[title] = "다운로드 기록";
include_once "{$g4['path']}/head.sub.php";
?>
<script language="javascript" src="<?php 
echo $g4[path];
?>
/js/sideview.js"></script>

<link rel="stylesheet" href="<?php 
echo $board_skin_path;
?>
/style.common.css" type="text/css">

<style type="text/css">
Ejemplo n.º 19
0
        }
    }
    $list[$i]['gr_id'] = $row['gr_id'];
    $list[$i]['bo_table'] = $row['bo_table'];
    $list[$i]['name'] = $name;
    $list[$i]['comment'] = $comment;
    $list[$i]['is_lock'] = $is_lock;
    $list[$i]['href'] = './board.php?bo_table=' . $row['bo_table'] . '&amp;wr_id=' . $row2['wr_id'] . $comment_link;
    $list[$i]['wr_datetime'] = $wr_datetime;
    $list[$i]['datetime'] = $datetime;
    $list[$i]['datetime2'] = $datetime2;
    $list[$i]['gr_subject'] = $row['gr_subject'];
    $list[$i]['bo_subject'] = G5_IS_MOBILE && $row['bo_mobile_subject'] ? $row['bo_mobile_subject'] : $row['bo_subject'];
    $list[$i]['wr_subject'] = $row2['wr_subject'];
}
$write_pages = get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "?gr_id={$gr_id}&amp;view={$view}&amp;mb_id={$mb_id}&amp;page=");
$write_page_rows = G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'];
$list_page = "?gr_id={$gr_id}&amp;view={$view}&amp;mb_id={$mb_id}&amp;page=";
// 스킨설정
$wset = G5_IS_MOBILE ? apms_skin_set('new_mobile') : apms_skin_set('new');
$setup_href = '';
if (is_file($skin_path . '/setup.skin.php') && ($is_demo || $is_admin == 'super')) {
    $setup_href = './skin.setup.php?skin=new';
}
include_once $skin_path . '/new.skin.php';
include_once './_tail.php';
?>



Ejemplo n.º 20
0
Archivo: new.php Proyecto: ragi79/g4dtd
        $row3 = sql_fetch(" select mb_id, wr_name, wr_email, wr_homepage, wr_datetime from {$tmp_write_table} where wr_id = '{$row['wr_id']}' ");
        $list[$i] = $row2;
        $list[$i]['mb_id'] = $row3['mb_id'];
        $list[$i]['wr_name'] = $row3['wr_name'];
        $list[$i]['wr_email'] = $row3['wr_email'];
        $list[$i]['wr_homepage'] = $row3['wr_homepage'];
        $name = get_sideview($row3['mb_id'], cut_str($row3['wr_name'], $config['cf_cut_name']), $row3['wr_email'], $row3['wr_homepage']);
        // 당일인 경우 시간으로 표시함
        $datetime = substr($row3['wr_datetime'], 0, 10);
        $datetime2 = $row3['wr_datetime'];
        if ($datetime == $g4['time_ymd']) {
            $datetime2 = substr($datetime2, 11, 5);
        } else {
            $datetime2 = substr($datetime2, 5, 5);
        }
    }
    $list[$i]['gr_id'] = $row['gr_id'];
    $list[$i]['bo_table'] = $row['bo_table'];
    $list[$i]['name'] = $name;
    $list[$i]['comment'] = $comment;
    $list[$i]['href'] = "./board.php?bo_table={$row['bo_table']}&amp;wr_id={$row2['wr_id']}{$comment_link}";
    $list[$i]['datetime'] = $datetime;
    $list[$i]['datetime2'] = $datetime2;
    $list[$i]['gr_subject'] = $row['gr_subject'];
    $list[$i]['bo_subject'] = $row['bo_subject'];
    $list[$i]['wr_subject'] = $row2['wr_subject'];
}
$write_pages = get_paging($config['cf_write_pages'], $page, $total_page, "?gr_id={$gr_id}&amp;view={$view}&amp;mb_id={$mb_id}&amp;page=");
echo "<script type=\"text/javascript\" src=\"{$g4['path']}/js/sideview.js\"></script>\n";
include_once "{$new_skin_path}/new.skin.php";
include_once "./_tail.php";
Ejemplo n.º 21
0
    <div id="point_sum">
        <div class="sum_row">
            <span class="sum_tit">지급</span>
            <b class="sum_val"><?php 
echo $sum_point1;
?>
</b>
        </div>
        <div class="sum_row">
            <span class="sum_tit">사용</span>
            <b class="sum_val"><?php 
echo $sum_point2;
?>
</b>
        </div>
        <div class="sum_row">
            <span class="sum_tit">보유</span>
            <b class="sum_val"><?php 
echo number_format($member['mb_point']);
?>
</b>
        </div>
    </div>

    <?php 
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'] . '?' . $qstr . '&amp;page=');
?>

    <div class="win_btn"><button type="button" onclick="javascript:window.close();">창닫기</button></div>
</div>
Ejemplo n.º 22
0
        if(!confirm("선택한 자료를 정말 삭제하시겠습니까?")) {
            return false;
        }
    }
    return true;
}
// 선택한 이모티콘 그룹 이동
function select_copy(sw, f) {
    if( !f ){
        var f = document.emoticonlist;
    }
    if (sw == "copy")
        str = "복사";
    else
        str = "이동";

    var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");

    f.sw.value = sw;
    f.target = "move";
    f.action = "./emoticon_move.php";
    f.submit();
}
</script>

<?php 
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'] . "?fg_no={$fg_no}&amp;st={$st}&amp;sv={$sv}&amp;page=");
?>

<?php 
include_once G5_ADMIN_PATH . '/admin.tail.php';
Ejemplo n.º 23
0
} else {
    if ($stx) {
        echo '<p class="empty_list">검색된 게시물이 없습니다.</p>';
    } else {
        echo '<div class="empty_table">등록된 FAQ가 없습니다.';
        if ($is_admin) {
            echo '<br><a href="' . G5_ADMIN_URL . '/faqmasterlist.php">FAQ를 새로 등록하시려면 FAQ관리</a> 메뉴를 이용하십시오.';
        }
        echo '</div>';
    }
}
?>
</div>

<?php 
echo get_paging($page_rows, $page, $total_page, $_SERVER['PHP_SELF'] . '?' . $qstr . '&amp;page=');
?>

<?php 
// 하단 HTML
echo '<div id="faq_thtml">' . conv_content($fm['fm_tail_html'], 1) . '</div>';
?>

<div id="faq_sch">
    <form name="faq_search_form" method="get">
    <input type="hidden" name="fm_id" value="<?php 
echo $fm_id;
?>
">
    <label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
    <input type="text" name="stx" value="<?php 
Ejemplo n.º 24
0
</td>
    </tr>
    <?php 
}
?>
    <?php 
if ($i == 0) {
    echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
}
?>
    </tbody>
    </table>
</div>

<?php 
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'] . '?' . $qstr . '&amp;domain=' . $domain . '&amp;page=');
if ($pagelist) {
    echo $pagelist;
}
?>

<script>
$(function(){
    $("#sch_sort").change(function(){ // select #sch_sort의 옵션이 바뀔때
        if($(this).val()=="vi_date"){ // 해당 value 값이 vi_date이면
            $("#sch_word").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+0d" }); // datepicker 실행
        }else{ // 아니라면
            $("#sch_word").datepicker("destroy"); // datepicker 미실행
        }
    });
Ejemplo n.º 25
0
    $list->set_view('sns', true);
    echo $list->run();
} else {
    $i = 0;
    $error = '<p class="sct_nofile">' . $list_file . ' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</p>';
}
if ($i == 0) {
    echo '<div>' . $error . '</div>';
}
$query_string = 'qname=' . $qname . '&amp;qexplan=' . $qexplan . '&amp;qid=' . $qid;
if ($qfrom && $qto) {
    $query_string .= '&amp;qfrom=' . $qfrom . '&amp;qto=' . $qto;
}
$query_string .= '&amp;qcaid=' . $qcaid . '&amp;q=' . urlencode($q);
$query_string .= '&amp;qsort=' . $qsort . '&amp;qorder=' . $qorder;
echo get_paging($config['cf_mobile_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'] . '?' . $query_string . '&amp;page=');
?>
    </div>
    <!-- } 검색결과 끝 -->

</div>
<!-- } 검색 끝 -->

<script>
function set_sort(qsort, qorder)
{
    var f = document.frmdetailsearch;
    f.qsort.value = qsort;
    f.qorder.value = qorder;
    f.submit();
}
Ejemplo n.º 26
0
    $list->set_view('it_icon', true);
    $list->set_view('sns', true);
    echo $list->run();
    // where 된 전체 상품수
    $total_count = $list->total_count;
    // 전체 페이지 계산
    $total_page = ceil($total_count / $items);
} else {
    echo '<div class="sct_nofile">' . str_replace(G5_PATH . '/', '', $skin_file) . ' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
}
?>

    <?php 
$qstr1 .= 'ca_id=' . $ca_id;
$qstr1 .= '&amp;sort=' . $sort . '&amp;sortodr=' . $sortodr;
echo get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'] . '?' . $qstr1 . '&amp;page=');
?>

    <?php 
// 하단 HTML
echo '<div id="sct_thtml">' . conv_content($ca['ca_tail_html'], 1) . '</div>';
?>
</div>
<!-- } 상품 목록 끝 -->

<?php 
if ($ca['ca_include_tail']) {
    @(include_once $ca['ca_include_tail']);
} else {
    include_once G5_SHOP_PATH . '/_tail.php';
}
Ejemplo n.º 27
0
            }
            $list[$idx][$i]['subject'] = $subject;
            $list[$idx][$i]['content'] = $content;
            $list[$idx][$i]['name'] = get_sideview($row['mb_id'], get_text(cut_str($row['wr_name'], $config['cf_cut_name'])), $row['wr_email'], $row['wr_homepage']);
            $k++;
            if ($k >= $rows) {
                break;
            }
        }
        sql_free_result($result);
        if ($k >= $rows) {
            break;
        }
        $from_record = 0;
    }
    $write_pages = get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'] . '?' . $search_query . '&amp;gr_id=' . $gr_id . '&amp;srows=' . $srows . '&amp;onetable=' . $onetable . '&amp;page=');
}
$group_select = '<label for="gr_id" class="sound_only">게시판 그룹선택</label><select name="gr_id" id="gr_id" class="select"><option value="">전체 분류';
$sql = " select gr_id, gr_subject from {$g5['group_table']} order by gr_id ";
$result = sql_query($sql);
for ($i = 0; $row = sql_fetch_array($result); $i++) {
    $group_select .= "<option value=\"" . $row['gr_id'] . "\"" . get_selected($_GET['gr_id'], $row['gr_id']) . ">" . $row['gr_subject'] . "</option>";
}
$group_select .= '</select>';
if (!$sfl) {
    $sfl = 'wr_subject';
}
if (!$sop) {
    $sop = 'or';
}
include_once $search_skin_path . '/search.skin.php';
Ejemplo n.º 28
0
<hr>

<?php 
//if (isset($stx))
//    echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>'."\n";
if (strstr($sfl, 'mb_id')) {
    $mb_id = $stx;
} else {
    $mb_id = '';
}
?>
</form>

<?php 
$pagelist = get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'] . '?' . $qstr . '&amp;page=');
echo $pagelist;
?>

<form name="fauthlist2" id="fauthlist2" action="./auth_update.php" method="post" autocomplete="off">
<input type="hidden" name="sfl" value="<?php 
echo $sfl;
?>
">
<input type="hidden" name="stx" value="<?php 
echo $stx;
?>
">
<input type="hidden" name="sst" value="<?php 
echo $sst;
?>
Ejemplo n.º 29
0
    $list->set_from_record($from_record);
    $list->set_view('it_img', true);
    $list->set_view('it_id', false);
    $list->set_view('it_name', true);
    $list->set_view('it_cust_price', false);
    $list->set_view('it_price', true);
    $list->set_view('it_icon', true);
    $list->set_view('sns', true);
    echo $list->run();
    // where 된 전체 상품수
    $total_count = $list->total_count;
    // 전체 페이지 계산
    $total_page = ceil($total_count / $items);
} else {
    echo '<div align="center">' . $ev['ev_mobile_skin'] . ' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
}
?>

<?php 
$qstr .= 'skin=' . $skin . '&amp;ev_id=' . $ev_id . '&amp;sort=' . $sort . '&amp;sortodr=' . $sortodr;
echo get_paging($config['cf_mobile_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?{$qstr}&amp;page=");
?>

<?php 
// 하단 HTML
echo '<div id="sev_thtml">' . conv_content($ev['ev_tail_html'], 1) . '</div>';
?>
<!-- } 이벤트 끝 -->

<?php 
include_once G5_MSHOP_PATH . '/_tail.php';
Ejemplo n.º 30
0
$page_rows = 15;
if(!$page) $page = 1;

$sql_all = "SELECT id FROM ".$wiki['changes_table']." WHERE bo_table = '".$wiki['bo_table']."'";				
$result = sql_query($sql_all);
$total_count = mysql_num_rows($result);

$total_page  = ceil($total_count / $page_rows);
$from_record = ($page - 1) * $page_rows;

$sql = "SELECT * FROM ".$wiki['changes_table']." WHERE bo_table = '".$wiki['bo_table']."' ORDER BY id DESC LIMIT $from_record, $page_rows";

$page_base_url = wiki_url('recent', array('page'=>''));
if($wiki['fancy_url']) $page_base_url .= '/';
$paging = get_paging(10, $page, $total_page, $page_base_url);


if($is_wiki_admin) {
	$clear_href = "javascript:clear_changes();";
	$delete_selected_href = "javascript:delete_selected_changes();";
} else {
	$clear_href = "";
	$delete_selected_href = "";
}

$list = array();
$res = sql_query($sql);
while($row = sql_fetch_array($res)) {
	if($row['target_type'] == "DOC") {
		$row['view_href'] = wiki_url('read', array('doc'=>$row[target]));