- 1、本文档共15页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
phpcmsv9万能字段(国外英文资料)
phpcmsv9万能字段(国外英文资料)
The PHPCMS universal field USES the relevant vendors
Add universal fields in the background
The relevant parameter form fills in the content:
input type = hidden name = info [xgshangjia] id = relationb value = {FIELD_VALUE} style = 50
ul class = list - dot id = relationb_text / ul
The div
input type = button value = add related onclick = omnipotent ( selectid , ? M = contentc = contenta = public_shangjialist modelid = {modelid} , added related businesses, 1) class = button style = width: 66 px;
Span class = edit_content
input type = button value = to show that there are already onclick = show_relationb ({ID}) class = button style = width: 66px .
/ span
/ div
Add the following functions in the PHPCMS/modules/content/content.php file
/ * *
* related business choices
* /
Public function public_shangjialist () {
Pc_base: : load_sys_class ( format , , 0);
$show_header = ;
$model_cache = getcache ( model , Commons);
If (! Isset ($_GET [ modelid ]) {...
Showmessage ( please_select_modelid );
} else {
$page = intval ($_GET [ page ]);
$this- db - set_tablename ( member_food );
$tablename = $this- db - table_name;
$type = isset ($_GET [ field ])? $_GET [ field ] :
$sql_count = SELECT COUNT (*) AS num FROM v9_member_food;
$this- db - query ($sql_count);
$total = $this- db - fetch_array ();
$total = $total [0] [ num ];
$where = ;
If ($type) {
$where. = ` type ` = $type AND;
}
Where. = 0 = 0;
Memberlist = $this- db - listinfo ($where, userid desc, $_GET [ page ], 12)
/ / query username
$pages = $this- db - pages;
/ / business classification
SQL = SELECT * FROM v9_linkage where keyid = 3438;
$this- db - query ($SQL);
$listtype = $this- db - fetch_array ();
Include $this- admin_tpl ( shangjialist );
}
}
Public function public_getjson_idsb () {
$modelid = intval ($_GET [ modelid ]);
$id = intval ($_GET [ id ]);
$this- db - set_model ($modelid);
$tablename = $this- db - table_name;
$this- db - table_name = $tablename.
$r = $this- d
文档评论(0)