== CPC Admin Menu System == This contribution changes the admin menu look/functionality to an improved menu that uses SmartClient ( http://smartclient.com ) and SCPHP ( http://smartclientphp.com ). == How to install? == First of all, backup your files. This is the most important step :-) Then, copy the files inside catalog folder ( of this package ) to your OsCommerce install folder. It is important to notice that we are considering that you have a clean OsCommerce install. If you have modifications on your menu, you will lose them when you copy the files but you may add them later, following the same structure that the new menu uses. Now you have to change one file. 1) On admin/includes/column_left.php: - Add BEFORE anything: require_once ('includes/SmartClient/ScGeneral.php'); require_once ('includes/SmartClient/ScTree.php'); require_once ('includes/SmartClient/ScTreeGrid.php'); $sc_general = new ScGeneral(); echo $sc_general->includeScripts('../js/isomorphic/', 'Enterprise', false , '../js/'); // Create a ScTree to represent our menu $sc_tree = new ScTree(); - Add at the END of the file: $sc_tree->showJsTags( false ); $options = array( 'openProperty' => 'isOpen' ); $tree = $sc_tree->create('children', 'name', 'children', $options); $sc_treegrid = new ScTreeGrid(); $options = array( 'ID' => 'menuTree', 'width' => 200, 'height' => 600, 'border' => 0, 'position' => 'relative', 'showHeader' => false, 'recordClick' => $sc_treegrid->addQuotesStr('function recordClick(viewer, record, recordNum, field, fieldNum, value, rawValue) { if ( record.url != undefined ) { window.location = record.url; } }'), 'data' => $sc_treegrid->addQuotesStr($tree) ); echo '