Skip to content

Commit

Permalink
Renamed SurveyResults/Preview tab to SurveyResults as it didn’t make …
Browse files Browse the repository at this point in the history
…sense to make a “preview” of a public page
  • Loading branch information
marcosgdf committed Jan 5, 2014
1 parent d76081d commit eb43a70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
25 changes: 0 additions & 25 deletions htdocs/opensurvey/adminstuds_preview.php
Expand Up @@ -468,9 +468,6 @@
print '</div>';


showlogo();


// Add form to add a field
if (GETPOST('ajoutsujet'))
{
Expand Down Expand Up @@ -563,34 +560,12 @@
print $langs->trans("PollAdminDesc",img_picto('','cancel.png@opensurvey'),img_picto('','add-16.png@opensurvey')).'<br><br>';
}

print '<div class="corps"> '."\n";

//affichage du titre du sondage
$titre=str_replace("\\","",$object->titre);
print '<strong>'.htmlentities($titre).'</strong><br>'."\n";

//affichage du nom de l'auteur du sondage
print $langs->trans("InitiatorOfPoll") .' : '.htmlentities($object->nom_admin).'<br>'."\n";

//affichage des commentaires du sondage
if ($object->commentaires)
{
print '<br>'.$langs->trans("Description") .' :<br>'."\n";
$commentaires=dol_nl2br(htmlentities($object->commentaires));
print $commentaires;
print '<br>'."\n";
}

print '</div>'."\n";


$nbcolonnes=substr_count($object->sujet,',')+1;

print '<form name="formulaire" action="'.$_SERVER["PHP_SELF"].'" method="POST">'."\n";
print '<input type="hidden" name="id" value="'.$numsondage.'">';

print '<div class="cadre"> '."\n";
print '<br>'."\n";

// Start to show survey result
print '<table class="resultats">'."\n";
Expand Down
2 changes: 1 addition & 1 deletion htdocs/opensurvey/fonctions.php
Expand Up @@ -42,7 +42,7 @@ function opensurvey_prepare_head(Opensurveysondage $object) {
$h++;

$head[1][0] = 'adminstuds_preview.php?id='.$object->id_sondage;
$head[1][1] = $langs->trans("SurveyResults").'/'.$langs->trans("Preview");
$head[1][1] = $langs->trans("SurveyResults");
$head[1][2] = 'preview';
$h++;

Expand Down

0 comments on commit eb43a70

Please sign in to comment.