Changeset 623 for trunk/admin/cat_modify.php
- Timestamp:
- Nov 26, 2004, 5:10:17 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/cat_modify.php
r622 r623 171 171 } 172 172 173 /*174 // can the parent category be changed ? (is the category virtual ?)175 if ( $row['dir'] == '' )176 {177 $vtp->addSession( $sub, 'parent' );178 // We only show a List Of Values if the number of categories is less than179 // $conf['max_LOV_categories']180 $query = 'SELECT COUNT(id) AS nb_total_categories';181 $query.= ' FROM '.CATEGORIES_TABLE;182 $query.= ';';183 $countrow = mysql_fetch_array( pwg_query( $query ) );184 if ( $countrow['nb_total_categories'] < $conf['max_LOV_categories'] )185 {186 $vtp->addSession( $sub, 'associate_LOV' );187 $vtp->addSession( $sub, 'associate_cat' );188 $vtp->setVar( $sub, 'associate_cat.value', '-1' );189 $vtp->setVar( $sub, 'associate_cat.content', '' );190 $vtp->closeSession( $sub, 'associate_cat' );191 $page['plain_structure'] = get_plain_structure( true );192 $structure = create_structure( '', array() );193 display_categories( $structure, ' ', $row['id_uppercat'],$row['id'] );194 $vtp->closeSession( $sub, 'associate_LOV' );195 }196 // else, we only display a small text field, we suppose the administrator197 // knows the id of its category198 else199 {200 $vtp->addSession( $sub, 'associate_text' );201 $vtp->setVar( $sub, 'associate_text.value', $row['id_uppercat'] );202 $vtp->closeSession( $sub, 'associate_text' );203 }204 $vtp->closeSession( $sub, 'parent' );205 }206 */207 173 //----------------------------------------------------------- sending html code 208 174 $template->assign_var_from_handle('ADMIN_CONTENT', 'categories');
Note: See TracChangeset
for help on using the changeset viewer.