function displayform2() { echo "<FORM action=\"\" method=\"POST\">"; echo "START:"; DateSelector("start"); echo " END:"; DateSelector("end"); echo " <input type=\"submit\" name=\"SubmitDates\" value=\"Submit\"></FORM>"; }
function printForm() { global $PHP_SELF; echo "<html>\n"; echo "<head>\n"; echo "<title>Генератор</title>\n"; echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\">\n"; echo "</head>\n"; echo "\n"; echo "<body>\n"; echo "<font class=\"content\">Каждая игра запускается и работает используя свой, неповторимый код.\n Таким образом никто не в состоянии повлиять на игровой процесс.<br>Как работает: При запуске игры данные передаются на генератор случайного кода. \nГенерируется код и запускается игровой процесс. При выходе из игры код скидывается. При запуске новой игры генерируется новый случайный код. \nКак примерно эта система работает вы можете проверить в форме ниже. Введите любое значение в поле. Это может быть любой набор символов. \nНажмите кнопку Сгенерировать код. Удачной Вам игры.</font>\n"; echo "<p> </p>\n"; echo "<form name=\"form1\" method=\"post\" action=\"{$PHP_SELF}\">\n"; echo " <input name=\"action\" type=\"hidden\" value=\"generate\">\n"; echo " <div align=\"center\">\n"; echo " <table border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"0\">\n"; echo " <tr>\n"; echo " <td width=\"200\"><div align=\"right\"><strong><font size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif\">\n"; echo " Введите значение:</font></strong></div></td>\n"; echo " <td> <input name=\"frmName\" type=\"text\" id=\"frmName\" size=\"40\"> </td>\n"; echo " </tr>\n"; echo " <tr>\n"; echo " <tr>\n"; echo " <td><div align=\"right\"><strong><font size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Дата генерации:\n"; echo " </font></strong></div></td>\n"; echo " <td>"; DateSelector("expiry"); echo "</td>\n"; echo " </tr>\n"; echo " </table>\n"; echo " <p>\n"; echo " <input type=\"submit\" name=\"Submit\" value=\"Сгенерировать код\">\n"; echo " </p>\n"; echo " </div>\n"; echo "</form>\n"; echo "</body>\n"; echo "</html>"; }
echo "<h3>Import a Cart</h3>\n"; echo "<p>This page imports <b>carts.</b> K? Or go <a href='" . $_SERVER['HTTP_REFERER'] . "'>back</a>...</p>\n"; echo "<div id='contents'>"; echo "<b>Cart Path:</b> " . $cartPath . " <br /><br />"; echo "<form method='POST' action='import_submit_cart.php'>"; echo "<table><tr><th></th><th></th>"; //the hidden input should take care of the file extension (in case it's not mp3) echo "<tr><td>Title</td><td><input type='text' name='cartName' value='{$cartName['0']}' /></td></tr> <input type='hidden' name='cartExt' value='{$cartName['1']}' />"; echo "<tr><td>Issuer</td><td><input type='text' name='cartIssuer' value='' /></td></tr>"; echo "<tr><td>Type</td><td><input type='radio' name='cartType' value='0' />PSA<br /><input type='radio' name='cartType' value='1' />Underwriting<br /><input type='radio' name='cartType' value='3' />Promotion<br /><input type='radio' name='cartType' value='2' />Station<br /><input type='radio' name='cartType' value='5' />Other<br /></td></tr>"; echo "<tr><td>Start Date</td>"; echo "<td>"; DateSelector('startDate'); echo "</td></tr>"; echo "<tr><td>End Date</td>"; echo "<td>"; DateSelector('endDate'); echo "<input type='checkbox' name='noEndDate' />No End Date</td></tr>"; echo "<tr><td>Start Time: </td><td>"; timeSelect('startTime'); echo "(Leave both the same if all day)</td></tr>"; echo "<tr><td>End Time: </td><td>"; timeSelect('endTime'); echo "</td></tr>"; echo "</table>"; echo "<input type='hidden' name='redirect' value=\"" . urlencode($_SERVER['HTTP_REFERER']) . "\" /><input type='hidden' name='cartPath' value='{$cartPath}' /><input type='hidden' name='filename' value='{$cartGet}' />"; echo "<p><input type='submit' name='submit' value='Submit'></form>"; $netTime = microtime(true) - $time; echo "<p>Current working directory: {$dirCurrent}</p>\n"; echo "<p>Time needed to execute: " . round($netTime, 5) . " seconds\n</p>"; echo "\n</div>\n";
function displayform() { ?> <form action="?tab=custom<?php if (isset($_GET['page'])) { echo "&page=" . $_GET['page']; } ?> " method="POST"> <div style="padding: 10px 0 0 15px;"> <div style="display: inline-block; padding-right:0.5em;"> <div style="padding-bottom: 5px; text-align: right;">Start: <?php DateSelector("start"); ?> </div> <div style="text-align: right;">End: <?php DateSelector("end"); ?> </div> </div> <div style="display: inline-block; padding-right:0.5em; vertical-align: top;"> <div style="display: inline-block; padding-right:0.5em;"> <select style="height: 3em;" name="custom_type"> <option value="Separate" <?php if (isset($_POST['custom_type'])) { if ($_POST['custom_type'] == 'Separate') { echo 'selected="selected"'; } } ?> >Separate</option> <option value="Combined" <?php if (isset($_POST['custom_type'])) { if ($_POST['custom_type'] == 'Combined') { echo 'selected="selected"'; } } ?> >Combined</option> </select> </div> </div> <div style="display: inline-block; padding-right:0.5em; vertical-align: top;"> <div style="adding-right:0.5em;"> Width: <input type="text" value="<?php if (isset($_POST['graph-width']) && $_POST['graph-width'] != '') { echo $_POST['graph-width']; } else { echo '950'; } ?> " maxlength=4 size=4 name="graph-width" title="Width of the generated graph"> px (4000 max) </div> </div> <div style="display: inline-block; padding-right:0.5em; vertical-align: top;"> <button type="submit" name="SubmitDates" value="Generate">Generate<br>Graph</button> </div> </div> </form> <?php }
function displayform() { ?> <FORM action="?tab=graph<?php if (isset($_GET['page'])) { echo "&page=" . $_GET['page']; } ?> " method="POST"> <div style="padding: 10px 0 0 15px;"> <div style="display: inline-block;"> <div style="padding-bottom: 5px; text-align: right;">START: <?php DateSelector("start"); ?> </div> <div style="text-align: right;">END: <?php DateSelector("end"); ?> </div> </div> <div style="display: inline-block;"> <div style="display: inline-block;"> <select name="MainType"> <option value="Separate" <?php if (isset($_POST['MainType'])) { if ($_POST['MainType'] == 'Separate') { echo 'selected="selected"'; } } ?> >Separate</option> <option value="Combined" <?php if (isset($_POST['MainType'])) { if ($_POST['MainType'] == 'Combined') { echo 'selected="selected"'; } } ?> >Combined</option> </select> <input type="text" value="900" maxlength=4 size=4 name="graph-width" title="Width of the generated graph"> Width (pixels, max 4000) </div> </div> <div style="display: inline-block;"> <input type="submit" name="SubmitDates" value="Submit"> </div> </div> </FORM> <?php }
function displayform() { ?> <form action="?tab=custom<?php if (isset($_GET['page'])) { echo "&page=" . $_GET['page']; } ?> " method="POST"> <div style="padding: 10px 0 0 15px;"> <div style="display: inline-block; padding-right:0.5em;"> <div style="padding-bottom: 5px; text-align: right;">Start: <?php DateSelector("start"); ?> </div> <div style="text-align: right;">End: <?php DateSelector("end"); ?> </div> </div> <div style="display: inline-block; padding-right:0.5em; vertical-align: top;"> <div style="display: inline-block; padding-right:0.5em;"> <select name="custom_type"> <option value="Separate" <?php if (isset($_POST['custom_type'])) { if ($_POST['custom_type'] == 'Separate') { echo 'selected="selected"'; } } ?> >Separate</option> <option value="Combined" <?php if (isset($_POST['custom_type'])) { if ($_POST['custom_type'] == 'Combined') { echo 'selected="selected"'; } } ?> >Combined</option> </select> </div> <div style="display: inline-block; padding-right:0.5em;"> Width: <input type="text" value="900" maxlength=4 size=4 name="graph-width" title="Width of the generated graph"> px (4000 max) </div> <div style="display: inline-block; padding-right:0.5em;"> Show Key: <input type="hidden" name="key" value="0" /><input type="checkbox" id="key" name="key" value="1"<?php if (isset($_POST['key'])) { if ($_POST['key'] == 1) { echo ' checked'; } } ?> title="Generate graph with legend/key."/> </div> </div> <div style="display: inline-block;"> <input type="submit" name="SubmitDates" value="Generate"> </div> </div> </form> <?php }