0
0
Xoş gəldin, Qonaq
Master Forum | Arxiv Mövzular | Arxiv 1
  php select de komek..
Mövzu Bağlıdır
Dj_M_M Dj_M_M (FMod) [Off] [#] (11.08.2016 / 12:56)
salam aleykum.bu bal yaariwmasinin status secimidi yaddawa arry emri ile gdir inc faylina bunu ne qeder edirem rutbe secilmir aktiv deaktiv duzelde bilirem meselen bele
echo "Qalibe Hediyye:<br/>";
echo "<select name=\"aktivbir$re\">\n";
if ($bir['aktiv']==1){
echo "<option value=\"1\">A&#231;&#305;q</option>\n";
echo "<option value=\"0\">Ba&#287;l&#305;</option>\n";
}else{
echo "<option value=\"0\">Ba&#287;l&#305;</option>\n";
echo "<option value=\"1\">A&#231;&#305;q</option>\n";
}
echo "</select><br/>\n";


amma statusu nece duzeldim bilmirem.kimse bilirsen zehmet olmasa komek elesin.buda rutbe
echo "R&#252;tbe:<br/>";
echo "<select name=\"rutbebir$re\" value=\"$bir[rutbe]\">|";
echo "<option value=\"9\">Catin Sahibi</option>|";
echo "<option value=\"8\">Super Admin</option>|";
echo "<option value=\"7\">Admin</option>|";
echo "<option value=\"6\">Super moderator</option>|";
echo "<option value=\"5\">Moderator</option>|";
echo "<option value=\"4\">V.I.P</option>|";
echo "<option value=\"11\">Deaktiv</option>|";
echo "</select>";
Dj_M_M Dj_M_M (FMod) [Off] [#] (11.08.2016 / 13:02)
bilen olmadi?
Dj_M_M Dj_M_M (FMod) [Off] [#] (11.08.2016 / 13:03)
buda autodaki iwlek versiyasidi bodra mod etmek istirem rutbe alinmir
echo "R&#252;tbe:<br/>";
$option = "<select name=\"rutbebir$ref\" value=\"$bir[rutbe]\">|";
$option .= "<option value=\"9\">Catin Sahibi</option>|";
$option .= "<option value=\"8\">Super Admin</option>|";
$option .= "<option value=\"7\">Admin</option>|";
$option .= "<option value=\"6\">Super moderator</option>|";
$option .= "<option value=\"5\">Moderator</option>|";
$option .= "<option value=\"4\">V.I.P</option>|";
$option .= "<option value=\"11\">Deaktiv</option>|";
$option .= "</select>|";
print $_v->select($option,$bir['rutbe'])."<br/>\n";
Dj_M_M Dj_M_M (FMod) [Off] [#] (11.08.2016 / 13:32)
ayda tecili lazimdiye komek eden olamayacaq?
KRaK KRaK [Off] [#] (11.08.2016 / 13:37)
Dj_M_M, print $_v->select($option,$bir['rutbe'])."<br/>\n";
Burda ferq ola biler.versiyalara yoxla
Sigurd Sigurd [Off] [#] (11.08.2016 / 13:44)
sualı başa düşmedim :/
Dj_M_M Dj_M_M (FMod) [Off] [#] (11.08.2016 / 13:49)
hazirda yuxarida gorduyunuz rutbe selectinde rutbenisecirem deyiw vururam amma deyiwmir ola bilerki fikrimi aydin catdira bilmiyim
Dj_M_M Dj_M_M (FMod) [Off] [#] (11.08.2016 / 13:51)
ikinci paylawdiqim ise auto catin rutbe selctidi onu bodra mod etmek isteyende yuxaridaki kimi eledim amma rutbeni secirem bazaya yazmir secdiyimi ele olduqu kimi qalir
CoDiNG* CoDiNG* (FMod) [Off] [#] (11.08.2016 / 14:59)
Qaqa bu
if post
{
burdaki $rutbe=$_POST['rutbebir'.$ref];
bunu mysqla yazdirisan?
}
Dj_M_M Dj_M_M (FMod) [Off] [#] (11.08.2016 / 15:02)
# CoDiNG* (11.08.2016 / 14:59)
Qaqa bu
if post
{
burdaki $rutbe=$_POST['rutbebir'.$ref];
bunu mysqla yazdirisan?
}
yoxe qaqa mysql deyil gozle atiram
Dj_M_M Dj_M_M (FMod) [Off] [#] (11.08.2016 / 15:03)
echo "Qalibe Hediyye:<br/>";
$option = "<select name=\"aktiviki$ref\">|";
$option .= "<option value=\"0\">Deaktiv</option>|";
$option .= "<option value=\"1\">Aktiv</option>|";
$option .= "</select>|";
print $_v->select($option,$iki['aktiv'])."<br/>\n";
echo "R&#252;tbe:<br/>";
$option = "<select name=\"rutbeiki$ref\">|";
$option .= "<option value=\"9\">Catin Sahibi</option>|";
$option .= "<option value=\"8\">Super Admin</option>|";
$option .= "<option value=\"7\">Admin</option>|";
$option .= "<option value=\"6\">Super moderator</option>|";
$option .= "<option value=\"5\">Moderator</option>|";
$option .= "<option value=\"4\">V.I.P</option>|";
$option .= "<option value=\"11\">Deaktiv</option>|";
$option .= "</select>|";
print $_v->select($option,$iki['rutbe'])."<br/>\n";
print $_v->input("<input name=\"balliki$ref\" value=\"".$iki['bal']."\" size=\"8\"/>")." - Bal(Deaktiv: <b>x</b>)<br/>\n";
print $_v->input("<input name=\"postiki$ref\" value=\"".$iki['post']."\" size=\"8\"/>")." - Post(Deaktiv: <b>x</b>)<br/>\n";
echo "Tesad&#252;f&#252; znak:<br/>";
$option = "<select name=\"znakiki$ref\">|";
$option .= "<option value=\"0\">Deaktiv</option>|";
$option .= "<option value=\"0\">Aktiv</option>|";
$option .= "</select>|";
print $_v->select($option,$iki['znak'])."<br/>\n";
echo $divide;
echo "<u>&#220;&#231;&#252;nc&#252; Yer &#252;&#231;&#252;n Hediyye</u><br/>";
echo "****<br/>";
echo "Qalibe Hediyye:<br/>";
$option = "<select name=\"aktivuc$ref\">|";
$option .= "<option value=\"0\">Deaktiv</option>|";
$option .= "<option value=\"1\">Aktiv</option>|";
$option .= "</select>|";
print $_v->select($option,$uc['aktiv'])."<br/>\n";
echo "R&#252;tbe:<br/>";
$option = "<select name=\"rutbeuc$ref\">|";
$option .= "<option value=\"9\">Catin Sahibi</option>|";
$option .= "<option value=\"8\">Super Admin</option>|";
$option .= "<option value=\"7\">Admin</option>|";
$option .= "<option value=\"6\">Super moderator</option>|";
$option .= "<option value=\"5\">Moderator</option>|";
$option .= "<option value=\"4\">V.I.P</option>|";
$option .= "<option value=\"11\">Deaktiv</option>|";
$option .= "</select>|";
print $_v->select($option,$uc['rutbe'])."<br/>\n";
print $_v->input("<input name=\"balluc$ref\" value=\"".$uc['bal']."\" size=\"8\"/>")." - Bal(Deaktiv: <b>x</b>)<br/>\n";
print $_v->input("<input name=\"postuc$ref\" value=\"".$uc['post']."\" size=\"8\"/>")." - Post(Deaktiv: <b>x</b>)<br/>\n";
echo "Tesad&#252;f&#252; znak:<br/>";
$option = "<select name=\"znakuc$ref\">|";
$option .= "<option value=\"0\">Deaktiv</option>|";
$option .= "<option value=\"0\">Aktiv</option>|";
$option .= "</select>|";
print $_v->select($option,$uc['znak'])."<br/>\n";
echo $divide;
echo "Qur&#287;ular<br/>";
echo "****<br/>";
echo "Yari&#351;manin Muddeti:<br/>";
$tkick = $setting['vaxt'] - $SERVER_TIME;
if ( $tkick < 3600 && 60 < $tkick ){
$new = $tkick;
$tkick = $new / 60;
$ras_info = 60;
}else if ( $tkick < 86400 && 3600 < $tkick ){
$new = $tkick;
$tkick = $new / 3600;
$ras_info = 3600;
}else if ( 86400 < $tkick ){
$new = $tkick;
$tkick = $new / 86400;
$ras_info = 86400;
}
$tkick = $tkick = round( $tkick, 0 );
if($setting['vaxt']<$SERVER_TIME){
$tkick = '0';
}
print $_v->input("<input name=\"vaxt$ref\" value=\"".$tkick."\" size=\"8\"/>")." -\n";
$option = "<select name=\"vaxt_info$ref\">|";
$option .= "<option value=\"86400\">G&#252;n</option>|";
$option .= "<option value=\"3600\">Saat</option>|";
$option .= "<option value=\"60\">Deqiqe</option>|";
$option .= "</select>|";
print $_v->select($option,$ras_info)."<br/>\n";

echo "Mesaj:<br/>";
print $_v->input("<input name=\"sms$ref\" value=\"".$setting['sms']."\" size=\"15\"/>")."<br/>\n";

echo $divide;
print $_v->submit("Deyi&#351;");
}else{
$time_info = intval($SERVER_TIME + $_POST['vaxt'] * $_POST['vaxt_info']);

$fpp = fopen($file, 'w');
$data = '<?php // B'."\n";
$data .= '$bir = array('."\n";
$data .= '"aktiv" => "'.trim($_POST['aktivbir']).'",'."\n";
$data .= '"bal" => "'.trim($_POST['ballbir']).'",'."\n";
$data .= '"post" => "'.trim($_POST['postbir']).'",'."\n";
$data .= '"znak" => "'.trim($_POST['znakbir']).'",'."\n";
$data .= '"rutbe" => "'.trim($_POST['rutbebir']).'",'."\n";
$data .= ');'."\n";
$data .= '// CreateD: By.Anonymouse'."\n";
$data .= '$iki = array('."\n";
$data .= '"aktiv" => "'.trim($_POST['aktiviki']).'",'."\n";
$data .= '"bal" => "'.trim($_POST['balliki']).'",'."\n";
$data .= '"post" => "'.trim($_POST['postiki']).'",'."\n";
$data .= '"znak" => "'.trim($_POST['znakiki']).'",'."\n";
$data .= '"rutbe" => "'.trim($_POST['rutbeiki']).'",'."\n";
$data .= ');'."\n";
$data .= '// CreateD: B'."\n";
$data .= '$uc = array('."\n";
$data .= '"aktiv" => "'.trim($_POST['aktivuc']).'",'."\n";
$data .= '"bal" => "'.trim($_POST['balluc']).'",'."\n";
$data .= '"post" => "'.trim($_POST['postuc']).'",'."\n";
$data .= '"znak" => "'.trim($_POST['znakuc']).'",'."\n";
$data .= '"rutbe" => "'.trim($_POST['rutbeuc']).'",'."\n";
$data .= ');'."\n";
$data .= '// CreateD: By.Anonymouse'."\n";
$data .= '$setting = array('."\n";
$data .= '"sms" => "'.trim($_POST['sms']).'",'."\n";
$data .= '"vaxt" => "'.$time_info.'",'."\n";
$data .= ');'."\n";
$data .= '?>';
fputs($fpp, $data);
fclose($fpp);
echo "<u>Melumat deyi&#351;dirildi!</u><br/>";
}
break;
Dj_M_M Dj_M_M (FMod) [Off] [#] (11.08.2016 / 15:06)
bu indi atdiqim auto catlrda azercel bal yariwmasindan bir casedi burdaki statusu secmeni duzelde bilmirem bodr mod edirem hamisi iwdir bidene secdiyim statusu vermir yeni lap bawda nedise o qalair deaktiv vururam yene ele birinci catsahibi yazilir deaktiv olmur
Dj_M_M Dj_M_M (FMod) [Off] [#] (11.08.2016 / 15:09)
buda autodan bodra mod elediyim casedi her weyi iwleyir bidene rutbe sohbeti iwlemir melumatilar hamisi yazilir inc faylina amma rutbe yox
case "5":
if($row['level']!='9') {
echo "Bura olmaz =)<br/>";
break;
}
$file = "file/dat_folder/azercell_hediyye.inc";
@require "$file";
if(!isset($_POST['rutbebir'])){
echo "<form action=\"azercell_show.php?act=$act&amp;id=$id&amp;ps=$ps&amp;".$ver."ref=$ref{$takep}\" method=\"post\">\n";

echo "<b>Qur&#287;ular ve Hediyyeler</b>:<br/>\n";
echo $divide;
echo "<u>Birinci Yer &#252;&#231;&#252;n Hediyye</u><br/>";
echo "****<br/>";
echo "Qalibe Hediyye:<br/>";
echo "<select name=\"aktivbir$re\">\n";
if ($bir['aktiv']==1){
echo "<option value=\"1\">A&#231;&#305;q</option>\n";
echo "<option value=\"0\">Ba&#287;l&#305;</option>\n";
}else{
echo "<option value=\"0\">Ba&#287;l&#305;</option>\n";
echo "<option value=\"1\">A&#231;&#305;q</option>\n";
}
echo "</select><br/>\n";
echo $divide;
echo $fsize2;



echo "R&#252;tbe:<br/>";
echo "<select name=\"rutbebir$re\">\n";
if ($bir['rutbe']==9){
echo "<option value=\"9\">Catin Sahibi</option>|";
echo "<option value=\"8\">Super Admin</option>|";
echo "<option value=\"7\">Admin</option>|";
echo "<option value=\"6\">Super moderator</option>|";
echo "<option value=\"5\">Moderator</option>|";
echo "<option value=\"4\">V.I.P</option>|";
echo "<option value=\"11\">Deaktiv</option>|";
}elseif($bir["rutbe"] == 8){
echo "<option value=\"8\">Super Admin</option>|";
echo "<option value=\"7\">Admin</option>|";
echo "<option value=\"6\">Super moderator</option>|";
echo "<option value=\"5\">Moderator</option>|";
echo "<option value=\"4\">V.I.P</option>|";
echo "<option value=\"11\">Deaktiv</option>|";
echo "<option value=\"9\">Catin Sahibi</option>|";

} else {
echo "<option value=\"7\">Admin</option>|";
echo "<option value=\"6\">Super moderator</option>|";
echo "<option value=\"5\">Moderator</option>|";
echo "<option value=\"4\">V.I.P</option>|";
echo "<option value=\"11\">Deaktiv</option>|";
echo "<option value=\"9\">Catin Sahibi</option>|";
echo "<option value=\"8\">Super Admin</option>|";
}

echo "</select>";
/*
echo "<select name=\"rutbebir$re\">|";
if ($bir['rutbe']==9){
echo "<option value=\"9\">Catin Sahibi</option>|";
echo "<option value=\"8\">Super Admin</option>|";
echo "<option value=\"7\">Admin</option>|";
echo "<option value=\"6\">Super moderator</option>|";
echo "<option value=\"5\">Moderator</option>|";
echo "<option value=\"4\">V.I.P</option>|";
echo "<option value=\"11\">Deaktiv</option>|";
}elseif($bir["rutbe"] == 8){
echo "<option value=\"8\">Super Admin</option>|";
echo "<option value=\"7\">Admin</option>|";
echo "<option value=\"6\">Super moderator</option>|";
echo "<option value=\"5\">Moderator</option>|";
echo "<option value=\"4\">V.I.P</option>|";
echo "<option value=\"11\">Deaktiv</option>|";
echo "<option value=\"9\">Catin Sahibi</option>|";
}
echo "</select>";
*/

echo "<br/>";
echo "<input type=\"text\" name=\"ballbir$re\" value=\"".$bir['bal']."\" size=\"8\"/>"." - Bal(Deaktiv: <b>x</b>)<br/>\n";
echo "<input type=\"text\" name=\"postbir$re\" value=\"".$bir['post']."\" size=\"8\"/>"." - Post(Deaktiv: <b>x</b>)<br/>\n";

echo "Tesad&#252;f&#252; znak:<br/>";
echo "<select name=\"znakbir$re\">\n";
if ($bir['znak']==1){
echo "<option value=\"1\">Aktiv</option>\n";
echo "<option value=\"0\">Deaktiv</option>\n";
}else{
echo "<option value=\"0\">Deaktiv</option>\n";
echo "<option value=\"1\">Aktiv</option>\n";
}
echo "</select><br/>\n";
echo $divide;

echo "<u>&#304;kinci Yer &#252;&#231;&#252;n Hediyye</u><br/>";
echo "****<br/>";
echo "Qalibe Hediyye:<br/>";
echo "<select name=\"aktiviki$re\">\n";
if ($bir['aktiv']==1){
echo "<option value=\"1\">A&#231;&#305;q</option>\n";
echo "<option value=\"0\">Ba&#287;l&#305;</option>\n";
}else{
echo "<option value=\"0\">Ba&#287;l&#305;</option>\n";
echo "<option value=\"1\">A&#231;&#305;q</option>\n";
}
echo "</select><br/>\n";
echo "R&#252;tbe:<br/>";


echo "<select name=\"rutbeiki$re\">\n";
if ($iki["rutbeiki"] == 0)echo "<option value=\"0\">Normal</option>\n";
elseif ($inf["rutbeiki"] == 1)echo "<option value=\"1\">G&#246;r&#252;nmez</option>\n";
elseif ($inf["rutbeiki"] == 3)echo "<option value=\"3\">Tam G&#246;r&#252;nmez</option>\n";
if ($inf["rutbeiki"]!=0) echo "<option value=\"0\">Normal</option>\n";
if ($inf["rutbeiki"]!=1) echo "<option value=\"1\">G&#246;r&#252;nmez</option>\n";
if ($inf["rutbeiki"]!=3) echo "<option value=\"3\">Tam G&#246;r&#252;nmez</option>\n";
echo "</select><br/>\n";






echo "<input type=\"text\" name=\"balliki$re\" value=\"".$iki['bal']."\" size=\"8\"/>"." - Bal(Deaktiv: <b>x</b>)<br/>\n";
echo "<input type=\"text\" name=\"postiki$re\" value=\"".$iki['post']."\" size=\"8\"/>"." - Post(Deaktiv: <b>x</b>)<br/>\n";

echo "Tesad&#252;f&#252; znak:<br/>";
echo "<select name=\"znakiki$re\">\n";
if ($bir['znak']==1){
echo "<option value=\"1\">Aktiv</option>\n";
echo "<option value=\"0\">Deaktiv</option>\n";
}else{
echo "<option value=\"0\">Deaktiv</option>\n";
echo "<option value=\"1\">Aktiv</option>\n";
}
echo "</select><br/>\n";
echo $divide;


echo "<u>&#220;&#231;&#252;nc&#252; Yer &#252;&#231;&#252;n Hediyye</u><br/>";
echo "****<br/>";
echo "Qalibe Hediyye:<br/>
<select name=\"aktivuc$ref\">|
<option value=\"0\">Deaktiv</option>|
<option value=\"1\">Aktiv</option>|
</select>|";
echo "<select> ".$uc['aktiv']."</select><br/>\n";

echo "R&#252;tbe:<br/>
<select name=\"rutbeuc$ref\">|
<option value=\"9\">Catin Sahibi</option>|
<option value=\"8\">Super Admin</option>|
<option value=\"7\">Admin</option>|
<option value=\"6\">Super moderator</option>|
<option value=\"5\">Moderator</option>|
<option value=\"4\">V.I.P</option>|
<option value=\"11\">Deaktiv</option>|
</select>|";
echo "<select> ".$uc['rutbe']."</select><br/>\n";

print "<input name=\"balluc$ref\" value=\"".$uc['bal']."\" size=\"8\"/>"." - Bal(Deaktiv: <b>x</b>)<br/>\n";
print "<input name=\"postuc$ref\" value=\"".$uc['post']."\" size=\"8\"/>"." - Post(Deaktiv: <b>x</b>)<br/>\n";
echo "Tesad&#252;f&#252; znak:<br/>
<select name=\"znakuc$ref\">|
<option value=\"0\">Deaktiv</option>|
<option value=\"0\">Aktiv</option>|
</select>|";

echo "<select> ".$uc['znak']."</select><br/>\n";

echo $divide;
echo "Qur&#287;ular<br/>";
echo "****<br/>";
echo "Yari&#351;manin Muddeti:<br/>";
$tkick = $setting['vaxt'] - $SERVER_TIME;
if ( $tkick < 3600 && 60 < $tkick ){
$new = $tkick;
$tkick = $new / 60;
$ras_info = 60;
}else if ( $tkick < 86400 && 3600 < $tkick ){
$new = $tkick;
$tkick = $new / 3600;
$ras_info = 3600;
}else if ( 86400 < $tkick ){
$new = $tkick;
$tkick = $new / 86400;
$ras_info = 86400;
}
$tkick = $tkick = round( $tkick, 0 );
if($setting['vaxt']<$SERVER_TIME){
$tkick = '0';
}




echo "<input type=\"text\" name=\"vaxt$re\" value=\"".$tkick."\" size=\"8\"/>"." -\n";
echo "<select name=\"vaxt_info$re\" value=\"".$setting['vaxt']."\"/>|";
echo "<option value=\"86400\">G&#252;n</option>|";
echo "<option value=\"3600\">Saat</option>|";
echo "<option value=\"60\">Deqiqe</option>|";
echo "</select>|";


echo $divide;
echo "Mesaj:<br/>";
echo "<input type=\"text\" name=\"sms$re\" value=\"".$setting['sms']."\" size=\"15\"/>"."<br/>\n";

echo $divide;
echo "<input type=\"hidden\" name=\"rutbebir\" value=\"ok\"/>\n";
echo "<input value=\"Deyi&#351;\" class=\"head\" type=\"submit\"></form>\n";

}else{
$time_info = intval($SERVER_TIME + $_POST['vaxt'] * $_POST['vaxt_info']);

$fpp = fopen($file, 'w');
$data = '<?php // By.Anonymouse'."\n";
$data .= '$bir = array('."\n";
$data .= ' "aktiv" => "'.intval($aktivbir).'",'."\n";
$data .= ' "bal" => "'.intval($ballbir).'",'."\n";
$data .= ' "post" => "'.intval($postbir).'",'."\n";
$data .= ' "znak" => "'.intval($znakbir).'",'."\n";
$data .= ' "rutbe" => "'.intval($rutbebir).'",'."\n";
$data .= ');'."\n";
$data .= '// CreateD: By.Anonymouse'."\n";
$data .= '$iki = array('."\n";
$data .= '"aktiv" => "'.trim($_POST['aktiviki']).'",'."\n";
$data .= '"bal" => "'.trim($_POST['balliki']).'",'."\n";
$data .= '"post" => "'.trim($_POST['postiki']).'",'."\n";
$data .= '"znak" => "'.trim($_POST['znakiki']).'",'."\n";
$data .= '"rutbe" => "'.trim($_POST['rutbeiki']).'",'."\n";
$data .= ');'."\n";
$data .= '// CreateD: By.Anonymouse'."\n";
$data .= '$uc = array('."\n";
$data .= '"aktiv" => "'.trim($_POST['aktivuc']).'",'."\n";
$data .= '"bal" => "'.trim($_POST['balluc']).'",'."\n";
$data .= '"post" => "'.trim($_POST['postuc']).'",'."\n";
$data .= '"znak" => "'.trim($_POST['znakuc']).'",'."\n";
$data .= '"rutbe" => "'.trim($_POST['rutbeuc']).'",'."\n";
$data .= ');'."\n";
$data .= '// CreateD: By.Anonymouse'."\n";
$data .= '$setting = array('."\n";
$data .= '"sms" => "'.trim($_POST['sms']).'",'."\n";
$data .= '"vaxt" => "'.$time_info.'",'."\n";
$data .= ');'."\n";
$data .= '?>';
fputs($fpp, $data);
fclose($fpp);
echo "<u>Melumat deyi&#351;dirildi!</u><br/>";
}
break;
Dj_M_M Dj_M_M (FMod) [Off] [#] (11.08.2016 / 16:08)
ozum tapdim duzeltdim movzu offf
  php select de komek..
Cəmi: 14 Cavab
Mövzunu vip et
Mövzuya Baxanlar (29 nəfər)
Müellife göre filtreleme
Mövzunu Yükle

php select de komek..

php select de komek..

Rol.Az