Fix upload page

This commit is contained in:
Romain Neutron
2011-12-21 17:50:17 +01:00
parent e1626b20ad
commit c7be5710a6

View File

@@ -26,7 +26,6 @@ function filize($x)
return '*.' . $x;
}
User_Adapter::updateClientInfos(8);
phrasea::headers();
@@ -41,7 +40,7 @@ if (count($avBases) == 0)
{
header("Content-Type: text/html; charset=UTF-8");
?>
?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $session->get_I18n(); ?>">
<head>
@@ -75,18 +74,18 @@ if (count($avBases) == 0)
<?php echo _('upload:You do not have right to upload datas'); ?>
</div>
</body>
</html>
</html>
<?php
<?php
die();
}
}
$colls = '';
$datasSB = array();
$dstatus = databox_status::getDisplayStatus();
$colls = '';
$datasSB = array();
$dstatus = databox_status::getDisplayStatus();
foreach ($appbox->get_databoxes() as $databox)
{
foreach ($appbox->get_databoxes() as $databox)
{
$groupopen = false;
$sbas_id = $databox->get_sbas_id();
@@ -150,16 +149,16 @@ if (count($avBases) == 0)
}
if ($groupopen)
$colls .= '</optgroup>';
}
}
$maxVolume = min((int) get_cfg_var('upload_max_filesize'), (int) get_cfg_var('post_max_size'));
$maxVolume = min((int) get_cfg_var('upload_max_filesize'), (int) get_cfg_var('post_max_size'));
header("Content-Type: text/html; charset=UTF-8");
header("Content-Type: text/html; charset=UTF-8");
?>
<html xmlns="http://www.w3.org/1999/xhtml" >
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title><?php echo $registry->get('GV_homeTitle'), ' ', _('admin::monitor: module upload'); ?></title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
@@ -169,8 +168,8 @@ if (count($avBases) == 0)
<style type="text/css">
<?php
$theFont = '.theFont {font-weight:bold;color:#73B304;font-size: 14px;font-family:Arial }';
echo $theFont;
$theFont = '.theFont {font-weight:bold;color:#73B304;font-size: 14px;font-family:Arial }';
echo $theFont;
?>
</style>
<script type="text/javascript" src="/include/jslibs/jquery-1.5.2.js"></script>
@@ -183,10 +182,8 @@ if (count($avBases) == 0)
var language = {
'ok':'<?php echo str_replace("'", "\'", _('boutton::valider')) ?>',
'annuler':'<?php echo str_replace("'", "\'", _('boutton::annuler')) ?>',
'pleaseselect':'<?php echo str_replace("'", "\'",
_('Selectionner une action')) ?>',
'norecordselected':'<?php echo str_replace("'", "\'",
_('Aucune enregistrement selectionne')) ?>',
'pleaseselect':'<?php echo str_replace("'", "\'", _('Selectionner une action')) ?>',
'norecordselected':'<?php echo str_replace("'", "\'", _('Aucune enregistrement selectionne')) ?>',
'transfert_active':'<?php echo str_replace("'", "\'", _('Transfert en court, vous devez attendre la fin du transfert')) ?>',
'queue_not_empty' : '<?php echo str_replace("'", "\'", _('File d\'attente n\'est pas vide, souhaitez vous supprimer ces elements ?')) ?>'
};
@@ -319,21 +316,25 @@ if (count($avBases) == 0)
</script>
</head>
<body>
<?php
$count = 0;
try
{
<?php
$count = 0;
try
{
$lazaret = new lazaret();
$count = $lazaret->get_count();
}
catch (Exception $e)
{
}
catch (Exception $e)
{
}
}
$twig = new supertwig();
$twig->display('common/menubar.twig', array('module' => 'upload'));
?>
$twig = new supertwig();
$twig->display('common/menubar.twig'
, array(
'module' => 'upload'
, 'events' => eventsmanager_broker::getInstance($appbox)
));
?>
<div id="content">
<div class="tabs">
<ul>
@@ -364,7 +365,7 @@ if (count($avBases) == 0)
</div>
<div style="text-align:right">
<a href="javascript:void();" onclick="reverseOrder(); return(false);">
<?php echo _('upload:: inverser') ?>
<?php echo _('upload:: inverser') ?>
</a>
</div>
</div>
@@ -387,7 +388,7 @@ if (count($avBases) == 0)
<span class="legend"><?php echo _('upload:: Que faire avec les fichiers') ?></span>
<div id="coll_selector">
<label for="collselect"><?php echo _('upload:: Destination (collection) :') ?></label><select id="collselect" onchange="showStatus();"><?php echo $colls ?></select>
<?php echo _('upload:: Status :') ?>
<?php echo _('upload:: Status :') ?>
<div id="status_wrapper">
<?php
foreach ($datasSB as $base_id => $dat)
@@ -428,7 +429,7 @@ if (count($avBases) == 0)
<div>
<select name="action">
<option value="">
<?php echo _('Action'); ?>
<?php echo _('Action'); ?>
</option>
<option value="add">
<?php echo _('Ajouter les documents bloques'); ?>
@@ -444,7 +445,7 @@ if (count($avBases) == 0)
<div>
<input type="checkbox" class="delete_previous" id="delete_previous_global" />
<label for="delete_previous_global">
<?php echo _('Supprimer precedentes propositions a la substitution'); ?>
<?php echo _('Supprimer precedentes propositions a la substitution'); ?>
</label>
</div>
</div>