当前位置: 首页>>代码示例>>PHP>>正文


PHP CFile::InputFile方法代码示例

本文整理汇总了PHP中CFile::InputFile方法的典型用法代码示例。如果您正苦于以下问题:PHP CFile::InputFile方法的具体用法?PHP CFile::InputFile怎么用?PHP CFile::InputFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CFile的用法示例。


在下文中一共展示了CFile::InputFile方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addTableFileCell

 function addTableFileCell($intPropID, $arPropInfo)
 {
     static $maxImageSize = null;
     if (null === $maxImageSize) {
         $maxImageSize = array("W" => COption::GetOptionString("iblock", "list_image_size"), "H" => COption::GetOptionString("iblock", "list_image_size"));
     }
     if (!array_key_exists('UF_FILE', $arPropInfo)) {
         return '';
     }
     $arPropInfo["UF_FILE"] = intval($arPropInfo["UF_FILE"]);
     if (!CModule::IncludeModule('fileman')) {
         return '';
     }
     $strShowFile = '';
     if (0 < $arPropInfo["UF_FILE"]) {
         $strShowFile = CFile::ShowFile($arPropInfo["UF_FILE"], 0, $maxImageSize['W'], $maxImageSize['H'], false);
         if ('' !== $strShowFile) {
             $strShowFile .= '<br>';
         }
     }
     return $strShowFile . CFile::InputFile("PROPERTY_DIRECTORY_VALUES[{$intPropID}][FILE]", 20, $arPropInfo["UF_FILE"], false, 0, "IMAGE", "", 0, "class=typeinput", "", true, false);
 }
开发者ID:spas-viktor,项目名称:books,代码行数:22,代码来源:highloadblock_directory_ajax.php

示例2: GetCountryArray

    }
}
$arResult["FORM_TARGET"] = $APPLICATION->GetCurPage();
$arResult["arUser"]["PERSONAL_PHOTO_INPUT"] = CFile::InputFile("PERSONAL_PHOTO", 20, $arResult["arUser"]["PERSONAL_PHOTO"], false, 0, "IMAGE");
if (strlen($arResult["arUser"]["PERSONAL_PHOTO"]) > 0) {
    $arResult["arUser"]["PERSONAL_PHOTO_HTML"] = CFile::ShowImage($arResult["arUser"]["PERSONAL_PHOTO"], 150, 150, "border=0", "", true);
}
$arResult["arUser"]["WORK_LOGO_INPUT"] = CFile::InputFile("WORK_LOGO", 20, $arResult["arUser"]["WORK_LOGO"], false, 0, "IMAGE");
if (strlen($arResult["arUser"]["WORK_LOGO"]) > 0) {
    $arResult["arUser"]["WORK_LOGO_HTML"] = CFile::ShowImage($arResult["arUser"]["WORK_LOGO"], 150, 150, "border=0", "", true);
}
$arResult["arForumUser"]["AVATAR_INPUT"] = CFile::InputFile("forum_AVATAR", 20, $arResult["arForumUser"]["AVATAR"], false, 0, "IMAGE");
if (strlen($arResult["arForumUser"]["AVATAR"]) > 0) {
    $arResult["arForumUser"]["AVATAR_HTML"] = CFile::ShowImage($arResult["arForumUser"]["AVATAR"], 150, 150, "border=0", "", true);
}
$arResult["arBlogUser"]["AVATAR_INPUT"] = CFile::InputFile("blog_AVATAR", 20, $arResult["arBlogUser"]["AVATAR"], false, 0, "IMAGE");
if (strlen($arResult["arBlogUser"]["AVATAR"]) > 0) {
    $arResult["arBlogUser"]["AVATAR_HTML"] = CFile::ShowImage($arResult["arBlogUser"]["AVATAR"], 150, 150, "border=0", "", true);
}
$arResult["IS_ADMIN"] = $USER->IsAdmin();
$arCountries = GetCountryArray();
$arResult["COUNTRY_SELECT"] = SelectBoxFromArray("PERSONAL_COUNTRY", $arCountries, $arResult["arUser"]["PERSONAL_COUNTRY"], GetMessage("USER_DONT_KNOW"));
$arResult["COUNTRY_SELECT_WORK"] = SelectBoxFromArray("WORK_COUNTRY", $arCountries, $arResult["arUser"]["WORK_COUNTRY"], GetMessage("USER_DONT_KNOW"));
$arResult["strProfileError"] = $strError;
$arResult["BX_SESSION_CHECK"] = bitrix_sessid_post();
$arResult["DATE_FORMAT"] = CLang::GetDateFormat("SHORT");
$arResult["COOKIE_PREFIX"] = COption::GetOptionString("main", "cookie_name", "BITRIX_SM");
if (strlen($arResult["COOKIE_PREFIX"]) <= 0) {
    $arResult["COOKIE_PREFIX"] = "BX";
}
// ********************* User properties ***************************************************
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:component.php

示例3: __ShowFileFieldTmp

 function __ShowFileFieldTmp($name, $multiple, $key, $value, $form_name, $arParams)
 {
     echo CFile::InputFile($name . ($multiple ? '[' . $key . ']' : ''), 40, $value, false, 0, "");
     if (IntVal($value) > 0) {
         echo "<br>";
         echo CFile::ShowFile($value, 5000000, 300, 300, true) . "<br>";
     }
 }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:8,代码来源:template.php

示例4: GetMessage

"></td>
	</tr>
	<tr>
		<td valign="top"><?php 
    echo GetMessage('blog_INTERESTS');
    ?>
</td>
		<td><textarea class="typearea" name="blog_INTERESTS" rows="3" cols="35"><?php 
    echo $str_blog_INTERESTS;
    ?>
</textarea></td>
	</tr>
	<tr class="adm-detail-file-row">
		<td><?php 
    echo GetMessage("blog_AVATAR");
    ?>
</td>
		<td><?php 
    echo CFile::InputFile("blog_AVATAR", 20, $str_blog_AVATAR);
    if (IntVal($str_blog_AVATAR) > 0) {
        ?>
<div class="adm-detail-file-image"><?php 
        echo CFile::ShowImage($str_blog_AVATAR, 150, 150, "border=0", "", true);
        ?>
</div><?php 
    }
    ?>
</td>
	</tr>
	<?php 
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:options_user_settings.php

示例5: GetMessage

>
			</td>
		</tr>
	<?php 
    }
    $tabControl->EndCustomField("EMAIL_ANSWER");
    $tabControl->BeginCustomField("FILE_ID", GetMessage("LEARNING_PICTURE"), false);
    ?>
	<tr>
		<td valign="top"><?php 
    echo $tabControl->GetCustomLabelHTML();
    ?>
:</td>
		<td>
			<?php 
    echo CFile::InputFile("FILE_ID", 20, $str_FILE_ID, false, 0, "IMAGE", "", 40);
    ?>
<br>
			<?php 
    if ($str_FILE_ID) {
        echo CFile::ShowImage($str_FILE_ID, 200, 200, "border=0", "", true);
    }
    ?>
		</td>
	</tr>
<?php 
    $tabControl->EndCustomField("FILE_ID");
    ?>

<?php 
    $tabControl->BeginNextFormTab();
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_question_edit.php

示例6: GetFileField

 function GetFileField($FIELD_NAME, $WIDTH = "", $FILE_TYPE = "IMAGE", $MAX_FILE_SIZE = 0, $VALUE = "", $PARAM_FILE = "", $PARAM_CHECKBOX = "")
 {
     global $USER;
     if (!is_object($USER)) {
         $USER = new CUser();
     }
     if (strlen($PARAM_FILE) <= 0) {
         $PARAM_FILE = " class=\"inputfile\" ";
     }
     if (strlen($PARAM_CHECKBOX) <= 0) {
         $PARAM_CHECKBOX = " class=\"inputcheckbox\" ";
     }
     $show_notes = strtoupper($FILE_TYPE) == "IMAGE" || $USER->isAdmin() ? true : false;
     return CFile::InputFile("form_" . strtolower($FILE_TYPE) . "_" . $FIELD_NAME, $WIDTH, $VALUE, false, $MAX_FILE_SIZE, $FILE_TYPE, $PARAM_FILE, 0, "", $PARAM_CHECKBOX, $show_notes);
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:15,代码来源:form_callform.php

示例7: GetMessage

		<td class="adm-detail-valign-top"><?php 
    echo GetMessage("forum_SIGNATURE");
    ?>
</td>
		<td><textarea class="typearea" name="forum_SIGNATURE" rows="3" cols="35"><?php 
    echo $str_forum_SIGNATURE;
    ?>
</textarea></td>
	</tr>
	<tr class="adm-detail-file-row">
		<td><?php 
    echo GetMessage("forum_AVATAR");
    ?>
</td>
		<td><?php 
    echo CFile::InputFile("forum_AVATAR", 20, $str_forum_AVATAR);
    if (is_array($str_forum_AVATAR) && sizeof($str_forum_AVATAR) > 0 || !is_array($str_forum_AVATAR) && strlen($str_forum_AVATAR) > 0) {
        ?>
<div class="adm-detail-file-image"><?php 
        echo CFile::ShowImage($str_forum_AVATAR, 150, 150, "border=0", "", true);
        ?>
</div><?php 
    }
    ?>
</td>
	</tr>
	<?php 
}
/*
GetMessage("forum_TAB");
GetMessage("forum_TAB_TITLE");
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:options_user_settings.php

示例8: GetMessage

		<td class="adm-detail-valign-top"><?php 
echo GetMessage("post_attachments_load");
?>
:</td>
		<td>
			<table border="0" cellpadding="0" cellspacing="0">
			<tr><td><?php 
echo CFile::InputFile("NEW_FILE[n0]", 40, 0);
?>
<br><br></td></tr>
			<tr><td><?php 
echo CFile::InputFile("NEW_FILE[n1]", 40, 0);
?>
<br><br></td></tr>
			<tr><td><?php 
echo CFile::InputFile("NEW_FILE[n2]", 40, 0);
?>
<br><br></td></tr>
			</table>
		</td>
	</tr>
<?php 
//********************
//Parameters
//********************
$tabControl->BeginNextTab();
?>
	<tr class="heading">
		<td colspan="2"><?php 
echo GetMessage("post_params");
?>
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:posting_edit.php

示例9: GetMessage

        ?>
</td>
		</tr>
		<?php 
    }
    ?>
	<?php 
}
?>
	<tr>
		<td><?php 
echo GetMessage("VOTE_IMAGE");
?>
</td>
		<td><?php 
echo CFile::InputFile("IMAGE_ID", 20, $arQuestion["IMAGE_ID"]);
if (!is_array($arQuestion["IMAGE_ID"]) && strlen($arQuestion["IMAGE_ID"]) > 0) {
    ?>
<br /><?php 
    echo CFile::ShowImage($arQuestion["IMAGE_ID"], 200, 200, "border=0", "", true);
}
?>
		</td>
	</tr>
	<tr class="heading" id="tr_QUESTION_LABEL">
		<td colspan="2"><?php 
echo GetMessage("VOTE_QUESTION_TEXT");
?>
</td>
	</tr>
	<?php 
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:vote_question_edit.php

示例10: GetMessage

?>
</td>
		<td>
			<input type="text" name="FLASH_VER" maxlength="20" size="20"  value="<?php 
echo $str_FLASH_VER;
?>
">
		</td>
	</tr>

	<tr valign="top" id="eAltImage" style="display: none;">
		<td><?php 
echo GetMessage("ADV_FLASH_IMAGE");
?>
</td>
		<td><?echo CFile::InputFile("FLASH_IMAGE", 25, $str_FLASH_IMAGE);?></td>
	</tr>
	<?
	if(intval($str_FLASH_IMAGE)>0) :
	?>
	<tr valign="top" id="eFlashFileLoaded" style="display: none;">
		<td align="center" colspan="2"><?echo CFile::ShowImage($str_FLASH_IMAGE, 600, 600, "border=0", "", true)?></td>
	</tr>
	<?endif;?>
	<tr id="eFlashUrl" style="display: none;">
		<td><?php 
echo GetMessage("ADV_BANNER_NO_LINK");
?>
:<?if ($isEditMode):?><span class="required"><sup>1</sup></span><?endif;?></td>
		<td><input type="checkbox" id="NO_URL_IN_FLASH" name="NO_URL_IN_FLASH" value="Y"<?if($str_NO_URL_IN_FLASH=="Y") echo " checked";?><?if(!$isEditMode) echo ' disabled="true"';?> id="NO_URL_IN_FLASH"></td>
	</tr>
开发者ID:ASDAFF,项目名称:1C_Bitrix_info_site,代码行数:31,代码来源:adv_banner_edit.php

示例11: bitrix_sessid_post

        echo POST_FORM_ACTION_URI;
        ?>
" name="load_form" method="post" enctype="multipart/form-data">
		<?php 
        echo bitrix_sessid_post();
        ?>
		<input type="hidden" name="do_upload" value="1" />
		<input type="hidden" name="image_upload" value="Y" />
		<table>
		<tr>
			<td width="30%"><?php 
        echo GetMessage('WIKI_IMAGE');
        ?>
:</td>
			<td width="70%"><?php 
        echo CFile::InputFile('FILE_ID', 20, 0);
        ?>
</td>
		</tr>
		</table>
		</form>
		<script type="text/javascript">
			var _BTN = [
				BX.CAdminDialog.btnSave,
				BX.CAdminDialog.btnCancel
			];

			getSelectedText();
			BX.WindowManager.Get().SetTitle('<?php 
        echo GetMessage('WIKI_IMAGE_UPLOAD');
        ?>
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:dialogs_content.php

示例12: array

                    break;
                case 'textarea':
                    ?>
<textarea name="<?php 
                    echo $answer['FIELD_NAME'];
                    ?>
"><?php 
                    echo $answer['VALUE'];
                    ?>
</textarea><?php 
                    break;
                case 'file':
                    echo \CFile::InputFile($answer['FIELD_NAME'], 100, false, false, 0, '');
                    break;
                case 'image':
                    echo \CFile::InputFile($answer['FIELD_NAME'], 100, false, false, 0, 'IMAGE');
                    break;
                case 'date':
                    $APPLICATION->IncludeComponent('bitrix:main.calendar', '', array('SHOW_INPUT' => 'Y', 'FORM_NAME' => 'webform', 'INPUT_NAME' => $answer['FIELD_NAME'], 'SHOW_TIME' => 'N'), null, array('HIDE_ICONS' => 'Y'));
                    break;
                default:
                    ?>
<input name="<?php 
                    echo $answer['FIELD_NAME'];
                    ?>
" type="text" value="<?php 
                    echo $answer['VALUE'];
                    ?>
" /><?php 
                    break;
            }
开发者ID:notagency,项目名称:notagency.base,代码行数:31,代码来源:template.php

示例13: intval

//********************
//question Tab
//********************
$tabControl->BeginNextTab();

if (is_array($str_IMAGE_ID))
	$str_IMAGE_ID = 0;

$str_IMAGE_ID = intval($str_IMAGE_ID);
?>
	<tr>
		<td><?php 
echo GetMessage("FORM_IMAGE");
?>
</td>
		<td><?echo CFile::InputFile("IMAGE_ID", 20, $str_IMAGE_ID);?><?if ($str_IMAGE_ID>0):?><br /><?echo CFile::ShowImage($str_IMAGE_ID, 200, 200, "border=0", "", true)?><?endif;?>
		</td>
	</tr>
	<?
	if(COption::GetOptionString("form", "USE_HTML_EDIT")=="Y" && CModule::IncludeModule("fileman")):?>
	<tr>
		<td align="center" colspan="2"><?
		CFileMan::AddHTMLEditorFrame("TITLE", $str_TITLE, "TITLE_TYPE", $str_TITLE_TYPE, 400);
		?></td>
	</tr>
	<?else:?>
	<tr>
		<td align="center" colspan="2"><? echo InputType("radio","TITLE_TYPE","text",$str_TITLE_TYPE,false)?>&nbsp;<?echo GetMessage("FORM_TEXT")?>/&nbsp;<? echo InputType("radio","TITLE_TYPE","html",$str_TITLE_TYPE,false)?>HTML</td>
	</tr>
	<tr>
		<td align="center" colspan="2"><textarea name="TITLE" style="width:100%" rows="23"><?echo $str_TITLE?></textarea></td>
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:form_field_edit.php

示例14: GetMessage

			<td colspan="2" align="center">
				<?php 
        echo $tabControl->GetCustomLabelHTML() . ': ' . GetMessage('LEARNING_NO');
        ?>
			</td>
			<?php 
    } else {
        ?>
			<td valign="top" style="width:50%;"><?php 
        echo $tabControl->GetCustomLabelHTML();
        ?>
</td>
			<td>
				<?php 
        if (!$bContentReadOnly) {
            echo CFile::InputFile("DETAIL_PICTURE", 20, $str_DETAIL_PICTURE, false, 0, "IMAGE", "", 40) . '<br>';
        }
        if ($str_DETAIL_PICTURE) {
            echo CFile::ShowImage($str_DETAIL_PICTURE, 200, 200, "border=0", "", true);
        }
        ?>
			</td>
			<?php 
    }
    ?>
	</tr>
<?php 
    $tabControl->EndCustomField("DETAIL_PICTURE");
    // Tab: Relations
    if ($LESSON_ID > 0 && CLearnAccessMacroses::CanUserViewLessonRelations(array('lesson_id' => $LESSON_ID))) {
        $tabControl->BeginNextFormTab();
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_unilesson_edit.php

示例15: GetMessage

</td>
		<td>
			<input type="text" name="FLASH_VER" maxlength="20" size="20"  value="<?php 
    echo $str_FLASH_VER;
    ?>
">
		</td>
	</tr>

	<tr valign="top" id="eAltImage" style="display: none;">
		<td><?php 
    echo GetMessage("ADV_FLASH_IMAGE");
    ?>
</td>
		<td><?php 
    echo CFile::InputFile("FLASH_IMAGE", 25, $str_FLASH_IMAGE);
    ?>
</td>
	</tr>
	<?php 
    if (intval($str_FLASH_IMAGE) > 0) {
        ?>
	<tr valign="top" id="eFlashFileLoaded" style="display: none;">
		<td align="center" colspan="2"><?php 
        echo CFile::ShowImage($str_FLASH_IMAGE, 600, 600, "border=0", "", true);
        ?>
</td>
	</tr>
	<?php 
    }
    ?>
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:adv_banner_edit.php


注:本文中的CFile::InputFile方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。