³»¿ë
<?
define('__ZBXE__',true);
require_once("/home/helpdesk/xe/config/config.inc.php");
$oContext = &Context::getInstance();
$oContext->init();
$help_url=("/home/helpdesk/helpdesk/");
?>
<meta http-equiv='content-type' content='text/php; charset=utf-8'>
<?
$logged_info = Context::get('logged_info');
$helper_no = $logged_info->member_srl; //no
$helper_id = $logged_info->user_id; //id
$helper_name = $logged_info->user_name; //À̸§
$helper_level = $logged_info->help_level; //·¹º§
$helper_com1 = $logged_info->help_comp_1; //1Â÷ ÁÖ¼Ò
$helper_com2 = $logged_info->help_comp_2; //2Â÷ ÁÖ¼Ò
$helper_in = $logged_info->help_in; //ÇïÆÛ À¯¹«
$helper_position = $logged_info->position; //Á÷±Þ
$helper_vacation = $logged_info->vacation; //ÈÞ¹«¼ö·®
$helper_post = $logged_info->help_post; //¼Ò¼Ó
//helper ±ÇÇÑÀÌ ÀÖ´ÂÁö È®ÀÎ!
if(!$helper_level) {
echo(" <script>
window.alert('·Î±×ÀÎ Á¤º¸°¡ ¾ø½À´Ï´Ù. ·Î±×ÀÎÇϽðí Á¢±ÙÇØ ÁÖ¼¼¿ä!')
window.close()
history.go(-1)
</script>
");
}
//helper ±ÇÇÑÀÌ ÀÖ´ÂÁö È®ÀÎ!
if($helper_level > 7) {
echo(" <script>
window.alert('»ç¿ë ±ÇÇÑÀÌ ¾ø½À´Ï´Ù.. ±ÇÇÑÀ» ¿øÇϽøé helpdesk ¹é»ó¼·°úÀå¿¡°Ô ¹®ÀÇÇϽñ⠹ٶø´Ï´Ù.(02-2172-8992)')
window.close()
history.go(-1)
</script>
");
}
//ip 3ÀÚ¸®·Î º¯È¯ ÇÔ¼ö
function changeIP ($str){
$strArr = explode (".",$str);
for ($i=0;$i < count($strArr); $i++) {
$resultArr[$i] = sprintf ("%03d", $strArr[$i]);
}
return implode(".",$resultArr);
}
/**
* cut string in utf-8
* @author gony (http://mygony.com)
* @param $str source string
* @param $len cut length
* @param $checkmb if this argument is true, function treat multibyte character as two bytes. default value is false.
* @param $tail abbreviation symbol
* @return string processed string
* ÆÄ¶ó¹ÌÅÍ ¼³¸í
* String $str : ¿øº» ¹®ÀÚ¿
* Integer $len : ¹®ÀÚ¿À» ÀÚ¸¦ ±æÀÌ
* Boolean $checkmb : ÀÌ °ªÀ» true·Î Çϸé ÇѱÛÀ» ¿µ¹®2ÀÚ¿Í °°ÀÌ Ãë±ÞÇÑ´Ù. ±âº»°ªÀº false
* String $tail : »ý·«ÈÄ ºÙÀÏ ÁÙÀÓ ±âÈ£
* ¹Ýȯ°ª
* {String} ó¸®µÈ ¹®ÀÚ¿
* ÁÖÀÇ!! ÀÌ ÇÔ¼ö´Â UTF-8 ¹®ÀÚ¿À» ´Ù·ì´Ï´Ù. ´Ù¸¥ charset¿¡´Â Àû¿ëµÇÁö ¾Ê½À´Ï´Ù.
*/
function strcut_utf8($str, $len, $checkmb=false, $tail='...') {
preg_match_all('/[\xEA-\xED][\x80-\xFF]{2}|./', $str, $match);
$m = $match[0];
$slen = strlen($str); // length of source string
$tlen = strlen($tail); // length of tail string
$mlen = count($m); // length of matched characters
if ($slen <= $len) return $str;
if (!$checkmb && $mlen <= $len) return $str;
$ret = array();
$count = 0;
for ($i=0; $i < $len; $i++) {
$count += ($checkmb && strlen($m[$i]) > 1)?2:1;
if ($count + $tlen > $len) break;
$ret[] = $m[$i];
}
return join('', $ret).$tail;
}
?>
<!-- <link rel="stylesheet" href="../../../css/jis.css"> -->
<script languge="javascript">
<!--
// üũ¹Ú½º Àüü ¼±Åà ¹× ÇØÁ¦
function checkBoxOnOff(){
if(frmList['g_idx[]'].length > 1){
if(frmList['g_idx[]'][0].checked == true){
for(var i = 0;i <frmList['g_idx[]'].length;i++){
frmList['g_idx[]'][i].checked = true;
}
}else{
for(var i = 0;i < frmList['g_idx[]'].length;i++){
frmList['g_idx[]'][i].checked = false;
}
}
}
}
// ¹è¿·Î µÈ üũ¹Ú½º üũ¿©ºÎ È®ÀÎ
function isCheckedBoxForDelete(form) {
var _cnt = 0;
for(i=1; i<form['g_idx[]'].length; i++){
if(form['g_idx[]'][i].checked == true){
_cnt++;
}
}
if(_cnt <= 0){
alert("[»èÁ¦Ç׸ñ]À»Ã¼Å©ÇØÁÖ¼¼¿ä");
return false;
}
return true;
}
//-->
</script>
<script language="JavaScript"><!--
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
cookie_str = document.cookie;
cookie_str.toString();
pos_start = cookie_str.indexOf(name);
pos_start = cookie_str.indexOf('=', pos_start);
pos_end = cookie_str.indexOf(';', pos_start);
if (pos_end <= 0) pos_end = cookie_str.length;
cookie_val = cookie_str.substring(pos_start + 1, pos_end);
if (cookie_val == "done")
return;
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
// -->
</script>
<script language="JavaScript"><!--
function namosw_goto(url, targetstr)
{
if (url == 'backward')
history.back(1);
else if (url == 'forward')
history.forward(1);
else {
if (targetstr == 'blank') {
window.open(url, 'win1');
} else {
var frameobj;
if (targetstr == '') targetstr = 'self';
if ((frameobj = eval(targetstr)) != null)
frameobj.location = url;
}
}
}
// -->
</script>
<script language="JavaScript">
<!--
function namosw_goto_byselect(sel, targetstr)
{
var index = sel.selectedIndex;
if (sel.options[index].value != '') {
if (targetstr == 'blank') {
window.open(sel.options[index].value, 'win1');
} else {
var frameobj;
if (targetstr == '') targetstr = 'self';
if ((frameobj = eval(targetstr)) != null)
frameobj.location = sel.options[index].value;
}
}
}
// -->
</script> | |