[Help] Damian Admin Panel

RetrY

New Member
Joined
Dec 13, 2011
Messages
11
Reaction score
1
Използвам админ панела от "Releases" на Damian.Всичко работи безупречно освен "Edit Account"

Code:
<? require("config.php"); ?>
<table width="393" border="0" align="center">
  <tr>
    <td width="394">&nbsp;</td>
  </tr>
  <tr>
    <td><div align="center">
        <?php if (isset($_POST["account_search_edit"]))
{
$account_edit = stripslashes($_POST['account_search_edit']);
$account_edit = str_replace("'","",$account_edit);
$account_edit = str_replace(";","",$account_edit);
$warehouse="Select pw from warehouse where accountid='$account_edit'";
$warehousepw = mssql_query($warehouse);
$whpw = mssql_fetch_row($warehousepw);

if($md5==1){
$get_account = mssql_query("Select memb___id,memb__pwd2,sno__numb,bloc_code,mail_addr,fpas_ques,fpas_answ from MEMB_INFO where memb___id='$account_edit'");}
elseif($md5==0){
$get_account = mssql_query("Select memb___id,memb__pwd,sno__numb,bloc_code,mail_addr,fpas_ques,fpas_answ from MEMB_INFO where memb___id='$account_edit'");}
$get_account_done = mssql_fetch_row($get_account);

if($get_account_done[3] == 1){$mode = "<option value='1'>Blocked</option><option value='0'>Normal</option>"; }
elseif($get_account_done[3] == 0){$mode = "<option value='0'>Normal</option><option value='1'>Blocked</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">   Акаунт </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_account_form" id="edit_account_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_account_done[0].'</td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Парола</div></td>
                                                                        <td width="138" scope="row"><span class="text_administrator">'.$get_account_done[1].'</span></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Нова Парола </div></td>
                                                                        <td width="138" scope="row"><input name="new_pwd" type="text" id="new_pwd" value="'.$get_account_done[1].'" maxlength="10" size="15" class=input></td>
                                                                      </tr>
																	  <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Парола на сандъка</div></td>
                                                                        <td width="138" scope="row"><input name="whpw" type="text" id="whpw" value="'.$whpw[0].'" maxlength="4" size="15" class=input></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right" class="text_administrator">Персонален ID код  </div></td>
                                                                        <td scope="row"><input name="idcode" type="text" id="idcode" value="'.$get_account_done[2].'" size="10" maxlength="7" class=input></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Статус</div></td>
                                                                        <td width="138" scope="row"><select name="mode" size="1" id="mode"  class=select>'.$mode.'</select>
                                                                        </td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right" class="text_administrator">И-мейл адрес </div></td>
                                                                        <td scope="row"><input name="email" type="text" id="email" value="'.$get_account_done[4].'" size="17" maxlength="50"  class=input></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right" class="text_administrator">Таен въпрос </div></td>
                                                                        <td scope="row"><input name="squestion" type="text" id="squestion" value="'.$get_account_done[5].'" size="10" maxlength="10"  class=input></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right" class="text_administrator">Таен отговор </div></td>
                                                                        <td scope="row"><input name="sanswer" type="text" id="sanswer" value="'.$get_account_done[6].'" size="10" maxlength="10"  class=input></td>
                                                                      </tr>
                                                                      
                                                        
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator"></div></td>
                                                                        <td width="138" scope="row"><input name="account" type="hidden" id="account" value="'.$get_account_done[0].'">
                                                                        <input name="edit_account_done" type="hidden" id="edit_account_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 name="Edit Account" type="submit" class="button" id="Edit Account"  value="Запиши промените">
                                                                        </div></td>
                                                                        <td width="77" scope="row"><div align="left">
                                                                            <input type="reset" name="Reset" value="Ресет" class="button">
                                                                        </div></td>
                                                                      </tr>
                                                                    </table></table></table>
                                                                  </form>
                                                              '); }
if (isset($_POST["edit_account_done"])){edit_account($_POST['account'],$_POST['new_pwd'],$_POST['whpw'],$_POST['idcode'],$_POST['mode'],$_POST['email'],$_POST['squestion'],$_POST['sanswer']);}
?>
    </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></center></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="220" border="0" align="left" cellpadding="0" cellspacing="0">
                        <tr>
                          <td><form action="" method="post" name="search_account" id="search_account">
                              <table width="220" border="0" cellspacing="4" cellpadding="0">
                                <tr>
                                  <td colspan="2"><span class="normal_text">Акаунт: </span>
                                      <input name="account_search_admin" type="text" class=input id="account_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["account_search_admin"]))
	{
include("includes/search_account.php");}
?>
              </div></td>
          </tr>
        </table>
       
    </div></td>
  </tr>
</table>

Това е php code от modules/editacc.php ако някой може да помогне ще съм много благодарен! ;)
 
Last edited:
Пробвай с това:
Code:
<? require("config.php"); ?>
<table width="393" border="0" align="center">
  <tr>
    <td width="394">&nbsp;</td>
  </tr>
  <tr>
    <td><div align="center">
        <?php if (isset($_POST["account_search_edit"]))
{
$account_edit = stripslashes($_POST['account_search_edit']);
$account_edit = str_replace("'","",$account_edit);
$account_edit = str_replace(";","",$account_edit);
$warehouse="Select pw from warehouse where accountid='$account_edit'";
$warehousepw = mssql_query($warehouse);
$whpw = mssql_fetch_row($warehousepw);

if($md5==1){
$get_account = mssql_query("Select memb___id,memb__pwd2,sno__numb,bloc_code,mail_addr,fpas_ques,fpas_answ from MEMB_INFO where memb___id='$account_edit'");}
elseif($md5==0){
$get_account = mssql_query("Select memb___id,memb__pwd,sno__numb,bloc_code,mail_addr,fpas_ques,fpas_answ from MEMB_INFO where memb___id='$account_edit'");}
$get_account_done = mssql_fetch_row($get_account);

if($get_account_done[3] == 1){$mode = "<option value='1'>Blocked</option><option value='0'>Normal</option>"; }
elseif($get_account_done[3] == 0){$mode = "<option value='0'>Normal</option><option value='1'>Blocked</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">   Акаунт </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_account_form" id="edit_account_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_account_done[0].'</td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Парола</div></td>
                                                                        <td width="138" scope="row"><span class="text_administrator">'.$get_account_done[1].'</span></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Нова Парола </div></td>
                                                                        <td width="138" scope="row"><input name="new_pwd" type="text" id="new_pwd" value="'.$get_account_done[1].'" maxlength="10" size="15" class=input></td>
                                                                      </tr>
																	  <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Парола на сандъка</div></td>
                                                                        <td width="138" scope="row"><input name="whpw" type="text" id="whpw" value="'.$whpw[0].'" maxlength="4" size="15" class=input></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right" class="text_administrator">Персонален ID код  </div></td>
                                                                        <td scope="row"><input name="idcode" type="text" id="idcode" value="'.$get_account_done[2].'" size="10" maxlength="7" class=input></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator">Статус</div></td>
                                                                        <td width="138" scope="row"><select name="mode" size="1" id="mode"  class=select>'.$mode.'</select>
                                                                        </td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right" class="text_administrator">И-мейл адрес </div></td>
                                                                        <td scope="row"><input name="email" type="text" id="email" value="'.$get_account_done[4].'" size="17" maxlength="50"  class=input></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right" class="text_administrator">Таен въпрос </div></td>
                                                                        <td scope="row"><input name="squestion" type="text" id="squestion" value="'.$get_account_done[5].'" size="10" maxlength="10"  class=input></td>
                                                                      </tr>
                                                                      <tr>
                                                                        <td scope="row"><div align="right" class="text_administrator">Таен отговор </div></td>
                                                                        <td scope="row"><input name="sanswer" type="text" id="sanswer" value="'.$get_account_done[6].'" size="10" maxlength="10"  class=input></td>
                                                                      </tr>
                                                                      
                                                        
                                                                      <tr>
                                                                        <td scope="row"><div align="right"  class="text_administrator"></div></td>
                                                                        <td width="138" scope="row"><input name="account" type="hidden" id="account" value="'.$get_account_done[0].'">
                                                                        <input name="edit_account_done" type="hidden" id="edit_account_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 name="Edit Account" type="submit" class="button" id="Edit Account"  value="Запиши промените">
                                                                        </div></td>
                                                                        <td width="77" scope="row"><div align="left">
                                                                            <input type="reset" name="Reset" value="Ресет" class="button">
                                                                        </div></td>
                                                                      </tr>
                                                                    </table></table></table>
                                                                  </form>
                                                              '); }
if (isset($_POST["edit_account_done"])){edit_account($_POST['account'],$_POST['new_pwd'],$_POST['whpw'],$_POST['idcode'],$_POST['mode'],$_POST['email'],$_POST['squestion'],$_POST['sanswer']);}
?>
    </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></center></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="220" border="0" align="left" cellpadding="0" cellspacing="0">
                        <tr>
                          <td><form action="" method="post" name="search_account" id="search_account">
                              <table width="220" border="0" cellspacing="4" cellpadding="0">
                                <tr>
                                  <td colspan="2"><span class="normal_text">Акаунт: </span>
                                      <input name="account_search_admin" type="text" class=input id="account_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="Search Account"></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["account_search_admin"]))
	{
include("includes/search_account.php");}
?>
              </div></td>
          </tr>
        </table>
       
    </div></td>
  </tr>
</table>