) // -------------------- // recognized URL arguments $pattern=$_GET['pattern']; // --- decoration $title="Tag Types"; $tabs=array(); $tabs['All Types']=array('url'=>l_tags(),'bubble'=>"All Tag Types"); // -------------------- drupal_set_title($title); plc_tabs($tabs); // if its edit get the tag info $update_mode = ( $_GET['action'] == 'update-tag-type' ) ; if ($update_mode) { $tag_type_id= intval( $_GET['id'] ); $type_info= $api->GetTagTypes( array( $tag_type_id ) ); $tagname=$type_info[0]['tagname']; $min_role_id= $type_info[0]['min_role_id']; $description= $type_info[0]['description']; $category=$type_info[0]['category']; } // display form for tag types plc_section($label,false); plc_form_start (l_actions(),array()); plc_details_start(); plc_details_line("Name", plc_form_text_text("name",$tagname,20)); plc_details_line("Category", plc_form_text_text("category",$category,30)); plc_details_line("Description",plc_form_textarea_text("description",$description,40,5)); //tmp // select the option corresponding with min_role_id $selector = "\n"; plc_details_line("Min Role",$selector); if ($update_mode) { $submit=plc_form_hidden_text ('tag_type_id',$tag_type_id) . plc_form_submit_text('update-tag-type',"Update tag type"); } else { $submit=plc_form_submit_text('add-tag-type',"Add tag type"); } plc_details_line1 ($submit,"right"); plc_details_end(); plc_form_end(); // Print footer include 'plc_footer.php'; ?>