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


PHP uploader::init方法代码示例

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


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

示例1: Object

<?php

include_once "act.portfolio.php";
// Файл для обработки логики
if ($user->login == $_SESSION['login']) {
    uploader::init(array(), $templates, 'portfolio');
}
?>
<script type="text/javascript">
    var categoryList = new Object();
    var currencyList = {0:"USD", 1:"Евро", 2:"Руб"}
    var timeTypeList = {0:"в часах", 1:"в днях", 2:"в месяцах", 3:"в минутах"}
</script>

<?php 
if ($_SESSION['login'] == $user->login) {
    ?>
    <?php 
    if ($user->is_pro != 't' && (int) $user->spec == 0) {
        ?>
        <div class="b-fon b-fon_pad_20">
            <div class="b-fon__body b-fon__body_pad_10 b-fon__body_padleft_30 b-fon__body_fontsize_13 b-fon__body_bg_ffeeeb">
                <span class="b-icon b-icon_sbr_rattent b-icon_margleft_-25"></span><a class="b-layout__link" href="/users/<?php 
        echo $user->login;
        ?>
/setup/specsetup/">Выберите специализацию</a>. Это небходимо, чтобы попасть в каталог фрилансеров, в котором вас найдут заказчики
            </div>
        </div>
    <?php 
    } elseif ($user->is_pro != 't' && (int) $user->spec != 0) {
        ?>
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:tpl.portfolio.pro.php

示例2: array

                    <?php 
    } else {
        ?>
			 <?php 
        $sTitle = $project['moderator_status'] === '0' && $project['kind'] != 4 && $project['is_pro'] != 't' ? $stop_words->replace($project['name'], 'plain', false) : $project['name'];
        ?>
                         <?php 
        if (!is_emp() && !($project['exec_id'] && $exec_info)) {
            ?>
                             <div class="b-buttons b-buttons_padbot_30">
				  <?php 
            if (get_uid(false) && $project['kind'] != 9) {
                ?>
                                    <div class="b-layout__txt b-layout__txt_padtop_10 b-layout__txt_float_right i-shadow"><?php 
                $templates = array(uploader::getTemplate('uploader', 'project_abuse/'), uploader::getTemplate('uploader.file', 'project_abuse/'), uploader::getTemplate('uploader.popup', 'project_abuse/'));
                uploader::init(array('abuse_uploader' => array('umask' => uploader::umask('prj_abuse'), 'validation' => array('allowedExtensions' => array('jpg', 'gif', 'png', 'jpeg'), 'restrictedExtensions' => array(), 'sizeLimit' => tmp_project::MAX_FILE_SIZE), 'text' => array('uploadButton' => iconv('cp1251', 'utf8', 'Прикрепить файлы')))), $templates);
                $complain = true;
                $obj_project->IsHaveComplain($project['id'], get_uid(), $complain);
                $is_project_complain_sent = $obj_project->isComplainSent($project['id']);
                require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/projects_complains.php";
                $complainTypes = projects_complains::getTypes();
                include $_SERVER['DOCUMENT_ROOT'] . "/projects/tpl.abuse.php";
                ?>
                                        
                                        <span class="b-layout__txt_color_c10600">Пожаловаться на проект: 
                                        &nbsp;&nbsp;&nbsp;<a class="b-layout__link b-layout__link_dot_c10600 abuse-employer-project-link" href="javascript:void(0)">Работодателю</a>
                                        &nbsp;/&nbsp; <a class="b-layout__link b-layout__link_dot_c10600 abuse-moderator-project-link" href="javascript:void(0)">Модератору</a>
                                        </span> 
                                        &#160; <img class="b-layout__pic b-layout__pic_absolute b-layout__txt_hide" id="project_abuse_success" style="top:-8px; left:400px" src="/images/thanks.png" width="80" height="36">
                                        
                                         
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:29,代码来源:tpl.prj-main-info.php

示例3: array

<?php

if (hasPermissions('articles')) {
    require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/uploader/uploader.php";
    $templates = array(uploader::getTemplate('uploader', 'wysiwyg/'), uploader::getTemplate('uploader.file', 'wysiwyg/'), uploader::getTemplate('uploader.popup'));
    uploader::init(array(), $templates, 'wysiwyg');
}
?>
<script>
    window.addEvent('domready', function() {

        $$('.ai-form input[type=file]').each( function (el) {
            articlesFileInput(el);
        });
        <?php 
if (hasPermissions('articles')) {
    ?>
CKEDITOR.config.customConfig = '/scripts/ckedit/config_admin.js';<?php 
}
?>
        CKEDITOR.replace('msgtext', {
            toolbar : 'Articles',
//            enterMode : CKEDITOR.ENTER_BR,
//            shiftEnterMode : CKEDITOR.ENTER_P,
            format_tags : 'p;h1;h2;h3;h4;h5;h6',
            width: '',
            linkShowAdvancedTab: false,
            linkShowTargetTab: false
        });
//        CKEDITOR.replace('short', {
//            toolbar : 'Articles',
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:form.php

示例4: 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;
?>
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:content1.php


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