zblog
当前位置:首页 > 商学院 > zblog > 正文内容

zblog

配置页的参数保存

豫唐网络2022-10-03 14:361678

设置效验php代码

$act=GetVars("act","GET");
if($act==="save"){
CheckIsRefererValid();
foreach($_POST['ytecn']as$key=>$value){
$zbp->Config("ytecn_wzmh")->$key=$value;
}
$zbp->SaveConfig("ytecn_wzmh");
$zbp->SetHint('good');
Redirect('./main.php');
}

html代码

<formmethod="post"action="main.php?act=save">
<inputtype="hidden"name="csrfToken"value="<?phpecho$zbp->GetCSRFToken();?>">
<tableborder="1"class="tableFulltableBorder">
<tr>
<thclass="td30">
<palign='left'><b>标题</b><br><spanclass='note'></span></p>
</th>
<th>说明</th>
</tr>
<tr>
<tdclass="td30">
<palign='left'><b>开关按钮</b></p>
</td>
<td><inputtype="text"id="seoon"name="ytecn[seoon]"class="checkbox"value="<?phpecho(int)($zbp->Config('ytecn_ai_xzjt')->seoon);?>"></td>
</tr>
<tr>
<tdclass="td30">
<palign='left'><b>单选按钮</b></p>
</td>
<td>
<?php
$array=array();
$array['0']="最老的文章";
$array['1']="最新的文章";
echozbpform::radio('ytecn[onorder]',$array,$zbp->Config('ytecn_ai_xzjt')->onorder);?>
</td>
</tr>
<tr>
<tdclass="td30">
<palign='left'><b>首页关键词</b></p>
</td>
<td><inputtype="text"name="ytecn[seokey]"value="<?phpechohtmlspecialchars($zbp->Config('ytecn_ai_xzjt')->seokey);?>"/></td>
</tr>
<tr>
<tdclass="td30">
<palign='left'><b>首页描述</b></p>
</td>
<td><textareatype="text"name="ytecn[seodes]"><?phpechohtmlspecialchars($zbp->Config('ytecn_ai_xzjt')->seodes);?></textarea>
</td>
</td>
</tr>
<tr>
<tdclass="td30"></td>
<td>
<inputname=""type="Submit"class="button"value="保存"/>
</td>
</tr>
</table>
</form>


扫描二维码推送至手机访问。

版权声明:本文由汤阴县豫唐网络科技有限公司发布,如需转载请注明出处。

本文链接:https://www.ytecn.com/post/347.html

分享给朋友:

相关文章

zblogphp邮箱营销实用工具

zblogphp邮箱营销实用工具

邮件营销(Email Marketing)是在用户事先许可的前提下,通过电子邮件的方式向目标用户传递有价值信息的一种网络营销手段。Email营销有三个基本因素:用户许可、电子邮件传递信息、信息对用户有...

php中截取中文字符串

php中截取中文字符串

截取GB2312中文字符串functionmysubstr($str,$start,$len){ $tmpstr=""; $strlen=$start+$len; for($...

phpQuery获取HTML图片

phpQuery获取HTML图片

phpQuery获取HTML图片/** *获取html文本里的img *@paramstring$contenthtml内容 *@returnarray图片列表数组item格式<pre&g...

zblogphp文章页面编辑3号输出接口说明

zblogphp文章页面编辑3号输出接口说明

接口名称:Filter_Plugin_Edit_Response3接口描述:文章编辑页面3号输出接口,具体位置位于右侧底部。应用场景:可在文章(页面)编辑页增加自定义参数,如自定义表单字段等。调用方法...

zblogphp数据字典zblogphp数据库字典zblogphp数据表字段大全

zblogphp数据字典zblogphp数据库字典zblogphp数据表字段大全

zblogphp系统默认为8张表,分别为category(分类表)、comment(评论表)、config(系统和应用配置表)、member(用户表)、module(模块表)、post(文章表(含...

zblog商业授权

zblog商业授权

zblog的商用链接,已与2022年01月28从官网移除,git开源协议MIT。如你依然不放心,可以找豫唐购买授权服务。豫唐是zblog的指定授权商之一。Z-Blog 授权价格及服务支持版本授权许可:...