[Logicampus-cvs] logicampus/src/logicreate/services/menu/admin itemEditor.lcp, 1.4, 1.5 main.lcp, 1
Brought to you by:
trilexcom
From: Mark K <har...@us...> - 2007-10-08 14:31:36
|
Update of /cvsroot/logicampus/logicampus/src/logicreate/services/menu/admin In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv24452/menu/admin Modified Files: itemEditor.lcp main.lcp menuEditor.lcp Log Message: Change function "next_record" to "nextRecord". Index: itemEditor.lcp =================================================================== RCS file: /cvsroot/logicampus/logicampus/src/logicreate/services/menu/admin/itemEditor.lcp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** itemEditor.lcp 22 May 2007 03:25:12 -0000 1.4 --- itemEditor.lcp 8 Oct 2007 14:31:30 -0000 1.5 *************** *** 21,26 **** include_once(LIB_PATH."LC_html.php"); $db->query("select filename, title from lcHtml"); ! while($db->next_record()) { ! $t[html][$db->Record[0]] = $db->Record[1]; } $t[html] = makeOptions($t[html]); --- 21,26 ---- include_once(LIB_PATH."LC_html.php"); $db->query("select filename, title from lcHtml"); ! while($db->nextRecord()) { ! $t[html][$db->record[0]] = $db->record[1]; } $t[html] = makeOptions($t[html]); *************** *** 30,35 **** include_once(LIB_PATH."LC_html.php"); $db->query("select mid, moduleName from lcRegistry"); ! while($db->next_record()) { ! $t[apps][$db->Record[0]] = $db->Record[1]; } $t[apps] = makeOptions($t[apps]); --- 30,35 ---- include_once(LIB_PATH."LC_html.php"); $db->query("select mid, moduleName from lcRegistry"); ! while($db->nextRecord()) { ! $t[apps][$db->record[0]] = $db->record[1]; } $t[apps] = makeOptions($t[apps]); *************** *** 43,48 **** //parent menus $db->query("select pkey, title from menu order by title"); ! while($db->next_record()) { ! $t[menuOpts] .= '<option value="'.$db->Record[0].'">'.$db->Record[1].'</option>'; } $t['event'] = "insert"; --- 43,48 ---- //parent menus $db->query("select pkey, title from menu order by title"); ! while($db->nextRecord()) { ! $t[menuOpts] .= '<option value="'.$db->record[0].'">'.$db->record[1].'</option>'; } $t['event'] = "insert"; *************** *** 117,123 **** case "htm": $db->query("select filename, title from lcHtml"); ! while($db->next_record()) { ! $t[html][$db->Record['filename']] = $db->Record['title']; ! if ( $link->location == $db->Record['filename'] ) { $sel = $db->Record['filename']; } } $t[html] = makeOptions($t[html],$sel); --- 117,123 ---- case "htm": $db->query("select filename, title from lcHtml"); ! while($db->nextRecord()) { ! $t[html][$db->record['filename']] = $db->record['title']; ! if ( $link->location == $db->record['filename'] ) { $sel = $db->record['filename']; } } $t[html] = makeOptions($t[html],$sel); *************** *** 127,133 **** include_once(LIB_PATH."LC_html.php"); $db->query("select mid, moduleName from lcRegistry"); ! while($db->next_record()) { ! $t[apps][$db->Record['mid']] = $db->Record['moduleName']; ! if ( $link->location == $db->Record['mid'] ) { $sel = $db->Record['moduleName']; } } --- 127,133 ---- include_once(LIB_PATH."LC_html.php"); $db->query("select mid, moduleName from lcRegistry"); ! while($db->nextRecord()) { ! $t[apps][$db->record['mid']] = $db->record['moduleName']; ! if ( $link->location == $db->record['mid'] ) { $sel = $db->record['moduleName']; } } *************** *** 231,236 **** $db->query("select pkey,parentID,linkText,type from menuItems where menuID = ".$link->menuID." order by parentID, rank"); $db->RESULT_TYPE = MYSQL_ASSOC; ! while ( $db->next_record() ) { ! $data[] = MenuItem::getMenuItem($db->Record); } --- 231,236 ---- $db->query("select pkey,parentID,linkText,type from menuItems where menuID = ".$link->menuID." order by parentID, rank"); $db->RESULT_TYPE = MYSQL_ASSOC; ! while ( $db->nextRecord() ) { ! $data[] = MenuItem::getMenuItem($db->record); } Index: main.lcp =================================================================== RCS file: /cvsroot/logicampus/logicampus/src/logicreate/services/menu/admin/main.lcp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.lcp 22 May 2007 03:25:12 -0000 1.2 --- main.lcp 8 Oct 2007 14:31:30 -0000 1.3 *************** *** 26,30 **** $db->queryOne("select * from menuCache where pkey=$menuID"); ! $cachedMenu = unserialize($db->Record['menuObj']); } --- 26,30 ---- $db->queryOne("select * from menuCache where pkey=$menuID"); ! $cachedMenu = unserialize($db->record['menuObj']); } Index: menuEditor.lcp =================================================================== RCS file: /cvsroot/logicampus/logicampus/src/logicreate/services/menu/admin/menuEditor.lcp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** menuEditor.lcp 22 May 2007 03:25:12 -0000 1.2 --- menuEditor.lcp 8 Oct 2007 14:31:31 -0000 1.3 *************** *** 12,26 **** $db->query("select gid,groupName from lcGroups order by groupName"); ! while($db->next_record()) { ! $t[groups] .= '<option value="'.$db->Record[0].'" '; ! $t[notgroups] .= '<option value="'.$db->Record[0].'" '; ! if ( in_array($db->Record[0],$t[menu]->groups) ) { $t[groups] .= 'SELECTED'; } ! if ( in_array($db->Record[0],$t[menu]->notgroups) ) { $t[notgroups] .= 'SELECTED'; } ! $t[groups] .= '>'.$db->Record[1].'</option>'; ! $t[notgroups] .= '>'.$db->Record[1].'</option>'; } --- 12,26 ---- $db->query("select gid,groupName from lcGroups order by groupName"); ! while($db->nextRecord()) { ! $t[groups] .= '<option value="'.$db->record[0].'" '; ! $t[notgroups] .= '<option value="'.$db->record[0].'" '; ! if ( in_array($db->record[0],$t[menu]->groups) ) { $t[groups] .= 'SELECTED'; } ! if ( in_array($db->record[0],$t[menu]->notgroups) ) { $t[notgroups] .= 'SELECTED'; } ! $t[groups] .= '>'.$db->record[1].'</option>'; ! $t[notgroups] .= '>'.$db->record[1].'</option>'; } *************** *** 69,77 **** $db->query("select gid,groupName from lcGroups order by groupName"); ! while($db->next_record()) { ! $t[groups] .= '<option value="'.$db->Record[0].'" '; ! $t[notgroups] .= '<option value="'.$db->Record[0].'" '; ! $t[groups] .= '>'.$db->Record[1].'</option>'; ! $t[notgroups] .= '>'.$db->Record[1].'</option>'; } --- 69,77 ---- $db->query("select gid,groupName from lcGroups order by groupName"); ! while($db->nextRecord()) { ! $t[groups] .= '<option value="'.$db->record[0].'" '; ! $t[notgroups] .= '<option value="'.$db->record[0].'" '; ! $t[groups] .= '>'.$db->record[1].'</option>'; ! $t[notgroups] .= '>'.$db->record[1].'</option>'; } |