4)For admin/Attendance.aspx ( data come from filter when you do not go out)
DataBase ManageAttendance sp ko open kar ke colour part ko add karke alter kar lena ya pura copy kar ke execute kar lena es SP ko alter proc [dbo].[ManageAttendance] @Id int, @User_Id int=null, @Coming_Time datetime=null, @Going_Time datetime=null, @ByDate datetime=null, @Status nvarchar(50)=null, @Coming_Message nvarchar(max)=null, @Going_Message nvarchar(max)=null, @Actiontype char(10) as begin if(@Actiontype='Coming') begin insert into tbl_Attendance(User_Id,Coming_Time,Going_Time,Status,Coming_Message) values (@User_Id,@Coming_Time,@Going_Time,@Status,@Coming_Message) end else if(@Actiontype='select1') begin select * from tbl_Attendance where User_Id=@User_Id end else if(@Actiontype='midtime') begin select * from tbl_Attendance where User_Id=@User_Id and cast(Coming_Time as Date) between cast(@Coming_Time as Date) and cast(@Going_Time as Date) ...