コード例 #1
0
ファイル: itemuseform.php プロジェクト: ned3y2k/youngcart5
    check_itemuse_write($it_id, $member['mb_id']);
} else {
    if ($w == "u") {
        $use = sql_fetch(" select * from {$g5['g5_shop_item_use_table']} where is_id = '{$is_id}' ");
        if (!$use) {
            alert_close("사용후기 정보가 없습니다.");
        }
        $it_id = $use['it_id'];
        $is_score = $use['is_score'];
        if (!$is_admin && $use['mb_id'] != $member['mb_id']) {
            alert_close("자신의 사용후기만 수정이 가능합니다.");
        }
    }
}
include_once G5_PATH . '/head.sub.php';
$is_dhtml_editor = false;
// 모바일에서는 DHTML 에디터 사용불가
if ($config['cf_editor'] && !G5_IS_MOBILE) {
    $is_dhtml_editor = true;
}
$editor_html = editor_html('is_content', get_text($use['is_content'], 0), $is_dhtml_editor);
$editor_js = '';
$editor_js .= get_editor_js('is_content', $is_dhtml_editor);
$editor_js .= chk_editor_js('is_content', $is_dhtml_editor);
$itemuseform_skin = G5_MSHOP_SKIN_PATH . '/itemuseform.skin.php';
if (!file_exists($itemuseform_skin)) {
    echo str_replace(G5_PATH . '/', '', $itemuseform_skin) . ' 스킨 파일이 존재하지 않습니다.';
} else {
    include_once $itemuseform_skin;
}
include_once G5_PATH . '/tail.sub.php';
コード例 #2
0
ファイル: itemqaform.php プロジェクト: davis00/youngcart
}
if ($w == "u") {
    $qa = sql_fetch(" select * from {$g5['g5_shop_item_qa_table']} where iq_id = '{$iq_id}' ");
    if (!$qa) {
        alert_close("상품문의 정보가 없습니다.");
    }
    $it_id = $qa['it_id'];
    if (!$iq_admin && $qa['mb_id'] != $member['mb_id']) {
        alert_close("자신의 상품문의만 수정이 가능합니다.");
    }
    if ($qa['iq_secret']) {
        $chk_secret = 'checked="checked"';
    }
}
include_once G5_PATH . '/head.sub.php';
$is_dhtml_editor = false;
// 모바일에서는 DHTML 에디터 사용불가
if ($config['cf_editor'] && (!is_mobile() || defined('G5_IS_MOBILE_DHTML_USE') && G5_IS_MOBILE_DHTML_USE)) {
    $is_dhtml_editor = true;
}
$editor_html = editor_html('iq_question', get_text($qa['iq_question'], 0), $is_dhtml_editor);
$editor_js = '';
$editor_js .= get_editor_js('iq_question', $is_dhtml_editor);
$editor_js .= chk_editor_js('iq_question', $is_dhtml_editor);
$itemqaform_skin = G5_MSHOP_SKIN_PATH . '/itemqaform.skin.php';
if (!file_exists($itemqaform_skin)) {
    echo str_replace(G5_PATH . '/', '', $itemqaform_skin) . ' 스킨 파일이 존재하지 않습니다.';
} else {
    include_once $itemqaform_skin;
}
include_once G5_PATH . '/tail.sub.php';
コード例 #3
0
ファイル: contentform.php プロジェクト: kimyongyeon/myproject
    <a href="./contentlist.php" class="btn btn-default">목록</a>
</div>

</form>

<script>
function frmcontentform_check(f)
{
    errmsg = "";
    errfld = "";

    <?php 
echo get_editor_js('co_content');
?>
    <?php 
echo chk_editor_js('co_content');
?>
    <?php 
echo get_editor_js('co_mobile_content');
?>
    check_field(f.co_id, "ID를 입력하세요.");
    check_field(f.co_subject, "제목을 입력하세요.");
    check_field(f.co_content, "내용을 입력하세요.");

    if (errmsg != "") {
        alert(errmsg);
        errfld.focus();
        return false;
    }
    return true;
}
コード例 #4
0
ファイル: write.skin.php プロジェクト: eeewq123/aaa
        if (result)
            obj.value = "html2";
        else
            obj.value = "html1";
    }
    else
        obj.value = "";
}

function fwrite_submit(f)
{
    <?php 
echo get_editor_js('wr_content', $is_dhtml_editor);
?>
    <?php 
echo chk_editor_js('wr_content', $is_dhtml_editor);
?>

    var subject = "";
    var content = "";
    $.ajax({
        url: g5_bbs_url+"/ajax.filter.php",
        type: "POST",
        data: {
            "subject": f.wr_subject.value,
            "content": f.wr_content.value
        },
        dataType: "json",
        async: false,
        cache: false,
        success: function(data, textStatus) {
コード例 #5
0
ファイル: mail_form.php プロジェクト: kimyongyeon/myproject
<script>
function fmailform_check(f)
{
    errmsg = "";
    errfld = "";

    check_field(f.ma_subject, "제목을 입력하세요.");
    //check_field(f.ma_content, "내용을 입력하세요.");

    if (errmsg != "") {
        alert(errmsg);
        errfld.focus();
        return false;
    }

    <?php 
echo get_editor_js("ma_content");
?>
    <?php 
echo chk_editor_js("ma_content");
?>

     return true;
 }

document.fmailform.ma_subject.focus();
</script>

<?php 
include_once './admin.tail.php';
コード例 #6
0
ファイル: itemqansform.php プロジェクト: peb317/gbamn
if ($skin_row['qa_' . MOBILE_ . 'set']) {
    $wset = apms_unpack($skin_row['qa_' . MOBILE_ . 'set']);
}
// 데모
if ($is_demo) {
    @(include THEMA_PATH . '/assets/demo.config.php');
}
$skin_path = G5_SKIN_PATH . '/apms/qa/' . $skin_name;
$skin_url = G5_SKIN_URL . '/apms/qa/' . $skin_name;
if ($move) {
    include_once './_head.php';
} else {
    include_once G5_PATH . '/head.sub.php';
    @(include_once THEMA_PATH . '/head.sub.php');
}
$is_dhtml_editor = false;
// 모바일에서는 DHTML 에디터 사용불가
if ($config['cf_editor'] && !G5_IS_MOBILE) {
    $is_dhtml_editor = true;
}
$editor_html = editor_html('iq_answer', get_text($qa['iq_answer'], 0), $is_dhtml_editor);
$editor_js = '';
$editor_js .= get_editor_js('iq_answer', $is_dhtml_editor);
$editor_js .= chk_editor_js('iq_answer', $is_dhtml_editor);
include_once $skin_path . '/qansform.skin.php';
if ($move) {
    include_once './_tail.php';
} else {
    @(include_once THEMA_PATH . '/tail.sub.php');
    include_once G5_PATH . '/tail.sub.php';
}