Skip to content

Commit

Permalink
Dev: import label ressources result page
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 16, 2015
1 parent df19265 commit 21523e8
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 17 deletions.
Expand Up @@ -18,7 +18,7 @@
<div id="upload-form-container">

<!-- Form browselabelresources -->
<?php echo CHtml::form('third_party/kcfinder/browse.php?language='.sTranslateLangCode2CK(App()->language), 'get', array('id'=>'browselabelresources','class'=>'form30','name'=>'browselabelresources','target'=>'_blank')); ?>
<?php echo CHtml::form(Yii::app()->baseUrl.'/third_party/kcfinder/browse.php?language='.sTranslateLangCode2CK(App()->language), 'get', array('id'=>'browselabelresources','class'=>'form30','name'=>'browselabelresources','target'=>'_blank')); ?>
<ul class="list-unstyled">

<!-- Browse uploaded resources -->
Expand Down
34 changes: 18 additions & 16 deletions application/views/admin/labels/importlabelresources_view.php
@@ -1,8 +1,7 @@
<div class='header ui-widget-header'><?php eT("Import label set resources") ?></div>
<div class='messagebox ui-corner-all'>
<div class="successheader"><?php eT("Success") ?></div><br />
<?php eT("File upload succeeded.") ?><br /><br />
<?php eT("Reading file..") ?><br /><br />
<div class="jumbotron message-box">
<h2 class="text-success"><?php eT("Import label set resources") ?></h2>
<p class="lead text-success"><?php eT("Success") ?></p>

<?php
$ImportListHeader = '';
if (!count($aErrorFilesInfo) &&count($aImportedFilesInfo))
Expand Down Expand Up @@ -34,13 +33,13 @@
}
?>

<strong><?php eT("Imported resources for") ?> LID:</strong><?php echo $lid ?><br /><br />
<div class="<?php echo $statusClass ?>"><?php echo $status ?></div><br />
<strong><u><?php eT("Resources import summary") ?></u></strong><br />
<?php echo gT("Total imported files") . ": $okfiles" ?><br />
<?php echo gT("Total errors") . ": $errfiles" ?><br />
<?php echo $ImportListHeader; ?>

<p><strong><?php eT("Imported resources for") ?> LID:</strong><?php echo $lid ?><br /><br /><p>
<p class="<?php echo $statusClass ?>"><?php echo $status ?></p><br />
<p><strong><u><?php eT("Resources import summary") ?></u></strong><br /></p>
<p><?php echo gT("Total imported files") . ": $okfiles" ?><br /></p>
<p><?php echo gT("Total errors") . ": $errfiles" ?><br /></p>
<p><?php echo $ImportListHeader; ?></p>
<p><ul class="list-unstyled">
<?php
foreach ($aImportedFilesInfo as $entry)
{
Expand All @@ -51,7 +50,8 @@
if (!is_null($aImportedFilesInfo))
{
?>
</ul><br />
</ul><br /></p>
<p><ul class="list-unstyled">
<?php
}
echo $ErrorListHeader;
Expand All @@ -64,9 +64,11 @@
if (!is_null($aErrorFilesInfo))
{
?>
</ul><br />
</ul></p><br />
<?php
}
?>
<input type='submit' value='<?php eT("Back") ?>' onclick="window.open('<?php echo $this->createUrl('admin/labels/sa/view/lid/' . $lid) ?>', '_top')" />
</div>
<p>
<input class="btn btn-default btn-lg" type='submit' value='<?php eT("Back") ?>' onclick="window.open('<?php echo $this->createUrl('admin/labels/sa/view/lid/' . $lid) ?>', '_top')" />
</p>
</div>
21 changes: 21 additions & 0 deletions upload/labels/18/.htaccess
@@ -0,0 +1,21 @@
<IfModule mod_php4.c>
php_flag engine Off
</IfModule>
<IfModule mod_php5.c>
php_flag engine Off
</IfModule>
<IfModule mod_php6.c>
php_flag engine Off
</IfModule>
<IfModule mod_cgi.c>
Options -ExecCGI
</IfModule>

RemoveHandler .cgi .pl .py .pyc .pyo .phtml .php .php3 .php4 .php5 .php6 .pcgi .pcgi3 .pcgi4 .pcgi5 .pchi6 .inc
RemoveType .cgi .pl .py .pyc .pyo .phtml .php .php3 .php4 .php5 .php6 .pcgi .pcgi3 .pcgi4 .pcgi5 .pchi6 .inc
SetHandler None
SetHandler default-handler

# Remove both lines below if you want to render HTML files from the upload folder
AddType text/plain .html
AddType text/plain .htm
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added upload/labels/18/.thumbs/images/footer-meta.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added upload/labels/18/images/footer-meta.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions upload/labels/19/.htaccess
@@ -0,0 +1,21 @@
<IfModule mod_php4.c>
php_flag engine Off
</IfModule>
<IfModule mod_php5.c>
php_flag engine Off
</IfModule>
<IfModule mod_php6.c>
php_flag engine Off
</IfModule>
<IfModule mod_cgi.c>
Options -ExecCGI
</IfModule>

RemoveHandler .cgi .pl .py .pyc .pyo .phtml .php .php3 .php4 .php5 .php6 .pcgi .pcgi3 .pcgi4 .pcgi5 .pchi6 .inc
RemoveType .cgi .pl .py .pyc .pyo .phtml .php .php3 .php4 .php5 .php6 .pcgi .pcgi3 .pcgi4 .pcgi5 .pchi6 .inc
SetHandler None
SetHandler default-handler

# Remove both lines below if you want to render HTML files from the upload folder
AddType text/plain .html
AddType text/plain .htm
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 21523e8

Please sign in to comment.