Initial import from local backup (Documents-Playground/pakerpale)

This commit is contained in:
jeonghwa
2026-07-03 05:27:41 +09:00
commit 5b1bfe3390
2223 changed files with 561621 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<div class="modal-header">
<h4 class="modal-title">다운로드 로그</h4>
</div>
<div class="modal-body">
<table class="table table-striped mt20">
<thead>
<tr>
<th>번호</th>
<th>파일명</th>
<th>회원명</th>
<th>IP</th>
<th>다운로드일시</th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><?php echo element('num', $result); ?></td>
<td><?php echo html_escape(element('pfi_originname', $result)); ?></td>
<td><?php echo element('display_name', $result); ?></td>
<td><?php echo display_admin_ip(element('pfd_ip', $result)); ?></td>
<td><?php echo display_datetime(element('pfd_datetime', $result), 'full'); ?></a></td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="5" class="nopost">데이터가 없습니다</td>
</tr>
<?php
}
?>
</tbody>
</table>
<div class="pull-left">
<nav><?php echo element('paging', $view); ?></nav>
</div>
<div class="pull-right" style="margin:20px;"><button class="btn btn-default" onClick="window.close();">닫기</button></div>
</div>

View File

@@ -0,0 +1,24 @@
<script type="text/javascript">
//<![CDATA[
function add(img) {
opener.document.getElementById('<?php echo html_escape($this->input->get('id')); ?>').value += "\n[" + img + "]\n";
self.close();
}
//]]>
</script>
<?php
$emoticon = element('emoticon', $view);
if ($emoticon && is_array($emoticon)) {
foreach ($emoticon as $key => $value) {
$size = @getimagesize(config_item('uploads_dir') . '/emoticon/' . $value);
if ( ! isset($size[0])) {
continue;
}
$img = site_url(config_item('uploads_dir') . '/emoticon/' . $value);
?>
<span style="margin:5px;"> <a href="javascript:add('<?php echo $img; ?>');"><img src="<?php echo $img; ?>" alt="emoticon" title="emoticon" /></a> </span>
<?php
}
}

View File

@@ -0,0 +1,88 @@
<?php
//설정값
$geo = $this->input->get('geo');
$marker = $this->input->get('marker');
list($lat, $lng, $zoom) = explode(',', $geo);
$lat = $lat ? $lat : '37.566535';
$lng = $lng ? $lng : '126.977969';
$zoom = $zoom ? $zoom : 14;
?>
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>구글지도보기</title>
<style type="text/css">
body { margin:0; padding:0; font:normal 12px dotum; -webkit-text-size-adjust:100%; }
.infowindow { min-width:180px; max-width:280px; line-height:22px; }
</style>
<script src="http://maps.google.com/maps/api/js?v=3.3&sensor=false&language=ko"></script>
<script type="text/javascript">
// 구글맵
var map;
var marker;
var infowindow;
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
function initialize() {
var myLatlng = new google.maps.LatLng("<?php echo $lat; ?>", "<?php echo $lng; ?>");
var myOptions = {
zoom: <?php echo $zoom; ?>,
scaleControl: true,
navigationControl: true,
navigationControlOptions: {
style: google.maps.NavigationControlStyle.SMALL,
position: google.maps.ControlPosition.TOP_RIGHT
},
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map = new google.maps.Map(document.getElementById('map_canvas'), myOptions);
<?php if ($marker) { ?>
infowindow = new google.maps.InfoWindow();
<?php } ?>
google.maps.event.addListener(map, 'zoom_changed', function() {
zoomLevel = map.getZoom();
if (zoomLevel > 19) {
map.setZoom(19);
}
if (zoomLevel < 1) {
map.setZoom(1);
}
});
<?php if ($marker) { ?>
marker = new google.maps.Marker({
position: myLatlng,
map: map
});
infowindow.setContent("<div class='infowindow'><?php echo $marker; ?></div>");
infowindow.open(map, marker);
<?php } ?>
}
</script>
</head>
<body>
<div id="map_canvas" class="google_map" style="width:100%; height:480px;"></div>
<script type="text/javascript"> addLoadEvent(initialize); </script>
</body>
</html>

View File

@@ -0,0 +1,210 @@
<?php
//구글지도
$lat = '37.566535';
$lng = '126.977969';
$zoom = 14;
$map_width = '100%';
$map_height = '425px';
?>
<style type="text/css">
div#map { position: relative; overflow:hidden; }
div#crosshair {position: absolute;top: 214px;height: 22px;width: 22px;left: 50%;margin-left: -10px;display: block;background-image: url('../img/crosshair.gif');background-position: center center;background-repeat: no-repeat;}
</style>
<script src="http://maps.google.com/maps/api/js?v=3.3&sensor=true&language=ko"></script>
<script type="text/javascript">
var map;
var geocoder;
var centerChangedLast;
var reverseGeocodedLast;
var currentReverseGeocodeResponse;
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload !== 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
function initialize() {
var latlng = new google.maps.LatLng(<?php echo $lat; ?>, <?php echo $lng; ?>);
var myOptions = {
zoom: <?php echo $zoom; ?>,
scaleControl: true,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById('map_canvas'), myOptions);
geocoder = new google.maps.Geocoder();
google.maps.event.addListener(map, 'zoom_changed', function() {
document.getElementById('zoom_level').innerHTML = map.getZoom();
document.getElementById('map_zoom').value = map.getZoom();
zoomLevel = map.getZoom();
if (zoomLevel > 19) {
map.setZoom(19);
}
if (zoomLevel < 1) {
map.setZoom(1);
}
});
setupEvents();
centerChanged();
}
function setupEvents() {
reverseGeocodedLast = new Date();
centerChangedLast = new Date();
setInterval(function() {
if ((new Date()).getSeconds() - centerChangedLast.getSeconds() > 1) {
if (reverseGeocodedLast.getTime() < centerChangedLast.getTime())
reverseGeocode();
}
}, 1000);
google.maps.event.addListener(map, 'center_changed', centerChanged);
google.maps.event.addDomListener(document.getElementById('crosshair'), 'dblclick', function() {
map.setZoom(map.getZoom() + 1);
});
}
function getCenterLatLngText() {
var nn = 1000000;
var tmpLat = Math.round(map.getCenter().lat()*nn)/nn;
var tmpLng = Math.round(map.getCenter().lng()*nn)/nn;
document.getElementById('map_lat').value = tmpLat;
document.getElementById('map_lng').value = tmpLng;
return tmpLat + ', ' + tmpLng;
}
function centerChanged() {
centerChangedLast = new Date();
var latlng = getCenterLatLngText();
var loc = latlng.split(',');
geocoder.geocode({latLng:map.getCenter()},reverseGeocodeResult);
document.getElementById('lat').innerHTML = loc[0];
document.getElementById('lng').innerHTML = loc[1];
document.getElementById('formatedAddress').innerHTML = '';
currentReverseGeocodeResponse = null;
}
function reverseGeocode() {
reverseGeocodedLast = new Date();
geocoder.geocode({latLng:map.getCenter()},reverseGeocodeResult);
}
function reverseGeocodeResult(results, status) {
currentReverseGeocodeResponse = results;
if (status === 'OK') {
if (results.length === 0) {
document.getElementById('formatedAddress').innerHTML = 'None';
} else {
document.getElementById('formatedAddress').innerHTML = results[0].formatted_address;
}
} else {
document.getElementById('formatedAddress').innerHTML = "Error";
}
}
function geocode() {
var address = document.getElementById('address').value;
geocoder.geocode({
'address': address,
'partialmatch': true}, geocodeResult);
}
function geocodeResult(results, status) {
if (status === 'OK' && results.length > 0) {
map.fitBounds(results[0].geometry.viewport);
} else {
alert('Info : ' + status);
}
}
</script>
<div class="modal-body">
<div class="box">
<div class="box-table">
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<colgroup>
<col class="col-md-2">
<col class="col-md-10">
</colgroup>
<tbody>
<tr>
<th>검색</th>
<td>
<input type="text" id="address" class="form-control" onKeyDown="if (event.keyCode ==13) {geocode();}" />
<input type="hidden" id="map_lat" value="<?php echo $lat; ?>" />
<input type="hidden" id="map_lng" value="<?php echo $lng; ?>" />
<input type="hidden" id="map_zoom" value="<?php echo $zoom;?>" />
</td>
<td><button type="button" class="btn btn-success" onclick="geocode()">찾기</button></td>
</tr>
<tr>
<th>위치</th>
<td>
<span id="formatedAddress"></span>
(<span id="lat"></span>, <span id="lng"></span>, <span id="zoom_level"><?php echo $zoom; ?>)
</td>
<td></td>
</tr>
<tr>
<th>마커</th>
<td>
<input type="text" id="map_marker" class="input" />
</td>
<td></td>
</tr>
<tr>
<th>코드</th>
<td><textarea id="map_code" name="map_code" class="input" placeholder="생성된 지도코드를 복사하여 붙여넣어 주세요"></textarea></td>
<td><button type="button" class="btn btn-primary" onclick="geocode_submit()">생성</button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div id="map">
<div id="map_canvas" style="width:<?php echo $map_width; ?>; height:<?php echo $map_height; ?>;"></div>
<div id="crosshair"></div>
</div>
<script type="text/javascript">
function geocode_submit() {
var code_lat = document.getElementById('map_lat').value;
var code_lng = document.getElementById('map_lng').value;
var code_zoom = document.getElementById('map_zoom').value;
var code_marker = document.getElementById('map_marker').value;
var code_geo = " geo=\"" + code_lat + "," + code_lng + "," + code_zoom + "\"";
if (code_marker) code_marker = " m=\"" + code_marker + "\"";
var map_code = "{지도:" + code_geo + code_marker + "}";
document.getElementById('map_code').value = map_code;
}
addLoadEvent(function() {
initialize();
});
</script>

View File

@@ -0,0 +1,44 @@
<div class="modal-header">
<h4 class="modal-title">링크클릭 로그</h4>
</div>
<div class="modal-body">
<table class="table table-striped mt20">
<thead>
<tr>
<th>번호</th>
<th>링크주소</th>
<th>회원명</th>
<th>IP</th>
<th>클릭일시</th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><?php echo element('num', $result); ?></td>
<td><?php echo cut_str(html_escape(element('pln_url', $result)),30); ?></td>
<td><?php echo element('display_name', $result); ?></td>
<td><?php echo display_admin_ip(element('plc_ip', $result)); ?></td>
<td><?php echo display_datetime(element('plc_datetime', $result), 'full'); ?></a></td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="5" class="nopost">데이터가 없습니다</td>
</tr>
<?php
}
?>
</tbody>
</table>
<div class="pull-left">
<nav><?php echo element('paging', $view); ?></nav>
</div>
<div class="pull-right" style="margin:20px;"><button class="btn btn-default" onClick="window.close();">닫기</button></div>
</div>

View File

@@ -0,0 +1,47 @@
<div class="modal-header">
<h4 class="modal-title">게시물 카테고리 변경</h4>
</div>
<div class="modal-body">
<?php
echo validation_errors('<div class="alert alert-warning" role="alert">', '</div>');
$attributes = array('class' => 'form-horizontal', 'name' => 'fwrite', 'id' => 'fwrite');
echo form_open(current_full_url(), $attributes);
?>
<input type="hidden" name="is_submit" value="1" />
<input type="hidden" name="post_id_list" value="<?php echo element('post_id_list', $view); ?>" />
<table class="table table-striped mt20">
<tbody>
<?php
$data = element('data', $view);
function ca_list($p, $data)
{
$return = '';
if ($p && is_array($p)) {
foreach ($p as $result) {
$exp = explode('.', element('bca_key', $result));
$len = (element(1, $exp)) ? strlen(element(1, $exp)) : 0;
$margin = $len * 20;
$attributes = array('class' => 'form-inline', 'name' => 'fcategory');
$return .= '<tr>
<td>
<label for="chk_' . element('bca_id', $result) . '" class="checkbox-inline">
<input type="radio" id="chk_' . element('bca_id', $result) . '" name="chk_post_category" value="' . element('bca_key', $result) . '" /> ' . html_escape(element('bca_value', $result)) . '
</label>
</td>
</tr>';
$parent = element('bca_key', $result);
$return .= ca_list(element($parent, $data), $data);
}
}
return $return;
}
echo ca_list(element(0, $data), $data);
?>
</tbody>
</table>
<div class="pull-right" style="margin:20px;">
<button class="btn btn-primary" type="submit">변경하기</button>
<button class="btn btn-default" onClick="window.close();">닫기</button>
</div>
<?php echo form_close(); ?>
</div>

View File

@@ -0,0 +1,39 @@
<div class="modal-header">
<h4 class="modal-title">게시물 <?php echo element('typetext', $view); ?></h4>
</div>
<div class="modal-body">
<?php
echo validation_errors('<div class="alert alert-warning" role="alert">', '</div>');
$attributes = array('class' => 'form-horizontal', 'name' => 'fwrite', 'id' => 'fwrite');
echo form_open(current_full_url(), $attributes);
?>
<input type="hidden" name="is_submit" value="1" />
<input type="hidden" name="post_id_list" value="<?php echo element('post_id_list', $view); ?>" />
<table class="table table-striped mt20">
<tbody>
<?php
if (element('list', $view)) {
foreach (element('list', $view) as $result) {
$my_one = (element('brd_id', $result) === element('brd_id', element('post', $view))) ? true : false;
?>
<tr>
<td>
<label for="chk_<?php echo element('brd_id', $result); ?>" class="checkbox-inline">
<input type="radio" id="chk_<?php echo element('brd_id', $result); ?>" name="chk_brd_id" value="<?php echo element('brd_id', $result); ?>" <?php if ($my_one) { ?>disabled="disabled"<?php } ?> />
<?php echo html_escape(element('bgr_name', element('group', $result))); ?> &gt; <?php echo html_escape(element('brd_name', $result)); ?> ( <?php echo html_escape(element('brd_key', $result)); ?> )
</label>
<?php if ($my_one) { ?><div class="pull-right label label-warning">현재</div><?php } ?>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<div class="pull-right" style="margin:20px;">
<button class="btn btn-primary" type="submit"><?php echo element('typetext', $view); ?>하기</button>
<button class="btn btn-default" onClick="window.close();">닫기</button>
</div>
<?php echo form_close(); ?>
</div>

View File

@@ -0,0 +1,42 @@
<div class="modal-header">
<h4 class="modal-title">게시글 변경 로그</h4>
</div>
<div class="modal-body">
<table class="table table-striped mt20">
<thead>
<tr>
<th>번호</th>
<th>변경한이</th>
<th>IP</th>
<th>변경일시</th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><?php echo element('num', $result); ?></td>
<td><?php echo element('display_name', $result); ?></td>
<td><?php echo display_admin_ip(element('phi_ip', $result)); ?></td>
<td><a href="<?php echo site_url('helptool/post_history_view/' . element('post_id', $result). '/' . element('phi_id', $result)); ?>"><?php echo display_datetime(element('phi_datetime', $result), 'full'); ?></a></td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="4" class="nopost">데이터가 없습니다</td>
</tr>
<?php
}
?>
</tbody>
</table>
<div class="pull-left">
<nav><?php echo element('paging', $view); ?></nav>
</div>
<div class="pull-right" style="margin:20px;"><button class="btn btn-default" onClick="window.close();">닫기</button></div>
</div>

View File

@@ -0,0 +1,111 @@
<div class="modal-header">
<h4 class="modal-title">게시물 변경 로그</h4>
</div>
<div class="modal-body">
<div class="box">
<div class="box-table">
<div class="box-table-header">
<div class="box-table-title">
<h4>게시물 정보</h4>
</div>
</div>
<div class="collapse in" id="collapse1">
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<colgroup>
<col class="col-md-2">
<col class="col-md-10">
</colgroup>
<tbody>
<tr>
<th>글쓴이</th>
<td><div class="textbox"><?php echo element('post_display_name', element('data', $view)); ?></div></td>
</tr>
<tr>
<th>작성일</th>
<td><div class="textbox"><?php echo display_datetime(element('post_datetime', element('post', element('data', $view))), 'full'); ?></div></td>
</tr>
<tr>
<th>IP 주소</th>
<td><?php echo display_admin_ip(element('post_ip', element('post', element('data', $view)))); ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="box-table">
<div class="box-table-header">
<div class="box-table-title">
<h4>게시물 변경정보</h4>
</div>
</div>
<div class="collapse in" id="collapse2">
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<colgroup>
<col class="col-md-2">
<col class="col-md-10">
</colgroup>
<tbody>
<tr>
<th>변경한 사람</th>
<td><div class="textbox"><?php echo element('display_name', element('data', $view)); ?></div></td>
</tr>
<tr>
<th>변경일</th>
<td><div class="textbox"><?php echo display_datetime(element('phi_datetime', element('data', $view)), 'full'); ?></div></td>
</tr>
<tr>
<th>변경 IP 주소</th>
<td><?php echo display_admin_ip(element('phi_ip', element('data', $view))); ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="box-table">
<div class="box-table-header">
<div class="box-table-title">
<h4>변경내용</h4>
</div>
</div>
<div class="collapse in" id="collapse3">
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<colgroup>
<col class="col-md-2">
<col class="col-md-10">
</colgroup>
<tbody>
<tr>
<th>게시판</th>
<td><div class="textbox"><?php echo html_escape(element('board_name', element('board', element('data', $view)))); ?></div></td>
</tr>
<tr>
<th>변경전 제목</th>
<td><div class="textbox"><?php echo html_escape(element('phi_title', element('prev', element('data', $view)))); ?></div></td>
</tr>
<tr>
<th>변경전 내용</th>
<td><div class="textbox"><?php echo element('content', element('prev', element('data', $view))); ?></div></td>
</tr>
<tr>
<th>변경후 제목</th>
<td><div class="textbox"><?php echo html_escape(element('phi_title', element('data', $view))); ?></div></td>
</tr>
<tr>
<th>변경후 내용</th>
<td><div class="textbox"><?php echo element('content', element('data', $view)); ?></div></td>
</tr>
</tbody>
</table>
</div>
<div class="btn-group pull-right" role="group" aria-label="...">
<button type="button" class="btn btn-outline btn-default btn-sm btn-history-back">목록으로</button>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,42 @@
<style type="text/css">
body { padding:10px; margin:0; }
div#post_print { border:1px solid #D8D8D8; padding:20px; }
div#post_print div { margin:0 0 3px 0; }
div#post_print .print_subject { font-size:15px; height:30px; font-weight:bold; margin:0 0 10px 0; border-bottom:1px solid #D8D8D8; }
div#post_print .print_name { font-size:12px; height:20px; }
div#post_print .print_date { font-size:12px; height:20px; }
div#post_print .print_content { font-size:12px; border-top:1px solid #ddd; padding:20px 10px; line-height:20px; }
div#post_print .print_label { float:left; width:50px; font-weight:bold; }
</style>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function () {
window.print();
});
//]]>
</script>
<div id="post_print">
<div class="print_subject"><?php echo html_escape(element('post_title', element('post', $view))); ?></div>
<div class="print_name"><span class="print_label">글쓴이</span> : <?php echo html_escape(element('post_nickname', element('post', $view))); ?> </div>
<div class="print_date"><span class="print_label">작성일</span> : <?php echo element('post_datetime', element('post', $view)); ?></div>
<div class="print_url"><span class="print_label">글주소</span> : <?php echo element('post_url', $view); ?></div>
<div class="print_content">
<div class="contents-view">
<div class="contents-view-img">
<?php
if (element('file_image', $view)) {
foreach (element('file_image', $view) as $key => $value) {
?>
<img src="<?php echo element('thumb_image_url', $value); ?>" alt="<?php echo html_escape(element('pfi_originname', $value)); ?>" title="<?php echo html_escape(element('pfi_originname', $value)); ?>" class="view_full_image" data-origin-image-url="<?php echo element('origin_image_url', $value); ?>" />
<?php
}
}
?>
</div>
<!-- 본문 내용 시작 -->
<div id="post-content"><?php echo element('content', element('post', $view)); ?></div>
<!-- 본문 내용 끝 -->
</div>
</div>
</div>

View File

@@ -0,0 +1,36 @@
<?php
ob_start();
echo "<?xml version=\"1.0\" encoding=\"" . config_item('charset') . "\"?".">\n";
echo "<rss version=\"2.0\">\n";
echo "<channel>\n";
echo "<title>" . html_escape(element('title', $view)) . "</title>\n";
echo "<link>" . element('url', $view) . "</link>\n";
if (element('copyright', $view)) {
echo "<copyright><![CDATA[ " . html_escape(element('copyright', $view)) . "]]></copyright>";
}
if (element('description', $view)) {
echo "<copyright><![CDATA[ " . html_escape(element('description', $view)) . "]]></copyright>";
}
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $key => $row) {
echo "<item>\n";
echo "<title><![CDATA[" . element('post_title', $row) . "]]></title>\n";
echo "<link>" . element('link', $row) . "</link>\n";
echo "<author>" . html_escape(element('author', $row)) . "</author>\n";
echo "<pubDate>" . element('pubdate', $row) . "</pubDate>\n";
if (element('content', $row)) {
echo "<description><![CDATA[" . element('content', $row) . "]]></description>\n";
}
if (element('category', $row)) {
echo "<category>" . html_escape(element('category', $row)) . "</category>\n";
}
echo "</item>\n";
}
}
echo "</channel>\n";
echo "</rss>\n";
$xml = ob_get_clean();
echo $xml;

View File

@@ -0,0 +1,17 @@
<?php
ob_start();
echo "<?xml version=\"1.0\" encoding=\"" . config_item('charset') . "\"?".">\n";
echo "<sitemapindex xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n";
if (element('sitemap', $view)) {
foreach (element('sitemap', $view) as $key => $row) {
echo "<sitemap>\n";
echo "<loc>" . element('loc', $row) . "</loc>\n";
echo "</sitemap>\n";
}
}
echo "</sitemapindex>\n";
$xml = ob_get_clean();
echo $xml;

View File

@@ -0,0 +1,17 @@
<?php
ob_start();
echo "<?xml version=\"1.0\" encoding=\"" . config_item('charset') . "\"?".">\n";
echo "<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n";
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $key => $row) {
echo "<url>\n";
echo "<loc>" . element('link', $row) . "</loc>\n";
echo "</url>\n";
}
}
echo "</urlset>\n";
$xml = ob_get_clean();
echo $xml;

View File

@@ -0,0 +1,29 @@
<script type="text/javascript">
//<![CDATA[
function add(c) {
opener.document.getElementById('<?php echo html_escape($this->input->get('id')); ?>').value += c;
self.close();
}
//]]>
</script>
<table border="1" style="text-align:center;margin:3px;" align="center">
<tr>
<?php
$i =1;
if (element('char', $view)) {
foreach (element('char', $view) as $key => $value) {
?>
<td style="padding:5px;">
<a href="javascript:;" onClick="add('<?php echo $value; ?>')" title="<?php echo $value; ?>">
<?php echo $value; ?>
</a>
</td>
<?php
if ($i++%20 === 0) {
echo '</tr><tr>';
}
}
}
?>
</tr>
</table>

View File

@@ -0,0 +1,84 @@
<style type="text/css">
body { padding:0; margin:0; }
#img { position:relative;top:0;left:0;cursor:move; }
</style>
<div>
<img src="<?php echo element('imgurl', $view); ?>" id="img" class="draggable" alt="이미지 크게 보기" title="이미지 크게 보기" />
</div>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$('#img').one('load', function() {
var win_w = parseInt($('#img').width()) + 30;
var win_h = parseInt($('#img').height()) + 70;
var win_l = (screen.width - win_w) / 2;
var win_t = (screen.height - win_h) / 2;
if (win_w > screen.width) {
win_l = 0;
win_w = screen.width - 20;
if (win_h > screen.height) {
win_t = 0;
win_h = screen.height - 40;
}
}
if (win_h > screen.height) {
win_t = 0;
win_h = screen.height - 40;
if (win_w > screen.width) {
win_w = screen.width - 20;
win_l = 0;
}
}
window.moveTo(win_l, win_t);
window.resizeTo(win_w, win_h);
}).each(function() {
if (this.complete) {
$(this).load();
}
});;
});
$(function() {
var is_draggable = false;
var x = y = 0;
var pos_x = pos_y = 0;
$('.draggable').mousemove(function(e) {
if (is_draggable) {
x = parseInt($(this).css("left")) - (pos_x - e.pageX);
y = parseInt($(this).css("top")) - (pos_y - e.pageY);
pos_x = e.pageX;
pos_y = e.pageY;
$(this).css({ "left" : x, "top" : y });
}
return false;
});
$('.draggable').mousedown(function(e) {
pos_x = e.pageX;
pos_y = e.pageY;
is_draggable = true;
return false;
});
$('.draggable').mouseup(function() {
is_draggable = false;
return false;
});
$('.draggable').dblclick(function() {
window.close();
});
});
//]]>
</script>