websiteWebsite
codingteam CodingTeam
A free forge, lightweight and extensible.

 

Browse the code

Revision log Information on the revision
Revision: 237 (differences)
Author: xbright
Log message: * Updated project's timeline: it's now higly configurable!
* Extended abilities of Database::select()
Change revision:
    <h1><?=i18n('Timeline');?></h1>
 
    <div class="feed" style="background-image: url('public/images/feed.png');">
      <?=$feed;?></div>
 
    <form action="<?=getURLbyTags($this->page);?>/" method="get">
      <div class="timelineconf">
        <h4 onclick="javascript:hideorshow();"><?=i18n('Configure this timeline');?></h4>
        <div id="formconf">
        <p>
          <?=i18n('View activity from:');?>&nbsp;
          <input type="text" name="date" value="<?=$tdate;?>" size="8" /><br />
          <?=i18n('Days back:');?>&nbsp;
          <input type="text" name="days" value="<?=$tdays;?>" size="2" /><br />
        </p>
        <p>
          <label><input type="checkbox" name="download" value="1" <?=(($tfeeds['download']) ? 'checked="checked"' : '');?> />&nbsp;<?=i18n('Download');?></label>
          <label><input type="checkbox" name="news" value="1" <?=(($tfeeds['news']) ? 'checked="checked"' : '');?> />&nbsp;<?=i18n('News');?></label>
          <label><input type="checkbox" name="bugs" value="1" <?=(($tfeeds['bugs']) ? 'checked="checked"' : '');?> />&nbsp;<?=i18n('Bugs');?></label>
          <label><input type="checkbox" name="bugs-updates" value="1" <?=(($tfeeds['bugs-updates']) ? 'checked="checked"' : '');?> />&nbsp;<?=i18n('Bugs updates');?></label>
          <label><input type="checkbox" name="doc" value="1" <?=(($tfeeds['doc']) ? 'checked="checked"' : '');?> />&nbsp;<?=i18n('Documentation');?></label>
          <label><input type="checkbox" name="code" value="1" <?=(($tfeeds['code']) ? 'checked="checked"' : '');?> />&nbsp;<?=i18n('Code');?></label>
          <label><input type="checkbox" name="forum" value="1" <?=(($tfeeds['forum']) ? 'checked="checked"' : '');?> />&nbsp;<?=i18n('Forum');?></label>
          <label><input type="checkbox" name="forum-answers" value="1" <?=(($tfeeds['forum-answers']) ? 'checked="checked"' : '');?> />&nbsp;<?=i18n('Forum answers');?></label>
        </p>
        <p>
          <input type="submit" value="<?=i18n('Update');?>" class="submit" />
        </p>
        <span style="clear: both;display: block;"></span>
        </div>
      </div>
    </form>
 
    <? foreach ($timeline as $output): ?>
      <h2><?=$output[0];?></h2>
      <ul class="timeline">
        <? foreach ($output[1] as $item): ?>
          <li>
            <em><?=$item['time'];?></em>
            <?=i18n('%(title)s by %(nick)s in %(type)s', array('title' => $item['title'], 'nick' => $item['nick'], 'type' => $item['type']));?>
            <br /><span style="font-style: italic;" class="text_normal"><?=$item['text'];?></span>
          </li>
        <? endforeach; ?>
      </ul>
    <? endforeach; ?>