mambo的cms源代码

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

软件大小: 2053 K
上传用户: bonylee_java
关键词: mambo cms 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

								/**				* @version $Id: admin.weblinks.html.php,v 1.8 2005/02/15 14:49:43 kochp Exp $				* @package Mambo				* @subpackage Weblinks				* @copyright (C) 2000 - 2005 Miro International Pty Ltd				* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL				* Mambo is Free Software				*/								/** ensure this file is being included by a parent file */				defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );								/**				* @package Mambo				* @subpackage Weblinks				*/				class HTML_weblinks {									function showWeblinks( $option, &$rows, &$lists, &$search, &$pageNav ) {						global $my, $adminLanguage;										mosCommonHTML::loadOverlib();						?>																																																					:																																																																																											#																																																																																																																																																																												$k = 0;						for ($i=0, $n=count( $rows ); $i < $n; $i++) {							$row = &$rows[$i];											$link 	= 'index2.php?option=com_weblinks&task=editA&hidemainmenu=1&id='. $row->id;											$task 	= $row->published ? 'unpublish' : 'publish';							$img 	= $row->published ? 'publish_g.png' : 'publish_x.png';							$alt 	= $row->published ? $adminLanguage->A_COMP_PUBLISHED : $adminLanguage->A_COMP_UNPUBLISHED;											$checked 	= mosCommonHTML::CheckedOutProcessing( $row, $i );											$row->cat_link 	= 'index2.php?option=com_categories§ion=com_weblinks&task=editA&hidemainmenu=1&id='. $row->catid;							?>																																																																															if ( $row->checked_out && ( $row->checked_out != $my->id ) ) {									echo $row->title;								} else {									?>																																												}								?>																																																																if ( $row->approved ) {									?>																																												} else {									?>																																			}								?>																												      																																																																																																								$k = 1 - $k;						}						?>																																																					}									/**					* Writes the edit form for new and existing record					*					* A new record is defined when $row is passed with the id					* property set to 0.					* @param mosWeblink The weblink object					* @param array An array of select lists					* @param object Parameters					* @param string The option					*/					function editWeblink( &$row, &$lists, &$params, $option ) {						global $adminLanguage;						mosMakeHtmlSafe( $row, ENT_QUOTES, 'description' );						?>												function submitbutton(pressbutton) {							var form = document.adminForm;							if (pressbutton == 'cancel') {								submitform( pressbutton );								return;							}											// do field validation							if (form.title.value == ""){								alert( "" );							} else if (form.catid.value == "0"){								alert( "" );							} else if (form.url.value == ""){								alert( "" );							} else {								submitform( pressbutton );							}						}																																						Weblink:																																																																																																	Details																																											:																																																																						:																																																																						:																																																																						:																																																																										:																																																																						:																																																																						:																																																																																																				Parameters																																																																																																																														}				}				?>			

相关资源