Jump to content

what is wrong with this code? 2


victormenezes

Recommended Posts

on my server is giving error:Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\postador\include\opcoes.php on line 68


 


my code is:


I've changed the tags nothing happened can someone fix for me?



<?
$grupos = @simplexml_load_file("./xml/grupos.xml");
$grupoids = @explode(',', $grupos->ids);

if (file_exists("./xml/usuarios/id_{$id}.xml")){
// Carregando configurações XML
$config = simplexml_load_file("./xml/usuarios/id_{$id}.xml");
}
$portais_array = array('3', '6');
?>

<form id="s_config" action="index.php?act=opcoes_ret" method="post">
<dl><dt>Configure seu Gerador</dt>
<dd id="dados-left">
<label for="outrasinfo">1 - Outras Informações:</label>
<?php
if ($config->outrasinfo == 1){?><input type="checkbox" name="outrasinfo" id="outrasinfo" value="<?=$config->outrasinfo;?>" checked="checked" /><?
} else {?> <input type="checkbox" name="outrasinfo" id="outrasinfo" value="1" /><?}?>
<br />
<label for="youtube">2 - Link Youtube:</label>
<?php if ($config->youtube == 1){?> <input type="checkbox" name="youtube" id="youtube" value="<?=$config->youtube;?>" checked="checked" /><?
} else {?> <input type="checkbox" name="youtube" id="youtube" value="1" /><?}?>
<br />
<label for="quatroscreens">3 - Quatro ScreenShots:</label>
<?php if ($config->quatroscreens == 1){?> <input type="checkbox" name="quatroscreens" id="quatroscreens" value="<?=$config->quatroscreens;?>" checked="checked" /><?
} else {?> <input class="checkbox" type="checkbox" name="quatroscreens" id="quatroscreens" value="1" /><?}?>
<br />
<label for="curiosidades">4 - Curiosidades:</label>
<?php if ($config->curiosidades == 1){?> <input type="checkbox" name="curiosidades" id="curiosidades" value="<?=$config->curiosidades;?>" checked="checked" /><?
} else {?> <input type="checkbox" name="curiosidades" id="curiosidades" value="1" /><?}?>
<br />
<label for="premiacoes">5 - Premiações:</label>
<?php if ($config->premiacoes == 1){?> <input type="checkbox" name="premiacoes" id="premiacoes" value="<?=$config->premiacoes;?>" checked="checked" /><?
} else {?> <input type="checkbox" name="premiacoes" id="premiacoes" value="1" /><?}?>
<br />
</dd>
<dd id="dados-right">
<label for="imglanc">1 - Imagem de Lançamento:</label>
<input type="text" name="imglanc" id="imglanc" size="37" value="<?=$config->imglanc;?>" />
<br />
<?if (in_array($id, $grupoids)){?>
<label for="portais">2 - Portais:</label>
<select name="portais" id="portais">
<option value="">Selecione</option>
<?
foreach ($portais_array AS $portais){
if ($config->portais == $portais){
echo ("<option value=\"{$portais}\" selected=\"selected\">{$portais}</option>");
} else {
echo ("<option value=\"{$portais}\">{$portais}</option>");
}
}?>
</select>
<?}?>
</dd>
</dl>

<dl class="enviar-d"><dd><input type="submit" value="Salvar" /></dd></dl>

</form>








Edited by victormenezes
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.