Beispiel #1
0
        ?>
		<form method="POST" >
		<input type="hidden" name="old_category" value="<?php 
        echo jb_escape_html($_REQUEST['cat']);
        ?>
">
		<input type="hidden" name="posts" value="<?php 
        echo implode(",", $_REQUEST['posts']);
        ?>
">
		<input type="hidden" name="field_id" value="<?php 
        echo jb_escape_html($field_id);
        ?>
">
		<?php 
        JB_category_select_field('new_category', $category_init_id, 0, 1);
        ?>
<br>
		<input type="submit" name="move_to_cat" value="Move">

		</form>

		<?php 
    }
}
if ($_REQUEST['move_to_cat'] != '') {
    $old_category = $_REQUEST['old_category'];
    $new_category = $_REQUEST['new_category'];
    $posts = explode(",", $_REQUEST['posts']);
    // find the field id for this category...
    if ($new_category > 0) {
 function category_field()
 {
     JB_category_select_field($this->field_row['field_id'], $this->field_row['category_init_id'], $this->get_data_value($this->field_row['field_id']));
     if ($this->field_row['FCOMMENT'] != '') {
         echo $this->field_row['FCOMMENT'] . "<br>";
     }
 }