CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Regarding the calendar component

Print topic Send  topic

Author Message
martin47

Posts: 35
Posted: 06/11/2008, 11:42 AM

Hello, Ive been playing around with the calendar component. I was owndering if someone can help me "master" on it. There are two things I havent achieved that are probably related to Css.

1º Is it possible to color differently the dells that have activities that the empty ones?
2º The text field that shows the activities, I converted it to a link, and I cant find out how to center it on the cell, is that possible?

Thanks ahead.
View profile  Send private message
wkempees


Posts: 1679
Posted: 06/11/2008, 4:28 PM

Using Search, top menu of Forum, find:
http://forums.codecharge.com/posts.php?post_id=97602&s_...=calendar+color

Center, open calendar in HTM Mode, find the eventlabel and in the <td> before it do
<td align="center">

I think,
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
martin47

Posts: 35
Posted: 06/12/2008, 8:17 AM

Thanks to the link to the colored cell.I´ll give it a try. The TD center, it does not work for me. It does not affect the label.
View profile  Send private message
wkempees


Posts: 1679
Posted: 06/12/2008, 11:26 AM

if your code looks like this:
  
                <td {Style}>{DayNumber}   
                  <!-- BEGIN EventRow -->  
                  <div class="CalendarEvent">  
                    <a href="{EventDescription_Src}" id="eventsEventDescription">Event</a>   
                  </div>  
 <!-- END EventRow --></td>  
The disregard the <TD align="center">, restore it to the original, as in above code snippet.

The solution is:
  
                <td {Style}>{DayNumber}   
                  <!-- BEGIN EventRow -->  
                  <div class="CalendarEvent" style="text-align: center">  
                    <a href="{EventDescription_Src}" id="eventsEventDescription">Event</a>   
                  </div>  
 <!-- END EventRow --></td>  
The explanation is:
<div class="CalendarEvent" is making it align left, as it is so defined in the style class.
What we need to do is to override the class, so we add
style="text-align: center"

Walter

_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
martin47

Posts: 35
Posted: 06/12/2008, 1:29 PM

Thanks for the explanation, as a beginner it helps me that kind of detailed explanation. It is working great, thanks.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.