本文整理汇总了PHP中FSS_Helper::display_filesize方法的典型用法代码示例。如果您正苦于以下问题:PHP FSS_Helper::display_filesize方法的具体用法?PHP FSS_Helper::display_filesize怎么用?PHP FSS_Helper::display_filesize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FSS_Helper
的用法示例。
在下文中一共展示了FSS_Helper::display_filesize方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo JRoute::_('index.php?option=com_fss&view=ticket&fileid=' . $attach['id'] . "&ticketid=" . $this->ticket['id']);
?>
">
<i class="icon-download"></i>
</a>
</div>
<?php
}
?>
<div class="media-body">
<div class="pull-right" style="text-align: right;">
<?php
echo FSS_Helper::display_filesize($attach['size']);
?>
<br />
<?php
echo FSS_Helper::Date($attach['added'], FSS_DATETIME_MID);
?>
</div>
<h4 class="media-heading"><a href='<?php
echo FSSRoute::_('index.php?option=com_fss&view=ticket&fileid=' . $attach['id'] . "&ticketid=" . $this->ticket['id']);
?>
'><?php
echo $attach['filename'];
?>
</a></h4>
<?php
示例2:
?>
</ul>
</div>
</div>
<div id="tags">
<?php
include $this->snippet(JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'views' . DS . 'admin_support' . DS . 'snippet' . DS . '_tags.php');
?>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label"><?php
echo JText::sprintf('UPLOAD_FILE', FSS_Helper::display_filesize(FSS_Helper::getMaximumFileUploadSize()));
?>
</label>
<div class="controls">
<?php
include JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'tmpl' . DS . 'attach.php';
?>
</div>
</div>
<div class="control-group">
<label class="control-label">
<?php
echo JText::_('SIGNATURE');
?>
<a class="show_modal_iframe fssTip padding-left-mini" title="<?php
示例3: forAdmin
static function forAdmin(&$parser, $ticket = null, $custom_fields = null)
{
$parser->Clear();
self::core($parser, $ticket, $custom_fields);
if ($ticket) {
$title = $ticket->getTitle();
$parser->SetVar('link', FSSRoute::_('index.php?option=com_fss&view=admin_support&layout=ticket&ticketid=' . $ticket->id));
$parser->SetVar('checkbox', "<input type='checkbox' class='ticket_cb' style='display: none' id='ticket_cb_{$ticket->id}' name='ticket_{$ticket->id}'>");
$parser->SetVar('subject', "<input type='checkbox' class='ticket_cb' style='display: none' id='ticket_cb_{$ticket->id}' name='ticket_{$ticket->id}'><a href='" . FSSRoute::_('index.php?option=com_fss&view=admin_support&layout=ticket&ticketid=' . $ticket->id) . "'>" . $title . "</a>");
$parser->SetVar('subject_text', $title);
$cotime = FSS_Helper::GetDBTime() - strtotime($ticket->checked_out_time);
if ($cotime < FSS_Settings::get('support_lock_time') && $ticket->checked_out != JFactory::getUser()->id && $ticket->checked_out > 0) {
$html = "<div>" . $ticket->co_user->name . " (" . $ticket->co_user->email . ")</div>";
$parser->SetVar('lock', "<img class='fssTip' title='<b>Ticket locked</b><br />" . htmlentities($html, ENT_QUOTES, "utf-8") . "' src='" . JURI::root(true) . "/components/com_fss/assets/images/lock.png'>");
}
if (!FSS_Settings::get('support_hide_tags')) {
if (isset($ticket->tags) && count($ticket->tags) > 0) {
$html = "";
foreach ($ticket->tags as $tag) {
$html .= "<div>" . $tag . "</div>";
}
$parser->SetVar('tags', "<img class='fssTip' title='" . htmlentities($html, ENT_QUOTES, "utf-8") . "' src='" . JURI::root(true) . "/components/com_fss/assets/images/tag.png'>");
}
}
if (isset($ticket->attach) && count($ticket->attach) > 0) {
$html = "";
foreach ($ticket->attach as $attach) {
$html .= "<div>" . $attach->filename . " (" . FSS_Helper::display_filesize($attach->size) . ")</div>";
}
$parser->SetVar('attach', "<img class='fssTip' title='" . htmlentities($html, ENT_QUOTES, "utf-8") . "' src='" . JURI::root(true) . "/components/com_fss/assets/images/attach.png'>");
}
$parser->SetVar('icons', '');
if (FSS_Settings::get('support_show_msg_counts')) {
$parser->SetVar("msgcount_total", $ticket->msgcount['total']);
$parser->SetVar("msgcount_user", $ticket->msgcount['0']);
$parser->SetVar("msgcount_handler", $ticket->msgcount['1']);
$parser->SetVar("msgcount_private", $ticket->msgcount['2']);
$parser->SetVar("msgcount_draft", $ticket->msgcount['4']);
$tip = "<strong>" . $ticket->msgcount['total'] . " " . JText::_('MESSAGES') . ":</strong><br>";
if ($ticket->msgcount['0'] > 0) {
$tip .= $ticket->msgcount['0'] . " " . JText::_('USER') . "<br>";
}
if ($ticket->msgcount['1'] > 0) {
$tip .= $ticket->msgcount['1'] . " " . JText::_('HANDLER') . "<br>";
}
if ($ticket->msgcount['2'] > 0) {
$tip .= $ticket->msgcount['2'] . " " . JText::_('PRIVATE') . "<br>";
}
if ($ticket->msgcount['4'] > 0) {
$tip .= $ticket->msgcount['4'] . " " . JText::_('DRAFT') . "<br>";
}
$parser->SetVar('msgcnt', "<span class='fssTip label label-default' title='" . htmlentities($tip, ENT_QUOTES, "utf-8") . "'>" . $ticket->msgcount['total'] . "</span>");
}
$parser->SetVar("source", $ticket->source);
$delete = "<a class='pull-right btn btn-default btn-mini' href='" . FSSRoute::_('index.php?option=com_fss&view=admin_support&task=archive.delete&tickets=' . FSS_Input::getCmd('tickets') . '&ticketid=' . $ticket->id) . "'>";
$delete .= JText::_("DELETE") . "</a>";
$parser->SetVar('deletebutton', $delete);
$archive = "<a class='pull-right btn btn-default btn-mini' href='" . FSSRoute::_('index.php?option=com_fss&view=admin_support&task=archive.archive&tickets=' . FSS_Input::getCmd('tickets') . '&ticketid=' . $ticket->id) . "'>";
$archive .= JText::_("ARCHIVE") . "</a>";
$parser->SetVar('archivebutton', $archive);
$handler_highlight = '<span class="fssTip label label-warning pull-right" title="' . JText::_('UNASSIGNED_TICKET') . '">' . $parser->GetVar('handlername') . '</span>';
if ($ticket->admin_id == JFactory::getUser()->id) {
$handler_highlight = '<span class="fssTip label label-success pull-right" title="' . JText::_('MY_TICKET') . '">' . $parser->GetVar('handlername') . '</span>';
} else {
if ($ticket->admin_id > 0) {
$handler_highlight = '<span class="fssTip label label-info pull-right" title="' . JText::_('OTHER_HANDLERS_TICKET') . '">' . $parser->GetVar('handlername') . '</span>';
}
}
$parser->SetVar('handler_tag', $handler_highlight);
$style = "";
//$trhl = " onmouseover='highlightticket({$ticket->id})' onmouseout='unhighlightticket({$ticket->id})' ";
$trhl = " ";
// no longer highlighting tickets!
$priority = $ticket->getPriority();
if ($priority->backcolor) {
$style .= "background-color: {$priority->backcolor};";
}
if (FSS_Settings::get('support_entire_row')) {
$style .= "cursor: pointer;";
$trhl .= " onclick='window.location=\"" . FSSRoute::_('index.php?option=com_fss&view=admin_support&layout=ticket&ticketid=' . $ticket->id) . "\"' ";
}
$trhl .= " style='{$style}' ";
$parser->SetVar('trhl', $trhl);
$parser->SetVar('class', static::$rowclass . " ticket_{$ticket->id}");
if (static::$rowclass == "odd") {
static::$rowclass = "even";
} else {
static::$rowclass = "odd";
}
}
$parser->SetVar("hidehandler", FSS_Settings::get('support_hide_handler') == 1);
$parser->SetVar("candelete", FSS_Settings::get('support_delete'));
}
示例4:
?>
<div class="pull-right" style="margin-left: 6px;margin-right: 6px;">
<a href='<?php
echo FSSRoute::_('index.php?option=com_fss&view=admin_support&task=attach.delete&ticketid=' . $this->ticket->id . '&fileid=' . $attach->id);
?>
' title='Delete Attachment' class='fssTip'>
<i class="icon-delete"></i>
</a>
</div>
<?php
}
?>
<div class="pull-right" style="text-align: right;">
<?php
echo FSS_Helper::display_filesize($attach->size);
?>
<br />
<?php
echo FSS_Helper::Date($attach->added, FSS_DATETIME_MID);
?>
<br />
</div>
<h4 class="media-heading"><a href='<?php
echo JRoute::_('index.php?option=com_fss&view=admin_support&task=attach.download&ticketid=' . $this->ticket->id . '&fileid=' . $attach->id);
?>
'><?php
echo $attach->filename;
?>
示例5:
<tr>
<th>Missing on disk</th>
<td><?php
echo $this->stats->missing;
?>
</tr>
<tr>
<th>Orphaned files</th>
<td><?php
echo $this->stats->orphaned;
?>
</tr>
<tr>
<th>Thumbnails</th>
<td><?php
echo $this->stats->thumbs;
?>
</tr>
<tr>
<th>Thumb Size</th>
<td><?php
echo FSS_Helper::display_filesize($this->stats->thumbsize);
?>
</tr>
</table>
示例6:
<a href="<?php
echo FSSRoute::_('index.php?option=com_fss&task=pick&tmpl=component&controller=kbart');
?>
" class="modal" rel="{handler: 'iframe', size: {x: 650, y: 375}}">Add Related Article</a>
</div>
</div>
</td>
</tr>
<tr>
<td width="135" align="right" class="key">
<label for="filedata">
<?php
echo JText::_("UPLOAD_FILE");
?>
(Max <?php
echo FSS_Helper::display_filesize(FSS_Helper::getMaximumFileUploadSize());
?>
)
</label>
</td>
<td>
<input type="file" id="filedata" name="filedata" />
</td>
</tr>
<tr>
<td width="135" align="right" class="key">
<label for="filetitle">
<?php
echo JText::_("FILE_TITLE");
?>
</label>
示例7:
echo FSS_Helper::escape($this->ticket->body);
?>
</textarea>
<?php
FSS_Helper::HelpText("support_open_main_message_after");
?>
<?php
}
?>
</div>
<?php
if ($this->support_user_attach) {
?>
<?php
echo FSS_Helper::PageSubTitle(JText::sprintf("UPLOAD_FILE", FSS_Helper::display_filesize(FSS_Helper::getMaximumFileUploadSize())), false);
?>
<?php
include JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'tmpl' . DS . 'attach.php';
?>
<?php
}
?>
<p>
<input class='btn btn-primary' type='submit' value='<?php
echo JText::_("CREATE_NEW_TICKET");
?>
' id='addcomment'>
</p>