|
|
|
|
Leader / 2001-12-17 / ¿ÀÈÄ 6:08:23 / 211.189.136.10
Á¶È¸¼ö : 177
|
[Áú¹®] Á¦´ë·Î Áú¹®.... ÇÒ°Ô¿ë... ¤Ñ¤Ñ;;;6 |
doc ¶ó´Â ÆäÀÌÁö¿¡¼... disc ¶ó´Â »õâÀ» ¿¾ú½À´Ï´Ù.
disc ¿¡´Â
<!--#include file="../include/ConnectString.asp"-->
<!--#include file="../include/ConnectData.asp"-->
<%
Set rsDisc = Server.CreateObject("ADODB.RecordSet")
strSqlDisc="select * from openquery(stc,'SELECT DISTINCT(ºÎ¼CODE), ºÎ¼¸í, Áö»çCODE, Áö»ç¸í FROM Àλç_ÃÖ±Ù¹ß·É WHERE »çÁ÷ÀÏÀÚ IS NULL ORDER BY Áö»çCODE, ºÎ¼CODE ASC')"
rsDisc.Open strSqlDisc,conn,1
%>
<html>
<head>
<title>¢Æ¢Æ¢Æ ÇùÁ¶ºÎ¼ ¼±Åà ¢Æ¢Æ¢Æ</title>
</head>
<link rel="stylesheet" href="../css.css">
<script language="javascript">
<!--
function AddName(to)
{
var RightForm=top.document.frames[1].form;
var strText, strValue;
if (RightForm.chk.length > 0) {
for(var i=0; i < RightForm.chk.length; i++) {
var add=true;
if (RightForm.chk[i].checked) {
for (var j=0; j < to.length; j++) {
if (RightForm.chk[i].value == to.options[j].value)
add = false;
}
strText = RightForm.chk[i].value
strValue = RightForm.chk[i].value
if (add) to.options[to.length] = new Option(strText,strValue);
RightForm.chk[i].checked = false;
}
}
} else {
add = true
if (RightForm.chk.checked) {
for (var j=0; j < to.length; j++) {
if (RightForm.chk.value == to.options[j].value)
add = false;
}
if (add) to.options[to.length] = new Option(RightForm.chk.value,RightForm.chk.value);
RightForm.chk.checked = false;
}
}
}
function procApproverPathDel(approvePath)
{
location.href="../includefiles/procApprovePathDel.asp?approvePath="+approvePath;
}
function putApproverPath(approvePath)
{
top.opener.docForm.approvePath.value = approvePath;
top.close();
}
function winClose()
{
window.close();
}
//-->
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form method="post" name="RightForm">
<table border="1" cellspacing="0" cellpadding="0" width="274" bordercolor="#CCCCCC" bordercolorlight="#666666">
<%
if rsDisc.eof then
%>
<tr>
<td height="18" colspan="2">ºÎ¼°¡ ¾ø°Å³ª ½Ã½ºÅÛ Àå¾Ö°¡ »ý°å½À´Ï´Ù.</td>
</tr>
<%
else
i = 1
Do until rsDisc.EOF
DiscStrgName = rsDisc("Áö»ç¸í")
DiscStrgCode = rsDisc("Áö»çCODE")
DiscDeptName = rsDisc("ºÎ¼¸í")
DiscDeptCode = rsDisc("ºÎ¼CODE")
%>
<tr>
<td height="18"> [<%=DiscStrgName%>]<%=DiscDeptName%>
</td>
<td height="18" width="10">
<input type="checkbox" name="chk" value="<%=DiscStrgName%>-<%=DiscDeptName%>">
</td>
</tr>
<%
rsDisc.MoveNext
i=i+1
loop
end if
%>
<tr>
<td height="18" colspan="2">
<div align="right">
<input type="button" name="Discbutton" value="È®ÀÎ" onClick="AddName(DocForm.approver)">
<input type="button" name="Discbutton2" value="´Ý±â" onClick="winClose()">
</div>
</td>
</tr>
</table>
</form>
<%
rsDisc.Close
Set rsDisc = Nothing
%>
</body>
</html>
ÀÌ·¸°Ô °ªÀÌ DB¿¡¼ ºÒ·¯¿Í¼ ³Ö¾îÁý´Ï´Ù...
¹°·Ð Àߺҷ¯¿ÍÁö±¸¿ä...
doc ÆäÀÌÁö¿¡´Â
<form method="post" name="docForm" encType="multipart/form-data">
<select name=approver size=5 multiple style="WIDTH: 260px">
<option value="">*************** ¼±ÅÃµÈ ºÎ¼ ***************</option>
</select>
</form>
ÀÌ°÷¿¡... ¤Ñ¤Ñ¤» ¼ø¼´ë·Î...
±×·¯´Ï±ñ... ¼±ÅÃµÈ ºÎ¼ Ä ¾È¿¡...
È«º¸ºÎ
±âȹºÎ
ºñ¼½Ç
ÀÌ·¸°Ô ³Ö°í ½ÍÀºµ¥¿ä... -_-;;
½ºÅ©¸³Æ®¸¦ ¿Ï¼ºÀ» ¸øÇÏ°Ú¾î¿ä...
Àú±â... addName(to)
À̰ǵ¥¿ä... ¤Ñ¤Ñ;;; Æۿ°Š¶â¾î°íÄ¡´Â ÁßÀε¥...
¤Ì_¤Ì ³Ñ ½½ÇÁ±º¿ä..
|
|
|
|