Exemple #1
0
 $skin_write->skin_modeling("[board_id_value]", $board_id);
 $skin_write->skin_modeling("[mode_value]", $mode);
 $skin_write->skin_modeling("[read_value]", $read);
 $skin_write->skin_modeling("[viewDir_value]", $viewDir);
 $skin_write->skin_modeling("[page_value]", $page);
 $skin_write->skin_modeling("[where_value]", $where);
 $skin_write->skin_modeling("[keyword_value]", $keyword);
 $skin_write->skin_modeling("[article_value]", $article);
 $skin_write->skin_modeling("[category_value]", $category);
 $skin_write->skin_modeling("[type_value]", type_act());
 $skin_write->skin_modeling("[writer]", $array['writer']);
 $skin_write->skin_modeling("[write_title]", write_title_echo());
 $skin_write->skin_modeling("[option_notice]", write_option_notice());
 $skin_write->skin_modeling("[option_secret]", write_option_secret());
 $skin_write->skin_modeling("[option_email]", write_option_email());
 $skin_write->skin_modeling("[category_selectbox]", bbs_category());
 $skin_write->skin_modeling("[subject]", $array['subject']);
 if (!isset($__toony_member_idno) && $mode == "modify") {
     $skin_write->skin_modeling("[password]", $array['password']);
     $skin_write->skin_modeling("[email]", $array['email']);
 } else {
     if (!isset($__toony_member_idno)) {
         $skin_write->skin_modeling("[password]", "");
         $skin_write->skin_modeling("[email]", "");
     } else {
         $skin_write->skin_modeling("[password]", $array['password']);
         $skin_write->skin_modeling("[email]", $array['email']);
     }
 }
 $skin_write->skin_modeling("[memo]", $array['ment']);
 $skin_write->skin_modeling("[file1_name]", write_file_ed(1));
Exemple #2
0
/*
스킨 CSS로드
*/
echo "\n<link href=\"" . __URL_PATH__ . "modules/board/skin/{$c_array['skin']}/{$viewDir}style.css\" rel=\"stylesheet\" type=\"text/css\" />";
/*
템플릿 치환
*/
//header
include_once __DIR_PATH__ . "modules/board/skin/" . $c_array['skin'] . "/plugins/index_header.inc.php";
$header->skin_modeling("[/boardskinDir/]", __URL_PATH__ . "modules/board/skin/" . $c_array['skin'] . "/" . $viewDir);
$header->skin_modeling("[board_id_value]", $board_id);
$header->skin_modeling("[page_value]", $page);
$header->skin_modeling("[article_value]", $article);
$header->skin_modeling("[category_value]", $category);
$header->skin_modeling("[setting_btn]", bbs_setting_btn());
$header->skin_modeling("[category_selectbox]", bbs_category());
$header->skin_modeling("[board_title]", $c_array['name']);
if (($member['me_level'] <= $c_array['controll_level'] || $member['me_admin'] == "Y") && $viewType == "p") {
    $header->skin_modeling_hideArea("[{controll_chk_start}]", "[{controll_chk_end}]", "show");
} else {
    $header->skin_modeling_hideArea("[{controll_chk_start}]", "[{controll_chk_end}]", "hide");
}
if ($c_array['use_likes'] == "Y") {
    $header->skin_modeling_hideArea("[{likes_start}]", "[{likes_end}]", "show");
} else {
    $header->skin_modeling_hideArea("[{likes_start}]", "[{likes_end}]", "hide");
}
echo $header->skin_echo();
//notice array
$paging_query = "\n\t\tSELECT *,\n\t\t(\n\t\t\tSELECT COUNT(*)\n\t\t\tFROM toony_module_board_comment_{$board_id}\n\t\t\tWHERE bo_idno=A.idno\n\t\t) cmtnum,\n\t\t(\n\t\t\tSELECT COUNT(*)\n\t\t\tFROM toony_module_board_like\n\t\t\tWHERE board_id='{$board_id}' AND read_idno=A.idno AND likes>0\n\t\t) likes_count,\n\t\t(\n\t\t\tSELECT COUNT(*)\n\t\t\tFROM toony_module_board_like\n\t\t\tWHERE board_id='{$board_id}' AND read_idno=A.idno AND unlikes>0\n\t\t) unlikes_count\n\t\tFROM toony_module_board_data_{$board_id} A\n\t\tWHERE A.use_notice='Y'\n\t\tORDER BY A.idno DESC\n\t";
$mysql->select($paging_query);