±Ý¾×À» ¼­ºê½ºÆ®¸µÀ̳ª math¸¦ ÀÌ¿ëÇؼ­ ÄÞ¸¶¸¦ Ãß°¡ÇØÁÖ´Â ¹æ¹ý¾øÀ»±î¿ä


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

±Û¾´ÀÌ :°­Á¤È­ 2000³â 3¿ù 31ÀÏ 16:56:49

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>Untitled Document</title>


<style type="text/css">


</style>


</head>


<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" topmargin="10"
leftmargin="15">


<p><a name="top"><img src="atoz/atozlogo.gif" width="120" height="23" border="0">
</a>
<table border="0" cellpadding="3" width="630">
<tr>
<td width="200" align="center" valign="top"><table border cellpadding="3"
cellspacing="0" width="100%" bordercolordark="white" bordercolorlight="#666666">
<tr>
<td height="25" align="center" colspan="2" bgcolor="#000099"><p><font
color="white">¼Ò&nbsp;&nbsp;&nbsp;&nbsp;°³</font></td>
</tr>
<tr>
<td></td>
</tr>
</table>
<p><br> <img src="atoz/atozmaineuropa.gif" width="201" height="121"
border="0"> <br> <br> <a href="#1">¿Ü°ü</a> | <a href="#2">³»°ü</a>
| <a href="#3">¼º´É</a> | <a href="#4">¾ÈÀüÀåÄ¡</a></td>
<td valign="top"><table border cellpadding="0" cellspacing="0" bordercolor="gray"
bordercolordark="white">




<%@ language="java" import="java.sql.*,java.io.*, java.util.Date" %>


<%


Connection con = null;


// String mdnd = request.getParameter(" MAMDND");
String pageS = request.getParameter("PAGE");
String mdno = request.getParameter("MDNO");
String check = request.getParameter("CHECK");
String sasq = request.getParameter("SASQ");
String pic1 ="";
check = check.trim();



int pagecount = 0;
int querycount = 0;
int totalpage = 0;
int totalcount = 0;



Vector sasqList = new Vector();
Vector mdndList = new Vector();
Vector mcprList = new Vector();
Vector saamList = new Vector();
Vector cybeList = new Vector();


if (pageS == null ) pagecount = 1;
else pagecount = Integer.parseInt(pageS);


String query = "";
char mark = '\u0022';

try
{
if (con != null)
{
try { con.close(); } catch (Exception e) {}
}

java.sql.DriverManager.registerDriver (new com.ibm.db2.jdbc.app.DB2Driver ());


con = java.sql.DriverManager.getConnection("jdbc:db2://" +"PID400M" + ";naming=sql;errors=full;date format=iso","AUTO", "AUTO");



} catch(Exception e){
System.out.println("Error : "+e.getMessage());
}


try
{

Statement stmt = con.createStatement();

query = new String("SELECT SIPIC1 FROM MCATDTA.SINCAR WHERE SISASQ = "+sasq+" ");

ResultSet rs = stmt.executeQuery(query);
while(rs.next())
{
pic1 = rs.getString(1);
}



query = new String("SELECT SISASQ, SIMDND, SISAAM, SIMCPR, SICYBE FROM MCATDTA.SINCAR WHERE SISASQ = '"+sasq+"' ORDER BY SISASQ ASC ");
//out.println(query +"<br>");
rs = stmt.executeQuery(query);

while(rs.next())
{

sasqList.addElement(rs.getString(1));
mdndList.addElement(rs.getString(2));
saamList.addElement(rs.getString(3));
mcprList.addElement(rs.getString(4));
cybeList.addElement(rs.getString(5));
}
querycount = sasqList.size();
totalpage = querycount / 15 + 1;

if(pagecount <= 0) pagecount = 1;
else if(pagecount > totalpage) pagecount = totalpage;

if(querycount == 15 ) totalpage = 1;

rs.close();
stmt.close();

}
catch(SQLException ex)
{
out.println("<hr>*** SQLException caught ***<p>");
while(ex != null)
{
out.println("SQLState : " + ex.getSQLState() + "<br>");
out.println("Message : " + ex.getMessage() + "<br>");
out.println("Vendor : " + ex.getErrorCode() + "<br>");
ex = ex.getNextException();
}
}

%>




<table border="0" cellspacing="1" width="100%">


//--¾Æ·¡ÀÇ saamlost.elementAt(i)¿Í ³ª¸ÓÁö°ÍµéÀÌ ±Ý¾×À̾ ¼­ºê½ºÆ®¸µÀ» ÀÌ¿ëÇÏ¿© ÄÞ¸¶¸¦ ³Ö°í½ÍÀºµ¥ ¹æ¹ýÀ» ¸ð¸£°Ú½À´Ï´Ù.



<tr>
<td width="180" height="25" align="center" bgcolor="#000099"><p><font
color="white">¼¼ºÎÂ÷Á¾</font></td>
<td width="82" align="center" bgcolor="#000099"><p><font
color="white">Â÷·®°¡°Ý</font></td>
<td width="75" align="center" bgcolor="#000099"><p><font
color="white">ÇÒÀΰ¡°Ý</font></td>
<td width="70" align="center" bgcolor="#000099"><p><font
color="white">»çÀ̹ö¸Ó´Ï</font></td></tr>



<%
int j = 0;
if (querycount < 15)
j = 0;
else
j = (pagecount-1)*15;


int count = 1;


if( totalpage <= 1)
count = querycount;
else
if(pagecount*15 > querycount)
count = querycount;
else
count = pagecount*15;


for(int i = j; i < count; i++) {
%>
//--¾Æ·¡ÀÇ saamlost.elementAt(i)¿Í ³ª¸ÓÁö°ÍµéÀÌ ±Ý¾×À̾ ¼­ºê½ºÆ®¸µÀ» ÀÌ¿ëÇÏ¿© ÄÞ¸¶¸¦ ³Ö°í½ÍÀºµ¥ ¹æ¹ýÀ» ¸ð¸£°Ú½À´Ï´Ù.


<tr>
<td width="200" height="20" align="left" bgcolor="#E7E7E7"><p><font face="Arial"
size="2" color="black"><a href="newcar3.jsp?SASQ=<%= sasqList.elementAt(i) %>">
<%= mdndList.elementAt(i) %></a></font></td>
<td height="20" align="right" bgcolor="#FDFFFF"><p><font
face="Arial" size="2"><%= saamList.elementAt(i) %> </font></td>
<td height="20" align="right" bgcolor="#FFEBE1"><p><font face="Arial"
size="2" color="black"><%= mcprList.elementAt(i) %></font></td>
<td height="20" align="right" bgcolor="#FFECEC"><p><font face="Arial"
size="2" color="black"><%= cybeList.elementAt(i) %></font></td>
</tr>


<% } %>
</table> </td>
</tr>
</table>
</body>


</html>


´ÙÀ½ ±Ûµé:



À̾ ±Û¿Ã¸®±â(´äÇϱâ)

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
HTML ÅÂ±× Æ÷ÇÔ ¿©ºÎ: HTML ¹®¼­ÀÏ °æ¿ì üũ
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]