예제 #1
0
파일: index.php 프로젝트: AsterAI-corp/file
<?php

use app\modules\file\Module;
use app\modules\file\widgets\fileuploader\FileUploader;
?>
    
<?php 
print FileUploader::widget([]);
?>
<table class="table table-hover">
    
    <thead>
        <tr>
            <th>id</th>
            <th><?php 
print Module::t("admin", "url");
?>
</th>
            <th><?php 
print Module::t("admin", "real_name");
?>
</th>
            <th><?php 
print Module::t("admin", "action");
?>
</th>
        </tr>
    </thead>
    
    <tbody>
        <?php 
예제 #2
0
<?php

use app\modules\file\widgets\fileuploader\FileUploader;
use app\modules\product\Module;
if ($canUpload) {
    print FileUploader::widget(['relateTo' => $entity->id]);
}
?>

<div class="row bs-examples">
    <?php 
foreach ($entity->getFiles() as $file) {
    ?>
    <div class="col-xs-6 col-md-3 thumbnail tile" data-entity="File" data-entity-id="<?php 
    print $file->id;
    ?>
" >
        <a class="btn btn-mini btn-warning confirmable pull-right"
           data-confirm="<?php 
    print Module::t("admin", "confirm_delete_entity");
    ?>
" 
           type="button" 
           href="/file/admin/delete/<?php 
    print $file->id;
    ?>
"
        >
            <i class="glyphicon glyphicon-trash"></i>
        </a>
        <div>