當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Attachment::getDescription方法代碼示例

本文整理匯總了PHP中Attachment::getDescription方法的典型用法代碼示例。如果您正苦於以下問題:PHP Attachment::getDescription方法的具體用法?PHP Attachment::getDescription怎麽用?PHP Attachment::getDescription使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Attachment的用法示例。


在下文中一共展示了Attachment::getDescription方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: htmlspecialchars

?>
"><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 
echo SecurityToken::FormParameter();
?>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" class="box_table">
開發者ID:sourcefabric,項目名稱:newscoop,代碼行數:31,代碼來源:edit.php

示例2: htmlspecialchars

<div class="ui-widget-content big-block block-shadow padded-strong">
    <fieldset class="plain">

    <legend><?php 
putGS('Change attachment information');
?>
</legend>

    <ul>
        <li>
            <label for="description"><?php 
putGS("Description");
?>
:</label>
            <input id="description" type="text" name="f_description" value="<?php 
echo htmlspecialchars($object->getDescription($object->getLanguageId()));
?>
" size="50" maxlength="255" class="input_text" />
        </li>
        <li>
            <label><?php 
putGS("Do you want this file to open in the user's browser, or to automatically download?");
?>
</label>
            <input id="disposition0" class="input_radio" type="radio" name="f_content_disposition" value=""<?php 
if ($object->getContentDisposition() == NULL) {
    echo ' checked="checked"';
}
?>
 />
            <label for="disposition0" class="inline-style left-floated" style="padding-right:15px"><?php 
開發者ID:nidzix,項目名稱:Newscoop,代碼行數:31,代碼來源:edit-attachment.php

示例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()); ?> &nbsp; <A
		HREF="/attachment/<?php p(basename($attachmentObj->getStorageLocation())); ?>"><IMG
開發者ID:nistormihai,項目名稱:Newscoop,代碼行數:31,代碼來源:edit.php

示例4: putGS

</dl>

<form name="edit" method="POST" action="do_edit-attachment.php">
    <?php echo SecurityToken::FormParameter(); ?>
    <input type="hidden" name="f_attachment_id" value="<?php echo $object->getAttachmentId(); ?>" />

<div class="ui-widget-content big-block block-shadow padded-strong">
    <fieldset class="plain">

    <legend><?php putGS('Change attachment information'); ?></legend>

    <ul>
        <li>
            <label for="description"><?php putGS("Description"); ?>:</label>
            <input id="description" type="text" name="f_description" value="<?php echo htmlspecialchars($object->getDescription($object->getLanguageId())); ?>" size="50" maxlength="255" class="input_text" />
        </li>
        <li>
            <label><?php putGS("Do you want this file to open in the user's browser, or to automatically download?"); ?></label>
            <input id="disposition0" class="input_radio" type="radio" name="f_content_disposition" value=""<?php if ($object->getContentDisposition() == NULL) { echo ' checked="checked"'; } ?> />
            <label for="disposition0" class="inline-style left-floated" style="padding-right:15px"><?php putGS("Open in the browser"); ?></label>
            <input id="disposition1" class="input_radio" type="radio" name="f_content_disposition" value="attachment"<?php if ($object->getContentDisposition() == 'attachment') { echo ' checked="checked"'; } ?> />
            <label for="disposition1" class="inline-style left-floated"><?php putGS("Automatically download"); ?></label>
        </li>
        <li>
            <label>&nbsp;</label>
            <input type="submit" name="Save" value="<?php  putGS('Save'); ?>" class="button" />
        </li>
    </ul>

    </fieldset>
開發者ID:nistormihai,項目名稱:Newscoop,代碼行數:30,代碼來源:edit-attachment.php


注:本文中的Attachment::getDescription方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。