1st commit
This commit is contained in:
commit
845b300d60
|
@ -0,0 +1,92 @@
|
|||
# c-innovacion
|
||||
|
||||
|
||||
|
||||
## Getting started
|
||||
|
||||
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
||||
|
||||
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
||||
|
||||
## Add your files
|
||||
|
||||
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
||||
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
||||
|
||||
```
|
||||
cd existing_repo
|
||||
git remote add origin https://git.qubiton.site/ci/c-innovacion.git
|
||||
git branch -M main
|
||||
git push -uf origin main
|
||||
```
|
||||
|
||||
## Integrate with your tools
|
||||
|
||||
- [ ] [Set up project integrations](https://git.qubiton.site/ci/c-innovacion/-/settings/integrations)
|
||||
|
||||
## Collaborate with your team
|
||||
|
||||
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
||||
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
||||
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
||||
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
||||
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
||||
|
||||
## Test and Deploy
|
||||
|
||||
Use the built-in continuous integration in GitLab.
|
||||
|
||||
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
||||
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
||||
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
||||
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
||||
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
||||
|
||||
***
|
||||
|
||||
# Editing this README
|
||||
|
||||
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
||||
|
||||
## Suggestions for a good README
|
||||
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
||||
|
||||
## Name
|
||||
Choose a self-explaining name for your project.
|
||||
|
||||
## Description
|
||||
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
||||
|
||||
## Badges
|
||||
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
||||
|
||||
## Visuals
|
||||
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
||||
|
||||
## Installation
|
||||
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
||||
|
||||
## Usage
|
||||
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
||||
|
||||
## Support
|
||||
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
||||
|
||||
## Roadmap
|
||||
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
||||
|
||||
## Contributing
|
||||
State if you are open to contributions and what your requirements are for accepting them.
|
||||
|
||||
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
||||
|
||||
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
||||
|
||||
## Authors and acknowledgment
|
||||
Show your appreciation to those who have contributed to the project.
|
||||
|
||||
## License
|
||||
For open source projects, say how it is licensed.
|
||||
|
||||
## Project status
|
||||
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
|
@ -0,0 +1,12 @@
|
|||
package mail;
|
||||
|
||||
import javax.mail.Authenticator;
|
||||
import javax.mail.PasswordAuthentication;
|
||||
|
||||
|
||||
public class SMTPAuthenticatior extends Authenticator{
|
||||
@Override
|
||||
protected PasswordAuthentication getPasswordAuthentication() {
|
||||
return new PasswordAuthentication("creesy","snsekfA01!");
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
|
||||
http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
|
||||
version="4.0"
|
||||
metadata-complete="true">
|
||||
|
||||
<display-name>Welcome to Tomcat</display-name>
|
||||
<description>
|
||||
Welcome to Tomcat
|
||||
</description>
|
||||
|
||||
</web-app>
|
File diff suppressed because one or more lines are too long
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
|
@ -0,0 +1,22 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1000px" height="1000px" viewBox="0 0 1000 1000" zoomAndPan="disable">
|
||||
<style type="text/css"><![CDATA[
|
||||
.p-4 { fill: rgba(255,255,255,0.16); }
|
||||
.p-3 { fill: rgba(255,255,255,0.12); }
|
||||
.p-2 { fill: rgba(255,255,255,0.08); }
|
||||
.p-1 { fill: rgba(255,255,255,0.04); }
|
||||
.p0 { fill: none; }
|
||||
.p1 { fill: rgba(0,0,0,0.025); }
|
||||
.p2 { fill: rgba(0,0,0,0.05); }
|
||||
.p3 { fill: rgba(0,0,0,0.075); }
|
||||
.p4 { fill: rgba(0,0,0,0.1); }
|
||||
]]></style>
|
||||
<polygon class="p-4" points="-1125,0 -375,1000 125,1000 -875,0" />
|
||||
<polygon class="p-3" points="-875,0 125,1000 375,1000 -625,0" />
|
||||
<polygon class="p-2" points="-625,0 375,1000 625,1000 -375,0" />
|
||||
<polygon class="p-1" points="-375,0 625,1000 875,1000 -125,0" />
|
||||
<polygon class="p0" points="-125,0 875,1000 1125,1000 125,0" />
|
||||
<polygon class="p1" points="125,0 1125,1000 1375,1000 375,0" />
|
||||
<polygon class="p2" points="375,0 1375,1000 1625,1000 625,0" />
|
||||
<polygon class="p3" points="625,0 1625,1000 1875,1000 875,0" />
|
||||
<polygon class="p4" points="875,0 1875,1000 2125,1000 1125,0" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
|
@ -0,0 +1,22 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1000px" height="1000px" viewBox="0 0 1000 1000" zoomAndPan="disable">
|
||||
<style type="text/css"><![CDATA[
|
||||
.p-4 { fill: rgba(255,255,255,0.16); }
|
||||
.p-3 { fill: rgba(255,255,255,0.12); }
|
||||
.p-2 { fill: rgba(255,255,255,0.08); }
|
||||
.p-1 { fill: rgba(255,255,255,0.04); }
|
||||
.p0 { fill: none; }
|
||||
.p1 { fill: rgba(0,0,0,0.025); }
|
||||
.p2 { fill: rgba(0,0,0,0.05); }
|
||||
.p3 { fill: rgba(0,0,0,0.075); }
|
||||
.p4 { fill: rgba(0,0,0,0.1); }
|
||||
]]></style>
|
||||
<polygon class="p4" points="-1125,0 -375,1000 125,1000 -875,0" />
|
||||
<polygon class="p3" points="-875,0 125,1000 375,1000 -625,0" />
|
||||
<polygon class="p2" points="-625,0 375,1000 625,1000 -375,0" />
|
||||
<polygon class="p1" points="-375,0 625,1000 875,1000 -125,0" />
|
||||
<polygon class="p0" points="-125,0 875,1000 1125,1000 125,0" />
|
||||
<polygon class="p-1" points="125,0 1125,1000 1375,1000 375,0" />
|
||||
<polygon class="p-2" points="375,0 1375,1000 1625,1000 625,0" />
|
||||
<polygon class="p-3" points="625,0 1625,1000 1875,1000 875,0" />
|
||||
<polygon class="p-4" points="875,0 1875,1000 2125,1000 1125,0" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
Photon by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
*/
|
||||
|
||||
/* Header */
|
||||
|
||||
body.is-preload #header .inner {
|
||||
-moz-transform: none;
|
||||
-webkit-transform: none;
|
||||
-ms-transform: none;
|
||||
transform: none;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
body.is-preload #header .inner .actions {
|
||||
-moz-transform: none;
|
||||
-webkit-transform: none;
|
||||
-ms-transform: none;
|
||||
transform: none;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
body.is-preload #header:after {
|
||||
opacity: 0;
|
||||
}
|
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 434 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,2 @@
|
|||
/* breakpoints.js v1.0 | @ajlkn | MIT licensed */
|
||||
var breakpoints=function(){"use strict";function e(e){t.init(e)}var t={list:null,media:{},events:[],init:function(e){t.list=e,window.addEventListener("resize",t.poll),window.addEventListener("orientationchange",t.poll),window.addEventListener("load",t.poll),window.addEventListener("fullscreenchange",t.poll)},active:function(e){var n,a,s,i,r,d,c;if(!(e in t.media)){if(">="==e.substr(0,2)?(a="gte",n=e.substr(2)):"<="==e.substr(0,2)?(a="lte",n=e.substr(2)):">"==e.substr(0,1)?(a="gt",n=e.substr(1)):"<"==e.substr(0,1)?(a="lt",n=e.substr(1)):"!"==e.substr(0,1)?(a="not",n=e.substr(1)):(a="eq",n=e),n&&n in t.list)if(i=t.list[n],Array.isArray(i)){if(r=parseInt(i[0]),d=parseInt(i[1]),isNaN(r)){if(isNaN(d))return;c=i[1].substr(String(d).length)}else c=i[0].substr(String(r).length);if(isNaN(r))switch(a){case"gte":s="screen";break;case"lte":s="screen and (max-width: "+d+c+")";break;case"gt":s="screen and (min-width: "+(d+1)+c+")";break;case"lt":s="screen and (max-width: -1px)";break;case"not":s="screen and (min-width: "+(d+1)+c+")";break;default:s="screen and (max-width: "+d+c+")"}else if(isNaN(d))switch(a){case"gte":s="screen and (min-width: "+r+c+")";break;case"lte":s="screen";break;case"gt":s="screen and (max-width: -1px)";break;case"lt":s="screen and (max-width: "+(r-1)+c+")";break;case"not":s="screen and (max-width: "+(r-1)+c+")";break;default:s="screen and (min-width: "+r+c+")"}else switch(a){case"gte":s="screen and (min-width: "+r+c+")";break;case"lte":s="screen and (max-width: "+d+c+")";break;case"gt":s="screen and (min-width: "+(d+1)+c+")";break;case"lt":s="screen and (max-width: "+(r-1)+c+")";break;case"not":s="screen and (max-width: "+(r-1)+c+"), screen and (min-width: "+(d+1)+c+")";break;default:s="screen and (min-width: "+r+c+") and (max-width: "+d+c+")"}}else s="("==i.charAt(0)?"screen and "+i:i;t.media[e]=!!s&&s}return t.media[e]!==!1&&window.matchMedia(t.media[e]).matches},on:function(e,n){t.events.push({query:e,handler:n,state:!1}),t.active(e)&&n()},poll:function(){var e,n;for(e=0;e<t.events.length;e++)n=t.events[e],t.active(n.query)?n.state||(n.state=!0,n.handler()):n.state&&(n.state=!1)}};return e._=t,e.on=function(e,n){t.on(e,n)},e.active=function(e){return t.active(e)},e}();!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.breakpoints=t()}(this,function(){return breakpoints});
|
|
@ -0,0 +1,2 @@
|
|||
/* browser.js v1.0 | @ajlkn | MIT licensed */
|
||||
var browser=function(){"use strict";var e={name:null,version:null,os:null,osVersion:null,touch:null,mobile:null,_canUse:null,canUse:function(n){e._canUse||(e._canUse=document.createElement("div"));var o=e._canUse.style,r=n.charAt(0).toUpperCase()+n.slice(1);return n in o||"Moz"+r in o||"Webkit"+r in o||"O"+r in o||"ms"+r in o},init:function(){var n,o,r,i,t=navigator.userAgent;for(n="other",o=0,r=[["firefox",/Firefox\/([0-9\.]+)/],["bb",/BlackBerry.+Version\/([0-9\.]+)/],["bb",/BB[0-9]+.+Version\/([0-9\.]+)/],["opera",/OPR\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)/],["edge",/Edge\/([0-9\.]+)/],["safari",/Version\/([0-9\.]+).+Safari/],["chrome",/Chrome\/([0-9\.]+)/],["ie",/MSIE ([0-9]+)/],["ie",/Trident\/.+rv:([0-9]+)/]],i=0;i<r.length;i++)if(t.match(r[i][1])){n=r[i][0],o=parseFloat(RegExp.$1);break}for(e.name=n,e.version=o,n="other",o=0,r=[["ios",/([0-9_]+) like Mac OS X/,function(e){return e.replace("_",".").replace("_","")}],["ios",/CPU like Mac OS X/,function(e){return 0}],["wp",/Windows Phone ([0-9\.]+)/,null],["android",/Android ([0-9\.]+)/,null],["mac",/Macintosh.+Mac OS X ([0-9_]+)/,function(e){return e.replace("_",".").replace("_","")}],["windows",/Windows NT ([0-9\.]+)/,null],["bb",/BlackBerry.+Version\/([0-9\.]+)/,null],["bb",/BB[0-9]+.+Version\/([0-9\.]+)/,null],["linux",/Linux/,null],["bsd",/BSD/,null],["unix",/X11/,null]],i=0;i<r.length;i++)if(t.match(r[i][1])){n=r[i][0],o=parseFloat(r[i][2]?r[i][2](RegExp.$1):RegExp.$1);break}e.os=n,e.osVersion=o,e.touch="wp"==e.os?navigator.msMaxTouchPoints>0:!!("ontouchstart"in window),e.mobile="wp"==e.os||"android"==e.os||"ios"==e.os||"bb"==e.os}};return e.init(),e}();!function(e,n){"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?module.exports=n():e.browser=n()}(this,function(){return browser});
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,2 @@
|
|||
/* jquery.scrolly v1.0.0-dev | (c) @ajlkn | MIT licensed */
|
||||
(function(e){function u(s,o){var u,a,f;if((u=e(s))[t]==0)return n;a=u[i]()[r];switch(o.anchor){case"middle":f=a-(e(window).height()-u.outerHeight())/2;break;default:case r:f=Math.max(a,0)}return typeof o[i]=="function"?f-=o[i]():f-=o[i],f}var t="length",n=null,r="top",i="offset",s="click.scrolly",o=e(window);e.fn.scrolly=function(i){var o,a,f,l,c=e(this);if(this[t]==0)return c;if(this[t]>1){for(o=0;o<this[t];o++)e(this[o]).scrolly(i);return c}l=n,f=c.attr("href");if(f.charAt(0)!="#"||f[t]<2)return c;a=jQuery.extend({anchor:r,easing:"swing",offset:0,parent:e("body,html"),pollOnce:!1,speed:1e3},i),a.pollOnce&&(l=u(f,a)),c.off(s).on(s,function(e){var t=l!==n?l:u(f,a);t!==n&&(e.preventDefault(),a.parent.stop().animate({scrollTop:t},a.speed,a.easing))})}})(jQuery);
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
Photon by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
var $window = $(window),
|
||||
$body = $('body');
|
||||
|
||||
// Breakpoints.
|
||||
breakpoints({
|
||||
xlarge: [ '1141px', '1680px' ],
|
||||
large: [ '981px', '1140px' ],
|
||||
medium: [ '737px', '980px' ],
|
||||
small: [ '481px', '736px' ],
|
||||
xsmall: [ '321px', '480px' ],
|
||||
xxsmall: [ null, '320px' ]
|
||||
});
|
||||
|
||||
// Play initial animations on page load.
|
||||
$window.on('load', function() {
|
||||
window.setTimeout(function() {
|
||||
$body.removeClass('is-preload');
|
||||
}, 100);
|
||||
});
|
||||
|
||||
// Scrolly.
|
||||
$('.scrolly').scrolly();
|
||||
|
||||
})(jQuery);
|
|
@ -0,0 +1,587 @@
|
|||
(function($) {
|
||||
|
||||
/**
|
||||
* Generate an indented list of links from a nav. Meant for use with panel().
|
||||
* @return {jQuery} jQuery object.
|
||||
*/
|
||||
$.fn.navList = function() {
|
||||
|
||||
var $this = $(this);
|
||||
$a = $this.find('a'),
|
||||
b = [];
|
||||
|
||||
$a.each(function() {
|
||||
|
||||
var $this = $(this),
|
||||
indent = Math.max(0, $this.parents('li').length - 1),
|
||||
href = $this.attr('href'),
|
||||
target = $this.attr('target');
|
||||
|
||||
b.push(
|
||||
'<a ' +
|
||||
'class="link depth-' + indent + '"' +
|
||||
( (typeof target !== 'undefined' && target != '') ? ' target="' + target + '"' : '') +
|
||||
( (typeof href !== 'undefined' && href != '') ? ' href="' + href + '"' : '') +
|
||||
'>' +
|
||||
'<span class="indent-' + indent + '"></span>' +
|
||||
$this.text() +
|
||||
'</a>'
|
||||
);
|
||||
|
||||
});
|
||||
|
||||
return b.join('');
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Panel-ify an element.
|
||||
* @param {object} userConfig User config.
|
||||
* @return {jQuery} jQuery object.
|
||||
*/
|
||||
$.fn.panel = function(userConfig) {
|
||||
|
||||
// No elements?
|
||||
if (this.length == 0)
|
||||
return $this;
|
||||
|
||||
// Multiple elements?
|
||||
if (this.length > 1) {
|
||||
|
||||
for (var i=0; i < this.length; i++)
|
||||
$(this[i]).panel(userConfig);
|
||||
|
||||
return $this;
|
||||
|
||||
}
|
||||
|
||||
// Vars.
|
||||
var $this = $(this),
|
||||
$body = $('body'),
|
||||
$window = $(window),
|
||||
id = $this.attr('id'),
|
||||
config;
|
||||
|
||||
// Config.
|
||||
config = $.extend({
|
||||
|
||||
// Delay.
|
||||
delay: 0,
|
||||
|
||||
// Hide panel on link click.
|
||||
hideOnClick: false,
|
||||
|
||||
// Hide panel on escape keypress.
|
||||
hideOnEscape: false,
|
||||
|
||||
// Hide panel on swipe.
|
||||
hideOnSwipe: false,
|
||||
|
||||
// Reset scroll position on hide.
|
||||
resetScroll: false,
|
||||
|
||||
// Reset forms on hide.
|
||||
resetForms: false,
|
||||
|
||||
// Side of viewport the panel will appear.
|
||||
side: null,
|
||||
|
||||
// Target element for "class".
|
||||
target: $this,
|
||||
|
||||
// Class to toggle.
|
||||
visibleClass: 'visible'
|
||||
|
||||
}, userConfig);
|
||||
|
||||
// Expand "target" if it's not a jQuery object already.
|
||||
if (typeof config.target != 'jQuery')
|
||||
config.target = $(config.target);
|
||||
|
||||
// Panel.
|
||||
|
||||
// Methods.
|
||||
$this._hide = function(event) {
|
||||
|
||||
// Already hidden? Bail.
|
||||
if (!config.target.hasClass(config.visibleClass))
|
||||
return;
|
||||
|
||||
// If an event was provided, cancel it.
|
||||
if (event) {
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
}
|
||||
|
||||
// Hide.
|
||||
config.target.removeClass(config.visibleClass);
|
||||
|
||||
// Post-hide stuff.
|
||||
window.setTimeout(function() {
|
||||
|
||||
// Reset scroll position.
|
||||
if (config.resetScroll)
|
||||
$this.scrollTop(0);
|
||||
|
||||
// Reset forms.
|
||||
if (config.resetForms)
|
||||
$this.find('form').each(function() {
|
||||
this.reset();
|
||||
});
|
||||
|
||||
}, config.delay);
|
||||
|
||||
};
|
||||
|
||||
// Vendor fixes.
|
||||
$this
|
||||
.css('-ms-overflow-style', '-ms-autohiding-scrollbar')
|
||||
.css('-webkit-overflow-scrolling', 'touch');
|
||||
|
||||
// Hide on click.
|
||||
if (config.hideOnClick) {
|
||||
|
||||
$this.find('a')
|
||||
.css('-webkit-tap-highlight-color', 'rgba(0,0,0,0)');
|
||||
|
||||
$this
|
||||
.on('click', 'a', function(event) {
|
||||
|
||||
var $a = $(this),
|
||||
href = $a.attr('href'),
|
||||
target = $a.attr('target');
|
||||
|
||||
if (!href || href == '#' || href == '' || href == '#' + id)
|
||||
return;
|
||||
|
||||
// Cancel original event.
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
// Hide panel.
|
||||
$this._hide();
|
||||
|
||||
// Redirect to href.
|
||||
window.setTimeout(function() {
|
||||
|
||||
if (target == '_blank')
|
||||
window.open(href);
|
||||
else
|
||||
window.location.href = href;
|
||||
|
||||
}, config.delay + 10);
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
// Event: Touch stuff.
|
||||
$this.on('touchstart', function(event) {
|
||||
|
||||
$this.touchPosX = event.originalEvent.touches[0].pageX;
|
||||
$this.touchPosY = event.originalEvent.touches[0].pageY;
|
||||
|
||||
})
|
||||
|
||||
$this.on('touchmove', function(event) {
|
||||
|
||||
if ($this.touchPosX === null
|
||||
|| $this.touchPosY === null)
|
||||
return;
|
||||
|
||||
var diffX = $this.touchPosX - event.originalEvent.touches[0].pageX,
|
||||
diffY = $this.touchPosY - event.originalEvent.touches[0].pageY,
|
||||
th = $this.outerHeight(),
|
||||
ts = ($this.get(0).scrollHeight - $this.scrollTop());
|
||||
|
||||
// Hide on swipe?
|
||||
if (config.hideOnSwipe) {
|
||||
|
||||
var result = false,
|
||||
boundary = 20,
|
||||
delta = 50;
|
||||
|
||||
switch (config.side) {
|
||||
|
||||
case 'left':
|
||||
result = (diffY < boundary && diffY > (-1 * boundary)) && (diffX > delta);
|
||||
break;
|
||||
|
||||
case 'right':
|
||||
result = (diffY < boundary && diffY > (-1 * boundary)) && (diffX < (-1 * delta));
|
||||
break;
|
||||
|
||||
case 'top':
|
||||
result = (diffX < boundary && diffX > (-1 * boundary)) && (diffY > delta);
|
||||
break;
|
||||
|
||||
case 'bottom':
|
||||
result = (diffX < boundary && diffX > (-1 * boundary)) && (diffY < (-1 * delta));
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
if (result) {
|
||||
|
||||
$this.touchPosX = null;
|
||||
$this.touchPosY = null;
|
||||
$this._hide();
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Prevent vertical scrolling past the top or bottom.
|
||||
if (($this.scrollTop() < 0 && diffY < 0)
|
||||
|| (ts > (th - 2) && ts < (th + 2) && diffY > 0)) {
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// Event: Prevent certain events inside the panel from bubbling.
|
||||
$this.on('click touchend touchstart touchmove', function(event) {
|
||||
event.stopPropagation();
|
||||
});
|
||||
|
||||
// Event: Hide panel if a child anchor tag pointing to its ID is clicked.
|
||||
$this.on('click', 'a[href="#' + id + '"]', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
config.target.removeClass(config.visibleClass);
|
||||
|
||||
});
|
||||
|
||||
// Body.
|
||||
|
||||
// Event: Hide panel on body click/tap.
|
||||
$body.on('click touchend', function(event) {
|
||||
$this._hide(event);
|
||||
});
|
||||
|
||||
// Event: Toggle.
|
||||
$body.on('click', 'a[href="#' + id + '"]', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
config.target.toggleClass(config.visibleClass);
|
||||
|
||||
});
|
||||
|
||||
// Window.
|
||||
|
||||
// Event: Hide on ESC.
|
||||
if (config.hideOnEscape)
|
||||
$window.on('keydown', function(event) {
|
||||
|
||||
if (event.keyCode == 27)
|
||||
$this._hide(event);
|
||||
|
||||
});
|
||||
|
||||
return $this;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Apply "placeholder" attribute polyfill to one or more forms.
|
||||
* @return {jQuery} jQuery object.
|
||||
*/
|
||||
$.fn.placeholder = function() {
|
||||
|
||||
// Browser natively supports placeholders? Bail.
|
||||
if (typeof (document.createElement('input')).placeholder != 'undefined')
|
||||
return $(this);
|
||||
|
||||
// No elements?
|
||||
if (this.length == 0)
|
||||
return $this;
|
||||
|
||||
// Multiple elements?
|
||||
if (this.length > 1) {
|
||||
|
||||
for (var i=0; i < this.length; i++)
|
||||
$(this[i]).placeholder();
|
||||
|
||||
return $this;
|
||||
|
||||
}
|
||||
|
||||
// Vars.
|
||||
var $this = $(this);
|
||||
|
||||
// Text, TextArea.
|
||||
$this.find('input[type=text],textarea')
|
||||
.each(function() {
|
||||
|
||||
var i = $(this);
|
||||
|
||||
if (i.val() == ''
|
||||
|| i.val() == i.attr('placeholder'))
|
||||
i
|
||||
.addClass('polyfill-placeholder')
|
||||
.val(i.attr('placeholder'));
|
||||
|
||||
})
|
||||
.on('blur', function() {
|
||||
|
||||
var i = $(this);
|
||||
|
||||
if (i.attr('name').match(/-polyfill-field$/))
|
||||
return;
|
||||
|
||||
if (i.val() == '')
|
||||
i
|
||||
.addClass('polyfill-placeholder')
|
||||
.val(i.attr('placeholder'));
|
||||
|
||||
})
|
||||
.on('focus', function() {
|
||||
|
||||
var i = $(this);
|
||||
|
||||
if (i.attr('name').match(/-polyfill-field$/))
|
||||
return;
|
||||
|
||||
if (i.val() == i.attr('placeholder'))
|
||||
i
|
||||
.removeClass('polyfill-placeholder')
|
||||
.val('');
|
||||
|
||||
});
|
||||
|
||||
// Password.
|
||||
$this.find('input[type=password]')
|
||||
.each(function() {
|
||||
|
||||
var i = $(this);
|
||||
var x = $(
|
||||
$('<div>')
|
||||
.append(i.clone())
|
||||
.remove()
|
||||
.html()
|
||||
.replace(/type="password"/i, 'type="text"')
|
||||
.replace(/type=password/i, 'type=text')
|
||||
);
|
||||
|
||||
if (i.attr('id') != '')
|
||||
x.attr('id', i.attr('id') + '-polyfill-field');
|
||||
|
||||
if (i.attr('name') != '')
|
||||
x.attr('name', i.attr('name') + '-polyfill-field');
|
||||
|
||||
x.addClass('polyfill-placeholder')
|
||||
.val(x.attr('placeholder')).insertAfter(i);
|
||||
|
||||
if (i.val() == '')
|
||||
i.hide();
|
||||
else
|
||||
x.hide();
|
||||
|
||||
i
|
||||
.on('blur', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
var x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]');
|
||||
|
||||
if (i.val() == '') {
|
||||
|
||||
i.hide();
|
||||
x.show();
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
x
|
||||
.on('focus', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
var i = x.parent().find('input[name=' + x.attr('name').replace('-polyfill-field', '') + ']');
|
||||
|
||||
x.hide();
|
||||
|
||||
i
|
||||
.show()
|
||||
.focus();
|
||||
|
||||
})
|
||||
.on('keypress', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
x.val('');
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// Events.
|
||||
$this
|
||||
.on('submit', function() {
|
||||
|
||||
$this.find('input[type=text],input[type=password],textarea')
|
||||
.each(function(event) {
|
||||
|
||||
var i = $(this);
|
||||
|
||||
if (i.attr('name').match(/-polyfill-field$/))
|
||||
i.attr('name', '');
|
||||
|
||||
if (i.val() == i.attr('placeholder')) {
|
||||
|
||||
i.removeClass('polyfill-placeholder');
|
||||
i.val('');
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
})
|
||||
.on('reset', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
$this.find('select')
|
||||
.val($('option:first').val());
|
||||
|
||||
$this.find('input,textarea')
|
||||
.each(function() {
|
||||
|
||||
var i = $(this),
|
||||
x;
|
||||
|
||||
i.removeClass('polyfill-placeholder');
|
||||
|
||||
switch (this.type) {
|
||||
|
||||
case 'submit':
|
||||
case 'reset':
|
||||
break;
|
||||
|
||||
case 'password':
|
||||
i.val(i.attr('defaultValue'));
|
||||
|
||||
x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]');
|
||||
|
||||
if (i.val() == '') {
|
||||
i.hide();
|
||||
x.show();
|
||||
}
|
||||
else {
|
||||
i.show();
|
||||
x.hide();
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 'checkbox':
|
||||
case 'radio':
|
||||
i.attr('checked', i.attr('defaultValue'));
|
||||
break;
|
||||
|
||||
case 'text':
|
||||
case 'textarea':
|
||||
i.val(i.attr('defaultValue'));
|
||||
|
||||
if (i.val() == '') {
|
||||
i.addClass('polyfill-placeholder');
|
||||
i.val(i.attr('placeholder'));
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
i.val(i.attr('defaultValue'));
|
||||
break;
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
return $this;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Moves elements to/from the first positions of their respective parents.
|
||||
* @param {jQuery} $elements Elements (or selector) to move.
|
||||
* @param {bool} condition If true, moves elements to the top. Otherwise, moves elements back to their original locations.
|
||||
*/
|
||||
$.prioritize = function($elements, condition) {
|
||||
|
||||
var key = '__prioritize';
|
||||
|
||||
// Expand $elements if it's not already a jQuery object.
|
||||
if (typeof $elements != 'jQuery')
|
||||
$elements = $($elements);
|
||||
|
||||
// Step through elements.
|
||||
$elements.each(function() {
|
||||
|
||||
var $e = $(this), $p,
|
||||
$parent = $e.parent();
|
||||
|
||||
// No parent? Bail.
|
||||
if ($parent.length == 0)
|
||||
return;
|
||||
|
||||
// Not moved? Move it.
|
||||
if (!$e.data(key)) {
|
||||
|
||||
// Condition is false? Bail.
|
||||
if (!condition)
|
||||
return;
|
||||
|
||||
// Get placeholder (which will serve as our point of reference for when this element needs to move back).
|
||||
$p = $e.prev();
|
||||
|
||||
// Couldn't find anything? Means this element's already at the top, so bail.
|
||||
if ($p.length == 0)
|
||||
return;
|
||||
|
||||
// Move element to top of parent.
|
||||
$e.prependTo($parent);
|
||||
|
||||
// Mark element as moved.
|
||||
$e.data(key, $p);
|
||||
|
||||
}
|
||||
|
||||
// Moved already?
|
||||
else {
|
||||
|
||||
// Condition is true? Bail.
|
||||
if (condition)
|
||||
return;
|
||||
|
||||
$p = $e.data(key);
|
||||
|
||||
// Move element back to its original location (using our placeholder).
|
||||
$e.insertAfter($p);
|
||||
|
||||
// Unmark element as moved.
|
||||
$e.removeData(key);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
})(jQuery);
|
|
@ -0,0 +1,223 @@
|
|||
// breakpoints.scss v1.0 | @ajlkn | MIT licensed */
|
||||
|
||||
// Vars.
|
||||
|
||||
/// Breakpoints.
|
||||
/// @var {list}
|
||||
$breakpoints: () !global;
|
||||
|
||||
// Mixins.
|
||||
|
||||
/// Sets breakpoints.
|
||||
/// @param {map} $x Breakpoints.
|
||||
@mixin breakpoints($x: ()) {
|
||||
$breakpoints: $x !global;
|
||||
}
|
||||
|
||||
/// Wraps @content in a @media block targeting a specific orientation.
|
||||
/// @param {string} $orientation Orientation.
|
||||
@mixin orientation($orientation) {
|
||||
@media screen and (orientation: #{$orientation}) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
/// Wraps @content in a @media block using a given query.
|
||||
/// @param {string} $query Query.
|
||||
@mixin breakpoint($query: null) {
|
||||
|
||||
$breakpoint: null;
|
||||
$op: null;
|
||||
$media: null;
|
||||
|
||||
// Determine operator, breakpoint.
|
||||
|
||||
// Greater than or equal.
|
||||
@if (str-slice($query, 0, 2) == '>=') {
|
||||
|
||||
$op: 'gte';
|
||||
$breakpoint: str-slice($query, 3);
|
||||
|
||||
}
|
||||
|
||||
// Less than or equal.
|
||||
@elseif (str-slice($query, 0, 2) == '<=') {
|
||||
|
||||
$op: 'lte';
|
||||
$breakpoint: str-slice($query, 3);
|
||||
|
||||
}
|
||||
|
||||
// Greater than.
|
||||
@elseif (str-slice($query, 0, 1) == '>') {
|
||||
|
||||
$op: 'gt';
|
||||
$breakpoint: str-slice($query, 2);
|
||||
|
||||
}
|
||||
|
||||
// Less than.
|
||||
@elseif (str-slice($query, 0, 1) == '<') {
|
||||
|
||||
$op: 'lt';
|
||||
$breakpoint: str-slice($query, 2);
|
||||
|
||||
}
|
||||
|
||||
// Not.
|
||||
@elseif (str-slice($query, 0, 1) == '!') {
|
||||
|
||||
$op: 'not';
|
||||
$breakpoint: str-slice($query, 2);
|
||||
|
||||
}
|
||||
|
||||
// Equal.
|
||||
@else {
|
||||
|
||||
$op: 'eq';
|
||||
$breakpoint: $query;
|
||||
|
||||
}
|
||||
|
||||
// Build media.
|
||||
@if ($breakpoint and map-has-key($breakpoints, $breakpoint)) {
|
||||
|
||||
$a: map-get($breakpoints, $breakpoint);
|
||||
|
||||
// Range.
|
||||
@if (type-of($a) == 'list') {
|
||||
|
||||
$x: nth($a, 1);
|
||||
$y: nth($a, 2);
|
||||
|
||||
// Max only.
|
||||
@if ($x == null) {
|
||||
|
||||
// Greater than or equal (>= 0 / anything)
|
||||
@if ($op == 'gte') {
|
||||
$media: 'screen';
|
||||
}
|
||||
|
||||
// Less than or equal (<= y)
|
||||
@elseif ($op == 'lte') {
|
||||
$media: 'screen and (max-width: ' + $y + ')';
|
||||
}
|
||||
|
||||
// Greater than (> y)
|
||||
@elseif ($op == 'gt') {
|
||||
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
||||
}
|
||||
|
||||
// Less than (< 0 / invalid)
|
||||
@elseif ($op == 'lt') {
|
||||
$media: 'screen and (max-width: -1px)';
|
||||
}
|
||||
|
||||
// Not (> y)
|
||||
@elseif ($op == 'not') {
|
||||
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
||||
}
|
||||
|
||||
// Equal (<= y)
|
||||
@else {
|
||||
$media: 'screen and (max-width: ' + $y + ')';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Min only.
|
||||
@else if ($y == null) {
|
||||
|
||||
// Greater than or equal (>= x)
|
||||
@if ($op == 'gte') {
|
||||
$media: 'screen and (min-width: ' + $x + ')';
|
||||
}
|
||||
|
||||
// Less than or equal (<= inf / anything)
|
||||
@elseif ($op == 'lte') {
|
||||
$media: 'screen';
|
||||
}
|
||||
|
||||
// Greater than (> inf / invalid)
|
||||
@elseif ($op == 'gt') {
|
||||
$media: 'screen and (max-width: -1px)';
|
||||
}
|
||||
|
||||
// Less than (< x)
|
||||
@elseif ($op == 'lt') {
|
||||
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
||||
}
|
||||
|
||||
// Not (< x)
|
||||
@elseif ($op == 'not') {
|
||||
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
||||
}
|
||||
|
||||
// Equal (>= x)
|
||||
@else {
|
||||
$media: 'screen and (min-width: ' + $x + ')';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Min and max.
|
||||
@else {
|
||||
|
||||
// Greater than or equal (>= x)
|
||||
@if ($op == 'gte') {
|
||||
$media: 'screen and (min-width: ' + $x + ')';
|
||||
}
|
||||
|
||||
// Less than or equal (<= y)
|
||||
@elseif ($op == 'lte') {
|
||||
$media: 'screen and (max-width: ' + $y + ')';
|
||||
}
|
||||
|
||||
// Greater than (> y)
|
||||
@elseif ($op == 'gt') {
|
||||
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
||||
}
|
||||
|
||||
// Less than (< x)
|
||||
@elseif ($op == 'lt') {
|
||||
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
||||
}
|
||||
|
||||
// Not (< x and > y)
|
||||
@elseif ($op == 'not') {
|
||||
$media: 'screen and (max-width: ' + ($x - 1) + '), screen and (min-width: ' + ($y + 1) + ')';
|
||||
}
|
||||
|
||||
// Equal (>= x and <= y)
|
||||
@else {
|
||||
$media: 'screen and (min-width: ' + $x + ') and (max-width: ' + $y + ')';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// String.
|
||||
@else {
|
||||
|
||||
// Missing a media type? Prefix with "screen".
|
||||
@if (str-slice($a, 0, 1) == '(') {
|
||||
$media: 'screen and ' + $a;
|
||||
}
|
||||
|
||||
// Otherwise, use as-is.
|
||||
@else {
|
||||
$media: $a;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Output.
|
||||
@media #{$media} {
|
||||
@content;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
/// Removes a specific item from a list.
|
||||
/// @author Hugo Giraudel
|
||||
/// @param {list} $list List.
|
||||
/// @param {integer} $index Index.
|
||||
/// @return {list} Updated list.
|
||||
@function remove-nth($list, $index) {
|
||||
|
||||
$result: null;
|
||||
|
||||
@if type-of($index) != number {
|
||||
@warn "$index: #{quote($index)} is not a number for `remove-nth`.";
|
||||
}
|
||||
@else if $index == 0 {
|
||||
@warn "List index 0 must be a non-zero integer for `remove-nth`.";
|
||||
}
|
||||
@else if abs($index) > length($list) {
|
||||
@warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
|
||||
}
|
||||
@else {
|
||||
|
||||
$result: ();
|
||||
$index: if($index < 0, length($list) + $index + 1, $index);
|
||||
|
||||
@for $i from 1 through length($list) {
|
||||
|
||||
@if $i != $index {
|
||||
$result: append($result, nth($list, $i));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@return $result;
|
||||
|
||||
}
|
||||
|
||||
/// Gets a value from a map.
|
||||
/// @author Hugo Giraudel
|
||||
/// @param {map} $map Map.
|
||||
/// @param {string} $keys Key(s).
|
||||
/// @return {string} Value.
|
||||
@function val($map, $keys...) {
|
||||
|
||||
@if nth($keys, 1) == null {
|
||||
$keys: remove-nth($keys, 1);
|
||||
}
|
||||
|
||||
@each $key in $keys {
|
||||
$map: map-get($map, $key);
|
||||
}
|
||||
|
||||
@return $map;
|
||||
|
||||
}
|
||||
|
||||
/// Gets a duration value.
|
||||
/// @param {string} $keys Key(s).
|
||||
/// @return {string} Value.
|
||||
@function _duration($keys...) {
|
||||
@return val($duration, $keys...);
|
||||
}
|
||||
|
||||
/// Gets a font value.
|
||||
/// @param {string} $keys Key(s).
|
||||
/// @return {string} Value.
|
||||
@function _font($keys...) {
|
||||
@return val($font, $keys...);
|
||||
}
|
||||
|
||||
/// Gets a misc value.
|
||||
/// @param {string} $keys Key(s).
|
||||
/// @return {string} Value.
|
||||
@function _misc($keys...) {
|
||||
@return val($misc, $keys...);
|
||||
}
|
||||
|
||||
/// Gets a palette value.
|
||||
/// @param {string} $keys Key(s).
|
||||
/// @return {string} Value.
|
||||
@function _palette($keys...) {
|
||||
@return val($palette, $keys...);
|
||||
}
|
||||
|
||||
/// Gets a size value.
|
||||
/// @param {string} $keys Key(s).
|
||||
/// @return {string} Value.
|
||||
@function _size($keys...) {
|
||||
@return val($size, $keys...);
|
||||
}
|
|
@ -0,0 +1,149 @@
|
|||
// html-grid.scss v1.0 | @ajlkn | MIT licensed */
|
||||
|
||||
// Mixins.
|
||||
|
||||
/// Initializes the current element as an HTML grid.
|
||||
/// @param {mixed} $gutters Gutters (either a single number to set both column/row gutters, or a list to set them individually).
|
||||
/// @param {mixed} $suffix Column class suffix (optional; either a single suffix or a list).
|
||||
@mixin html-grid($gutters: 1.5em, $suffix: '') {
|
||||
|
||||
// Initialize.
|
||||
$cols: 12;
|
||||
$multipliers: 0, 0.25, 0.5, 1, 1.50, 2.00;
|
||||
$unit: 100% / $cols;
|
||||
|
||||
// Suffixes.
|
||||
$suffixes: null;
|
||||
|
||||
@if (type-of($suffix) == 'list') {
|
||||
$suffixes: $suffix;
|
||||
}
|
||||
@else {
|
||||
$suffixes: ($suffix);
|
||||
}
|
||||
|
||||
// Gutters.
|
||||
$guttersCols: null;
|
||||
$guttersRows: null;
|
||||
|
||||
@if (type-of($gutters) == 'list') {
|
||||
|
||||
$guttersCols: nth($gutters, 1);
|
||||
$guttersRows: nth($gutters, 2);
|
||||
|
||||
}
|
||||
@else {
|
||||
|
||||
$guttersCols: $gutters;
|
||||
$guttersRows: 0;
|
||||
|
||||
}
|
||||
|
||||
// Row.
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
box-sizing: border-box;
|
||||
align-items: stretch;
|
||||
|
||||
// Columns.
|
||||
> * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
// Gutters.
|
||||
&.gtr-uniform {
|
||||
> * {
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Alignment.
|
||||
&.aln-left {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
&.aln-center {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
&.aln-right {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
&.aln-top {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
&.aln-middle {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&.aln-bottom {
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
// Step through suffixes.
|
||||
@each $suffix in $suffixes {
|
||||
|
||||
// Suffix.
|
||||
@if ($suffix != '') {
|
||||
$suffix: '-' + $suffix;
|
||||
}
|
||||
@else {
|
||||
$suffix: '';
|
||||
}
|
||||
|
||||
// Row.
|
||||
|
||||
// Important.
|
||||
> .imp#{$suffix} {
|
||||
order: -1;
|
||||
}
|
||||
|
||||
// Columns, offsets.
|
||||
@for $i from 1 through $cols {
|
||||
> .col-#{$i}#{$suffix} {
|
||||
width: $unit * $i;
|
||||
}
|
||||
|
||||
> .off-#{$i}#{$suffix} {
|
||||
margin-left: $unit * $i;
|
||||
}
|
||||
}
|
||||
|
||||
// Step through multipliers.
|
||||
@each $multiplier in $multipliers {
|
||||
|
||||
// Gutters.
|
||||
$class: null;
|
||||
|
||||
@if ($multiplier != 1) {
|
||||
$class: '.gtr-' + ($multiplier * 100);
|
||||
}
|
||||
|
||||
&#{$class} {
|
||||
margin-top: ($guttersRows * $multiplier * -1);
|
||||
margin-left: ($guttersCols * $multiplier * -1);
|
||||
|
||||
> * {
|
||||
padding: ($guttersRows * $multiplier) 0 0 ($guttersCols * $multiplier);
|
||||
}
|
||||
|
||||
// Uniform.
|
||||
&.gtr-uniform {
|
||||
margin-top: $guttersCols * $multiplier * -1;
|
||||
|
||||
> * {
|
||||
padding-top: $guttersCols * $multiplier;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
/// Makes an element's :before pseudoelement a FontAwesome icon.
|
||||
/// @param {string} $content Optional content value to use.
|
||||
/// @param {string} $where Optional pseudoelement to target (before or after).
|
||||
@mixin icon($content: false, $where: before) {
|
||||
|
||||
text-decoration: none;
|
||||
|
||||
&:#{$where} {
|
||||
|
||||
@if $content {
|
||||
content: $content;
|
||||
}
|
||||
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-family: FontAwesome;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
text-transform: none !important;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// Applies padding to an element, taking the current element-margin value into account.
|
||||
/// @param {mixed} $tb Top/bottom padding.
|
||||
/// @param {mixed} $lr Left/right padding.
|
||||
/// @param {list} $pad Optional extra padding (in the following order top, right, bottom, left)
|
||||
/// @param {bool} $important If true, adds !important.
|
||||
@mixin padding($tb, $lr, $pad: (0,0,0,0), $important: null) {
|
||||
|
||||
@if $important {
|
||||
$important: '!important';
|
||||
}
|
||||
|
||||
$x: 0.1em;
|
||||
|
||||
@if unit(_size(element-margin)) == 'rem' {
|
||||
$x: 0.1rem;
|
||||
}
|
||||
|
||||
padding: ($tb + nth($pad,1)) ($lr + nth($pad,2)) max($x, $tb - _size(element-margin) + nth($pad,3)) ($lr + nth($pad,4)) #{$important};
|
||||
|
||||
}
|
||||
|
||||
/// Encodes a SVG data URL so IE doesn't choke (via codepen.io/jakob-e/pen/YXXBrp).
|
||||
/// @param {string} $svg SVG data URL.
|
||||
/// @return {string} Encoded SVG data URL.
|
||||
@function svg-url($svg) {
|
||||
|
||||
$svg: str-replace($svg, '"', '\'');
|
||||
$svg: str-replace($svg, '%', '%25');
|
||||
$svg: str-replace($svg, '<', '%3C');
|
||||
$svg: str-replace($svg, '>', '%3E');
|
||||
$svg: str-replace($svg, '&', '%26');
|
||||
$svg: str-replace($svg, '#', '%23');
|
||||
$svg: str-replace($svg, '{', '%7B');
|
||||
$svg: str-replace($svg, '}', '%7D');
|
||||
$svg: str-replace($svg, ';', '%3B');
|
||||
|
||||
@return url("data:image/svg+xml;charset=utf8,#{$svg}");
|
||||
|
||||
}
|
|
@ -0,0 +1,60 @@
|
|||
// Misc.
|
||||
$misc: (
|
||||
z-index-base: 10000
|
||||
);
|
||||
|
||||
// Duration.
|
||||
$duration: (
|
||||
transition: 0.2s
|
||||
);
|
||||
|
||||
// Size.
|
||||
$size: (
|
||||
border-radius: 4px,
|
||||
element-height: 2.75em,
|
||||
element-margin: 2em,
|
||||
container-width: 60em
|
||||
);
|
||||
|
||||
// Font.
|
||||
$font: (
|
||||
family: ('Source Sans Pro', Helvetica, sans-serif),
|
||||
family-fixed: ('Courier New', monospace),
|
||||
weight: 300,
|
||||
weight-bold: 400
|
||||
);
|
||||
|
||||
// Palette.
|
||||
$palette: (
|
||||
bg: #fff,
|
||||
fg: #666,
|
||||
fg-bold: #555,
|
||||
fg-light: #999,
|
||||
border: rgba(144,144,144,0.5),
|
||||
border-bg: rgba(144,144,144,0.075),
|
||||
border2: rgba(144,144,144,0.75),
|
||||
border2-bg: rgba(144,144,144,0.2),
|
||||
accent1: #c3e895,
|
||||
accent2: #8addaa,
|
||||
accent3: #6bd4c8,
|
||||
accent4: #57aed3,
|
||||
accent5: #4a87d3,
|
||||
accent6: #6b88e6,
|
||||
accent1-alt: desaturate(darken(#c3e895, 15), 20),
|
||||
accent2-alt: desaturate(darken(#8addaa, 15), 20),
|
||||
accent3-alt: desaturate(darken(#6bd4c8, 15), 20),
|
||||
accent4-alt: desaturate(darken(#57aed3, 15), 20),
|
||||
accent5-alt: desaturate(darken(#4a87d3, 15), 20),
|
||||
accent6-alt: desaturate(darken(#6b88e6, 15), 20),
|
||||
|
||||
dark: (
|
||||
bg: #666666,
|
||||
fg-bold: #ffffff,
|
||||
fg: rgba(255,255,255,0.75),
|
||||
fg-light: rgba(255,255,255,0.5),
|
||||
border: #ffffff,
|
||||
border-bg: rgba(255,255,255,0.125),
|
||||
border2: rgba(255,255,255,0.75),
|
||||
border2-bg: rgba(255,255,255,0.25)
|
||||
)
|
||||
);
|
|
@ -0,0 +1,376 @@
|
|||
// vendor.scss v1.0 | @ajlkn | MIT licensed */
|
||||
|
||||
// Vars.
|
||||
|
||||
/// Vendor prefixes.
|
||||
/// @var {list}
|
||||
$vendor-prefixes: (
|
||||
'-moz-',
|
||||
'-webkit-',
|
||||
'-ms-',
|
||||
''
|
||||
);
|
||||
|
||||
/// Properties that should be vendorized.
|
||||
/// Data via caniuse.com, github.com/postcss/autoprefixer, and developer.mozilla.org
|
||||
/// @var {list}
|
||||
$vendor-properties: (
|
||||
|
||||
// Animation.
|
||||
'animation',
|
||||
'animation-delay',
|
||||
'animation-direction',
|
||||
'animation-duration',
|
||||
'animation-fill-mode',
|
||||
'animation-iteration-count',
|
||||
'animation-name',
|
||||
'animation-play-state',
|
||||
'animation-timing-function',
|
||||
|
||||
// Appearance.
|
||||
'appearance',
|
||||
|
||||
// Backdrop filter.
|
||||
'backdrop-filter',
|
||||
|
||||
// Background image options.
|
||||
'background-clip',
|
||||
'background-origin',
|
||||
'background-size',
|
||||
|
||||
// Box sizing.
|
||||
'box-sizing',
|
||||
|
||||
// Clip path.
|
||||
'clip-path',
|
||||
|
||||
// Filter effects.
|
||||
'filter',
|
||||
|
||||
// Flexbox.
|
||||
'align-content',
|
||||
'align-items',
|
||||
'align-self',
|
||||
'flex',
|
||||
'flex-basis',
|
||||
'flex-direction',
|
||||
'flex-flow',
|
||||
'flex-grow',
|
||||
'flex-shrink',
|
||||
'flex-wrap',
|
||||
'justify-content',
|
||||
'order',
|
||||
|
||||
// Font feature.
|
||||
'font-feature-settings',
|
||||
'font-language-override',
|
||||
'font-variant-ligatures',
|
||||
|
||||
// Font kerning.
|
||||
'font-kerning',
|
||||
|
||||
// Fragmented borders and backgrounds.
|
||||
'box-decoration-break',
|
||||
|
||||
// Grid layout.
|
||||
'grid-column',
|
||||
'grid-column-align',
|
||||
'grid-column-end',
|
||||
'grid-column-start',
|
||||
'grid-row',
|
||||
'grid-row-align',
|
||||
'grid-row-end',
|
||||
'grid-row-start',
|
||||
'grid-template-columns',
|
||||
'grid-template-rows',
|
||||
|
||||
// Hyphens.
|
||||
'hyphens',
|
||||
'word-break',
|
||||
|
||||
// Masks.
|
||||
'mask',
|
||||
'mask-border',
|
||||
'mask-border-outset',
|
||||
'mask-border-repeat',
|
||||
'mask-border-slice',
|
||||
'mask-border-source',
|
||||
'mask-border-width',
|
||||
'mask-clip',
|
||||
'mask-composite',
|
||||
'mask-image',
|
||||
'mask-origin',
|
||||
'mask-position',
|
||||
'mask-repeat',
|
||||
'mask-size',
|
||||
|
||||
// Multicolumn.
|
||||
'break-after',
|
||||
'break-before',
|
||||
'break-inside',
|
||||
'column-count',
|
||||
'column-fill',
|
||||
'column-gap',
|
||||
'column-rule',
|
||||
'column-rule-color',
|
||||
'column-rule-style',
|
||||
'column-rule-width',
|
||||
'column-span',
|
||||
'column-width',
|
||||
'columns',
|
||||
|
||||
// Object fit.
|
||||
'object-fit',
|
||||
'object-position',
|
||||
|
||||
// Regions.
|
||||
'flow-from',
|
||||
'flow-into',
|
||||
'region-fragment',
|
||||
|
||||
// Scroll snap points.
|
||||
'scroll-snap-coordinate',
|
||||
'scroll-snap-destination',
|
||||
'scroll-snap-points-x',
|
||||
'scroll-snap-points-y',
|
||||
'scroll-snap-type',
|
||||
|
||||
// Shapes.
|
||||
'shape-image-threshold',
|
||||
'shape-margin',
|
||||
'shape-outside',
|
||||
|
||||
// Tab size.
|
||||
'tab-size',
|
||||
|
||||
// Text align last.
|
||||
'text-align-last',
|
||||
|
||||
// Text decoration.
|
||||
'text-decoration-color',
|
||||
'text-decoration-line',
|
||||
'text-decoration-skip',
|
||||
'text-decoration-style',
|
||||
|
||||
// Text emphasis.
|
||||
'text-emphasis',
|
||||
'text-emphasis-color',
|
||||
'text-emphasis-position',
|
||||
'text-emphasis-style',
|
||||
|
||||
// Text size adjust.
|
||||
'text-size-adjust',
|
||||
|
||||
// Text spacing.
|
||||
'text-spacing',
|
||||
|
||||
// Transform.
|
||||
'transform',
|
||||
'transform-origin',
|
||||
|
||||
// Transform 3D.
|
||||
'backface-visibility',
|
||||
'perspective',
|
||||
'perspective-origin',
|
||||
'transform-style',
|
||||
|
||||
// Transition.
|
||||
'transition',
|
||||
'transition-delay',
|
||||
'transition-duration',
|
||||
'transition-property',
|
||||
'transition-timing-function',
|
||||
|
||||
// Unicode bidi.
|
||||
'unicode-bidi',
|
||||
|
||||
// User select.
|
||||
'user-select',
|
||||
|
||||
// Writing mode.
|
||||
'writing-mode',
|
||||
|
||||
);
|
||||
|
||||
/// Values that should be vendorized.
|
||||
/// Data via caniuse.com, github.com/postcss/autoprefixer, and developer.mozilla.org
|
||||
/// @var {list}
|
||||
$vendor-values: (
|
||||
|
||||
// Cross fade.
|
||||
'cross-fade',
|
||||
|
||||
// Element function.
|
||||
'element',
|
||||
|
||||
// Filter function.
|
||||
'filter',
|
||||
|
||||
// Flexbox.
|
||||
'flex',
|
||||
'inline-flex',
|
||||
|
||||
// Grab cursors.
|
||||
'grab',
|
||||
'grabbing',
|
||||
|
||||
// Gradients.
|
||||
'linear-gradient',
|
||||
'repeating-linear-gradient',
|
||||
'radial-gradient',
|
||||
'repeating-radial-gradient',
|
||||
|
||||
// Grid layout.
|
||||
'grid',
|
||||
'inline-grid',
|
||||
|
||||
// Image set.
|
||||
'image-set',
|
||||
|
||||
// Intrinsic width.
|
||||
'max-content',
|
||||
'min-content',
|
||||
'fit-content',
|
||||
'fill',
|
||||
'fill-available',
|
||||
'stretch',
|
||||
|
||||
// Sticky position.
|
||||
'sticky',
|
||||
|
||||
// Transform.
|
||||
'transform',
|
||||
|
||||
// Zoom cursors.
|
||||
'zoom-in',
|
||||
'zoom-out',
|
||||
|
||||
);
|
||||
|
||||
// Functions.
|
||||
|
||||
/// Removes a specific item from a list.
|
||||
/// @author Hugo Giraudel
|
||||
/// @param {list} $list List.
|
||||
/// @param {integer} $index Index.
|
||||
/// @return {list} Updated list.
|
||||
@function remove-nth($list, $index) {
|
||||
|
||||
$result: null;
|
||||
|
||||
@if type-of($index) != number {
|
||||
@warn "$index: #{quote($index)} is not a number for `remove-nth`.";
|
||||
}
|
||||
@else if $index == 0 {
|
||||
@warn "List index 0 must be a non-zero integer for `remove-nth`.";
|
||||
}
|
||||
@else if abs($index) > length($list) {
|
||||
@warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
|
||||
}
|
||||
@else {
|
||||
|
||||
$result: ();
|
||||
$index: if($index < 0, length($list) + $index + 1, $index);
|
||||
|
||||
@for $i from 1 through length($list) {
|
||||
|
||||
@if $i != $index {
|
||||
$result: append($result, nth($list, $i));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@return $result;
|
||||
|
||||
}
|
||||
|
||||
/// Replaces a substring within another string.
|
||||
/// @author Hugo Giraudel
|
||||
/// @param {string} $string String.
|
||||
/// @param {string} $search Substring.
|
||||
/// @param {string} $replace Replacement.
|
||||
/// @return {string} Updated string.
|
||||
@function str-replace($string, $search, $replace: '') {
|
||||
|
||||
$index: str-index($string, $search);
|
||||
|
||||
@if $index {
|
||||
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
||||
}
|
||||
|
||||
@return $string;
|
||||
|
||||
}
|
||||
|
||||
/// Replaces a substring within each string in a list.
|
||||
/// @param {list} $strings List of strings.
|
||||
/// @param {string} $search Substring.
|
||||
/// @param {string} $replace Replacement.
|
||||
/// @return {list} Updated list of strings.
|
||||
@function str-replace-all($strings, $search, $replace: '') {
|
||||
|
||||
@each $string in $strings {
|
||||
$strings: set-nth($strings, index($strings, $string), str-replace($string, $search, $replace));
|
||||
}
|
||||
|
||||
@return $strings;
|
||||
|
||||
}
|
||||
|
||||
// Mixins.
|
||||
|
||||
/// Wraps @content in vendorized keyframe blocks.
|
||||
/// @param {string} $name Name.
|
||||
@mixin keyframes($name) {
|
||||
|
||||
@-moz-keyframes #{$name} { @content; }
|
||||
@-webkit-keyframes #{$name} { @content; }
|
||||
@-ms-keyframes #{$name} { @content; }
|
||||
@keyframes #{$name} { @content; }
|
||||
|
||||
}
|
||||
|
||||
/// Vendorizes a declaration's property and/or value(s).
|
||||
/// @param {string} $property Property.
|
||||
/// @param {mixed} $value String/list of value(s).
|
||||
@mixin vendor($property, $value) {
|
||||
|
||||
// Determine if property should expand.
|
||||
$expandProperty: index($vendor-properties, $property);
|
||||
|
||||
// Determine if value should expand (and if so, add '-prefix-' placeholder).
|
||||
$expandValue: false;
|
||||
|
||||
@each $x in $value {
|
||||
@each $y in $vendor-values {
|
||||
@if $y == str-slice($x, 1, str-length($y)) {
|
||||
|
||||
$value: set-nth($value, index($value, $x), '-prefix-' + $x);
|
||||
$expandValue: true;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Expand property?
|
||||
@if $expandProperty {
|
||||
@each $vendor in $vendor-prefixes {
|
||||
#{$vendor}#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
|
||||
}
|
||||
}
|
||||
|
||||
// Expand just the value?
|
||||
@elseif $expandValue {
|
||||
@each $vendor in $vendor-prefixes {
|
||||
#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
|
||||
}
|
||||
}
|
||||
|
||||
// Neither? Treat them as a normal declaration.
|
||||
@else {
|
||||
#{$property}: #{$value};
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,32 @@
|
|||
@import 'libs/vars';
|
||||
@import 'libs/functions';
|
||||
@import 'libs/mixins';
|
||||
@import 'libs/vendor';
|
||||
@import 'libs/breakpoints';
|
||||
@import 'libs/html-grid';
|
||||
|
||||
/*
|
||||
Photon by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
*/
|
||||
|
||||
/* Header */
|
||||
|
||||
body.is-preload {
|
||||
#header {
|
||||
.inner {
|
||||
@include vendor('transform', 'none');
|
||||
opacity: 1;
|
||||
|
||||
.actions {
|
||||
@include vendor('transform', 'none');
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&:after {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,123 @@
|
|||
.picker-container {
|
||||
position: absolute;
|
||||
z-index: 99;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.cal {
|
||||
background-color: white;
|
||||
display: block;
|
||||
width: 216px;
|
||||
-webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
|
||||
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
.cal a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.cal tr, .cal th, .cal td {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
font: inherit;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
.cal caption {
|
||||
line-height: 32px;
|
||||
font-weight: bold;
|
||||
color: #e2e2e2;
|
||||
text-align: center;
|
||||
text-shadow: 0 -1px black;
|
||||
background: #333;
|
||||
//background: rgba(0, 0, 0, 0.35);
|
||||
border-top: 1px solid #333;
|
||||
border-bottom: 1px solid #313131;
|
||||
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
|
||||
box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
.cal caption a {
|
||||
display: block;
|
||||
line-height: 32px;
|
||||
padding: 0 10px;
|
||||
font-size: 15px;
|
||||
color: #e2e2e2;
|
||||
}
|
||||
.cal caption a:hover {
|
||||
color: white;
|
||||
}
|
||||
.cal caption .prev {
|
||||
float: left;
|
||||
}
|
||||
.cal caption .next {
|
||||
float: right;
|
||||
}
|
||||
.cal th, .cal td {
|
||||
width: 30px;
|
||||
text-align: center;
|
||||
text-shadow: 0 1px rgba(255, 255, 255, 0.8);
|
||||
font-family:'malgun gothic';
|
||||
}
|
||||
.cal th:first-child, .cal td:first-child {
|
||||
border-left: 0;
|
||||
}
|
||||
.cal th {
|
||||
line-height: 20px;
|
||||
font-size: 11px;
|
||||
color: #696969;
|
||||
text-transform: uppercase;
|
||||
background: #f3f3f3;
|
||||
border-left: 1px solid #f3f3f3;
|
||||
}
|
||||
.cal td {
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
border-top: 1px solid #c2c2c2;
|
||||
border-left: 1px solid #c2c2c2;
|
||||
}
|
||||
.cal td a {
|
||||
clear: both;
|
||||
display: block;
|
||||
position: relative;
|
||||
width: 30px;
|
||||
line-height: 28px;
|
||||
color: #666;
|
||||
background-image: -webkit-linear-gradient(top, #eaeaea, #e5e5e5 60%, #d9d9d9);
|
||||
background-image: -moz-linear-gradient(top, #eaeaea, #e5e5e5 60%, #d9d9d9);
|
||||
background-image: -o-linear-gradient(top, #eaeaea, #e5e5e5 60%, #d9d9d9);
|
||||
background-image: linear-gradient(to bottom, #eaeaea, #e5e5e5 60%, #d9d9d9);
|
||||
-webkit-box-shadow: inset 1px 1px rgba(255, 255, 255, 0.5);
|
||||
box-shadow: inset 1px 1px rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
.cal td a:hover, .cal td.off a {
|
||||
background: #f3f3f3;
|
||||
}
|
||||
.cal td.off a {
|
||||
color: #b3b3b3;
|
||||
}
|
||||
.cal td.active a, .cal td a:active {
|
||||
margin: -1px;
|
||||
color: #f3f3f3;
|
||||
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
|
||||
background: #6dafbf;
|
||||
border: 1px solid #598b94;
|
||||
-webkit-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
|
||||
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
.cal td.active:first-child a, .cal td:first-child a:active {
|
||||
border-left: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
.cal td.active:last-child a, .cal td:last-child a:active {
|
||||
border-right: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
.cal tr:last-child td.active a, .cal tr:last-child td a:active {
|
||||
border-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@ include file="/manager_for_cms/include/manager_head.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_maker = r_call(request.getParameter("c_maker"));
|
||||
String board_no = r_call(request.getParameter("board_no"));
|
||||
if(board_no == null || board_no.equals("")){
|
||||
%>
|
||||
<script>
|
||||
alert("Wrong connection.")
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
int c_relation = 0;
|
||||
int c_relation2 = 0;
|
||||
String sql_ok2 = "select * from tbl_menu where c_no = " + board_no;
|
||||
ResultSet rss = stmt.executeQuery(sql_ok2);
|
||||
if(rss.next()){
|
||||
c_relation= rss.getInt("c_relation");
|
||||
c_relation2= rss.getInt("c_relation2");
|
||||
|
||||
}
|
||||
rss.close();
|
||||
String para_t = "c_home=" + c_home + "&c_maker=" + c_maker + "&board_no=" + board_no + "&c_relaton=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
|
||||
String sql_ok = "";
|
||||
sql_ok = "update tbl_board set c_use = 1 where c_no = " + c_no;
|
||||
stmt2.execute(sql_ok);
|
||||
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Delete OK.");
|
||||
location.href="list.jsp?<%=para_t%>";
|
||||
</script>
|
||||
<%}%>
|
||||
<%@ include file="/manager_for_cms/include/manager_bottom.jsp"%>
|
||||
|
|
@ -0,0 +1,140 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ include file="/manager_for_cms/include/manager_head.jsp"%>
|
||||
<script src="/ckeditor/ckeditor.js"></script>
|
||||
|
||||
<%
|
||||
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_maker = r_call(request.getParameter("c_maker"));
|
||||
String board_no = r_call(request.getParameter("board_no"));
|
||||
|
||||
if(board_no == null || board_no.equals("")){
|
||||
%>
|
||||
<script>
|
||||
alert("Wrong connection.")
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
|
||||
%>
|
||||
<center>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<table width="800" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
||||
<tr style="font-size:14px;">
|
||||
<td height="60">
|
||||
<%
|
||||
int c_relation = 0;
|
||||
int c_relation2 = 0;
|
||||
String sql_ok2 = "select * from tbl_menu where c_no = " + board_no;
|
||||
ResultSet rss = stmt.executeQuery(sql_ok2);
|
||||
if(rss.next()){
|
||||
c_relation= rss.getInt("c_relation");
|
||||
c_relation2= rss.getInt("c_relation2");
|
||||
%>
|
||||
<b>[ <%=rss.getString("c_name")%> ] board management</b>
|
||||
<%
|
||||
}
|
||||
rss.close();
|
||||
String para_t = "c_home=" + c_home + "&c_maker=" + c_maker + "&board_no=" + board_no + "&c_relaton=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
%>
|
||||
<br>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<%
|
||||
String nowPage = r_call(request.getParameter("nowPage"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
if(c_no.equals("")){
|
||||
|
||||
}else{
|
||||
String sql1 = " select a.* ";
|
||||
sql1 = sql1 + " from tbl_board a where a.c_no = " + c_no;
|
||||
ResultSet rst = stmt.executeQuery(sql1);
|
||||
if (rst.next()) {
|
||||
|
||||
%>
|
||||
<script>
|
||||
function go(){
|
||||
if(document.bcb.c_title.value == ""){
|
||||
alert("Please enter the subject.")
|
||||
document.bcb.c_title.focus()
|
||||
//}else if(document.bcb.c_content.value == ""){
|
||||
// alert("내용을 입력해 주세요.")
|
||||
// document.bcb.c_content.focus()
|
||||
|
||||
|
||||
}else{
|
||||
document.bcb.method = "post"
|
||||
document.bcb.target = "exec"
|
||||
document.bcb.action = "edit_ok.jsp?<%=para_t%>"
|
||||
document.bcb.submit()
|
||||
}
|
||||
}
|
||||
function check_check(){
|
||||
if(document.bcb.c_type_0.checked == true){
|
||||
for(i = 0; i < document.bcb.c_team.length; i = i +1){
|
||||
document.bcb.c_team[i].checked = true;
|
||||
}
|
||||
}else{
|
||||
for(i = 0; i < document.bcb.c_team.length; i = i +1){
|
||||
document.bcb.c_team[i].checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
function check_check2(){
|
||||
check_no = 0
|
||||
for(i = 0; i < document.bcb.c_team.length; i = i +1){
|
||||
if(document.bcb.c_team[i].checked == false){
|
||||
check_no = 1
|
||||
}
|
||||
}
|
||||
if(check_no == 0){
|
||||
document.bcb.c_type_0.checked = true
|
||||
}else{
|
||||
document.bcb.c_type_0.checked = false
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
<form name="bcb" encType="multipart/form-data">
|
||||
<input name="c_no" value="<%=c_no%>" type="hidden">
|
||||
<table width="800" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
||||
<tr><td height="30">
|
||||
<input name="c_title" value="<%=rst.getString("c_title")%>" style="width:100%;height:30px" placeholder="Please enter the subject.">
|
||||
</td></tr>
|
||||
<tr><td height="30">
|
||||
Name.
|
||||
<input name="c_name" value="<%=rst.getString("c_name")%>" style="width:150px">
|
||||
</td></tr>
|
||||
<tr><td >
|
||||
<textarea name="c_content" class="ckeditor" style="width:100%;height:200px"><%=rst.getString("c_content")%></textarea>
|
||||
</td></tr>
|
||||
<tr><td height="30">
|
||||
File. <%=rst.getString("c_file")%>
|
||||
<input name="o_file_name" value="<%=rst.getString("c_file")%>" type="hidden">
|
||||
<%if(!rst.getString("c_file").equals("")){%>
|
||||
<input name="o_file" value="y" type="checkbox">Delete</b>
|
||||
<%}%>
|
||||
<br>
|
||||
<input name="c_file" type="file" style="width:100%;height:30px" placeholder="Please select a file.">
|
||||
</td></tr>
|
||||
<tr><td height="40" align=center>
|
||||
<a href="#none" onclick="go()" style="width: 80px; line-height: 26px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;">Edit</a>
|
||||
<a href="view.jsp?<%=para_t%>&c_no=<%=c_no%>" style="width: 80px; line-height: 26px; text-align: center;display: inline-block; background: #989898; border: 1px solid #555; border-radius: 5px; color: #ffffff;">View</a>
|
||||
|
||||
</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<iframe name="exec" id="exec" src="" width=0 height="0"></iframe>
|
||||
<%
|
||||
|
||||
}
|
||||
rst.close();
|
||||
}
|
||||
%>
|
||||
<%}%>
|
||||
<%@ include file="/manager_for_cms/include/manager_bottom.jsp"%>
|
|
@ -0,0 +1,103 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@ include file="/manager_for_cms/include/manager_head.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
|
||||
|
||||
String fileName = "";
|
||||
String realFolder = "";
|
||||
String saveFolder = "/upload/board";
|
||||
String encType = "utf-8";
|
||||
int maxSize = 10 * 1024 * 1024;
|
||||
|
||||
ServletContext scontext = getServletContext();
|
||||
ArrayList saveFiles = new ArrayList();
|
||||
ArrayList orgFiles = new ArrayList();
|
||||
realFolder = scontext.getRealPath(saveFolder);
|
||||
MultipartRequest multi = new MultipartRequest( request
|
||||
, realFolder
|
||||
, maxSize
|
||||
, encType
|
||||
, new DefaultFileRenamePolicy() );
|
||||
Enumeration files = multi.getFileNames();
|
||||
int t1 = 0;
|
||||
String[] a_file = new String[11];
|
||||
int olp = 11;
|
||||
while( files.hasMoreElements() ){
|
||||
olp = olp - 1;
|
||||
|
||||
String name = (String)files.nextElement();
|
||||
String fName = multi.getFilesystemName( name );
|
||||
String oName = multi.getOriginalFileName( name );
|
||||
String type = multi.getContentType( name );
|
||||
File f = multi.getFile( name );
|
||||
if(fName != null && !fName.equals("")){
|
||||
t1 = t1 + 1;
|
||||
if(t1 > 1){
|
||||
fileName = fileName + "|";
|
||||
}
|
||||
fileName = fileName + fName;
|
||||
a_file[olp] = fName;
|
||||
|
||||
}else{
|
||||
a_file[olp] = "";
|
||||
}
|
||||
}
|
||||
if(fileName == null){
|
||||
fileName = "";
|
||||
}
|
||||
|
||||
String c_home = r_call(multi.getParameter("c_home"));
|
||||
String c_maker = r_call(multi.getParameter("c_maker"));
|
||||
String board_no = r_call(multi.getParameter("board_no"));
|
||||
|
||||
|
||||
int c_relation = 0;
|
||||
int c_relation2 = 0;
|
||||
String sql_ok2 = "select * from tbl_menu where c_no = " + board_no;
|
||||
ResultSet rss = stmt.executeQuery(sql_ok2);
|
||||
if(rss.next()){
|
||||
c_relation= rss.getInt("c_relation");
|
||||
c_relation2= rss.getInt("c_relation2");
|
||||
|
||||
}
|
||||
rss.close();
|
||||
String para_t = "c_home=" + c_home + "&c_maker=" + c_maker + "&board_no=" + board_no + "&c_relaton=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
|
||||
|
||||
String c_no = r_call(multi.getParameter("c_no"));
|
||||
String c_title = r_call(multi.getParameter("c_title"));
|
||||
String c_name = r_call(multi.getParameter("c_name"));
|
||||
String c_content = r_call2(multi.getParameter("c_content"));
|
||||
String o_file = r_call(multi.getParameter("o_file"));
|
||||
String o_file_name = r_call(multi.getParameter("o_file_name"));
|
||||
String last_file = "";
|
||||
if(!fileName.equals("")){
|
||||
last_file = fileName;
|
||||
}else{
|
||||
if(o_file.equals("y")){
|
||||
last_file = "";
|
||||
}else{
|
||||
last_file = o_file_name;
|
||||
}
|
||||
}
|
||||
|
||||
String sql_ok = "";
|
||||
sql_ok = "update tbl_board set c_title = '"+ c_title +"',c_content='"+ c_content +"',c_file ='"+ last_file +"' where c_no = " + c_no;
|
||||
|
||||
stmt2.execute(sql_ok);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Edit OK.");
|
||||
parent.location.href="view.jsp?<%=para_t%>&c_no=<%=c_no%>";
|
||||
</script>
|
||||
<%@ include file="/manager_for_cms/include/manager_bottom.jsp"%>
|
|
@ -0,0 +1,123 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
|
||||
<script src="/ckeditor/ckeditor.js"></script>
|
||||
<%
|
||||
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_maker = r_call(request.getParameter("c_maker"));
|
||||
String board_no = r_call(request.getParameter("board_no"));
|
||||
|
||||
if(board_no == null || board_no.equals("")){
|
||||
%>
|
||||
<script>
|
||||
alert("Wrong connection.")
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
|
||||
%>
|
||||
<center>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<table width="800" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
||||
<tr style="font-size:14px;">
|
||||
<td height="60">
|
||||
<%
|
||||
int c_relation = 0;
|
||||
int c_relation2 = 0;
|
||||
|
||||
String sql_ok2 = "select * from tbl_menu where c_no = " + board_no;
|
||||
ResultSet rss = stmt.executeQuery(sql_ok2);
|
||||
if(rss.next()){
|
||||
c_relation= rss.getInt("c_relation");
|
||||
c_relation2= rss.getInt("c_relation2");
|
||||
%>
|
||||
<b>[ <%=rss.getString("c_name")%> ] board management</b>
|
||||
<%
|
||||
}
|
||||
rss.close();
|
||||
|
||||
c_relation = 0;
|
||||
c_relation2 = 1;
|
||||
|
||||
String para_t = "c_home=" + c_home + "&c_maker=" + c_maker + "&board_no=" + board_no + "&c_relaton=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
%>
|
||||
<br>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<script>
|
||||
function go(){
|
||||
if(document.bcb.c_title.value == ""){
|
||||
alert("Please enter the subject.")
|
||||
document.bcb.c_title.focus()
|
||||
//}else if(document.bcb.c_content.value == ""){
|
||||
// alert("내용을 입력해 주세요.")
|
||||
// document.bcb.c_content.focus()
|
||||
|
||||
|
||||
}else{
|
||||
document.bcb.method = "post"
|
||||
document.bcb.target = "exec"
|
||||
document.bcb.action = "insert_ok.jsp?<%=para_t%>"
|
||||
document.bcb.submit()
|
||||
}
|
||||
}
|
||||
function check_check(){
|
||||
if(document.bcb.c_type_0.checked == true){
|
||||
for(i = 0; i < document.bcb.c_team.length; i = i +1){
|
||||
document.bcb.c_team[i].checked = true;
|
||||
}
|
||||
}else{
|
||||
for(i = 0; i < document.bcb.c_team.length; i = i +1){
|
||||
document.bcb.c_team[i].checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
function check_check2(){
|
||||
check_no = 0
|
||||
for(i = 0; i < document.bcb.c_team.length; i = i +1){
|
||||
if(document.bcb.c_team[i].checked == false){
|
||||
check_no = 1
|
||||
}
|
||||
}
|
||||
if(check_no == 0){
|
||||
document.bcb.c_type_0.checked = true
|
||||
}else{
|
||||
document.bcb.c_type_0.checked = false
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
<form name="bcb" encType="multipart/form-data">
|
||||
|
||||
<table width="800" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
||||
<tr><td height="30">
|
||||
<input name="c_title" style="width:100%;height:30px" placeholder="Please enter the subject.">
|
||||
</td></tr>
|
||||
<tr><td height="30">
|
||||
Name :
|
||||
<input name="c_name" value="" style="width:150px">
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
<textarea name="c_content" class="ckeditor" style="width:100%;height:200px"></textarea>
|
||||
</td></tr>
|
||||
<tr><td height="30">
|
||||
<input name="c_file" type="file" style="width:100%;height:30px" placeholder="Please select a file.">
|
||||
</td></tr>
|
||||
<tr><td height="40" align=center>
|
||||
<a href="#none" onclick="go()" style="width: 80px; line-height: 40px; text-align: center;display: inline-block; background: #5E9ECA; border: 1px solid #ffffff;border-radius: 20px; color: #ffffff;font-weight:400;font-size: 13px;">Insert</a>
|
||||
<a href="list.jsp?<%=para_t%>" style="width: 80px; line-height: 40px; text-align: center;display: inline-block; background: #787878; border: 1px solid #ffffff; border-radius: 20px; color: #ffffff;font-weight:400;font-size: 13px;">Cancel</a>
|
||||
|
||||
</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<iframe name="exec" id="exec" src="" width=0 height="0"></iframe>
|
||||
<%}%>
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,97 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
|
||||
|
||||
|
||||
String fileName = "";
|
||||
String realFolder = "";
|
||||
String saveFolder = "/upload/board";
|
||||
String encType = "utf-8";
|
||||
int maxSize = 10 * 1024 * 1024;
|
||||
|
||||
ServletContext scontext = getServletContext();
|
||||
ArrayList saveFiles = new ArrayList();
|
||||
ArrayList orgFiles = new ArrayList();
|
||||
realFolder = scontext.getRealPath(saveFolder);
|
||||
realFolder = "/home/apply/upload";
|
||||
MultipartRequest multi = new MultipartRequest( request
|
||||
, realFolder
|
||||
, maxSize
|
||||
, encType
|
||||
, new DefaultFileRenamePolicy() );
|
||||
Enumeration files = multi.getFileNames();
|
||||
int t1 = 0;
|
||||
String[] a_file = new String[11];
|
||||
int olp = 11;
|
||||
while( files.hasMoreElements() ){
|
||||
olp = olp - 1;
|
||||
|
||||
String name = (String)files.nextElement();
|
||||
String fName = multi.getFilesystemName( name );
|
||||
String oName = multi.getOriginalFileName( name );
|
||||
String type = multi.getContentType( name );
|
||||
File f = multi.getFile( name );
|
||||
if(fName != null && !fName.equals("")){
|
||||
t1 = t1 + 1;
|
||||
if(t1 > 1){
|
||||
fileName = fileName + "|";
|
||||
}
|
||||
fileName = fileName + fName;
|
||||
a_file[olp] = fName;
|
||||
|
||||
}else{
|
||||
a_file[olp] = "";
|
||||
}
|
||||
}
|
||||
if(fileName == null){
|
||||
fileName = "";
|
||||
}
|
||||
|
||||
String c_home = r_call(multi.getParameter("c_home"));
|
||||
String c_maker = r_call(multi.getParameter("c_maker"));
|
||||
String board_no = r_call(multi.getParameter("board_no"));
|
||||
|
||||
|
||||
int c_relation = 0;
|
||||
int c_relation2 = 0;
|
||||
String sql_ok2 = "select * from tbl_menu where c_no = " + board_no;
|
||||
ResultSet rss = stmt.executeQuery(sql_ok2);
|
||||
if(rss.next()){
|
||||
c_relation= rss.getInt("c_relation");
|
||||
c_relation2= rss.getInt("c_relation2");
|
||||
|
||||
}
|
||||
rss.close();
|
||||
|
||||
c_relation = 0;
|
||||
c_relation2 = 1;
|
||||
|
||||
String para_t = "c_home=" + c_home + "&c_maker=" + c_maker + "&board_no=" + board_no + "&c_relaton=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
|
||||
|
||||
|
||||
|
||||
String c_title = r_call(multi.getParameter("c_title"));
|
||||
String c_name = r_call(multi.getParameter("c_name"));
|
||||
String c_content = r_call(multi.getParameter("c_content"));
|
||||
|
||||
String sql_ok = "";
|
||||
sql_ok = " insert into tbl_board (c_home,c_maker,c_board_no,c_relation,c_relation2, c_name ,c_title,c_content,c_file,c_click,c_use, c_date) values(";
|
||||
sql_ok = sql_ok + c_home + "," + c_maker + "," + board_no + "," + c_relation + "," + c_relation2 + ",'" + c_name + "','"+ c_title + "','" + c_content + "','" +fileName + "',0,0,now())";
|
||||
|
||||
stmt2.execute(sql_ok);
|
||||
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Insert ok");
|
||||
parent.location.href="list.jsp?<%=para_t%>>";
|
||||
</script>
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,204 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Main Management for C-Innovacion</title>
|
||||
<link href="manager_system.css" rel="stylesheet" type="text/css">
|
||||
<link href="style.css" rel="stylesheet" type="text/css">
|
||||
<link href="cal_style.css" rel="stylesheet" type="text/css">
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/js/calendar.js"></script>
|
||||
</head>
|
||||
|
||||
<%
|
||||
|
||||
String c_home = "0";
|
||||
String c_maker = "0";
|
||||
String board_no = "0";
|
||||
|
||||
if(board_no == null || board_no.equals("")){
|
||||
%>
|
||||
<script>
|
||||
alert("Wrong connection.")
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
|
||||
%>
|
||||
<center>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<table width="1000" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
||||
<tr style="font-size:14px;">
|
||||
<td height="60">
|
||||
<%
|
||||
int c_relation = 0;
|
||||
int c_relation2 = 0;
|
||||
String sql_ok2 = "select * from tbl_menu where c_no = " + board_no;
|
||||
ResultSet rss = stmt.executeQuery(sql_ok2);
|
||||
if(rss.next()){
|
||||
c_relation= rss.getInt("c_relation");
|
||||
c_relation2= rss.getInt("c_relation2");
|
||||
%>
|
||||
<b>[ <%=rss.getString("c_name")%> ] board management</b>
|
||||
<%
|
||||
}
|
||||
rss.close();
|
||||
|
||||
c_relation = 0;
|
||||
c_relation2 = 1;
|
||||
|
||||
String para_t = "c_home=" + c_home + "&c_maker=" + c_maker + "&board_no=" + board_no + "&c_relaton=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
%>
|
||||
<br>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<%
|
||||
String where_t = " c_use = 0 and ";
|
||||
int totalRecord = 0; //총레코드개수
|
||||
int numPerPage = 10; //한페이지당 보여줄레코드개수
|
||||
int totalPage = 0; //총페이지수
|
||||
int pagePerBlock = 10; //블록당페이지수
|
||||
int nowPage = 1; //현재페이지
|
||||
String sql1 = "";
|
||||
sql1 = " select count(c_no) ";
|
||||
sql1 = sql1 + " from tbl_board ";
|
||||
sql1 = sql1 + " where "+ where_t +" c_relation = "+ c_relation +" and c_relation2 = "+ c_relation2 +" and c_home = "+ c_home +" and c_maker = "+ c_maker +" and c_board_no = "+ board_no +" ";
|
||||
ResultSet rst = stmt.executeQuery(sql1);
|
||||
if (rst.next()) {
|
||||
totalRecord = rst.getInt(1);
|
||||
}
|
||||
rst.close();
|
||||
if ( r_call(request.getParameter("nowPage")) != null && !r_call(request.getParameter("nowPage")).equals("")) {
|
||||
nowPage = Integer.parseInt(r_call(request.getParameter("nowPage")));
|
||||
}
|
||||
|
||||
//nowPage = 93;
|
||||
//totalRecord =1240;
|
||||
int pfirst = 0; //첫페이지 번호
|
||||
int plast = 0; // 끝페이지 번호
|
||||
int plast_org = 0;
|
||||
|
||||
pfirst = ((nowPage-1)/pagePerBlock)*pagePerBlock + 1;
|
||||
plast = pfirst + pagePerBlock - 1;
|
||||
plast_org = (totalRecord-1)/numPerPage + 1;
|
||||
if(plast > plast_org){
|
||||
plast = plast_org;
|
||||
}
|
||||
int c_number=totalRecord-(nowPage-1)*numPerPage;
|
||||
|
||||
int sql_now_page = (nowPage - 1) * numPerPage;
|
||||
|
||||
%>
|
||||
<table width="1000" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
||||
<tr style="font-size:14px;">
|
||||
<td width="60" height="40" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">No</td>
|
||||
<td height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">Title</td>
|
||||
<td width="80" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">Wirter</td>
|
||||
<td width="50" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">File</td>
|
||||
<td width="50" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">Clicks</td>
|
||||
<td width="120" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">Date</td>
|
||||
</tr>
|
||||
<%if(totalRecord==0) {%>
|
||||
<tr>
|
||||
<td width="" height="60" align="center" colspan=6>
|
||||
No data.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" height="1" bgcolor="e5e5e6"></td>
|
||||
</tr>
|
||||
<%}else{%>
|
||||
<%
|
||||
sql1 = " select t.* from ( select a.* ";
|
||||
sql1 = sql1 + " from tbl_board a ";
|
||||
sql1 = sql1 + " where "+ where_t +" a.c_relation = "+ c_relation +" and a.c_relation2 = "+ c_relation2 +" and a.c_home = "+ c_home +" and a.c_maker = "+ c_maker +" and a.c_board_no = "+ board_no +") t ";
|
||||
sql1 = sql1 + " order by t.c_no desc ";
|
||||
sql1 = sql1 + " limit "+ sql_now_page +" , "+ numPerPage +" ";
|
||||
|
||||
rst = stmt.executeQuery(sql1);
|
||||
while (rst.next()) {
|
||||
%>
|
||||
<tr>
|
||||
<td height="30" align=center>
|
||||
<%=c_number%>
|
||||
</td>
|
||||
<td align=left style="padding:3px">
|
||||
<a href="view.jsp?<%=para_t%>&c_no=<%=rst.getString("c_no")%>&nowPage=<%=nowPage%>"><%=rst.getString("c_title")%></a>
|
||||
</td>
|
||||
<td align=center>
|
||||
<%=rst.getString("c_name")%>
|
||||
</td>
|
||||
<td align=center>
|
||||
<%if(!rst.getString("c_file").equals("")){%>
|
||||
O
|
||||
<%}%>
|
||||
</td>
|
||||
<td align=center>
|
||||
<%=rst.getString("c_click")%>
|
||||
</td>
|
||||
<td align=center>
|
||||
<%=rst.getString("c_date").substring(0,10)%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" height="1" bgcolor="e5e5e6"></td>
|
||||
</tr>
|
||||
<%
|
||||
c_number=c_number-1;
|
||||
}
|
||||
rst.close();
|
||||
%>
|
||||
<%} %>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td height="35" align="center" colspan="9" style="padding-bottom:10px;padding-top:10px">
|
||||
<table align=center border=0 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<%if(pfirst > 1){ %>
|
||||
<td align=center width="32" style='padding=0,4,0,4'>
|
||||
<a href="list.jsp?nowPage=1&<%=para_t%>">〈〈</a>
|
||||
</td>
|
||||
<td align=center width="32" style='padding=0,4,0,0'>
|
||||
<a href="list.jsp?nowPage=<%=pfirst-1%>&<%=para_t%>">〈</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<% for(int i=pfirst;i<plast+1;i=i+1){%>
|
||||
<td align=center width="32" style='padding=0,0,0,0' valign=top>
|
||||
<% if(i==nowPage){%>
|
||||
<font color=#4D9ACF size=3><b><%=i%>
|
||||
<%}else{%>
|
||||
<a href="list.jsp?nowPage=<%=i%>&<%=para_t%>"><font color=#787878 size=3><b><%=i%></b></a>
|
||||
<%}%>
|
||||
</td>
|
||||
<%}%>
|
||||
<%if(plast < plast_org){ %>
|
||||
<td align=center width="32" style='padding=0,4,0,4'>
|
||||
<a href="list.jsp?nowPage=<%=plast+1%>&<%=para_t%>">〉</a>
|
||||
</td>
|
||||
<td align=center width="32" style='padding=0,4,0,0'>
|
||||
<a href="list.jsp?nowPage=<%=plast_org%>&<%=para_t%>">〉〉</a>
|
||||
</td>
|
||||
<%}%>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td height="35" align="right" colspan="9" style="padding-bottom:10px;padding-top:10px">
|
||||
<a href="insert.jsp?<%=para_t%>" style="width: 98px; line-height: 30px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;">Insert</a>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<%}%>
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,123 @@
|
|||
@charset "utf-8";
|
||||
|
||||
*{margin:0; padding:0}
|
||||
div,ul,li{margin:0; padding:0}
|
||||
div,ul,li{list-style:none}
|
||||
body{font-family:dotum,돋움; font-style:9pt;}
|
||||
ul,li,img{border:0; vertical-align:middle;}
|
||||
select{vertical-align:middle; font-size:9pt; font-family:dotum,돋움;}
|
||||
|
||||
|
||||
.Top_Box{/*background:url('../images/top/bg_top.gif');*/ height:116px; width:1100px;}
|
||||
.Logo_Gnb{height:76px}
|
||||
.Logo_img{float:left; padding-top:20px; padding-left:21px;}
|
||||
.Gnb_box{font-size:8pt; padding-top:20px; margin-right:20px;}
|
||||
.Gnb_box ul li a{font-size:8pt}
|
||||
.Gnb_Box ul{float:right; margin-right:35px;}
|
||||
.Gnb_Box ul li{height:16px; float:left; display:inline;}
|
||||
.manager_txt a{color:#54bdff; text-decoration:none; line-height:16px; font-size:8pt;}
|
||||
.manager_txt a:hover{text-decoration:underline}
|
||||
.pad01{margin-left:10px;}
|
||||
.pad02{margin-left:7px;}
|
||||
.g_notice a{color:#a8a8a8; text-decoration:none; font-size:8pt;}
|
||||
.g_notice a:hover{text-decoration:underline;}
|
||||
.g_notice img{margin-right:6px}
|
||||
.Top_Navi{height:40px; border:0px solid red; padding-right:35px;}
|
||||
.Top_Navi ul{padding-left:25px;}
|
||||
.Top_Navi ul li {float:left; display:inline; line-height:40px; font-size:12pt; font-weight:bold; margin-right:50px;}
|
||||
.Top_Navi ul li a{color:#9deeff; text-decoration:none}
|
||||
.Top_Navi ul li a strong{color:#FFFFFF}
|
||||
.Top_Navi ul li a:hover{color:#FFFFFF}
|
||||
.Search_Box{border:0px solid red; margin-top:10px; width:171px; float:right}
|
||||
.Top_search{background:url('../images/top/bg_search.gif'); width:171px; height:19px;}
|
||||
.Top_search img{float:right}
|
||||
.txt_search{border:0px solid; width:137px; margin-left:6px; height:16px; float:left; margin-top:1px;}
|
||||
.Left_Box{width:205px; font-size:9pt;}
|
||||
.member{padding-top:18px; padding-left:12px;}
|
||||
.Left_Box ul li{line-height:20px}
|
||||
.pad03{padding-bottom:10px;}
|
||||
.pad04{padding-bottom:14px;}
|
||||
.line01{border-bottom:3px solid #0462ff; width:201px;}
|
||||
.menu01{border:0px solid red;}
|
||||
.menu01 li{background-image:url('../images/left/icon02.gif'); background-repeat:no-repeat; background-position:20px 25px;}
|
||||
.menu01 p{padding-left:0px; font-weight:bold; line-height:26px;}
|
||||
.menu01 li ul li{background-image:url('../images/left/arrow01.gif'); background-repeat:no-repeat; background-position:3px 10px; padding-left:5px; line-height:26px;}
|
||||
.menu01 li ul li a{color:#696969}
|
||||
.menu01 a{text-decoration:none; color:#000000}
|
||||
.line02{border-bottom:1px solid #e0e0e0; width:181px; padding-top:17px; padding-left:20px; padding-bottom:10px;}
|
||||
.m_ov{color:#0462ff}
|
||||
.Contents_Box{width:824px; padding-top:26px; padding-left:37px; font-size:9pt; margin-bottom:50px;}
|
||||
.C_Tit{font-size:14pt; font-weight:bold; color:#000; background-image:url('../images/mid/m_icon01.gif'); background-repeat:no-repeat; padding-left:26px; background-position:0px 3px;; font-family:gulim,굴림체; letter-spacing:-1px;}
|
||||
.C_Tit2{float:left; font-size:14pt; font-weight:bold; color:#000; background-image:url('../images/cont/icon_arrow01.gif'); background-repeat:no-repeat; padding-left:26px; background-position:0px 3px;; font-family:gulim,굴림체; letter-spacing:-1px;}
|
||||
.Ranking_Box{margin-top:30px; border:10px solid #ebeae6; width:803px; height:204px;}
|
||||
.icon01{background-image:url('../images/mid/m_icon02.gif'); background-repeat:no-repeat; background-position:0px 10px; color:#876c01; font-size:11pt; padding-left:24px;}
|
||||
.icon07{background-image:url('../images/mid/m_icon07.gif'); background-repeat:no-repeat; background-position:0px 10px; color:#876c01; font-size:11pt; padding-left:24px;}
|
||||
.line03{border-bottom:1px solid #dbdbdb}
|
||||
.line04{border-left:1px solid #eaebe5}
|
||||
.txt01{text-align:right; color:#777777; font-size:9pt;}
|
||||
.txt02{text-align:right; color:#a97d02; font-size:9pt;}
|
||||
.icon02{background-image:url('../images/mid/m_icon03.gif'); background-repeat:no-repeat; background-position:0px 3px; padding-left:20px; font-weight:bold}
|
||||
.icon03{background-image:url('../images/mid/m_icon04.gif'); background-repeat:no-repeat; background-position:0px 3px; padding-left:20px; font-weight:bold}
|
||||
.icon04{background-image:url('../images/mid/m_icon05.gif'); background-repeat:no-repeat; background-position:0px 3px; padding-left:20px; font-weight:bold}
|
||||
.icon05{background-image:url('../images/mid/m_icon06.gif'); background-repeat:no-repeat; background-position:0px 4px; padding-left:20px; font-weight:bold}
|
||||
.txt03{text-align:center; color:#777777; font-size:9pt;}
|
||||
.txt04{color:#777777; font-size:9pt; padding-left:14px;}
|
||||
.table01{background:url('../images/mid/bg_list.gif'); background-repeat:no-repeat; height:204px;}
|
||||
.b_list{margin-top:40px; width:824px;}
|
||||
.icon06{background-image:url('../images/mid/m_arrow01.gif'); background-repeat:no-repeat; background-position:0px 12px; color:#000; font-size:11pt; padding-left:20px;}
|
||||
.b_list_dot{background-image:url('../images/mid/dot.gif'); background-repeat:no-repeat; background-position:0px 12px;; padding-left:10px; text-align:left}
|
||||
.b_list_dot a{color:#000; text-decoration:none; }
|
||||
.b_list_dot a:hover{color:#0462ff}
|
||||
.foot{overflow:hidden; margin-left:40px; padding-top:20px; width:820px; margin-bottom:20px; border-top:1px solid #e0e0e0}
|
||||
.f_right{float:right}
|
||||
.f_right img{vertical-align:top}
|
||||
.f_left{float:left}
|
||||
|
||||
|
||||
#logoin_box{background:url('../images/login/bg_login.gif'); background-repeat:no-repeat; width:1000px; height:768px; margin:0 auto;}
|
||||
#logoin_box ul{padding-top:370px; padding-left:390px;}
|
||||
.in01{border:1px solid #95a3c5; width:120px; height:29px; margin-right:7px; line-height:27px; padding:0px 10px; color:#2f3342}
|
||||
.arrow_img{font-size:9pt; color:#d9d9d9; padding-top:15px;}
|
||||
.arrow_img img{margin-right:8px;}
|
||||
|
||||
.top_title{overflow:hidden; margin-bottom:40px;}
|
||||
.board_box{}
|
||||
.board_box ul li{display:block}
|
||||
|
||||
|
||||
.C_path{float:right; background:url('../images/cont/icon_dot01.gif'); background-repeat:no-repeat; background-position:0px 6px; padding-left:7px; color:#afafaf; font-size:8pt}
|
||||
.C_path img{margin:0 4px;}
|
||||
.bd_all_number{float:left}
|
||||
.bd_search_box{float:right}
|
||||
.line_h{padding-bottom:30px;}
|
||||
.in02{border:1px solid #7f9db9; width:122px; height:18px;}
|
||||
.bd_table01{padding-top:20px}
|
||||
.bd_table01 tr td{text-align:center}
|
||||
.bd_table01 thead{background-color:#f7f7f7;}
|
||||
.bd_line01{border-bottom:1px solid #cccccc; border-top:2px solid #cccccc}
|
||||
.bd_line02{border-bottom:1px solid #cccccc;}
|
||||
.sel01{height:20px}
|
||||
.pad05{padding-top:10px; overflow:hidden}
|
||||
.b_left{float:left}
|
||||
.b_right{float:right}
|
||||
|
||||
.paginate_complex{padding:15px 0;line-height:normal;text-align:center; overflow:hidden}
|
||||
.paginate_complex a,
|
||||
.paginate_complex strong{display:inline-block;position:relative;z-index:2;margin:0 -3px;padding:1px 8px;border-left:1px solid #d6d6d6;border-right:1px solid #d6d6d6;background-color:#fff;font:bold 12px/16px Tahoma, Sans-serif;color:#323232;text-decoration:none;vertical-align:top}
|
||||
.paginate_complex a:hover,
|
||||
.paginate_complex a:active,
|
||||
.paginate_complex a:focus{background-color:#f8f8f8}
|
||||
.paginate_complex strong{color:#ff5901}
|
||||
.paginate_complex .direction{border:0;font-weight:normal;color:#767676;text-decoration:none !important;z-index:1}
|
||||
.paginate_complex .direction:hover,
|
||||
.paginate_complex .direction:active,
|
||||
.paginate_complex .direction:focus{color:#323232;background-color:#fff}
|
||||
.paginate_complex .prev{border-left:0; margin-top:2px}
|
||||
.paginate_complex .next{border-right:0; margin-top:2px}
|
||||
|
||||
.num01{font-weight:bold; font-size:12pt; color:#555; margin-right:8px;}
|
||||
.num02{font-weight:bold; font-size:8pt; color:#b1b1b1}
|
||||
.graph{background:url('../images/cont/bg_graph.gif'); background-repeat:no-repeat; height:217px; margin-top:10px;}
|
||||
.graph strong{color:#ff7200}
|
||||
.graph2{background:url('../images/cont/bg_graph2.gif'); background-repeat:no-repeat; height:217px; margin-top:10px;}
|
||||
.graph2 strong{color:#ea3f22}
|
|
@ -0,0 +1,141 @@
|
|||
a {text-decoration:none; color: 000000;}
|
||||
a:hover {text-decoration:none; color: 355ca6}
|
||||
img{border:none}
|
||||
|
||||
BODY{scrollbar-face-color:#ECECEC;
|
||||
scrollbar-highlight-color: #E3E1DE;
|
||||
scrollbar-shadow-color: #CCCCCC;
|
||||
scrollbar-3dlight-color: #F5F5F5;
|
||||
scrollbar-darkshadow-color: #ffffff;
|
||||
scrollbar-track-color: #FAFAFA;
|
||||
scrollbar-arrow-color: #646464;
|
||||
margin:0 0 0 0; }
|
||||
|
||||
|
||||
td { font-family:Gulim,dotum; font-size:8pt; color:#5e5e5e; }
|
||||
textarea{ font-family:Gulim; font-size:9pt; color:#474747; padding:5 5 5 5; }
|
||||
select { font-size:9pt; color:#7F7F7F; font-family:Gulim; }
|
||||
input { font-size:9pt; font-family:Gulim; padding-top:4px; color:#474747;}
|
||||
|
||||
|
||||
.main_input { font-size:9pt; width:103px; height:19px; font-family:dotum; padding-top:2px; color:#474747; border:1x solid #AFAFAF; background-color:#EEEEEE; }
|
||||
|
||||
.line01 { font-family:dotum,Gulim; font-size:9pt; color:#474747; border:1x solid #999999; padding:10 10 10 10; }
|
||||
.textarea01 {
|
||||
border:1x solid; border-color:#999999 #E3E3E3 #E3E3E3 #999999; color:#323232;
|
||||
font-family:Gulim; font-size:9pt; padding:5 5 5 5;
|
||||
scrollbar-face-color: #FFFFFF; scrollbar-shadow-color: #E3E3E3;
|
||||
scrollbar-highlight-color: #E3E3E3; scrollbar-3dlight-color: #FFFFFF;
|
||||
scrollbar-darkshadow-color: #FFFFFF; scrollbar-track-color: #FFFFFF;
|
||||
scrollbar-arrow-color: #999999;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* style */
|
||||
.log_input { font-size:11px; width:74px; height:15px; font-family:gulim; padding-top:2px; color:#ffffff;background-color:#A6C4DE; border:1x solid #A6C4DE}
|
||||
.log_2008 { font-size:12px; width:105px; height:18px; font-family:gulim; padding-top:2px; color:#000000;background-color:#ffffff; border:1x solid #BFBFBF}
|
||||
.log_input_kid { font-size:11px; width:105px; height:15px; font-family:gulim; padding-top:2px; color:#000000;background-color:#FEEEB2; border:1x solid #FEEEB2}
|
||||
.log_input_kid_sub { font-size:11px; width:105px; height:15px; font-family:gulim; padding-top:2px; color:#000000;background-color:#ffffff; border:1x solid #ffffff}
|
||||
|
||||
.input01 { font-family:Gulim; font-size:9pt; border:1x solid; border-color:#999999 #E3E3E3 #E3E3E3 #999999; color:#323232; }
|
||||
.input02 { font-size:9pt; height:19px; font-family:gulim; padding-top:2px; color:#474747; border:1x solid #D4D0C8;}
|
||||
.select01 { font-size:9pt; background-color:#F5EBE8; color:#323232; font-family:gulim; }
|
||||
.select02 { font-size:9pt; background-color:#D6E3E6; color:#323232; font-family:gulim; }
|
||||
.textarea01 { }
|
||||
|
||||
|
||||
/* 한자공간*/
|
||||
.bluebold {font-family:Gulim; font-weight:bold; color:4164a5; text-align:center; padding-top:2}
|
||||
.form { font-family:Gulim; font-size:9pt; border:1x solid; border-color:#f1f4f8 #f1f4f8 #f1f4f8 #f1f4f8; color:123579; background-color:f1f4f8 }
|
||||
|
||||
|
||||
|
||||
/* 급수별강의실 */
|
||||
|
||||
.whitebold {font-family:Gulim; font-weight:bold; color:ffffff; background-repeat:no-repeat; padding-left:3}
|
||||
.gwhitebold {font-family:Gulim; font-weight:bold; color:ffffff; background:#355ca6; text-align:center; padding-top:2}
|
||||
.sblue { color:144196; font-size:11px}
|
||||
.stext { color:797979; font-size:11px}
|
||||
|
||||
|
||||
/* Submenu 색1 */
|
||||
.g_link { color:#ffffff; font-family:gulim;}
|
||||
A.g_link:link { font-size:9pt; color:#646464; text-decoration: none; font-family:gulim; }
|
||||
A.g_link:active { font-size:9pt; color:#646464; text-decoration: none; font-family:gulim; }
|
||||
A.g_link:visited { font-size:9pt; color:#646464; text-decoration: none; font-family:gulim; }
|
||||
A.g_link:hover { font-size:9pt; color:#000000; text-decoration: none; font-family:gulim; }
|
||||
|
||||
|
||||
/* Submenu 색1 */
|
||||
.sub_menu { color:#ffffff; font-family:gulim;}
|
||||
A.sub_menu:link { font-size:8pt; color:#7F7F7F; text-decoration: none; font-family:gulim; }
|
||||
A.sub_menu:active { font-size:8pt; color:#7F7F7F; text-decoration: none; font-family:gulim; }
|
||||
A.sub_menu:visited { font-size:8pt; color:#7F7F7F; text-decoration: none; font-family:gulim; }
|
||||
A.sub_menu:hover { font-size:8pt; color:#000000; text-decoration: none; font-family:gulim; }
|
||||
|
||||
|
||||
/* Submenu 색1 */
|
||||
.page_menu { color:#ffffff; font-family:gulim;}
|
||||
A.page_menu:link { font-size:10pt; color:#7F7F7F; text-decoration: none; font-family:gulim; }
|
||||
A.page_menu:active { font-size:10pt; color:#7F7F7F; text-decoration: none; font-family:gulim; }
|
||||
A.page_menu:visited { font-size:10pt; color:#7F7F7F; text-decoration: none; font-family:gulim; }
|
||||
A.page_menu:hover { font-size:10pt; color:#000000; text-decoration: none; font-family:gulim; }
|
||||
|
||||
|
||||
/* 카테고리 색1 */
|
||||
.scate_s { color:#ffffff; font-family:gulim;}
|
||||
A.scate_s:link { font-size:9pt; color:#ffffff; text-decoration: none; font-family:gulim; }
|
||||
A.scate_s:active { font-size:9pt; color:#ffffff; text-decoration: none; font-family:gulim; }
|
||||
A.scate_s:visited { font-size:9pt; color:#ffffff; text-decoration: none; font-family:gulim; }
|
||||
A.scate_s:hover { font-size:9pt; color:#F6FF01; text-decoration: none; font-family:gulim; }
|
||||
|
||||
/* 카테고리 색1 */
|
||||
.mcate_m { font-family:Gulim; font-size:11pt; color:#F6FF01; }
|
||||
.list_s { font-family:Gulim; font-size:11px; color:#7F7F7F; }
|
||||
|
||||
/* 1레벨 카테고리 */
|
||||
.cate1 { color:#ffffff; font-family:gulim; font-size:9pt;}
|
||||
A.cate1:link { color:#ffffff; text-decoration: none; font-family:gulim; }
|
||||
A.cate1:active { color:#ffffff; text-decoration: none;font-family:gulim; }
|
||||
A.cate1:visited { color:#ffffff; text-decoration: none;font-family:gulim; }
|
||||
A.cate1:hover { color:#000000; text-decoration: none;font-family:gulim; }
|
||||
|
||||
.list_m { color:#7F7F7F; font-family:gulim; font-size:12px;}
|
||||
A.list_m:link { color:#7F7F7F; text-decoration: none; font-family:gulim; }
|
||||
A.list_m:active { color:#7F7F7F; text-decoration: none;font-family:gulim; }
|
||||
A.list_m:visited { color:#7F7F7F; text-decoration: none;font-family:gulim; }
|
||||
A.list_m:hover { color:#000000; text-decoration: none;font-family:gulim; }
|
||||
|
||||
.list_l { color:#7F7F7F; font-family:gulim; font-size:13px;}
|
||||
A.list_l:link { color:#7F7F7F; text-decoration: none; font-family:gulim; }
|
||||
A.list_l:active { color:#7F7F7F; text-decoration: none;font-family:gulim; }
|
||||
A.list_l:visited { color:#7F7F7F; text-decoration: none;font-family:gulim; }
|
||||
A.list_l:hover { color:#000000; text-decoration: none;font-family:gulim; }
|
||||
|
||||
/* 링크 1 */
|
||||
.link01 { color:#496468; font-family:gulim; }
|
||||
A.link01:link { color:#496468; text-decoration: none; font-family:gulim; }
|
||||
A.link01:active { color:#496468; text-decoration: none;font-family:gulim; }
|
||||
A.link01:visited { color:#496468; text-decoration: none;font-family:gulim; }
|
||||
A.link01:hover { color:#496468; text-decoration: none;font-family:gulim; }
|
||||
|
||||
/* 링크 2 */
|
||||
.link02 { color:#DA8500; font-family:gulim; }
|
||||
A.link02:link { color:#DA8500; text-decoration: none; font-family:gulim; }
|
||||
A.link02:active { color:#DA8500; text-decoration: none;font-family:gulim; }
|
||||
A.link02:visited { color:#DA8500; text-decoration: none;font-family:gulim; }
|
||||
A.link02:hover { color:#D6572A; text-decoration: none;font-family:gulim; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.sub_navi { font-size:11px; font-family:돋움; color:#6c6c6c }
|
||||
.navi_link {text-decoration: none; font-size:11px; color:#6c6c6c; font-family:돋움; }
|
||||
A.navi_link:link {text-decoration: none; font-size:11px; color:#6c6c6c; font-family:돋움; }
|
||||
A.navi_link:active {text-decoration: none; font-size:11px; color:#6c6c6c; font-family:돋움;}
|
||||
A.navi_link:visited text-decoration: none; font-size:11px; color:#6c6c6c; font-family:돋움;}
|
||||
A.navi_link:hover {text-decoration: none; font-size:11px; color:#323232; font-family:돋움;}
|
|
@ -0,0 +1,103 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
|
||||
<%
|
||||
|
||||
String c_home = "0";
|
||||
String c_maker = "0";
|
||||
String board_no = "0";
|
||||
|
||||
if(board_no == null || board_no.equals("")){
|
||||
%>
|
||||
<script>
|
||||
alert("Wrong connection.")
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
|
||||
%>
|
||||
<center>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<table width="800" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
||||
<tr style="font-size:14px;">
|
||||
<td height="60">
|
||||
<%
|
||||
int c_relation = 0;
|
||||
int c_relation2 = 0;
|
||||
String sql_ok2 = "select * from tbl_menu where c_no = " + board_no;
|
||||
ResultSet rss = stmt.executeQuery(sql_ok2);
|
||||
if(rss.next()){
|
||||
c_relation= rss.getInt("c_relation");
|
||||
c_relation2= rss.getInt("c_relation2");
|
||||
%>
|
||||
<b>[ <%=rss.getString("c_name")%> ] board management</b>
|
||||
<%
|
||||
}
|
||||
rss.close();
|
||||
c_relation = 0;
|
||||
c_relation2 = 1;
|
||||
|
||||
String para_t = "c_home=" + c_home + "&c_maker=" + c_maker + "&board_no=" + board_no + "&c_relaton=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
%>
|
||||
<br>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<%
|
||||
String nowPage = r_call(request.getParameter("nowPage"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
if(c_no.equals("")){
|
||||
|
||||
}else{
|
||||
String sql_ok = "";
|
||||
sql_ok = "update tbl_board set c_click = c_click + 1 where c_no = " + c_no;
|
||||
|
||||
stmt2.execute(sql_ok);
|
||||
|
||||
String sql1 = " select * from tbl_board where c_no = " + c_no;
|
||||
ResultSet rst = stmt.executeQuery(sql1);
|
||||
if (rst.next()) {
|
||||
%>
|
||||
<table width="800" cellSpacing="1" cellPadding="0" border="0" bgcolor=cdcdcd>
|
||||
<tr bgcolor=ffffff><td height="30" style="padding:5px">
|
||||
Title. <%=rst.getString("c_title")%></b>
|
||||
</td></tr>
|
||||
<tr bgcolor=ffffff><td height="30" style="padding:5px">
|
||||
|
||||
Name. <%=rst.getString("c_name")%></b>
|
||||
/
|
||||
Clicks <%=rst.getString("c_click")%></b>
|
||||
/
|
||||
date <%=rst.getString("c_date").substring(0,10)%></b>
|
||||
|
||||
</td></tr>
|
||||
|
||||
<tr bgcolor=ffffff><td height="220" valign=top style="padding:5px">
|
||||
<%=rst.getString("c_content").replaceAll("\n\r","<br />")%></b>
|
||||
</td></tr>
|
||||
<tr bgcolor=ffffff><td height="30" style="padding:5px">
|
||||
File. <a href="/upload/<%=rst.getString("c_file")%>"><%=rst.getString("c_file")%></a></b>
|
||||
</td></tr>
|
||||
</td></tr>
|
||||
</table>
|
||||
<table width="800" cellSpacing="1" cellPadding="0" border="0" bgcolor=ffffff>
|
||||
<tr bgcolor=ffffff><td height="40" align=center style="padding:5px">
|
||||
<!-- <a href="edit.jsp?<%=para_t%>&c_no=<%=c_no%>" style="width: 80px; line-height: 26px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;">Edit</a>
|
||||
<a href="#none" onclick="if(confirm('Are you sure you want to delete?')){location.href='delete_ok.jsp?<%=para_t%>&c_no=<%=c_no%>'}" style="width: 80px; line-height: 26px; text-align: center;display: inline-block; background: red; border: 1px solid #555; border-radius: 5px; color: #ffffff;">Delete</a>
|
||||
-->
|
||||
<a href="list.jsp?<%=para_t%>&nowPage=<%=nowPage%>" style="width: 80px; line-height: 26px; text-align: center;display: inline-block; background: #989898; border: 1px solid #555; border-radius: 5px; color: #ffffff;">List</a>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<%
|
||||
|
||||
}
|
||||
rst.close();
|
||||
}
|
||||
%>
|
||||
<%}%>
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,28 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
|
||||
|
||||
|
||||
String sql= "select * from tbl_apply_team_member where c_member_no = 0 and c_use = 0 ";
|
||||
ResultSet rs=stmt.executeQuery(sql);
|
||||
while(rs.next()){
|
||||
String sql2= "select * from tbl_member where c_id = '"+ rs.getString("c_email") +"' and c_use = 0 ";
|
||||
ResultSet rs2=stmt.executeQuery(sql2);
|
||||
if(rs2.next()){
|
||||
|
||||
String sql_ok = "update tbl_apply_team_member set c_member_no = "+ rs2.getInt("c_no") +" where c_no = " + rs.getInt("c_no") ;
|
||||
stmt2.execute(sql_ok);
|
||||
|
||||
}
|
||||
rs2.close();
|
||||
|
||||
}
|
||||
rs.close();
|
||||
|
||||
|
||||
%>
|
||||
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,152 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<!--
|
||||
<p>
|
||||
KOEF BCB System 홈페이지(이하 “홈페이지”이라 합니다.)은 개인정보보호법에 따라 이용자의 개인정보 보호 및 권익을 보호하고 개인정보와 관련한 이용자의 고충을 원활하게 처리할 수 있도록 다음과 같은 처리방침을 두고 있습니다.
|
||||
</p>
|
||||
<p>
|
||||
KOEF BCB System 홈페이지(이하 “홈페이지”이라 합니다.) 는 개인정보처리방침을 개정하는 경우 웹사이트 공지사항(또는 개별공지)을 통하여 공지할 것입니다.
|
||||
</p>
|
||||
|
||||
<h4 class="subject">1. 개인정보의 처리 목적</h4>
|
||||
<p>
|
||||
KOEF BCB System 홈페이지(이하 “홈페이지”이라 합니다.)은(는) 개인정보를 다음의 목적을 위해 처리합니다. 처리한 개인정보는 다음의 목적이외의 용도로는 사용되지 않으며 이용 목적이 변경될 시에는 사전동의를 구할 예정입니다.
|
||||
</p>
|
||||
|
||||
<div class="indent">
|
||||
<h5 class="subject">가. 홈페이지 회원가입 및 관리</h5>
|
||||
<p>
|
||||
회원 가입의사 확인, 회원제 서비스 제공에 따른 본인 식별·인증, 회원자격 유지·관리, 제한적 본인확인제 시행에 따른 본인확인, 서비스 부정이용 방지, 각종 고지·통지 등을 목적으로 개인정보를 처리합니다.
|
||||
</p>
|
||||
|
||||
<h5 class="subject">나. 민원사무 처리</h5>
|
||||
<p>
|
||||
민원인의 신원 확인, 민원사항 확인, 사실조사를 위한 연락·통지, 처리결과 통보 등을 목적으로 개인정보를 처리합니다.
|
||||
</p>
|
||||
|
||||
<h5 class="subject">다. 재화 또는 서비스 제공</h5>
|
||||
<p>
|
||||
콘텐츠 제공, 맞춤 서비스 제공, 본인인증, 연령인증 등을 목적으로 개인정보를 처리합니다.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<h4 class="subject">2. 개인정보 파일 현황</h4>
|
||||
<div class="indent">
|
||||
<h5 class="subject">가. 개인정보의 처리목적, 개인정보의 처리 및 보유기간, 처리하는 개인정보의 항목</h5>
|
||||
<p>
|
||||
홈페이지 운영을 위한 성명(한글 및 영문), 성별, 생년월일, 연락처, 이메일 주소에 대한 개인정보를 수집하며 개인정보 보유기간은 홈페이지 탈퇴 시까지입니다.
|
||||
</p>
|
||||
|
||||
<h5 class="subject">나. 개인정보의 제3자 제공</h5>
|
||||
<p>
|
||||
KOEF BCB System은 원칙적으로 정보주체의 개인정보를 수집·이용 목적으로 명시한 범위 내에서 처리하며, 다음의 경우를 제외하고는 정보주체의 사전 동의 없이는 본래의 목적 범위를 초과하여 처리하거나 제3자에게 제공하지 않습니다. <br />
|
||||
</p>
|
||||
<ol>
|
||||
<li>1.정보주체로부터 별도의 동의를 받는 경우</li>
|
||||
<li>2.법률에 특별한 규정이 있는 경우</li>
|
||||
<li>3.정보주체 또는 법정대리인이 의사표시를 할 수 없는 상태에 있거나 주소불명 등으로 사전 동의를 받을 수 없는 경우로서 명백히 정보주체 또는 제3자의 급박한 생명, 신체, 재산의 이익을 위하여 필요하다고 인정되는 경우</li>
|
||||
<li>4.통계작성 및 학술연구 등의 목적을 위하여 필요한 경우로서 특정 개인을 알아 볼 수 없는 형태로 개인정보를 제공하는 경우</li>
|
||||
<li>5.개인정보를 목적 외의 용도로 이용하거나 이를 제3자에게 제공하지 아니하면 다른 법률에서 정하는 소관 업무를 수행할 수 없는 경우로서 보호위원회의 심의·의결을 거친 경우</li>
|
||||
<li>6.조약, 그 밖의 국제협정의 이행을 위하여 외국정보 또는 국제기구에 제공하기 위하여 필요한 경우</li>
|
||||
<li>7.범죄의 수사와 공소의 제기 및 유지를 위하여 필요한 경우</li>
|
||||
<li>8.법원의 재판업무 수행을 위하여 필요한 경우</li>
|
||||
<li>9.형 및 감호, 보호처분의 집행을 위하여 필요한 경우</li>
|
||||
</ol>
|
||||
|
||||
<h5 class="subject">다. 개인정보 처리 위탁</h5>
|
||||
<p>
|
||||
KOEF BCB System은 개인정보의 처리업무를 위탁하는 경우 다음의 내용이 포함된 문서에 의하여 처리하고 있습니다.
|
||||
</p>
|
||||
<ol>
|
||||
<li>1.위탁업무 수행 목적 외 개인정보의 처리 금지에 관한 사항</li>
|
||||
<li>2.개인정보의 관리적·기술적 보호조치에 관한 사항</li>
|
||||
<li>3.개인정보의 안전관리에 관한 사항 - 위탁업무의 목적 및 범위, 재위탁 제한에 관한 사항, 개인정보 안전성 확보 조치에 관한 사항, 위탁업무와 관련하여 보유하고 있는 개인정보의 관리현황점검 등 감독에 관한 사항, 수탁자가 준수하여야할 의무를 위반한 경우의 손해배상책임에 관한 사항</li>
|
||||
</ol>
|
||||
<p>
|
||||
또한, 위탁하는 업무의 내용과 개인정보 처리업무를 위탁받아 처리하는 자("수탁자")에 대하여 해당 홈페이지에 공개하고 있습니다.
|
||||
</p>
|
||||
|
||||
|
||||
<h5 class="subject">라. 정보주체의 권리·의무 및 그 행사 방법</h5>
|
||||
<p>
|
||||
정보주체는 다음과 같은 권리를 행사 할 수 있으며, 만14세 미만 아동의 법정대리인은 그 아동의 개인정보에 대한 열람, 정정·삭제, 처리정지를 요구할 수 있습니다.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<h6 class="subject">- 개인정보 열람 요구</h6>
|
||||
<p>
|
||||
KOEF BCB System에서 보유하고 있는 개인정보파일은「개인정보보호법」제35조(개인정보의 열람)에 따라 자신의 개인정보에 대한 열람을 요구할 수 있습니다. 다만, 개인정보 열람 요구는 법 제35조 5항에 의하여 다음과 같이 제한될 수 있습니다.
|
||||
</p>
|
||||
|
||||
<div class="indent">
|
||||
<ol>
|
||||
<li>1.법률에 따라 열람이 금지되거나 제한되는 경우</li>
|
||||
<li>2.다른 사람의 생명·신체를 해할 우려가 있거나 다른 사람의 재산과 그 밖의 이익을 부당하게 침해할 우려가 있는 경우</li>
|
||||
<li>3.공공기관이 다음 각 목의 어느 하나에 해당하는 업무를 수행할 때 중대한 지장을 초래하는 경우 가. 조세의 부과·징수 또는 환급에 관한 업무</li>
|
||||
<li>나. 「초·중등교육법」및「고등교육법」에 따른 각급 학교,「평생교육법」에 따른 평생교육시설, 그 밖의 다른 법률에 따라 설치 된 고등교육기관에서의 성적 평가 또는 입학자 선발에 관한 업무</li>
|
||||
<li>다. 학력·기능 및 채용에 관한 시험, 자격 심사에 관한 업무</li>
|
||||
<li>라. 보상금·급부금 산정 등에 대하여 진행 중인 평가 또는 판단에 관한 업무</li>
|
||||
<li>마. 다른 법률에 따라 진행 중인 감사 및 조사에 관한 업무</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<h6 class="subject">- 개인정보 정정·삭제 요구</h6>
|
||||
<p>
|
||||
KOEF BCB System에서 보유하고 있는 개인정보파일은「개인정보보호법」 제36조(개인정보의 정정·삭제)에 따라 정정·삭제를 요구할 수 있습니다. 다만, 다른 법령에서 그 개인정보가 수집 대상으로 명시되어 있는 경우에는 그 삭제를 요구할 수 없습니다.
|
||||
</p>
|
||||
|
||||
<h6 class="subject">- 개인정보 처리정지 요구</h6>
|
||||
<p>
|
||||
KOEF BCB System에서 보유하고 있는 개인정보파일은 「개인정보보호법」 제37조(개인정보의 처리정지 등)에 따라 처리정지를 요구할 수 있습니다. 다만, 개인정보 처리정지 요구 시 법 제37조 2항에 의하여 처리정지 요구가 거절될 수 있습니다.
|
||||
</p>
|
||||
<ol>
|
||||
<li>1.법률에 특별한 규정이 있거나 법령상 의무를 준수하기 위하여 불가피한 경우</li>
|
||||
<li>2.다른 사람의 생명·신체를 해할 우려가 있거나 다른 사람의 재산과 그 밖의 이익을 부당하게 침해할 우려가 있는 경우</li>
|
||||
<li>3.공공기관이 개인정보를 처리하지 아니하면 다른 법률에서 정하는 소관 업무를 수행할 수 없는 경우</li>
|
||||
<li>4.개인정보를 처리하지 아니하면 정보주체와 약정한 서비스를 제공하지 못하는 등 계약의 이행이 곤란한 경우로서 정보주체가 그 계약의 해지 의사를 명확하게 밝히지 아니한 경우</li>
|
||||
</ol>
|
||||
|
||||
<div class="indent">
|
||||
<h5 class="subject">마. 개인정보의 파기</h5>
|
||||
<p>
|
||||
KOEF BCB System은 원칙적으로 개인정보 처리목적이 달성된 개인정보는 지체없이 파기합니다. 파기의 절차, 기한 및 방법은 다음과 같습니다.
|
||||
</p>
|
||||
<ol>
|
||||
<li>1.파기 절차 개인정보는 목적 달성 후 즉시 또는 별도의 공간에 옮겨져 내부 방침 및 기타 관련법령에 따라 일정기간 저장된 후 파기됩니다. 별도의 공간으로 옮겨진 개인정보는 법률에 의한 경우가 아니고서는 다른 목적으로 이용되지 않습니다.
|
||||
</li>
|
||||
<li>2.파기 기한 및 파기 방법 보유기간이 만료되었거나 개인정보의 처리목적달성, 해당 업무의 폐지 등 그 개인정보가 불필요하게 되었을 때에는 지체없이 파기합니다. 전자적 파일형태의 정보는 기록을 재생할 수 없는 기술적 방법을 사용합니다. 종이에 출력된 대인정보는 분쇄기로 분쇄하거나 소각을 통하여 파기합니다.</li>
|
||||
</ol>
|
||||
|
||||
<h5 class="subject">바. 개인정보의 안전성 확보 조치</h5>
|
||||
<ol>
|
||||
<li>1.개인정보 취급직원의 최소화 및 교육 개인정보를 취급하는 직원은 반드시 필요한 인원에 한하여 지정 · 관리하고 있으며 취급직원을 대상으로 안전한 관리를 위한 교육을 실시하고 있습니다.</li>
|
||||
<li>2.개인정보에 대한 접근 제한 개인정보를 처리하는 데이터베이스시스템에 대한 접근권한의 부여·변경·말소를 통하여 개인정보에 대한 접근통제를 위한 필요한 조치를 하고 있으며 침입차단시스템을 이용하여 외부로부터의 무단 접근을 통제하고 있습니다.</li>
|
||||
<li>3.접속기록의 보관 개인정보처리시스템에 접속한 기록(웹 로그, 요약정보 등)을 최소 6개월 이상 보관·관리하고 있습니다.</li>
|
||||
<li>4.개인정보의 암호화 개인정보는 암호화 등을 통해 안전하게 저장 및 관리되고 있습니다. 또한 중요한 데이터는 저장 및 전송 시 암호화하여 사용하는 등의 별도 보안기능을 사용하고 있습니다.</li>
|
||||
<li>5.보안프로그램 설치 및 주기적 점검·갱신 해킹이나 컴퓨터 바이러스 등에 의한 개인정보 유출 및 훼손을 막기 위하여 보안프로그램을 설치하고 주기적으로 갱신·점검하고 있습니다.</li>
|
||||
<li>6.비인가자에 대한 출입 통제 개인정보를 보관하고 있는 개인정보시스템의 물리적 보관 장소를 별도로 두고 이에 대해 출입통제 절차를 수립, 운영하고 있습니다.</li>
|
||||
</ol>
|
||||
|
||||
<h5 class="subject">사. 권익침해 구제 방법</h5>
|
||||
<p>
|
||||
개인정보에 관한 권리 또는 이익을 침해받은 사람은 개인정보침해 신고센터 등으로 침해사실을 신고 할 수 있습니다.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
▶ 개인정보침해신고센터 : (국번없이) 118 (내선2번) <br />
|
||||
▶ 중앙행정심판위원회(www.simpan.go.kr)의 전화번호 안내 참조
|
||||
</p>
|
||||
|
||||
<h5 class="subject">아. 담당자 연락처</h5>
|
||||
<p>
|
||||
담당자 : 한국청년기업가정신재단 이지연 <br />
|
||||
연락처 : 02-2156-2291 / jylee@koef.or.kr
|
||||
</p>
|
||||
|
||||
<h5 class="subject">자. 개인정보 처리방침 변경</h5>
|
||||
<p>
|
||||
이 개인정보 처리침은 2019년 1월 1일부터 적용됩니다.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
-->
|
|
@ -0,0 +1,149 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<p>
|
||||
KOEF BCB System 홈페이지(이하 “홈페이지”이라 합니다.)은 개인정보보호법에 따라 이용자의 개인정보 보호 및 권익을 보호하고 개인정보와 관련한 이용자의 고충을 원활하게 처리할 수 있도록 다음과 같은 처리방침을 두고 있습니다.
|
||||
</p>
|
||||
<p>
|
||||
KOEF BCB System 홈페이지(이하 “홈페이지”이라 합니다.) 는 개인정보처리방침을 개정하는 경우 웹사이트 공지사항(또는 개별공지)을 통하여 공지할 것입니다.
|
||||
</p>
|
||||
|
||||
<h4 class="subject">1. 개인정보의 처리 목적</h4>
|
||||
<p>
|
||||
KOEF BCB System 홈페이지(이하 “홈페이지”이라 합니다.)은(는) 개인정보를 다음의 목적을 위해 처리합니다. 처리한 개인정보는 다음의 목적이외의 용도로는 사용되지 않으며 이용 목적이 변경될 시에는 사전동의를 구할 예정입니다.
|
||||
</p>
|
||||
|
||||
<div class="indent">
|
||||
<h5 class="subject">가. 홈페이지 회원가입 및 관리</h5>
|
||||
<p>
|
||||
회원 가입의사 확인, 회원제 서비스 제공에 따른 본인 식별·인증, 회원자격 유지·관리, 제한적 본인확인제 시행에 따른 본인확인, 서비스 부정이용 방지, 각종 고지·통지 등을 목적으로 개인정보를 처리합니다.
|
||||
</p>
|
||||
|
||||
<h5 class="subject">나. 민원사무 처리</h5>
|
||||
<p>
|
||||
민원인의 신원 확인, 민원사항 확인, 사실조사를 위한 연락·통지, 처리결과 통보 등을 목적으로 개인정보를 처리합니다.
|
||||
</p>
|
||||
|
||||
<h5 class="subject">다. 재화 또는 서비스 제공</h5>
|
||||
<p>
|
||||
콘텐츠 제공, 맞춤 서비스 제공, 본인인증, 연령인증 등을 목적으로 개인정보를 처리합니다.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<h4 class="subject">2. 개인정보 파일 현황</h4>
|
||||
<div class="indent">
|
||||
<h5 class="subject">가. 개인정보의 처리목적, 개인정보의 처리 및 보유기간, 처리하는 개인정보의 항목</h5>
|
||||
<p>
|
||||
홈페이지 운영을 위한 성명(한글 및 영문), 성별, 생년월일, 연락처, 이메일 주소에 대한 개인정보를 수집하며 개인정보 보유기간은 홈페이지 탈퇴 시까지입니다.
|
||||
</p>
|
||||
|
||||
<h5 class="subject">나. 개인정보의 제3자 제공</h5>
|
||||
<p>
|
||||
KOEF BCB System은 원칙적으로 정보주체의 개인정보를 수집·이용 목적으로 명시한 범위 내에서 처리하며, 다음의 경우를 제외하고는 정보주체의 사전 동의 없이는 본래의 목적 범위를 초과하여 처리하거나 제3자에게 제공하지 않습니다. <br />
|
||||
</p>
|
||||
<ol>
|
||||
<li>1.정보주체로부터 별도의 동의를 받는 경우</li>
|
||||
<li>2.법률에 특별한 규정이 있는 경우</li>
|
||||
<li>3.정보주체 또는 법정대리인이 의사표시를 할 수 없는 상태에 있거나 주소불명 등으로 사전 동의를 받을 수 없는 경우로서 명백히 정보주체 또는 제3자의 급박한 생명, 신체, 재산의 이익을 위하여 필요하다고 인정되는 경우</li>
|
||||
<li>4.통계작성 및 학술연구 등의 목적을 위하여 필요한 경우로서 특정 개인을 알아 볼 수 없는 형태로 개인정보를 제공하는 경우</li>
|
||||
<li>5.개인정보를 목적 외의 용도로 이용하거나 이를 제3자에게 제공하지 아니하면 다른 법률에서 정하는 소관 업무를 수행할 수 없는 경우로서 보호위원회의 심의·의결을 거친 경우</li>
|
||||
<li>6.조약, 그 밖의 국제협정의 이행을 위하여 외국정보 또는 국제기구에 제공하기 위하여 필요한 경우</li>
|
||||
<li>7.범죄의 수사와 공소의 제기 및 유지를 위하여 필요한 경우</li>
|
||||
<li>8.법원의 재판업무 수행을 위하여 필요한 경우</li>
|
||||
<li>9.형 및 감호, 보호처분의 집행을 위하여 필요한 경우</li>
|
||||
</ol>
|
||||
|
||||
<h5 class="subject">다. 개인정보 처리 위탁</h5>
|
||||
<p>
|
||||
KOEF BCB System은 개인정보의 처리업무를 위탁하는 경우 다음의 내용이 포함된 문서에 의하여 처리하고 있습니다.
|
||||
</p>
|
||||
<ol>
|
||||
<li>1.위탁업무 수행 목적 외 개인정보의 처리 금지에 관한 사항</li>
|
||||
<li>2.개인정보의 관리적·기술적 보호조치에 관한 사항</li>
|
||||
<li>3.개인정보의 안전관리에 관한 사항 - 위탁업무의 목적 및 범위, 재위탁 제한에 관한 사항, 개인정보 안전성 확보 조치에 관한 사항, 위탁업무와 관련하여 보유하고 있는 개인정보의 관리현황점검 등 감독에 관한 사항, 수탁자가 준수하여야할 의무를 위반한 경우의 손해배상책임에 관한 사항</li>
|
||||
</ol>
|
||||
<p>
|
||||
또한, 위탁하는 업무의 내용과 개인정보 처리업무를 위탁받아 처리하는 자("수탁자")에 대하여 해당 홈페이지에 공개하고 있습니다.
|
||||
</p>
|
||||
|
||||
|
||||
<h5 class="subject">라. 정보주체의 권리·의무 및 그 행사 방법</h5>
|
||||
<p>
|
||||
정보주체는 다음과 같은 권리를 행사 할 수 있으며, 만14세 미만 아동의 법정대리인은 그 아동의 개인정보에 대한 열람, 정정·삭제, 처리정지를 요구할 수 있습니다.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<h6 class="subject">- 개인정보 열람 요구</h6>
|
||||
<p>
|
||||
KOEF BCB System에서 보유하고 있는 개인정보파일은「개인정보보호법」제35조(개인정보의 열람)에 따라 자신의 개인정보에 대한 열람을 요구할 수 있습니다. 다만, 개인정보 열람 요구는 법 제35조 5항에 의하여 다음과 같이 제한될 수 있습니다.
|
||||
</p>
|
||||
|
||||
<div class="indent">
|
||||
<ol>
|
||||
<li>1.법률에 따라 열람이 금지되거나 제한되는 경우</li>
|
||||
<li>2.다른 사람의 생명·신체를 해할 우려가 있거나 다른 사람의 재산과 그 밖의 이익을 부당하게 침해할 우려가 있는 경우</li>
|
||||
<li>3.공공기관이 다음 각 목의 어느 하나에 해당하는 업무를 수행할 때 중대한 지장을 초래하는 경우 가. 조세의 부과·징수 또는 환급에 관한 업무</li>
|
||||
<li>나. 「초·중등교육법」및「고등교육법」에 따른 각급 학교,「평생교육법」에 따른 평생교육시설, 그 밖의 다른 법률에 따라 설치 된 고등교육기관에서의 성적 평가 또는 입학자 선발에 관한 업무</li>
|
||||
<li>다. 학력·기능 및 채용에 관한 시험, 자격 심사에 관한 업무</li>
|
||||
<li>라. 보상금·급부금 산정 등에 대하여 진행 중인 평가 또는 판단에 관한 업무</li>
|
||||
<li>마. 다른 법률에 따라 진행 중인 감사 및 조사에 관한 업무</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<h6 class="subject">- 개인정보 정정·삭제 요구</h6>
|
||||
<p>
|
||||
KOEF BCB System에서 보유하고 있는 개인정보파일은「개인정보보호법」 제36조(개인정보의 정정·삭제)에 따라 정정·삭제를 요구할 수 있습니다. 다만, 다른 법령에서 그 개인정보가 수집 대상으로 명시되어 있는 경우에는 그 삭제를 요구할 수 없습니다.
|
||||
</p>
|
||||
|
||||
<h6 class="subject">- 개인정보 처리정지 요구</h6>
|
||||
<p>
|
||||
KOEF BCB System에서 보유하고 있는 개인정보파일은 「개인정보보호법」 제37조(개인정보의 처리정지 등)에 따라 처리정지를 요구할 수 있습니다. 다만, 개인정보 처리정지 요구 시 법 제37조 2항에 의하여 처리정지 요구가 거절될 수 있습니다.
|
||||
</p>
|
||||
<ol>
|
||||
<li>1.법률에 특별한 규정이 있거나 법령상 의무를 준수하기 위하여 불가피한 경우</li>
|
||||
<li>2.다른 사람의 생명·신체를 해할 우려가 있거나 다른 사람의 재산과 그 밖의 이익을 부당하게 침해할 우려가 있는 경우</li>
|
||||
<li>3.공공기관이 개인정보를 처리하지 아니하면 다른 법률에서 정하는 소관 업무를 수행할 수 없는 경우</li>
|
||||
<li>4.개인정보를 처리하지 아니하면 정보주체와 약정한 서비스를 제공하지 못하는 등 계약의 이행이 곤란한 경우로서 정보주체가 그 계약의 해지 의사를 명확하게 밝히지 아니한 경우</li>
|
||||
</ol>
|
||||
|
||||
<div class="indent">
|
||||
<h5 class="subject">마. 개인정보의 파기</h5>
|
||||
<p>
|
||||
KOEF BCB System은 원칙적으로 개인정보 처리목적이 달성된 개인정보는 지체없이 파기합니다. 파기의 절차, 기한 및 방법은 다음과 같습니다.
|
||||
</p>
|
||||
<ol>
|
||||
<li>1.파기 절차 개인정보는 목적 달성 후 즉시 또는 별도의 공간에 옮겨져 내부 방침 및 기타 관련법령에 따라 일정기간 저장된 후 파기됩니다. 별도의 공간으로 옮겨진 개인정보는 법률에 의한 경우가 아니고서는 다른 목적으로 이용되지 않습니다.
|
||||
</li>
|
||||
<li>2.파기 기한 및 파기 방법 보유기간이 만료되었거나 개인정보의 처리목적달성, 해당 업무의 폐지 등 그 개인정보가 불필요하게 되었을 때에는 지체없이 파기합니다. 전자적 파일형태의 정보는 기록을 재생할 수 없는 기술적 방법을 사용합니다. 종이에 출력된 대인정보는 분쇄기로 분쇄하거나 소각을 통하여 파기합니다.</li>
|
||||
</ol>
|
||||
|
||||
<h5 class="subject">바. 개인정보의 안전성 확보 조치</h5>
|
||||
<ol>
|
||||
<li>1.개인정보 취급직원의 최소화 및 교육 개인정보를 취급하는 직원은 반드시 필요한 인원에 한하여 지정 · 관리하고 있으며 취급직원을 대상으로 안전한 관리를 위한 교육을 실시하고 있습니다.</li>
|
||||
<li>2.개인정보에 대한 접근 제한 개인정보를 처리하는 데이터베이스시스템에 대한 접근권한의 부여·변경·말소를 통하여 개인정보에 대한 접근통제를 위한 필요한 조치를 하고 있으며 침입차단시스템을 이용하여 외부로부터의 무단 접근을 통제하고 있습니다.</li>
|
||||
<li>3.접속기록의 보관 개인정보처리시스템에 접속한 기록(웹 로그, 요약정보 등)을 최소 6개월 이상 보관·관리하고 있습니다.</li>
|
||||
<li>4.개인정보의 암호화 개인정보는 암호화 등을 통해 안전하게 저장 및 관리되고 있습니다. 또한 중요한 데이터는 저장 및 전송 시 암호화하여 사용하는 등의 별도 보안기능을 사용하고 있습니다.</li>
|
||||
<li>5.보안프로그램 설치 및 주기적 점검·갱신 해킹이나 컴퓨터 바이러스 등에 의한 개인정보 유출 및 훼손을 막기 위하여 보안프로그램을 설치하고 주기적으로 갱신·점검하고 있습니다.</li>
|
||||
<li>6.비인가자에 대한 출입 통제 개인정보를 보관하고 있는 개인정보시스템의 물리적 보관 장소를 별도로 두고 이에 대해 출입통제 절차를 수립, 운영하고 있습니다.</li>
|
||||
</ol>
|
||||
|
||||
<h5 class="subject">사. 권익침해 구제 방법</h5>
|
||||
<p>
|
||||
개인정보에 관한 권리 또는 이익을 침해받은 사람은 개인정보침해 신고센터 등으로 침해사실을 신고 할 수 있습니다.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
▶ 개인정보침해신고센터 : (국번없이) 118 (내선2번) <br />
|
||||
▶ 중앙행정심판위원회(www.simpan.go.kr)의 전화번호 안내 참조
|
||||
</p>
|
||||
|
||||
<h5 class="subject">아. 담당자 연락처</h5>
|
||||
<p>
|
||||
담당자 : 한국청년기업가정신재단 이지연 <br />
|
||||
연락처 : 02-2156-2291 / jylee@koef.or.kr
|
||||
</p>
|
||||
|
||||
<h5 class="subject">자. 개인정보 처리방침 변경</h5>
|
||||
<p>
|
||||
이 개인정보 처리침은 2019년 1월 1일부터 적용됩니다.
|
||||
</p>
|
||||
</div>
|
Binary file not shown.
After Width: | Height: | Size: 423 KiB |
|
@ -0,0 +1,374 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
login_tag = 1;
|
||||
%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
|
||||
<select id="language_select" onchange="setLanguage(this.value)">
|
||||
<option value="en" <%= (request.getLocale().toString().equals("en") ? "selected" : "") %>>English</option>
|
||||
<option value="es_PE" <%= (request.getLocale().toString().equals("es_PE") ? "selected" : "") %>>Spanish (Peru)</option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<%
|
||||
String c_project_no = r_call(request.getParameter("c_project_no"));
|
||||
int c_now_propose = 0;
|
||||
if(c_project_no.equals("")){
|
||||
%>
|
||||
<script>
|
||||
alert("Bad connection.")
|
||||
location.href="/"
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
String sql_up = " SELECT c.*, a.c_name as u_name, b.c_name as f_name ";
|
||||
sql_up = sql_up + " , (select c_now_propose from tbl_project_plan where c_relation = 0 and c_project_no = c.c_no) as c_now_propose " ;
|
||||
sql_up = sql_up + " from tbl_project c ";
|
||||
sql_up = sql_up + " inner join tbl_project a on a.c_no = c.c_up_no ";
|
||||
sql_up = sql_up + " inner join tbl_field b on b.c_no = a.c_field ";
|
||||
sql_up = sql_up + " where c.c_no = " + c_project_no;
|
||||
ResultSet rs_up = stmt.executeQuery(sql_up);
|
||||
if (rs_up.next()) {
|
||||
c_now_propose = rs_up.getInt("c_now_propose");
|
||||
%>
|
||||
<script>
|
||||
function go(){
|
||||
<%if(c_now_propose == 1){%>
|
||||
if(document.bcb.c_team_name.value == ""){
|
||||
alert("Teams name!")
|
||||
document.bcb.c_team_name.focus();
|
||||
}else{
|
||||
document.bcb.method = "post"
|
||||
document.bcb.target = "exec"
|
||||
document.bcb.action = "insert_ok.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>"
|
||||
document.bcb.submit()
|
||||
}
|
||||
<%}else{%>
|
||||
alert("This is not the application period.")
|
||||
<%}%>
|
||||
}
|
||||
</script>
|
||||
<form name="bcb" encType="multipart/form-data">
|
||||
<input name="c_home" value="<%=c_home%>" type="hidden">
|
||||
<input name="c_maker" value="0" type="hidden">
|
||||
<input name="c_project_no" value="<%=c_project_no%>" type="hidden">
|
||||
|
||||
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd >
|
||||
<tr " bgcolor=ffffff>
|
||||
<td colspan=2 align=center style="font-weight:bold;width:15%;min-width:50px"> <span id="a1">System</span> </td>
|
||||
<td width="85%" style="padding:5px">
|
||||
<b><%=rs_up.getString("f_name")%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor=ffffff>
|
||||
<td colspan=2 align=center style="font-weight:bold;"> <span id="a2">Category</span></td>
|
||||
<td style="padding:5px">
|
||||
<b><%=rs_up.getString("u_name")%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=30 bgcolor=ffffff>
|
||||
<td colspan=2 align=center style="font-weight:bold;"> <span id="a3">Program</span> </td>
|
||||
<td style="padding:5px">
|
||||
<font color=red><b><%=rs_up.getString("c_name")%></b></font>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<%
|
||||
|
||||
}
|
||||
rs_up.close();
|
||||
|
||||
%>
|
||||
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd >
|
||||
<tr height="30" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" > <span id="a4">Article</span></td>
|
||||
<td align=center style="width:85%" > <span id="a5">Contents</span></td>
|
||||
|
||||
</tr>
|
||||
<%
|
||||
int i = 0;
|
||||
int stu_check = 1;
|
||||
String sql_field = " SELECT * from tbl_apply_field where c_project_no = " + c_project_no +" order by c_order asc ";
|
||||
ResultSet rs_field = stmt.executeQuery(sql_field);
|
||||
while (rs_field.next()) {
|
||||
if(rs_field.getString("c_use_field").equals("c_grade")){
|
||||
stu_check = 0;
|
||||
}
|
||||
i = i + 1;
|
||||
%>
|
||||
|
||||
<tr bgcolor=ffffff>
|
||||
|
||||
<td height="40" align=center >
|
||||
<%=rs_field.getString("c_name")%>
|
||||
</td>
|
||||
<td align=left style="padding:5px">
|
||||
<%if(rs_field.getInt("c_type") == 1){%>
|
||||
<input name="<%=rs_field.getString("c_use_field")%>" style="width:100%">
|
||||
<%}%>
|
||||
<%if(rs_field.getInt("c_type") == 2){
|
||||
%>
|
||||
<select name="<%=rs_field.getString("c_use_field")%>" >
|
||||
<%if(rs_field.getString("c_content") != null && !rs_field.getString("c_content").equals("")){
|
||||
String[] sArray1 = rs_field.getString("c_content").split("[|]");
|
||||
for( int ii = 0; ii < sArray1.length; ii++ ){
|
||||
%>
|
||||
<option ><%=sArray1[ii]%></option>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
<%}%>
|
||||
</select>
|
||||
<%}%>
|
||||
<%if(rs_field.getInt("c_type") == 3){%>
|
||||
<textarea name="<%=rs_field.getString("c_use_field")%>" style="width:100%;height:100px"></textarea>
|
||||
<%}%>
|
||||
<%if(rs_field.getInt("c_type") == 4){%>
|
||||
<input name="<%=rs_field.getString("c_use_field")%>" type="file">form : <a href="/upload/yangsik/<%=rs_field.getString("c_content")%>"><%=rs_field.getString("c_content")%></a>
|
||||
<%}%>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr><td height=1 bgcolor=cdcdcd colspan=2></td></tr>
|
||||
<%
|
||||
|
||||
}
|
||||
rs_field.close();
|
||||
%>
|
||||
</table>
|
||||
<%
|
||||
String major_t = "Department";
|
||||
String grade_t = "Grade";
|
||||
if( stu_check == 1){
|
||||
major_t = "Department";
|
||||
grade_t = "Rank";
|
||||
}
|
||||
%>
|
||||
<br>
|
||||
<h7><b id="a6">Team Leader Information</b></h7>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd >
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<span id="a7">Email(ID)</span>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_email" style="width:80%" value="<%=session.getAttribute("member_id")%>" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<span id="a8">Name</span>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_name" style="width:50%" value="<%=session.getAttribute("member_name")%>" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<span id="a9">Mobile </span>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_phone" style="width:50%" value="" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<%=major_t%>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_major" style="width:70%" value="" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<%=grade_t%>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<%if( stu_check == 0){%>
|
||||
<select name="m_grade">
|
||||
<option value="1 Grade">1 Grade</option>
|
||||
<option value="2 Grade">2 Grade</option>
|
||||
<option value="3 Grade">3 Grade</option>
|
||||
<option value="4 Grade">4 Graden</option>
|
||||
<option value="Graduate school">Graduate school</option>
|
||||
</select>
|
||||
<%}else{%>
|
||||
<input name="m_grade" style="width:50%" value="" >
|
||||
<%}%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<script>
|
||||
var tm_no = 1;
|
||||
function p_tm(flag){
|
||||
if(tm_no + flag < 1){
|
||||
alert("At least one team member must be registered.")
|
||||
}else if(tm_no + flag > 10){
|
||||
alert("Up to 10 team members can be registered.")
|
||||
}else{
|
||||
if(flag == 1){
|
||||
tm_no = tm_no + 1
|
||||
document.getElementById("tm_"+tm_no).style.display = "block"
|
||||
}else{
|
||||
document.getElementById("tm_"+tm_no).style.display = "none"
|
||||
tm_no = tm_no - 1
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<h7><b id="a10">Team member information</b> <a href="#none" onclick="p_tm(1)">+</a> <a href="#none" onclick="p_tm(-1)">-</a></h7>
|
||||
<%for(int ir = 1; ir<11; ir++){%>
|
||||
<table id="tm_<%=ir%>" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd style="width:100%;<%if(ir>1){%>display:none<%}%> " >
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td bgcolor=cdcdcd align=center style="width:5%;min-width:50px" rowspan=5 >
|
||||
<span id="a11">Team members</span><%=ir%>.
|
||||
</td><td align=center style="width:15%;min-width:50px" >
|
||||
<span id="a12">Email(ID)</span>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_email" style="width:80%" value="" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<span id="a13">Name</span>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_name" style="width:50%" value="" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<span id="a14">Mobile</span>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_phone" style="width:50%" value="" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<%=major_t%>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_major" style="width:70%" value="" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<%=grade_t%>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<%if( stu_check == 0){%>
|
||||
<select name="m_grade">
|
||||
<option value="1 Grade">1 Grade</option>
|
||||
<option value="2 Grade">2 Grade</option>
|
||||
<option value="3 Grade">3 Grade</option>
|
||||
<option value="4 Grade">4 Grade</option>
|
||||
<option value="Graduate school">Graduate school</option>
|
||||
</select>
|
||||
<%}else{%>
|
||||
<input name="m_grade" style="width:50%" value="" >
|
||||
<%}%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height=20 bgcolor=ffffff colspan=3></td></tr>
|
||||
</table>
|
||||
<%}%>
|
||||
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td height="45" align="center" colspan="5" style="padding-bottom:10px;padding-top:10px;font-weight:bold;">
|
||||
<a href="#none" onclick="go()" style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;"><span id="a15">Apply</span></a>
|
||||
<a href="list.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>" style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #ededed; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a16">List</span></a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<iframe name="exec" id="exec" src="" width=0 height=0></iframe>
|
||||
<%}%>
|
||||
|
||||
|
||||
<script>
|
||||
// 다국어 처리를 위한 i18n 객체
|
||||
var i18n = {
|
||||
en: {
|
||||
a1: "System",
|
||||
a2: "Category",
|
||||
a3: "Program",
|
||||
a4: "Article",
|
||||
a5: "Contents",
|
||||
a6: "Team Leader Information",
|
||||
a7: "Email(ID)",
|
||||
a8: "Name",
|
||||
a9: "Mobile",
|
||||
a10: "Team member information",
|
||||
a11: "Team members",
|
||||
a12: "Email(ID)",
|
||||
a13: "Name",
|
||||
a14: "Mobile",
|
||||
a15: "Apply",
|
||||
a16: "List"
|
||||
},
|
||||
es_PE: {
|
||||
a1: "Sistema",
|
||||
a2: "Categoría",
|
||||
a3: "Programa",
|
||||
a4: "Artículo",
|
||||
a5: "Contenido",
|
||||
a6: "Información del líder del equipo",
|
||||
a7: "Correo electrónico (ID)",
|
||||
a8: "Nombre",
|
||||
a9: "Móvil",
|
||||
a10: "Información del miembro del equipo",
|
||||
a11: "Miembros del equipo",
|
||||
a12: "Correo electrónico (ID)",
|
||||
a13: "Nombre",
|
||||
a14: "Móvil",
|
||||
a15: "Aplicar",
|
||||
a16: "Lista"
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
// 선택된 언어에 따라 다국어 텍스트 설정
|
||||
function setLanguage(lang) {
|
||||
var langData = i18n[lang];
|
||||
document.getElementById("a1").innerText = langData.a1;
|
||||
document.getElementById("a2").innerText = langData.a2;
|
||||
document.getElementById("a3").innerText = langData.a3;
|
||||
document.getElementById("a4").innerText = langData.a4;
|
||||
document.getElementById("a5").innerText = langData.a5;
|
||||
document.getElementById("a6").innerText = langData.a6;
|
||||
document.getElementById("a7").innerText = langData.a7;
|
||||
document.getElementById("a8").innerText = langData.a8;
|
||||
document.getElementById("a9").innerText = langData.a9;
|
||||
document.getElementById("a10").innerText = langData.a10;
|
||||
document.getElementById("a11").innerText = langData.a11;
|
||||
|
||||
document.getElementById("a12").innerText = langData.a12;
|
||||
document.getElementById("a13").innerText = langData.a13;
|
||||
document.getElementById("a14").innerText = langData.a14;
|
||||
document.getElementById("a15").innerText = langData.a15;
|
||||
|
||||
document.getElementById("a16").innerText = langData.a16;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
setLanguage('<%= request.getLocale().toString() %>');
|
||||
</script>
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,169 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
|
||||
|
||||
|
||||
String fileName = "";
|
||||
String realFolder = "";
|
||||
String saveFolder = "/upload/board";
|
||||
String encType = "utf-8";
|
||||
int maxSize = 200 * 1024 * 1024;
|
||||
|
||||
ServletContext scontext = getServletContext();
|
||||
ArrayList saveFiles = new ArrayList();
|
||||
ArrayList orgFiles = new ArrayList();
|
||||
realFolder = scontext.getRealPath(saveFolder);
|
||||
realFolder = "/home/apply/upload/apply";
|
||||
MultipartRequest multi = new MultipartRequest( request
|
||||
, realFolder
|
||||
, maxSize
|
||||
, encType
|
||||
, new DefaultFileRenamePolicy() );
|
||||
Enumeration files = multi.getFileNames();
|
||||
int t1 = 0;
|
||||
String[] a_file = new String[50];
|
||||
int olp = 31;
|
||||
while( files.hasMoreElements() ){
|
||||
olp = olp - 1;
|
||||
|
||||
String name = (String)files.nextElement();
|
||||
int rtp = Integer.parseInt(name.replaceAll("c_temp",""));
|
||||
String fName = multi.getFilesystemName( name );
|
||||
String oName = multi.getOriginalFileName( name );
|
||||
String type = multi.getContentType( name );
|
||||
File f = multi.getFile( name );
|
||||
if(fName != null && !fName.equals("")){
|
||||
t1 = t1 + 1;
|
||||
if(t1 > 1){
|
||||
fileName = fileName + "|";
|
||||
}
|
||||
fileName = fileName + fName;
|
||||
a_file[rtp] = fName;
|
||||
|
||||
}else{
|
||||
a_file[rtp] = "";
|
||||
}
|
||||
}
|
||||
if(fileName == null){
|
||||
fileName = "";
|
||||
}
|
||||
String[] a_temp = new String[31];
|
||||
String c_home = r_call(multi.getParameter("c_home"));
|
||||
String c_maker = r_call(multi.getParameter("c_maker"));
|
||||
String c_project_no = r_call(multi.getParameter("c_project_no"));
|
||||
String show_no = r_call(multi.getParameter("show_no"));
|
||||
String check_no = r_call(multi.getParameter("check_no"));
|
||||
String c_relation = r_call(multi.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(multi.getParameter("c_relation2"));
|
||||
String c_team_name = r_call(multi.getParameter("c_team_name"));
|
||||
String c_region = r_call(multi.getParameter("c_region"));
|
||||
String c_univ = r_call(multi.getParameter("c_univ"));
|
||||
String c_major = r_call(multi.getParameter("c_major"));
|
||||
String c_grade = r_call(multi.getParameter("c_grade"));
|
||||
String c_com_name = r_call(multi.getParameter("c_com_name"));
|
||||
String c_com_region = r_call(multi.getParameter("c_com_region"));
|
||||
String c_boss = r_call(multi.getParameter("c_boss"));
|
||||
String c_manager = r_call(multi.getParameter("c_manager"));
|
||||
String c_phone = r_call(multi.getParameter("c_phone"));
|
||||
String c_email = r_call(multi.getParameter("c_email"));
|
||||
for(int ty = 1; ty<31; ty++){
|
||||
a_temp[ty] = r_call(multi.getParameter("c_temp" + ty));
|
||||
if(a_file[ty] != null && !a_file[ty].equals("")){
|
||||
a_temp[ty] = a_file[ty];
|
||||
}
|
||||
}
|
||||
|
||||
String sql_up = " SELECT c_no from tbl_apply_team where c_project_no = " + c_project_no + " and c_member_no = " + session.getAttribute("member_no") + " and c_use= 0 ";
|
||||
ResultSet rs_up = stmt.executeQuery(sql_up);
|
||||
if (rs_up.next()) {
|
||||
%>
|
||||
<script>
|
||||
alert("You already have application information. \nUse the Check Apply menu")
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
|
||||
int old_c_no = 0;
|
||||
String sql_up2 = " SELECT c_no from tbl_apply_team where c_project_no = " + c_project_no + " and c_member_no = " + session.getAttribute("member_no") + " and c_use= 0 ";
|
||||
ResultSet rs_up2 = stmt.executeQuery(sql_up2);
|
||||
if (rs_up2.next()) {
|
||||
old_c_no = rs_up2.getInt("c_no");
|
||||
}
|
||||
rs_up2.close();
|
||||
|
||||
String sqlc = "update tbl_apply_team set c_use = 1 where c_project_no = " + c_project_no + " and c_member_no = " + session.getAttribute("member_no") + " and c_use= 0 ";
|
||||
stmt2.execute(sqlc);
|
||||
sqlc = "update tbl_apply_team_member set c_use = 1 where c_project_no = " + c_project_no + " and c_team_no = " + old_c_no + " and c_use= 0 ";
|
||||
stmt2.execute(sqlc);
|
||||
|
||||
sqlc = "insert into tbl_apply_team (c_home,c_maker,c_project_no,c_member_no,c_team_name,c_region,c_univ,c_major,c_grade,c_com_name,c_com_region,c_boss,c_manager,c_phone,c_email";
|
||||
for(int ty = 1; ty<31; ty++){
|
||||
sqlc = sqlc+ ", c_temp"+ ty +" ";
|
||||
}
|
||||
sqlc = sqlc+ ",c_use,c_date) values (";
|
||||
sqlc = sqlc+ c_home +","+ c_maker +","+ c_project_no +","+ session.getAttribute("member_no") +",'"+ c_team_name +"','"+ c_region +"','"+ c_univ +"','"+ c_major +"','"+ c_grade +"','"+ c_com_name +"','"+ c_com_region +"','"+ c_boss +"','"+ c_manager +"','"+ c_phone +"','"+ c_email +"'";
|
||||
for(int ty = 1; ty<31; ty++){
|
||||
sqlc = sqlc+ ", '" + a_temp[ty] +"' ";
|
||||
}
|
||||
sqlc = sqlc+ ",0,now())";
|
||||
stmt2.execute(sqlc);
|
||||
|
||||
int my_c_no = 0;
|
||||
sql_up2 = " SELECT c_no from tbl_apply_team where c_project_no = " + c_project_no + " and c_member_no = " + session.getAttribute("member_no") + " and c_use= 0 ";
|
||||
rs_up2 = stmt.executeQuery(sql_up2);
|
||||
if (rs_up2.next()) {
|
||||
my_c_no = rs_up2.getInt("c_no");
|
||||
}
|
||||
rs_up2.close();
|
||||
|
||||
String m_email[] = multi.getParameterValues("m_email");
|
||||
String m_name[] = multi.getParameterValues("m_name");
|
||||
String m_phone[] = multi.getParameterValues("m_phone");
|
||||
String m_major[] = multi.getParameterValues("m_major");
|
||||
String m_grade[] = multi.getParameterValues("m_grade");
|
||||
for(int irr=0; irr< m_email.length; irr++){
|
||||
if(!m_email[irr].equals("")){
|
||||
sql_up2 = " insert into tbl_apply_team_member (c_home,c_maker,c_project_no,c_team_no,c_member_no,c_name,c_email,c_phone,c_major,c_grade,c_type,c_use,c_date) values (";
|
||||
sql_up2 = sql_up2 + c_home +","+ c_maker +","+ c_project_no + ","+ my_c_no;
|
||||
if(irr ==0){
|
||||
sql_up2 = sql_up2 + "," + session.getAttribute("member_no");
|
||||
}else{
|
||||
String sql_p = "select c_no from tbl_member where c_id = '"+ m_email[irr] +"' and c_use = 0";
|
||||
ResultSet rs_p = stmt.executeQuery(sql_p);
|
||||
if (rs_p.next()) {
|
||||
sql_up2 = sql_up2 + ","+ rs_p.getInt("c_no");
|
||||
}else{
|
||||
sql_up2 = sql_up2 + ",0";
|
||||
}
|
||||
rs_p.close();
|
||||
}
|
||||
sql_up2 = sql_up2 + ",'"+ m_name[irr] +"','"+ m_email[irr] +"','"+ m_phone[irr] +"','"+ m_major[irr] +"','"+ m_grade[irr] + "'" ;
|
||||
if(irr ==0){
|
||||
sql_up2 = sql_up2 + ",1";
|
||||
}else{
|
||||
sql_up2 = sql_up2 + ",0";
|
||||
}
|
||||
sql_up2 = sql_up2 + ",0,now())";
|
||||
stmt2.execute(sql_up2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Has been applied");
|
||||
parent.location.href="list.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>";
|
||||
</script>
|
||||
|
||||
<%
|
||||
}
|
||||
rs_up.close();
|
||||
%>
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,130 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
login_tag = 1;
|
||||
%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
<style type="text/css">
|
||||
|
||||
@media (max-width: 800px) {
|
||||
|
||||
.td11 { display: none; }
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<select id="language_select" onchange="setLanguage(this.value)">
|
||||
<option value="en" <%= (request.getLocale().toString().equals("en") ? "selected" : "") %>>English</option>
|
||||
<option value="es_PE" <%= (request.getLocale().toString().equals("es_PE") ? "selected" : "") %>>Spanish (Peru)</option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
|
||||
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
||||
<tr style="font-size:12px;">
|
||||
<td class="td11" width="40" height="40" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">No</td>
|
||||
<td height="40" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67"><span id="a1">Program Title</span></td>
|
||||
<td class="td11" width="120" class="td11" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67"><span id="a2">Apply Date</span></td>
|
||||
<td class="td11" width="50" class="td11" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67"><span id="a3">Sratus</span></td>
|
||||
<td width="150" class="td12" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67"><span id="a4">Apply</span></td>
|
||||
</tr>
|
||||
<%
|
||||
String sql1 = " select a.* ,b.c_propose_s_date, b.c_propose_e_date, b.c_now_propose ";
|
||||
sql1 = sql1 + ", ( select c_name from tbl_project where c_no = a.c_up_no ) as up_name ";
|
||||
sql1 = sql1 + ", ( select count(c_no) from tbl_apply_team where c_project_no = a.c_no and c_member_no = "+ session.getAttribute("member_no") +" and c_use = 0 ) as my_count ";
|
||||
sql1 = sql1 + " from tbl_project a ";
|
||||
sql1 = sql1 + " inner join tbl_project_plan b on b.c_project_no = a.c_no ";
|
||||
sql1 = sql1 + " where a.c_relation = 0 and a.c_field = " + c_home + " and a.c_up_no > 0 and a.c_propose = 0 and b.c_now_propose in (0,1) and a.c_use = 0 ";
|
||||
ResultSet rst = stmt.executeQuery(sql1);
|
||||
int num_p = 0;
|
||||
while (rst.next()) {
|
||||
num_p = num_p + 1;
|
||||
%>
|
||||
<tr>
|
||||
<td class="td11" height="70" align=center>
|
||||
<%=num_p%>
|
||||
</td>
|
||||
<td height="70" align=left>
|
||||
<%=rst.getString("up_name")%> - <b><%=rst.getString("c_name")%></b>
|
||||
</td>
|
||||
<td class="td11" align=center>
|
||||
<%=rst.getString("c_propose_s_date").substring(0,16)%> ~ <%=rst.getString("c_propose_e_date").substring(0,16)%>
|
||||
</td>
|
||||
<td class="td11" align=center>
|
||||
<%if(rst.getInt("c_now_propose") == 0){%>
|
||||
<span id="a5">Waiting</span>
|
||||
<%}%>
|
||||
<%if(rst.getInt("c_now_propose") == 1){%>
|
||||
<span id="a6" style="color: red;"><b>On request</b></span>
|
||||
<%}%>
|
||||
|
||||
</td>
|
||||
<td align=center>
|
||||
<%if(rst.getInt("c_now_propose") == 1){%>
|
||||
<%if(rst.getInt("my_count") == 0){%>
|
||||
<a href="insert.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_project_no=<%=rst.getInt("c_no")%>" style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;"><b id="a7">Apply </b></a>
|
||||
<%}else{%>
|
||||
<a href="#none" onclick="alert('You have already applied. \nUse the application confirmation menu.')" style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;"><b id="a8">Apply </b></a>
|
||||
<%}%>
|
||||
<%}%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" height="1" bgcolor="e5e5e6"></td>
|
||||
</tr>
|
||||
|
||||
<%
|
||||
}
|
||||
rst.close();
|
||||
%>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
// 다국어 처리를 위한 i18n 객체
|
||||
var i18n = {
|
||||
en: {
|
||||
a1: "Program Title",
|
||||
a2: "Apply Date",
|
||||
a3: "Sratus",
|
||||
a4: "Apply",
|
||||
a5: "Waiting",
|
||||
a6: "On request",
|
||||
a7: "Apply",
|
||||
a8: "Apply"
|
||||
},
|
||||
es_PE: {
|
||||
a1: "Título del programa",
|
||||
a2: "Fecha de aplicación",
|
||||
a3: "Estrato",
|
||||
a4: "Aplicar",
|
||||
a5: "Esperando",
|
||||
a6: "Bajo pedido",
|
||||
a7: "Aplicar",
|
||||
a8: "Aplicar"
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
// 선택된 언어에 따라 다국어 텍스트 설정
|
||||
function setLanguage(lang) {
|
||||
var langData = i18n[lang];
|
||||
document.getElementById("a1").innerText = langData.a1;
|
||||
document.getElementById("a2").innerText = langData.a2;
|
||||
document.getElementById("a3").innerText = langData.a3;
|
||||
document.getElementById("a4").innerText = langData.a4;
|
||||
document.getElementById("a5").innerText = langData.a5;
|
||||
document.getElementById("a6").innerText = langData.a6;
|
||||
document.getElementById("a7").innerText = langData.a7;
|
||||
document.getElementById("a8").innerText = langData.a8;
|
||||
document.getElementById("a9").innerText = langData.a9;
|
||||
document.getElementById("a10").innerText = langData.a10;
|
||||
document.getElementById("a11").innerText = langData.a11;
|
||||
|
||||
setLanguage('<%= request.getLocale().toString() %>');
|
||||
}
|
||||
</script>
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,36 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
|
||||
|
||||
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
|
||||
|
||||
String sqlc = "update tbl_apply_team set c_use = 1 where c_no = " + c_no + " and c_use= 0 ";
|
||||
stmt2.execute(sqlc);
|
||||
sqlc = "update tbl_apply_team_member set c_use = 1 where c_team_no = " + c_no + " and c_use= 0 ";
|
||||
stmt2.execute(sqlc);
|
||||
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Cancel OK.");
|
||||
parent.location.href="list.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>";
|
||||
</script>
|
||||
|
||||
<%
|
||||
|
||||
%>
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,472 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
login_tag = 1;
|
||||
%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
<select id="language_select" onchange="setLanguage(this.value)">
|
||||
<option value="en" <%= (request.getLocale().toString().equals("en") ? "selected" : "") %>>English</option>
|
||||
<option value="es_PE" <%= (request.getLocale().toString().equals("es_PE") ? "selected" : "") %>>Spanish (Peru)</option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<%
|
||||
String c_project_no = r_call(request.getParameter("c_project_no"));
|
||||
int c_now_propose = 0;
|
||||
if(c_project_no.equals("")){
|
||||
%>
|
||||
<script>
|
||||
alert("Wrong Connection")
|
||||
location.href="/"
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
String slq_chekc = "select * from tbl_apply_team where c_project_no = "+ c_project_no + " and c_member_no = " + session.getAttribute("member_no") + " and c_use = 0 ";
|
||||
ResultSet rs_check = stmt.executeQuery(slq_chekc);
|
||||
if (rs_check.next()) {
|
||||
|
||||
|
||||
String sql_up = " SELECT c.*, a.c_name as u_name, b.c_name as f_name ";
|
||||
sql_up = sql_up + " , (select c_now_propose from tbl_project_plan where c_relation = 0 and c_project_no = c.c_no) as c_now_propose " ;
|
||||
sql_up = sql_up + " from tbl_project c ";
|
||||
sql_up = sql_up + " inner join tbl_project a on a.c_no = c.c_up_no ";
|
||||
sql_up = sql_up + " inner join tbl_field b on b.c_no = a.c_field ";
|
||||
sql_up = sql_up + " where c.c_no = " + c_project_no;
|
||||
ResultSet rs_up = stmt.executeQuery(sql_up);
|
||||
if (rs_up.next()) {
|
||||
c_now_propose = rs_up.getInt("c_now_propose");
|
||||
%>
|
||||
<script>
|
||||
function go(){
|
||||
<%if(c_now_propose == 1){%>
|
||||
if(document.bcb.c_team_name.value == ""){
|
||||
alert("Insert Team Name")
|
||||
document.bcb.c_team_name.focus();
|
||||
}else{
|
||||
document.bcb.method = "post"
|
||||
document.bcb.target = "exec"
|
||||
document.bcb.action = "insert_ok.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>"
|
||||
document.bcb.submit()
|
||||
}
|
||||
<%}else{%>
|
||||
alert("This is not the application period.")
|
||||
<%}%>
|
||||
}
|
||||
</script>
|
||||
<form name="bcb" encType="multipart/form-data">
|
||||
<input name="c_home" value="<%=c_home%>" type="hidden">
|
||||
<input name="c_maker" value="0" type="hidden">
|
||||
<input name="c_project_no" value="<%=c_project_no%>" type="hidden">
|
||||
|
||||
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd >
|
||||
<tr " bgcolor=ffffff>
|
||||
<td colspan=2 align=center style="font-weight:bold;width:15%;min-width:50px"><span id="a1"> System</span></td>
|
||||
<td width="85%" style="padding:5px">
|
||||
<b><%=rs_up.getString("f_name")%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor=ffffff>
|
||||
<td colspan=2 align=center style="font-weight:bold;"><span id="a2">Category</span></td>
|
||||
<td style="padding:5px">
|
||||
<b><%=rs_up.getString("u_name")%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=30 bgcolor=ffffff>
|
||||
<td colspan=2 align=center style="font-weight:bold;"><span id="a3"> Program </span></td>
|
||||
<td style="padding:5px">
|
||||
<font color=red><b><%=rs_up.getString("c_name")%></b></font>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<%
|
||||
|
||||
}
|
||||
rs_up.close();
|
||||
|
||||
%>
|
||||
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd >
|
||||
<tr height="30" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" ><span id="a4"> Article</span></td>
|
||||
<td align=center style="width:85%" ><span id="a5"> Contents</span></td>
|
||||
|
||||
</tr>
|
||||
<%
|
||||
int i = 0;
|
||||
int stu_check = 1;
|
||||
String sql_field = " SELECT * from tbl_apply_field where c_project_no = " + c_project_no +" order by c_order asc ";
|
||||
ResultSet rs_field = stmt.executeQuery(sql_field);
|
||||
while (rs_field.next()) {
|
||||
if(rs_field.getString("c_use_field").equals("c_grade")){
|
||||
stu_check = 0;
|
||||
}
|
||||
i = i + 1;
|
||||
%>
|
||||
|
||||
<tr bgcolor=ffffff>
|
||||
|
||||
<td height="40" align=center >
|
||||
<%=rs_field.getString("c_name")%>
|
||||
</td>
|
||||
<td align=left style="padding:5px">
|
||||
<%if(rs_field.getInt("c_type") == 1){%>
|
||||
<input name="<%=rs_field.getString("c_use_field")%>" value="<%=rs_check.getString(rs_field.getString("c_use_field"))%>" style="width:100%">
|
||||
<%}%>
|
||||
<%if(rs_field.getInt("c_type") == 2){
|
||||
%>
|
||||
<select name="<%=rs_field.getString("c_use_field")%>" >
|
||||
<%if(rs_field.getString("c_content") != null && !rs_field.getString("c_content").equals("")){
|
||||
String[] sArray1 = rs_field.getString("c_content").split("[|]");
|
||||
for( int ii = 0; ii < sArray1.length; ii++ ){
|
||||
%>
|
||||
<option <%if(rs_check.getString(rs_field.getString("c_use_field")).equals(sArray1[ii])){%>selected<%}%>><%=sArray1[ii]%></option>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
<%}%>
|
||||
</select>
|
||||
<%}%>
|
||||
<%if(rs_field.getInt("c_type") == 3){%>
|
||||
<textarea name="<%=rs_field.getString("c_use_field")%>" style="width:100%;height:100px"><%=rs_check.getString(rs_field.getString("c_use_field"))%></textarea>
|
||||
<%}%>
|
||||
<%if(rs_field.getInt("c_type") == 4){%>
|
||||
Attach : <%=rs_check.getString(rs_field.getString("c_use_field"))%>
|
||||
<input name="o_<%=rs_field.getString("c_use_field")%>" value="<%=rs_check.getString(rs_field.getString("c_use_field"))%>" type="hidden">
|
||||
<table><tr><td>Change : </td>
|
||||
<td>
|
||||
<input name="<%=rs_field.getString("c_use_field")%>" type="file">
|
||||
</td></tr></table>
|
||||
form : <a href="/upload/yangsik/<%=rs_field.getString("c_content")%>"><%=rs_field.getString("c_content")%></a>
|
||||
<%}%>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr><td height=1 bgcolor=cdcdcd colspan=2></td></tr>
|
||||
<%
|
||||
|
||||
}
|
||||
rs_field.close();
|
||||
%>
|
||||
</table>
|
||||
<%
|
||||
String major_t = "Department";
|
||||
String grade_t = "Grade";
|
||||
if( stu_check == 1){
|
||||
major_t = "Department";
|
||||
grade_t = "Rank";
|
||||
}
|
||||
%>
|
||||
<br>
|
||||
<h7><b id="a6">Team Leader Information</b></h7>
|
||||
<%
|
||||
String slq_t = "select * from tbl_apply_team_member where c_project_no = "+ c_project_no + " and c_team_no = " + rs_check.getInt("c_no") + " and c_use = 0 and c_type= 1 ";
|
||||
ResultSet rs_t = stmt2.executeQuery(slq_t);
|
||||
if (rs_t.next()) {
|
||||
%>
|
||||
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd >
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<span id="a7">Email(ID)</span>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_email" style="width:80%" value="<%=rs_t.getString("c_email")%>" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<span id="a8">Name</span>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_name" style="width:50%" value="<%=rs_t.getString("c_name")%>" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<span id="a9">Mobile </span>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_phone" style="width:50%" value="<%=rs_t.getString("c_phone")%>" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<%=major_t%>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_major" style="width:70%" value="<%=rs_t.getString("c_major")%>" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<%=grade_t%>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<%if( stu_check == 0){%>
|
||||
<select name="m_grade">
|
||||
<option value="1 Grade" <%if(rs_t.getString("c_grade").equals("1 Grade")){%>selected<%}%>>1 Grade</option>
|
||||
<option value="2 Grade" <%if(rs_t.getString("c_grade").equals("2 Grade")){%>selected<%}%>>2 Grade</option>
|
||||
<option value="3 Grade" <%if(rs_t.getString("c_grade").equals("3 Grade")){%>selected<%}%>>3 Grade</option>
|
||||
<option value="4 Grade" <%if(rs_t.getString("c_grade").equals("4 Grade")){%>selected<%}%>>4 Grade</option>
|
||||
<option value="Graduate school" <%if(rs_t.getString("c_grade").equals("Graduate school")){%>selected<%}%>>Graduate school</option>
|
||||
</select>
|
||||
<%}else{%>
|
||||
<input name="m_grade" style="width:50%" value="<%=rs_t.getString("c_grade")%>" >
|
||||
<%}%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<%}
|
||||
rs_t.close();
|
||||
%>
|
||||
<br>
|
||||
<script>
|
||||
var tm_no = 1;
|
||||
function p_tm(flag){
|
||||
if(tm_no + flag < 1){
|
||||
alert("At least one team member must be registered.")
|
||||
}else if(tm_no + flag > 10){
|
||||
alert("Up to 10 team members can be registered.")
|
||||
}else{
|
||||
if(flag == 1){
|
||||
tm_no = tm_no + 1
|
||||
document.getElementById("tm_"+tm_no).style.display = "block"
|
||||
}else{
|
||||
document.getElementById("tm_"+tm_no).style.display = "none"
|
||||
tm_no = tm_no - 1
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<h7><b id="a10">Team member information </b> <a href="#none" onclick="p_tm(1)">+</a> <a href="#none" onclick="p_tm(-1)">-</a></h7>
|
||||
<%
|
||||
slq_t = "select * from tbl_apply_team_member where c_project_no = "+ c_project_no + " and c_team_no = " + rs_check.getInt("c_no") + " and c_use = 0 and c_type= 0 ";
|
||||
rs_t = stmt2.executeQuery(slq_t);
|
||||
int trr = 0;
|
||||
while(rs_t.next()) {
|
||||
trr = trr + 1;
|
||||
%>
|
||||
<table id="tm_<%=trr%>" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd style="width:100%;" >
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td bgcolor=cdcdcd align=center style="width:5%;min-width:50px" rowspan=5 >
|
||||
<span id="a11">Team Members</span><%=trr%>.
|
||||
</td><td align=center style="width:15%;min-width:50px" >
|
||||
<span id="a12">Email(ID)</span>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_email" style="width:80%" value="<%=rs_t.getString("c_email")%>" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<span id="a13">Name</span>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_name" style="width:50%" value="<%=rs_t.getString("c_name")%>" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<span id="a14">Mobile</span>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_phone" style="width:50%" value="<%=rs_t.getString("c_phone")%>" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<%=major_t%>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_major" style="width:70%" value="<%=rs_t.getString("c_major")%>" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<%=grade_t%>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<%if( stu_check == 0){%>
|
||||
<select name="m_grade">
|
||||
<option value="1 Grade" <%if(rs_t.getString("c_grade").equals("1 Grade")){%>selected<%}%>>1 Grade</option>
|
||||
<option value="2 Grade" <%if(rs_t.getString("c_grade").equals("2 Grade")){%>selected<%}%>>2 Grade</option>
|
||||
<option value="3 Grade" <%if(rs_t.getString("c_grade").equals("3 Grade")){%>selected<%}%>>3 Grade</option>
|
||||
<option value="4 Grade" <%if(rs_t.getString("c_grade").equals("4 Grade")){%>selected<%}%>>4 Grade</option>
|
||||
<option value="Graduate school" <%if(rs_t.getString("c_grade").equals("Graduate school")){%>selected<%}%>>Graduate school</option>
|
||||
</select>
|
||||
<%}else{%>
|
||||
<input name="m_grade" style="width:50%" value="<%=rs_t.getString("c_grade")%>" >
|
||||
<%}%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height=20 bgcolor=ffffff colspan=3></td></tr>
|
||||
</table>
|
||||
<%}
|
||||
rs_t.close();
|
||||
%>
|
||||
<script>
|
||||
tm_no = <%=trr%>;
|
||||
</script>
|
||||
<%for(int ir = trr+ 1; ir<11; ir++){%>
|
||||
<table id="tm_<%=ir%>" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd style="width:100%;<%if(ir>1){%>display:none<%}%> " >
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td bgcolor=cdcdcd align=center style="width:5%;min-width:50px" rowspan=5 >
|
||||
Team Members<%=ir%>.
|
||||
</td><td align=center style="width:15%;min-width:50px" >
|
||||
Email(ID)
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_email" style="width:80%" value="" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
Name
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_name" style="width:50%" value="" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
Mobile
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_phone" style="width:50%" value="" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<%=major_t%>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<input name="m_major" style="width:70%" value="" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24" bgcolor=efefef>
|
||||
<td align=center style="width:15%;min-width:50px" >
|
||||
<%=grade_t%>
|
||||
</td>
|
||||
<td bgcolor=ffffff style="padding-left:5px">
|
||||
<%if( stu_check == 0){%>
|
||||
<select name="m_grade">
|
||||
<option value="1 Grade">1 Grade</option>
|
||||
<option value="2 Grade">2 Grade</option>
|
||||
<option value="3 Grade">3 Grade</option>
|
||||
<option value="4 Grade">4 Grade</option>
|
||||
<option value="Graduate school">Graduate school</option>
|
||||
</select>
|
||||
<%}else{%>
|
||||
<input name="m_grade" style="width:50%" value="" >
|
||||
<%}%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height=20 bgcolor=ffffff colspan=3></td></tr>
|
||||
</table>
|
||||
<%}%>
|
||||
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td height="45" align="center" colspan="5" style="padding-bottom:10px;padding-top:10px;font-weight:bold;">
|
||||
<a href="#none" onclick="go()" style="width: 160px; line-height: 26px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;"><span id="a15">Change content</span></a>
|
||||
<a href="#none" onclick="if(confirm('If it is canceled, all the information entered will be deleted. \nAre you sure you want to cancel?')){location.href='delete_ok.jsp?c_no=<%=rs_check.getInt("c_no")%>&show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>'}" style="width: 160px; line-height: 26px; text-align: center;display: inline-block; background: red; border: 1px solid #555; border-radius: 5px; color: #ffffff;"><span id="a16">Cancel an app</span></a>
|
||||
<a href="list.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>" style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #ededed; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a17">List</span></a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<iframe name="exec" id="exec" src="" width=0 height=0></iframe>
|
||||
<%}else{%>
|
||||
<script>
|
||||
alert("There is no application for the selected program");
|
||||
location.href="list.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>"
|
||||
</script>
|
||||
<%}
|
||||
rs_check.close();
|
||||
%>
|
||||
<%}%>
|
||||
|
||||
|
||||
<script>
|
||||
// 다국어 처리를 위한 i18n 객체
|
||||
var i18n = {
|
||||
en: {
|
||||
a1: "System",
|
||||
a2: "Category",
|
||||
a3: "Program",
|
||||
a4: "Article",
|
||||
a5: "Contents",
|
||||
a6: "Team Leader Information",
|
||||
a7: "Email(ID)",
|
||||
a8: "Name",
|
||||
a9: "Mobile",
|
||||
a10: "Team member information",
|
||||
a11: "Team members",
|
||||
a12: "Email(ID)",
|
||||
a13: "Name",
|
||||
a14: "Mobile",
|
||||
a15: "Change content",
|
||||
a16: "Cancel an app",
|
||||
a17: "List"
|
||||
},
|
||||
es_PE: {
|
||||
a1: "Sistema",
|
||||
a2: "Categoría",
|
||||
a3: "Programa",
|
||||
a4: "Artículo",
|
||||
a5: "Contenido",
|
||||
a6: "Información del líder del equipo",
|
||||
a7: "Correo electrónico (ID)",
|
||||
a8: "Nombre",
|
||||
a9: "Móvil",
|
||||
a10: "Información del miembro del equipo",
|
||||
a11: "Miembros del equipo",
|
||||
a12: "Correo electrónico (ID)",
|
||||
a13: "Nombre",
|
||||
a14: "Móvil",
|
||||
a15: "Cambiar contenido",
|
||||
a16: "Cancelar una aplicación",
|
||||
a17: "Lista"
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
// 선택된 언어에 따라 다국어 텍스트 설정
|
||||
function setLanguage(lang) {
|
||||
var langData = i18n[lang];
|
||||
document.getElementById("a1").innerText = langData.a1;
|
||||
document.getElementById("a2").innerText = langData.a2;
|
||||
document.getElementById("a3").innerText = langData.a3;
|
||||
document.getElementById("a4").innerText = langData.a4;
|
||||
document.getElementById("a5").innerText = langData.a5;
|
||||
document.getElementById("a6").innerText = langData.a6;
|
||||
document.getElementById("a7").innerText = langData.a7;
|
||||
document.getElementById("a8").innerText = langData.a8;
|
||||
document.getElementById("a9").innerText = langData.a9;
|
||||
document.getElementById("a10").innerText = langData.a10;
|
||||
document.getElementById("a11").innerText = langData.a11;
|
||||
|
||||
document.getElementById("a12").innerText = langData.a12;
|
||||
document.getElementById("a13").innerText = langData.a13;
|
||||
document.getElementById("a14").innerText = langData.a14;
|
||||
document.getElementById("a15").innerText = langData.a15;
|
||||
|
||||
document.getElementById("a16").innerText = langData.a16;
|
||||
document.getElementById("a17").innerText = langData.a17;
|
||||
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
setLanguage('<%= request.getLocale().toString() %>');
|
||||
</script>
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,163 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
|
||||
|
||||
|
||||
String fileName = "";
|
||||
String realFolder = "";
|
||||
String saveFolder = "/upload/board";
|
||||
String encType = "utf-8";
|
||||
int maxSize = 200 * 1024 * 1024;
|
||||
|
||||
ServletContext scontext = getServletContext();
|
||||
ArrayList saveFiles = new ArrayList();
|
||||
ArrayList orgFiles = new ArrayList();
|
||||
realFolder = scontext.getRealPath(saveFolder);
|
||||
realFolder = "/home/apply/upload/apply";
|
||||
MultipartRequest multi = new MultipartRequest( request
|
||||
, realFolder
|
||||
, maxSize
|
||||
, encType
|
||||
, new DefaultFileRenamePolicy() );
|
||||
Enumeration files = multi.getFileNames();
|
||||
int t1 = 0;
|
||||
String[] a_file = new String[50];
|
||||
int olp = 31;
|
||||
while( files.hasMoreElements() ){
|
||||
olp = olp - 1;
|
||||
|
||||
String name = (String)files.nextElement();
|
||||
int rtp = Integer.parseInt(name.replaceAll("c_temp",""));
|
||||
String fName = multi.getFilesystemName( name );
|
||||
String oName = multi.getOriginalFileName( name );
|
||||
String type = multi.getContentType( name );
|
||||
File f = multi.getFile( name );
|
||||
if(fName != null && !fName.equals("")){
|
||||
t1 = t1 + 1;
|
||||
if(t1 > 1){
|
||||
fileName = fileName + "|";
|
||||
}
|
||||
fileName = fileName + fName;
|
||||
a_file[rtp] = fName;
|
||||
|
||||
}else{
|
||||
a_file[rtp] = "";
|
||||
}
|
||||
}
|
||||
if(fileName == null){
|
||||
fileName = "";
|
||||
}
|
||||
String[] a_temp = new String[31];
|
||||
String c_home = r_call(multi.getParameter("c_home"));
|
||||
String c_maker = r_call(multi.getParameter("c_maker"));
|
||||
String c_project_no = r_call(multi.getParameter("c_project_no"));
|
||||
String show_no = r_call(multi.getParameter("show_no"));
|
||||
String check_no = r_call(multi.getParameter("check_no"));
|
||||
String c_relation = r_call(multi.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(multi.getParameter("c_relation2"));
|
||||
String c_team_name = r_call(multi.getParameter("c_team_name"));
|
||||
String c_region = r_call(multi.getParameter("c_region"));
|
||||
String c_univ = r_call(multi.getParameter("c_univ"));
|
||||
String c_major = r_call(multi.getParameter("c_major"));
|
||||
String c_grade = r_call(multi.getParameter("c_grade"));
|
||||
String c_com_name = r_call(multi.getParameter("c_com_name"));
|
||||
String c_com_region = r_call(multi.getParameter("c_com_region"));
|
||||
String c_boss = r_call(multi.getParameter("c_boss"));
|
||||
String c_manager = r_call(multi.getParameter("c_manager"));
|
||||
String c_phone = r_call(multi.getParameter("c_phone"));
|
||||
String c_email = r_call(multi.getParameter("c_email"));
|
||||
for(int ty = 1; ty<31; ty++){
|
||||
a_temp[ty] = r_call(multi.getParameter("c_temp" + ty));
|
||||
if(!r_call(multi.getParameter("o_c_temp" + ty)).equals("") && ( a_file[ty] == null || a_file[ty].equals(""))){
|
||||
a_temp[ty] = r_call(multi.getParameter("o_c_temp" + ty));
|
||||
}
|
||||
if(a_file[ty] != null && !a_file[ty].equals("")){
|
||||
a_temp[ty] = a_file[ty];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
int old_c_no = 0;
|
||||
String sql_up2 = " SELECT c_no from tbl_apply_team where c_project_no = " + c_project_no + " and c_member_no = " + session.getAttribute("member_no") + " and c_use= 0 ";
|
||||
ResultSet rs_up2 = stmt.executeQuery(sql_up2);
|
||||
if (rs_up2.next()) {
|
||||
old_c_no = rs_up2.getInt("c_no");
|
||||
}
|
||||
rs_up2.close();
|
||||
|
||||
String sqlc = "update tbl_apply_team set c_use = 1 where c_project_no = " + c_project_no + " and c_member_no = " + session.getAttribute("member_no") + " and c_use= 0 ";
|
||||
stmt2.execute(sqlc);
|
||||
sqlc = "update tbl_apply_team_member set c_use = 1 where c_project_no = " + c_project_no + " and c_team_no = " + old_c_no + " and c_use= 0 ";
|
||||
stmt2.execute(sqlc);
|
||||
|
||||
sqlc = "insert into tbl_apply_team (c_home,c_maker,c_project_no,c_member_no,c_team_name,c_region,c_univ,c_major,c_grade,c_com_name,c_com_region,c_boss,c_manager,c_phone,c_email";
|
||||
for(int ty = 1; ty<31; ty++){
|
||||
sqlc = sqlc+ ", c_temp"+ ty +" ";
|
||||
}
|
||||
sqlc = sqlc+ ",c_use,c_date) values (";
|
||||
sqlc = sqlc+ c_home +","+ c_maker +","+ c_project_no +","+ session.getAttribute("member_no") +",'"+ c_team_name +"','"+ c_region +"','"+ c_univ +"','"+ c_major +"','"+ c_grade +"','"+ c_com_name +"','"+ c_com_region +"','"+ c_boss +"','"+ c_manager +"','"+ c_phone +"','"+ c_email +"'";
|
||||
for(int ty = 1; ty<31; ty++){
|
||||
sqlc = sqlc+ ", '" + a_temp[ty] +"' ";
|
||||
}
|
||||
sqlc = sqlc+ ",0,now())";
|
||||
stmt2.execute(sqlc);
|
||||
|
||||
int my_c_no = 0;
|
||||
sql_up2 = " SELECT c_no from tbl_apply_team where c_project_no = " + c_project_no + " and c_member_no = " + session.getAttribute("member_no") + " and c_use= 0 ";
|
||||
rs_up2 = stmt.executeQuery(sql_up2);
|
||||
if (rs_up2.next()) {
|
||||
my_c_no = rs_up2.getInt("c_no");
|
||||
}
|
||||
rs_up2.close();
|
||||
|
||||
String m_email[] = multi.getParameterValues("m_email");
|
||||
String m_name[] = multi.getParameterValues("m_name");
|
||||
String m_phone[] = multi.getParameterValues("m_phone");
|
||||
String m_major[] = multi.getParameterValues("m_major");
|
||||
String m_grade[] = multi.getParameterValues("m_grade");
|
||||
for(int irr=0; irr< m_email.length; irr++){
|
||||
if(!m_email[irr].equals("")){
|
||||
sql_up2 = " insert into tbl_apply_team_member (c_home,c_maker,c_project_no,c_team_no,c_member_no,c_name,c_email,c_phone,c_major,c_grade,c_type,c_use,c_date) values (";
|
||||
sql_up2 = sql_up2 + c_home +","+ c_maker +","+ c_project_no + ","+ my_c_no;
|
||||
if(irr ==0){
|
||||
sql_up2 = sql_up2 + "," + session.getAttribute("member_no");
|
||||
}else{
|
||||
String sql_p = "select c_no from tbl_member where c_id = '"+ m_email[irr] +"' and c_use = 0";
|
||||
ResultSet rs_p = stmt.executeQuery(sql_p);
|
||||
if (rs_p.next()) {
|
||||
sql_up2 = sql_up2 + ","+ rs_p.getInt("c_no");
|
||||
}else{
|
||||
sql_up2 = sql_up2 + ",0";
|
||||
}
|
||||
rs_p.close();
|
||||
}
|
||||
sql_up2 = sql_up2 + ",'"+ m_name[irr] +"','"+ m_email[irr] +"','"+ m_phone[irr] +"','"+ m_major[irr] +"','"+ m_grade[irr] + "'" ;
|
||||
if(irr ==0){
|
||||
sql_up2 = sql_up2 + ",1";
|
||||
}else{
|
||||
sql_up2 = sql_up2 + ",0";
|
||||
}
|
||||
sql_up2 = sql_up2 + ",0,now())";
|
||||
stmt2.execute(sql_up2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Has been changed");
|
||||
parent.location.href="list.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>";
|
||||
</script>
|
||||
|
||||
<%
|
||||
|
||||
%>
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,131 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
login_tag = 1;
|
||||
%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
<style type="text/css">
|
||||
|
||||
@media (max-width: 800px) {
|
||||
|
||||
.td11 { display: none; }
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
<select id="language_select" onchange="setLanguage(this.value)">
|
||||
<option value="en" <%= (request.getLocale().toString().equals("en") ? "selected" : "") %>>English</option>
|
||||
<option value="es_PE" <%= (request.getLocale().toString().equals("es_PE") ? "selected" : "") %>>Spanish (Peru)</option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
|
||||
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
||||
<tr style="font-size:12px;">
|
||||
<td class="td11" width="40" height="40" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">No</td>
|
||||
<td height="40" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67"><span id="a1">Program Title</span></td>
|
||||
<td class="td11" width="120" class="td11" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67"><span id="a2">Apply Date</span></td>
|
||||
<td class="td11" width="50" class="td11" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67"><span id="a3">Sratus</span></td>
|
||||
<td width="150" class="td12" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67"><span id="a4">Apply</span></td>
|
||||
</tr>
|
||||
<%
|
||||
String sql1 = " select a.* ,b.c_propose_s_date, b.c_propose_e_date, b.c_now_propose ";
|
||||
sql1 = sql1 + ", ( select c_name from tbl_project where c_no = a.c_up_no ) as up_name ";
|
||||
sql1 = sql1 + ", ( select count(c_no) from tbl_apply_team where c_project_no = a.c_no and c_member_no = "+ session.getAttribute("member_no") +" and c_use = 0 ) as my_count ";
|
||||
sql1 = sql1 + " from tbl_project a ";
|
||||
sql1 = sql1 + " inner join tbl_project_plan b on b.c_project_no = a.c_no ";
|
||||
sql1 = sql1 + " where a.c_relation = 0 and a.c_field = " + c_home + " and a.c_up_no > 0 and a.c_propose = 0 and b.c_now_propose in (0,1) and a.c_use = 0 ";
|
||||
ResultSet rst = stmt.executeQuery(sql1);
|
||||
int num_p = 0;
|
||||
while (rst.next()) {
|
||||
num_p = num_p + 1;
|
||||
%>
|
||||
<tr>
|
||||
<td class="td11" height="70" align=center>
|
||||
<%=num_p%>
|
||||
</td>
|
||||
<td height="70" align=left>
|
||||
<%=rst.getString("up_name")%> - <b><%=rst.getString("c_name")%></b>
|
||||
</td>
|
||||
<td class="td11" align=center>
|
||||
<%=rst.getString("c_propose_s_date").substring(0,16)%> ~ <%=rst.getString("c_propose_e_date").substring(0,16)%>
|
||||
</td>
|
||||
<td class="td11" align=center>
|
||||
<%if(rst.getInt("c_now_propose") == 0){%>
|
||||
<span id="a5">Waiting</span>
|
||||
<%}%>
|
||||
<%if(rst.getInt("c_now_propose") == 1){%>
|
||||
|
||||
<span id="a6" style="color: red;"><b>On request</b></span>
|
||||
<%}%>
|
||||
|
||||
</td>
|
||||
<td align=center>
|
||||
<%if(rst.getInt("c_now_propose") == 1){%>
|
||||
<%if(rst.getInt("my_count")> 0){%>
|
||||
<a href="insert.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_project_no=<%=rst.getInt("c_no")%>" style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;"><b id="a7">Confirmation</b></a>
|
||||
<%}else{%>
|
||||
<a href="#none" onclick="alert('No application details. \nUse the Apply menu.')" style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;"><b id="a8">Confirmation</b></a>
|
||||
<%}%>
|
||||
<%}%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" height="1" bgcolor="e5e5e6"></td>
|
||||
</tr>
|
||||
|
||||
<%
|
||||
}
|
||||
rst.close();
|
||||
%>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
// 다국어 처리를 위한 i18n 객체
|
||||
var i18n = {
|
||||
en: {
|
||||
a1: "Program Title",
|
||||
a2: "Apply Date",
|
||||
a3: "Sratus",
|
||||
a4: "Apply",
|
||||
a5: "Waiting",
|
||||
a6: "On request",
|
||||
a7: "Confirmation",
|
||||
a8: "Confirmation"
|
||||
},
|
||||
es_PE: {
|
||||
a1: "Título del programa",
|
||||
a2: "Fecha de aplicación",
|
||||
a3: "Estrato",
|
||||
a4: "Aplicar",
|
||||
a5: "Esperando",
|
||||
a6: "Bajo pedido",
|
||||
a7: "Confirmación",
|
||||
a8: "Confirmación"
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
// 선택된 언어에 따라 다국어 텍스트 설정
|
||||
function setLanguage(lang) {
|
||||
var langData = i18n[lang];
|
||||
document.getElementById("a1").innerText = langData.a1;
|
||||
document.getElementById("a2").innerText = langData.a2;
|
||||
document.getElementById("a3").innerText = langData.a3;
|
||||
document.getElementById("a4").innerText = langData.a4;
|
||||
document.getElementById("a5").innerText = langData.a5;
|
||||
document.getElementById("a6").innerText = langData.a6;
|
||||
document.getElementById("a7").innerText = langData.a7;
|
||||
document.getElementById("a8").innerText = langData.a8;
|
||||
document.getElementById("a9").innerText = langData.a9;
|
||||
document.getElementById("a10").innerText = langData.a10;
|
||||
document.getElementById("a11").innerText = langData.a11;
|
||||
|
||||
setLanguage('<%= request.getLocale().toString() %>');
|
||||
}
|
||||
</script>
|
||||
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,46 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
login_tag = 1;
|
||||
%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
<%
|
||||
String c_id = "";
|
||||
String c_pass = "";
|
||||
String sql_mem = "select c_id, c_pass from tbl_member where c_no = " + session.getAttribute("member_no");
|
||||
ResultSet rs_mem = stmt.executeQuery(sql_mem);
|
||||
if(rs_mem.next()){
|
||||
c_id = rs_mem.getString("c_id");
|
||||
c_pass = rs_mem.getString("c_pass");
|
||||
}
|
||||
rs_mem.close();
|
||||
%>
|
||||
<script>
|
||||
function go_bmc(){
|
||||
var popup = window.open("","bmc")
|
||||
if(popup == null || popup.screenLeft == 0){
|
||||
alert('Pop-up is being blocked. Use it after canceling the pop-up blocker.');
|
||||
}
|
||||
document.mem.method="post";
|
||||
document.mem.target="bmc";
|
||||
document.mem.action="http://bmc.ci.concytec.gob.pe/relation/login_ok.jsp";
|
||||
document.mem.submit();
|
||||
//location.href="/default.jsp"
|
||||
}
|
||||
</script>
|
||||
<form name="mem">
|
||||
<input name="c_id" value="<%=c_id%>" type="hidden">
|
||||
<input name="c_pass" value="<%=c_pass%>" type="hidden">
|
||||
</form>
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-md-12" style="height:100px;text-align:center;padding-top:40px">
|
||||
<a href="#none" onclick="go_bmc()">[ BMC Access ]</a>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
go_bmc();
|
||||
</script>
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,162 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
@media (max-width: 800px) {
|
||||
|
||||
.td11 { display: none; }
|
||||
.td12 { display: none; }
|
||||
.td13 { display: none; }
|
||||
.td14 { display: none; }
|
||||
.td21 { display: none; }
|
||||
.td22 { display: none; }
|
||||
.td23 { display: none; }
|
||||
.td24 { display: none; }
|
||||
}
|
||||
//-->
|
||||
</style>
|
||||
<%
|
||||
|
||||
String c_maker = "1";
|
||||
String board_no = show_no;
|
||||
String para_t = "show_no="+ show_no +"&check_no="+ check_no +"&c_maker=" + c_maker + "&board_no=" + board_no + "&c_relation=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
|
||||
String where_t = " c_use = 0 and ";
|
||||
int totalRecord = 0; //총레코드개수
|
||||
int numPerPage = 10; //한페이지당 보여줄레코드개수
|
||||
int totalPage = 0; //총페이지수
|
||||
int pagePerBlock = 10; //블록당페이지수
|
||||
int nowPage = 1; //현재페이지
|
||||
String sql1 = "";
|
||||
sql1 = " select count(c_no) ";
|
||||
sql1 = sql1 + " from tbl_board ";
|
||||
sql1 = sql1 + " where "+ where_t +" c_relation = "+ c_relation +" and c_relation2 = "+ c_relation2 +" and c_home = "+ c_home +" and c_maker = "+ c_maker +" and c_board_no = "+ board_no +" ";
|
||||
ResultSet rst = stmt.executeQuery(sql1);
|
||||
if (rst.next()) {
|
||||
totalRecord = rst.getInt(1);
|
||||
}
|
||||
rst.close();
|
||||
if ( r_call(request.getParameter("nowPage")) != null && !r_call(request.getParameter("nowPage")).equals("")) {
|
||||
nowPage = Integer.parseInt(r_call(request.getParameter("nowPage")));
|
||||
}
|
||||
|
||||
//nowPage = 93;
|
||||
//totalRecord =1240;
|
||||
int pfirst = 0; //첫페이지 번호
|
||||
int plast = 0; // 끝페이지 번호
|
||||
int plast_org = 0;
|
||||
|
||||
pfirst = ((nowPage-1)/pagePerBlock)*pagePerBlock + 1;
|
||||
plast = pfirst + pagePerBlock - 1;
|
||||
plast_org = (totalRecord-1)/numPerPage + 1;
|
||||
if(plast > plast_org){
|
||||
plast = plast_org;
|
||||
}
|
||||
int c_number=totalRecord-(nowPage-1)*numPerPage;
|
||||
|
||||
int sql_now_page = (nowPage - 1) * numPerPage;
|
||||
|
||||
%>
|
||||
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
||||
<tr style="font-size:12px;">
|
||||
<td width="40" height="30" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">No</td>
|
||||
<td height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">Title</td>
|
||||
<td width="80" class="td11" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">Writer</td>
|
||||
<td width="50" class="td12" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">Attach</td>
|
||||
<td width="50" class="td13" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">Click</td>
|
||||
<td width="100" class="td14" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">Date</td>
|
||||
</tr>
|
||||
<%if(totalRecord==0) {%>
|
||||
<tr>
|
||||
<td width="" height="60" align="center" colspan=6>
|
||||
No Data
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" height="1" bgcolor="e5e5e6"></td>
|
||||
</tr>
|
||||
<%}else{%>
|
||||
<%
|
||||
sql1 = " select t.* from ( select a.* ";
|
||||
sql1 = sql1 + " from tbl_board a ";
|
||||
sql1 = sql1 + " where "+ where_t +" a.c_relation = "+ c_relation +" and a.c_relation2 = "+ c_relation2 +" and a.c_home = "+ c_home +" and a.c_maker = "+ c_maker +" and a.c_board_no = "+ board_no +") t ";
|
||||
sql1 = sql1 + " order by t.c_no desc ";
|
||||
sql1 = sql1 + " limit "+ sql_now_page +" , "+ numPerPage +" ";
|
||||
rst = stmt.executeQuery(sql1);
|
||||
while (rst.next()) {
|
||||
%>
|
||||
<tr>
|
||||
<td height="30" align=center>
|
||||
<%=c_number%>
|
||||
</td>
|
||||
<td align=left style="padding:3px">
|
||||
<a href="view.jsp?<%=para_t%>&c_no=<%=rst.getString("c_no")%>&nowPage=<%=nowPage%>"><%=rst.getString("c_title")%></a>
|
||||
</td>
|
||||
<td class="td21" align=center>
|
||||
<%=rst.getString("c_name")%>
|
||||
</td>
|
||||
<td class="td22" align=center>
|
||||
<%if(!rst.getString("c_file").equals("")){%>
|
||||
O
|
||||
<%}%>
|
||||
</td>
|
||||
<td class="td23" align=center>
|
||||
<%=rst.getString("c_click")%>
|
||||
</td>
|
||||
<td class="td24" align=center>
|
||||
<%=rst.getString("c_date").substring(0,10)%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" height="1" bgcolor="e5e5e6"></td>
|
||||
</tr>
|
||||
<%
|
||||
c_number=c_number-1;
|
||||
}
|
||||
rst.close();
|
||||
%>
|
||||
<%} %>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td height="35" align="center" colspan="9" style="padding-bottom:10px;padding-top:10px">
|
||||
<table align=center border=0 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<%if(pfirst > 1){ %>
|
||||
<td align=center width="32" style='padding=0,4,0,4'>
|
||||
<a href="list.jsp?nowPage=1&<%=para_t%>">〈〈</a>
|
||||
</td>
|
||||
<td align=center width="32" style='padding=0,4,0,0'>
|
||||
<a href="list.jsp?nowPage=<%=pfirst-1%>&<%=para_t%>">〈</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<% for(int i=pfirst;i<plast+1;i=i+1){%>
|
||||
<td align=center width="32" style='padding=0,0,0,0' valign=top>
|
||||
<% if(i==nowPage){%>
|
||||
<font color=#4D9ACF size=3><b><%=i%>
|
||||
<%}else{%>
|
||||
<a href="list.jsp?nowPage=<%=i%>&<%=para_t%>"><font color=#787878 size=3><b><%=i%></b></a>
|
||||
<%}%>
|
||||
</td>
|
||||
<%}%>
|
||||
<%if(plast < plast_org){ %>
|
||||
<td align=center width="32" style='padding=0,4,0,4'>
|
||||
<a href="list.jsp?nowPage=<%=plast+1%>&<%=para_t%>">〉</a>
|
||||
</td>
|
||||
<td align=center width="32" style='padding=0,4,0,0'>
|
||||
<a href="list.jsp?nowPage=<%=plast_org%>&<%=para_t%>">〉〉</a>
|
||||
</td>
|
||||
<%}%>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,72 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
|
||||
<%
|
||||
|
||||
String c_maker = "1";
|
||||
String board_no = show_no;
|
||||
String para_t = "show_no="+ show_no +"&check_no="+ check_no +"&c_maker=" + c_maker + "&board_no=" + board_no + "&c_relation=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
|
||||
|
||||
String nowPage = r_call(request.getParameter("nowPage"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
if(c_no.equals("")){
|
||||
%>
|
||||
<script>
|
||||
alert("Wrong Connrction.")
|
||||
location.href="/"
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
String sql_ok = "";
|
||||
sql_ok = "update tbl_board set c_click = c_click + 1 where c_no = " + c_no;
|
||||
|
||||
stmt2.execute(sql_ok);
|
||||
|
||||
String sql1 = " select * from tbl_board where c_no = " + c_no;
|
||||
ResultSet rst = stmt.executeQuery(sql1);
|
||||
if (rst.next()) {
|
||||
%>
|
||||
<table width="100%" cellSpacing="1" cellPadding="0" border="0" >
|
||||
<tr bgcolor=cdcdcd><td height="2" >
|
||||
</td></tr>
|
||||
<tr bgcolor=fffff><td height="30" style="padding:5px">
|
||||
Title. <%=rst.getString("c_title")%></b>
|
||||
</td></tr>
|
||||
<tr bgcolor=ededed><td height="30" style="padding:5px">
|
||||
|
||||
Writer. <%=rst.getString("c_name")%></b>
|
||||
/
|
||||
Clicks <%=rst.getString("c_click")%></b>
|
||||
/
|
||||
Date <%=rst.getString("c_date").substring(0,10)%></b>
|
||||
|
||||
</td></tr>
|
||||
|
||||
<tr bgcolor=fffff><td height="220" valign=top style="padding:5px;line-height:150%">
|
||||
<%=rst.getString("c_content").replaceAll("/upload","http://www.ci.concytec.gob.pe/upload")%></b>
|
||||
</td></tr>
|
||||
<tr bgcolor=ededed><td height="30" style="padding:5px">
|
||||
Attachment. <a href="/upload/board/<%=rst.getString("c_file")%>"><%=rst.getString("c_file")%></a></b>
|
||||
</td></tr>
|
||||
</td></tr>
|
||||
</table>
|
||||
<table width="100%" cellSpacing="1" cellPadding="0" border="0" bgcolor=ffffff>
|
||||
<tr bgcolor=ffffff><td height="40" align=right style="padding:5px">
|
||||
|
||||
<a href="list.jsp?<%=para_t%>&nowPage=<%=nowPage%>" style="width: 80px; line-height: 26px; text-align: center;display: inline-block; background: #989898; border: 1px solid #555; border-radius: 5px; color: #ffffff;">List</a>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<%
|
||||
|
||||
}
|
||||
rst.close();
|
||||
}
|
||||
%>
|
||||
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,162 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
@media (max-width: 800px) {
|
||||
|
||||
.td11 { display: none; }
|
||||
.td12 { display: none; }
|
||||
.td13 { display: none; }
|
||||
.td14 { display: none; }
|
||||
.td21 { display: none; }
|
||||
.td22 { display: none; }
|
||||
.td23 { display: none; }
|
||||
.td24 { display: none; }
|
||||
}
|
||||
//-->
|
||||
</style>
|
||||
<%
|
||||
|
||||
String c_maker = "1";
|
||||
String board_no = show_no;
|
||||
String para_t = "show_no="+ show_no +"&check_no="+ check_no +"&c_maker=" + c_maker + "&board_no=" + board_no + "&c_relation=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
|
||||
String where_t = " c_use = 0 and ";
|
||||
int totalRecord = 0; //총레코드개수
|
||||
int numPerPage = 10; //한페이지당 보여줄레코드개수
|
||||
int totalPage = 0; //총페이지수
|
||||
int pagePerBlock = 10; //블록당페이지수
|
||||
int nowPage = 1; //현재페이지
|
||||
String sql1 = "";
|
||||
sql1 = " select count(c_no) ";
|
||||
sql1 = sql1 + " from tbl_board ";
|
||||
sql1 = sql1 + " where "+ where_t +" c_relation = "+ c_relation +" and c_relation2 = "+ c_relation2 +" and c_home = "+ c_home +" and c_maker = "+ c_maker +" and c_board_no = "+ board_no +" ";
|
||||
ResultSet rst = stmt.executeQuery(sql1);
|
||||
if (rst.next()) {
|
||||
totalRecord = rst.getInt(1);
|
||||
}
|
||||
rst.close();
|
||||
if ( r_call(request.getParameter("nowPage")) != null && !r_call(request.getParameter("nowPage")).equals("")) {
|
||||
nowPage = Integer.parseInt(r_call(request.getParameter("nowPage")));
|
||||
}
|
||||
|
||||
//nowPage = 93;
|
||||
//totalRecord =1240;
|
||||
int pfirst = 0; //첫페이지 번호
|
||||
int plast = 0; // 끝페이지 번호
|
||||
int plast_org = 0;
|
||||
|
||||
pfirst = ((nowPage-1)/pagePerBlock)*pagePerBlock + 1;
|
||||
plast = pfirst + pagePerBlock - 1;
|
||||
plast_org = (totalRecord-1)/numPerPage + 1;
|
||||
if(plast > plast_org){
|
||||
plast = plast_org;
|
||||
}
|
||||
int c_number=totalRecord-(nowPage-1)*numPerPage;
|
||||
|
||||
int sql_now_page = (nowPage - 1) * numPerPage;
|
||||
|
||||
%>
|
||||
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
||||
<tr style="font-size:12px;">
|
||||
<td width="40" height="30" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">No</td>
|
||||
<td height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">Title</td>
|
||||
<td width="80" class="td11" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">등록자</td>
|
||||
<td width="50" class="td12" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">첨부</td>
|
||||
<td width="50" class="td13" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">클릭수</td>
|
||||
<td width="100" class="td14" height="" scope="col" style="text-align:center; border-top:2px solid #9BBB67; border-bottom:1px solid #9BBB67">등록일</td>
|
||||
</tr>
|
||||
<%if(totalRecord==0) {%>
|
||||
<tr>
|
||||
<td width="" height="60" align="center" colspan=6>
|
||||
No data.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" height="1" bgcolor="e5e5e6"></td>
|
||||
</tr>
|
||||
<%}else{%>
|
||||
<%
|
||||
sql1 = " select t.* from ( select a.* ";
|
||||
sql1 = sql1 + " from tbl_board a ";
|
||||
sql1 = sql1 + " where "+ where_t +" a.c_relation = "+ c_relation +" and a.c_relation2 = "+ c_relation2 +" and a.c_home = "+ c_home +" and a.c_maker = "+ c_maker +" and a.c_board_no = "+ board_no +") t ";
|
||||
sql1 = sql1 + " order by t.c_no desc ";
|
||||
sql1 = sql1 + " limit "+ sql_now_page +" , "+ numPerPage +" ";
|
||||
rst = stmt.executeQuery(sql1);
|
||||
while (rst.next()) {
|
||||
%>
|
||||
<tr>
|
||||
<td height="30" align=center>
|
||||
<%=c_number%>
|
||||
</td>
|
||||
<td align=left style="padding:3px">
|
||||
<a href="view.jsp?<%=para_t%>&c_no=<%=rst.getString("c_no")%>&nowPage=<%=nowPage%>"><%=rst.getString("c_title")%></a>
|
||||
</td>
|
||||
<td class="td21" align=center>
|
||||
<%=rst.getString("c_name")%>
|
||||
</td>
|
||||
<td class="td22" align=center>
|
||||
<%if(!rst.getString("c_file").equals("")){%>
|
||||
O
|
||||
<%}%>
|
||||
</td>
|
||||
<td class="td23" align=center>
|
||||
<%=rst.getString("c_click")%>
|
||||
</td>
|
||||
<td class="td24" align=center>
|
||||
<%=rst.getString("c_date").substring(0,10)%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" height="1" bgcolor="e5e5e6"></td>
|
||||
</tr>
|
||||
<%
|
||||
c_number=c_number-1;
|
||||
}
|
||||
rst.close();
|
||||
%>
|
||||
<%} %>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td height="35" align="center" colspan="9" style="padding-bottom:10px;padding-top:10px">
|
||||
<table align=center border=0 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<%if(pfirst > 1){ %>
|
||||
<td align=center width="32" style='padding=0,4,0,4'>
|
||||
<a href="list.jsp?nowPage=1&<%=para_t%>">〈〈</a>
|
||||
</td>
|
||||
<td align=center width="32" style='padding=0,4,0,0'>
|
||||
<a href="list.jsp?nowPage=<%=pfirst-1%>&<%=para_t%>">〈</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<% for(int i=pfirst;i<plast+1;i=i+1){%>
|
||||
<td align=center width="32" style='padding=0,0,0,0' valign=top>
|
||||
<% if(i==nowPage){%>
|
||||
<font color=#4D9ACF size=3><b><%=i%>
|
||||
<%}else{%>
|
||||
<a href="list.jsp?nowPage=<%=i%>&<%=para_t%>"><font color=#787878 size=3><b><%=i%></b></a>
|
||||
<%}%>
|
||||
</td>
|
||||
<%}%>
|
||||
<%if(plast < plast_org){ %>
|
||||
<td align=center width="32" style='padding=0,4,0,4'>
|
||||
<a href="list.jsp?nowPage=<%=plast+1%>&<%=para_t%>">〉</a>
|
||||
</td>
|
||||
<td align=center width="32" style='padding=0,4,0,0'>
|
||||
<a href="list.jsp?nowPage=<%=plast_org%>&<%=para_t%>">〉〉</a>
|
||||
</td>
|
||||
<%}%>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,79 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@page import="java.net.URLEncoder"%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
|
||||
<%
|
||||
|
||||
String c_maker = "1";
|
||||
String board_no = show_no;
|
||||
String para_t = "show_no="+ show_no +"&check_no="+ check_no +"&c_maker=" + c_maker + "&board_no=" + board_no + "&c_relation=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
|
||||
|
||||
String nowPage = r_call(request.getParameter("nowPage"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
if(c_no.equals("")){
|
||||
%>
|
||||
<script>
|
||||
alert("Wrong connection.")
|
||||
location.href="/"
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
String sql_ok = "";
|
||||
sql_ok = "update tbl_board set c_click = c_click + 1 where c_no = " + c_no;
|
||||
|
||||
stmt2.execute(sql_ok);
|
||||
|
||||
String sql1 = " select * from tbl_board where c_no = " + c_no;
|
||||
ResultSet rst = stmt.executeQuery(sql1);
|
||||
if (rst.next()) {
|
||||
%>
|
||||
<table width="100%" cellSpacing="1" cellPadding="0" border="0" >
|
||||
<tr bgcolor=cdcdcd><td height="2" >
|
||||
</td></tr>
|
||||
<tr bgcolor=fffff><td height="30" style="padding:5px">
|
||||
Title. <%=rst.getString("c_title")%></b>
|
||||
</td></tr>
|
||||
<tr bgcolor=ededed><td height="30" style="padding:5px">
|
||||
|
||||
Name. <%=rst.getString("c_name")%></b>
|
||||
/
|
||||
Clicks <%=rst.getString("c_click")%></b>
|
||||
/
|
||||
date <%=rst.getString("c_date").substring(0,10)%></b>
|
||||
|
||||
</td></tr>
|
||||
|
||||
<tr bgcolor=fffff><td height="220" valign=top style="padding:5px">
|
||||
<%=rst.getString("c_content").replaceAll("\n\r","<br />")%></b>
|
||||
</td></tr>
|
||||
<tr bgcolor=ededed><td height="30" style="padding:5px">
|
||||
<script>
|
||||
function file_down(flag1,flag2){
|
||||
location.href="/upload/" + flag1 + "/2" + encodeURIComponent(flag2)
|
||||
}
|
||||
</script>
|
||||
File. <a href="#none" onclick="file_down('board','[서식] 후속진출지원 결과보고서.hwp')"><%=rst.getString("c_file")%></a></b>
|
||||
|
||||
</td></tr>
|
||||
</td></tr>
|
||||
</table>
|
||||
<table width="100%" cellSpacing="1" cellPadding="0" border="0" bgcolor=ffffff>
|
||||
<tr bgcolor=ffffff><td height="40" align=right style="padding:5px">
|
||||
|
||||
<a href="list.jsp?<%=para_t%>&nowPage=<%=nowPage%>" style="width: 80px; line-height: 26px; text-align: center;display: inline-block; background: #989898; border: 1px solid #555; border-radius: 5px; color: #ffffff;">List</a>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<%
|
||||
|
||||
}
|
||||
rst.close();
|
||||
}
|
||||
%>
|
||||
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,39 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
String c_member_no = r_call(request.getParameter("c_member_no"));
|
||||
|
||||
String sql_c = "select a.* , b.c_name as m_name, b.c_id as m_id ";
|
||||
sql_c = sql_c + ", (select count(c_no) as m_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) ) as m_number ";
|
||||
sql_c = sql_c + " from tbl_community a ";
|
||||
sql_c = sql_c + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_c = sql_c + " where a.c_no = "+ c_no +" and a.c_use = 0 and a.c_home = "+ c_home +" and c_member_no = "+ session.getAttribute("member_no") +" ";
|
||||
|
||||
ResultSet rs_c = stmt.executeQuery(sql_c);
|
||||
if (rs_c.next()) {
|
||||
String sql_in = "update tbl_community_member set ";
|
||||
sql_in = sql_in + " c_now = 1 ";
|
||||
sql_in = sql_in + " where c_community_no = " + c_no + " and c_member_no = " + c_member_no;
|
||||
stmt2.execute(sql_in);
|
||||
}
|
||||
rs_c.close();
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Approval ok")
|
||||
parent.location.href="edit.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>";
|
||||
</script>
|
||||
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,48 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
String c_master_no = r_call(request.getParameter("c_master_no"));
|
||||
String c_board_no = r_call(request.getParameter("c_board_no"));
|
||||
String c_view = r_call(request.getParameter("c_view"));
|
||||
String c_order = r_call(request.getParameter("c_order"));
|
||||
String old_no = r_call(request.getParameter("old_no"));
|
||||
String old_order = r_call(request.getParameter("old_order"));
|
||||
|
||||
String sql_c = "select a.* , b.c_name as m_name, b.c_id as m_id ";
|
||||
sql_c = sql_c + ", (select count(c_no) as m_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) ) as m_number ";
|
||||
sql_c = sql_c + " from tbl_community a ";
|
||||
sql_c = sql_c + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_c = sql_c + " where a.c_no = "+ c_no +" and a.c_use = 0 and a.c_home = "+ c_home +" and c_member_no = "+ session.getAttribute("member_no") +" ";
|
||||
ResultSet rs_c = stmt.executeQuery(sql_c);
|
||||
if (rs_c.next()) {
|
||||
String sql_in = "update tbl_community_board set ";
|
||||
sql_in = sql_in + " c_order = " + old_order + " ";
|
||||
sql_in = sql_in + " where c_no = " + c_board_no + " ";
|
||||
stmt2.execute(sql_in);
|
||||
|
||||
sql_in = "update tbl_community_board set ";
|
||||
sql_in = sql_in + " c_order = " + c_order + " ";
|
||||
sql_in = sql_in + " where c_no = " + old_no + " ";
|
||||
stmt2.execute(sql_in);
|
||||
}
|
||||
rs_c.close();
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Changed order")
|
||||
parent.location.href="edit.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>";
|
||||
</script>
|
||||
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,39 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
String c_master_no = r_call(request.getParameter("c_master_no"));
|
||||
String c_board_no = r_call(request.getParameter("c_board_no"));
|
||||
String c_view = r_call(request.getParameter("c_view"));
|
||||
|
||||
String sql_c = "select a.* , b.c_name as m_name, b.c_id as m_id ";
|
||||
sql_c = sql_c + ", (select count(c_no) as m_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) ) as m_number ";
|
||||
sql_c = sql_c + " from tbl_community a ";
|
||||
sql_c = sql_c + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_c = sql_c + " where a.c_no = "+ c_no +" and a.c_use = 0 and a.c_home = "+ c_home +" and c_member_no = "+ session.getAttribute("member_no") +" ";
|
||||
ResultSet rs_c = stmt.executeQuery(sql_c);
|
||||
if (rs_c.next()) {
|
||||
String sql_in = "update tbl_community_board set ";
|
||||
sql_in = sql_in + " c_view = " + c_view + " ";
|
||||
sql_in = sql_in + " where c_no = " + c_board_no + " ";
|
||||
stmt2.execute(sql_in);
|
||||
}
|
||||
rs_c.close();
|
||||
|
||||
%>
|
||||
<script>
|
||||
parent.location.href="edit.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>";
|
||||
</script>
|
||||
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,80 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<iframe name="exec" id="exec" width="0px" height="0px"></iframe>
|
||||
<%
|
||||
}
|
||||
}else{
|
||||
%>
|
||||
<script>
|
||||
alert("Ther's no Community")
|
||||
location.href="/"
|
||||
</script>
|
||||
<%
|
||||
}
|
||||
rs_c.close();
|
||||
}%>
|
||||
|
||||
<script>
|
||||
// 다국어 처리를 위한 i18n 객체
|
||||
var i18n = {
|
||||
en: {
|
||||
a1: "◎ Community Information",
|
||||
a2: "Name",
|
||||
a3: "You are",
|
||||
a4: "◎ Community boards",
|
||||
a5: "Title",
|
||||
a6: "Writer",
|
||||
a7: "Date",
|
||||
a8: "Click",
|
||||
a9: "Insert",
|
||||
a10: "Insert",
|
||||
a11: "Cancel"
|
||||
},
|
||||
es_PE: {
|
||||
a1: "◎ Información de la comunidad",
|
||||
a2: "Nombre",
|
||||
a3: "Tú eres",
|
||||
a4: "◎ Tableros comunitarios",
|
||||
a5: "Título",
|
||||
a6: "Escritor",
|
||||
a7: "Fecha",
|
||||
a8: "Hacer clic",
|
||||
a9: "Insertar",
|
||||
a10: "Insertar",
|
||||
a11: "Cancelar"
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
// 선택된 언어에 따라 다국어 텍스트 설정
|
||||
function setLanguage(lang) {
|
||||
var langData = i18n[lang];
|
||||
document.getElementById("a1").innerText = langData.a1;
|
||||
document.getElementById("a2").innerText = langData.a2;
|
||||
document.getElementById("a3").innerText = langData.a3;
|
||||
document.getElementById("a4").innerText = langData.a4;
|
||||
document.getElementById("a5").innerText = langData.a5;
|
||||
document.getElementById("a6").innerText = langData.a6;
|
||||
document.getElementById("a7").innerText = langData.a7;
|
||||
document.getElementById("a8").innerText = langData.a8;
|
||||
document.getElementById("a9").innerText = langData.a9;
|
||||
document.getElementById("a10").innerText = langData.a10;
|
||||
document.getElementById("a11").innerText = langData.a11;
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
setLanguage('<%= request.getLocale().toString() %>');
|
||||
</script>
|
||||
|
||||
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,146 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
login_tag = 1;
|
||||
%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
if(!c_no.equals("")){
|
||||
now_community = Integer.parseInt(c_no);
|
||||
}
|
||||
String s_board_no = r_call(request.getParameter("c_board_no"));
|
||||
if(!s_board_no.equals("")){
|
||||
now_community_board = Integer.parseInt(s_board_no);
|
||||
}
|
||||
%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
<%
|
||||
String para_t = "show_no="+ show_no +"&check_no="+ check_no + "&c_relation=" + c_relation + "&c_relation2=" + c_relation2 + "&c_no=" + c_no + "&c_board_no=" + s_board_no;
|
||||
%>
|
||||
<%
|
||||
if(c_no.equals("")){
|
||||
%>
|
||||
<script>
|
||||
alert("Wrong connection")
|
||||
location.href ="/"
|
||||
</script>
|
||||
<% }else{
|
||||
String c_board_no = "";
|
||||
String master_no = "";
|
||||
int my_now = -1;
|
||||
String sql_c = "select a.* , b.c_name as m_name, b.c_id as m_id ";
|
||||
sql_c = sql_c + ", (select c_now as my_now from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) and c_member_no = "+ session.getAttribute("member_no") +" ) as my_now ";
|
||||
sql_c = sql_c + ", (select count(c_no) as m_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) ) as m_number ";
|
||||
sql_c = sql_c + ", (select count(c_no) as ready_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now = 0 ) as ready_number ";
|
||||
sql_c = sql_c + ", (select count(c_no) as real_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now = 1 ) as real_number ";
|
||||
sql_c = sql_c + " from tbl_community a ";
|
||||
sql_c = sql_c + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_c = sql_c + " where a.c_no = "+ c_no +" and a.c_use = 0 and a.c_home = "+ c_home +" ";
|
||||
ResultSet rs_c = stmt.executeQuery(sql_c);
|
||||
if (rs_c.next()) {
|
||||
master_no = rs_c.getString("c_member_no");
|
||||
if(rs_c.getString("my_now") != null){
|
||||
my_now = rs_c.getInt("my_now");
|
||||
}
|
||||
if(!master_no.equals(session.getAttribute("member_no")) && my_now == -1 ){
|
||||
%>
|
||||
<script>
|
||||
alert("You are not a member of this community")
|
||||
location.href="../view.jsp?<%=para_t%>&c_no=<%=c_no%>"
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
|
||||
int my_writer = 0;
|
||||
%>
|
||||
|
||||
|
||||
<select id="language_select" onchange="setLanguage(this.value)">
|
||||
<option value="en" <%= (request.getLocale().toString().equals("en") ? "selected" : "") %>>English</option>
|
||||
<option value="es_PE" <%= (request.getLocale().toString().equals("es_PE") ? "selected" : "") %>>Spanish (Peru)</option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<form name="bcb" encType="multipart/form-data">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="">
|
||||
<div style="padding-bottom:10px">
|
||||
<b id="a1">◎ Community Information</b>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr><td style="width:10%;text-align:right;height:30px;padding-right:10px">
|
||||
<span id="a2">Name</span>
|
||||
</td><td style="width:90%;text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=rs_c.getString("c_name")%></b>
|
||||
/ <%=rs_c.getString("m_name")%>( <%=rs_c.getString("m_id")%> )
|
||||
</td></tr>
|
||||
<tr><td style="text-align:right;height:30px;padding-right:10px">
|
||||
<span id="a3">You are</span>
|
||||
</td><td style="\text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=session.getAttribute("member_name")%></b> ( <%=session.getAttribute("member_id")%> )
|
||||
/
|
||||
<%if(master_no.equals(session.getAttribute("member_no"))){
|
||||
my_writer = 1;
|
||||
%>
|
||||
<font color=red>Master
|
||||
<%}else{%>
|
||||
<%if( my_now == 0 ){%>
|
||||
<font color=blue>Waiting Member
|
||||
<%}%>
|
||||
<%if( my_now == 1 ){%>
|
||||
<font color=green>Regular Mamber
|
||||
<%}%>
|
||||
<%}%>
|
||||
</font>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:20px">
|
||||
<div style="padding-bottom:10px">
|
||||
<b id="a4">◎ Community boards</b>
|
||||
-
|
||||
<%
|
||||
String sql_b = "select a.* ";
|
||||
sql_b = sql_b + " ,(select count(c_no) as p_number from tbl_board where c_relation = 2021 and c_relation2 = 1077 and c_use = 0 and c_community_board_no = a.c_no ) as p_number ";
|
||||
sql_b = sql_b + " ,(select count(c_no) as my_p_number from tbl_board where c_relation = 2021 and c_relation2 = 1077 and c_use = 0 and c_community_board_no = a.c_no and c_member_no = "+ session.getAttribute("member_no") +" ) as my_p_number ";
|
||||
sql_b = sql_b + " from tbl_community_board a where a.c_community_no = "+ c_no +" and a.c_use = 0 and a.c_view = 0 and a.c_no = "+ s_board_no +" order by a.c_order asc ";
|
||||
ResultSet rs_b = stmt.executeQuery(sql_b);
|
||||
if (rs_b.next()) {
|
||||
%>
|
||||
<b><%=rs_b.getString("c_name")%></b>
|
||||
/
|
||||
<%if(rs_b.getInt("c_type") == 0){
|
||||
if( my_now == 1 ){
|
||||
my_writer = 1;
|
||||
}
|
||||
%>
|
||||
Writer : <b>Regular Member</b>
|
||||
<%}%>
|
||||
<%if(rs_b.getInt("c_type") == 1){%>
|
||||
Writer : <b>Master</b>
|
||||
<%}%>
|
||||
|
||||
<%}
|
||||
rs_b.close();
|
||||
%>
|
||||
/
|
||||
<font color=#898989><i>
|
||||
You are
|
||||
<%if( my_writer == 1 ){%>
|
||||
<b> Writer.</b>
|
||||
<%}else{%>
|
||||
<b>Spectator only.</b>
|
||||
<%}%>
|
||||
</i></font>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
String c_board_no = r_call(request.getParameter("c_board_no"));
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
String c_post_no = r_call(request.getParameter("c_post_no"));
|
||||
|
||||
|
||||
String sql_ok = "";
|
||||
sql_ok = "update tbl_board set c_use = 1 where c_no = " + c_post_no;
|
||||
stmt2.execute(sql_ok);
|
||||
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Delete OK");
|
||||
parent.location.href="list.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>&c_board_no=<%=c_board_no%>";
|
||||
</script>
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,97 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%@include file="board_inc_top.jsp"%>
|
||||
|
||||
<%
|
||||
if( my_writer == 1 ){
|
||||
%>
|
||||
|
||||
<%
|
||||
String nowPage = r_call(request.getParameter("nowPage"));
|
||||
String c_post_no = r_call(request.getParameter("c_post_no"));
|
||||
if(c_post_no.equals("")){
|
||||
|
||||
}else{
|
||||
String sql1 = " select a.* ";
|
||||
sql1 = sql1 + " from tbl_board a where a.c_no = " + c_post_no;
|
||||
ResultSet rst = stmt.executeQuery(sql1);
|
||||
if (rst.next()) {
|
||||
if(rst.getString("c_member_no").equals(session.getAttribute("member_no") ) ){
|
||||
%>
|
||||
<script>
|
||||
function go(){
|
||||
if(document.bcb.c_title.value == ""){
|
||||
alert("Insert Title.")
|
||||
document.bcb.c_title.focus()
|
||||
}else if(document.bcb.c_content.value == ""){
|
||||
alert("Insert Content.")
|
||||
document.bcb.c_content.focus()
|
||||
|
||||
|
||||
}else{
|
||||
document.bcb.method = "post"
|
||||
document.bcb.target = "exec"
|
||||
document.bcb.action = "edit_ok.jsp?<%=para_t%>"
|
||||
document.bcb.submit()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<input name="c_post_no" value="<%=c_post_no%>" type="hidden">
|
||||
|
||||
<div class="col-lg-12 col-md-12" style=" padding-top:15px;">
|
||||
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
||||
<input name="c_title" value="<%=rst.getString("c_title")%>" style="width:100%;height:30px" placeholder="Insert Title.">
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
||||
<div class="col-lg-4 col-md-4" >
|
||||
Writer. <%=rst.getString("c_name")%></b>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12" style="min-height:100px;border-bottom: 1px solid #ccc; padding:10px ">
|
||||
<textarea name="c_content" style="width:100%;height:200px"><%=rst.getString("c_content")%></textarea>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:5px ;line-height:200%">
|
||||
File. <%=rst.getString("c_file")%>
|
||||
<input name="o_file_name" value="<%=rst.getString("c_file")%>" type="hidden">
|
||||
<%if(!rst.getString("c_file").equals("")){%>
|
||||
<input name="o_file" value="y" type="checkbox">Del</b>
|
||||
<%}%>
|
||||
<br>
|
||||
<input name="c_file" type="file" style="width:100%;height:30px" placeholder="Choose file.">
|
||||
<font color=red>* Upload to 10MB or less</font>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12" style="text-align:center;padding-top:20px;padding-bottom:15px">
|
||||
<%if(rst.getString("c_member_no").equals(session.getAttribute("member_no") ) && my_writer == 1 ){%>
|
||||
<a href="#none" onclick="go()" style="width: 80px; line-height: 26px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;">Edit</a>
|
||||
<%}%>
|
||||
<a href="view.jsp?<%=para_t%>&c_post_no=<%=c_post_no%>" style="width: 80px; line-height: 26px; text-align: center;display: inline-block; background: #989898; border: 1px solid #555; border-radius: 5px; color: #ffffff;">View</a>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<%
|
||||
}else{
|
||||
%>
|
||||
<script>
|
||||
alert("You have no permission.")
|
||||
location.href="/"
|
||||
</script>
|
||||
<%
|
||||
}
|
||||
}
|
||||
rst.close();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
}else{
|
||||
%>
|
||||
<script>
|
||||
alert("You have no permission.")
|
||||
location.href="/"
|
||||
</script>
|
||||
<% }%>
|
||||
<%@include file="board_inc_bottom.jsp"%>
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
|
||||
|
||||
String fileName = "";
|
||||
String realFolder = "";
|
||||
String saveFolder = "/upload/board";
|
||||
String encType = "utf-8";
|
||||
int maxSize = 10 * 1024 * 1024;
|
||||
|
||||
ServletContext scontext = getServletContext();
|
||||
ArrayList saveFiles = new ArrayList();
|
||||
ArrayList orgFiles = new ArrayList();
|
||||
realFolder = scontext.getRealPath(saveFolder);
|
||||
MultipartRequest multi = new MultipartRequest( request
|
||||
, realFolder
|
||||
, maxSize
|
||||
, encType
|
||||
, new DefaultFileRenamePolicy() );
|
||||
Enumeration files = multi.getFileNames();
|
||||
int t1 = 0;
|
||||
String[] a_file = new String[11];
|
||||
int olp = 11;
|
||||
while( files.hasMoreElements() ){
|
||||
olp = olp - 1;
|
||||
|
||||
String name = (String)files.nextElement();
|
||||
String fName = multi.getFilesystemName( name );
|
||||
String oName = multi.getOriginalFileName( name );
|
||||
String type = multi.getContentType( name );
|
||||
File f = multi.getFile( name );
|
||||
if(fName != null && !fName.equals("")){
|
||||
t1 = t1 + 1;
|
||||
if(t1 > 1){
|
||||
fileName = fileName + "|";
|
||||
}
|
||||
fileName = fileName + fName;
|
||||
a_file[olp] = fName;
|
||||
|
||||
}else{
|
||||
a_file[olp] = "";
|
||||
}
|
||||
}
|
||||
if(fileName == null){
|
||||
fileName = "";
|
||||
}
|
||||
|
||||
String c_post_no = r_call(multi.getParameter("c_post_no"));
|
||||
String show_no = r_call(multi.getParameter("show_no"));
|
||||
String check_no = r_call(multi.getParameter("check_no"));
|
||||
String c_relation = r_call(multi.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(multi.getParameter("c_relation2"));
|
||||
String c_no = r_call(multi.getParameter("c_no"));
|
||||
String c_board_no = r_call(multi.getParameter("c_board_no"));
|
||||
String c_title = r_call(multi.getParameter("c_title"));
|
||||
String c_name = r_call(multi.getParameter("c_name"));
|
||||
String c_content = r_call(multi.getParameter("c_content"));
|
||||
String o_file = r_call(multi.getParameter("o_file"));
|
||||
String o_file_name = r_call(multi.getParameter("o_file_name"));
|
||||
String last_file = "";
|
||||
if(!fileName.equals("")){
|
||||
last_file = fileName;
|
||||
}else{
|
||||
if(o_file.equals("y")){
|
||||
last_file = "";
|
||||
}else{
|
||||
last_file = o_file_name;
|
||||
}
|
||||
}
|
||||
|
||||
String sql_ok = "";
|
||||
sql_ok = "update tbl_board set c_title = '"+ c_title +"',c_content='"+ c_content +"',c_file ='"+ last_file +"' where c_no = " + c_post_no +" and c_community_board_no = "+ c_board_no ;
|
||||
|
||||
stmt2.execute(sql_ok);
|
||||
%>
|
||||
<script>
|
||||
alert("Edit OK");
|
||||
parent.location.href="view.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>&c_board_no=<%=c_board_no%>&c_post_no=<%=c_post_no%>";
|
||||
</script>
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,55 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%@include file="board_inc_top.jsp"%>
|
||||
|
||||
<%
|
||||
if( my_writer == 1 ){
|
||||
%>
|
||||
<script>
|
||||
function go(){
|
||||
if(document.bcb.c_title.value == ""){
|
||||
alert("Insert Title.")
|
||||
document.bcb.c_title.focus()
|
||||
}else if(document.bcb.c_content.value == ""){
|
||||
alert("Insert Content.")
|
||||
document.bcb.c_content.focus()
|
||||
}else{
|
||||
document.bcb.method = "post"
|
||||
document.bcb.target = "exec"
|
||||
document.bcb.action = "insert_ok.jsp?<%=para_t%>"
|
||||
document.bcb.submit()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-md-12" style=" padding-top:15px;">
|
||||
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
||||
<input name="c_title" style="width:100%;height:30px" placeholder="Title.">
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
||||
Writer <b><%=session.getAttribute("member_name")%></b>
|
||||
<input name="c_name" value="<%=session.getAttribute("member_name")%>" type="hidden">
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
||||
<textarea name="c_content" style="width:100%;height:200px"></textarea>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
||||
<input name="c_file" type="file" style="width:100%;height:30px" placeholder="File Achieve.">
|
||||
<font color=red>* Subir a 10 MB o menos</font>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12" style="text-align:center;padding-top:20px;padding-bottom:15px">
|
||||
<a href="#none" onclick="go()" style="width: 80px; line-height: 40px; text-align: center;display: inline-block; background: #5E9ECA; border: 1px solid #ffffff;border-radius: 20px; color: #ffffff;font-weight:400;font-size: 13px;"><span id="a10">Insert</span></a>
|
||||
<a href="list.jsp?<%=para_t%>" style="width: 80px; line-height: 40px; text-align: center;display: inline-block; background: #787878; border: 1px solid #ffffff; border-radius: 20px; color: #ffffff;font-weight:400;font-size: 13px;"><span id="a11">Cancel</span></a>
|
||||
</div>
|
||||
<%
|
||||
}else{
|
||||
%>
|
||||
<script>
|
||||
alert("You do not have permission.")
|
||||
location.href="/"
|
||||
</script>
|
||||
<%}%>
|
||||
<%@include file="board_inc_bottom.jsp"%>
|
||||
|
|
@ -0,0 +1,76 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
|
||||
|
||||
String fileName = "";
|
||||
String realFolder = "";
|
||||
String saveFolder = "/upload/board";
|
||||
String encType = "utf-8";
|
||||
int maxSize = 10 * 1024 * 1024;
|
||||
|
||||
ServletContext scontext = getServletContext();
|
||||
ArrayList saveFiles = new ArrayList();
|
||||
ArrayList orgFiles = new ArrayList();
|
||||
realFolder = scontext.getRealPath(saveFolder);
|
||||
MultipartRequest multi = new MultipartRequest( request
|
||||
, realFolder
|
||||
, maxSize
|
||||
, encType
|
||||
, new DefaultFileRenamePolicy() );
|
||||
Enumeration files = multi.getFileNames();
|
||||
int t1 = 0;
|
||||
String[] a_file = new String[11];
|
||||
int olp = 11;
|
||||
while( files.hasMoreElements() ){
|
||||
olp = olp - 1;
|
||||
|
||||
String name = (String)files.nextElement();
|
||||
String fName = multi.getFilesystemName( name );
|
||||
String oName = multi.getOriginalFileName( name );
|
||||
String type = multi.getContentType( name );
|
||||
File f = multi.getFile( name );
|
||||
if(fName != null && !fName.equals("")){
|
||||
t1 = t1 + 1;
|
||||
if(t1 > 1){
|
||||
fileName = fileName + "|";
|
||||
}
|
||||
fileName = fileName + fName;
|
||||
a_file[olp] = fName;
|
||||
|
||||
}else{
|
||||
a_file[olp] = "";
|
||||
}
|
||||
}
|
||||
if(fileName == null){
|
||||
fileName = "";
|
||||
}
|
||||
|
||||
String show_no = r_call(multi.getParameter("show_no"));
|
||||
String check_no = r_call(multi.getParameter("check_no"));
|
||||
String c_relation = r_call(multi.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(multi.getParameter("c_relation2"));
|
||||
String c_no = r_call(multi.getParameter("c_no"));
|
||||
String c_board_no = r_call(multi.getParameter("c_board_no"));
|
||||
String c_title = r_call(multi.getParameter("c_title"));
|
||||
String c_name = r_call(multi.getParameter("c_name"));
|
||||
String c_content = r_call(multi.getParameter("c_content"));
|
||||
|
||||
String sql_ok = "";
|
||||
sql_ok = " insert into tbl_board (c_relation,c_relation2, c_project_no, c_member_no, c_name ,c_title,c_content,c_file,c_click,c_use, c_date,c_community_board_no) values(";
|
||||
sql_ok = sql_ok + c_relation + "," + c_relation2 + ",0," + session.getAttribute("member_no") + ",'" + c_name + "','"+ c_title + "','" + c_content + "','" +fileName + "',0,0,now(),"+ c_board_no +")";
|
||||
|
||||
stmt2.execute(sql_ok);
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Insert OK");
|
||||
parent.location.href="list.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>&c_board_no=<%=c_board_no%>";
|
||||
</script>
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,132 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%@include file="board_inc_top.jsp"%>
|
||||
|
||||
<%
|
||||
String where_t = " a.c_use = 0 and ";
|
||||
int totalRecord = 0; //총레코드개수
|
||||
int numPerPage = 10; //한페이지당 보여줄레코드개수
|
||||
int totalPage = 0; //총페이지수
|
||||
int pagePerBlock = 10; //블록당페이지수
|
||||
int nowPage = 1; //현재페이지
|
||||
String sql1 = "";
|
||||
|
||||
sql1 = " select count(t.c_no) from ( select a.* ";
|
||||
sql1 = sql1 + " from tbl_board a ";
|
||||
sql1 = sql1 + " where "+ where_t +" a.c_relation = 2021 and a.c_relation2 = 1077 and c_community_board_no = "+ s_board_no +" ) t ";
|
||||
ResultSet rst = stmt.executeQuery(sql1);
|
||||
if (rst.next()) {
|
||||
totalRecord = rst.getInt(1);
|
||||
}
|
||||
rst.close();
|
||||
if ( r_call(request.getParameter("nowPage")) != null && !r_call(request.getParameter("nowPage")).equals("")) {
|
||||
nowPage = Integer.parseInt(r_call(request.getParameter("nowPage")));
|
||||
}
|
||||
|
||||
//nowPage = 93;
|
||||
//totalRecord =1240;
|
||||
int pfirst = 0; //첫페이지 번호
|
||||
int plast = 0; // 끝페이지 번호
|
||||
int plast_org = 0;
|
||||
|
||||
pfirst = ((nowPage-1)/pagePerBlock)*pagePerBlock + 1;
|
||||
plast = pfirst + pagePerBlock - 1;
|
||||
plast_org = (totalRecord-1)/numPerPage + 1;
|
||||
if(plast > plast_org){
|
||||
plast = plast_org;
|
||||
}
|
||||
int c_number=totalRecord-(nowPage-1)*numPerPage;
|
||||
|
||||
int sql_now_page = (nowPage - 1) * numPerPage;
|
||||
%>
|
||||
|
||||
<div class="col-lg-12 col-md-12" style="padding-top:15px">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover">
|
||||
<tdead>
|
||||
<tr bgcolor="efefef">
|
||||
<td width="60" align=center>No</td>
|
||||
<td align=center><span id="a5">Title</span></td>
|
||||
<td width="120" align=center><span id="a6">Writer</span></td>
|
||||
<td width="120" align=center><span id="a7">Date</span></td>
|
||||
<td width="80" align=center><span id="a8">Click</span></td>
|
||||
</tr>
|
||||
</tdead>
|
||||
<tbody>
|
||||
<%if(totalRecord==0) {%>
|
||||
<tr>
|
||||
<td width="" height="60" align="center" colspan=6 >
|
||||
No Data
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="1px" colspan=6 style="background:1px"></td></tr>
|
||||
|
||||
<%}else{%>
|
||||
<%
|
||||
sql1 = " select t.* from ( select a.* ";
|
||||
sql1 = sql1 + " from tbl_board a ";
|
||||
sql1 = sql1 + " where "+ where_t +" a.c_relation = 2021 and a.c_relation2 = 1077 and c_community_board_no = "+ s_board_no +" ) t ";
|
||||
sql1 = sql1 + " order by t.c_no desc ";
|
||||
sql1 = sql1 + " limit "+ sql_now_page +" , "+ numPerPage +" ";
|
||||
rst = stmt.executeQuery(sql1);
|
||||
while (rst.next()) {
|
||||
%>
|
||||
<tr>
|
||||
<td align=center style="height:40px"><%=c_number%></td>
|
||||
<td><a href="view.jsp?<%=para_t%>&c_post_no=<%=rst.getString("c_no")%>&nowPage=<%=nowPage%>"><%=rst.getString("c_title")%></a></td>
|
||||
<td align=center><%=rst.getString("c_name")%></td>
|
||||
<td align=center><%=rst.getString("c_date").substring(0,10)%></td>
|
||||
<td align=center><%=rst.getString("c_click")%></td>
|
||||
</tr>
|
||||
|
||||
<%
|
||||
c_number=c_number-1;
|
||||
}
|
||||
rst.close();
|
||||
%>
|
||||
<tr><td height="1px" colspan=6 style="background:1px"></td></tr>
|
||||
<%
|
||||
}%>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12" style="padding-top:10px">
|
||||
<table align=center border=0 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<%if(pfirst > 1){ %>
|
||||
<td align=center width="32" style='padding=0,4,0,4'>
|
||||
<a href="list.jsp?nowPage=1&<%=para_t%>">〈〈</a>
|
||||
</td>
|
||||
<td align=center width="32" style='padding=0,4,0,0'>
|
||||
<a href="list.jsp?nowPage=<%=pfirst-1%>&<%=para_t%>">〈</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<% for(int i=pfirst;i<plast+1;i=i+1){%>
|
||||
<td align=center width="32" style='padding=0,0,0,0' valign=top>
|
||||
<% if(i==nowPage){%>
|
||||
<font color=#4D9ACF size=3><b><%=i%>
|
||||
<%}else{%>
|
||||
<a href="list.jsp?nowPage=<%=i%>&<%=para_t%>"><font color=#787878 size=3><b><%=i%></b></a>
|
||||
<%}%>
|
||||
</td>
|
||||
<%}%>
|
||||
<%if(plast < plast_org){ %>
|
||||
<td align=center width="32" style='padding=0,4,0,4'>
|
||||
<a href="list.jsp?nowPage=<%=plast+1%>&<%=para_t%>">〉</a>
|
||||
</td>
|
||||
<td align=center width="32" style='padding=0,4,0,0'>
|
||||
<a href="list.jsp?nowPage=<%=plast_org%>&<%=para_t%>">〉〉</a>
|
||||
</td>
|
||||
<%}%>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12" style="text-align:right;padding-bottom:10px">
|
||||
<%if(my_writer == 1 ){%>
|
||||
<a href="insert.jsp?<%=para_t%>" style="width: 80px; line-height: 26px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;"><span id="a9">Insert</span></a>
|
||||
<%}%>
|
||||
</div>
|
||||
<%@include file="board_inc_bottom.jsp"%>
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%@include file="board_inc_top.jsp"%>
|
||||
|
||||
|
||||
<%
|
||||
String nowPage = r_call(request.getParameter("nowPage"));
|
||||
String c_post_no = r_call(request.getParameter("c_post_no"));
|
||||
|
||||
if(c_post_no.equals("")){
|
||||
%>
|
||||
<script>
|
||||
alert("wrong connection")
|
||||
location.href="/"
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
String sql_ok = "update tbl_board set c_click = c_click + 1 where c_no = " + c_post_no;
|
||||
stmt2.execute(sql_ok);
|
||||
|
||||
String sql1 = " select * from tbl_board where c_no = " + c_post_no;
|
||||
ResultSet rst = stmt.executeQuery(sql1);
|
||||
if (rst.next()) {
|
||||
%>
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-md-12" style=" padding-top:15px">
|
||||
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ;background:#efefef">
|
||||
Title. <b><%=rst.getString("c_title")%></b>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
||||
<div class="col-lg-4 col-md-4" >
|
||||
Name. <b><%=rst.getString("c_name")%></b>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4" style="text-align:center">
|
||||
Click <b><%=rst.getString("c_click")%></b>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4" style="text-align:right">
|
||||
Date <b><%=rst.getString("c_date").substring(0,10)%></b>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12" style="min-height:100px;border-bottom: 1px solid #ccc; padding:10px ">
|
||||
<%=rst.getString("c_content").replaceAll("\n\r","<br />")%></b>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
||||
File. <a href="/upload/board/<%=rst.getString("c_file")%>" target="_blank"><%=rst.getString("c_file")%></a></b>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12" style="text-align:right;padding-top:20px;padding-bottom:15px">
|
||||
<%if(rst.getString("c_member_no").equals(session.getAttribute("member_no") ) && my_writer == 1){%>
|
||||
<a href="edit.jsp?<%=para_t%>&c_post_no=<%=c_post_no%>" style="width: 80px; line-height: 26px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;">Edit</a>
|
||||
<a href="#none" onclick="if(confirm('¿Borrar?')){location.href='delete_ok.jsp?<%=para_t%>&c_post_no=<%=c_post_no%>'}" style="width: 80px; line-height: 26px; text-align: center;display: inline-block; background: red; border: 1px solid #555; border-radius: 5px; color: #ffffff;">Delete</a>
|
||||
<%}%>
|
||||
<a href="list.jsp?<%=para_t%>&nowPage=<%=nowPage%>" style="width: 80px; line-height: 26px; text-align: center;display: inline-block; background: #989898; border: 1px solid #555; border-radius: 5px; color: #ffffff;">List</a>
|
||||
|
||||
</div>
|
||||
<%
|
||||
}
|
||||
rst.close();
|
||||
}
|
||||
%>
|
||||
<%@include file="board_inc_bottom.jsp"%>
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
String fileName = "";
|
||||
String realFolder = "";
|
||||
String saveFolder = "/upload/chat";
|
||||
String encType = "utf-8";
|
||||
int maxSize = 50 * 1024 * 1024;
|
||||
|
||||
ServletContext scontext = getServletContext();
|
||||
ArrayList saveFiles = new ArrayList();
|
||||
ArrayList orgFiles = new ArrayList();
|
||||
realFolder = scontext.getRealPath(saveFolder);
|
||||
MultipartRequest multi = new MultipartRequest( request
|
||||
, realFolder
|
||||
, maxSize
|
||||
, encType
|
||||
, new DefaultFileRenamePolicy() );
|
||||
Enumeration files = multi.getFileNames();
|
||||
int t1 = 0;
|
||||
while( files.hasMoreElements() ){
|
||||
String name = (String)files.nextElement();
|
||||
String fName = multi.getFilesystemName( name );
|
||||
String oName = multi.getOriginalFileName( name );
|
||||
String type = multi.getContentType( name );
|
||||
File f = multi.getFile( name );
|
||||
if(fName != null && !fName.equals("")){
|
||||
t1 = t1 + 1;
|
||||
if(t1 > 1){
|
||||
fileName = fileName + "|";
|
||||
}
|
||||
fileName = fileName + fName;
|
||||
}
|
||||
}
|
||||
if(fileName == null){
|
||||
fileName = "";
|
||||
}
|
||||
|
||||
String c_presentation_no = r_call(multi.getParameter("c_presentation_no"));
|
||||
String c_content = r_call(multi.getParameter("c_content"));
|
||||
|
||||
String sql_chat = "insert into tbl_community_chat (c_community_no,c_member_no,c_member_display,c_content,c_file,c_date) values(";
|
||||
sql_chat = sql_chat + "" + c_presentation_no +","+ session.getAttribute("member_no") +",'"+ session.getAttribute("member_name") +"','"+ c_content +"','"+ fileName +"',now())";
|
||||
|
||||
stmt2.execute(sql_chat);
|
||||
%>
|
||||
<script>
|
||||
parent.document.bcb_chat.c_content.value ="";
|
||||
parent.document.bcb_chat.c_content.focus();
|
||||
parent.document.getElementById("chat_room").src="disc.jsp?c_presentation_no=<%=c_presentation_no%>";
|
||||
parent.document.getElementById("chat_room").scrollTop = parent.document.getElementById("show_me").scrollHeight
|
||||
|
||||
</script>
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,22 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
|
||||
<%
|
||||
String c_presentation_no = r_call(request.getParameter("c_presentation_no"));
|
||||
String last_no = r_call(request.getParameter("last_no"));
|
||||
|
||||
String sql_p_d = "select c_no from tbl_community_chat where c_community_no = "+ c_presentation_no + " order by c_no desc";
|
||||
ResultSet rs_p_d = stmt2.executeQuery(sql_p_d);
|
||||
if(rs_p_d.next()){
|
||||
if(!last_no.equals(rs_p_d.getString("c_no"))){
|
||||
%>
|
||||
<script>
|
||||
parent.rel();
|
||||
</script>
|
||||
<%
|
||||
}
|
||||
}
|
||||
rs_p_d.close();
|
||||
%>
|
||||
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,104 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
if(session.getAttribute("member_no") != null && !session.getAttribute("member_no").equals("")){
|
||||
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko" style="height:100%">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
||||
<link rel="shortcut icon" href="" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/css/plugins-css.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/revolution/css/settings.css" media="screen" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/typography.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/shortcodes/shortcodes.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/custom.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/responsive.css" />
|
||||
<link href="/js/cal_style.css" rel="stylesheet" type="text/css">
|
||||
|
||||
</head>
|
||||
<script>
|
||||
function my_reload(){
|
||||
window.location.reload()
|
||||
}
|
||||
</script>
|
||||
<body style="height:100%" >
|
||||
<div style="height:100%;padding-left:20px;padding-right:20px;width:100%">
|
||||
<table cellpadding=0 cellspacing=0 height="100%" width="100%">
|
||||
<tr><td valign=top >
|
||||
<table cellpadding=0 cellspacing=0 width="100%">
|
||||
<%
|
||||
String c_presentation_no = r_call(request.getParameter("c_presentation_no"));
|
||||
String sql_p_d = "select c_member_display,c_content,c_file,c_date,c_member_no,c_no from tbl_community_chat where c_community_no = "+ c_presentation_no + " order by c_no asc";
|
||||
ResultSet rs_p_d = stmt2.executeQuery(sql_p_d);
|
||||
int o_member_no = 0;
|
||||
int last_no = 0;
|
||||
while(rs_p_d.next()){
|
||||
%>
|
||||
<tr><td width=100% style="padding-top:3px">
|
||||
<table <%if(rs_p_d.getString("c_member_no").equals(session.getAttribute("member_no"))){%>align=right<%}%> cellpadding=0 cellspacing=0 style="max-width:80%">
|
||||
<%if( o_member_no != rs_p_d.getInt("c_member_no") ){%>
|
||||
<tr><td style="padding:5px<%if(rs_p_d.getString("c_member_no").equals(session.getAttribute("member_no"))){%>;text-align:right<%}%>">
|
||||
<img src="/images/icon/person.png" width="16px" alt=""> <%=rs_p_d.getString("c_member_display")%>
|
||||
</td></tr>
|
||||
<%}%>
|
||||
<tr><td bgcolor="<%if(rs_p_d.getString("c_member_no").equals(session.getAttribute("member_no"))){%>#FFFBCB<%}else{%>#ededed<%}%>" style="padding-left:15px;padding-right:15px;padding-bottom:5px<%if(rs_p_d.getString("c_member_no").equals(session.getAttribute("member_no"))){%>;text-align:right<%}%>">
|
||||
<%=rs_p_d.getString("c_content")%>
|
||||
<%if(!rs_p_d.getString("c_file").equals("")){%>
|
||||
<a href="/upload/chat/<%=rs_p_d.getString("c_file")%>" target="_blank" title="파일 받기"><img src="/images/icon/file.png" width="10px" alt=""> <font color="#ff0303"><%=rs_p_d.getString("c_file")%></font></a>
|
||||
<%}%>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
<%
|
||||
o_member_no = rs_p_d.getInt("c_member_no");
|
||||
last_no = rs_p_d.getInt("c_no");
|
||||
}
|
||||
rs_p_d.close();
|
||||
%>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td height="0" name="r" height=1 id="r" align=right>
|
||||
<input name="rr" id="rr" style="width:1px;height:0px;" >
|
||||
</tr><td>
|
||||
</table>
|
||||
</div>
|
||||
<script>
|
||||
document.getElementById("rr").focus();
|
||||
parent.document.bcb_chat.c_content.focus();
|
||||
function rel(){
|
||||
window.location.reload()
|
||||
}
|
||||
timerID2 = 6;
|
||||
function go_r(){
|
||||
document.getElementById("function_c").src="check.jsp?c_presentation_no=<%=c_presentation_no%>&last_no=<%=last_no%>"
|
||||
timerX2()
|
||||
}
|
||||
function timerX2(){
|
||||
timerID2 = setTimeout("go_r()",5000);
|
||||
}
|
||||
timerX2()
|
||||
</script>
|
||||
<iframe id="function_c" src="t1" width="0" height="0"></iframe>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<%
|
||||
|
||||
}else{
|
||||
%>
|
||||
<script>
|
||||
alert("You do not have permission.")
|
||||
self.close()
|
||||
</script>
|
||||
<%
|
||||
|
||||
}
|
||||
%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,172 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
if(session.getAttribute("member_no") != null && !session.getAttribute("member_no").equals("")){
|
||||
String c_presentation_no = r_call(request.getParameter("c_community_no"));
|
||||
String sql_p_d = "select a.* ,(select c_now from tbl_community_member where c_use = 0 and c_community_no = a.c_no and c_member_no = "+ session.getAttribute("member_no") +" ) as s_now from tbl_community a where a.c_no = "+ c_presentation_no;
|
||||
ResultSet rs_p_d = stmt2.executeQuery(sql_p_d);
|
||||
if(rs_p_d.next()){
|
||||
if(!rs_p_d.getString("c_member_no").equals(session.getAttribute("member_no")) && rs_p_d.getInt("s_now") != 1){
|
||||
%>
|
||||
<script>
|
||||
alert("You have not the Authority")
|
||||
self.close()
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko" style="height:100%">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="keywords" content="" />
|
||||
<meta name="description" content="" />
|
||||
<meta name="author" content="" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
||||
<title>KICA Platform</title>
|
||||
<link rel="shortcut icon" href="" />
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:300,300i,400,500,500i,600,700,800,900|Poppins:200,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Dosis:300,400,500,600,700,800">
|
||||
<link rel="stylesheet" href="http://fonts.googleapis.com/earlyaccess/nanumgothic.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet">
|
||||
<link rel="stylesheet" type="text/css" href="/css/plugins-css.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/revolution/css/settings.css" media="screen" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/typography.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/shortcodes/shortcodes.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/custom.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/responsive.css" />
|
||||
<link href="/js/cal_style.css" rel="stylesheet" type="text/css">
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/js/calendar.js"></script>
|
||||
<script>
|
||||
function my_reload(){
|
||||
window.location.reload()
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body style="height:100%">
|
||||
<div style="height:100%;padding-left:0px;padding-right:0px;width:100%">
|
||||
<table cellpadding=0 cellspacing=0 height="100%" width="100%">
|
||||
<tr><td height="40" style="background-image: linear-gradient(45deg, #FBF433 5%, #DB7029 30%, #C2424B);">
|
||||
<div class="col-lg-12 col-md-12" style="padding-top:8px">
|
||||
<h5 class="theme-color" style="color:#22455E;text-align:left">
|
||||
<font color="#ffffff"><img src="/images/icon/chat.png" width="24px" alt=""> <%=rs_p_d.getString("c_name")%> Chatting </font>
|
||||
</h5>
|
||||
</div>
|
||||
</td></tr>
|
||||
<tr><td height="1" bgcolor="#cdcdcd">
|
||||
<tr><td height="1" bgcolor="#ffffff">
|
||||
<tr><td height="1" bgcolor="#cdcdcd">
|
||||
<tr><td height="5px" bgcolor="#ffffff">
|
||||
</td></tr>
|
||||
<tr><td height="95%" >
|
||||
<iframe name="chat_room" id="chat_room" width="100%" height="100%" scrolling="yes" src="disc.jsp?c_presentation_no=<%=c_presentation_no%>" frameborder=0></iframe>
|
||||
</td></tr>
|
||||
<tr><td height="1" bgcolor="#cdcdcd">
|
||||
</td></tr>
|
||||
<tr><td height="60" bgcolor="#efefef" align=center>
|
||||
<script>
|
||||
function go(){
|
||||
if(document.bcb_chat.c_content.value == "" && document.bcb_chat.c_file.value == "" ){
|
||||
alert("Insert Content, or Select File. ")
|
||||
//document.bcb_chat.c_content.focus()
|
||||
}else{
|
||||
document.bcb_chat.method = "post"
|
||||
document.bcb_chat.target = "exec"
|
||||
document.bcb_chat.action = "chat_ok.jsp?c_presentation_no=<%=c_presentation_no%>"
|
||||
document.bcb_chat.submit()
|
||||
document.bcb_chat.c_content.value = ""
|
||||
document.bcb_chat.c_file.value = ""
|
||||
}
|
||||
}
|
||||
function tt_go(flag){
|
||||
document.getElementById("tbyt1").style.display = "none"
|
||||
document.getElementById("tbyt2").style.display = "none"
|
||||
document.getElementById("tbyt"+flag).style.display = "block"
|
||||
}
|
||||
</script>
|
||||
<form name="bcb_chat" onsubmit="return false;go()" encType="multipart/form-data">
|
||||
<div class="col-lg-12 col-md-12" ">
|
||||
<table id="tbyt1" cellpadding=0 cellspacing=0 height="100%" width="100%">
|
||||
<tr ><td style="padding-right:5px">
|
||||
<img src="/images/icon/chat.png" width="16px" alt="">
|
||||
</td><td style="padding-right:5px">
|
||||
<font color="#076C9B"><b>Chat</b></font>
|
||||
</td><td width="100%" >
|
||||
<input name="c_content" style="height:30px;width:100%" onKeydown="if(event.keyCode == 13) {go()};">
|
||||
</td><td >
|
||||
<a href="#none" onclick="go()" style="width: 40px; line-height: 30px; text-align: center;display: inline-block; background: #5E9ECA; border: 1px solid #ffffff;border-radius: 5px; color: #ffffff;font-weight:400;font-size: 13px;">send</a>
|
||||
</td><td style="padding-left:10px">
|
||||
<a href="#none" onclick="tt_go(2)" title="파일 전송"><img src="/images/icon/file.png" width="30px" alt=""></a>
|
||||
</td></tr>
|
||||
</table>
|
||||
<table id="tbyt2" cellpadding=0 cellspacing=0 height="100%" width="100%" style="display:none">
|
||||
<tr ><td style="padding-right:5px">
|
||||
<img src="/images/icon/file.png" width="16px" alt="">
|
||||
</td><td style="padding-right:5px">
|
||||
<font color="#FF0303"><b>file</b></font>
|
||||
</td><td width="100%">
|
||||
<input name="c_file" type="file">
|
||||
</td><td>
|
||||
<a href="#none" onclick="go()" style="width: 40px; line-height: 30px; text-align: center;display: inline-block; background: #5E9ECA; border: 1px solid #ffffff;border-radius: 5px; color: #ffffff;font-weight:400;font-size: 13px;">send</a>
|
||||
</td><td style="padding-left:10px">
|
||||
<a href="#none" onclick="tt_go(1)" title="Chat"><img src="/images/icon/chat.png" width="30px" alt=""></a>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<iframe src="" id="exec" name="exec" style="width:0px;height:0px;display:none"></iframe>
|
||||
|
||||
<script type="text/javascript" src="/js2/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="/js2/plugins-jquery.js"></script>
|
||||
<script type="text/javascript">var plugin_path = '/js2/';</script>
|
||||
<script type="text/javascript" src="/revolution2/js/jquery.themepunch.tools.min.js"></script>
|
||||
<script type="text/javascript" src="/revolution2/js/jquery.themepunch.revolution.min.js"></script>
|
||||
<script type="text/javascript" src="/revolution2/js/extensions/revolution.extension.actions.min.js"></script>
|
||||
<script type="text/javascript" src="/revolution2/js/extensions/revolution.extension.carousel.min.js"></script>
|
||||
<script type="text/javascript" src="/revolution2/js/extensions/revolution.extension.kenburn.min.js"></script>
|
||||
<script type="text/javascript" src="/revolution2/js/extensions/revolution.extension.layeranimation.min.js"></script>
|
||||
<script type="text/javascript" src="/revolution2/js/extensions/revolution.extension.migration.min.js"></script>
|
||||
<script type="text/javascript" src="/revolution2/js/extensions/revolution.extension.navigation.min.js"></script>
|
||||
<script type="text/javascript" src="/revolution2/js/extensions/revolution.extension.parallax.min.js"></script>
|
||||
<script type="text/javascript" src="/revolution2/js/extensions/revolution.extension.slideanims.min.js"></script>
|
||||
<script type="text/javascript" src="/revolution2/js/extensions/revolution.extension.video.min.js"></script>
|
||||
<!-- revolution custom -->
|
||||
<script type="text/javascript" src="/revolution2/js/revolution-custom.js"></script>
|
||||
|
||||
<!-- custom -->
|
||||
<script type="text/javascript" src="/js2/custom.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<div class="wrapper" >
|
||||
<%
|
||||
}
|
||||
}else{
|
||||
%>
|
||||
<script>
|
||||
alert("No Authority")
|
||||
self.close()
|
||||
</script>
|
||||
<%
|
||||
|
||||
}
|
||||
rs_p_d.close();
|
||||
}else{
|
||||
%>
|
||||
<script>
|
||||
alert("No Authority")
|
||||
self.close()
|
||||
</script>
|
||||
<%
|
||||
|
||||
}
|
||||
%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,446 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
login_tag = 1;
|
||||
%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
if(!c_no.equals("")){
|
||||
now_community = Integer.parseInt(c_no);
|
||||
}
|
||||
%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
<%
|
||||
String para_t = "show_no="+ show_no +"&check_no="+ check_no + "&c_relation=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
%>
|
||||
<%
|
||||
if(c_no.equals("")){
|
||||
%>
|
||||
<script>
|
||||
alert("Wrong connection")
|
||||
location.href ="/"
|
||||
</script>
|
||||
<% }else{
|
||||
String c_board_no = "";
|
||||
String master_no = "";
|
||||
int my_now = -1;
|
||||
String sql_c = "select a.* , b.c_name as m_name, b.c_id as m_id ";
|
||||
sql_c = sql_c + ", (select c_now as my_now from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) and c_member_no = "+ session.getAttribute("member_no") +" ) as my_now ";
|
||||
sql_c = sql_c + ", (select count(c_no) as m_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) ) as m_number ";
|
||||
sql_c = sql_c + ", (select count(c_no) as ready_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now = 0 ) as ready_number ";
|
||||
sql_c = sql_c + ", (select count(c_no) as real_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now = 1 ) as real_number ";
|
||||
sql_c = sql_c + " from tbl_community a ";
|
||||
sql_c = sql_c + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_c = sql_c + " where a.c_no = "+ c_no +" and a.c_use = 0 and a.c_home = "+ c_home +" ";
|
||||
ResultSet rs_c = stmt.executeQuery(sql_c);
|
||||
if (rs_c.next()) {
|
||||
master_no = rs_c.getString("c_member_no");
|
||||
if(rs_c.getString("my_now") != null){
|
||||
my_now = rs_c.getInt("my_now");
|
||||
}
|
||||
if(!master_no.equals(session.getAttribute("member_no")) && my_now == -1 ){
|
||||
%>
|
||||
<script>
|
||||
alert("You are not a member of this community")
|
||||
location.href="../view.jsp?<%=para_t%>&c_no=<%=c_no%>"
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
%>
|
||||
|
||||
<select id="language_select" onchange="setLanguage(this.value)">
|
||||
<option value="en" <%= (request.getLocale().toString().equals("en") ? "selected" : "") %>>English</option>
|
||||
<option value="es_PE" <%= (request.getLocale().toString().equals("es_PE") ? "selected" : "") %>>Spanish (Peru)</option>
|
||||
</select>
|
||||
</p>
|
||||
<form name="ss">
|
||||
<input name="c_home" value="<%=c_home%>" type="hidden">
|
||||
<input name="c_no" value="<%=c_no%>" type="hidden">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="">
|
||||
<div style="padding-bottom:10px">
|
||||
<b id="a1">◎ Community Information</b>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr><td style="width:10%;text-align:right;height:30px;padding-right:10px">
|
||||
<span id="a2">Name</span>
|
||||
</td><td style="width:90%;text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=rs_c.getString("c_name")%></b>
|
||||
</td></tr>
|
||||
<tr><td style="text-align:right;height:30px;padding-right:10px">
|
||||
<span id="a3">Target</span>
|
||||
</td><td style="\text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=rs_c.getString("c_target")%></b>
|
||||
</td></tr>
|
||||
<tr><td style="text-align:right;height:30px;padding-right:10px">
|
||||
<span id="a4">Date</span>
|
||||
</td><td style="\text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=rs_c.getString("c_date").substring(0,10)%></b>
|
||||
</td></tr>
|
||||
<tr><td style="text-align:right;height:30px;padding-right:10px">
|
||||
<span id="a5">Master</span>
|
||||
</td><td style="\text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=rs_c.getString("m_name")%></b> / <%=rs_c.getString("m_id")%>
|
||||
</td></tr>
|
||||
|
||||
</td></tr>
|
||||
<tr><td colspan=2 style="text-align:right;height:10px;padding-right:10px">
|
||||
</td></tr>
|
||||
<tr><td colspan=2 style="text-align:left;padding:20px;background:#efefef">
|
||||
<%=rs_c.getString("c_exp").replaceAll("\n","<br />")%>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:20px">
|
||||
<div style="padding-bottom:10px">
|
||||
<b id="a6">◎ Information for Members</b>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr><td colspan=2 style="text-align:left;padding:10px;background:#efefef;vertical-align:top;line-height:200%">
|
||||
<span id="a22">Number of all Members </span>: <b><%=rs_c.getInt("m_number")%></b>
|
||||
<br />
|
||||
<span id="a23">Number of regular Members </span>: <b><%=rs_c.getInt("real_number")%></b>
|
||||
<br />
|
||||
<span id="a24">Number of Members ready </span>: <b><%=rs_c.getInt("ready_number")%></b>
|
||||
<br />
|
||||
<span id="a31" style="color: red;" style="font-weight: bold;">My account :</span>
|
||||
<%if(master_no.equals(session.getAttribute("member_no"))){%>
|
||||
<span id="a32" style="color: red;" style="font-weight: bold;">Master</span>
|
||||
<%}else{%>
|
||||
<%if( my_now == 0 ){%>
|
||||
<span id="a33" style="color: red;" style="font-weight: bold;">Member ready</span>
|
||||
<%}%>
|
||||
<%if( my_now == 1 ){%>
|
||||
<span id="a34" style="color: red;" style="font-weight: bold;">Regular Member</span>
|
||||
<%}%>
|
||||
<%}%>
|
||||
|
||||
</td></tr>
|
||||
<%if(master_no.equals(session.getAttribute("member_no")) || my_now == 1){%>
|
||||
|
||||
<script>
|
||||
function go_chat(){
|
||||
window.open("chat/list.jsp?c_community_no=<%=c_no%>","community_chat","left=100,top=100,scrollbars=no,resizable=yes,width=500,height=640");
|
||||
}
|
||||
</script>
|
||||
<tr><td colspan=2 style="text-align:center;padding:10px;background:#efefef;vertical-align:top;line-height:200%">
|
||||
<a href="#none" onclick="go_chat()" style="width: 250px; line-height: 24px; text-align: center;display: inline-block; background : #DEF1FE; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a20">Chatting with all regular Members</span></a>
|
||||
</td></tr>
|
||||
<%}%>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:20px">
|
||||
<div style="padding-bottom:10px">
|
||||
<b id="a7">◎ Community boards</b>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr><td colspan=2 style="text-align:left;padding:10px;background:#efefef;vertical-align:top;line-height:200%">
|
||||
|
||||
|
||||
<%
|
||||
String sql_b = "select a.* ";
|
||||
sql_b = sql_b + " ,(select count(c_no) as p_number from tbl_board where c_relation = 2021 and c_relation2 = 1077 and c_use = 0 and c_community_board_no = a.c_no ) as p_number ";
|
||||
sql_b = sql_b + " ,(select count(c_no) as my_p_number from tbl_board where c_relation = 2021 and c_relation2 = 1077 and c_use = 0 and c_community_board_no = a.c_no and c_member_no = "+ session.getAttribute("member_no") +" ) as my_p_number ";
|
||||
sql_b = sql_b + " from tbl_community_board a where a.c_community_no = "+ c_no +" and a.c_use = 0 and a.c_view = 0 order by a.c_order asc ";
|
||||
ResultSet rs_b = stmt.executeQuery(sql_b);
|
||||
int b_no = 0;
|
||||
while (rs_b.next()) {
|
||||
b_no = b_no + 1;
|
||||
%>
|
||||
<%if(b_no > 1){
|
||||
c_board_no = c_board_no + ",";
|
||||
%>
|
||||
<br />
|
||||
<%}
|
||||
c_board_no = c_board_no + rs_b.getInt("c_no");
|
||||
%>
|
||||
<a href="board/list.jsp?<%=para_t%>&c_no=<%=c_no%>&c_board_no=<%=rs_b.getInt("c_no")%>"><b><%=rs_b.getString("c_name")%></b></a>
|
||||
/
|
||||
<%if(rs_b.getInt("c_type") == 0){%>
|
||||
<span id="a25">Writer</span> : <span id="a26" style="font-weight: bold;">All Members</span>
|
||||
<%}%>
|
||||
<%if(rs_b.getInt("c_type") == 1){%>
|
||||
<span id="a29">Writer</span> : <span id="a30" style="font-weight: bold;">Master</span>
|
||||
<%}%>
|
||||
/ <span id="a27"> Number of publications</span> : <b><%=rs_b.getInt("p_number")%></b>
|
||||
/ <span id="a28">Number of my posts</span> : <b><%=rs_b.getInt("my_p_number")%></b>
|
||||
|
||||
<a href="board/list.jsp?<%=para_t%>&c_no=<%=c_no%>&c_board_no=<%=rs_b.getInt("c_no")%>" style="width: 120px; line-height: 14px; text-align: center;display: inline-block; background : #DEF1FE; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a21">Go to this board</span></a>
|
||||
|
||||
<%}
|
||||
rs_b.close();
|
||||
%>
|
||||
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:20px">
|
||||
<div style="padding-bottom:10px">
|
||||
<b>◎</b> <span id="a8" style="color: red;"> <b>My posts</b></span> <span id="a9" style="font-weight: bold;">in this community</span>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td style="text-align:center;padding:5px;background:#efefef;">
|
||||
<span id="a12">Board Name</span>
|
||||
</td>
|
||||
<td style="text-align:center;padding:5px;background:#efefef;">
|
||||
<span id="a13">Title</span>
|
||||
</td>
|
||||
<td style="text-align:center;padding:5px;background:#efefef;">
|
||||
<span id="a14">Writer</span>
|
||||
</td>
|
||||
<td style="text-align:center;padding:5px;background:#efefef;">
|
||||
<span id="a15">Date</span>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
if(!c_board_no.equals("")){
|
||||
String sql_p = "select a.*, b.c_name as board_name from tbl_board a ";
|
||||
sql_p = sql_p + " inner join tbl_community_board b on b.c_no = a.c_community_board_no and b.c_use = 0 and b.c_view = 0 ";
|
||||
sql_p = sql_p + " where a.c_relation = 2021 and a.c_relation2 = 1077 and a.c_community_board_no in ( "+ c_board_no +" ) ";
|
||||
sql_p = sql_p + " and a.c_use = 0 and a.c_member_no = "+ session.getAttribute("member_no") +" order by c_no desc limit 5 ";
|
||||
ResultSet rs_p = stmt.executeQuery(sql_p);
|
||||
while (rs_p.next()) {
|
||||
%>
|
||||
<tr>
|
||||
<td style="text-align:center;padding:10px;border-bottom:1px solid #efefef;max-width:120px">
|
||||
<a href="board/view.jsp?<%=para_t%>&c_no=<%=c_no%>&c_board_no=<%=rs_p.getInt("c_community_board_no")%>&c_post_no=<%=rs_p.getInt("c_no")%>"><%=rs_p.getString("board_name")%></a>
|
||||
</td>
|
||||
<td style="text-align:left;padding:10px;border-bottom:1px solid #efefef">
|
||||
<a href="board/view.jsp?<%=para_t%>&c_no=<%=c_no%>&c_board_no=<%=rs_p.getInt("c_community_board_no")%>&c_post_no=<%=rs_p.getInt("c_no")%>"><%=rs_p.getString("c_title")%></a>
|
||||
</td>
|
||||
<td style="text-align:center;padding:10px;border-bottom:1px solid #efefef;max-width:100px">
|
||||
<a href="board/view.jsp?<%=para_t%>&c_no=<%=c_no%>&c_board_no=<%=rs_p.getInt("c_community_board_no")%>&c_post_no=<%=rs_p.getInt("c_no")%>"><%=rs_p.getString("c_name")%></a>
|
||||
</td>
|
||||
<td style="text-align:center;padding:10px;border-bottom:1px solid #efefef;max-width:80px">
|
||||
<a href="board/view.jsp?<%=para_t%>&c_no=<%=c_no%>&c_board_no=<%=rs_p.getInt("c_community_board_no")%>&c_post_no=<%=rs_p.getInt("c_no")%>"><%=rs_p.getString("c_date").substring(0,10)%></a>
|
||||
</td>
|
||||
</tr>
|
||||
<% }
|
||||
rs_p.close();
|
||||
}
|
||||
%>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:20px">
|
||||
<div style="padding-bottom:10px">
|
||||
<b>◎</b> <span id="a10" style="color: red;"> <b>My post</b></span> <span id="a11" style="font-weight: bold;"> in this community</span>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td style="text-align:center;padding:5px;background:#efefef;">
|
||||
<span id="a16">Board Name</span>
|
||||
</td>
|
||||
<td style="text-align:center;padding:5px;background:#efefef;">
|
||||
<span id="a17">Title</span>
|
||||
</td>
|
||||
<td style="text-align:center;padding:5px;background:#efefef;">
|
||||
<span id="a18">Writer</span>
|
||||
</td>
|
||||
<td style="text-align:center;padding:5px;background:#efefef;">
|
||||
<span id="a19">Date</span>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
if(!c_board_no.equals("")){
|
||||
String sql_p = "select a.*, b.c_name as board_name from tbl_board a ";
|
||||
sql_p = sql_p + " inner join tbl_community_board b on b.c_no = a.c_community_board_no and b.c_use = 0 and b.c_view = 0 ";
|
||||
sql_p = sql_p + " where a.c_relation = 2021 and a.c_relation2 = 1077 and a.c_community_board_no in ( "+ c_board_no +" ) ";
|
||||
sql_p = sql_p + " and a.c_use = 0 order by c_no desc limit 10 ";
|
||||
ResultSet rs_p = stmt.executeQuery(sql_p);
|
||||
while (rs_p.next()) {
|
||||
%>
|
||||
<tr>
|
||||
<td style="text-align:center;padding:10px;border-bottom:1px solid #efefef;max-width:120px">
|
||||
<a href="board/view.jsp?<%=para_t%>&c_no=<%=c_no%>&c_board_no=<%=rs_p.getInt("c_community_board_no")%>&c_post_no=<%=rs_p.getInt("c_no")%>"><%=rs_p.getString("board_name")%></a>
|
||||
</td>
|
||||
<td style="text-align:left;padding:10px;border-bottom:1px solid #efefef">
|
||||
<a href="board/view.jsp?<%=para_t%>&c_no=<%=c_no%>&c_board_no=<%=rs_p.getInt("c_community_board_no")%>&c_post_no=<%=rs_p.getInt("c_no")%>"><%=rs_p.getString("c_title")%></a>
|
||||
</td>
|
||||
<td style="text-align:center;padding:10px;border-bottom:1px solid #efefef;max-width:100px">
|
||||
<a href="board/view.jsp?<%=para_t%>&c_no=<%=c_no%>&c_board_no=<%=rs_p.getInt("c_community_board_no")%>&c_post_no=<%=rs_p.getInt("c_no")%>"><%=rs_p.getString("c_name")%></a>
|
||||
</td>
|
||||
<td style="text-align:center;padding:10px;border-bottom:1px solid #efefef;max-width:80px">
|
||||
<a href="board/view.jsp?<%=para_t%>&c_no=<%=c_no%>&c_board_no=<%=rs_p.getInt("c_community_board_no")%>&c_post_no=<%=rs_p.getInt("c_no")%>"><%=rs_p.getString("c_date").substring(0,10)%></a>
|
||||
</td>
|
||||
</tr>
|
||||
<% }
|
||||
rs_p.close();
|
||||
}
|
||||
%>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<iframe name="exec" id="exec" width="0px" height="0px"></iframe>
|
||||
<%
|
||||
}
|
||||
}else{
|
||||
%>
|
||||
<script>
|
||||
alert("No community")
|
||||
location.href="/"
|
||||
</script>
|
||||
<%
|
||||
}
|
||||
rs_c.close();
|
||||
}%>
|
||||
|
||||
|
||||
<script>
|
||||
// 다국어 처리를 위한 i18n 객체
|
||||
var i18n = {
|
||||
en: {
|
||||
a1: "◎ Community Information",
|
||||
a2: "Name",
|
||||
a3: "Target",
|
||||
a4: "Date",
|
||||
a5: "Master",
|
||||
a6: "◎ Information for Members",
|
||||
a7: "◎ Community boards",
|
||||
a8: "My posts",
|
||||
a9: "in this community",
|
||||
a10: "My post",
|
||||
a11: "in this community",
|
||||
a12: "Board Name",
|
||||
a13: "Title",
|
||||
a14: "Writer",
|
||||
a15: "Date",
|
||||
a16: "Board Name",
|
||||
a17: "Title",
|
||||
a18: "Writer",
|
||||
a19: "Date",
|
||||
a20: "Chatting with all regular Members",
|
||||
a21: "Go to this board",
|
||||
a22: "Number of all Members",
|
||||
a23: "Number of regular Members",
|
||||
a24: "Number of Members ready",
|
||||
a25: "Writer",
|
||||
a26: "All Members",
|
||||
|
||||
a27: "Number of publications",
|
||||
a28: "Number of my posts",
|
||||
a29: "Writer",
|
||||
|
||||
a30: "Master",
|
||||
a31: "My account :",
|
||||
a32: "Master",
|
||||
a33: "Member ready",
|
||||
a34: "Regular Member"
|
||||
},
|
||||
es_PE: {
|
||||
a1: "◎ Información de la comunidad",
|
||||
a2: "Nombre",
|
||||
a3: "Objetivo",
|
||||
a4: "Fecha",
|
||||
a5: "Maestro",
|
||||
a6: "◎ Información para miembros",
|
||||
a7: "◎ Tableros comunitarios",
|
||||
a8: "Mis publicaciones",
|
||||
a9: "en esta comunidad",
|
||||
a10: "Mi publicación",
|
||||
a11: "en esta comunidad",
|
||||
a12: "Nombre del tablero",
|
||||
a13: "Título",
|
||||
a14: "Escritor",
|
||||
a15: "Fecha",
|
||||
a16: "Nombre del tablero",
|
||||
a17: "Título",
|
||||
a18: "Escritor",
|
||||
a19: "Fecha",
|
||||
a20: "Chateando con todos los miembros regulares",
|
||||
a21: "Ir a este tablero",
|
||||
a22: "Número de todos los miembros",
|
||||
a23: "Número de Miembros regulares",
|
||||
a24: "Número de miembros listos",
|
||||
a25: "Escritor",
|
||||
a26: "Todos los miembros",
|
||||
|
||||
a27: "Número de publicaciones",
|
||||
a28: "Número de mis publicaciones",
|
||||
a29: "Escritor",
|
||||
|
||||
a30: "Maestro",
|
||||
a31: "Mi cuenta :",
|
||||
a32: "Maestro",
|
||||
a33: "Miembro listo",
|
||||
a34: "Miembro regular"
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
// 선택된 언어에 따라 다국어 텍스트 설정
|
||||
function setLanguage(lang) {
|
||||
var langData = i18n[lang];
|
||||
document.getElementById("a1").innerText = langData.a1;
|
||||
document.getElementById("a2").innerText = langData.a2;
|
||||
document.getElementById("a3").innerText = langData.a3;
|
||||
document.getElementById("a4").innerText = langData.a4;
|
||||
document.getElementById("a5").innerText = langData.a5;
|
||||
document.getElementById("a6").innerText = langData.a6;
|
||||
document.getElementById("a7").innerText = langData.a7;
|
||||
document.getElementById("a8").innerText = langData.a8;
|
||||
document.getElementById("a9").innerText = langData.a9;
|
||||
document.getElementById("a10").innerText = langData.a10;
|
||||
document.getElementById("a11").innerText = langData.a11;
|
||||
|
||||
document.getElementById("a12").innerText = langData.a12;
|
||||
document.getElementById("a13").innerText = langData.a13;
|
||||
document.getElementById("a14").innerText = langData.a14;
|
||||
document.getElementById("a15").innerText = langData.a15;
|
||||
|
||||
document.getElementById("a16").innerText = langData.a16;
|
||||
document.getElementById("a17").innerText = langData.a17;
|
||||
document.getElementById("a18").innerText = langData.a18;
|
||||
document.getElementById("a19").innerText = langData.a19;
|
||||
document.getElementById("a20").innerText = langData.a20;
|
||||
document.getElementById("a21").innerText = langData.a21;
|
||||
document.getElementById("a22").innerText = langData.a22;
|
||||
document.getElementById("a23").innerText = langData.a23;
|
||||
document.getElementById("a24").innerText = langData.a24;
|
||||
document.getElementById("a25").innerText = langData.a25;
|
||||
|
||||
document.getElementById("a26").innerText = langData.a26;
|
||||
document.getElementById("a27").innerText = langData.a27;
|
||||
document.getElementById("a28").innerText = langData.a28;
|
||||
document.getElementById("a29").innerText = langData.a29;
|
||||
document.getElementById("a30").innerText = langData.a30;
|
||||
document.getElementById("a31").innerText = langData.a31;
|
||||
document.getElementById("a32").innerText = langData.a32;
|
||||
document.getElementById("a33").innerText = langData.a33;
|
||||
document.getElementById("a34").innerText = langData.a34;
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
setLanguage('<%= request.getLocale().toString() %>');
|
||||
</script>
|
||||
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,38 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
|
||||
String sql_c = "select a.* , b.c_name as m_name, b.c_id as m_id ";
|
||||
sql_c = sql_c + ", (select count(c_no) as m_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) ) as m_number ";
|
||||
sql_c = sql_c + " from tbl_community a ";
|
||||
sql_c = sql_c + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_c = sql_c + " where a.c_no = "+ c_no +" and a.c_use = 0 and a.c_home = "+ c_home +" and c_member_no = "+ session.getAttribute("member_no") +" ";
|
||||
|
||||
ResultSet rs_c = stmt.executeQuery(sql_c);
|
||||
if (rs_c.next()) {
|
||||
String sql_in = "update tbl_community set ";
|
||||
sql_in = sql_in + " c_use = 1 ";
|
||||
sql_in = sql_in + " where c_no = " + c_no + " ";
|
||||
stmt2.execute(sql_in);
|
||||
}
|
||||
rs_c.close();
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("This Community stopped")
|
||||
parent.location.href="list.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>";
|
||||
</script>
|
||||
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,40 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
String c_master_no = r_call(request.getParameter("c_master_no"));
|
||||
String c_board_no = r_call(request.getParameter("c_board_no"));
|
||||
String c_view = r_call(request.getParameter("c_view"));
|
||||
|
||||
String sql_c = "select a.* , b.c_name as m_name, b.c_id as m_id ";
|
||||
sql_c = sql_c + ", (select count(c_no) as m_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) ) as m_number ";
|
||||
sql_c = sql_c + " from tbl_community a ";
|
||||
sql_c = sql_c + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_c = sql_c + " where a.c_no = "+ c_no +" and a.c_use = 0 and a.c_home = "+ c_home +" and c_member_no = "+ session.getAttribute("member_no") +" ";
|
||||
ResultSet rs_c = stmt.executeQuery(sql_c);
|
||||
if (rs_c.next()) {
|
||||
String sql_in = "update tbl_community_board set ";
|
||||
sql_in = sql_in + " c_use = 1 ";
|
||||
sql_in = sql_in + " where c_no = " + c_board_no + " ";
|
||||
stmt2.execute(sql_in);
|
||||
}
|
||||
rs_c.close();
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Delete ok")
|
||||
parent.location.href="edit.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>";
|
||||
</script>
|
||||
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,39 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
String c_member_no = r_call(request.getParameter("c_member_no"));
|
||||
|
||||
String sql_c = "select a.* , b.c_name as m_name, b.c_id as m_id ";
|
||||
sql_c = sql_c + ", (select count(c_no) as m_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) ) as m_number ";
|
||||
sql_c = sql_c + " from tbl_community a ";
|
||||
sql_c = sql_c + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_c = sql_c + " where a.c_no = "+ c_no +" and a.c_use = 0 and a.c_home = "+ c_home +" and c_member_no = "+ session.getAttribute("member_no") +" ";
|
||||
|
||||
ResultSet rs_c = stmt.executeQuery(sql_c);
|
||||
if (rs_c.next()) {
|
||||
String sql_in = "update tbl_community_member set ";
|
||||
sql_in = sql_in + " c_use = 1 ";
|
||||
sql_in = sql_in + " where c_community_no = " + c_no + " and c_member_no = " + c_member_no;
|
||||
stmt2.execute(sql_in);
|
||||
}
|
||||
rs_c.close();
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Delete ok")
|
||||
parent.location.href="edit.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>";
|
||||
</script>
|
||||
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,39 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
String c_member_no = r_call(request.getParameter("c_member_no"));
|
||||
|
||||
String sql_c = "select a.* , b.c_name as m_name, b.c_id as m_id ";
|
||||
sql_c = sql_c + ", (select count(c_no) as m_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) ) as m_number ";
|
||||
sql_c = sql_c + " from tbl_community a ";
|
||||
sql_c = sql_c + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_c = sql_c + " where a.c_no = "+ c_no +" and a.c_use = 0 and a.c_home = "+ c_home +" and c_member_no = "+ session.getAttribute("member_no") +" ";
|
||||
|
||||
ResultSet rs_c = stmt.executeQuery(sql_c);
|
||||
if (rs_c.next()) {
|
||||
String sql_in = "update tbl_community_member set ";
|
||||
sql_in = sql_in + " c_use = 1 ";
|
||||
sql_in = sql_in + " where c_community_no = " + c_no + " and c_member_no = " + c_member_no;
|
||||
stmt2.execute(sql_in);
|
||||
}
|
||||
rs_c.close();
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Rejection ok")
|
||||
parent.location.href="edit.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>";
|
||||
</script>
|
||||
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,426 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
login_tag = 1;
|
||||
%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
<%
|
||||
String para_t = "show_no="+ show_no +"&check_no="+ check_no + "&c_relation=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
%>
|
||||
<script>
|
||||
function go(){
|
||||
if(document.ss.c_name.value == ""){
|
||||
alert("Insert Community Name")
|
||||
document.ss.c_name.focus()
|
||||
}else if(document.ss.c_target.value == ""){
|
||||
alert("Insert Community Target")
|
||||
document.ss.c_target.focus()
|
||||
}else if(document.ss.c_exp.value == ""){
|
||||
alert("Insert Community Explain")
|
||||
document.ss.c_exp.focus()
|
||||
}else{
|
||||
document.ss.action = "edit_ok.jsp?<%=para_t%>"
|
||||
document.ss.method = "post"
|
||||
document.ss.target = "exec"
|
||||
document.ss.submit()
|
||||
}
|
||||
}
|
||||
|
||||
function to_master(){
|
||||
if(document.ss.to_master.value == ""){
|
||||
alert("Please enter the ID to receive master privileges")
|
||||
document.ss.to_master.focus()
|
||||
}else{
|
||||
if(confirm("If you transfer master privileges, you will lose all privileges in that community.\nAre you sure you want to continue?")){
|
||||
document.ss.target = "exec"
|
||||
document.ss.method = "post"
|
||||
document.ss.action = "to_master.jsp?<%=para_t%>"
|
||||
document.ss.submit()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<select id="language_select" onchange="setLanguage(this.value)">
|
||||
<option value="en" <%= (request.getLocale().toString().equals("en") ? "selected" : "") %>>English</option>
|
||||
<option value="es_PE" <%= (request.getLocale().toString().equals("es_PE") ? "selected" : "") %>>Spanish (Peru)</option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
|
||||
<form name="ss">
|
||||
<input name="c_home" value="<%=c_home%>" type="hidden">
|
||||
<input name="c_no" value="<%=c_no%>" type="hidden">
|
||||
<div class="row">
|
||||
<%
|
||||
String sql_c = "select a.* , b.c_name as m_name, b.c_id as m_id ";
|
||||
sql_c = sql_c + ", (select count(c_no) as m_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) ) as m_number ";
|
||||
sql_c = sql_c + " from tbl_community a ";
|
||||
sql_c = sql_c + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_c = sql_c + " where a.c_no = "+ c_no +" and a.c_use = 0 and a.c_home = "+ c_home +" and c_member_no = "+ session.getAttribute("member_no") +" ";
|
||||
ResultSet rs_c = stmt.executeQuery(sql_c);
|
||||
if (rs_c.next()) {
|
||||
%>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="">
|
||||
<div style="padding-bottom:10px">
|
||||
<b id="a1">◎ Management Community information</b>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr><td style="width:20%;text-align:center;height:30px">
|
||||
<font color=red>*</font><span id="a2">Community</span><b id="a5">Name</b>
|
||||
</td><td style="width:80%;text-align:left;padding:10px">
|
||||
<input name="c_name" value="<%=rs_c.getString("c_name")%>" style="width:80%;height:30px;border:solid 1px #cdcdcd" maxlength="300">
|
||||
</td></tr>
|
||||
<tr><td style="text-align:center;height:30px">
|
||||
<font color=red>*</font><span id="a3">Community</span> <b id="a6"> Target</b>
|
||||
</td><td style="text-align:left;padding:10px">
|
||||
<input name="c_target" value="<%=rs_c.getString("c_target")%>" style="width:100%;height:30px;border:solid 1px #cdcdcd" maxlength="300">
|
||||
</td></tr>
|
||||
<tr><td style="text-align:center;height:30px;vertical-align:top;padding-top:20px">
|
||||
<font color=red>*</font><span id="a4">Community </span><b id="a7"> Explain</b>
|
||||
</td><td style="text-align:left;padding:10px">
|
||||
<textarea name="c_exp" style="width:100%;height:300px;border:solid 1px #cdcdcd"><%=rs_c.getString("c_exp")%></textarea>
|
||||
</td></tr>
|
||||
</table>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="center" style="padding-bottom:10px;padding-top:10px;font-weight:bold;">
|
||||
<a href="#none" onclick="go()" style="width: 250px; line-height: 26px; text-align: center;display: inline-block; background: #F5E0CB; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a22">Edit Community Info.</span></a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:30px">
|
||||
<div style="padding-bottom:10px">
|
||||
<b id="a8">◎ Management for community boards</b>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td style="text-align:center;padding:5px;background:#efefef;">
|
||||
<span id="a9">Board Name</span>
|
||||
</td>
|
||||
<td style="text-align:center;padding:5px;background:#efefef;max-width:100px">
|
||||
<span id="a10">Writing authority</span>
|
||||
</td>
|
||||
<td style="text-align:center;padding:5px;background:#efefef;max-width:60px">
|
||||
<span id="a11">Oder</span>
|
||||
</td>
|
||||
<td style="text-align:center;padding:5px;background:#efefef;max-width:60px">
|
||||
<span id="a12">Use</span>
|
||||
</td>
|
||||
<td style="text-align:center;padding:5px;background:#efefef;max-width:60px">
|
||||
<span id="a13">Edit</span>
|
||||
</td>
|
||||
<td style="text-align:center;padding:5px;background:#efefef;max-width:60px">
|
||||
<span id="a14">Del</span>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
String sql_p = " select * from tbl_community_board ";
|
||||
sql_p = sql_p + " where c_community_no = "+ c_no +" and c_use = 0 order by c_order asc ";
|
||||
ResultSet rs_p = stmt.executeQuery(sql_p);
|
||||
int op_order = 0;
|
||||
int old_order = 0;
|
||||
int old_no = 0;
|
||||
while (rs_p.next()) {
|
||||
op_order = op_order + 1;
|
||||
%>
|
||||
<tr>
|
||||
<td style="text-align:center;padding:10px;border-bottom:1px solid #efefef">
|
||||
<%=rs_p.getString("c_name")%>
|
||||
</td>
|
||||
<td style="text-align:center;padding:10px;border-bottom:1px solid #efefef">
|
||||
<%if(rs_p.getInt("c_type") == 0){%>
|
||||
Members
|
||||
<%}%>
|
||||
<%if(rs_p.getInt("c_type") == 1){%>
|
||||
Master
|
||||
<%}%>
|
||||
</td>
|
||||
<td style="text-align:center;padding:10px;border-bottom:1px solid #efefef">
|
||||
<%if(op_order > 1){%>
|
||||
<a title="Up!" href="change_order.jsp?<%=para_t%>&c_home=<%=c_home%>&c_no=<%=c_no%>&c_view=1&c_board_no=<%=rs_p.getInt("c_no")%>&c_order=<%=rs_p.getInt("C_order")%>&old_no=<%=old_no%>&old_order=<%=old_order%>" target="exec">▲</a>
|
||||
<%}%>
|
||||
</td>
|
||||
<td style="text-align:center;padding:10px;border-bottom:1px solid #efefef">
|
||||
<%if(rs_p.getInt("c_view")== 0 ){%>
|
||||
<a title="Change" href="change_view.jsp?<%=para_t%>&c_home=<%=c_home%>&c_no=<%=c_no%>&c_view=1&c_board_no=<%=rs_p.getInt("c_no")%>" target="exec">O</a>
|
||||
<%}else{%>
|
||||
<a title="Change" href="change_view.jsp?<%=para_t%>&c_home=<%=c_home%>&c_no=<%=c_no%>&c_view=0&c_board_no=<%=rs_p.getInt("c_no")%>" target="exec">X</a>
|
||||
<%}%>
|
||||
</td>
|
||||
<td style="text-align:center;padding:10px;border-bottom:1px solid #efefef">
|
||||
<a href="edit_board.jsp?<%=para_t%>&c_no=<%=c_no%>&c_board_no=<%=rs_p.getInt("c_no")%>">[Edit]</a>
|
||||
</td>
|
||||
<td style="text-align:center;padding:10px;border-bottom:1px solid #efefef">
|
||||
<a href="#none" title="Delete" onclick="if(confirm('If you delete this board, \nAll data will be deleted on this board. \nDelete now, really? ')){document.getElementById('exec').src='delete_board.jsp?<%=para_t%>&c_home=<%=c_home%>&c_no=<%=c_no%>&c_board_no=<%=rs_p.getInt("c_no")%>'}" >[Del]</a>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
old_order = rs_p.getInt("c_order");
|
||||
old_no = rs_p.getInt("c_no");
|
||||
}
|
||||
rs_p.close();
|
||||
%>
|
||||
</table>
|
||||
<table width="100%" style="">
|
||||
<tr>
|
||||
<td align="center" style="padding-bottom:10px;padding-top:20px;font-weight:bold;">
|
||||
<a href="insert_board.jsp?<%=para_t%>&c_no=<%=c_no%>" style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #F5E0CB; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a23">Insert Board</span></a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:30px">
|
||||
<div style="padding-bottom:10px">
|
||||
<b id="a15">◎ Member List</b>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr><td colspan=2 style="text-align:left;padding:10px;background:#efefef;vertical-align:top">
|
||||
<div style="height:150px;overflow:auto;">
|
||||
|
||||
<%
|
||||
String sql_m = " select b.c_no, b.c_name, b.c_id, a.c_now , a.c_date, a.c_content ";
|
||||
sql_m = sql_m + " from tbl_community_member a ";
|
||||
sql_m = sql_m + " inner join tbl_member b on b.c_no = a.c_member_no and b.c_use = 0 ";
|
||||
sql_m = sql_m + " where a.c_community_no = "+ c_no + " and a.c_use = 0 and a.c_now = 1 ";
|
||||
sql_m = sql_m + " order by a.c_now desc ";
|
||||
|
||||
ResultSet rs_m = stmt.executeQuery(sql_m);
|
||||
int t1 = 0;
|
||||
while (rs_m.next()) {
|
||||
t1 = t1 + 1;
|
||||
%>
|
||||
<b><%=rs_m.getString("c_name")%></b> / <%=rs_m.getString("c_id")%>
|
||||
/ <%=rs_m.getString("c_date").substring(0,10)%>
|
||||
|
||||
<a href="#none" onclick="if(confirm('DElete Este Member, de verdad?')){document.getElementById('exec').src='delete_member.jsp?<%=para_t%>&c_home=<%=c_home%>&c_no=<%=c_no%>&c_member_no=<%=rs_m.getInt("c_no")%>'}" style="width: 220px; line-height: 20px; text-align: center;display: inline-block; background : #E76F63; border: 1px solid #555; border-radius: 5px; color: #ffffff;"><span id="a26">Retirada de esta Community</span></a>
|
||||
<div style="padding-left:20px;padding-bottom:10px;color:#898989">
|
||||
<i><%=rs_m.getString("c_content")%></i>
|
||||
</div>
|
||||
<%}
|
||||
rs_m.close();
|
||||
%>
|
||||
<%if(t1 == 0){%>
|
||||
<center>
|
||||
<br /><br /><br /><br />
|
||||
There is no Member.
|
||||
</center>
|
||||
<%}%>
|
||||
</div>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:30px">
|
||||
<div style="padding-bottom:10px">
|
||||
<b id="a16">◎ Ready to join</b>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr><td colspan=2 style="text-align:left;padding:10px;background:#efefef;vertical-align:top">
|
||||
<div style="height:150px;overflow:auto;">
|
||||
|
||||
<%
|
||||
sql_m = " select b.c_no, b.c_name, b.c_id, a.c_now , a.c_date, a.c_content ";
|
||||
sql_m = sql_m + " from tbl_community_member a ";
|
||||
sql_m = sql_m + " inner join tbl_member b on b.c_no = a.c_member_no and b.c_use = 0 ";
|
||||
sql_m = sql_m + " where a.c_community_no = "+ c_no + " and a.c_use = 0 and a.c_now = 0 ";
|
||||
sql_m = sql_m + " order by a.c_now desc ";
|
||||
|
||||
rs_m = stmt.executeQuery(sql_m);
|
||||
t1 = 0;
|
||||
while (rs_m.next()) {
|
||||
t1 = t1 + 1;
|
||||
%>
|
||||
<b><%=rs_m.getString("c_name")%></b> / <%=rs_m.getString("c_id")%>
|
||||
/ <%=rs_m.getString("c_date").substring(0,10)%>
|
||||
|
||||
<a href="#none" onclick="if(confirm('Approval of this Member?')){document.getElementById('exec').src='approval_member.jsp?<%=para_t%>&c_home=<%=c_home%>&c_no=<%=c_no%>&c_member_no=<%=rs_m.getInt("c_no")%>'}" style="width: 120px; line-height: 20px; text-align: center;display: inline-block; background : #0277D0; border: 1px solid #555; border-radius: 5px; color: #ffffff;"><span id="a24">Approval</span></a>
|
||||
|
||||
<a href="#none" onclick="if(confirm('Disapproval of this Member, really?')){document.getElementById('exec').src='disapproval_member.jsp?<%=para_t%>&c_home=<%=c_home%>&c_no=<%=c_no%>&c_member_no=<%=rs_m.getInt("c_no")%>'}" style="width: 120px; line-height: 20px; text-align: center;display: inline-block; background : #E76F63; border: 1px solid #555; border-radius: 5px; color: #ffffff;"><span id="a25">Disapproval</span></a>
|
||||
|
||||
<div style="padding-left:20px;padding-bottom:10px;color:#898989">
|
||||
<i><%=rs_m.getString("c_content")%></i>
|
||||
</div>
|
||||
<%}
|
||||
rs_m.close();
|
||||
%>
|
||||
<%if(t1 == 0){%>
|
||||
<center>
|
||||
<br /><br /><br /><br />
|
||||
There is no Member waiting.
|
||||
</center>
|
||||
<%}%>
|
||||
</div>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:30px">
|
||||
<div style="padding-bottom:10px">
|
||||
<b id="a17">◎ Transferring Master Privileges</b>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr><td colspan=2 style="text-align:left;padding:10px;background:#efefef;vertical-align:top">
|
||||
<span id="a18"> ID(Email)</span> <input name="to_master" style="height:24px;width:200px">
|
||||
<a href="#none" onclick="to_master()" style="width: 120px; line-height: 20px; text-align: center;display: inline-block; background : #E76F63; border: 1px solid #555; border-radius: 5px; color: #ffffff;"><span id="a19">Transferring</span></a>
|
||||
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:30px">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="center" style="padding-bottom:10px;padding-top:10px;font-weight:bold;">
|
||||
<a href="#none" onclick="if(confirm('Stop this Community, really?')){document.getElementById('exec').src='delete.jsp?<%=para_t%>&c_home=<%=c_home%>&c_no=<%=c_no%>'}" style="width: 160px; line-height: 26px; text-align: center;display: inline-block; background : #E76F63; border: 1px solid #555; border-radius: 5px; color: #ffffff;"><span id="a20">Stop this Community</span></a>
|
||||
|
||||
<a href="list.jsp?<%=para_t%>" style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #ededed; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a21">Cancel</span></a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<%}else{%>
|
||||
<script>
|
||||
alert("You are not Master of this Community")
|
||||
location.href="list.jsp?<%=para_t%>"
|
||||
</script>
|
||||
<%}
|
||||
rs_c.close();
|
||||
%>
|
||||
</div>
|
||||
</form>
|
||||
<iframe name="exec" id="exec" width="0px" height="0px"></iframe>
|
||||
|
||||
|
||||
<script>
|
||||
// 다국어 처리를 위한 i18n 객체
|
||||
var i18n = {
|
||||
en: {
|
||||
a1: "◎ Management Community information",
|
||||
a2: "Community",
|
||||
a3: "Community",
|
||||
a4: "Community",
|
||||
a5: "Name",
|
||||
a6: "Target",
|
||||
a7: "Explain",
|
||||
a8: "◎ Management for community boards",
|
||||
a9: "Board Name",
|
||||
a10: "Writing authority",
|
||||
a11: "Oder",
|
||||
a12: "Use",
|
||||
a13: "Edit",
|
||||
a14: "Del",
|
||||
a15: "◎ Member List",
|
||||
a16: "◎ Ready to join",
|
||||
a17: "◎ Transferring Master Privileges",
|
||||
a18: "ID(Email)",
|
||||
a19: "Transferring",
|
||||
a20: "Stop this Community",
|
||||
a21: "Cancel",
|
||||
a22: "Edit Community Info.",
|
||||
a23: "Insert Board",
|
||||
a24: "Approval",
|
||||
a25: "Disapproval",
|
||||
a26: "Retirada de esta Community"
|
||||
},
|
||||
es_PE: {
|
||||
a1: "◎ Información de la comunidad de gestión",
|
||||
a2: "Comunidad",
|
||||
a3: "Comunidad",
|
||||
a4: "Comunidad",
|
||||
a5: "Nombre",
|
||||
a6: "Objetivo",
|
||||
a7: "Explicar",
|
||||
a8: "◎ Gestión para juntas comunales",
|
||||
a9: "Nombre del tablero",
|
||||
a10: "autoridad de escritura",
|
||||
a11: "Óder",
|
||||
a12: "Usar",
|
||||
a13: "Editar",
|
||||
a14: "Supr",
|
||||
a15: "◎ Lista de miembros",
|
||||
a16: "◎ Listo para unirse",
|
||||
a17: "◎ Transferencia de privilegios de maestro",
|
||||
a18: "Identificación (correo electrónico)",
|
||||
a19: "Transfiriendo",
|
||||
a20: "Detener esta comunidad",
|
||||
a21: "Cancelar",
|
||||
a22: "Editar información de la comunidad.",
|
||||
a23: "Insertar tablero",
|
||||
a24: "Aprobación",
|
||||
a25: "Rechazo",
|
||||
a26: "Retirada de esta Comunidad"
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
// 선택된 언어에 따라 다국어 텍스트 설정
|
||||
function setLanguage(lang) {
|
||||
var langData = i18n[lang];
|
||||
document.getElementById("a1").innerText = langData.a1;
|
||||
document.getElementById("a2").innerText = langData.a2;
|
||||
document.getElementById("a3").innerText = langData.a3;
|
||||
document.getElementById("a4").innerText = langData.a4;
|
||||
document.getElementById("a5").innerText = langData.a5;
|
||||
document.getElementById("a6").innerText = langData.a6;
|
||||
document.getElementById("a7").innerText = langData.a7;
|
||||
document.getElementById("a8").innerText = langData.a8;
|
||||
document.getElementById("a9").innerText = langData.a9;
|
||||
document.getElementById("a10").innerText = langData.a10;
|
||||
document.getElementById("a11").innerText = langData.a11;
|
||||
|
||||
document.getElementById("a12").innerText = langData.a12;
|
||||
document.getElementById("a13").innerText = langData.a13;
|
||||
document.getElementById("a14").innerText = langData.a14;
|
||||
document.getElementById("a15").innerText = langData.a15;
|
||||
|
||||
document.getElementById("a16").innerText = langData.a16;
|
||||
document.getElementById("a17").innerText = langData.a17;
|
||||
document.getElementById("a18").innerText = langData.a18;
|
||||
document.getElementById("a19").innerText = langData.a19;
|
||||
document.getElementById("a20").innerText = langData.a20;
|
||||
document.getElementById("a21").innerText = langData.a21;
|
||||
document.getElementById("a22").innerText = langData.a22;
|
||||
document.getElementById("a23").innerText = langData.a23;
|
||||
document.getElementById("a24").innerText = langData.a24;
|
||||
document.getElementById("a25").innerText = langData.a25;
|
||||
document.getElementById("a26").innerText = langData.a26;
|
||||
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
setLanguage('<%= request.getLocale().toString() %>');
|
||||
</script>
|
||||
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,152 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
login_tag = 1;
|
||||
%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
<%
|
||||
String para_t = "show_no="+ show_no +"&check_no="+ check_no + "&c_relation=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
String c_board_no = r_call(request.getParameter("c_board_no"));
|
||||
if(!c_board_no.equals("")){
|
||||
%>
|
||||
<script>
|
||||
function go(){
|
||||
if(document.ss.c_name.value == ""){
|
||||
alert("Insertar nombre de tablero")
|
||||
document.ss.c_name.focus()
|
||||
}else{
|
||||
document.ss.action = "edit_board_ok.jsp?<%=para_t%>"
|
||||
document.ss.method = "post"
|
||||
document.ss.target = "exec"
|
||||
document.ss.submit()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<form name="ss">
|
||||
<input name="c_home" value="<%=c_home%>" type="hidden">
|
||||
<input name="c_no" value="<%=c_no%>" type="hidden">
|
||||
<input name="c_board_no" value="<%=c_board_no%>" type="hidden">
|
||||
<div class="row">
|
||||
<%
|
||||
String sql_c = "select a.* , b.c_name as m_name, b.c_id as m_id ";
|
||||
sql_c = sql_c + ", (select count(c_no) as m_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) ) as m_number ";
|
||||
sql_c = sql_c + " from tbl_community a ";
|
||||
sql_c = sql_c + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_c = sql_c + " where a.c_no = "+ c_no +" and a.c_use = 0 and a.c_home = "+ c_home +" and c_member_no = "+ session.getAttribute("member_no") +" ";
|
||||
ResultSet rs_c = stmt.executeQuery(sql_c);
|
||||
if (rs_c.next()) {
|
||||
%>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="">
|
||||
<div style="padding-bottom:10px">
|
||||
<b>◎ Community information</b>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr><td style="width:10%;text-align:right;height:30px;padding-right:10px">
|
||||
Name
|
||||
</td><td style="width:90%;text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=rs_c.getString("c_name")%></b>
|
||||
</td></tr>
|
||||
<tr><td style="text-align:right;height:30px;padding-right:10px">
|
||||
Target
|
||||
</td><td style="\text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=rs_c.getString("c_target")%></b>
|
||||
</td></tr>
|
||||
<tr><td style="text-align:right;height:30px;padding-right:10px">
|
||||
Date
|
||||
</td><td style="\text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=rs_c.getString("c_date").substring(0,10)%></b>
|
||||
</td></tr>
|
||||
<tr><td style="text-align:right;height:30px;padding-right:10px">
|
||||
Master
|
||||
</td><td style="\text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=rs_c.getString("m_name")%></b> / <%=rs_c.getString("m_id")%>
|
||||
</td></tr>
|
||||
|
||||
<tr><td colspan=2 style="text-align:right;height:10px;padding-right:10px">
|
||||
</td></tr>
|
||||
<tr><td colspan=2 style="text-align:left;padding:20px;background:#efefef">
|
||||
<%=rs_c.getString("c_exp").replaceAll("\n","<br />")%>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:30px">
|
||||
<div style="padding-bottom:10px">
|
||||
<b>◎ Edit Community Board</b>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<%
|
||||
String sql_b = "select * from tbl_community_board where c_no = "+ c_board_no +" and c_community_no = " + c_no;
|
||||
ResultSet rs_b = stmt.executeQuery(sql_b);
|
||||
if (rs_b.next()) {
|
||||
%>
|
||||
<table style="width:100%">
|
||||
<tr><td style="width:20%;text-align:center;height:30px">
|
||||
<font color=red>*</font>Board <b> Name</b>
|
||||
</td><td style="width:80%;text-align:left;padding:10px">
|
||||
<input name="c_name" value="<%=rs_b.getString("c_name")%>" style="width:80%;height:30px;border:solid 1px #cdcdcd" maxlength="300">
|
||||
</td></tr>
|
||||
<tr><td style="text-align:center;height:30px">
|
||||
<font color=red>*</font>Write <b> authority</b>
|
||||
</td><td style="text-align:left;padding:10px">
|
||||
<input name="c_type" value="0" type="radio" <%if(rs_b.getInt("c_type") == 0){%>checked<%}%>> Members escriben
|
||||
|
||||
|
||||
<input name="c_type" value="1" type="radio" <%if(rs_b.getInt("c_type") == 1){%>checked<%}%>> Solo escritura maestra
|
||||
</td></tr>
|
||||
<tr><td style="text-align:center;height:30px;">
|
||||
<font color=red>*</font> Board <b> Use</b>
|
||||
</td><td style="text-align:left;padding:10px">
|
||||
<input name="c_view" value="0" type="radio" <%if(rs_b.getInt("c_view") == 0){%>checked<%}%>> Use
|
||||
|
||||
|
||||
<input name="c_view" value="1" type="radio" <%if(rs_b.getInt("c_view") == 1){%>checked<%}%>> No Use
|
||||
</td></tr>
|
||||
</table>
|
||||
<%}
|
||||
rs_b.close();
|
||||
%>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:30px">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="center" style="padding-bottom:10px;padding-top:10px;font-weight:bold;">
|
||||
<a href="#none" onclick="go()" style="width: 150px; line-height: 26px; text-align: center;display: inline-block; background: #F5E0CB; border: 1px solid #555; border-radius: 5px; color: #000000;">Edit Board</a>
|
||||
|
||||
<a href="edit.jsp?<%=para_t%>&c_no=<%=c_no%>" style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #ededed; border: 1px solid #555; border-radius: 5px; color: #000000;">Cancel</a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<%}else{%>
|
||||
<script>
|
||||
alert("You are not Master of this community")
|
||||
location.href="list.jsp?<%=para_t%>"
|
||||
</script>
|
||||
<%}
|
||||
rs_c.close();
|
||||
%>
|
||||
</div>
|
||||
</form>
|
||||
<iframe name="exec" id="exec" width="0px" height="0px"></iframe>
|
||||
<% }else{%>
|
||||
<script>
|
||||
alert("wrong connection")
|
||||
location.href="/"
|
||||
</script>
|
||||
<%}%>
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,36 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
String c_board_no = r_call(request.getParameter("c_board_no"));
|
||||
String c_name = r_call(request.getParameter("c_name"));
|
||||
String c_type = r_call(request.getParameter("c_type"));
|
||||
String c_view = r_call(request.getParameter("c_view"));
|
||||
|
||||
|
||||
String sql_in = "update tbl_community_board set ";
|
||||
sql_in = sql_in + " c_name = '" + c_name + "' " ;
|
||||
sql_in = sql_in + ", c_type = " + c_type + " " ;
|
||||
sql_in = sql_in + ", c_view = " + c_view + " " ;
|
||||
sql_in = sql_in + " where c_no = "+ c_board_no +" and c_community_no = " + c_no ;
|
||||
stmt2.execute(sql_in);
|
||||
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Edit community board OK.")
|
||||
parent.location.href="edit.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>";
|
||||
</script>
|
||||
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,35 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
String c_name = r_call(request.getParameter("c_name"));
|
||||
String c_target = r_call(request.getParameter("c_target"));
|
||||
String c_exp = r_call(request.getParameter("c_exp"));
|
||||
|
||||
|
||||
String sql_in = "update tbl_community set ";
|
||||
sql_in = sql_in + " c_name = '" + c_name + "' ";
|
||||
sql_in = sql_in + ", c_target = '" + c_target + "' ";
|
||||
sql_in = sql_in + ", c_exp = '" + c_exp + "' ";
|
||||
sql_in = sql_in + " where c_no = " + c_no + " and c_member_no = " + session.getAttribute("member_no") ;
|
||||
stmt2.execute(sql_in);
|
||||
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Edit Community OK.")
|
||||
parent.location.href="edit.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>";
|
||||
</script>
|
||||
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,136 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
login_tag = 1;
|
||||
%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
<%
|
||||
String para_t = "show_no="+ show_no +"&check_no="+ check_no + "&c_relation=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
|
||||
%>
|
||||
<script>
|
||||
function go(){
|
||||
if(document.ss.c_name.value == ""){
|
||||
alert("Insert Community Name")
|
||||
document.ss.c_name.focus()
|
||||
}else if(document.ss.c_target.value == ""){
|
||||
alert("Insert Community Target")
|
||||
document.ss.c_target.focus()
|
||||
}else if(document.ss.c_exp.value == ""){
|
||||
alert("Insert Community Explain")
|
||||
document.ss.c_exp.focus()
|
||||
}else{
|
||||
document.ss.action = "insert_ok.jsp?<%=para_t%>"
|
||||
document.ss.method = "post"
|
||||
document.ss.target = "exec"
|
||||
document.ss.submit()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<select id="language_select" onchange="setLanguage(this.value)">
|
||||
<option value="en" <%= (request.getLocale().toString().equals("en") ? "selected" : "") %>>English</option>
|
||||
<option value="es_PE" <%= (request.getLocale().toString().equals("es_PE") ? "selected" : "") %>>Spanish (Peru)</option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<form name="ss">
|
||||
<input name="c_home" value="<%=c_home%>" type="hidden">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="">
|
||||
<div style="padding-bottom:10px">
|
||||
<b id="a1">◎ Make Community</b>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr><td style="width:20%;text-align:center;height:30px">
|
||||
<font color=red>*</font><span id="a2">Community </span><b id="a5">Name</b>
|
||||
</td><td style="width:80%;text-align:left;padding:10px">
|
||||
<input name="c_name" style="width:80%;height:30px;border:solid 1px #cdcdcd" maxlength="300">
|
||||
</td></tr>
|
||||
<tr><td style="text-align:center;height:30px">
|
||||
<font color=red>*</font><span id="a3">Community </span><b id="a6"> Target</b>
|
||||
</td><td style="text-align:left;padding:10px">
|
||||
<input name="c_target" style="width:100%;height:30px;border:solid 1px #cdcdcd" maxlength="300">
|
||||
</td></tr>
|
||||
<tr><td style="text-align:center;height:30px;vertical-align:top;padding-top:20px">
|
||||
<font color=red>*</font><span id="a4">Community </span><b id="a7"> Explain</b>
|
||||
</td><td style="text-align:left;padding:10px">
|
||||
<textarea name="c_exp" style="width:100%;height:300px;border:solid 1px #cdcdcd"></textarea>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:30px">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="center" style="padding-bottom:10px;padding-top:10px;font-weight:bold;">
|
||||
<a href="#none" onclick="go()" style="width: 150px; line-height: 26px; text-align: center;display: inline-block; background: #F5E0CB; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a8">Make Community</span></a>
|
||||
|
||||
<a href="list.jsp?<%=para_t%>" style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #ededed; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a9">Cnancel</span></a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<iframe name="exec" id="exec" width="0px" height="0px"></iframe>
|
||||
|
||||
<script>
|
||||
// 다국어 처리를 위한 i18n 객체
|
||||
var i18n = {
|
||||
en: {
|
||||
a1: "◎ Make Community",
|
||||
a2: "Community",
|
||||
a3: "Community",
|
||||
a4: "Community",
|
||||
a5: " Name",
|
||||
a6: " Target",
|
||||
a7: " Explain",
|
||||
a8: "Make Community",
|
||||
a9: "Cnancel"
|
||||
},
|
||||
es_PE: {
|
||||
|
||||
a1: "◎ Hacer comunidad",
|
||||
a2: "Comunidad",
|
||||
a3: "Comunidad",
|
||||
a4: "Comunidad",
|
||||
a5: " Nombre",
|
||||
a6: " Objetivo",
|
||||
a7: " Explicar",
|
||||
a8: "Hacer comunidad",
|
||||
a9: "Cancelar"
|
||||
}
|
||||
};
|
||||
|
||||
// 선택된 언어에 따라 다국어 텍스트 설정
|
||||
function setLanguage(lang) {
|
||||
var langData = i18n[lang];
|
||||
document.getElementById("a1").innerText = langData.a1;
|
||||
document.getElementById("a2").innerText = langData.a2;
|
||||
document.getElementById("a3").innerText = langData.a3;
|
||||
document.getElementById("a4").innerText = langData.a4;
|
||||
document.getElementById("a5").innerText = langData.a5;
|
||||
document.getElementById("a6").innerText = langData.a6;
|
||||
document.getElementById("a7").innerText = langData.a7;
|
||||
document.getElementById("a8").innerText = langData.a8;
|
||||
document.getElementById("a9").innerText = langData.a9;
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
setLanguage('<%= request.getLocale().toString() %>');
|
||||
</script>
|
||||
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
||||
ꀀ
|
|
@ -0,0 +1,237 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
login_tag = 1;
|
||||
%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
<%
|
||||
String para_t = "show_no="+ show_no +"&check_no="+ check_no + "&c_relation=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
%>
|
||||
<script>
|
||||
function go(){
|
||||
if(document.ss.c_name.value == ""){
|
||||
alert("Insert Board Name")
|
||||
document.ss.c_name.focus()
|
||||
}else{
|
||||
document.ss.action = "insert_board_ok.jsp?<%=para_t%>"
|
||||
document.ss.method = "post"
|
||||
document.ss.target = "exec"
|
||||
document.ss.submit()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<select id="language_select" onchange="setLanguage(this.value)">
|
||||
<option value="en" <%= (request.getLocale().toString().equals("en") ? "selected" : "") %>>English</option>
|
||||
<option value="es_PE" <%= (request.getLocale().toString().equals("es_PE") ? "selected" : "") %>>Spanish (Peru)</option>
|
||||
</select>
|
||||
</p>
|
||||
<form name="ss">
|
||||
<input name="c_home" value="<%=c_home%>" type="hidden">
|
||||
<input name="c_no" value="<%=c_no%>" type="hidden">
|
||||
<div class="row">
|
||||
<%
|
||||
String sql_c = "select a.* , b.c_name as m_name, b.c_id as m_id ";
|
||||
sql_c = sql_c + ", (select count(c_no) as m_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) ) as m_number ";
|
||||
sql_c = sql_c + " from tbl_community a ";
|
||||
sql_c = sql_c + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_c = sql_c + " where a.c_no = "+ c_no +" and a.c_use = 0 and a.c_home = "+ c_home +" and c_member_no = "+ session.getAttribute("member_no") +" ";
|
||||
ResultSet rs_c = stmt.executeQuery(sql_c);
|
||||
if (rs_c.next()) {
|
||||
%>
|
||||
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="">
|
||||
<div style="padding-bottom:10px">
|
||||
<b id="a1">◎ Community information</b>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr><td style="width:10%;text-align:right;height:30px;padding-right:10px">
|
||||
<span id="a2">Namer</span>
|
||||
</td><td style="width:90%;text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=rs_c.getString("c_name")%></b>
|
||||
</td></tr>
|
||||
<tr><td style="text-align:right;height:30px;padding-right:10px">
|
||||
<span id="a3">Target</span>
|
||||
</td><td style="\text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=rs_c.getString("c_target")%></b>
|
||||
</td></tr>
|
||||
<tr><td style="text-align:right;height:30px;padding-right:10px">
|
||||
<span id="a4">Date</span>
|
||||
</td><td style="\text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=rs_c.getString("c_date").substring(0,10)%></b>
|
||||
</td></tr>
|
||||
<tr><td style="text-align:right;height:30px;padding-right:10px">
|
||||
<span id="a5">Master</span>
|
||||
</td><td style="\text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=rs_c.getString("m_name")%></b> / <%=rs_c.getString("m_id")%>
|
||||
</td></tr>
|
||||
|
||||
<tr><td colspan=2 style="text-align:right;height:10px;padding-right:10px">
|
||||
</td></tr>
|
||||
<tr><td colspan=2 style="text-align:left;padding:20px;background:#efefef">
|
||||
<%=rs_c.getString("c_exp").replaceAll("\n","<br />")%>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:30px">
|
||||
<div style="padding-bottom:10px">
|
||||
<b id="a6">◎ Insert Community Board</b>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr><td style="width:20%;text-align:center;height:30px">
|
||||
<font color=red>*</font> <span id="a7">Tablero </span><b id="a12"> Name</b>
|
||||
</td><td style="width:80%;text-align:left;padding:10px">
|
||||
<input name="c_name" value="" style="width:80%;height:30px;border:solid 1px #cdcdcd" maxlength="300">
|
||||
</td></tr>
|
||||
<tr><td style="text-align:center;height:30px">
|
||||
<font color=red>*</font><span id="a8">Write </span><b id="a10"> authority</b>
|
||||
</td><td style="text-align:left;padding:10px">
|
||||
<input name="c_type" value="0" type="radio" checked><span id="a13"> Members escriben</span>
|
||||
|
||||
|
||||
<input name="c_type" value="1" type="radio"><span id="a14"> Solo escritura maestra</span>
|
||||
</td></tr>
|
||||
<tr><td style="text-align:center;height:30px;">
|
||||
<font color=red>*</font><span id="a9">Board </span><b id="a11"> Use</b>
|
||||
</td><td style="text-align:left;padding:10px">
|
||||
<input name="c_view" value="0" type="radio" checked> Use</span>
|
||||
|
||||
|
||||
<input name="c_view" value="1" type="radio"> <span id="a15">No Use</span>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:30px">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="center" style="padding-bottom:10px;padding-top:10px;font-weight:bold;">
|
||||
<a href="#none" onclick="go()" style="width: 150px; line-height: 26px; text-align: center;display: inline-block; background: #F5E0CB; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a16">Insert Board</span></a>
|
||||
|
||||
<a href="edit.jsp?<%=para_t%>&c_no=<%=c_no%>" style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #ededed; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a17">Cancel</span></a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<%}else{%>
|
||||
<script>
|
||||
alert("You are not Master of this Community")
|
||||
location.href="list.jsp?<%=para_t%>"
|
||||
</script>
|
||||
<%}
|
||||
rs_c.close();
|
||||
%>
|
||||
</div>
|
||||
</form>
|
||||
<iframe name="exec" id="exec" width="0px" height="0px"></iframe>
|
||||
|
||||
|
||||
<script>
|
||||
// 다국어 처리를 위한 i18n 객체
|
||||
var i18n = {
|
||||
en: {
|
||||
a1: "◎ Community information",
|
||||
a2: "Namer",
|
||||
a3: "Target",
|
||||
a4: "Date",
|
||||
a5: "Master",
|
||||
a6: "◎ Insert Community Board",
|
||||
a7: "Tablero",
|
||||
a8: "Write",
|
||||
a9: "Board",
|
||||
a10: " authority",
|
||||
a11: " Use",
|
||||
a12: " Name",
|
||||
a13: " Members escriben",
|
||||
a14: " Solo escritura maestra",
|
||||
a15: "No Use",
|
||||
a16: "Insert Board",
|
||||
a17: "Cancel"
|
||||
},
|
||||
es_PE: {
|
||||
a1: "◎ Información de la comunidad",
|
||||
a2: "Nombre",
|
||||
a3: "Objetivo",
|
||||
a4: "Fecha",
|
||||
a5: "Maestro",
|
||||
a6: "◎ Insertar tablero comunitario",
|
||||
a7: "Tableros",
|
||||
a8: "Escribir",
|
||||
a9: "Tablero",
|
||||
a10: " autoridad",
|
||||
a11: " Usar",
|
||||
a12: " Nombre",
|
||||
a13: " Los miembros escriben",
|
||||
a14: " Solo escritura maestra",
|
||||
a15: "Sin uso",
|
||||
a16: "Insertar tablero",
|
||||
a17: "Cancelar"
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
// 선택된 언어에 따라 다국어 텍스트 설정
|
||||
function setLanguage(lang) {
|
||||
var langData = i18n[lang];
|
||||
document.getElementById("a1").innerText = langData.a1;
|
||||
document.getElementById("a2").innerText = langData.a2;
|
||||
document.getElementById("a3").innerText = langData.a3;
|
||||
document.getElementById("a4").innerText = langData.a4;
|
||||
document.getElementById("a5").innerText = langData.a5;
|
||||
document.getElementById("a6").innerText = langData.a6;
|
||||
document.getElementById("a7").innerText = langData.a7;
|
||||
document.getElementById("a8").innerText = langData.a8;
|
||||
document.getElementById("a9").innerText = langData.a9;
|
||||
document.getElementById("a10").innerText = langData.a10;
|
||||
document.getElementById("a11").innerText = langData.a11;
|
||||
|
||||
document.getElementById("a12").innerText = langData.a12;
|
||||
document.getElementById("a13").innerText = langData.a13;
|
||||
document.getElementById("a14").innerText = langData.a14;
|
||||
document.getElementById("a15").innerText = langData.a15;
|
||||
|
||||
document.getElementById("a16").innerText = langData.a16;
|
||||
document.getElementById("a17").innerText = langData.a17;
|
||||
document.getElementById("a18").innerText = langData.a18;
|
||||
document.getElementById("a19").innerText = langData.a19;
|
||||
document.getElementById("a20").innerText = langData.a20;
|
||||
document.getElementById("a21").innerText = langData.a21;
|
||||
document.getElementById("a22").innerText = langData.a22;
|
||||
document.getElementById("a23").innerText = langData.a23;
|
||||
document.getElementById("a24").innerText = langData.a24;
|
||||
document.getElementById("a25").innerText = langData.a25;
|
||||
|
||||
document.getElementById("a26").innerText = langData.a26;
|
||||
document.getElementById("a27").innerText = langData.a27;
|
||||
document.getElementById("a28").innerText = langData.a28;
|
||||
document.getElementById("a29").innerText = langData.a29;
|
||||
document.getElementById("a30").innerText = langData.a30;
|
||||
document.getElementById("a31").innerText = langData.a31;
|
||||
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
setLanguage('<%= request.getLocale().toString() %>');
|
||||
</script>
|
||||
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,39 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
String c_name = r_call(request.getParameter("c_name"));
|
||||
String c_type = r_call(request.getParameter("c_type"));
|
||||
String c_view = r_call(request.getParameter("c_view"));
|
||||
|
||||
int max_order = 1;
|
||||
String sql_p = "select max(c_order) as max_order from tbl_community_board where c_home = "+ c_home +" and c_community_no = "+ c_no +" ";
|
||||
ResultSet rs_c = stmt.executeQuery(sql_p);
|
||||
if (rs_c.next()) {
|
||||
max_order = rs_c.getInt("max_order") + 1;
|
||||
}
|
||||
rs_c.close();
|
||||
|
||||
String sql_in = "insert into tbl_community_board ( c_home,c_community_no,c_type,c_name, c_order, c_view, c_use, c_date) values (";
|
||||
sql_in = sql_in + " " + c_home + "," + c_no + "," + c_type + ",'" + c_name +"',"+ max_order +","+ c_view + ",0,now())";
|
||||
stmt2.execute(sql_in);
|
||||
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Make the community board correct.")
|
||||
parent.location.href="edit.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>";
|
||||
</script>
|
||||
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,31 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_name = r_call(request.getParameter("c_name"));
|
||||
String c_target = r_call(request.getParameter("c_target"));
|
||||
String c_exp = r_call(request.getParameter("c_exp"));
|
||||
|
||||
|
||||
String sql_in = "insert into tbl_community ( c_home, c_member_no, c_name, c_target, c_exp, c_use, c_date) values (";
|
||||
sql_in = sql_in + " " + c_home + "," + session.getAttribute("member_no") + ",'" + c_name +"','"+ c_target +"','"+ c_exp + "',0,now())";
|
||||
stmt2.execute(sql_in);
|
||||
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Make Community OK.")
|
||||
parent.location.href="list.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>";
|
||||
</script>
|
||||
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,28 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
String c_home = r_call(request.getParameter("c_home"));
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
String c_content = r_call(request.getParameter("c_content"));
|
||||
|
||||
String sql_in = " insert into tbl_community_member (c_home,c_community_no,c_member_no,c_content,c_now,c_use,c_date) value (" ;
|
||||
sql_in = sql_in + c_home +","+ c_no +","+ session.getAttribute("member_no") +",'"+ c_content + "',0,0,now())";
|
||||
stmt2.execute(sql_in);
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Join ok")
|
||||
parent.location.href="view.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>";
|
||||
</script>
|
||||
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
|
@ -0,0 +1,430 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
login_tag = 1;
|
||||
%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
|
||||
|
||||
<select id="language_select" onchange="setLanguage(this.value)">
|
||||
<option value="en" <%= (request.getLocale().toString().equals("en") ? "selected" : "") %>>English</option>
|
||||
<option value="es_PE" <%= (request.getLocale().toString().equals("es_PE") ? "selected" : "") %>>Spanish (Peru)</option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<%
|
||||
String para_t = "show_no="+ show_no +"&check_no="+ check_no + "&c_relation=" + c_relation + "&c_relation2=" + c_relation2;
|
||||
String s_text = r_call(request.getParameter("s_text"));
|
||||
%>
|
||||
<script>
|
||||
function s_search(){
|
||||
if(document.ss.s_text.value == ""){
|
||||
alert("Insertar texto de búsqueda")
|
||||
document.ss.s_text.focus()
|
||||
}else{
|
||||
document.ss.action = "list.jsp?<%=para_t%>"
|
||||
document.ss.method = "post"
|
||||
document.ss.target = "_self"
|
||||
document.ss.submit()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<form name="ss">
|
||||
<div class="row">
|
||||
<%
|
||||
String sql_s = "";
|
||||
ResultSet rs_s = null;
|
||||
int c_count = 0;
|
||||
int imim = 0;
|
||||
%>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="">
|
||||
<div style="padding-bottom:10px">
|
||||
<b id="a2">◎ Search Community</b>
|
||||
<input name="s_text" style="width:200px" value="<%=s_text%>">
|
||||
<a href="#none" onclick="s_search()"><img src="/images/do.png" alt="search"></a>
|
||||
</div>
|
||||
<%if(!s_text.equals("")){%>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<%
|
||||
sql_s = "select a.*, b.c_name as m_name ";
|
||||
sql_s = sql_s + " ,(select c_now from tbl_community_member where c_community_no = a.c_no and c_member_no = "+ session.getAttribute("member_no") +" and c_use = 0 ) as my_no ";
|
||||
sql_s = sql_s + " from tbl_community a ";
|
||||
sql_s = sql_s + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_s = sql_s + " where a.c_use = 0 and a.c_home = "+ c_home +" and ( a.c_name like '%"+ s_text +"%' or a.c_target like '%"+ s_text +"%' or a.c_exp like '%"+ s_text +"%' or b.c_name like '%"+ s_text +"%' ) order by a.c_no desc ";
|
||||
c_count = 0;
|
||||
rs_s = stmt.executeQuery(sql_s);
|
||||
while (rs_s.next()) {
|
||||
c_count = c_count + 1;
|
||||
imim = 0;
|
||||
%>
|
||||
<div style="width:100%;padding-top:10px;padding-bottom:5px;border-bottom:solid 1px #efefef" >
|
||||
<a href="view.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>"><b>▷ <%=rs_s.getString("c_name").replaceAll(s_text,"<font color=red>" +s_text + "</font>")%></b> </a>
|
||||
<%if(rs_s.getString("c_member_no").equals(session.getAttribute("member_no"))){
|
||||
imim = 1;
|
||||
%>
|
||||
/ I'm <font color=#EE9200>Master</font>
|
||||
/ <a href="edit.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>">[ Management ]</a>
|
||||
|
||||
<%}else{%>
|
||||
<%if(rs_s.getString("my_no") != null ){
|
||||
imim = 1;
|
||||
%>
|
||||
<%if(rs_s.getInt("my_no") == 0 ){%>
|
||||
/ I'm <font color=#91BD19>Waiting</font> ..
|
||||
<%}else{%>
|
||||
/ I'm <font color=blue>Member</font>
|
||||
<%}%>
|
||||
<%}else{%>
|
||||
<a href="view.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>"><nobr>[Join the community]</nobr></a>
|
||||
<%}%>
|
||||
<%}%>
|
||||
<br />
|
||||
<i><span id="a14">Target :</span> <%=rs_s.getString("c_target").replaceAll(s_text,"<font color=red>" +s_text + "</font>")%> /<span id="a15"> Master : </span><%=rs_s.getString("m_name").replaceAll(s_text,"<font color=red>" +s_text + "</font>")%> /<span id="a16"> Date :</span> <%=rs_s.getString("c_date").substring(0,10)%> </i>
|
||||
</div>
|
||||
<div style="width:100%;padding-top:5px;padding-bottom:20px;color:#ababab" >
|
||||
<i>
|
||||
|
||||
<%
|
||||
if(rs_s.getString("c_exp") != null){
|
||||
String chk_t = rs_s.getString("c_exp").replaceAll("<(/)?([a-zA-Z]*)(\\s[a-zA-Z]*=[^>]*)?(\\s)*(/)?>", "");
|
||||
if( chk_t.length() > 200){
|
||||
if( chk_t.indexOf(s_text) > 200){
|
||||
int in_str = chk_t.indexOf(s_text);
|
||||
chk_t = "..... " + chk_t.substring(in_str - 100,in_str + 100) + " .....";
|
||||
}else{
|
||||
chk_t = chk_t.substring(0,200) + " .....";
|
||||
}
|
||||
}%>
|
||||
<%=chk_t.replaceAll(s_text,"<font color=red>" + s_text +"</font>")%>
|
||||
|
||||
<% }%>
|
||||
<span class="blue" style="font-style:normal;color:#000000"><a href="view.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>"><nobr><span id="a17">[ Detail ]</span></nobr></a></span>
|
||||
<%if(imim ==1){%>
|
||||
<span class="blue" style="font-style:normal;color:#000000"><a href="community/list.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>"><nobr>[ Goto Community ]</nobr></a></span>
|
||||
<%}%>
|
||||
</i>
|
||||
</div>
|
||||
<%
|
||||
}
|
||||
rs_s.close();
|
||||
%>
|
||||
<%if(c_count == 0){%>
|
||||
<center>
|
||||
<br /><br /><br />
|
||||
Sin resultados
|
||||
<br /><br /><br /><br />
|
||||
</center>
|
||||
<%}%>
|
||||
</div>
|
||||
<%}%>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:30px">
|
||||
<div style="padding-bottom:10px;">
|
||||
<b id="a3">◎ My Community</b>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<%
|
||||
sql_s = "select t.* from ( ";
|
||||
sql_s = sql_s + " select a.*, b.c_name as m_name ";
|
||||
sql_s = sql_s + " ,(select c_now from tbl_community_member where c_community_no = a.c_no and c_member_no = "+ session.getAttribute("member_no") +" and c_use = 0 ) as my_no ";
|
||||
sql_s = sql_s + " from tbl_community a ";
|
||||
sql_s = sql_s + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_s = sql_s + " where a.c_use = 0 and a.c_home = "+ c_home +" ";
|
||||
sql_s = sql_s + " ) t where t.c_member_no = "+ session.getAttribute("member_no") +" or (t.my_no is not null and t.my_no in (0,1)) order by t.c_no desc ";
|
||||
|
||||
c_count = 0;
|
||||
rs_s = stmt.executeQuery(sql_s);
|
||||
while (rs_s.next()) {
|
||||
imim = 0;
|
||||
c_count = c_count + 1;
|
||||
%>
|
||||
<div style="width:100%;padding-top:10px;padding-bottom:5px;border-bottom:solid 1px #efefef" >
|
||||
<a href="view.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>"><b>▷ <%=rs_s.getString("c_name")%></b> </a>
|
||||
<%if(rs_s.getString("c_member_no").equals(session.getAttribute("member_no"))){
|
||||
imim = 1;
|
||||
%>
|
||||
/ I'm <font color=#EE9200>Master</font>
|
||||
/ <a href="edit.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>">[ Management ]</a>
|
||||
<%}else{%>
|
||||
<%if(rs_s.getString("my_no") != null ){
|
||||
imim = 1;
|
||||
%>
|
||||
<%if(rs_s.getInt("my_no") == 0 ){%>
|
||||
/ I'm <font color=#91BD19>Waiting</font> ..
|
||||
|
||||
<%}else{%>
|
||||
/ I'm <font color=blue>Member</font>
|
||||
<%}%>
|
||||
<%}else{%>
|
||||
<a href="view.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>"><nobr>[Join the community]</nobr></a>
|
||||
<%}%>
|
||||
<%}%>
|
||||
<br />
|
||||
<i><span id="a20">Target :</span> <%=rs_s.getString("c_target")%> / <span id="a21">Master :</span> <%=rs_s.getString("m_name")%> /<span id="a22"> Date :</span> <%=rs_s.getString("c_date").substring(0,10)%> </i>
|
||||
</div>
|
||||
<div style="width:100%;padding-top:5px;padding-bottom:20px;color:#ababab" >
|
||||
<i>
|
||||
|
||||
<%
|
||||
if(rs_s.getString("c_exp") != null){
|
||||
String chk_t = rs_s.getString("c_exp").replaceAll("<(/)?([a-zA-Z]*)(\\s[a-zA-Z]*=[^>]*)?(\\s)*(/)?>", "");
|
||||
if( chk_t.length() > 100){
|
||||
chk_t = chk_t.substring(0,100) + " .....";
|
||||
}%>
|
||||
<%=chk_t%>
|
||||
|
||||
<% }%>
|
||||
<span class="blue" style="font-style:normal;color:#000000"><a href="view.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>"><nobr><span id="a23">[ Detail ]</span></nobr></a></span>
|
||||
<%if(imim ==1){%>
|
||||
<span class="blue" style="font-style:normal;color:#000000"><a href="community/list.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>"><nobr>[ Goto Community ]</nobr></a></span>
|
||||
<%}%>
|
||||
|
||||
</i>
|
||||
</div>
|
||||
<%
|
||||
}
|
||||
rs_s.close();
|
||||
%>
|
||||
<%if(c_count == 0){%>
|
||||
<center>
|
||||
<br /><br />
|
||||
No join
|
||||
<br /><br /><br />
|
||||
</center>
|
||||
<%}%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:30px">
|
||||
<div style="padding-bottom:10px;">
|
||||
<b id="a4">◎ Total community</b>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<%
|
||||
|
||||
int totalRecord = 0; //총레코드개수
|
||||
int numPerPage = 10;//한페이지당 보여줄레코드개수
|
||||
int totalPage = 0; //총페이지수
|
||||
int pagePerBlock = 10; //블록당페이지수
|
||||
int nowPage = 1; //현재페이지
|
||||
String sql1 = "";
|
||||
sql1 = " select count(a.c_no) ";
|
||||
sql1 = sql1 + " from tbl_community a ";
|
||||
sql1 = sql1 + " inner join tbl_member b on b.c_no = a.c_member_no where a.c_use = 0 and a.c_home = "+ c_home +" ";
|
||||
ResultSet rst = stmt.executeQuery(sql1);
|
||||
if (rst.next()) {
|
||||
totalRecord = rst.getInt(1);
|
||||
}
|
||||
rst.close();
|
||||
if ( r_call(request.getParameter("nowPage")) != null && !r_call(request.getParameter("nowPage")).equals("")) {
|
||||
nowPage = Integer.parseInt(r_call(request.getParameter("nowPage")));
|
||||
}
|
||||
|
||||
//nowPage = 93;
|
||||
//totalRecord =1240;
|
||||
int pfirst = 0; //첫페이지 번호
|
||||
int plast = 0; // 끝페이지 번호
|
||||
int plast_org = 0;
|
||||
|
||||
pfirst = ((nowPage-1)/pagePerBlock)*pagePerBlock + 1;
|
||||
plast = pfirst + pagePerBlock - 1;
|
||||
plast_org = (totalRecord-1)/numPerPage + 1;
|
||||
if(plast > plast_org){
|
||||
plast = plast_org;
|
||||
}
|
||||
int c_number=totalRecord-(nowPage-1)*numPerPage;
|
||||
|
||||
int sql_now_page = (nowPage - 1) * numPerPage;
|
||||
%>
|
||||
<%
|
||||
sql_s = "select t.* from ( ";
|
||||
sql_s = sql_s + " select a.*, b.c_name as m_name ";
|
||||
sql_s = sql_s + " ,(select c_now from tbl_community_member where c_community_no = a.c_no and c_member_no = "+ session.getAttribute("member_no") +" and c_use = 0 ) as my_no ";
|
||||
sql_s = sql_s + " from tbl_community a ";
|
||||
sql_s = sql_s + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_s = sql_s + " where a.c_use = 0 and a.c_home = "+ c_home +" ";
|
||||
sql_s = sql_s + " ) t order by t.c_no desc ";
|
||||
sql_s = sql_s + " limit "+ sql_now_page +" , "+ numPerPage +" ";
|
||||
c_count = 0;
|
||||
rs_s = stmt.executeQuery(sql_s);
|
||||
while (rs_s.next()) {
|
||||
c_count = c_count + 1;
|
||||
imim = 0;
|
||||
%>
|
||||
<div style="width:100%;padding-top:15px;padding-bottom:5px;border-bottom:solid 1px #efefef" >
|
||||
<a href="view.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>"><b>▷ <%=rs_s.getString("c_name")%></b> </a>
|
||||
<%if(rs_s.getString("c_member_no").equals(session.getAttribute("member_no"))){
|
||||
imim = 1;
|
||||
%>
|
||||
/ I'm <font color=#EE9200>Master</font>
|
||||
/ <a href="edit.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>">[ Management ]</a>
|
||||
|
||||
<%}else{%>
|
||||
<%if(rs_s.getString("my_no") != null ){
|
||||
imim = 1;
|
||||
%>
|
||||
<%if(rs_s.getInt("my_no") == 0 ){%>
|
||||
/ I'm <font color=#91BD19>Waiting</font> ..
|
||||
<%}else{%>
|
||||
/ I'm <font color=blue>Member</font>
|
||||
<%}%>
|
||||
<%}else{%>
|
||||
<a href="view.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>"><nobr><span id="a29">[Join the community]</span></nobr></a>
|
||||
<%}%>
|
||||
<%}%>
|
||||
<br />
|
||||
<i><span id="a5">Target :</span> <%=rs_s.getString("c_target")%> / <span id="a6">Master :</span> <%=rs_s.getString("m_name")%> / <span id="a7">Date :</span> <%=rs_s.getString("c_date").substring(0,10)%> </i>
|
||||
<span class="blue" style="font-style:normal;color:#000000"><a href="view.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>"><nobr><span id="a8">[ Detail ]</span></nobr></a></span>
|
||||
<%if(imim ==1){%>
|
||||
<span class="blue" style="font-style:normal;color:#000000"><a href="community/list.jsp?<%=para_t%>&c_no=<%=rs_s.getInt("c_no")%>"><nobr>[ Goto Community ]</nobr></a></span>
|
||||
<%}%>
|
||||
</div>
|
||||
<%
|
||||
}
|
||||
rs_s.close();
|
||||
%>
|
||||
<%if(c_count == 0){%>
|
||||
<center>
|
||||
<br /><br />
|
||||
No Community
|
||||
<br /><br /><br />
|
||||
</center>
|
||||
<%}else{%>
|
||||
<br /><br />
|
||||
<table align=center border=0 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<%if(pfirst > 1){ %>
|
||||
<td align=center width="32" style='padding=0,4,0,4'>
|
||||
<a href="list.jsp?nowPage=1&<%=para_t%>">〈〈</a>
|
||||
</td>
|
||||
<td align=center width="32" style='padding=0,4,0,0'>
|
||||
<a href="list.jsp?nowPage=<%=pfirst-1%>&<%=para_t%>">〈</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<% for(int i=pfirst;i<plast+1;i=i+1){%>
|
||||
<td align=center width="32" style='padding=0,0,0,0' valign=top>
|
||||
<% if(i==nowPage){%>
|
||||
<font color=#4D9ACF size=3><b><%=i%>
|
||||
<%}else{%>
|
||||
<a href="list.jsp?nowPage=<%=i%>&<%=para_t%>"><font color=#787878 size=3><b><%=i%></b></a>
|
||||
<%}%>
|
||||
</td>
|
||||
<%}%>
|
||||
<%if(plast < plast_org){ %>
|
||||
<td align=center width="32" style='padding=0,4,0,4'>
|
||||
<a href="list.jsp?nowPage=<%=plast+1%>&<%=para_t%>">〉</a>
|
||||
</td>
|
||||
<td align=center width="32" style='padding=0,4,0,0'>
|
||||
<a href="list.jsp?nowPage=<%=plast_org%>&<%=para_t%>">〉〉</a>
|
||||
</td>
|
||||
<%}%>
|
||||
</tr>
|
||||
</table>
|
||||
<%}%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:30px">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="center" style="padding-bottom:10px;padding-top:10px;font-weight:bold;">
|
||||
<a href="insert.jsp?<%=para_t%>" style="width: 150px; line-height: 26px; text-align: center;display: inline-block; background: #ededed; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a1">Make community</span></a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
// 다국어 처리를 위한 i18n 객체
|
||||
var i18n = {
|
||||
en: {
|
||||
a1: "Make community",
|
||||
a2: "◎ Search Community",
|
||||
a3: "◎ My Community",
|
||||
a4: "◎ Total community",
|
||||
a5: "Target :",
|
||||
a6: "Master :",
|
||||
a7: "Date :",
|
||||
a8: "[ Detail ]",
|
||||
//a9: "[Join the community]",
|
||||
|
||||
a14: "Target :",
|
||||
a15: "Master :",
|
||||
a16: "Date :",
|
||||
a17: "[ Detail ]",
|
||||
a20: "Target :",
|
||||
a21: "Master :",
|
||||
a22: "Date :",
|
||||
a23: "[ Detail ]",
|
||||
|
||||
a29: "[Join the community]"
|
||||
},
|
||||
es_PE: {
|
||||
a1: "Hacer comunidad",
|
||||
a2: "◎ Comunidad de búsqueda",
|
||||
a3: "◎ Mi Comunidad",
|
||||
a4: "◎ Comunidad total",
|
||||
a5: "Objetivo:",
|
||||
a6: "Maestro :",
|
||||
a7: "Fecha:",
|
||||
a8: "[ Detalle ]",
|
||||
//a9: "[Únete a la comunidad]",
|
||||
a10: "Objetivo:",
|
||||
a11: "Maestro :",
|
||||
a12: "Fecha:",
|
||||
a13: "[ Detalle ]",
|
||||
a14: "Objetivo:",
|
||||
a15: "Maestro :",
|
||||
a16: "Fecha:",
|
||||
a17: "[ Detalle ]",
|
||||
a20: "Objetivo:",
|
||||
a21: "Maestro :",
|
||||
a22: "Fecha:",
|
||||
a23: "[ Detalle ]",
|
||||
a29: "[Únete a la comunidad]",
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
// 선택된 언어에 따라 다국어 텍스트 설정
|
||||
function setLanguage(lang) {
|
||||
var langData = i18n[lang];
|
||||
document.getElementById("a1").innerText = langData.a1;
|
||||
document.getElementById("a2").innerText = langData.a2;
|
||||
document.getElementById("a3").innerText = langData.a3;
|
||||
document.getElementById("a4").innerText = langData.a4;
|
||||
document.getElementById("a5").innerText = langData.a5;
|
||||
document.getElementById("a6").innerText = langData.a6;
|
||||
document.getElementById("a7").innerText = langData.a7;
|
||||
document.getElementById("a8").innerText = langData.a8;
|
||||
|
||||
|
||||
document.getElementById("a14").innerText = langData.a14;
|
||||
document.getElementById("a15").innerText = langData.a15;
|
||||
|
||||
document.getElementById("a16").innerText = langData.a16;
|
||||
document.getElementById("a17").innerText = langData.a17;
|
||||
document.getElementById("a18").innerText = langData.a18;
|
||||
|
||||
document.getElementById("a20").innerText = langData.a20;
|
||||
document.getElementById("a21").innerText = langData.a21;
|
||||
document.getElementById("a22").innerText = langData.a22;
|
||||
document.getElementById("a23").innerText = langData.a23;
|
||||
document.getElementById("a29").innerText = langData.a29;
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
setLanguage('<%= request.getLocale().toString() %>');
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,25 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<iframe name="exec" id="exec" width="0px" height="0px"></iframe>
|
||||
<%
|
||||
}
|
||||
}else{
|
||||
%>
|
||||
<script>
|
||||
alert("Ther's no Community")
|
||||
location.href="/"
|
||||
</script>
|
||||
<%
|
||||
}
|
||||
rs_c.close();
|
||||
}%>
|
||||
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
||||
<%@include file="/include/bottom.jsp"%>
|
||||
<%@include file="/include/include_b.jsp"%>
|
|
@ -0,0 +1,138 @@
|
|||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%@include file="/include/include.jsp"%>
|
||||
<%
|
||||
login_tag = 1;
|
||||
%>
|
||||
<%@include file="/include/head.jsp"%>
|
||||
<%
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
if(!c_no.equals("")){
|
||||
now_community = Integer.parseInt(c_no);
|
||||
}
|
||||
String s_board_no = r_call(request.getParameter("c_board_no"));
|
||||
if(!s_board_no.equals("")){
|
||||
now_community_board = Integer.parseInt(s_board_no);
|
||||
}
|
||||
%>
|
||||
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
||||
<%
|
||||
String para_t = "show_no="+ show_no +"&check_no="+ check_no + "&c_relation=" + c_relation + "&c_relation2=" + c_relation2 + "&c_no=" + c_no + "&c_board_no=" + s_board_no;
|
||||
%>
|
||||
<%
|
||||
if(c_no.equals("")){
|
||||
%>
|
||||
<script>
|
||||
alert("Wrong connection")
|
||||
location.href ="/"
|
||||
</script>
|
||||
<% }else{
|
||||
String c_board_no = "";
|
||||
String master_no = "";
|
||||
int my_now = -1;
|
||||
String sql_c = "select a.* , b.c_name as m_name, b.c_id as m_id ";
|
||||
sql_c = sql_c + ", (select c_now as my_now from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) and c_member_no = "+ session.getAttribute("member_no") +" ) as my_now ";
|
||||
sql_c = sql_c + ", (select count(c_no) as m_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) ) as m_number ";
|
||||
sql_c = sql_c + ", (select count(c_no) as ready_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now = 0 ) as ready_number ";
|
||||
sql_c = sql_c + ", (select count(c_no) as real_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now = 1 ) as real_number ";
|
||||
sql_c = sql_c + " from tbl_community a ";
|
||||
sql_c = sql_c + " inner join tbl_member b on b.c_no = a.c_member_no ";
|
||||
sql_c = sql_c + " where a.c_no = "+ c_no +" and a.c_use = 0 and a.c_home = "+ c_home +" ";
|
||||
ResultSet rs_c = stmt.executeQuery(sql_c);
|
||||
if (rs_c.next()) {
|
||||
master_no = rs_c.getString("c_member_no");
|
||||
if(rs_c.getString("my_now") != null){
|
||||
my_now = rs_c.getInt("my_now");
|
||||
}
|
||||
if(!master_no.equals(session.getAttribute("member_no")) && my_now == -1 ){
|
||||
%>
|
||||
<script>
|
||||
alert("You are not a member of this community")
|
||||
location.href="../view.jsp?<%=para_t%>&c_no=<%=c_no%>"
|
||||
</script>
|
||||
<%
|
||||
}else{
|
||||
|
||||
int my_writer = 0;
|
||||
%>
|
||||
<form name="bcb" encType="multipart/form-data">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="">
|
||||
<div style="padding-bottom:10px">
|
||||
<b>◎ Community Information</b>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
<table style="width:100%">
|
||||
<tr><td style="width:10%;text-align:right;height:30px;padding-right:10px">
|
||||
Name
|
||||
</td><td style="width:90%;text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=rs_c.getString("c_name")%></b>
|
||||
/ <%=rs_c.getString("m_name")%>( <%=rs_c.getString("m_id")%> )
|
||||
</td></tr>
|
||||
<tr><td style="text-align:right;height:30px;padding-right:10px">
|
||||
You are
|
||||
</td><td style="\text-align:left;padding-left:10px;background:#efefef">
|
||||
<b><%=session.getAttribute("member_name")%></b> ( <%=session.getAttribute("member_id")%> )
|
||||
/
|
||||
<%if(master_no.equals(session.getAttribute("member_no"))){
|
||||
my_writer = 1;
|
||||
%>
|
||||
<font color=red>Master
|
||||
<%}else{%>
|
||||
<%if( my_now == 0 ){%>
|
||||
<font color=blue>Waiting Member
|
||||
<%}%>
|
||||
<%if( my_now == 1 ){%>
|
||||
<font color=green>Regular Mamber
|
||||
<%}%>
|
||||
<%}%>
|
||||
</font>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:20px">
|
||||
<div style="padding-bottom:10px">
|
||||
<b>◎ Community boards</b>
|
||||
-
|
||||
<%
|
||||
String sql_b = "select a.* ";
|
||||
sql_b = sql_b + " ,(select count(c_no) as p_number from tbl_board where c_relation = 2021 and c_relation2 = 1077 and c_use = 0 and c_community_board_no = a.c_no ) as p_number ";
|
||||
sql_b = sql_b + " ,(select count(c_no) as my_p_number from tbl_board where c_relation = 2021 and c_relation2 = 1077 and c_use = 0 and c_community_board_no = a.c_no and c_member_no = "+ session.getAttribute("member_no") +" ) as my_p_number ";
|
||||
sql_b = sql_b + " from tbl_community_board a where a.c_community_no = "+ c_no +" and a.c_use = 0 and a.c_view = 0 and a.c_no = "+ s_board_no +" order by a.c_order asc ";
|
||||
ResultSet rs_b = stmt.executeQuery(sql_b);
|
||||
if (rs_b.next()) {
|
||||
%>
|
||||
<b><%=rs_b.getString("c_name")%></b>
|
||||
/
|
||||
<%if(rs_b.getInt("c_type") == 0){
|
||||
if( my_now == 1 ){
|
||||
my_writer = 1;
|
||||
}
|
||||
%>
|
||||
Writer : <b>Regular Member</b>
|
||||
<%}%>
|
||||
<%if(rs_b.getInt("c_type") == 1){%>
|
||||
Writer : <b>Master</b>
|
||||
<%}%>
|
||||
|
||||
<%}
|
||||
rs_b.close();
|
||||
%>
|
||||
/
|
||||
<font color=#898989><i>
|
||||
You are
|
||||
<%if( my_writer == 1 ){%>
|
||||
<b> Writer.</b>
|
||||
<%}else{%>
|
||||
<b>Spectator only.</b>
|
||||
<%}%>
|
||||
</i></font>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
|
||||
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
||||
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
||||
<%@include file="/include/db/db_connect.jsp"%>
|
||||
<%@include file="/include/function/function.jsp"%>
|
||||
<%request.setCharacterEncoding("utf-8");%>
|
||||
<%
|
||||
|
||||
String c_no = r_call(request.getParameter("c_no"));
|
||||
String c_board_no = r_call(request.getParameter("c_board_no"));
|
||||
String show_no = r_call(request.getParameter("show_no"));
|
||||
String check_no = r_call(request.getParameter("check_no"));
|
||||
String c_relation = r_call(request.getParameter("c_relation"));
|
||||
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
||||
String c_post_no = r_call(request.getParameter("c_post_no"));
|
||||
|
||||
|
||||
String sql_ok = "";
|
||||
sql_ok = "update tbl_board set c_use = 1 where c_no = " + c_post_no;
|
||||
stmt2.execute(sql_ok);
|
||||
|
||||
|
||||
%>
|
||||
<script>
|
||||
alert("Delete OK");
|
||||
parent.location.href="list.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>&c_board_no=<%=c_board_no%>";
|
||||
</script>
|
||||
<%@include file="/include/db/db_close.jsp"%>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue