PDA

View Full Version : AutoLoad to Center Panel



webguy
29 Nov 2007, 1:16 AM
I want to be able to AutoLoad to the Center Panel from from left navigation that is built with the Accordian Layout. How do I go about doing this? Here is my code for the West side.

region:'west',
id:'west-panel',
title:'Explorer',
split:true,
width: 200,
minSize: 175,
maxSize: 300,
/*collapsible: true,*/
margins:'0 0 0 5',
layout:'accordion',
layoutConfig:{
animate:true
},
items: [{
contentEl: 'west',
title:'Web Pages',
html:'<p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="news.php" class="nav3">My News Items</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="content.php" class="nav3">My Web Pages</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="ads.php" class="nav3">My Advertisements</a></p>',
border:false,
iconCls:'webpages'
},{
title:'Members',
html:'<p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="members.php" class="nav3">View Members</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="insert-member.php" class="nav3">Add Member</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="email-members.php" class="nav3">Email All Members</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="reminder-email.php" class="nav3">Send Email Reminder</a></p>',
border:false,
iconCls:'members'
},{
title:'Appointments',
html:'<p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="appointments.php" class="nav3">View Appointments</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="insert-appointment.php" class="nav3">Add Appointment</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="booked-appointments.php" class="nav3">Booked Appointments</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="available-appointments.php" class="nav3">Available Appointments</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="notification-email.php" class="nav3">Edit Notification Email</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="print-appointments.php" class="nav3">Print Appointments</a></p>',
border:false,
iconCls:'appointments'
},{
title:'Invoices',
html:'<p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="invoices.php" class="nav3">View Invoices</a></p>',
border:false,
iconCls:'invoices'
},{
title:'Credits',
html:'<p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="view-credits.php" class="nav3">View Credits</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="update-credits.php" class="nav3">Update Credits</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="insert-credits.php" class="nav3">Add Credits</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="payment_option.php" class="nav3">Payment Option</a></p>',
border:false,
iconCls:'credits'
},{
title:'Pay Pal Account',
html:'<p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="view-paypal.php" class="nav3">View Account</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="update-paypal.php" class="nav3">Update Account</a></p>',
border:false,
iconCls:'paypal'
},{
title:'Settings',
html:'<p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="preferences.php" class="nav3">My Preferences</a></p><p>&nbsp;&nbsp;<img src="../_img/icons/i.png" width="14" height="13" align="absmiddle" border="0">&nbsp;<a href="logo.php" class="nav3">My Web Site Logo</a></p>',
border:false,
iconCls:'settings'
}]
}