<?php require_once "init.php"; //$room_name = "2층 2303 회의실 1(원형)"; if ($_GET["date"] == '') { $_GET["date"] = date("Y-m-d"); } $m = new modlist("roomreserve"); $m->setopt("listall", 1); $colors = array("#0072bc", "#00a651", "#f7941d", "ff66cc", "9999ff", "33ccff", "ccff33"); $line = array(); $cnt = 0; while ($data = $m->get("*", "rr_room='" . $room_name . "' and rr_date='" . $_GET["date"] . "' and rr_deleted='0'")) { $line[] = $data; $subject = $data["rr_subject"]; $t_b = $data["rr_time_begin"]; $t_e = $data["rr_time_end"]; $du_b_h = substr($t_b, 0, 2); $du_b_m = substr($t_b, 2, 2); $du_e_h = substr($t_e, 0, 2); $du_e_m = substr($t_e, 2, 2); $resv_time = $du_b_h . ":" . $du_b_m . "-" . $du_e_h . ":" . $du_e_m; if ($data["rr_begin_check"] != '') { $resv_time .= " <font size='1' color='pink'>CHECK</font>"; } // calculate height // check if split is needed if ($t_b < 1300 && $t_e > 1300) { $dur_h_1 = $du_e_h - 13; $dur_m_1 = $du_e_m - 00; $dur_h_2 = 13 - $du_b_h;
<?php require_once "init.php"; //$room_name = "2층 2303 회의실 1(원형)"; if ($_GET["month"] == '') { $_GET["month"] = date("Y-m"); } $m = new modlist("roomreserve"); $m->setopt("listall", 1); list($cur_year, $cur_month) = explode("-", $_GET["month"]); $last_day = date("t", mktime(0, 0, 0, $cur_month, 1, $cur_year)); while ($data = $m->get("rr_subject, rr_time_begin, rr_date", "rr_room='" . $room_name . "' and ( rr_date between '" . $_GET["month"] . "-01' and '" . $_GET["month"] . "-" . $last_day . "') and rr_deleted='0'", "order by rr_date, rr_time_begin")) { $schedule[$data["rr_date"]][] = $data["rr_time_begin"] . " " . $data["rr_subject"]; } //$m->lastsql(); //print_r($schedule); $colors = array("#0072bc", "#00a651", "#f7941d", "ff66cc", "9999ff", "33ccff", "ccff33"); $line = array(); $cnt = 0; ?> <html> <head> <meta charset="utf-8" /> <style> body { background:url('image/background.jpg'); margin:0px; background-repeat:no-repeat; } td { margin:0px; padding:0px; } #notice { background:url('image/notice_back.jpg'); position:absolute; margin:0px; width:990px; height:107px; left:20px; top:80px; } #notice_content { position:absolute; left:20px; top:50px; width:494px; height:31px; font-family:"Malgun Gothic", dotum; font-size:20px; font-weight:bold; text-align:center; } #main { background:url('image/main_back.jpg'); position:absolute; top:202px; left:20px; width:990px; height:552px; } #main_room { text-align:right; position:absolute; left:648px; top:10px; width:320px; height:39px; overflow:hidden; font-family:"Malgun Gothic", dotum; font-weight:bold; font-size:26px; color:#428abc; text-align:right; text-shadow: 1px 1px #707070; } #menu_top { position:absolute; top:10px; left:313px; }
<?php list($cur_year, $cur_month, $cur_day) = explode("-", $_GET["date"]); $line_colors = array("line_toggle_1", "line_toggle_2"); $toggle = 0; $m = new modlist("roomreserve"); $m->setopt("listall", 1); while ($data = $m->get("*", "( rr_date='" . $_GET["date"] . "' ) and rr_deleted='0'", "order by rr_time_begin")) { $schedule_data[$data["rr_no"]] = $data; if ($data["rr_time_begin"] < 1200) { $schedule_am[$data["rr_room"]][] = $data["rr_no"]; } else { $schedule_pm[$data["rr_room"]][] = $data["rr_no"]; } } ?> <style> .inner_box { color:white; padding:10px; font-family:"Malgun gothic", dotum; font-weight:normal; font-size:14px; line-height: 160%; } .rounded_corner { width:214px; -moz-border-radius: 7px; -webkit-border-radius: 7px; -khtml-border-radius: 7px; border-radius: 7px; box-shadow: 4px 4px 4px #888888; margin-bottom:4px; } .rounded_corner_small { width:90%; -moz-border-radius: 3px; -webkit-border-radius: 3px; -khtml-border-radius: 3px; border-radius: 3px; box-shadow: 2px 2px 2px #888888; margin-bottom:5px; margin-left:3px; margin-top:2px; overflow: hidden; } .box_time { color:yellow; text-shadow: 1px 1px #303030; } .weekheader { background-color:#a0a0a0; font-weight:bold; font-size:13px; } .calday { background-color: white; text-align:left; } .caldaytext { position:relative; top:3px; left:3px; font-size:15px; } </style> <SCRIPT> function getOffset( el ) { var _x = 0; var _y = 0; while( el && !isNaN( el.offsetLeft ) && !isNaN( el.offsetTop ) ) {
<?php $m = new modlist("deviceinfo"); $m->setopt("listall", 1); ?> <table cellspacing="0" cellpadding="0"> <tr align="center" class="line_toggle_1"> <th width="30">#</th> <th width="200">회의실명</th> <th width="100">단말기기 IP</th> <th width="110">관리</th> </tr> <form method="post" action="prc.php?mode=prc_addip"> <tr align="center" class="line_toggle_2"> <th width="30">+</th> <th width="200"> <select name="di_room"> <?php foreach ($confroom as $roomname) { ?> <option value='<?php echo $roomname; ?> '><?php echo $roomname; ?> </option> <?php } ?>
<?php $m = new modlist("noticeinfo"); $m->setopt("listall", 1); ?> <div id="autocomplete" style="position:absolute; top:0px; left:0px; width:200px; height:200px; display:none;"> <iframe id="autocomplete_iframe" style="width:100%; height:100%"></iframe> </div> <SCRIPT> function fnToggleActive( ni_no ) { location.href = 'prc.php?mode=prc_toggleactive&ni_no=' + ni_no; } </SCRIPT> <table cellspacing="0" cellpadding="0"> <tr align="center" class="line_toggle_1"> <th width="30">#</th> <th width="70">표시여부</th> <th width="500">상단에 표시될 공지내용</th> <th width="100">표시순서</th> <th width="110">관리</th> </tr> <form method="post" action="prc.php?mode=prc_addnotice"> <tr align="center" class="line_toggle_2"> <th>+</th> <th>+</th> <th><input type="text" name="ni_subject" style="width:400px;" value="" /></th> <th>+</th> <th><input type="submit" value="추가" /></th> </tr>