Altri bugfix
This commit is contained in:
@@ -78,12 +78,12 @@ try{
|
||||
}
|
||||
}
|
||||
|
||||
$formFile = '<input type="hidden" name="MAX_FILE_SIZE" value="52428800" />
|
||||
$formFile = '<span class="label">Selezionare un file</span><input type="hidden" name="MAX_FILE_SIZE" value="52428800" />
|
||||
<input type="file" name="data"/>';
|
||||
|
||||
$formYoutube = 'url: <input type="text" name ="data"/>';
|
||||
$formYoutube = '<span class="label">Link</span> <input type="text" name ="data"/>';
|
||||
|
||||
$formHtml = 'Inserire html: <textarea type="text" name ="data"/ rows="5" cols="30"></textarea>';
|
||||
$formHtml = '<span class="label">Codice HTML</span><textarea type="text" name ="data"/ rows="5" cols="30"></textarea>';
|
||||
|
||||
}catch(GUIException $ex){
|
||||
$error = $ex->getMessage();
|
||||
@@ -99,7 +99,8 @@ HTMLHelper::generateAdminHead();
|
||||
<?php echo $error;?>
|
||||
<div>
|
||||
<form enctype="multipart/form-data" id="loadFile" method="POST">
|
||||
<div style="margin:15px 5px;">Selezionare tipo multimedia:
|
||||
<div style="margin:15px 5px;">
|
||||
<span class="label">Tipo di multimedia:</span>
|
||||
<select id="mediaType" name="mediaType">
|
||||
<option disabled selected style="display:none;">Seleziona Tipo</option>
|
||||
<?php foreach (MediaModel::$MEDIA_TYPES as $mediaType=>$data){
|
||||
@@ -124,16 +125,16 @@ HTMLHelper::generateAdminHead();
|
||||
else if(strcmp($mediaTypeSaved, MediaModel::TYPE_HTML5)==0){
|
||||
echo $formHtml;
|
||||
}
|
||||
// else{
|
||||
// echo $formFile;
|
||||
// }
|
||||
else if (!is_null($mediaTypeSaved)){
|
||||
echo $formFile;
|
||||
}
|
||||
?> <input type="hidden" name="id" value="<?php echo $notiziaId;?>" />
|
||||
<input type="hidden" name="action" value=""/>
|
||||
</div>
|
||||
</form>
|
||||
<div style="margin:15px 5px;">
|
||||
<a href="#" id="submit" >Invia</a>
|
||||
<a href="#" id="back" >Back</a>
|
||||
<a href="#" id="submit" >Salva</a>
|
||||
<a href="#" id="back" >Torna alla notizia</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user