} </script> </head> <body> <?php $PHP_SELF = $_SERVER['PHP_SELF']; ConnectToDB(); $rcid = isset($_GET['rcid']) ? intval($_GET['rcid']) : 0; if ($rcid > 0) { $sql = "SELECT rc.name rcname, c.name cname FROM mopcompetition c, resultconfig rc WHERE rc.rcid={$rcid}"; $res = mysql_query($sql); if (mysql_num_rows($res) > 0) { $r = mysql_fetch_array($res); $rcname = $r['rcname']; print "<form method=GET action='screenconfig.php'>"; print "<input type='hidden' name='action' value='update'>"; print "<input type='hidden' name='rcid' value='{$rcid}'>"; print MyGetText(54) . " : <input type='text' name='configname' value='{$rcname}' size=64 maxlength=64><br/>"; // New name print "<br/><input type='submit' value='" . MyGetText(52) . "'> "; // OK print "<input type='button' value='" . MyGetText(53) . "' onclick='GoBack();'>"; // cancel print "</form>"; } } ?> </body> </html>
print "<td class='class_entries'>{$pctentries} %</td>\n"; //-- Done $n = 0; $sql2 = "SELECT COUNT(*) FROM mopcompetitor WHERE cid={$cid} AND cls={$classid} AND stat>0"; $res2 = mysql_query($sql2); if (mysql_num_rows($res2) > 0) { if ($r2 = mysql_fetch_array($res2)) { $ndone = $r2[0]; } } print "<td class='class_done'>{$ndone}</td>\n"; $pct = 100; if ($nentry > 0) { $pct = round(100 * $ndone / $nentry); } if ($pct >= 99) { print "<td class='class_pct_ok'>{$pct} %</td>\n"; } else { print "<td class='class_pct'>{$pct} %</td>\n"; } print "</tr>\n"; } } print "</table><br/>\n"; } } print "<a href=screen.php?rcid={$rcid}>" . MyGetText(23) . "</a>"; ?> </body> </html>
} print "<tr>\n"; print "<td>" . $name . "</td>\n"; print "<td align='right'>" . $pcount . "</td>\n"; print "<td align='right'>" . $filedate . "</td>\n"; print "<td><a href='' target='_blank'><img src='img/pict.png' title='" . MyGetText(18) . "'></img></a></td>\n"; // show print "<td><img src='img/suppr.png' title='" . MyGetText(6) . "' onclick='DelSlideFolder(\"" . MyGetText(14) . "\",\"" . $name . "\");'></img></td>\n"; print "</tr>\n"; } print "</table>\n"; print "<br/>\n"; print "<form enctype='multipart/form-data' action='screenfiles.php' method='POST' id='slidefolderadd'>\n"; print MyGetText(110) . "<br/>\n"; // Image upload print "<input type=hidden name='MAX_FILE_SIZE' value='20000000'>\n"; print "<input type='file' accept='image/*' size=80 name='slidefoldername[]' multiple=''>\n"; print "<input type=text name='slidefolder' value='slides" . date('YmdHis') . "'>\n"; print "<input type=submit name='slidesubmit' value='Submit'>\n"; print "</form>\n"; print "<br/>\n"; print "<hr/><br/>\n"; print "<hr/><br/>\n"; print "<a href='screenconfig.php'>" . MyGetText(19) . "</a> "; print "<br/>\n"; ?> </form> </body> </html>
function Display() { global $picturefilelist; global $slidesfilelist; global $htmlfilelist; print '<div id="pan' . $this->numpanel . 'div">'; $prefix = 'panel' . $this->numpanel; //print "<h4>$prefix</h4>"; //TODO to be replaced with tab higlighting print "<table>\n"; // mode print "<tr>\n"; print "<td><input type='checkbox' name='chkall[]' value='" . $prefix . "mode'></input></td>\n"; print "<td>" . MyGetText(30) . "</td>\n"; print "<td><select name='" . $prefix . "mode' size=1>\n"; switch ($this->mode) { case 1: print "<option value='1' selected>" . MyGetText(101) . "</option>\n"; // indiv print "<option value='2'>" . MyGetText(102) . "</option>\n"; // relay print "<option value='3'>" . MyGetText(103) . "</option>\n"; // multistages print "<option value='4'>" . MyGetText(105) . "</option>\n"; // showO break; case 2: print "<option value='1'>" . MyGetText(101) . "</option>\n"; // indiv print "<option value='2' selected>" . MyGetText(102) . "</option>\n"; // relay print "<option value='3'>" . MyGetText(103) . "</option>\n"; // multistages print "<option value='4'>" . MyGetText(105) . "</option>\n"; // showO break; case 3: print "<option value='1'>" . MyGetText(101) . "</option>\n"; // indiv print "<option value='2'>" . MyGetText(102) . "</option>\n"; // relay print "<option value='3' selected>" . MyGetText(103) . "</option>\n"; // multistages print "<option value='4'>" . MyGetText(105) . "</option>\n"; // showO break; case 4: print "<option value='1'>" . MyGetText(101) . "</option>\n"; // indiv print "<option value='2'>" . MyGetText(102) . "</option>\n"; // relay print "<option value='3'>" . MyGetText(103) . "</option>\n"; // multistages print "<option value='4' selected>" . MyGetText(105) . "</option>\n"; // showO break; } print "</select></td>\n"; print "</tr>\n"; // relay team member count print "<tr>\n"; print '<td><input type="checkbox" name="chkall[]" value="' . $prefix . 'tm_count"></input></td>'; print "<td>" . MyGetText(81) . "</td>\n"; $str = NumericIntList($prefix . "tm_count", 1, 10, $this->tm_count); print "<td>{$str}</td>\n"; print "</tr>\n"; // alternate print "<tr>\n"; print "<td><input type='checkbox' name='chkall[]' value='" . $prefix . "alternate'></input></td>\n"; print "<td>" . MyGetText(97) . "</td>\n"; print "<td><select name='" . $prefix . "alternate' size=1>\n"; switch ($this->alternate) { case 0: print "<option value='0' selected>" . MyGetText(104) . "</option>\n"; // Classical print "<option value='1'>" . MyGetText(106) . "</option>\n"; // Alternate break; case 1: print "<option value='0'>" . MyGetText(104) . "</option>\n"; // Classical print "<option value='1' selected>" . MyGetText(106) . "</option>\n"; // Alternate break; default: print "<option value='0' selected>" . MyGetText(104) . "</option>\n"; // Classical print "<option value='1'>" . MyGetText(106) . "</option>\n"; // Alternate break; } print "</select></td>\n"; print "</tr>\n"; // Empty line print "<tr>\n"; print "<td> </td>\n"; print "<td> </td>\n"; print "</tr>\n"; // content print "<tr>\n"; print "<td> </td>\n"; print '<td><input type="checkbox" name="chkall[]" value="' . $prefix . 'content"></input></td>'; print "</tr>\n"; // Picture print "<tr>\n"; print '<td><input type="checkbox" name="chkall[]" value="' . $prefix . 'pict"></input></td>'; print '<td><input type="radio" name="' . $prefix . 'content" value="1" id="' . $prefix . 'id1">' . MyGetText(38) . '</input></td>'; InsertFileList($picturefilelist, $prefix . 'pict', $this->pict, $prefix . 'content1txt'); print "</tr>\n"; // Slides print "<tr>\n"; print '<td><input type="checkbox" name="chkall[]" value="' . $prefix . 'slides"></input></td>'; print '<td><input type="radio" name="' . $prefix . 'content" value="8" id="' . $prefix . 'id8">' . MyGetText(99) . '</input></td>'; InsertFileList($slidesfilelist, $prefix . 'slides', $this->slides, $prefix . 'content8'); print "</tr>\n"; // Text print "<tr>\n"; print '<td><input type="checkbox" name="chkall[]" value="' . $prefix . 'txt"></input></td>'; print '<td><input type="radio" name="' . $prefix . 'content" value="2" id="' . $prefix . 'id2">' . MyGetText(39) . '</input></td>'; print '<td><textarea name="' . $prefix . 'txt" cols=64 rows=4 maxlength=500 id="' . $prefix . 'content2">' . $this->txt . '</textarea></td>'; $str = NumericIntList($prefix . 'txtsize', 1, 72, $this->txtsize); print "<td>{$str}</td>\n"; print '<td>' . MyGetText(66) . ' : <input type="text" name="' . $prefix . 'txtcolor" id="' . $prefix . 'txtcolor" class="color" size=6 value="' . $this->txtcolor . '"></td>'; print "</tr>\n"; // Blog print "<tr>\n"; print "<td> </td>\n"; print '<td><input type="radio" name="' . $prefix . 'content" value="7" id="' . $prefix . 'id7">' . MyGetText(93) . '</input></td>'; print "</tr>\n"; // HTML print "<tr>\n"; print '<td><input type="checkbox" name="chkall[]" value="' . $prefix . 'html"></input></td>'; print '<td><input type="radio" name="' . $prefix . 'content" value="3" id="' . $prefix . 'id3">' . MyGetText(40) . '</input></td>'; InsertFileList($htmlfilelist, $prefix . 'html', $this->html, $prefix . 'content3txt'); print "</tr>\n"; // Start list print "<tr>\n"; print "<td> </td>\n"; print '<td><input type="radio" name="' . $prefix . 'content" value="4" id="' . $prefix . 'id4">' . MyGetText(42) . '</input></td>'; print '<td><input type="text" name="' . $prefix . 'startlist" size=64 id="' . $prefix . 'content4" readonly value="' . $this->classes . '"></td>'; print "</tr>\n"; // Results print "<tr>\n"; print "<td> </td>\n"; print '<td><input type="radio" name="' . $prefix . 'content" value="5" id="' . $prefix . 'id5">' . MyGetText(43) . '</input></td>'; print '<td><input type="text" name="' . $prefix . 'results" size=64 id="' . $prefix . 'content5" readonly value="' . $this->classes . '"></td>'; print "</tr>\n"; // Summary print "<tr>\n"; print "<td> </td>\n"; print '<td><input type="radio" name="' . $prefix . 'content" value="6" id="' . $prefix . 'id6">' . MyGetText(92) . '</input></td>'; print '<td><input type="text" name="' . $prefix . 'summary" size=64 id="' . $prefix . 'content6" readonly value="' . $this->classes . '"></td>'; print "</tr>\n"; // Radio print "<tr>\n"; print "<td> </td>\n"; print '<td><input type="radio" name="' . $prefix . 'content" value="9" id="' . $prefix . 'id9">' . MyGetText(107) . '</input></td>'; print '<td><input type="text" name="' . $prefix . 'radio" size=64 id="' . $prefix . 'content9" readonly value="' . $this->classes . '"></td>'; $str = NumericIntList($prefix . 'radioctrl', 31, 255, $this->radioctrl); print "<td>{$str}</td>\n"; print "</tr>\n"; // First line print "<tr>\n"; print '<td><input type="checkbox" name="chkall[]" value="' . $prefix . 'firstline"></input></td>'; $str = NumericIntList($prefix . "firstline", 1, 999, $this->firstline); print "<td>" . MyGetText(58) . "</td>\n"; print "<td>{$str}</td>\n"; print "</tr>\n"; // Fixed line print "<tr>\n"; print '<td><input type="checkbox" name="chkall[]" value="' . $prefix . 'fixedlines"></input></td>'; $str = NumericIntList($prefix . "fixedlines", 0, 30, $this->fixedlines); print "<td>" . MyGetText(59) . "</td>\n"; print "<td>{$str}</td>\n"; print "</tr>\n"; // Scrolling lines print "<tr>\n"; print '<td><input type="checkbox" name="chkall[]" value="' . $prefix . 'scrolledlines"></input></td>'; $str = NumericIntList($prefix . "scrolledlines", 0, 30, $this->scrolledlines); print "<td>" . MyGetText(60) . "</td>\n"; print "<td>{$str}</td>\n"; print "</tr>\n"; // Before scroll wait time print "<tr>\n"; print '<td><input type="checkbox" name="chkall[]" value="' . $prefix . 'scrollbeforetime"></input></td>'; $str = NumericIntList($prefix . "scrollbeforetime", 1, 200, $this->scrollbeforetime); print "<td>" . MyGetText(62) . "</td>\n"; print "<td>{$str} 1/10°s</td> \n"; print "</tr>\n"; // Scroll speed print "<tr>\n"; print '<td><input type="checkbox" name="chkall[]" value="' . $prefix . 'scrolltime"></input></td>'; $str = NumericIntList($prefix . "scrolltime", 1, 200, $this->scrolltime); print "<td>" . MyGetText(61) . "</td>\n"; print "<td>{$str} 1/10°s</td> \n"; print "</tr>\n"; print "<tr>\n"; print '<td><input type="checkbox" name="chkall[]" value="' . $prefix . 'scrollaftertime"></input></td>'; $str = NumericIntList($prefix . "scrollaftertime", 1, 200, $this->scrollaftertime); print "<td>" . MyGetText(63) . "</td>\n"; // After scroll wait time print "<td>{$str} 1/10°s</td> \n"; print "</tr>\n"; print "<tr>\n"; print '<td><input type="checkbox" name="chkall[]" value="' . $prefix . 'updateduration"></input></td>'; $str = NumericIntList($prefix . "updateduration", 1, 200, $this->updateduration); print "<td>" . MyGetText(64) . "</td>\n"; // recent higlight print "<td>{$str} min</td> \n"; print "</tr>\n"; print "</table>\n"; print '</div>'; }
if ($res) { echo '<p><strong>Les données ont bien été envoyées</strong></p>'; } } else { if ($action == "clear") { $sql = 'DELETE FROM resultblog WHERE rcid=' . $rcid; $res = mysql_query($sql); if ($res) { echo '<p><strong>Les données ont bien été effacées</strong></p>'; } } } ?> <div> <p><?php echo MyGetText(108); ?> </p> <form method="post" action="screenblog.php"> <textarea name="blogcontent" cols="100" rows="10"></textarea> <br /> <input type="submit" value="Envoyer" name="blogsubmit" /> </form> </div> <div> <ul class="blogview" id="bloglist0"> </ul> </div> <script type="text/javascript"> var rcid = <?php echo $rcid;
function getStatusString($status) { $text = '?'; switch ($status) { case 0: $text = MyGetText(73); //Unknown, running? break; case 1: $text = MyGetText(74); // OK break; case 3: $text = MyGetText(75); // Missing punch break; case 4: $text = MyGetText(76); //Did not finish break; case 5: $text = MyGetText(77); // Disqualified break; case 6: $text = MyGetText(78); // Overtime break; case 20: $text = MyGetText(79); // Did not start; break; case 99: $text = MyGetText(80); //Not participating; break; } return $text; }
<?php if (!extension_loaded('phpDll')) { dl('phpDll.dll'); } $module = 'some_functions'; if (extension_loaded($module)) { $str = "module loaded"; } else { $str = "Module {$module} is not compiled into PHP"; } echo "{$str}<br>"; $functions = get_extension_funcs($module); echo "Functions available in the {$module} extension:<br>\n"; foreach ($functions as $func) { echo $func . "<br>"; } $str = MyGetText("Hello!"); //This Delphi function is : ... ReturnValue:='Hello From DLL'; echo "Delphi ret -->{$str}<br>";
font-family:cursive; } </style> </head> <body onload="getData();"> <?php print "<input type='button' value='" . MyGetText(87) . "' onclick='window.close();'> "; // Close button print "<input type='button' value='" . MyGetText(72) . "' onclick='ViewRadioLog();'> "; // View log button print "<input type='button' value='" . MyGetText(82) . "' onclick='DelRadiodata(\"" . MyGetText(82) . "\");'> "; // Clear data button print "<input type='button' value='" . MyGetText(112) . "' onclick='InstallDone();'> "; // Clear data button print "<input type='button' value='" . MyGetText(113) . "' onclick='InstallStart();'> "; // Clear data button ?> <svg id="map" viewbox="0 0 <?php echo $sizeX; ?> <?php echo $sizeY; ?> " xmlns="http://www.w3.org/2000/svg" style="font-size:12px;stroke:magenta;stroke-width:0.5;fill:magenta;"> <defs> <marker id='head' orient='auto' markerWidth='4' markerHeight='4' refX='0.1' refY='2'> <path d='M0,0 V4 L2,2 Z' fill='red' /> </marker>
print "<img src='img/htm.png'></img> <a href=readme.html target='_blank'>README (english)</a><br/>\n"; $docfilename = file_exists("MopScreens-" . $_SESSION['CurrentLanguage'] . ".pdf") ? "MopScreens-" . $_SESSION['CurrentLanguage'] . ".pdf" : "MopScreens-en.pdf"; print "<img src='img/pdf.png'></img> <a href=" . $docfilename . ">" . MyGetText(67) . "</a><br/>\n"; print "<hr/>\n"; print "<b>" . MyGetText(71) . "</b><br>\n"; // Settings print MyGetText(36) . " : "; print "<select name='lang' id='lang' size=1 onchange='SetLanguage();'>"; foreach (GetLanguages() as $lng) { $code = $lng[0]; $name = $lng[1]; if ($code === $_SESSION['CurrentLanguage']) { print "<option value={$code} selected>{$name}</option>"; } else { print "<option value={$code}>{$name}</option>"; } } print "</select>\n"; print "<br/>\n"; print "<a href=\"screenserverip.php\">" . MyGetText(70) . "</a><br/>\n"; print "<a href=\"screenradioconfig.php\">" . MyGetText(86) . "</a><br/>\n"; print "<br/>\n"; print "<a href=\"screenblog.php\">" . MyGetText(108) . "</a><br/>\n"; print "<hr/>\n"; print "<br/>\n"; print "<br/>\n"; ?> </body> </html>
$availid = $maxid + 1; print "</table>\n"; $newx = ($srcx1 + $srcx0) / 2.0; $newy = ($srcy1 + $srcy0) / 2.0; print "<input type='button' value='" . MyGetText(7) . "' onclick='AddRadio(" . $srcid . "," . $availid . "," . $newx . "," . $newy . ");'>"; // New //-- radio edit zone print "<div id='editzoneid' style='display:none'>\n"; print "<hr>\n"; print MyGetText(8) . " <input type='text' name=x0 size=2 id=idid value='0'> \n"; print "X <input type='text' name=x0 size=2 id=xposid value='10'> \n"; print "Y <input type='text' name=x0 size=2 id=yposid value='10'> \n"; print "<input type='hidden' id='oldid' value='0'>\n"; print "<input type='button' value='" . MyGetText(89) . "' onclick='ChangePos(" . $srcid . ");'>"; // Change print " <input type='button' value='" . MyGetText(53) . "' onclick='CancelPos();'>"; // Cancel print "<br/>(" . MyGetText(91) . ")\n"; print "</div>\n"; print "<hr>\n"; print "<div align=center>\n"; print "<input type='button' value='" . MyGetText(87) . "' onclick='location.replace(\"screenradioconfig.php\");'>"; // Close print "</div>\n"; } ?> </body> </html>
print "<tr>\n"; print "<td rowspan=3><select name='takenclasses' id='takenclasses' size=40 multiple='multiple'>\n"; foreach ($takenclasslist as $takenid => $takenname) { print "<option value={$takenid}>{$takenname}</option>\n"; unset($availableclasslist["{$takenid}"]); } print "</select></td>\n"; print "<td> </td>\n"; print "<td rowspan=3><select name='availableclasses' id='availableclasses' size=40 multiple='multiple'>\n"; foreach ($availableclasslist as $availid => $availname) { print "<option value={$availid}>{$availname}</option>\n"; } print "</select></td>\n"; print "</tr>\n"; print "<tr>\n"; print "<td><input type='button' value='<' onclick='Take();'></td>\n"; print "</tr>\n"; print "<tr>\n"; print "<td><input type='button' value='>' onclick='GiveBack();'></td>\n"; print "</tr>\n"; print "</table>\n"; print "<input type='button' value='" . MyGetText(52) . "' onclick='Validate({$rcid},{$cid},{$sid},{$panel},{$ret});'>"; // OK } } print "<input type='button' value='" . MyGetText(53) . "' onclick='GoBack({$rcid},{$sid},{$ret});'>"; // cancel ?> </body> </html>
imgElem.width = w; imgElem.height = h; //alert(or_width + "x" + or_height + "**" + w + "x" + h + "//" + screenw + "x" + screenh + "!!" + ratio_w + "x" + ratio_h); } <?php } if ($bRefreshRadio) { ?> function radioView(mytab, panel, clsTitle, ctrlid, panelscount) { var content = ''; if(document.getElementById('radiolist' + panel)) { content += '<tr>'; content += '<th colspan="3" class="entete_listradio">' + clsTitle + ' [<?php echo MyGetText(111); ?> ' + ctrlid + ']</th>'; content += '</tr>'; for(i=0;i<mytab.length;i++) { var cl = ((i % 2) ? 'alternateRow' : 'normalRow'); if(mytab[i][0] < (phpupdateduration[panel] * 60)) { content += '<tr class="radiorecent ' + cl + '">'; } else { content += '<tr class="' + cl + '">'; } content += '<td class="radiotime_' + panelscount + '">' + mytab[i][3] + '</td>';