PEAK XOOPS - Re: Coming Events Block Display problem in englishin japanese

Re: Coming Events Block Display problem

List posts in the topic

normal Re: Coming Events Block Display problem

msg# 1.1.1.1
depth:
3
Previous post - Next post | Parent - No child | Posted on 2004/2/12 6:49
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi madsen.

I've just read your article with care, and correctly understood it.
Coming events block don't care today or tomorrow, only calculate inside 24 hour or not.
This is not a bug but a spec.

If you want to change dot-gif by today or not, you can implement with rewrite a template only.
This is sample code for pical_coming_schedule.html
If you don't have any timezone differences, this templates will work correctly.

<{if $block.num_rows == 0}>
  <{$block.lang_PICAL_MB_NOEVENT}>
<{/if}>

<{foreach item=event from=$block.events}>

    <dl>
      <dt>
        <{if $event.distance == 0}>
          <font size='2'><img border='0' src='<{$block.images_url}>/dot_started.gif' />  <{$block.lang_PICAL_MB_CONTINUING}> - <{$event.end_desc}></font>
        <{elseif $event.distance == 1 && date('j',$event.start) == date('j') }>
          <font size='2'><img border='0' src='<{$block.images_url}>/dot_today.gif' />  <{$event.start_desc}> - <{$event.end_desc}></font>
        <{elseif $event.distance == 2 && date('j',$event.start) == date('j') }>
          <font size='2'><img border='0' src='<{$block.images_url}>/dot_today.gif' />  <{$event.start_desc}></font>
        <{else}>
          <font size='2'><img border='0' src='<{$block.images_url}>/dot_future.gif' />  <{$event.start_desc}></font>
        <{/if}>
      </dt>
      <dd style='margin-left:20px;'>
        <font size='2'><a href='<{$block.get_target}>?smode=Daily&action=View&event_id=<{$event.id}>&caldate=<{$block.caldate}>' class='calsummary'><{$event.summary}></a></font>
      </dd>
    </dl>

<{/foreach}>

  <{if $block.num_rows_rest > 0}>
    <table border='0' cellspacing='0' cellpadding='0' width='100%'>
      <tr>
        <td align='right'><small><{$block.lang_PICAL_MB_RESTEVENT_PRE}> <{$block.num_rows_rest}> <{$block.lang_PICAL_MB_RESTEVENT_SUF}></small></td>
      </tr>
    </table>
  <{/if}>

  <{if $block.insertable <> false}>
    <dl>
      <dt>
          <font size='2'><a href='<{$block.get_target}>?smode=Daily&action=Edit&caldate=<{$block.caldate}>'><img src='<{$block.images_url}>/addevent.gif' border='0' width='14' height='12' /><{$block.lang_PICAL_MB_ADDEVENT}></a></font>
      </dt>
    </dl>
  <{/if}>
Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!