📄 update.inc.php
字号:
function posid($field, $value)
{
global $action;
$this->db->query("DELETE FROM `".DB_PRE."content_position` WHERE `contentid`='$this->contentid'");
if($value == '-99')
{
if($action == 'edit') $this->db->query("UPDATE ".DB_PRE."content SET posids=0 WHERE contentid='$this->contentid'");
return false;
}
if(is_array($value))
{
foreach($value as $posid)
{
$posid = intval($posid);
$this->db->query("INSERT INTO `".DB_PRE."content_position` (`contentid`,`posid`) VALUES('$this->contentid','$posid')");
}
}
return true;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -