Извинявам се за 2рия пост
boianx надявам се да ти хареса ...
<?
if(!isset($_GET['op'])){
require("denied.php");
denied3("resetstats");
}
?>
<script language="JavaScript" type="text/JavaScript">
function validate(form)
{
if (form.name.value =="SelectCharacter") {
form.name.focus();
alert("<? echo text_select_character; ?>.");
return false;
} }
</script>
<table width="350" border="0" cellspacing="0" cellpadding="0"><tr><td><br>
<font face="Verdana" style="font-size: 10pt"><b><? echo text_welcome_stats; ?>.</font><br><br>
</td></tr>
</table>
<form name='form1' method='post' action=''>
<table border="1" cellspacing="1" cellpadding="1" width="300"><tr><td><br>
<table width="90%">
<tr>
<td><div align='center'><span class='normal_text_white'><b><? echo text_characters; ?>: </b></span>
<?
$account_id = stripslashes($_SESSION['user']);
$account_id = clean_var($account_id);
require("config.php");
print"<select name='name' id='name'>";
$query = mssql_query("select Name,resets from Character where AccountID='$account_id' ");
print" <option value='SelectCharacter'>".text_select_character."</option>";
while($result = mssql_fetch_array($query)) {
echo "<option value='$result[Name]'>$result[Name] - ".text_resets.": [$result[resets]]</option>";
}
print'</select>';
?>
</div></td></tr>
<tr><td><br><div align="center">
<input type="submit" name="Submit" class='button' value="<? echo text_resetcharstats; ?>" onClick="return validate(document.form1);">
</div></td></tr>
</table></td></tr>
</table>
</form>
<? if(isset($_POST['name'])){
echo"<br>";
reset_stats();
echo"<br>";
}
?>
<table width="450" border="0" cellspacing="0" cellpadding="0"><br><div align="left">
<font color=green alignt="center" size="3" face="Verdana" style="font-size: 10pt"><b><? echo text_resetstatsinfo1; ?>:
<p><br><font color=red alignt="center" size="3" face="Verdana" style="font-size: 10pt"><b><? echo text_resetstatsinfo2; ?> </font>
</font>
</div>
</table>
<?
if(!isset($_GET['op'])){
require("denied.php");
denied3("resetstats");
}
?>
<script language="JavaScript" type="text/JavaScript">
function validate(form)
{
if (form.name.value =="SelectCharacter") {
form.name.focus();
alert("<? echo text_select_character; ?>.");
return false;
} }
</script>
<table width="350" border="0" cellspacing="0" cellpadding="0"><tr><td><br>
<font face="Verdana" style="font-size: 10pt"><b><? echo text_welcome_stats; ?>.</font><br><br>
</td></tr>
</table>
<form name='form1' method='post' action=''>
<table border="1" cellspacing="1" cellpadding="1" width="300"><tr><td><br>
<table width="90%">
<tr>
<td><div align='center'><span class='normal_text_white'><b><? echo text_characters; ?>: </b></span>
<?
$account_id = stripslashes($_SESSION['user']);
$account_id = clean_var($account_id);
require("config.php");
print"<select name='name' id='name'>";
$query = mssql_query("select Name,resets from Character where AccountID='$account_id' ");
print" <option value='SelectCharacter'>".text_select_character."</option>";
while($result = mssql_fetch_array($query)) {
echo "<option value='$result[Name]'>$result[Name] - ".text_resets.": [$result[resets]]</option>";
}
print'</select>';
?>
</div></td></tr>
<tr><td><br><div align="center">
<input type="submit" name="Submit" class='button' value="<? echo text_resetcharstats; ?>" onClick="return validate(document.form1);">
</div></td></tr>
</table></td></tr>
</table>
</form>
<? if(isset($_POST['name'])){
echo"<br>";
reset_stats();
echo"<br>";
}
?>
<table width="450" border="0" cellspacing="0" cellpadding="0"><br><div align="left">
<font color=green alignt="center" size="3" face="Verdana" style="font-size: 10pt"><b><? echo text_resetstatsinfo1; ?>:
<p><br><font color=red alignt="center" size="3" face="Verdana" style="font-size: 10pt"><b><? echo text_resetstatsinfo2; ?> </font>
</font>
</div>
</table>
Търся си някой хубав CS Сървър предпочитам dust2 only. Моля пишете