[Help] Премахване на опцията edit от модула "едит герой"

Holder

New Member
Joined
Dec 27, 2010
Messages
434
Reaction score
43
Значи това е модула от на Дамиан панела. Като напиша името на героя ми излиза героя и към кой акаунт принадлежи героя - искам само тази информация да остане. Отстрани има "едит" на героя и като цъкнеш едит, променяш статс, и т.н този "едит" искам да се премахне. Тоест функцията на модула да я ползвам само за да намирам акаунта на героя, нищи повече.

PHP:
<? require("config.php"); ?>
<table width="393" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="394">&nbsp;</td>
  </tr>
  <tr>
    <td><div align="center">
        <?php if (isset($_POST["character_search_edit"]))
{
$character_edit = stripslashes($_POST['character_search_edit']);
$get_character = mssql_query("Select name,clevel,resets,money,strength,dexterity,vitality,energy,ctlcode from character where name='$character_edit'");
$get_character_done = mssql_fetch_row($get_character);

$geroi="Select ctlcode,class from character where name='$character_edit' ";
$geroi = mssql_query($geroi);
$geroi = mssql_fetch_row($geroi);
if($geroi[0] == 1){$mode = "<option value='1'>Blocked</option><option value='0'>Normal</option><option value='8'>GM</option>"; }
elseif($geroi[0] == 0){$mode = "<option value='0'>Normal</option><option value='8'>GM</option><option value='1'>Blocked</option>"; }
elseif($geroi[0] == 8){$mode = "<option value='8'>GM</option><option value='0'>Normal</option><option value='1'>Blocked</option>"; }
if($geroi[1] == 0){$dw=selected; }
if($geroi[1] == 1){$sm=selected; }
if($geroi[1] == 2){$gm=selected; }
if($geroi[1] == 16){$dk=selected; }
if($geroi[1] == 17){$bk=selected; }
if($geroi[1] == 18){$bm=selected; }
if($geroi[1] == 32){$elf=selected; }
if($geroi[1] == 33){$me=selected; }
if($geroi[1] == 34){$he=selected; }
if($geroi[1] == 48){$mg=selected; }
if($geroi[1] == 50){$dm=selected; }
if($geroi[1] == 64){$dl=selected; }
if($geroi[1] == 66){$le=selected; }
if($geroi[1] == 80){$dim=selected; }
if($geroi[1] == 81){$bs=selected; }
if($geroi[1] == 82){$dim=selected; }
$class = "<option value='0' $dw>Dark Wizard</option>
<option value='1' $sm>Soul Master</option>
<option value='2' $gm>Grand Master</option>
<option value='16' $dk>Dark Knight</option>
<option value='17' $bk>Blade Knight</option>
<option value='18' $bm>Blade Master</option>
<option value='32' $elf>Elf</option>
<option value='33' $me>Muse Elf</option>
<option value='34' $he>High Elf</option>
<option value='48' $mg>Magic Gladiator</option>
<option value='50' $dm>Duel Master</option>
<option value='64' $dl>Dark Lord</option>
<option value='66' $le>Lord Emperor</option>
<option value='80' $le>Summoner</option>
<option value='81' $le>Bloody Summoner</option>
<option value='82' $le>Dimension Master</option>"; 
echo ('<table width="283" border="0" cellspacing="2" cellpadding="2" class=tborder>
                                                               <tr><td class=alt1> <center><font color=green style="font-size; 10pt; font-weight: 400"> Character </font></center></td></tr>
                                                        <tr><td class=thead>
                                                              
                                                              <table width="283" border="0" cellspacing="0" cellpadding="0">
                                                                <tr>
                                                                  <th scope="row"><form action="" method="post" name="edit_character_form" id="edit_character_form">
                                                                    <table width="280" border="0" cellspacing="4" cellpadding="0">
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Èìå</div></td>
                                                                        <td width="138" scope="row" class="text_administrator">'.$get_character_done[0].'</td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Íèâî</div></td>
                                                                        <td width="138" scope="row"><input name="level" type="text" id="level" value="'.$get_character_done[1].'" maxlength="3" size="3"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Ðåñîâå</div></td>
                                                                        <td width="138" scope="row"><input name="resets" type="text" id="resets" value="'.$get_character_done[2].'" maxlength="3" size="3"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Zen</div></td> 
                                                                        <td width="138" scope="row"><input name="zen" type="text" id="zen" value="'.$get_character_done[3].'" maxlength="10" size="12"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Ñòàòóñ</div></td>
                                                                        <td width="138" scope="row"><select name="gm" size="1" id="gm">'.$mode.'</select>
</td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Êëàñà</div></td>
                                                                        <td width="138" scope="row"><select name="class" size="1" id="class">'.$class.'</select>
</td>
                                                                      </tr>
                                                        <tr>
                                                          <td scope="row"><div align="right"  class="text_administrator">Strength</div></td>
                                                          <td width="138" scope="row"><input name="strength" type="text" id="strength" value="'.$get_character_done[4].'" maxlength="5" size="5"></td>
                                                        </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Agility</div></td>
                                                                        <td width="138" scope="row"><input name="agility" type="text" id="agility" value="'.$get_character_done[5].'" maxlength="5" size="5"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Vitality</div></td>
                                                                        <td width="138" scope="row"><input name="vitality" type="text" id="vitality" value="'.$get_character_done[6].'" maxlength="5" size="5"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right" class="text_administrator">Energy</div></td>
                                                                        <td scope="row"><input name="energy" type="text" id="energy" value="'.$get_character_done[7].'" maxlength="5" size="5"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row">&nbsp;</td>
                                                                        <td scope="row"><input type="hidden" name="character" value="'.$get_character_done[0].'">
                                                                        <input type="hidden" name="edit_character_done" value"edit_character_done">
                                                                         </td>
                                                                      </tr>
                                                                    </table>
                                                                    <table width="200" border="0" align="center" cellpadding="0" cellspacing="4">
                                                                      <tr>
                                                                        <td width="111" scope="row"><div align="right">
                                                                            <input type="submit" name="Edit Character" value="Çàïèøè ïðîìåíèòå" class="button">
                                                                        </div></td>
                                                                        <td width="77" scope="row"><div align="left">
                                                                            <input type="reset" name="Reset" value="Ðåñåò" class="button">
                                                                        </div></td>
                                                                      </tr>
                                                                    </table></table>
                                                                  </form></th>
                                                                </tr>
                                                              </table>'); }
if (isset($_POST["edit_character_done"]))
{edit_character($_POST['character'],$_POST['level'],$_POST['resets'],$_POST['zen'],$_POST['gm'],$_POST['strength'],$_POST['agility'],$_POST['vitality'],$_POST['energy'],$_POST['class']);}
?>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="393" border="0" align="center" cellpadding="1" cellspacing="2" class=tborder>
  <tr><td class=alt1><center><font color=green style='font-size: 10pt; font-weight: 400'>Íàñòðîéêè íà Ãåðîé</font></td></tr>
  <tr><td class=thead>
        <table width="200" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><div align="center">
                <table width="402" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="402"><table width="200" border="0" align="left" cellpadding="0" cellspacing="0">
                        <tr>
                          <td><form action="" method="post" name="search_" id="search_">
                              <table width="230" border="0" cellspacing="4" cellpadding="0">
                                <tr>
                                  <td colspan="2"><span class="normal_text">Ãåðîé:</span>
                                      <input name="character_search_admin" type="text" class=input id="character_search_admin" size="17" maxlength="10"></td>
                                </tr>
                               <tr>
                                  <td width="80" valign="middle"><span class="normal_text">Íàïèñàë ñúì:</span></td>
                                  <td width="122"><p>
                                 <label>
                                      <input type="radio" class=input name="search_type" value="1" checked>
                                      <span class="normal_text">Öÿëîòî èìå</span></label>
                                      <label>
                                      <input type="radio" class=input name="search_type" value="0">
                                      <span class="normal_text">×àñò îò èìåòî</span></label>
                                      
                                      
                                      <br>
                                  </p></td>
                                </tr>
                              </table>
                              <table width="200" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td><input type="submit" name="Submit" class=button value="Òúðñè Ãåðîÿ"></td>
                                </tr>
                              </table>
                          </form></td>
                        </tr>
                    </table></td>
                  </tr>
                </table>
            </div></td>
          </tr>
        </table>
        <table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td scope="row"><div align="center"></div>
                <div align="center">
                  <?     if (isset($_POST["character_search_admin"]))
    {
include("includes/search_character.php");}
?>
              </div></td>
          </tr>
        </table>
      
    </div></td>
  </tr>
</table>
 
PHP:
<? require("config.php"); ?>
<table width="393" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="394">&nbsp;</td>
  </tr>
  <tr>
    <td><div align="center">
        <?php if (isset($_POST["character_search_edit"]))
{
$character_edit = stripslashes($_POST['character_search_edit']);
$get_character = mssql_query("Select name,clevel,resets,money,strength,dexterity,vitality,energy,ctlcode from character where name='$character_edit'");
$get_character_done = mssql_fetch_row($get_character);

$geroi="Select ctlcode,class from character where name='$character_edit' ";
$geroi = mssql_query($geroi);
$geroi = mssql_fetch_row($geroi);
if($geroi[0] == 1){$mode = "<option value='1'>Blocked</option><option value='0'>Normal</option><option value='8'>GM</option>"; }
elseif($geroi[0] == 0){$mode = "<option value='0'>Normal</option><option value='8'>GM</option><option value='1'>Blocked</option>"; }
elseif($geroi[0] == 8){$mode = "<option value='8'>GM</option><option value='0'>Normal</option><option value='1'>Blocked</option>"; }
if($geroi[1] == 0){$dw=selected; }
if($geroi[1] == 1){$sm=selected; }
if($geroi[1] == 2){$gm=selected; }
if($geroi[1] == 16){$dk=selected; }
if($geroi[1] == 17){$bk=selected; }
if($geroi[1] == 18){$bm=selected; }
if($geroi[1] == 32){$elf=selected; }
if($geroi[1] == 33){$me=selected; }
if($geroi[1] == 34){$he=selected; }
if($geroi[1] == 48){$mg=selected; }
if($geroi[1] == 50){$dm=selected; }
if($geroi[1] == 64){$dl=selected; }
if($geroi[1] == 66){$le=selected; }
if($geroi[1] == 80){$dim=selected; }
if($geroi[1] == 81){$bs=selected; }
if($geroi[1] == 82){$dim=selected; }
$class = "<option value='0' $dw>Dark Wizard</option>
<option value='1' $sm>Soul Master</option>
<option value='2' $gm>Grand Master</option>
<option value='16' $dk>Dark Knight</option>
<option value='17' $bk>Blade Knight</option>
<option value='18' $bm>Blade Master</option>
<option value='32' $elf>Elf</option>
<option value='33' $me>Muse Elf</option>
<option value='34' $he>High Elf</option>
<option value='48' $mg>Magic Gladiator</option>
<option value='50' $dm>Duel Master</option>
<option value='64' $dl>Dark Lord</option>
<option value='66' $le>Lord Emperor</option>
<option value='80' $le>Summoner</option>
<option value='81' $le>Bloody Summoner</option>
<option value='82' $le>Dimension Master</option>"; 
echo ('<table width="283" border="0" cellspacing="2" cellpadding="2" class=tborder>
                                                               <tr><td class=alt1> <center><font color=green style="font-size; 10pt; font-weight: 400"> Character </font></center></td></tr>
                                                        <tr><td class=thead>
                                                              
                                                              <table width="283" border="0" cellspacing="0" cellpadding="0">
                                                                <tr>
                                                                  <th scope="row"><form action="" method="post" name="edit_character_form" id="edit_character_form">
                                                                    <table width="280" border="0" cellspacing="4" cellpadding="0">
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Èìå</div></td>
                                                                        <td width="138" scope="row" class="text_administrator">'.$get_character_done[0].'</td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Íèâî</div></td>
                                                                        <td width="138" scope="row"><input name="level" type="text" id="level" value="'.$get_character_done[1].'" maxlength="3" size="3"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Ðåñîâå</div></td>
                                                                        <td width="138" scope="row"><input name="resets" type="text" id="resets" value="'.$get_character_done[2].'" maxlength="3" size="3"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Zen</div></td> 
                                                                        <td width="138" scope="row"><input name="zen" type="text" id="zen" value="'.$get_character_done[3].'" maxlength="10" size="12"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Ñòàòóñ</div></td>
                                                                        <td width="138" scope="row"><select name="gm" size="1" id="gm">'.$mode.'</select>
</td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Êëàñà</div></td>
                                                                        <td width="138" scope="row"><select name="class" size="1" id="class">'.$class.'</select>
</td>
                                                                      </tr>
                                                        <tr>
                                                          <td scope="row"><div align="right"  class="text_administrator">Strength</div></td>
                                                          <td width="138" scope="row"><input name="strength" type="text" id="strength" value="'.$get_character_done[4].'" maxlength="5" size="5"></td>
                                                        </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Agility</div></td>
                                                                        <td width="138" scope="row"><input name="agility" type="text" id="agility" value="'.$get_character_done[5].'" maxlength="5" size="5"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Vitality</div></td>
                                                                        <td width="138" scope="row"><input name="vitality" type="text" id="vitality" value="'.$get_character_done[6].'" maxlength="5" size="5"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right" class="text_administrator">Energy</div></td>
                                                                        <td scope="row"><input name="energy" type="text" id="energy" value="'.$get_character_done[7].'" maxlength="5" size="5"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row">&nbsp;</td>
                                                                        <td scope="row"><input type="hidden" name="character" value="'.$get_character_done[0].'">
                                                                        <input type="hidden" name="edit_character_done" value"edit_character_done">
                                                                         </td>
                                                                      </tr>
                                                                    </table>
                                                                    <table width="200" border="0" align="center" cellpadding="0" cellspacing="4">
                                                                      <tr>
                                                                        <td width="77" scope="row"><div align="left">
                                                                            <input type="reset" name="Reset" value="Ðåñåò" class="button">
                                                                        </div></td>
                                                                      </tr>
                                                                    </table></table>
                                                                  </form></th>
                                                                </tr>
                                                              </table>'); }
if (isset($_POST["edit_character_done"]))
{edit_character($_POST['character'],$_POST['level'],$_POST['resets'],$_POST['zen'],$_POST['gm'],$_POST['strength'],$_POST['agility'],$_POST['vitality'],$_POST['energy'],$_POST['class']);}
?>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="393" border="0" align="center" cellpadding="1" cellspacing="2" class=tborder>
  <tr><td class=alt1><center><font color=green style='font-size: 10pt; font-weight: 400'>Íàñòðîéêè íà Ãåðîé</font></td></tr>
  <tr><td class=thead>
        <table width="200" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><div align="center">
                <table width="402" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="402"><table width="200" border="0" align="left" cellpadding="0" cellspacing="0">
                        <tr>
                          <td><form action="" method="post" name="search_" id="search_">
                              <table width="230" border="0" cellspacing="4" cellpadding="0">
                                <tr>
                                  <td colspan="2"><span class="normal_text">Ãåðîé:</span>
                                      <input name="character_search_admin" type="text" class=input id="character_search_admin" size="17" maxlength="10"></td>
                                </tr>
                               <tr>
                                  <td width="80" valign="middle"><span class="normal_text">Íàïèñàë ñúì:</span></td>
                                  <td width="122"><p>
                                 <label>
                                      <input type="radio" class=input name="search_type" value="1" checked>
                                      <span class="normal_text">Öÿëîòî èìå</span></label>
                                      <label>
                                      <input type="radio" class=input name="search_type" value="0">
                                      <span class="normal_text">×àñò îò èìåòî</span></label>
                                      
                                      
                                      <br>
                                  </p></td>
                                </tr>
                              </table>
                              <table width="200" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td><input type="submit" name="Submit" class=button value="Òúðñè Ãåðîÿ"></td>
                                </tr>
                              </table>
                          </form></td>
                        </tr>
                    </table></td>
                  </tr>
                </table>
            </div></td>
          </tr>
        </table>
        <table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td scope="row"><div align="center"></div>
                <div align="center">
                  <?     if (isset($_POST["character_search_admin"]))
    {
include("includes/search_character.php");}
?>
              </div></td>
          </tr>
        </table>
      
    </div></td>
  </tr>
</table>
 
Тоест функцията на модула да я ползвам само за да намирам акаунта на героя, нищи повече.

Слагаш
Code:
Select AccountID From Character Where Name='името на героя'
в Query Analyzer-a и натискаш F5.
 
PHP:
<? require("config.php"); ?>
<table width="393" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="394">&nbsp;</td>
  </tr>
  <tr>
    <td><div align="center">
        <?php if (isset($_POST["character_search_edit"]))
{
$character_edit = stripslashes($_POST['character_search_edit']);
$get_character = mssql_query("Select name,clevel,resets,money,strength,dexterity,vitality,energy,ctlcode from character where name='$character_edit'");
$get_character_done = mssql_fetch_row($get_character);

$geroi="Select ctlcode,class from character where name='$character_edit' ";
$geroi = mssql_query($geroi);
$geroi = mssql_fetch_row($geroi);
if($geroi[0] == 1){$mode = "<option value='1'>Blocked</option><option value='0'>Normal</option><option value='8'>GM</option>"; }
elseif($geroi[0] == 0){$mode = "<option value='0'>Normal</option><option value='8'>GM</option><option value='1'>Blocked</option>"; }
elseif($geroi[0] == 8){$mode = "<option value='8'>GM</option><option value='0'>Normal</option><option value='1'>Blocked</option>"; }
if($geroi[1] == 0){$dw=selected; }
if($geroi[1] == 1){$sm=selected; }
if($geroi[1] == 2){$gm=selected; }
if($geroi[1] == 16){$dk=selected; }
if($geroi[1] == 17){$bk=selected; }
if($geroi[1] == 18){$bm=selected; }
if($geroi[1] == 32){$elf=selected; }
if($geroi[1] == 33){$me=selected; }
if($geroi[1] == 34){$he=selected; }
if($geroi[1] == 48){$mg=selected; }
if($geroi[1] == 50){$dm=selected; }
if($geroi[1] == 64){$dl=selected; }
if($geroi[1] == 66){$le=selected; }
if($geroi[1] == 80){$dim=selected; }
if($geroi[1] == 81){$bs=selected; }
if($geroi[1] == 82){$dim=selected; }
$class = "<option value='0' $dw>Dark Wizard</option>
<option value='1' $sm>Soul Master</option>
<option value='2' $gm>Grand Master</option>
<option value='16' $dk>Dark Knight</option>
<option value='17' $bk>Blade Knight</option>
<option value='18' $bm>Blade Master</option>
<option value='32' $elf>Elf</option>
<option value='33' $me>Muse Elf</option>
<option value='34' $he>High Elf</option>
<option value='48' $mg>Magic Gladiator</option>
<option value='50' $dm>Duel Master</option>
<option value='64' $dl>Dark Lord</option>
<option value='66' $le>Lord Emperor</option>
<option value='80' $le>Summoner</option>
<option value='81' $le>Bloody Summoner</option>
<option value='82' $le>Dimension Master</option>"; 
echo ('<table width="283" border="0" cellspacing="2" cellpadding="2" class=tborder>
                                                               <tr><td class=alt1> <center><font color=green style="font-size; 10pt; font-weight: 400"> Character </font></center></td></tr>
                                                        <tr><td class=thead>
                                                              
                                                              <table width="283" border="0" cellspacing="0" cellpadding="0">
                                                                <tr>
                                                                  <th scope="row"><form action="" method="post" name="edit_character_form" id="edit_character_form">
                                                                    <table width="280" border="0" cellspacing="4" cellpadding="0">
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Èìå</div></td>
                                                                        <td width="138" scope="row" class="text_administrator">'.$get_character_done[0].'</td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Íèâî</div></td>
                                                                        <td width="138" scope="row"><input name="level" type="text" id="level" value="'.$get_character_done[1].'" maxlength="3" size="3"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Ðåñîâå</div></td>
                                                                        <td width="138" scope="row"><input name="resets" type="text" id="resets" value="'.$get_character_done[2].'" maxlength="3" size="3"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Zen</div></td> 
                                                                        <td width="138" scope="row"><input name="zen" type="text" id="zen" value="'.$get_character_done[3].'" maxlength="10" size="12"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Ñòàòóñ</div></td>
                                                                        <td width="138" scope="row"><select name="gm" size="1" id="gm">'.$mode.'</select>
</td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Êëàñà</div></td>
                                                                        <td width="138" scope="row"><select name="class" size="1" id="class">'.$class.'</select>
</td>
                                                                      </tr>
                                                        <tr>
                                                          <td scope="row"><div align="right"  class="text_administrator">Strength</div></td>
                                                          <td width="138" scope="row"><input name="strength" type="text" id="strength" value="'.$get_character_done[4].'" maxlength="5" size="5"></td>
                                                        </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Agility</div></td>
                                                                        <td width="138" scope="row"><input name="agility" type="text" id="agility" value="'.$get_character_done[5].'" maxlength="5" size="5"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Vitality</div></td>
                                                                        <td width="138" scope="row"><input name="vitality" type="text" id="vitality" value="'.$get_character_done[6].'" maxlength="5" size="5"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right" class="text_administrator">Energy</div></td>
                                                                        <td scope="row"><input name="energy" type="text" id="energy" value="'.$get_character_done[7].'" maxlength="5" size="5"></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row">&nbsp;</td>
                                                                        <td scope="row"><input type="hidden" name="character" value="'.$get_character_done[0].'">
                                                                        <input type="hidden" name="edit_character_done" value"edit_character_done">
                                                                         </td>
                                                                      </tr>
                                                                    </table>
                                                                    <table width="200" border="0" align="center" cellpadding="0" cellspacing="4">
                                                                      <tr>
                                                                        <td width="77" scope="row"><div align="left">
                                                                            <input type="reset" name="Reset" value="Ðåñåò" class="button">
                                                                        </div></td>
                                                                      </tr>
                                                                    </table></table>
                                                                  </form></th>
                                                                </tr>
                                                              </table>'); }
if (isset($_POST["edit_character_done"]))
{edit_character($_POST['character'],$_POST['level'],$_POST['resets'],$_POST['zen'],$_POST['gm'],$_POST['strength'],$_POST['agility'],$_POST['vitality'],$_POST['energy'],$_POST['class']);}
?>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="393" border="0" align="center" cellpadding="1" cellspacing="2" class=tborder>
  <tr><td class=alt1><center><font color=green style='font-size: 10pt; font-weight: 400'>Íàñòðîéêè íà Ãåðîé</font></td></tr>
  <tr><td class=thead>
        <table width="200" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><div align="center">
                <table width="402" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="402"><table width="200" border="0" align="left" cellpadding="0" cellspacing="0">
                        <tr>
                          <td><form action="" method="post" name="search_" id="search_">
                              <table width="230" border="0" cellspacing="4" cellpadding="0">
                                <tr>
                                  <td colspan="2"><span class="normal_text">Ãåðîé:</span>
                                      <input name="character_search_admin" type="text" class=input id="character_search_admin" size="17" maxlength="10"></td>
                                </tr>
                               <tr>
                                  <td width="80" valign="middle"><span class="normal_text">Íàïèñàë ñúì:</span></td>
                                  <td width="122"><p>
                                 <label>
                                      <input type="radio" class=input name="search_type" value="1" checked>
                                      <span class="normal_text">Öÿëîòî èìå</span></label>
                                      <label>
                                      <input type="radio" class=input name="search_type" value="0">
                                      <span class="normal_text">×àñò îò èìåòî</span></label>
                                      
                                      
                                      <br>
                                  </p></td>
                                </tr>
                              </table>
                              <table width="200" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td><input type="submit" name="Submit" class=button value="Òúðñè Ãåðîÿ"></td>
                                </tr>
                              </table>
                          </form></td>
                        </tr>
                    </table></td>
                  </tr>
                </table>
            </div></td>
          </tr>
        </table>
        <table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td scope="row"><div align="center"></div>
                <div align="center">
                  <?     if (isset($_POST["character_search_admin"]))
    {
include("includes/search_character.php");}
?>
              </div></td>
          </tr>
        </table>
      
    </div></td>
  </tr>
</table>

Пак може да се едитва героя, само че вместо букви има символи ето скриин:
RaFa: QA не ми върши работа, тъй като искам да дам модула на ГМ-то ми, а ако му дам достъп до PC ме е страх, че някой ден ще заваря преинсталиран уиндоус..
 

Attachments

  • zxx.JPG
    zxx.JPG
    16.9 KB · Views: 25
Last edited:
Това което искаш да се махне или не е в този файл, или аз не го виждам.
А колкото до символите - така си предоставил модула.
 
Ем не може да не е тук, щото като изтрия кода и релоадна модула дава празна страница.. като върна кода отново има модул..
 
PHP:
<? require("config.php"); ?>
<table width="393" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="394">&nbsp;</td>
  </tr>
  <tr>
    <td><div align="center">
 <?php if (isset($_POST["character_search_edit"])){ echo"Няма да едитнеш тъпият герой ".$_POST["character_search_edit"].".";} ?>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="393" border="0" align="center" cellpadding="1" cellspacing="2" class=tborder>
  <tr><td class=alt1><center><font color=green style='font-size: 10pt; font-weight: 400'>Настройки на Герой</font></td></tr>
  <tr><td class=thead>
        <table width="200" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><div align="center">
                <table width="402" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="402"><table width="200" border="0" align="left" cellpadding="0" cellspacing="0">
                        <tr>
                          <td><form action="" method="post" name="search_" id="search_">
                              <table width="230" border="0" cellspacing="4" cellpadding="0">
                                <tr>
                                  <td colspan="2"><span class="normal_text">Герой:</span>
                                      <input name="character_search_admin" type="text" class=input id="character_search_admin" size="17" maxlength="10"></td>
                                </tr>
                               <tr>
                                  <td width="80" valign="middle"><span class="normal_text">Написал съм:</span></td>
                                  <td width="122"><p>
                                 <label>
                                      <input type="radio" class=input name="search_type" value="1" checked>
                                      <span class="normal_text">Цялото име</span></label>
                                      <label>
                                      <input type="radio" class=input name="search_type" value="0">
                                      <span class="normal_text">Част от името</span></label>
                                      
                                      
                                      <br>
                                  </p></td>
                                </tr>
                              </table>
                              <table width="200" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td><input type="submit" name="Submit" class=button value="Търси Героя"></td>
                                </tr>
                              </table>
                          </form></td>
                        </tr>
                    </table></td>
                  </tr>
                </table>
            </div></td>
          </tr>
        </table>
        <table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td scope="row"><div align="center"></div>
                <div align="center">
                  <?     if (isset($_POST["character_search_admin"]))
    {
include("includes/search_character.php");}
?>
              </div></td>
          </tr>
        </table>
      
    </div></td>
  </tr>
</table>

Ще имаш бутон Edit но не трябва да работи. Може да махнеш бутона от includes/search_character.php

ПП: За да не ти изкарва китайската азбука си оправи енкодинга.
 
  • Like
Reactions: Holder