本文整理汇总了PHP中Attachment::getAttachmentUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Attachment::getAttachmentUrl方法的具体用法?PHP Attachment::getAttachmentUrl怎么用?PHP Attachment::getAttachmentUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Attachment
的用法示例。
在下文中一共展示了Attachment::getAttachmentUrl方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: camp_html_article_url
/left_arrow.png" BORDER="0"></td>
<td><a href="<?php
echo camp_html_article_url($articleObj, $f_language_id, "edit.php");
?>
"><b><?php
echo $translator->trans("Back to Edit Article");
?>
</b></a></td>
</table>
<P>
<?php
if (strstr($attachmentObj->getMimeType(), "image/") && (strstr($_SERVER['HTTP_ACCEPT'], $attachmentObj->getMimeType()) || strstr($_SERVER['HTTP_ACCEPT'], "*/*"))) {
?>
<div class="indent">
<IMG SRC="<?php
echo $attachmentObj->getAttachmentUrl();
?>
" style="max-width: 600px;" BORDER="0" ALT="<?php
echo htmlspecialchars($attachmentObj->getDescription($f_language_selected));
?>
">
</div>
<P>
<?php
}
?>
<FORM NAME="dialog" METHOD="POST" ACTION="/<?php
echo $ADMIN;
?>
/articles/files/do_edit.php" >
<?php
示例2: MediaPlayer
<p class="dates"><?php
putGS('Created');
?>
: <?php
echo $object->getTimeCreated();
?>
, <?php
putGS('Last modified');
?>
: <?php
echo $object->getLastModified();
?>
</p>
<?php
echo new MediaPlayer($object->getAttachmentUrl() . '?g_show_in_browser=1', $object->getMimeType());
?>
<dl class="attachment">
<dt><?php
putGS('Type');
?>
:</dt>
<dd><?php
echo $object->getMimeType();
?>
</dd>
<dt><?php
putGS('Size');
?>
示例3: array
$crumbs[] = array(getGS("Attachments"), "");
$crumbs[] = array($title, "");
echo camp_html_breadcrumbs($crumbs);
}
?>
<table cellpadding="1" cellspacing="0" class="action_buttons" style="padding-top: 10px;">
<tr>
<td><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/left_arrow.png" BORDER="0"></td>
<td><a href="<?php echo camp_html_article_url($articleObj, $f_language_id, "edit.php"); ?>"><b><?php putGS("Back to Edit Article"); ?></b></a></td>
</table>
<P>
<?php if (strstr($attachmentObj->getMimeType(), "image/") &&
(strstr($_SERVER['HTTP_ACCEPT'], $attachmentObj->getMimeType()) ||
(strstr($_SERVER['HTTP_ACCEPT'], "*/*")))) { ?>
<div class="indent">
<IMG SRC="<?php echo $attachmentObj->getAttachmentUrl(); ?>" BORDER="0" ALT="<?php echo htmlspecialchars($attachmentObj->getDescription($f_language_selected)); ?>">
</div>
<P>
<?php } ?>
<FORM NAME="dialog" METHOD="POST" ACTION="do_edit.php" >
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="6" class="table_input" width="400px">
<TR>
<TD COLSPAN="2">
<B><?php p($title); ?></B>
<HR NOSHADE SIZE="1" COLOR="BLACK">
</TD>
</TR>
<TR>
<TD ALIGN="RIGHT"><?php putGS('File Name'); ?>:</TD>
<TD><?php echo htmlspecialchars($attachmentObj->getFileName()); ?> <A
HREF="/attachment/<?php p(basename($attachmentObj->getStorageLocation())); ?>"><IMG
示例4: camp_html_article_url
/left_arrow.png" BORDER="0"></td>
<td><a href="<?php
echo camp_html_article_url($articleObj, $f_language_id, "edit.php");
?>
"><b><?php
putGS("Back to Edit Article");
?>
</b></a></td>
</table>
<P>
<?php
if (strstr($attachmentObj->getMimeType(), "image/") && (strstr($_SERVER['HTTP_ACCEPT'], $attachmentObj->getMimeType()) || strstr($_SERVER['HTTP_ACCEPT'], "*/*"))) {
?>
<div class="indent">
<IMG SRC="<?php
echo $attachmentObj->getAttachmentUrl();
?>
" BORDER="0" ALT="<?php
echo htmlspecialchars($attachmentObj->getDescription($f_language_selected));
?>
">
</div>
<P>
<?php
}
?>
<FORM NAME="dialog" METHOD="POST" ACTION="/<?php
echo $ADMIN;
?>
/articles/files/do_edit.php" >
<?php