Вход Регистрация
Файл: gamele.ru/js/clanadmin.js
Строк: 57
<?php
var ownidsalignsignweacodeedicodeoutcode;

ShowForm = function(edicode,plid){
    
AjaxGet('clan_ajax.php?act=get&plid='+plid+'&vcode='+edicode);    
}
SubmitForm = function(edicode,plid){
    
AjaxGet('clan_ajax.php?act=edit&plid='+$('plid').value+'&clan_d='+$('clan_d').value+'&access_1='+$('access_1').value+'&access_2='+$('access_2').value+'&access_3='+$('access_3').value+'&access_4='+$('access_4').value);
    
FormPopUp('darker');
    $(
'user_'+$('plid').value).innerHTML = $('clan_d').value;
}
StateReady = function(){
    switch(
arr_res[0]){
        case
'OK':
        
str_pr arr_res[1].split('|');
        var 
'<form onSubmit="SubmitForm();return false;">';
        
+= '<table cellpadding="0" cellspacing="1" width="100%" border="0">';
        
+= '<tr>';
        
+= '<td>Звание:</td>';
        
+= '<td><input type="text" name="clan_d" id="clan_d" class="LogintextBox" value="'+str_pr[1]+'" /></td>';
        
+= '</tr>';
        
+= '<tr>';
        
+= '<td>Казна:</td>';
        
+= '<td><select name="access_1" id="access_1" style="width:150px;">  <option value="1" '+((str_pr[2]=='1')?'selected="selected"':'')+'>Да</option>  <option value="0" '+((str_pr[2]=='0')?'selected="selected"':'')+'>Нет</option></select></td>';
        
+= '</tr>';
        
+= '<tr>';
        
+= '<td>Упр. Казны:</td>';
        
+= '<td><select name="access_2" id="access_2" style="width:150px;">  <option value="1" '+((str_pr[3]=='1')?'selected="selected"':'')+'>Да</option>  <option value="0" '+((str_pr[3]=='0')?'selected="selected"':'')+'>Нет</option></select></td>';
        
+= '</tr>';
        
+= '<tr>';
        
+= '<td>Ред. Клана:</td>';
        
+= '<td><select name="access_3" id="access_3" style="width:150px;">  <option value="1" '+((str_pr[4]=='1')?'selected="selected"':'')+'>Да</option>  <option value="0" '+((str_pr[4]=='0')?'selected="selected"':'')+'>Нет</option></select></td>';
        
+= '</tr>';
        
+= '<tr>';
        
+= '<td>Управление:</td>';
        
+= '<td><select name="access_4" id="access_4" style="width:150px;">  <option value="1" '+((str_pr[5]=='1')?'selected="selected"':'')+'>Да</option>  <option value="0" '+((str_pr[5]=='0')?'selected="selected"':'')+'>Нет</option></select></td>';
        
+= '</tr>';
        
+= '<tr>';
        
+= '<td colspan="2" align="center"><input type="hidden" name="plid" id="plid" value="'+str_pr[0]+'" /><input type="submit" class="lbut" value="Редактировать" /></td>';
        
+= '</tr>';
        
+= '</table>';
        
+= '</form>';
        $(
'ContentPopUp').innerHTML s;
        break;
    }
}
?>
Онлайн: 0
Реклама