최초커밋
This commit is contained in:
294
project/project_contact.asp
Normal file
294
project/project_contact.asp
Normal file
@@ -0,0 +1,294 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include file = "../include/top_menu.asp" -->
|
||||
<%
|
||||
query = "SELECT * "
|
||||
query = query & "FROM depart "
|
||||
query = query & "WHERE d_code = '" & Session("Depart_Code") & "' "
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
tmp_team = rsc("d_mcode")
|
||||
else
|
||||
tmp_team = 9
|
||||
end if
|
||||
rsc.Close
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM project2_pre "
|
||||
query = query & "WHERE write_date >= '" & year(now()) & "-01-01' "
|
||||
'query = query & " AND p_depart = '" & tmp_team & "' "
|
||||
query = query & "ORDER BY CAST(p_sn_tmp AS INT) DESC "
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
tmp_sn = int(rsc("p_sn_tmp")) + 1
|
||||
else
|
||||
tmp_sn = 1
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
|
||||
<script language=javascript>
|
||||
|
||||
|
||||
function search(theURL,winName,features) {
|
||||
if (features == 'x') {
|
||||
var width_size = screen.width - 770;
|
||||
var height_size= screen.height;
|
||||
|
||||
features = "left=" + width_size + " top=5 width=770 height=500 scrollbars=yes statbar=no";
|
||||
}
|
||||
window.open(theURL,winName,features);
|
||||
}
|
||||
|
||||
function subit() {
|
||||
var f = document.pms;
|
||||
|
||||
var m_Sp = /[$\\@\\\#%\^\&\*\[\]\+\{\}\`\~\=\|\:\/\,\;\"\']/;
|
||||
var m_val = document.pms.p_subject_tmp.value;
|
||||
var strLen = m_val.length;
|
||||
var m_char
|
||||
|
||||
for (i = 0; i <= strLen; i++)
|
||||
{
|
||||
m_char = m_val.charAt(i);
|
||||
if(m_char.search(m_Sp) != -1) {
|
||||
alert("Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD>ڰ<EFBFBD> <20>ԷµǾ<C2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
document.pms.p_subject_tmp.focus();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (f.p_subject_tmp.value == "")
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
f.p_subject_tmp.value = "";
|
||||
f.p_subject_tmp.focus();
|
||||
return false;
|
||||
}
|
||||
f.p_subject_tmp.value = f.p_subject_tmp.value.trim();
|
||||
|
||||
if (f.p_contactor.value == "")
|
||||
{
|
||||
alert("<22><EFBFBD><DFBB><EFBFBD><EFBFBD>θ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
f.p_contactor.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (f.p_contact_date.value == "")
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (f.p_cli_class.value == "")
|
||||
{
|
||||
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
f.p_cli_class.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((f.p_cli_company.value == "") || (f.p_cli_code.value == "") || (f.p_cli_type.value == ""))
|
||||
{
|
||||
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (f.p_cli_name.value.trim() == "")
|
||||
{
|
||||
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
f.p_cli_name.value = "";
|
||||
f.p_cli_name.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (f.p_cli_depart.value.trim() == "")
|
||||
{
|
||||
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>μ<EFBFBD><CEBC><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
f.p_cli_depart.value = "";
|
||||
f.p_cli_depart.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
if (f.p_contact_place.value.trim() == "")
|
||||
{
|
||||
alert("ȸ<><C8B8> <20><><EFBFBD>Ҹ<EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
f.p_contact_place.value = "";
|
||||
f.p_contact_place.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (f.p_contact_content.value.trim() == "")
|
||||
{
|
||||
alert("ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
f.p_contact_content.value = "";
|
||||
f.p_contact_content.focus();
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
|
||||
f.action = 'project_contact_ok.asp';
|
||||
//alert('ok');
|
||||
f.submit();
|
||||
}
|
||||
|
||||
function clsit() {
|
||||
document.pms.action = 'project_contact.asp';
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
<script src="/lib/function.js" type="text/javascript1.3"></script>
|
||||
|
||||
<form name="pms" method="post">
|
||||
|
||||
<td width="100%" valign="top">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<!-- Ȯ<><C8AE> -->
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding:5 0 0 0;">
|
||||
<table width="850" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td colspan="4" height="4" ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ӽù<D3BD>ȣ</td>
|
||||
<td width="85%" >
|
||||
<font class="tahoma_blue"><%=tmp_sn%></font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
|
||||
<td >
|
||||
<input type="text" style="width:300;" name="p_subject_tmp">
|
||||
<font class="k_darkorange">* Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD><font color=black>(<28>ѱ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>)</font> </font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" ><3E><EFBFBD><DFBB><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<select name="p_contactor">
|
||||
<option value=""><3E><><EFBFBD><EFBFBD></option>
|
||||
<%
|
||||
query = "SELECT * "
|
||||
query = query & "FROM person "
|
||||
query = query & "WHERE (p_depart <= 10 or (p_depart >= 20 and p_depart <= 49)) and p_admin = 1 and p_resign = 0 "
|
||||
query = query & "ORDER BY p_order "
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
for i = 1 to rsc.RecordCount
|
||||
%>
|
||||
<option value="<%=rsc("p_no")%>"><%=rsc("p_name")%></option>
|
||||
<%
|
||||
rsc.MoveNext
|
||||
next
|
||||
rsc.Close
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<input type="text" style="width:150;" name="p_contact_date" readonly style="text-align:right;">
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" onClick="winopn('/include/calendar.html?actval=p_contact_date')" style="cursor:pointer">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<select name="p_cli_class">
|
||||
<option value=""><3E><><EFBFBD><EFBFBD></option>
|
||||
<option value="<22>ű<EFBFBD>"><3E>ű<EFBFBD></option>
|
||||
<option value="<22><><EFBFBD><EFBFBD>"><3E><><EFBFBD><EFBFBD></option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><></td>
|
||||
<td >
|
||||
<input type="text" style="width:250;" name="p_cli_company" readonly onClick="search('./cli_search.asp?v=1','ClientSearch','width=390,height=381,left=100,top=50,scrollbars=yes')" style="cursor:pointer">
|
||||
<input type="hidden" name="p_cli_code">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ Ÿ<><C5B8></td>
|
||||
<td >
|
||||
<select name="p_cli_type2" disabled>
|
||||
<option value=""><3E>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD></option>
|
||||
<%
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Client_Type "
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
for i = 1 to rsc.RecordCount
|
||||
%>
|
||||
<option value="<%=rsc("c_type_code")%>"><%=rsc("c_type_name")%></option>
|
||||
<%
|
||||
rsc.MoveNext
|
||||
next
|
||||
rsc.Close
|
||||
%>
|
||||
</select>
|
||||
<input type="hidden" name="p_cli_type">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<input type="text" style="width:200;" name="p_cli_name" readonly onClick="search('cp_search.asp?p_cli_code='+document.pms.p_cli_code.value+'&v=1','ClientPeopleSearch','width=390,height=381,left=100,top=50,scrollbars=yes')" style="cursor:pointer">
|
||||
<input type="hidden" name="cp_code">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>μ<EFBFBD></td>
|
||||
<td >
|
||||
<input type="text" style="width:200;" name="p_cli_depart" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<!--tr>
|
||||
<td align="center" >ȸ<><C8B8> <20><><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<input type="text" style="width:200;" name="p_contact_place">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" >ȸ<><C8B8> <20><><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<textarea style="width:99%;height:60;" name="p_contact_content"></textarea>
|
||||
</td>
|
||||
</tr-->
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<textarea style="width:99%;height:60;" name="p_memo"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center" colspan="2" style="padding:10 0 0 0">
|
||||
<img src="/images/common/btn_input.jpg" align="absmiddle" style="cursor:pointer" onClick="subit()">
|
||||
<img src="/images/common/btn_cancel.jpg" align="absmiddle" style="cursor:pointer" onClick="clsit()">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user