当前位置: 首页>>代码示例>>PHP>>正文


PHP _adodb_getmenu函数代码示例

本文整理汇总了PHP中_adodb_getmenu函数的典型用法代码示例。如果您正苦于以下问题:PHP _adodb_getmenu函数的具体用法?PHP _adodb_getmenu怎么用?PHP _adodb_getmenu使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了_adodb_getmenu函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: GetMenu2

	/**
	 * Generate a SELECT tag string from a recordset, and return the string.
	 * If the recordset has 2 cols, we treat the 1st col as the containing 
	 * the text to display to the user, and 2nd col as the return value. Default
	 * strings are compared with the SECOND column.
	 *
	 */
	function GetMenu2($name,$defstr='',$blank1stItem=true,$multiple=false,$size=0, $selectAttr='')	
	{
		global $ADODB_INCLUDED_LIB;
		if (empty($ADODB_INCLUDED_LIB)) include_once(ADODB_DIR.'/adodb-lib.inc.php');
		return _adodb_getmenu($this,$name,$defstr,$blank1stItem,$multiple,
			$size, $selectAttr,false);
	}
开发者ID:songchin,项目名称:Cacti,代码行数:14,代码来源:adodb.inc.php

示例2: GetMenu

 /**
 * Generate a select tag string from a recordset, and return the string.
 * If the recordset has 2 cols, we treat the 1st col as the containing 
 * the text to display to the user, and 2nd col as the return value. Default
 * strings are compared with the FIRST column.
 *
 * @param name  		name of select tag
 * @param [defstr]		the value to hilite. Use an array for multiple hilites for listbox.
 * @param [blank1stItem]	true to leave the 1st item in list empty
 * @param [multiple]		true for listbox, false for popup
 * @param [size]		#rows to show for listbox. not used by popup
 * @param [selectAttr]		additional attributes to defined for select tag.
 *				useful for holding javascript onChange='...' handlers.
 & @param [compareFields0]	when we have 2 cols in recordset, we compare the defstr with 
 *				column 0 (1st col) if this is true. This is not documented.
 *
 * @return HTML
 *
 * changes by glen.davies@cce.ac.nz to support multiple hilited items
 */
 function GetMenu($name, $defstr = '', $blank1stItem = true, $multiple = false, $size = 0, $selectAttr = '', $compareFields0 = true)
 {
     global $ADODB_INCLUDED_LIB;
     if (empty($ADODB_INCLUDED_LIB)) {
         include ADODB_DIR . '/adodb-lib.inc.php';
     }
     return _adodb_getmenu($this, $name, $defstr, $blank1stItem, $multiple, $size, $selectAttr, $compareFields0);
 }
开发者ID:dasatti,项目名称:dashboard,代码行数:28,代码来源:adodb.inc.php

示例3: GetMenu2

 /**
  * Generate a SELECT tag string from a recordset, and return the string.
  * If the recordset has 2 cols, we treat the 1st col as the containing 
  * the text to display to the user, and 2nd col as the return value. Default
  * strings are compared with the SECOND column.
  *
  */
 function GetMenu2($name, $defstr = '', $blank1stItem = true, $multiple = false, $size = 0, $selectAttr = '')
 {
     include_once ADODB_DIR . '/adodb-lib.inc.php';
     return _adodb_getmenu($this, $name, $defstr, $blank1stItem, $multiple, $size, $selectAttr, false);
 }
开发者ID:BackupTheBerlios,项目名称:osiswebprinter,代码行数:12,代码来源:adodb-recordset.inc.php


注:本文中的_adodb_getmenu函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。