Beispiel #1
0
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_admin_design_mainVisual\n\t\tWHERE vtype='{$vtype}'\n\t");
$mysql->htmlspecialchars = 0;
$mysql->nl2br = 0;
$mysql->fetchArray("scriptCode,sourceCode");
$array = $mysql->array;
/*
템플릿 로드
*/
$tpl->skin_file_path("admin/_tpl/mainVisual.html");
/*
템플릿 함수
*/
function tab_active($tab_vtype)
{
    global $vtype;
    if ($vtype == $tab_vtype) {
        return " class=\"active\"";
    } else {
        return "";
    }
}
/*
템플릿 치환
*/
$tpl->skin_modeling("[tab_active_p]", tab_active("p"));
$tpl->skin_modeling("[tab_active_m]", tab_active("m"));
$tpl->skin_modeling("[vtype_value]", $vtype);
$tpl->skin_modeling("[scriptCode]", $lib->htmldecode($array['scriptCode']));
$tpl->skin_modeling("[sourceCode]", $lib->htmldecode($array['sourceCode']));
echo $tpl->skin_echo();
Beispiel #2
0
}
/*
템플릿 치환
*/
//header
echo $header->skin_echo();
//loop
if ($array_total > 0) {
    $i = 0;
    do {
        $mysql->htmlspecialchars = 1;
        $mysql->nl2br = 1;
        $mysql->fetchArray("idno,min_level,max_level,memo,regdate,me_idno,me_nick");
        $array = $mysql->array;
        $loop->skin_modeling("[number]", $paging->getNo($i));
        $i++;
        $loop->skin_modeling("[receive]", receive_func());
        $loop->skin_modeling("[memo]", "<a href=\"" . __URL_PATH__ . "admin/?p=maillingList_view&act=" . $array['idno'] . "\">" . $lib->func_length_limit(strip_tags($lib->htmldecode($array['memo'])), 0, 40) . "</a>");
        $loop->skin_modeling("[regdate]", "<span title=\"" . $array['regdate'] . "\">" . date("Y.m.d H:i", strtotime($array['regdate'])) . "</span>");
        $loop->skin_modeling("[view_btn]", "<a href=\"" . __URL_PATH__ . "admin/?p=maillingList_view&act=" . $array['idno'] . "\" class=\"__btn_s_detail\" title=\"상세 보기\"></a>");
        echo $loop->skin_echo();
    } while ($mysql->nextRec());
}
//footer
if ($array_total > 0) {
    $footer->skin_modeling_hideArea("[{not_content_start}]", "[{not_content_end}]", "hide");
} else {
    $footer->skin_modeling_hideArea("[{not_content_start}]", "[{not_content_end}]", "show");
}
$footer->skin_modeling("[paging_area]", $paging->Show(__URL_PATH__ . "admin/?p=maillingList"));
echo $footer->skin_echo();
Beispiel #3
0
*/
$mysql->select("\n\t\tSELECT href,forward\n\t\tFROM toony_admin_menuInfo\n\t\tWHERE callName='{$article}' AND vtype='p' AND drop_regdate IS NULL\n\t");
if ($mysql->fetch("href") == "fm") {
    $article = $mysql->fetch("forward");
}
/*
article로 DB를 색인하여 페이지 링크,링크문서 정보를 로드함
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_admin_menuInfo\n\t\tWHERE callName='{$article}' AND drop_regdate IS NULL AND vtype='p'\n\t");
$mysql->fetchArray("link,linkDoc,class,href,depth,parent");
$menuInfo = $mysql->array;
/*
메뉴 타입이 수동 문서 연결인 경우
*/
if ($menuInfo['href'] == "mp") {
    $p = $lib->htmldecode($menuInfo['linkDoc']);
    /*
    메뉴 타입이 페이지&모듈 연결인 경우, URI형식의 문자열을 GET변수화 처리
    */
} else {
    $parseUrl = parse_url($lib->htmldecode($menuInfo['link']));
    $parseStr = $parseUrl['query'];
    parse_str($parseStr, $arrs);
    foreach ($arrs as $val => $key) {
        global ${$val};
        ${$val} = $key;
    }
}
/*
주소표시줄에 수동으로 입력한 $m 혹은 $p 값이 있는 경우,
현재 메뉴를 Active시킨 채 내용 영역에 수동 페이지를 호출하기 위한 설정