- function fields() {
- return array(
- 'id' => array('name' => lang('blockclass', 'blockclass_field_id'), 'formtype' => 'text', 'datatype' => 'int'),
- 'url' => array('name' => lang('blockclass', 'blockclass_thread_field_url'), 'formtype' => 'text', 'datatype' => 'string'),
- 'title' => array('name' => lang('blockclass', 'blockclass_thread_field_title'), 'formtype' => 'title', 'datatype' => 'title'),
-
- 'ttt' => array('name' => lang('blockclass', 'blockclass_thread_field_title'), 'formtype' => 'title', 'datatype' => 'title'),//我自己添加的
复制代码- while($data = DB::fetch($query)) {
- $_G['block_thread'][$data['tid']] = $data;
- if($style['getsummary']) {
- $threadtids[$data['posttableid']][] = $data['tid'];
- }
- $listtids[$data['tid']] = $data['tid'];
- $list[$data['tid']] = array(
- 'id' => $data['tid'],
- 'idtype' => 'tid',
- 'title' => cutstr(str_replace('\\\'', ''', addslashes($data['subject'])), $titlelength, ''),
-
- 'ttt' => cutstr(str_replace('\\\'', ''', addslashes($data['subject'])), $titlelength, ''),//我自己添加的
复制代码 效果如下:
刚添加的时候是这样,有数据的
点击diy保存之后就没有了 如下图
|