當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。