function SelectYesNo($name, $selected, $config) { echo "<select name='" . $name . "'>"; if ($selected == "y") { echo "<option value='y' selected>" . GetStringFromStringTable("IDS_SELECT_YES", $config) . "</option>"; } else { echo "<option value='y'>" . GetStringFromStringTable("IDS_SELECT_YES", $config) . "</option>"; } if ($selected == "n" || $selected == "") { echo "<option value='n' selected>" . GetStringFromStringTable("IDS_SELECT_NO", $config) . "</option>"; } else { echo "<option value='n'>" . GetStringFromStringTable("IDS_SELECT_NO", $config) . "</option>"; } echo "</select>"; }
function SelectBoardType($name, $selected, $config) { echo "<select name='" . $name . "'>"; if ($selected == "1") { echo "<option value='1' selected>" . GetStringFromStringTable("IDS_CFGBOARD_TXT_8", $config) . "</option>"; } else { echo "<option value='1'>" . GetStringFromStringTable("IDS_CFGBOARD_TXT_8", $config) . "</option>"; } if ($selected == "0" || $selected == "") { echo "<option value='0' selected>" . GetStringFromStringTable("IDS_CFGBOARD_TXT_9", $config) . "</option>"; } else { echo "<option value='0'>" . GetStringFromStringTable("IDS_CFGBOARD_TXT_9", $config) . "</option>"; } echo "</select>"; }
?> images/cg_2.gif' border='0' alt='<?php echo GetStringFromStringTable("IDS_CHESS_CREAT_GAME_TXT_3a", $config); ?> '></a> <br> <?php echo GetStringFromStringTable("IDS_CHESS_CREAT_GAME_TXT_3", $config); ?> </center> </td><td> <center> <a href='./chess_create_game_ar.php?othpid=<?php echo $othpid; ?> '><img src='<?php echo $Root_Path . "skins/" . $SkinName . "/"; ?> images/cg_3.gif' border='0' alt='<?php echo GetStringFromStringTable("IDS_CHESS_CREAT_GAME_TXT_4a", $config); ?> '></a> <br> <?php echo GetStringFromStringTable("IDS_CHESS_CREAT_GAME_TXT_4", $config); ?> </center> </td> </tr> </table>
<?php if (!defined('CHECK_PHPCHESS')) { die("Hacking attempt"); exit; } ?> <center><h1><?php echo GetStringFromStringTable("IDS_MOBILE_DOWNLOAD_TXT_1", $config); ?> </h1></center> <?php echo GetStringFromStringTable("IDS_MOBILE_DOWNLOAD_TXT_2", $config); ?> <br><br> <a href='./clients/MobileChess.jad'>MobileChess.jad</a> <a href='./clients/MobileChess.jar'>MobileChess.jar</a>
} $oR3DCQuery->HandleActivityPageControlType($activityid, $pgi, $_SESSION['id']); echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td align='left'>"; if ($oR3DCQuery->GetActivityPageType($activityid, $pgi) != "lsn") { echo "<input type='button' name='btnViewSolution' value='" . GetStringFromStringTable("IDS_VIEW_ACTIVITIES_TXT_6", $config) . "' onclick=\"window.location='./chess_view_activities.php?tag=sa&aid=" . $activityid . "&pgi=" . $pgi . "&vs=1';\" class='mainoption'>"; } echo "</td>"; echo "<td align='right'>"; // BAck Button if ($pgi - 1 < 0) { echo "<input type='button' name='btnBack' value='" . GetStringFromStringTable("IDS_VIEW_ACTIVITIES_TXT_7", $config) . "' disabled class='mainoption'>"; } else { echo "<input type='button' name='btnBack' value='" . GetStringFromStringTable("IDS_VIEW_ACTIVITIES_TXT_7", $config) . "' onclick=\"window.location='./chess_view_activities.php?tag=sa&aid=" . $activityid . "&pgi=" . ($pgi - 1) . "';\" class='mainoption'>"; } // Next Button if ($pgi + 1 < $oR3DCQuery->GetActivityPageCount($activityid)) { echo "<input type='button' name='btnNext' value='" . GetStringFromStringTable("IDS_VIEW_ACTIVITIES_TXT_8", $config) . "' onclick=\"window.location='./chess_view_activities.php?tag=sa&aid=" . $activityid . "&pgi=" . ($pgi + 1) . "';\" class='mainoption'>"; } else { echo "<input type='button' name='btnNext' value='" . GetStringFromStringTable("IDS_VIEW_ACTIVITIES_TXT_8", $config) . "' disabled class='mainoption'>"; } echo "</td>"; echo "</tr>"; echo "</table>"; echo "</form>"; } } else { // do nothing }
' class='mainoption'> </td> </tr> </table> <input type='hidden' name='tid' value='<?php echo $tid; ?> '> <input type='hidden' name='type' value='<?php echo $type; ?> '> </form> <?php } else { echo "<center>" . GetStringFromStringTable("IDS_CHESS_TOURNAMENT_V2_TXT_110", $config) . "</center><br>"; } } else { echo "<center>" . GetStringFromStringTable("IDS_CHESS_TOURNAMENT_V2_TXT_93", $config) . "</center><br>"; } ?> </body> </html> <?php $oR3DCQuery->Close(); unset($oR3DCQuery);
<tr> <td class='row1' colspan='2'><input type='submit' name='cmdSubmit' value='<?php echo GetStringFromStringTable("IDS_CREATE_PAGE_TXT_9", $config); ?> ' class='mainoption'></td> </tr> </table> <input type='hidden' name='aid' value='<?php echo $AID; ?> '> </form> <?php } else { ?> <table border='0' align='center' class='forumline' cellpadding='3' cellspacing='1' width='95%'> <tr> <td class='row1' align='center'><input type='button' name='btnClose' value='<?php echo GetStringFromStringTable("IDS_CREATE_PAGE_TXT_10", $config); ?> ' onclick='javascript:window.close();' class='mainoption'></td> </tr> </table> <?php }
<?php echo GetStringFromStringTable("IDS_RENEWBILL_TABLE_TXT_16", $config); ?> </td> <td class='row2'> <input type="text" name="txtRedemptionCode" class='post' size="55"> </td> </tr> </table> <table border='0' cellspacing='1' cellpadding='3' width='95%' align='center'> <tr> <td> <input type='hidden' name='txtID' value='<?php echo $ID; ?> '> <input type='hidden' name='txtName' value='<?php echo $txtName; ?> '> <input type='hidden' name='txtIsRenew' value='1'> <center><input type="submit" value="<?php echo GetStringFromStringTable("IDS_RENEWBILL_BTN_1", $config); ?> " name="cmd" class='mainoption'></center> </td> </tr> </table> </form>
<tr> <td colspan='2' class='tableheadercolor'> <input type='submit' name='cmdCommand' value='<?php echo GetStringFromStringTable("IDS_RETRIEVEPASS_BTN_SUBMIT", $config); ?> ' class='mainoption'> <input type='Reset' name='cmdReset' value='<?php echo GetStringFromStringTable("IDS_RETRIEVEPASS_BTN_RESET", $config); ?> ' class='button'> </td> </tr> <?php if ($bsent) { ?> <tr> <td colspan='2' class="row2"> <?php echo GetStringFromStringTable("IDS_RETRIEVEPASS_TEXT_1", $config); ?> </td> </tr> <?php } ?> </table> </form>
<tr> <td class="white"> <h3 class="menu_title"><?php echo GetStringFromStringTable("IDS_MENU_TXT_15", $config); ?> </h3> <?php //Instantiate the CTipOfTheDay Class $oTipOfTheDay = new CTipOfTheDay($config); $oTipOfTheDay->GetRandomTip($config); unset($oTipOfTheDay); ?> </td> </tr> <tr> <td class="white"> <h3 class="menu_title"><?php echo GetStringFromStringTable("IDS_MENU_TXT_16", $config); ?> </h3> <?php $oR3DCQuery->GetNewPlayers($config); ?> </td> </tr> <?php } } ?> </table>
require $Root_Path . "includes/siteconfig.php"; require $Root_Path . "includes/language.php"; /********************************************************************** * TrimRSlash * */ function TrimRSlash($URL) { $nLength = strlen($URL); return $URL[$nLength - 1] == '/' ? substr($URL, 0, $nLength - 1) : $URL; } // Posted variables $txtSubject = $_POST['txtSubject']; $elm2 = $_POST['elm2']; // Set the body of the news letter $bodyp1 = "<html><head><title>" . $txtSubject . "</title></head><body>" . stripslashes($elm2) . "<br><br>" . GetStringFromStringTable("IDS_NEWSLETTER_MAILER_TXT_1", $config) . "<br><a href='" . TrimRSlash($conf['site_url']) . "/chess_close.php'>" . TrimRSlash($conf['site_url']) . "/chess_close.php</a></body></html>"; $From = $conf['registration_email']; $Name = $conf['site_name']; //Instantiate theCR3DCQuery Class $oR3DCQuery = new CR3DCQuery($config); $aEmail = $oR3DCQuery->ListAvailablePlayersEmail($config); $nCount = count($aEmail); $i = 0; while ($i < $nCount) { $To = $aEmail[$i]; $oR3DCQuery->SendEmail($To, $From, $Name, $txtSubject, $bodyp1); $i++; } $oR3DCQuery->Close(); unset($oR3DCQuery); header('Location: ./create_newsletter.php');
echo GetStringFromStringTable("IDS_CHESS_ACTIVITIES_TXT_4", $config); echo " " . $oR3DCQuery->GetLessonCount(); ?> </center> </td> <td valign='top'> <center> <a href='./chess_get_activities.php?tag=other'><img src='<?php echo $Root_Path . "skins/" . $SkinName . "/"; ?> images/ca_1_4.gif' border='0'></a> <br> <?php echo GetStringFromStringTable("IDS_CHESS_ACTIVITIES_TXT_7", $config) . "<br>"; echo GetStringFromStringTable("IDS_CHESS_ACTIVITIES_TXT_4", $config); echo " " . $oR3DCQuery->GetOtherCount(); ?> </center> </td> </tr> </table> <br><br> <?php //Get the players activity stats $oR3DCQuery->GetPersonalActivityStatsHTML($_SESSION['id']); ?> <table width='100%' cellpadding='0' cellspacing='0' border='0'> </table>
<?php echo GetStringFromStringTable("IDS_ADMIN_MANAGE_NEWSDATA_TABLE_LINK_2", $config); ?> </center> </td><td> <center> <a href='./manage_servermsg.php'><img src='<?php echo $Root_Path . "skins/" . $SkinName . "/"; ?> images/cfg_4_3.gif' border='0' alt='<?php echo GetStringFromStringTable("IDS_ADMIN_MANAGE_NEWSDATA_TABLE_TXT_3", $config); ?> '></a> <br> <?php echo GetStringFromStringTable("IDS_ADMIN_MANAGE_NEWSDATA_TABLE_LINK_3", $config); ?> </center> </td><td> <center> <a href='./edit_faq.php'><img src='<?php echo $Root_Path . "skins/" . $SkinName . "/"; ?> images/cfg_4_3.gif' border='0' alt='<?php echo __l('Edit FAQ'); ?> '></a> <br> <?php echo __l('Edit FAQ'); ?>
</tr> <tr> <td class="row1">Search</td><td class='row2'>Above: <Input type='text' name='txtAbove' size='10' class="post"> Below: <Input type='text' name='txtBelow' size='10' class="post"></td> </tr> <tr> <td colspan='2' class='row2' align='right'> <input type='submit' name='cmdSearchPoints' value='<?php echo GetStringFromStringTable("IDS_FIND_PLAYER_BTN_SEARCH", $config); ?> ' class='mainoption'> </td> </tr> </table> </form> <?php if ($txtSearch != "") {
<tr> <td class='row1' colspan='2'><input type='submit' name='cmdSubmit' value='<?php echo GetStringFromStringTable("IDS_CREATE_RESOURCE_TXT_16", $config); ?> ' class='mainoption'></td> </tr> </table> <input type='hidden' name='aid' value='<?php echo $AID; ?> '> </form> <?php } else { ?> <table border='0' align='center' class='forumline' cellpadding='3' cellspacing='1' width='95%'> <tr> <td class='row1' align='center'><input type='button' name='btnClose' value='<?php echo GetStringFromStringTable("IDS_CREATE_RESOURCE_TXT_17", $config); ?> ' onclick='javascript:window.close();' class='mainoption'></td> </tr> </table> <?php }
ngroupcount++; } }else{ generator.document.write("<table border='0' align='center' cellpadding='3' cellspacing='1' width='98%'>"); generator.document.write('<tr><td><p><?php echo GetStringFromStringTable("IDS_TOURNAMENTPROPOSAL_JAVA_TXT_16", $config); ?> </p></td></tr>'); generator.document.write('</table><br>'); } generator.document.write("<table border='0' align='center' cellpadding='3' cellspacing='1' width='98%'>"); generator.document.write('<tr><td><p><?php echo GetStringFromStringTable("IDS_TOURNAMENTPROPOSAL_JAVA_TXT_17", $config); ?> </p></td></tr>'); generator.document.write('</table><br>'); generator.document.write('</body></html>'); generator.document.close(); } </script> <?php include "./skins/" . $SkinName . "/layout_cfg.php"; ?> </body> </html>
} ?> <table width='100%' cellpadding='3' cellspacing='1' border='0' align='center' class='forumline'> <tr> <td class='tableheadercolor' colspan='2'> <font class='sitemenuheader'><?php echo GetStringFromStringTable("IDS_CHESS_PREVIOUSBILLS_TXT_1", $config); ?> </font> </td> </table> <?php $oBilling->GetOrdersByUserName($_SESSION['user'], 'p'); ?> <table width='100%' cellpadding='3' cellspacing='1' border='0' align='center' class='forumline'> <tr> <td class='tableheadercolor' colspan='2'> <font class='sitemenuheader'><?php echo GetStringFromStringTable("IDS_CHESS_PREVIOUSBILLS_TXT_2", $config); ?> </font> </td> </table> <?php $oBilling->GetOrdersByUserName($_SESSION['user'], 'f'); ?> <br>
?> &pgi=<?php echo $pgi; ?> ';"> <input type='button' name='btnMovePageRight' Value='<?php echo GetStringFromStringTable("IDS_PREVIEW_ACTIVITY_TXT_6", $config); ?> ' class='mainoption' onclick="window.location='./preview_activity.php?tag=mr&aid=<?php echo $activityid; ?> &pgi=<?php echo $pgi; ?> ';"> <input type='button' name='btnDeletePage' Value='<?php echo GetStringFromStringTable("IDS_PREVIEW_ACTIVITY_TXT_7", $config); ?> ' class='mainoption' onclick="window.location='./preview_activity.php?tag=del&aid=<?php echo $activityid; ?> &pgi=<?php echo $pgi; ?> ';"> </td> </tr> </table> <?php echo "</form>";
function SelectSearchType($name, $selected, $config) { echo "<select name='" . $name . "' class='post'>"; if ($selected == "1") { echo "<option value='1' selected>" . GetStringFromStringTable("IDS_VIEWGAMES_SELECT_SBP", $config) . "</option>"; } else { echo "<option value='1'>" . GetStringFromStringTable("IDS_VIEWGAMES_SELECT_SBP", $config) . "</option>"; } if ($selected == "2") { echo "<option value='2' selected>" . GetStringFromStringTable("IDS_VIEWGAMES_SELECT_GID", $config) . "</option>"; } else { echo "<option value='2'>" . GetStringFromStringTable("IDS_VIEWGAMES_SELECT_GID", $config) . "</option>"; } if ($selected == "3") { echo "<option value='3' selected>" . GetStringFromStringTable("IDS_VIEWGAMES_SELECT_D", $config) . "</option>"; } else { echo "<option value='3'>" . GetStringFromStringTable("IDS_VIEWGAMES_SELECT_D", $config) . "</option>"; } echo "</select>"; }
<form name='frmPreCreatedGame' method='post' action='./cfg_fen_game.php'> <table border='0' align='center' class="forumline" cellpadding="3" cellspacing="1" width='100%'> <tr><td class='tableheadercolor' colspan='2'><font class='sitemenuheader'><?php echo GetStringFromStringTable("IDS_CFG_FEN_GAME_TXT_1", $config); ?> </font></td></tr> <tr> <td class='row2' colspan='2'> <input type='submit' name='cmdAddGame' value='<?php echo GetStringFromStringTable("IDS_CFG_FEN_GAME_TXT_2", $config); ?> ' class='mainoption'> <input type='submit' name='cmdEditGame' value='<?php echo GetStringFromStringTable("IDS_CFG_FEN_GAME_TXT_3", $config); ?> ' class='mainoption'> <input type='submit' name='cmdDeleteGame' value='<?php echo GetStringFromStringTable("IDS_CFG_FEN_GAME_TXT_4", $config); ?> ' class='mainoption'> </td> </tr> <?php $oR3DCQuery->GetPreCreatedGamesListHTML(); ?> </table> </form>
case 'IDS_GAME_NOT_ACCEPTED': if(initid==playerid){ content+='<div class="game">'+desc+'<div><a href="javascript:revokeChallenge(\''+gid+'\');" >Revoke Challenge</a></div>'; }else{ content+='<div class="game">'+desc+'<div><a href="javascript:acceptChallenge(\''+gid+'\');" >Accept Challenge</a></div>'; } break; case 'IDS_PLAYER_TURN': content+='<div class="game" style="background:#d7e8ca;"><a href="chess_game_rt.php?gameid='+gid+'&pn='+user+'" target="_blank">'+desc+'</a><br><a href="javascript:replayGame(\''+gid+'\');"><?php echo GetStringFromStringTable("IDS_CR3DCQUERY_BTN_REPLAY", $config); ?> </a>'; break; case 'IDS_NOT_PLAYER_TURN': content+='<div class="game" style="background:#5ea4b3;"><a href="chess_game_rt.php?gameid='+gid+'&pn='+user+'" target="_blank">'+desc+'</a><br><a href="javascript:replayGame(\''+gid+'\');"><?php echo GetStringFromStringTable("IDS_CR3DCQUERY_BTN_REPLAY", $config); ?> </a>'; break; default: content+='<div class="game">'+desc; break; } content+='<div><div style="float:left" >Your Color:</div><div style="width:40px; height:15px; float:right; background:'+color+';"></div></div>'; content+='<div style="clear:both"><div style="float:left" >Type:</div><div style="float:right">'+type+'</div> </div>'; content+='<div style="clear:both"><div style="float:left" >Timeout:</div><div style="float:right">'+timeout+'</div> </div>'; content+='</div>'; } cdiv.innerHTML=content; }
<tr> <td class='row1'><?php echo GetStringFromStringTable("IDS_CHESS_TOURNAMENT_V2_TXT_60", $config); ?> </td> <td class='row2'> <?php switch ($nplayersignuptype) { case "1": echo "" . GetStringFromStringTable("IDS_CHESS_TOURNAMENT_V2_TXT_63", $config) . ""; break; case "2": echo "" . GetStringFromStringTable("IDS_CHESS_TOURNAMENT_V2_TXT_64", $config) . ""; break; } ?> </td> </tr> </table> <?php }
</td> </tr> <tr> <td colspan='2' class='row2' align='right'> <input type='submit' name='cmdSearch' value='<?php echo GetStringFromStringTable("IDS_VIEW_GAMES_BTN_SEARCH", $config); ?> ' class='mainoption'> <input type='submit' name='cmdNPL' value='<?php echo GetStringFromStringTable("IDS_VIEW_GAMES_BTN_NPL", $config); ?> ' class='mainoption'> </td> </tr> </table> </form> </td> </tr>
if (!defined('CHECK_PHPCHESS')) { die("Hacking attempt"); exit; } ?> <?php if (!$oR3DCQuery->IsCreditsSystemEnabled()) { ?> <table border='0' align='center' class="forumline" cellpadding="3" cellspacing="1" width='95%'> <tr> <td class="row2"> <?php echo GetStringFromStringTable("IDS_BUY_CREDITS_TXT_1", $config); ?> </td> </tr> </table> <?php } else { if ($paymentHTML) { $nPrice = $oBilling->GetDefinedPrice(); $oBilling->GetPaypalInfo($PrimaryPaypalEmail, $Currency); ?> <form action='https://www.paypal.com/cgi-bin/webscr' method='post' id=form1 name=form1> <input type='hidden' name='cmd' value='_xclick'> <input type='hidden' name='business' value='<?php
</tr> <?php } ?> </table> </form> <?php } else { ?> <table border='0' cellpadding='0' cellspacing='0' align='center' width='100%'> <tr> <td class='row2'><?php echo GetStringFromStringTable("IDS_CREATE_GAME_TABLE_TXT_5", $config); ?> </td> </tr> </table> <SCRIPT language="JavaScript"> <!-- window.location="./chess_game.php?gameid=<?php echo substr($txtgid, 0, 32); ?> "; //--> </SCRIPT> <?php
if ($oR3DCQuery->TGameStatus($GID)) { $oR3DCQuery->GetTGameBoard($config, $GID, $_SESSION['sid'], $_SESSION['id'], $clrl, $clrd); if ($oR3DCQuery->IsPlayersTurn($config, $_SESSION['id'], $GID)) { //echo "Its, ".$_SESSION['user']." turn to play."; echo str_replace("['user']", $_SESSION['user'], GetStringFromStringTable("IDS_TGAME_TXT_3", $config)); } } else { echo "<br>" . GetStringFromStringTable("IDS_TGAME_TXT_3", $config) . ""; } } $oR3DCQuery->Close(); unset($oR3DCQuery); } else { //Instantiate theCR3DCQuery Class $oR3DCQuery = new CR3DCQuery($config); if ($oR3DCQuery->TimeForTGame($config, $GID) == false) { echo "<br>" . GetStringFromStringTable("IDS_TGAME_TXT_1", $config) . ""; } else { if ($oR3DCQuery->TGameStatus($GID)) { $oR3DCQuery->GetTGameBoard($config, $GID, "", 0, $clrl, $clrd); } else { echo "<br>" . GetStringFromStringTable("IDS_TGAME_TXT_2", $config) . ""; } } $oR3DCQuery->Close(); unset($oR3DCQuery); } ?> </body> </html>
</option> <option value='Y'><?php echo GetStringFromStringTable("IDS_ADMIN_MANAGE_REDEMPTIONCODE_SELECT_Y", $config); ?> </option> </select> </td> </tr> <tr> <td class='row2' colspan='2'><input type='submit' value='<?php echo GetStringFromStringTable("IDS_ADMIN_MANAGE_REDEMPTIONCODE_BTN_CC", $config); ?> ' name='cmdCreate' class='mainoption'></td> </tr> </table> </form> <br><br> <center> <input type='button' name='btnBack' value='<?php echo GetStringFromStringTable("IDS_NAV_BUTTONS_TXT_1", $config); ?> ' class='mainoption' onclick="javascript:window.location = './admin_main.php';"> <input type='button' name='btnBack' value='<?php echo GetStringFromStringTable("IDS_NAV_BUTTONS_TXT_5", $config); ?> ' class='mainoption' onclick="javascript:window.location = './manage_billing_data.php';"> </center> <br>
echo GetStringFromStringTable("IDS_USERNAME_TXT_3", $config); ?> </b></td> </tr> <tr> <td class='row1'><?php echo GetStringFromStringTable("IDS_USERNAME_TXT_1", $config); ?> </td><td class='row2'><input type='text' name='txtOldUsername'></td> </tr> <tr> <td class='row1'><?php echo GetStringFromStringTable("IDS_USERNAME_TXT_2", $config); ?> </td><td class='row2'><input type='password' name='txtPassword'></td> </tr> <tr> <td class='row1' colspan='2'><input type='submit' name='cmdViewUsername' value='<?php echo GetStringFromStringTable("IDS_USERNAME_TXT_3", $config); ?> '></td> </tr> </table> </form> <?php } ?> </body> </html>
$oR3DCQuery->SetPlayerCreditsInit($_SESSION['id']); } if (!$bCronEnabled) { if ($oR3DCQuery->ELOIsActive()) { $oR3DCQuery->ELOCreateRatings(); } $oR3DCQuery->MangeGameTimeOuts(); } } /////////////////////////////////////////////////////////////////////// ?> <html> <head> <title><?php echo GetStringFromStringTable("IDS_PAGETITLES_19", $config); ?> </title> <META NAME="keywords" CONTENT=""> <META NAME="DESCRIPTION" CONTENT=""> <META NAME="OWNER" CONTENT="Christian"> <META NAME="RATING" CONTENT="General"> <META NAME="ROBOTS" CONTENT="index,follow"> <META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="English"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="<?php echo $Root_Path . "skins/" . $SkinName . "/"; ?> layout.css" type="text/css">
?> <table border="0" align='center'> <tr> <td> <?php if ($bError == true) { ?> <input type="submit" name='cmdUpdate' value="<?php echo GetStringFromStringTable("IDS_VERIFYORDER_BTN_UPDATE", $config); ?> " class='mainoption'> <?php } else { ?> <input type="submit" name='cmdpayment' value="<?php echo GetStringFromStringTable("IDS_VERIFYORDER_BTN_PAYMENT", $config); ?> " class='mainoption'> <?php } ?> </td> </tr> </table> </form> <?php }