⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 yuangong.asp

📁 asp_erp 源碼 附詳盡使用說明及數據庫
💻 ASP
📖 第 1 页 / 共 2 页
字号:
																  end if %>'></td>
			<td align="center" ><input name="gongzhong" type="text"  size="10" value='<% if isedit then
		                                                         response.write rs("gongzhong")
																  end if %>'></td>


			<td align="center">
			<select name="yajin" size="1">
			<option <% if isedit then
			if rs("yajin")="有" then
			%> selected="selected"<%end if%><%end if%>>有</option>
			<option <% if isedit then
			if rs("yajin")="无" then
			%> selected="selected"<%end if%><%end if%>>无</option>
			</select>
			</td>


			<td align="center">
			<select name="baoxian" size="1">
			<option <% if isedit then
			if rs("baoxian")="有" then
			%> selected="selected"<%end if%><%end if%>>有</option>
			<option <% if isedit then
			if rs("baoxian")="无" then
			%> selected="selected"<%end if%><%end if%>>无</option>
			</select>
			</td>


			<td align="center">
			<input name="ruchangtime" onFocus="show_cele_date(ruchangtime,'','',ruchangtime)" type="text"  size="10"  value='<% if isedit then
		                                                         response.write rs("ruchangtime")
																 else
																 response.write date()
																  end if %>'></td>




			<td align="center">
			<select name="dangan" size="1">
			<option <% if isedit then
			if rs("dangan")="有" then
			%> selected="selected"<%end if%><%end if%>>有</option>
			<option <% if isedit then
			if rs("dangan")="无" then
			%> selected="selected"<%end if%><%end if%>>无</option>
			</select>
			</td>


</tr>






<tr><td width="96%" colspan="8" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">工作变动情况</td></tr>

<tr><td colspan="8"><textarea name="biandong" cols="100" rows="3"><% if isedit then
		                                                         response.write rs("biandong")
  end if %></textarea></td>

</tr>
<tr><td width="96%" colspan="8" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">备  注</td></tr>

<tr><td colspan="8"><textarea name="content" cols="100" rows="2"><% if isedit then
		                                                         response.write rs("content")
  end if %></textarea></td>

</tr>














<tr>
			<td width="96%" colspan="9" align="center"><input type="submit" class="button" value="<% if isedit then
		                                                         response.write "编辑"
																 else
																 response.write "添加"
																  end if %>"> </td>
</tr>


          </form>
		  
           </table>
        </fieldset>
		<%end if%><br><br><br>



<fieldset style="width:98%">

<legend>员 工 明 细 列 表</legend>
			<form action="yuangong.asp" method="post" name="selform" >
  <table width="100%"  border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8" align="center">
    <tr> 
      
      <td width="100%" align="center" valign="top">
	 
        <table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">
          <tr class="but"> 
			<td width="10%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">编号</td>
			<td width="10%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">姓名</td>
            <td width="10%" height="12" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">性别</td>
			<td width="10%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">年龄</td>


			<td width="15%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">隶属部门</td>
			<td width="10%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">电话号码</td>
			<td width="10%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">入厂时间</td>
			<td width="10%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">上传相片</td>
			<td width="10%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">详细档案</td>


            <td width="5%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">操 作</td>
          </tr>

		 <%
PageShowSize = 10            '每页显示多少个页
MyPageSize   = 20          '每页显示多少条
If Not IsNumeric(Request("page")) Or IsEmpty(Request("page")) Or Request("page") <=0 Then
MyPage=1
Else
MyPage=Int(Abs(Request("page")))
End if
set rs=server.CreateObject("ADODB.RecordSet")
search=request("search")
if search<>"" then
bumen1=request("bumen")
keyword=request("keyword")
rs.Source="select* from yuangong where bumen like '%"&bumen1&"%' and  name like '%"&keyword&"%' order by id desc"
else
rs.Source="select* from yuangong order by id desc"
end if
rs.Open rs.Source,conn,1,1
if not rs.EOF then
rs.PageSize     = MyPageSize
MaxPages         = rs.PageCount
rs.absolutepage = MyPage
total            = rs.RecordCount
for i=1 to rs.PageSize
if not rs.EOF then
%>

<tr <%if i mod 2 =0 then%> bgcolor="#FFFFF4"<%end if%>>
<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><a href="yuangong.Asp?id=<%=rs("ID")%>&action=edit">XF00<%=rs("id")%></a></td>
<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("name")%><%if rs("name")="" then%>&nbsp;<%end if%></td>
<td height="12" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("sex")%><%if rs("sex")="" then%>&nbsp;<%end if%></td>
<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("Condition")%><%if rs("Condition")="" then%>&nbsp;<%end if%></td>


<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("bumen")%><%if rs("bumen")="" then%>&nbsp;<%end if%></td>
<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("tel")%><%if rs("tel")="" then%>&nbsp;<%end if%></td>
<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("ruchangtime")%><%if rs("ruchangtime")="" then%>&nbsp;<%end if%></td>
<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><a href="admin_add.Asp?id=<%=rs("ID")%>" title="点击上传<%=rs("Name")%>照片信息">上传相片</a></td>
<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><a href="yginfo.Asp?id=<%=rs("ID")%>&action=view" title="点击浏览<%=rs("Name")%>详细档案信息">进入</a></td>


<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><input name="selBigClass" type="checkbox" id="selBigClass" value="<%=rs("ID")%>"></td>
</tr>


<%
rs.MoveNext
end if
next
end if

%>
<tr><td align="right" colspan="10" height="22" class="but1">
共 <%=total%> 条,当前第 <%=Mypage%>/<%=Maxpages%> 
            页,每页 <%=MyPageSize%> 条 
            <%
			if search<>"" then
			url="yuangong.asp?bumen="&bumen1&"&name="&keyword&"&search=search&"
			else
            url="yuangong.asp?"
			end if				
PageNextSize=int((MyPage-1)/PageShowSize)+1
Pagetpage=int((total-1)/rs.PageSize)+1

if PageNextSize >1 then
PagePrev=PageShowSize*(PageNextSize-1)
Response.write "<a class=black href='" & Url & "page=" & PagePrev & "' title='上" & PageShowSize & "页'>上一翻页</a> "
Response.write "<a class=black href='" & Url & "page=1' title='第1页'>页首</a> "
end if
if MyPage-1 > 0 then
Prev_Page = MyPage - 1
Response.write "<a class=black href='" & Url & "page=" & Prev_Page & "' title='第" & Prev_Page & "页'>上一页</a> "
end if

if Maxpages>=PageNextSize*PageShowSize then
PageSizeShow = PageShowSize
Else
PageSizeShow = Maxpages-PageShowSize*(PageNextSize-1)
End if
If PageSizeShow < 1 Then PageSizeShow = 1
for PageCounterSize=1 to PageSizeShow
PageLink = (PageCounterSize+PageNextSize*PageShowSize)-PageShowSize
if PageLink <> MyPage Then
Response.write "<a class=black href='" & Url & "page=" & PageLink & "'>[" & PageLink & "]</a> "
else
Response.Write "<B>["& PageLink &"]</B> "
end if
If PageLink = MaxPages Then Exit for
Next

if Mypage+1 <=Pagetpage  then
Next_Page = MyPage + 1
Response.write "<a class=black href='" & Url & "page=" & Next_Page & "' title='第" & Next_Page & "页'>下一页</A>"
end if

if MaxPages > PageShowSize*PageNextSize then
PageNext = PageShowSize * PageNextSize + 1
Response.write " <A class=black href='" & Url & "page=" & Pagetpage & "' title='第"& Pagetpage &"页'>页尾</A>"
Response.write " <a class=black href='" & Url & "page=" & PageNext & "' title='下" & PageShowSize & "页'>下一翻页</a>"
End if
rs.Close
set rs=nothing
%>
&nbsp;&nbsp;&nbsp;&nbsp;<%if oskey="supper" or oskey="admin" then%>
        <input type="checkbox" name="checkbox" value="checkbox" onClick="javascript:SelectAll()"> 选择/反选
              <input onClick="{if(confirm('此操作将删除该信息!\n\n确定要执行此项操作吗?')){this.document.selform.submit();return true;}return false;}" type=submit value=删除 name=action2> 
              <input type="Hidden" name="action" value='del'><%end if%></td></tr>
        </table>

	  
</td>
    </tr>

  </table>
</fieldset>
</form><br>




<fieldset style="width:98%"><legend>员 工 信 息 搜 索</legend>
        <table width="90%" border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">
         
		  <form name="search" method="post" action="yuangong.asp">
		  <tr><input name="search" type="hidden" value="search">
            <td height="18" align="center" width="20%">
			<select name="bumen" size="1">
			<option value="">所有部门</option>
			<%
	       set rs2=server.createobject("adodb.recordset")
		   rs2.open "select * from department",conn,1,1
		   if not rs2.eof then
		   do while not rs2.eof
		   depname=rs2("depname")
		   %>
		   <option value="<%=rs2("depname")%>"><%=rs2("depname")%></option>
			<%
			rs2.movenext
			loop
			end if
			rs2.close
			set rs2=nothing
			%></select></td>




            <td align="center" width="50%">姓名: <input name="keyword" type="text"  size="25"></td>
                      
			<td align="center" width="30%" ><input type="submit"  value="查 找"> </td>
          </tr></form>
		 </fieldset> 
           </table>



			</TD>
              </TR>
          </table>
		          

  </TBODY>
</TABLE>
<%end sub%>
<P>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  <TBODY>
  <TR vAlign=center>
    <TD align=middle width="100%"><!--#include file="footer.htm"--></TD>
  </TR></TBODY></TABLE></P></BODY></HTML>


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -