當前位置: 首頁>>代碼示例>>PHP>>正文


PHP table_class::find_by_name方法代碼示例

本文整理匯總了PHP中table_class::find_by_name方法的典型用法代碼示例。如果您正苦於以下問題:PHP table_class::find_by_name方法的具體用法?PHP table_class::find_by_name怎麽用?PHP table_class::find_by_name使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在table_class的用法示例。


在下文中一共展示了table_class::find_by_name方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

<?php

include_once "../../frame.php";
use_jquery();
js_include_tag('jquery.colorbox-min');
$pos = new table_class('eb_page_pos');
$pos->find_by_name($_POST[pos][name]);
$pos->update_file_attributes('pos');
$pos->update_attributes($_POST['pos'], false);
$pos->save();
?>
<script>
	parent.$.fn.colorbox.close();
	parent.frames['admin_iframe'].location.reload();
</script>
開發者ID:justin1986,項目名稱:eachbb,代碼行數:15,代碼來源:edit.post.php

示例2: dirname

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv=Content-Type content="text/html; charset=utf-8">
	<meta http-equiv=Content-Language content=zh-cn>
	<title>福布斯中文網</title>
	<?php 
include_once dirname(__FILE__) . "/../../frame.php";
use_jquery_ui();
js_include_tag('jquery.colorbox-min', 'admin/position/edit');
css_include_tag('jquery_ui', 'admin');
$pos = new table_class('fb_page_pos');
$pos->find_by_name($_GET['pos_name']);
$fields['link'] = array("標題", "", "mouseover", "鏈接", "靜態鏈接", "", "", "過期時間", "", "", "說明");
$fields['rich_index_head'] = array("頭條標題", "描述", "mouseover", "鏈接", "靜態鏈接", "圖片", "", "", "", "", "說明");
$fields['link_withouttime'] = array("標題", "", "mouseover", "鏈接", "靜態鏈接", "", "", "", "", "", "說明");
$fields['link_img'] = array("標題", "", "mouseover", "鏈接", "靜態鏈接", "圖片", "", "過期時間", "", "", "說明");
$fields['link_img_withouttime'] = array("標題", "", "mouseover", "鏈接", "靜態鏈接", "圖片", "", "", "", "", "說明");
$fields['img_title'] = array("", "", "mouseover", "", "", "圖片", "", "", "", "", "");
$fields['base_img_withoutime'] = array("標題", "描述", "mouseover", "鏈接", "靜態鏈接", "圖片", "", "", "", "", "說明");
$fields['base'] = array("標題", "描述", "mouseover", "鏈接", "靜態鏈接", "", "", "過期時間", "", "", "說明");
$fields['base_ntime'] = array("標題", "描述", "mouseover", "鏈接", "靜態鏈接", "", "", "", "", "", "說明");
$fields['base_img'] = array("標題", "描述", "mouseover", "鏈接", "靜態鏈接", "圖片", "", "過期時間", "", "", "說明");
$fields['index_column'] = array("專欄名", "", "mouseover", "鏈接", "靜態鏈接", "圖片", "", "", "用戶名", "", "說明");
$fields['index_column2'] = array("專欄名", "", "", "", "", "圖片", "", "", "專欄鏈接", "", "說明");
$fields['index_event'] = array("標題", "", "地點", "鏈接", "", "圖片", "", "", "", "舉辦日期", "說明");
$fields['magazine'] = array("雜誌標題", "雜誌介紹", "mouseover", "鏈接", "", "雜誌圖片", "", "", "", "", "說明");
$fields['magazine_index'] = array("雜誌標題", "", "出版日期", "鏈接", "", "雜誌圖片", "", "過期時間", "雜誌name", "", "說明");
$fields['simple_magazine'] = array("雜誌標題", "", "mouseover", "鏈接", "", "雜誌圖片", "", "過期時間", "", "", "說明");
$fields['only_link'] = array("", "", "mouseover", "鏈接", "靜態鏈接", "", "", "", "", "", "說明");
$fields['only_title'] = array("標題", "", "mouserover", "鏈接", "靜態鏈接", "", "", "", "", "", "");
開發者ID:justin1986,項目名稱:forbes,代碼行數:31,代碼來源:edit.php


注:本文中的table_class::find_by_name方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。