|
");
}
/********************************************************************************************************** ۾ */
//͵üũ
function WriteCheck()
{
var f = document.WriteForm;
if (f.isRoot.value == "0" && f.mbid.value == "" && f.BB_NAME.value == "")
{
alert('\n̸ Է ּ. \n');
f.BB_NAME.focus();
return false;
}
if (f.BB_EMAIL.value)
{
if ( f.BB_EMAIL.value.length <= 6 || f.BB_EMAIL.value.indexOf ('@', 0) == -1 || f.BB_EMAIL.value.indexOf ('.', 0) == -1)
{
alert('̸ּҰ ùٸ ʽϴ. \n');
f.BB_EMAIL.value = "";
f.BB_EMAIL.focus();
return false;
}
}
if (f.BB_SUBJECT.value == "")
{
alert('\n Է ּ. \n');
f.BB_SUBJECT.focus();
return false;
}
if (f.is_category.value)
{
if (!f.BB_CATEGORY.value)
{
alert('\n' + f.BB_CATEGORY.options[0].text + '() ּ. \n');
f.BB_CATEGORY.focus(); //ϹݼƮ
return false;
}
}
if(getEditCheck(f)) return false; //ͺüũ
if (CheckWords(f.BB_SUBJECT.value) != '' || CheckWords(f.BB_CONTENT.value) != '')
{
alert('\nڿ ѵ ܾ Ǿϴ. \n');
return false;
}
if (f.BB_SECRET.checked == true)
{
if (f.BB_PASS.value == "")
{
alert('\n۷ 쿡 ݵ йȣ Է ּž մϴ. \n');
f.BB_PASS.focus();
return false;
}
}
var uptmp = 0;
if (f.useup.value != '0')
{
f.BB_FILE.value = getUploadFiles(); //εüũ
uptmp = 1;
}
if (f.uselk.value != '0')
{
f.BB_LINK.value = getLinkFiles(); //ũüũ
uptmp = 1;
}
if (uptmp == 0)
{
alert('̹ ÷ε ʾҽϴ. ');
return false;
}
f.Nparam.value = NparamSetting();
}
//ɼüũ
function OptionCheck()
{
var home = document.getElementById('Option_Url');
var prev = document.getElementById('Option_Preview');
var img = document.getElementById('Option_Img');
var f = document.WriteForm;
if(!f.mbid.value)
{
if (home.style.display == 'none') { home.style.display = 'block'; } else { home.style.display = 'none'; }
}
if (prev.style.display == 'none') { prev.style.display = 'block'; } else { prev.style.display = 'none'; }
if (img.src.indexOf('dot_option.gif') != -1)
{
img.src = img.src.replace('dot_option.gif','dot_option1.gif');
}
else {
img.src = img.src.replace('dot_option1.gif','dot_option.gif');
}
}
//̵üũ
function NparamSetting()
{
var pam = getThisUrl();
pam += '&query=' + getUriString('query');
pam += '&write_type=' + getUriString('write_type');
pam += '&uid=' + getUriString('uid');
pam += '&p=' + getUriString('p');
return pam;
}
/********************************************************************************************************** Ƽüũ */
var Multi_Check_Uid = '';
function Multi_Check(obj,e,skindir,isRoot,isAdmin)
{
var ml = document.getElementById('MultiCheckLayer');
var tg = '';
var x = (e.pageX) ? e.pageX : document.body.scrollLeft+event.clientX;
var y = (e.pageY) ? e.pageY : document.body.scrollTop+event.clientY;
x += 10; y -= 20;
if (obj.checked == true) Multi_Check_Uid += obj.value + ';';
else Multi_Check_Uid = Multi_Check_Uid.replace(obj.value + ';' , '');
if (Multi_Check_Uid)
{
var multiarr = Multi_Check_Uid.split(';');
tg += "";
tg += "";
tg += " ";
tg += " ";
tg += " ";
tg += " | ";
tg += "";
tg += " ";
if(isRoot != 0 || isAdmin != 0)
{
tg += " ";
if (isRoot != 0)
{
tg += " ";
tg += "";
}
}
if(isRoot == 0 && isAdmin == 0)
{
tg += "(õ ڷ : "+(multiarr.length-1)+") ";
}
tg += " | ";
tg += " ";
ml.innerHTML = tg;
}
else {
ml.innerHTML = '';
}
}
function Multi_Check_Que(n)
{
var i;
var l = document.getElementsByName('At[]');
switch (n)
{
case 1 :
Multi_Check_Uid = '';
for ( i = 0; i < l.length; i++)
{
l[i].checked = true;
Multi_Check_Uid += l[i].value + ';';
}
break;
case 2 :
Multi_Check_Uid = '';
for ( i = 0; i < l.length; i++)
{
l[i].checked = false;
Multi_Check_Uid = Multi_Check_Uid.replace(l[i].value + ';' , '');
}
break;
case 3 :
Multi_Check_Uid = '';
for ( i = 0; i < l.length; i++)
{
if(l[i].checked == true)
{
l[i].checked = false;
Multi_Check_Uid = Multi_Check_Uid.replace(l[i].value + ';' , '');
}
else {
l[i].checked = true;
Multi_Check_Uid += l[i].value + ';';
}
}
break;
case 4 :
if (!Multi_Check_Uid) return false;
location.href = getThisUrl() + '&query=multi&p=' + getUriString('p') + '&MultiUid=' + Multi_Check_Uid;
break;
case 5 :
if (!Multi_Check_Uid) return false;
if (!confirm(' ʹ Ұմϴ. \n\n Ͻðڽϱ?')) return false;
location.href = getThisUrl() + '&action=multi_delete&p=' + getUriString('p') + '&MultiUid=' + Multi_Check_Uid;
break;
case 6 :
if (!Multi_Check_Uid) return false;
window.open('./bbs/lib/module/mvcopy/mvcopy.php?table='+getUriString('table')+'&type=move&MultiUid='+Multi_Check_Uid,'mvcopywin','left=0,top=0,width=300,height=450');
break;
case 7 :
if (!Multi_Check_Uid) return false;
window.open('./bbs/lib/module/mvcopy/mvcopy.php?table='+getUriString('table')+'&type=copy&MultiUid='+Multi_Check_Uid,'mvcopywin','left=0,top=0,width=300,height=450');
break;
}
}
/********************************************************************************************************** ڸƮ */
//ڸƮ üũ
function CommentCheck(f)
{
if (f.write_perm.value == '0')
{
alert('˼մϴ. ǰߵ ϴ. ');
f.RP_CONTENT.disabled = true;
f.RP_CONTENT.style.background = '#EFEFEF';
return false;
}
if (f.RP_CONTENT.value == "")
{
alert('ǰ Էµ ʾҽϴ. ');
f.RP_CONTENT.focus();
return false;
}
if (CheckWords(f.RP_CONTENT.value) != '')
{
alert('\nڿ ѵ ܾ Ǿϴ. \n');
return false;
}
if (!f.RP_NAME.value || f.RP_NAME.value == '̸' )
{
alert('̸ Էµ ʾҽϴ. ');
f.RP_NAME.focus();
return false;
}
if (!f.isPass.value)
{
if (!f.RP_PASS.value || f.RP_PASS.value == 'йȣ')
{
if (!confirm('\nйȣ Է ø Ұմϴ. \n\nйȣ Է¾ Ͻðڽϱ?\n'))
{
f.RP_PASS.focus();
return false;
}
}
}
if (!confirm('\nԷϽ ڸƮ Ͻðڽϱ? \n'))
{
return false;
}
if (f.useup.value != '0')
{
f.RP_FILE.value = getUploadFiles();
}
if (f.uselink.value != '0')
{
f.RP_LINK.value = getLinkFiles();
}
f.Nparam.value = getThisUrl() + '&query=view&uid=' + getUriString('uid') + '&p=' + getUriString('p');
}
//ڸƮ
function getCommentVote(use)
{
if (use)
{
var tag = "";
tag += "";
document.write(tag);
if(navigator.userAgent.indexOf('Opera') == -1 && navigator.userAgent.indexOf('Netscape') == -1)
{
getSelectToLayer(document.getElementById('RP_VOTE'),100,'');
}
}
}
//ڸƮ
function getCommentVisible(obj)
{
var l = document.getElementById('Comment_Layer');
if(obj.src.indexOf('_show.gif') != -1)
{
obj.src = obj.src.replace('_show.gif', '_hide.gif');
l.style.display = 'block';
}
else
{
obj.src = obj.src.replace('_hide.gif', '_show.gif');
l.style.display = 'none';
}
}
//ڸƮϱ üũ--> display : none
function CommentWritePermCheck()
{
var f = document.CommentForm;
var l = document.getElementById('CommentTable');
if (f.write_perm.value == '0')
{
l.style.display = 'none';
}
else{
l.style.display = 'block';
}
}
//ڸƮ ũüũ
function getCommentEditLink(op,skinimg)
{
if (op)
{
document.write(" ");
document.write("");
document.write("[]");
}
}
/********************************************************************************************************** ÷,ũ */
//÷üũ
function getUpfileNumIcon(enable , files , num , down , table, uid, skin , link , where , cols)
{
if (num > 0)
{
var string = "";
string += "";
string += " ÷̹ " + num + "";
string += "(ȸ "+commaSplit(down)+")";
string += "";
document.write(string);
}
}
//Ϸ̾ show
function showLayerUpfile(enable , files , table , uid , where , cols , num , link , skin , down , e)
{
if (!enable)
{
alert('˼մϴ. ٿε ϴ. ');
return false;
}
var x = (e.pageX) ? e.pageX : document.body.scrollLeft+event.clientX;
var y = (e.pageY) ? e.pageY : document.body.scrollTop+event.clientY;
var to = "";
var tl = document.getElementById('tmp_Upfile_Show_Layer');
var ly = LayerUpfile(enable , files + link , table, uid , where , cols , 'return');
var wt = parseInt(num/cols) > 0 ? cols * 220 : (num%cols) * 220;
wt = num == 1 ? 270 : wt;
tl.style.position = 'absolute';
tl.style.left = x;
tl.style.top = y;
to += "";
to += " | ";
to += " | ";
to += "";
to += " ÷ " + num + "";
to += "(ٿε "+commaSplit(down)+")";
to += " | ݱ ";
to += " | ";
to += " | ";
to += "" + ly + " | ";
to += " ";
tl.innerHTML = to;
document.getElementById('upFile_Tmp_Layer').style.background = '#F5F3F5';
document.getElementById('upFile_Tmp_Layer').style.width = '100%';
}
//Ϸ̾
function hideLayerUpfile()
{
document.getElementById('tmp_Upfile_Show_Layer').innerHTML = "";
}
|
|
ǰ ̹ ۱ e̿ ֽϴ. ܺ մϴ. |
繫: |
õ 1 84, 1305ȣ (굿, ̽̿Ÿ8) |
TEL : 070-7017-9292 | FAX : 02-6008-7130 | E-Mail : wecando@designjoy.net |
ڵϹȣ:283-36-00545 | ǸžŰ: Ű 2004-207ȣ | ǥ: |
Copyright 2004-2018 e All right reserved. |
|
|
|
|
|
|