<?php $this->load->helper('date') ?> <div class="taskEntry"> <div id="task-<?=$tskid?>" class="taskItem lineItem ui-style"> <span class="name"><a href="#"><?=$name?></a></span> <span class="dateDue<?php if(strtotime($tsDue)<time()) echo ' overdue'; elseif (strtotime($tsDue)<time()+86400) echo ' warning' ?>"> <?php if (isset($tsStart) && strtotime($tsStart) > time()) echo 'Starts '.date_relative(strtotime($tsStart),'M. j, Y').'. '; elseif (isset($tsDue)) echo 'Due '.date_relative(strtotime($tsDue),'M. j, Y').'. '; ?> </span> <span class="pbar"><span class="dataTskid"><?=$tskid?></span></span> <a href="#" class="newTask" title="Add Subtask"><span> Add New Subtask</span><span class="dataPjid"><?=$pjid?></span><span class="dataTskid"><?=$tskid?></span></a> <div class="clear"></div> </div> <div class="taskList"> <?php foreach ($tasks as $id=>$task) $this->load->view('projects/list_items', $tasks[$id]) ?> </div> <script type="text/javascript"> $(document).ready(function() { $('#task-<?=$tskid?> .pbar').progressbar('option', 'value', <?=round($percentUpdate*100,0)?>); }); </script> </div>
function revisions_bouton($id_article, $id_auteur, $id_version, $titre, $statut, $date, $lang_dir, $nom) { $titre_bouton = "<span class='arial2'>"; $titre_bouton .= puce_statut($statut); $titre_bouton .= "\n <a class='$statut' style='font-weight: bold;' href='" . generer_url_ecrire("articles_versions","id_article=$id_article") . "'>$titre</a>"; $titre_bouton .= "<span class='arial1' dir='$lang_dir'>"; $titre_bouton .= "\n".date_relative($date)." "; # laisser un peu de privacy aux redacteurs $titre_bouton .= "</span>"; if (strlen($nom)>0) $titre_bouton .= "($nom)"; $titre_bouton .= "</span>"; return $titre_bouton; }
function date_relativecourt($date, $decalage_maxi = 0) { if (!$date) { return; } $decal = date("U", strtotime(date('Y-m-d')) - strtotime(date('Y-m-d', strtotime($date)))); if ($decalage_maxi and ($decal > $decalage_maxi or $decal < 0)) { return ''; } if ($decal < -24 * 3600) { $retour = date_relative($date, $decalage_maxi); } elseif ($decal < 0) { $retour = _T("date_demain"); } else { if ($decal < 3600 * 24) { $retour = _T("date_aujourdhui"); } else { if ($decal < 3600 * 24 * 2) { $retour = _T("date_hier"); } else { $retour = date_relative($date, $decalage_maxi); } } } return $retour; }
</tr> </table> </div> <h4>Feature Codes</h4> <div> <table> <tr> <td>Check Voicemail</td> <td class="justr"><a href="#" class="click2call">*97</a></td> </tr> <tr> <td>Conference Call</td> <td class="justr"><a href="#" class="click2call">200</a></td> </tr> </table> </div> </div> <?php $twitter = $this->twitter->get_status('glabstudios'); if ($twitter) : ?> <div class="widget" data-sortable="false"> <h3 class="handle">Twitter</h3> <div id="twitter" cite="http://twitter.com/<?=$twitter->user->screen_name?>/status/<?=$twitter->id?>"> <p id="post_content"><?=parse_tweet($twitter->text)?></p> <p>Last updated <span id="updated"><?=date_relative(strtotime($twitter->created_at))?></span>.</p> </div> </div> <?php endif; ?> </div>
<div> <?php $profile = $this->profile->get($entry['source']) ?> <em>Received from <?php if ($profile->exists()) { echo profile_link($entry['source']); } elseif (is_tel($entry['source']) === true) { echo tel_format($entry['source']); } else { echo $entry['source']; } ?> <?=date_relative(strtotime($entry['timestamp']))?>.</em> </div> </div> </div> <?php if ($entry['type']=='phone' && is_array($entry['cdr'])) : ?> <div class="body mid entry phonedata"> <ul> <li><strong>Call Detail Record</strong></li> <li class="phone"><?=tel_format($entry['cdr']['src'])?></li> <li class="duration"><?=timespan(0,$entry['cdr']['duration'])?></li> <?php if (isset($entry['attachments']['recording.mp3'])) : ?> <li class="recording"> <audio controls="controls" src="<?=site_url('communication/attachment/'.$entry['attachments']['recording.mp3']['name'])?>" preload="metadata"> Your browser does not support audio playback. </audio> </li>
function date_relativecourt($date, $decalage_maxi=0) { if (!$date) return; $decal = date("U",strtotime(date('Y-m-d'))-strtotime(date('Y-m-d',strtotime($date)))); if ($decalage_maxi AND ($decal > $decalage_maxi OR $decal < 0)) return ''; if ($decal < -24*3600) { $retour = date_relative($date, $decalage_maxi); } elseif ($decal < 0) { $retour = _T("date_demain"); } else if ($decal < (3600 * 24) ) { $retour = _T("date_aujourdhui"); } else if ($decal < (3600 * 24 *2) ) { $retour = _T("date_hier"); } else { $retour = date_relative($date, $decalage_maxi); } return $retour; }
<?php foreach ($data as $doc) : ?> <div class="mid body doc"> <img src="<?= site_url('documents/img_thumb/'.$doc->file_id.'/1') ?>" /> <div class="docData"> <span class="docName"><?=$doc->name?></span> <span class="docDate"> Created <?=date_relative($doc->file_info->time)?>. </span> <span class="docDetails"> <?=$doc->page_count?> page PDF. Created via <?=$doc->source?>. Account: <?=profile_link($doc->pid)?>. </span> <?php if ( ! is_null($doc->description)) : ?><span class="docDescription"><?=$doc->description?></span><?php endif; ?> <span class="docButtons buttonBar"> <!--<a href="#" class="button">Open in Viewer</a> --> <a href="<?=site_url('documents/download/'.$doc->file_id)?>" class="button">Download (<?=format_filesize($doc->file_info->size)?>)</a> <a href="<?=site_url('documents/fax/'.dechex($doc->dcid))?>" class="button">Send as Fax</a> <!--<a href="#" class="button">Send as Email</a>--> <?php if ($doc->is_new) : ?> <a href="<?=site_url('documents/mark_read/'.$doc->dcid)?>" class="button red">Mark as Read</a> <?php endif; ?> </span> </div> <span class="clear"></span> </div> <?php endforeach; ?> <?php if (count($data) == 0): ?> <div class="mid body"> There are no documents or faxes to display. </div>
<?php foreach ($tickets as $tik): ?> <div class="body mid tik"> <div class="tik_rt"> <strong>Ticket ID:</strong> <?=tikid_format($tik['tikid'])?> <ul> <li><a href="<?=site_url('communication/ticket_view/'.tikid_format($tik['tikid']))?>" class="button">View Ticket</a></li> <li><a href="<?=site_url('communication/ticket_view/'.tikid_format($tik['tikid']))?>#reply" class="button green">Send Reply</a></li> </ul> </div> <div class="tik_lt"> <h4> <a href="<?=site_url('communication/ticket_view/'.tikid_format($tik['tikid']))?>"> <?= ($tik['type']=='phone') ? 'Phone Call From '.tel_format($tik['source'], FALSE) : character_limiter($tik['subject'],45)?> </a> </h4> <p> Opened <?=date_relative(strtotime($tik['timestamp'])) ?> by <strong> <?php if (element('pid',$tik) == true) echo profile_link(element('pid',$tik),element('name',$tik)); elseif ($tik['type'] == 'p') echo tel_format($tik['source']); else echo $tik['source']; ?> </strong>.</p> </div> </div> <?php endforeach; ?> <?php if (count($tickets) === 0) : ?> <div class="body mid tik"> There are no tickets in this queue that require your attention. <br/><br/><a href="<?=current_url()?>?show_inactive=1" class="button">Show All Tickets</a><br/> </div> <?php endif; ?> </div>
<div class="mid header"> <h4><?=$domain?></h4> <p>Domain <?=(element('auto_renew', $data)) ? 'auto-':''?>renews <?=date_relative(element('registry_expiredate', $data))?>.</p> </div> <div class="mid body"> <table> <thead> <tr> <td>Domain Profile Data</td> <td>Value</td> </tr> </thead> <tbody> <tr> <td>Date Registered</td> <td><?=date_user(element('registry_createdate', $data))?></td> </tr> <tr> <td>Date Modified</td> <td><?=date_user(element('registry_updatedate', $data))?></td> </tr> <tr> <td>Date of Renewal</td> <td><?=date_user(element('registry_expiredate', $data))?></td> </tr> <tr> <td>Auto-renew?</td> <td><?=(element('auto_renew', $data)) ? 'Enabled' : 'Disabled'?></td> </tr> </tbody> </table>
libxml_use_internal_errors(TRUE); foreach ($feeds as $fid=>$feed) $rss[$fid] = simplexml_load_string(Feed_Request($feed)); ?> <div class="tab"> <ul> <?php foreach ($rss as $fid=>$feed) if (isset($feed->channel)) : ?> <li><a href="#blog-<?=$fid?>"><?=$feed->channel->title?></a></li> <?php endif; ?> </ul> <?php foreach ($rss as $fid=>$feed) if (isset($feed->channel)) : ?> <div id="blog-<?=$fid?>"> <ul> <?php foreach(array_slice((array)$feed->xpath('//item'),0,5) as $item) : ?> <li> <strong><a href="<?=$item->link ?>" class="headline"><?=$item->title ?></a></strong><br> <?php if (empty($item->pubDate) !== true) : ?><dt>Published <?=date_relative($item->pubDate)?></dt><?php endif; ?> </li> <?php endforeach; ?> </ul> </div> <?php endif; ?> </div> </div> <!--<script type="text/javascript"> $(function(){ // Tabs $('#box_rss').tabs({ selected: <?=rand(0,count($rss)-1)?> }); // Update Counts