出差申请单单修改后,修改部分的内容用不同的颜色显示
出差申请单单修改后,修改部分的内容用不同的颜色显示,该如何实现
表单代码:
<form name="form2" method="post" action="cc_editsave2.asp">
<table width="98%" height="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr height="80">
<td>
<table width="600" align="left" bgcolor="#FFFFFF">
<tr height="40">
<td width="500" height="30" ><img src="../Images/ico/ico16.gif" width="40" height="30" /><font size="+3"><strong>出差申请单</strong></font></td>
<td width="250" align="right">
<input name="submit" type="submit" onClick="return form_check();" value="保存">
<input type="reset" value="取消"></td>
</tr>
</table>
</td>
</tr>
<TR>
<TD valign="top">
<table width="600" border="0" cellpadding="1" cellspacing="1" bgcolor="#3333CC">
<tr height="30" bgcolor="#FFFFFF">
<td width="100" align="center" bgcolor="#3399FF"><font color="#FFFFFF"><b>申 请 人</b></font></td>
<td width="500" height="30" align="left" bgcolor="#FFFFFF"> <input name="ccname" id="ccname" style="width:30%;" value="<%=rs("ccname")%>" readonly>
<input name="id" type="hidden" value="<%=rs("id")%>"></td>
</tr>
<tr height="30" bgcolor="#FFFFFF">
<td align="center" bgcolor="#3399FF"><font color="#FFFFFF"><b>部 门</b></font></td>
<td align="lent"> <input name="department" value="<%=rs("department")%>" style="width:30%;" readonly></td>
</tr>
<tr height="30" bgcolor="#FFFFFF">
<td align="center" bgcolor="#3399FF"><font color="#FFFFFF"><b>职 称</b></font></td>
<td align="lent"> <input name="duties" value="<%=rs("duties")%>" style="width:30%;" readonly></td>
</tr>
<tr height="30" bgcolor="#FFFFFF">
<td align="center" bgcolor="#3399FF"><font color="#FFFFFF" ><b>出差日期</b></font></td>
<td align="left"> <input name="startdate" id="startdate" style="width:30%" onBlur="datecheck(this.value)" value="<%=FormatTime(rs("startdate"))%>">
<font size="-1" color="#FF0000">*请输入10位日期,如:2012-01-01</font></td>
</tr>
<tr height="30" bgcolor="#FFFFFF">
<td align="center" bgcolor="#3399FF"><font color="#FFFFFF" ><b>出差时间</b></font></td>
<td align="left"> <input name="starttime" style="width:30%" onBlur="timecheck(this.value)" value="<%=rs("starttime")%>">
<font size="-1" color="#FF0000">*请输入4位24小时格式的时间,如:1305</font></td>
</tr>
<tr height="30" bgcolor="#FFFFFF">
<td align="center" bgcolor="#3399FF"><font color="#FFFFFF" ><b>返回日期</b></font></td>
<td align="left"> <input name="enddate" id="enddate" style="width:30%" onBlur="datecheck(this.value)" value="<%=FormatTime(rs("enddate"))%>">
<font size="-1" color="#FF0000">*请输入10位日期,如:2012-01-01</font></td>
</tr>
<tr height="30" bgcolor="#FFFFFF">
<td align="center" bgcolor="#3399FF"><font color="#FFFFFF"><b>返回时间</b></font></td>
<td align="left"> <input name="endtime" style="width:30%" onBlur="timecheck2(this.value,document.form2.starttime.value)" value="<%=rs("endtime")%>">
<font size="-1" color="#FF0000">*请输入4位24小时格式的时间,如:1700</font></td>
</tr>
<tr height="30" bgcolor="#FFFFFF">
<td align="center" bgcolor="#3399FF"><font color="#FFFFFF"><b>预支现金</b></font></td>
<td align="left"> <input name="money" id="money" style="width:95%" value="<%=rs("money")%>"></td>
</tr>
<tr height="30" bgcolor="#FFFFFF">
<td align="center" bgcolor="#3399FF"><font color="#FFFFFF"><b>出差任务</b></font></td>
<td> <select name="duty" id="duty" style="width:80;">
<option value="送货" <%if rs("duty")="送货" then response.Write "selected"%>>送货</option>
<option value="收款" <%if rs("duty")="收款" then response.Write "selected"%>>收款</option>
<option value="售后服务" <%if rs("duty")="售后服务" then response.write "selected"%>>售后服务</option>
<option value="开发" <%if rs("duty")="开发" then response.Write "selected"%>>开发</option>
<option value="其他" <%if rs("duty")="其他" then response.Write "selected"%>>其他</option>
</select> </td>
</tr>
<tr height="30" bgcolor="#FFFFFF">
<td align="center" bgcolor="#3399FF"><font color="#FFFFFF"><b>预定行程</b></font></td>
<td align="left"> <input name="route" id="route" style="width:95%" value="<%=rs("route")%>"></td>
</tr>
<tr height="30" bgcolor="#FFFFFF">
<td align="center" bgcolor="#3399FF"><font color="#FFFFFF"><b><br>
完<br>
<br>
成<br>
<br>
工<br>
<br>
作<br>
<br>
计<br>
<br>
划<br>
<br>
<br></b></font></td>
<td align="left" valign="top"><textarea name="plan" id="plan" style="width:98%" cols="36" rows="15" class="bgLine"><%=rs("plan")%></textarea></td>
</tr>
<tr height="30" bgcolor="#FFFFFF">
<td align="center" bgcolor="#3399FF"><font color="#FFFFFF"><b>备<br>
<br>
<br>
<br>
注</b></font></td>
<td align="left" valign="top"><textarea name="remark" id="remark" style="width:98%" cols="36" rows="15" class="bgLine"><%=rs("remark")%></textarea></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
[解决办法]
你可以保存每次出差申请单的修改记录,比较和前一次不同的内容,然后设置其他颜色。
[解决办法]
那你就是把比较的结果保存不就好了?这样只要直接显示了