芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/administrator/layout/genders.phtml
query("UPDATE config_genders set name = '".$name."',sex = '".$sex."' where id = '".$id."'"); header('Location:'.$sm['config']['site_url'].'index.php?page=admin&p=genders'); } if(isset($_GET['a'])){ $id = secureEncode($_GET['a']); $name = secureEncode($_GET['name']); $sex = secureEncode($_GET['sex']); $query = $mysqli->query("SELECT * FROM languages order by id ASC"); if ($query->num_rows > 0) { while($re = $query->fetch_object()){ $mysqli->query("INSERT INTO config_genders (id,name,lang_id,sex) VALUES ('".$id."','".$name."','".$re->id."','".$sex."')"); } } header('Location:'.$sm['config']['site_url'].'index.php?page=admin&p=genders'); } if(isset($_GET['d'])){ $id = secureEncode($_GET['d']); $mysqli->query("DELETE FROM config_genders where id = '".$id."'"); header('Location:'.$sm['config']['site_url'].'index.php?page=admin&p=genders'); } ?>
Plugins
Software
Gender settings
arrow_back
Site Genders Settings
Name/value
Will be displayed in the site
Sex
For fake Users creation
Male'; echo '
Female
'; } else { echo '
Female
'; echo '
Male
'; } ?>
update
delete
Male
Female
add_circle