本文整理汇总了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>
示例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", "链接", "静态链接", "", "", "", "", "", "");