<?php
class 表单名字 extends \Poscms\Home\Form {
public function __construct() {
parent::__construct();
}
public function index() {
if (IS_POST && \Poscms\Service::M()->table($this->form_model->prefix.'_'.$this->form['table'])->where('title', dr_safe_replace($_POST['data']['title']))->getRow()) {
$this->call_msg(fc_lang('标题title重复了,不能提交'));
}
$this->_post();
}
}