1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | global $database , $wb ; $pages = explode ( "," , $page ); reset( $pages ); array_unshift ( $pages , " " ); $jumpto =' <form name= "jump2all" > <select name= "select" onchange= "javascript: window.location = this.options[this.selectedIndex].value;" > <option value= "" selected= "" >Pick A Page</option>'; while ( $pageid =next( $pages )){ $get_content = $database ->query( "SELECT page_title FROM " .TABLE_PREFIX. "pages WHERE page_id = '$pageid'" ); $fetch_content = $get_content ->fetchRow(); $jumpto = $jumpto . '<option value="[wblink' . $pageid . ']">' . $fetch_content [ 'page_title' ]. '</option>' ; } $jumpto = $jumpto . '</select></form>' ; $wb ->preprocess( $jumpto ); return $jumpto ; |