Joomla15 - 最新开源CMS

源代码在线查看: admin.plugins.html.php

软件大小: 4715 K
上传用户: feitiandy001
关键词: Joomla CMS 15 开源
下载地址: 免注册下载 普通下载 VIP

相关代码

								/**
				* @version		$Id: admin.plugins.html.php 8577 2007-08-26 22:45:22Z eddieajau $
				* @package		Joomla
				* @subpackage	Plugins
				* @copyright	Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
				* @license		GNU/GPL, see LICENSE.php
				* Joomla! is free software. This version may have been modified pursuant
				* to the GNU General Public License, and as distributed it includes or
				* is derivative of works licensed under the GNU General Public License or
				* other free or open source software licenses.
				* See COPYRIGHT.php for copyright notices and details.
				*/
				
				// no direct access
				defined( '_JEXEC' ) or die( 'Restricted access' );
				
				/**
				* @package		Joomla
				* @subpackage	Plugins
				*/
				class HTML_modules {
				
					/**
					* Writes a list of the defined modules
					* @param array An array of category objects
					*/
					function showPlugins( &$rows, $client, &$page, $option, &$lists )
					{
						$limitstart = JRequest::getVar('limitstart', '0', '', 'int');
				
						$user =& JFactory::getUser();
				
						//Ordering allowed ?
						$ordering = ($lists['order'] == 'p.folder');
				
						JHTML::_('behavior.tooltip');
						?>
						
							
							
								
									:
																		
									
								
								
																		echo $lists['type'];
									echo $lists['state'];
									?>
								
							
							
				
							
							
								
									
										
									
									
																			
									
										
									
									
										
									
									
										
										
									
									
										
									
									
										
									
									
										
									
									
										
									
								
							
							
								
									
										
									
								
							
							
														$k = 0;
							for ($i=0, $n=count( $rows ); $i < $n; $i++) {
								$row 	= &$rows[$i];
				
								$link = JRoute::_( 'index.php?option=com_plugins&client='. $client .'&task=edit&cid[]='. $row->id );
				
								$access 	= JHTML::_('grid.access',   $row, $i );
								$checked 	= JHTML::_('grid.checkedout',   $row, $i );
								$published 	= JHTML::_('grid.published', $row, $i );
								?>
																	
										
									
									
										
									
									
																		if (  JTable::isCheckedOut($user->get ('id'), $row->checked_out ) ) {
										echo $row->name;
									} else {
										?>
																					
																			}
									?>
									
									
										
									
									
										
										
										
																			
									
										
									
									
										
									
									
										
									
									
										
									
								
																$k = 1 - $k;
							}
							?>
							
							
				
												
												
												
						
											}
				
					/**
					* Writes the edit form for new and existing module
					*
					* A new record is defined when $row is passed with the id
					* property set to 0.
					* @param JCategoryModel The category object
					* @param array The modules of the left side.  The array elements are in the form
					* $leftorder[order] = label
					* where order is the module order from the db table and label is a
					* text label associciated with the order.
					* @param array See notes for leftorder
					* @param array An array of select lists
					* @param object Parameters
					*/
					function editPlugin( &$row, &$lists, &$params, $option )
					{
						JRequest::setVar( 'hidemainmenu', 1 );
				
						// clean item data
						jimport('joomla.filter.output');
						JFilterOutput::objectHTMLSafe( $row, ENT_QUOTES, '' );
				
						JHTML::_('behavior.tooltip');
				
						$row->nameA = '';
						if ( $row->id ) {
							$row->nameA = '[ '. $row->name .' ]';
						}
						?>
						
						function submitbutton(pressbutton) {
							if (pressbutton == "cancel") {
								submitform(pressbutton);
								return;
							}
							// validation
							var form = document.adminForm;
							if (form.name.value == "") {
								alert( "" );
							} else if (form.element.value == "") {
								alert( "" );
							} else {
								submitform(pressbutton);
							}
						}
						
				
						
				
						
							
								
				
								
								
									
										
											:
										
									
									
																			
								
								
									
										:
									
									
										
									
								
								
									
										
											:
										
									
									
										
									
								
								
									
										
											:
										
									
									
																			
								
								
									
										
											:
										
									
									
										
									
								
								
									
										:
									
									
										
									
								
								
									
										:
									
									
										
									
								
								
							
						
				
						
							
								
				
																	jimport('joomla.html.pane');
									$pane =& JPane::getInstance('sliders');
									echo $pane->startPane("plugin-pane");
									echo $pane->startPanel(JText :: _('Plugin Parameters'), "param-page");
									if($output = $params->render('params')) :
										echo $output;
									else :
										echo "".JText::_('There are no parameters for this item')."";
									endif;
									echo $pane->endPanel();
				
									if ($params->getNumParams('advanced')) {
										echo $pane->startPanel(JText :: _('Advanced Parameters'), "advanced-page");
										if($output = $params->render('params', 'advanced')) :
											echo $output;
										else :
											echo "".JText::_('There are no advanced parameters for this item')."";
										endif;
										echo $pane->endPanel();
									}
				
									if ($params->getNumParams('legacy')) {
										echo $pane->startPanel(JText :: _('Legacy Parameters'), "legacy-page");
										if($output = $params->render('params', 'legacy')) :
											echo $output;
										else :
											echo "".JText::_('There are no legacy parameters for this item')."";
										endif;
										echo $pane->endPanel();
									}
									echo $pane->endPane();
								?>
							
						
						
				
																														
						
											}
				}
				?>
							

相关资源