Redesign - popravki napak - arhiv analiz

This commit is contained in:
pero1203 2022-05-31 09:57:31 +02:00
parent b33e773a7f
commit d8baef60cc
3 changed files with 13 additions and 5 deletions

View File

@ -1259,7 +1259,9 @@ class SurveyAnalysisArchive {
*
*/
static function createArchiveFromAnaliza() {
$content = null;
if($_POST['podstran'] == 'charts'){
# kreiramo arhiv za grafe
$SC = new SurveyChart();
@ -1280,13 +1282,15 @@ class SurveyAnalysisArchive {
if ($_POST['podstran'] == 'anal_arch') {
$_POST['podstran'] = 'sumarnik';
}
if (!isset($_POST['content'])) {
SurveyAnalysis::Init(self::$sid);
SurveyAnalysis::setUpIsForArchive(true);
SurveyAnalysis::setUpReturnAsHtml(true);
$content = SurveyAnalysis::Display();
} else {
}
else {
$content = $_POST['content'];
}
}
@ -1301,12 +1305,12 @@ class SurveyAnalysisArchive {
$ArchiveTypes = array(M_ANALIZA_SUMS => 0, M_ANALIZA_DESCRIPTOR=>1, M_ANALIZA_FREQUENCY=>2, M_ANALIZA_CROSSTAB=>3, M_ANALYSIS_MEANS=>4, M_ANALYSIS_TTEST=>5, M_ANALYSIS_BREAK=>6, M_ANALYSIS_CHARTS=>7, M_ANALYSIS_CREPORT=>8);
if (isset($_POST['podstran']))
$type = $ArchiveTypes[$_POST['podstran']];
if (isset($content) && trim($content) != null && self::$sid > 0) {
if (isset($content) && trim($content) != null && self::$sid > 0) {
SurveyAnalysisArchive :: Init(self::$sid);
SurveyAnalysisArchive :: CreateArchive($content,$name,$note,$access,$type,$duration,$durationType,$settings,$access_password);
} else {
}
else {
echo 'Error! (SurveyAnalysisArchive :: CreateArchive)';
}

View File

@ -30394,6 +30394,8 @@ input#endDate {
#arch_body_div .analysis_bottom_settings {
margin-bottom: 32px;
}
#arch_body_div .analysis_bottom_settings .comment_holder,
#arch_body_div .analysis_bottom_settings a:nth-child(2),
#arch_body_div .analysis_bottom_settings a:nth-child(6) {
display: none;
}

View File

@ -16,6 +16,8 @@
.analysis_bottom_settings{
margin-bottom: 32px;
.comment_holder,
a:nth-child(2),
a:nth-child(6){
display: none;
}