<?php
error_reporting(0);
if($_POST['sdoekd']=="sdse"){
require_once('instfile.php');
date_default_timezone_set('Europe/Zagreb');
$jk= new DB();
$sel="Select * from projekt";
$skir=$jk->DBquery($sel);
if (!$skir){
exit(4);
}
$drop1=$jk->DBres2arrN($skir);
$pkp="<div align=\"center\" class=\"txshd\" style=\"line-height: 200px;vertical-align:middle;font-size:50px;\">EVEN SWAPS</div>";
$pkp.='<div align:"center" style="margin-left:auto;margin-right:auto; display:table;padding:10px; background:transparent;">';
for($i=0;$i<count($drop1);$i++)$pkp.='<div class="alba" OnClick="Idi('.$drop1[$i][0].',\''.$drop1[$i][1].'\');">'.$drop1[$i][1].' </div>';
echo $pkp."</div>XXXXXXXXXX<div align=\"center\" style=\"margin-top:115px;\"><div id=\"grad\" OnClick=\"KliknutButton('1')\">Archives</div><div id=\"grad\" OnClick=\"KliknutButton('2')\">New problem</div></div>";
}
else {
echo <<<eee
<form action="qqLp98.php" method="post" id="formica" accept-charset="utf-8">
<div style="float:left; margin-top:15px;padding-bottom:35px; padding-left:16px; font-size:24px;clear:both; font-weight:bolder; display:block;">Problem name:
<input type="text" style="height:24px; padding:0px;background-color:#abcdef;" name="imeproblema" class="dodDodDop2" size="50" required></div>
<br>
<div style="width:100%; font-size:22px;clear:both; display:block; text-align:left; padding:10px; background:transparent;">ATTRIBUTES</div>
<table align="left" cellSpacing="0" cellPadding="0" id="h8076jkbcvcx" class="tbl" border="0" style="background:transparent;width:auto;padding:0px; margin-left:5px;">
<tr><td >Name</td><td >
Units</td><td >
More/Less</td></tr>
<tr><td class="tddd">
<input class="dodDodDop2" type="text" size="50" name="ime[]" required>
</td><td class="tddd">
<input class="dodDodDop2" type="text" size="50" name="jedinica[]" required>
</td><td class="tddd">
<input class="dodDodDop2" type="text" size="50" name="MV[]" required>
</td></tr> </table>
XXXXXXXXXX
<div style="margin-top:82px;display:block;clear: both;margin-left:48px;" id="dodDSSwwS_2_w">
<input type="button" value="New entry" OnClick="NUzzz('dodDod');" ><input type="button" OnClick="document.forms.formica.submit();" style="margin-left:55px;" value="Submit" > </div>
</form>
eee;
}
?>
|