芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/administrator/layout/questions.phtml
query("UPDATE config_profile_questions set question = '".$q."',method = '".$t."',q_order = '".$o."',gender = '".$g."' where id = '".$id."'"); header('Location:'.$sm['config']['site_url'].'index.php?page=admin&p=questions'); } if(isset($_GET['a'])){ $id = secureEncode($_GET['a']); $q = secureEncode($_GET['q']); $t = secureEncode($_GET['t']); $g = secureEncode($_GET['g']); $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_profile_questions (id,question,lang_id,method,gender) VALUES ('".$id."','".$q."','".$re->id."','".$t."','".$g."')"); } } header('Location:'.$sm['config']['site_url'].'index.php?page=admin&p=questions'); } if(isset($_GET['d'])){ $id = secureEncode($_GET['d']); $mysqli->query("DELETE FROM config_profile_questions where id = '".$id."'"); $mysqli->query("DELETE FROM config_profile_answers where qid = '".$id."'"); header('Location:'.$sm['config']['site_url'].'index.php?page=admin&p=questions'); } ?>
Plugins
Software
Custom Profile Questions
arrow_back
Custom Profile Questions settings
Question
Will be displayed in the site, multilang support in language page
Type
For the input, text or select
Gender
Filter question to one gender or all genders
Order
In this order will be displayed
Text'; echo '
Select
'; } else { echo '
Select
'; echo '
Text
'; } ?>
All Genders'; foreach($genders as $gen){ if($gen['id'] == $entry['gender']){ $selected = 'selected';} else {$selected = '';} echo '
'.$gen['text'].'
'; } ?>
check_circle
delete
Text
Select
All Genders'; foreach($genders as $gen){ echo '
'.$gen['text'].'
'; } ?>
add_circle
= getAbsolutePageAdmin('questionsAjax'); ?>