Link to home
Start Free TrialLog in
Avatar of rtcomp
rtcomp

asked on

Hours View

View question with browser maximized.
Im dealing with scheduling and time worked. I choose a date and the following data and format needs to be display.

Account:00000  AM                                                      PM
                             12   03   06   09   12   03   06   09   12
                             ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Doe, Jane         |---------------------|
Doe, John               |-----------------------|

Above shows Jane worked from 12 AM to 1:30 PM and John worked from 1:30PM to 7:00PM

I will be pulling the data off of a SQL Server, I need to create an ASP page with the above type information on it. Any ideas?
Avatar of Mark Franz
Mark Franz
Flag of United States of America image

Randal L. Schwartz wrote a nice article in last months Web Techniques that does something like this...  http://www.webtechniques.com/archives/2001/09/perl/  

While it is a Perl solution it should give you a few ideas...

Interestinng concept... I look forward to seeing some ideas.
Avatar of rtcomp
rtcomp

ASKER

I have no problem with getting, sorting or spanning the date. I need a different way to show the data. Thanks for the link though.
create a barchart with tables and if the employee worked during that time then fill in the cell with a background color otherwise fill it with a space.

Here is a link to a number of charts.
http://www.aspin.com/func/search?tree=aspin&qry=bar+charts&cat=

here is something similiar that I did that creates a bar chart on %project completion.

<%
 Do While Not rs.EOF
   ProjectName = rs("Project_Name")
   Response.Write "<tr><td>" & ProjectName & "</td>"
   statWrite = 0
   ProjStatus = Cint(rs("PercentComplete"))
   end_date = rs("EstCompDate")
   Do While statWrite <> 100
    If statWrite < ProjStatus And ProjStatus <> 0 Then
     bgColor = "#66cc66"
    Else
     bgColor = "#cc6666"
    End IF
    Response.Write "<td bgcolor='" & bgcolor & "'>&nbsp;</td>"
    statWrite = statWrite + 5
   Loop
  Response.Write "<td align='right'>" & end_date & "</td></tr>"
  rs.MoveNext
 Loop
%>
Avatar of rtcomp

ASKER

I created a page using a gif and a MSFlexGrid. Check it out at http://www.angelfire.com/mn3/jdallen/day.html
rtcomp:

You have many open questions:

https://www.experts-exchange.com/jsp/qShow.jsp?qid=20257734
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20230389
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20099475
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20176575
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20175054
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20174181
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20174126
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20160264
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20149950
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20127926

To assist you in your cleanup, I'm providing the following guidelines:

1.  Stay active in your questions and provide feedback whenever possible. Likewise, when feedback has not been provided by the experts, commenting again makes them receive an email notification, and they may provide you with further information. Experts have no other method of searching for questions in which they have commented, except manually.

2.  Award points by hitting the Accept Comment As Answer button located above and to the left of that expert's comment.

3.  When grading, be sure to read:
https://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp#3
to ensure that you understand the grading system here at EE. If you grade less than an A, you must explain why.

4.  Questions that were not helpful to you should be PAQ'd (stored in the database for their valuable content?even if not valuable to you) or deleted. To PAQ or delete a question, you must first post your intent in that question to make the experts aware. Then, if no experts object after three full days, you can post a zero-point question at community support to request deletion or PAQ. Please include the link(s) to the question(s).
CS:  https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
At that point, a moderator can refund your points and PAQ or delete the question for you. The delete button does not work.

5.  If you fail to respond to this cleanup request, I must report you to the Community Support Administrator for further action.

Our intent is to get the questions cleaned up, and not to embarrass or shame anyone. If you have any questions or need further assistance at all, feel free to ask me in this question or post a zero-point question at CS. We are very happy to help you in this task!


thanks!
amp
community support moderator

1/24
ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101 or Netminder will return to finalize these if still open in seven days.  Please post closing recommendations before that time.

Question(s) below appears to have been abandoned. Your options are:
 
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> You cannot delete a question with comments, special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process for further information, if needed.  https://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site.  If you are an EE Pro user, use the Power Search option to find them.  Anytime you have questions which are LOCKED with a Proposed Answer but does not serve your needs, please reject it and add comments as to why.  In addition, when you do grade the question, if the grade is less than an A, please add a comment as to why.  This helps all involved, as well as future persons who may access this item in the future to seek help.

To view your open questions, please click the following link(s) and keep them all current with updates.
https://www.experts-exchange.com/questions/Q.20127926.html
https://www.experts-exchange.com/questions/Q.20160264.html
https://www.experts-exchange.com/questions/Q.20175054.html
https://www.experts-exchange.com/questions/Q.20099475.html
https://www.experts-exchange.com/questions/Q.20257734.html
https://www.experts-exchange.com/questions/Q.20149950.html
https://www.experts-exchange.com/questions/Q.20174126.html
https://www.experts-exchange.com/questions/Q.20174181.html




PLEASE DO NOT AWARD THE POINTS TO ME.  
 
------------>  EXPERTS:  Please leave any comments regarding your closing recommendations if this item remains inactive another seven (7) days.  Also, if you are interested in the cleanup effort, please click this link https://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643

Moderators will finalize this question if still open in 7 days, by either moving this to the PAQ (Previously Asked Questions) at zero points, deleting it or awarding expert(s) when recommendations are made, or an independent determination can be made.  Expert input is always appreciated to determine the fair outcome.
 
Thank you everyone.
 
Moondancer
Moderator @ Experts Exchange
ASKER CERTIFIED SOLUTION
Avatar of Netminder
Netminder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial