本文整理汇总了PHP中uploader::sgetLoaderOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP uploader::sgetLoaderOptions方法的具体用法?PHP uploader::sgetLoaderOptions怎么用?PHP uploader::sgetLoaderOptions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类uploader
的用法示例。
在下文中一共展示了uploader::sgetLoaderOptions方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
if ($project['country']) {
$cities = city::GetCities($project['country']);
}
$project['end_date'] = $_POST['end_date'] ? $_POST['end_date'] : ($project['end_date'] ? date('d-m-Y', strtotime($project['end_date'])) : '');
$project['win_date'] = $_POST['win_date'] ? $_POST['win_date'] : ($project['win_date'] ? date('d-m-Y', strtotime($project['win_date'])) : '');
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/project_exrates.php";
$oprj_exrates = new project_exrates();
$prj_exrates = $oprj_exrates->GetAll();
$professions = professions::GetAllProfessions();
array_group($professions, 'groupid');
$professions[0] = array();
?>
<?php
$templates = array(uploader::getTemplate('uploader', 'project/'), uploader::getTemplate('uploader.file', 'project/'), uploader::getTemplate('uploader.popup', ''));
uploader::init(array('attachedfiles' => uploader::sgetLoaderOptions($uploader->resource)), $templates);
?>
<script type="text/javascript">
var draft_saved = 0;
</script>
<script type="text/javascript">
var AC=<?php
echo $aCnt;
?>
;
var AM=<?php
echo new_projects::MAX_FILE_COUNT;
?>