<?php
require'fun.php';
require'f_conectare.php';
conectare('adauga chestionar','adauga-chestionar');
$titlu='Adaugă chestionar';
$back[1]='<a href="/chestionare">'.img('vot.gif',2).'Chestionare</a>';
require'f_sus.php';
if($conn->query('SELECT`lei`FROM`membrii`WHERE`id`="'.$de.'"')->fetch_row()[0]>=$lei['chestionar'])
{
echo$div[4].img('vot.gif',2).'Adaugă chestionar'.$div[5];
$form[0]='/salveaza-chestionar" method="post';
$form[1]=0;
$form[2]=$div[1].'Intrebare:<br /><input name="intrebare" maxlength="255" />'.$div[0].$div[1].'Prima varianta de răspuns:<br /><input name="varianta1" maxlength="100" />'.$div[0].$div[1].'A doua varianta de răspuns:<br /><input name="varianta2" maxlength="100" />'.$div[0].$div[1].'A treia varianta de răspuns:<br /><input name="varianta3" maxlength="100" />'.$div[0].$div[1].'A patra varianta de răspuns:<br /><input name="varianta4" maxlength="100" />'.$div[0].$div[1].'A cincia varianta de răspuns:<br /><input name="varianta5" maxlength="100" />'.$div[0];
$form[3]='intrebare::varianta1::varianta2::varianta3::varianta4::varianta5';
$form[4]='Adauga';
require'f_form.php';
}
else
echo$div[4].'<img src="'.$domenii_statice[2].'actiune_delete.png" alt="" width="16" height="16" />Eroare!'.$div[5].$div[7].'Trebuie să ai '.$lei['chestionar'].' lei!<br /><a href="/informatii-lei">'.img('banca.gif',1).'<span style="color:red">Informații despre acumularea și consumul de lei</span></a>'.$div[0];
require'f_jos.php';