Пример #1
0
$total_subs = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM ava_forums WHERE parent_id = {$_POST['id']}"), 0);
if ($total_subs >= 1) {
    ?>

<div class="category_delete_options">

<div class="category_delete_left">
After deleting, move sub-forums to

<select name="category" id="new_forum<?php 
    echo $_POST['id'];
    ?>
" class="cdtb">
	<option value="0">No parent</option>
	<?php 
    ForumsDropdown(0, $_POST['id']);
    ?>
</select>
</div>
<div class="category_delete_right">
<div class="button3" onclick="DeleteForum('<?php 
    echo $_POST['id'];
    ?>
');return false"><a href="#">Delete</a></div>
</div>

</div>

<?php 
} else {
    ?>
Пример #2
0
<?php

include '../../config.php';
include '../../includes/core.php';
include '../../avforums/forum_core.php';
?>

<select name="parent_forum">
	<option value="0">No parent</option>
	<?php 
ForumsDropdown(0);
?>
</select>
Пример #3
0
<div class="form_element_container">
   <div class="form_lable"><label>Description</label></div>
   <div class="form_element"><textarea class="text_area" name="forum_description"><?php 
echo $forum['description'];
?>
</textarea></div>
</div>

<div class="form_element_container">
   <div class="form_lable"><label>Parent forum</label></div>
   <div class="form_element" id="refresh_category">
	   <select name="parent_forum">
			<option value="0">No parent</option>
			<?php 
ForumsDropdown($forum['parent_id']);
?>
		</select>
   </div>
</div>

<div class="form_element_container">
   <div class="form_lable"><label>Read-only</label></div>
   <div class="form_element">
   <?php 
if ($forum['read_only'] == 1) {
    echo '<input type="checkbox" name="read_only" value="1" checked="checked">';
} else {
    echo '<input type="checkbox" name="read_only" value="1">';
}
?>