"); } function imgpreview2(id,uid) { var KimsonPopupCheck = getPopUpFlag(window.open('','iwin','left=0,top=0,width=100,height=100,scrollbars=yes,status=yes')); KimsonPopupCheck.document.write("
\
");
}
function showInvWin(url)
{
getPopUpFlag(window.open(url , 'articlewin' , 'left=0,top=0,width=800,height=600,scrollbars=yes,status=yes'));
}
function zoom(uid)
{
window.open('../_system/module/shop/zoom.php?uid=' + uid,'','left=0,top=0,width=480,height=555,scrollbars=no,status=yes');
}
function getTpriceLoyaltyJs(tprice,val)
{
var tmpval = val ? val : 1;
return parseInt(Math.floor(parseInt(tprice)/tmpval ) * tmpval);
}
function getLoginNeed()
{
if(confirm('·Î±×ÀÎÇÏ¼Å¾ß ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. \n\nÁö±Ý ·Î±×ÀÎÇϽðڽÀ´Ï±î?'))
{
location.href = "./login.php?referer=" + escape(location.href);
}
}
function getDownInfo(uid)
{
window.open('../_system/module/upload/info.php?uid=' + uid,'','left=0,top=0,width=480,height=555,scrollbars=yes,status=yes');
}
function getMessenger(id)
{
window.open('../_system/module/messenger/index.php?id=' + id,'','left=0,top=0,width=550,height=650,scrollbars=no,status=yes,resizable=yes');
}
function getPermNeed()
{
alert('Á¢±ÙÇÏ½Ç ±ÇÇÑÀÌ ¾ø½À´Ï´Ù. \n\n±ÇÇÑÀ» È®ÀÎÇØÁÖ¼¼¿ä.');
return false;
}
//ÆäÀÌ¡ó¸®
function getPageLink(lnum,p,tpage,imgpath)
{
var g_p1 = " ÀÌÀü";
var g_p2 = " ÀÌÀü";
var g_n1 = "´ÙÀ½ ";
var g_n2 = "´ÙÀ½ ";
var g_cn = "";
var g_q = " ¸Ç¾Õ ";
if(p < lnum+1) { g_q += g_p1; }
else{ var pp = parseInt((p-1)/lnum)*lnum; g_q += ""+g_p2+"";} g_q += g_cn;
var st1 = parseInt((p-1)/lnum)*lnum + 1;
var st2 = st1 + lnum;
for(var jn = st1; jn < st2; jn++)
if ( jn <= tpage)
(jn == p)? g_q += ""+jn+""+g_cn : g_q += ""+jn+""+g_cn;
if(tpage < lnum || tpage < jn) { g_q += g_n1; }
else{var np = jn; g_q += ""+g_n2+""; }
g_q += " ¸Ç³¡ ";
document.write(g_q);
}
//ÆäÀÌÁöŬ¸¯
function getPageGo(n)
{
var p = getUriString('p');
var que = location.href.replace('&p='+p,'');
que = que.indexOf('?') != -1 ? que : que + '?';
que = que.replace('&q=view&uid=' + getUriString('uid') , '');
var xurl = que.split('#');
location.href= xurl[0] + '&p=' + n;
}
//ÆĶó¹ÌÅÍ°ª
function getUriString(param)
{
var QuerySplit = location.href.split('?');
var ResultQuer = QuerySplit[1] ? QuerySplit[1].split('&') : '';
for (var i = 0; i < ResultQuer.length; i++)
{
var keyval = ResultQuer[i].split('=');
if (param == keyval[0]) return keyval[1];
}
return "";
}function getDateFormat(date , type)
{
var ck;
var rtstr = "";
var j = 0;
for(var i = 0; i < type.length; i++)
{
if(type.substring(i,i+1) == 'x')
{
rtstr += date.substring(j,j+1);
}
else {
j--;
rtstr += type.substring(i,i+1);
}
j++;
}
document.write(rtstr);
}
function getJosa(str, tail)
{
strTemp = str.substr(str.length - 1);
return ((strTemp.charCodeAt(0) - 16) % 28 != 0) ? str + tail.substr(0, 1) : str + tail.substr(1, 1);
}
//ŸÀÔºñ±³ (ºñ±³¹®ÀÚ , ºñ±³Çü½Ä ; ex: getTypeCheck(string , "1234567890") )
function getTypeCheck (s, spc)
{
var i;
for(i=0; i< s.length; i++)
{
if (spc.indexOf(s.substring(i, i+1)) < 0)
{
return false;
}
}
return true;
}
//ÄÞ¸¶»ðÀÔ (number_format)
function commaSplit(srcNumber)
{
var txtNumber = '' + srcNumber;
var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
var arrNumber = txtNumber.split('.');
arrNumber[0] += '.';
do {
arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2');
}
while (rxSplit.test(arrNumber[0]));
if (arrNumber.length > 1) {
return arrNumber.join('');
}
else {
return arrNumber[0].split('.')[0];
}
}
//ÄÞ¸¶Á¦°Å
function filterNum(str)
{
return str.replace(/^\$|,/g, "");
}
//¼ýÀÚüũ
function commaInsert(field)
{
if (!getTypeCheck(field.value , "0123456789,"))
{
alert('¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä. ');
field.value = '';
field.focus();
return false;
}
field.value = commaSplit(filterNum(field.value));
}
//¿µ¹®¼Ò¹®ÀÚ&_üũ
function engTableIdInsert(field)
{
if (!getTypeCheck(field.value,"abcdefghijklmnopqrstuvwxyz1234567890_"))
{
alert('¿µ¹®¼Ò¹®ÀÚ, ¼ýÀÚ, \'_\' ¸¸ °¡´ÉÇÕ´Ï´Ù. ');
field.value = '';
field.focus();
return false;
}
}
//¼ýÀÚüũ2
function InPutCheck(field,str)
{
if (!getTypeCheck(field.value,str))
{
alert('Çã¿ëÄ¡ ¾Ê´Â ÀԷ°ªÀ» ÀÔ·Â Çϼ̽À´Ï´Ù.');
field.value = '';
field.focus();
return false;
}
}
function getHttprequest(URL)
{
var xmlhttp = null;
if(window.XMLHttpRequest)
{
xmlhttp = new XMLHttpRequest();
} else
{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open('GET', URL , false);
xmlhttp.onreadystatechange = function()
{
if(xmlhttp.readyState==4 && xmlhttp.status == 200 && xmlhttp.statusText=='OK')
{
responseText = xmlhttp.responseText;
}
}
xmlhttp.send();
xmlhttp = "";
return responseText.replace(/\n/g , '
');
} function docSearch(layer)
{
var url = './kimson.layout.doc.drop.php?layer=' + layer;
getPopUpFlag(window.open(url , '' , 'left=0,top=0,width=650,height=550,scrollbars=yes,status=yes,resizable=yes'));
}
function MemberSendWin(type,id)
{
if (type == 'sms')
{
var url = "./module.php?module=sms&q=phone&id=" + id;
getPopUpFlag(window.open(url , '' , 'left=0,top=0,width=170,height=390,scrollbars=no,status=yes,resizable=no'));
}
else {
getMemberWin(id+"&q="+type);
}
}
function MemberManager(que)
{
var url = './module.php?module=member&id=' + que;
getPopUpFlag(window.open(url , '' , 'left=0,top=0,width=950,height=680,scrollbars=yes,status=yes,resizable=yes'));
}
function OffMbrManager(que)
{
var url = './module.php?module=member/off&id=' + que;
getPopUpFlag(window.open(url , '' , 'left=0,top=0,width=950,height=680,scrollbars=yes,status=yes,resizable=yes'));
}
function sMemberView(f,tbl)
{
var url = './kimson.member.main.view.php?tbl='+tbl+'&sql=' + f.value;
getPopUpFlag(window.open(url , '' , 'left=0,top=0,width=650,height=550,scrollbars=yes,status=yes,resizable=yes'));
}
function sAddrView(f,type)
{
}
function orderWin(que)
{
var url = './shop.order.main.view.php?orderid='+que;
getPopUpFlag(window.open(url , '' , 'left=0,top=0,width=950,height=650,scrollbars=yes,status=yes,resizable=yes'));
}
function goodsDrop(field,cat)
{
var url = './shop.goods.drop.php?cat='+cat+'&field='+field;
getPopUpFlag(window.open(url , '' , 'left=0,top=0,width=800,height=650,scrollbars=yes,status=yes,resizable=yes'));
}
function SearchCheck(f)
{
if(f.d_regis1.value&&f.d_regis2.value)
{
if(f.d_regis1.value>f.d_regis2.value)
{
alert("\n°Ë»ö Á¶°ÇÁß ±â°£ °Ë»öÀÇ ¼³Á¤ÀÌ À߸ø µÇ¾ú½À´Ï´Ù.\n");
f.d_regis2.value="";
return false;
}
}
}
function InPutCheck(field,str)
{
if (!getTypeCheck(field.value,str))
{
alert('Çã¿ëÄ¡ ¾Ê´Â ÀԷ°ªÀ» ÀÔ·Â Çϼ̽À´Ï´Ù.');
field.value = '';
field.focus();
return false;
}
}
function BbsInPutCheck(field,str,nfield)
{
if (!getTypeCheck(field.value,str))
{
alert('Çã¿ëÄ¡ ¾Ê´Â ÀԷ°ªÀ» ÀÔ·Â Çϼ̽À´Ï´Ù.');
field.value = '';
field.focus();
return false;
}
document.getElementById(nfield).value=0;
if(field.value)
{
document.getElementById(nfield).disabled=true;
}
else
document.getElementById(nfield).disabled=false;
}
Apache / PHP 4.4.9p2 / Mysql 4.0.30-log / Kims-ON 1.2.0 - 2007.12.01 |