���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/alphpwcp/public_html/us/alphachat/lib/core/lhchat/searchattr/canned_search.php
���ѧ٧ѧ�
<?php $fieldsSearch = array(); $fieldsSearch['title'] = array ( 'type' => 'text', 'trans' => 'Title', 'required' => false, 'valid_if_filled' => false, 'filter_type' => 'like', 'filter_table_field' => 'title', 'validation_definition' => new ezcInputFormDefinitionElement ( ezcInputFormDefinitionElement::OPTIONAL, 'string' ) ); $fieldsSearch['message'] = array ( 'type' => 'text', 'trans' => 'Message', 'required' => false, 'valid_if_filled' => false, 'filter_type' => 'like', 'filter_table_field' => 'msg', 'validation_definition' => new ezcInputFormDefinitionElement ( ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw' ) ); $fieldsSearch['fmsg'] = array ( 'type' => 'text', 'trans' => 'Message', 'required' => false, 'valid_if_filled' => false, 'filter_type' => 'like', 'filter_table_field' => 'fallback_msg', 'validation_definition' => new ezcInputFormDefinitionElement ( ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw' ) ); $fieldsSearch['department_id'] = array ( 'type' => 'text', 'trans' => 'Department', 'required' => false, 'valid_if_filled' => false, 'filter_type' => 'none', 'filter_table_field' => 'department_id', 'validation_definition' => new ezcInputFormDefinitionElement( ezcInputFormDefinitionElement::OPTIONAL, 'int', array( 'min_range' => 1), FILTER_REQUIRE_ARRAY ) ); $fieldsSearch['user_id'] = array ( 'type' => 'text', 'trans' => 'User', 'required' => false, 'valid_if_filled' => false, 'filter_type' => 'filterin', 'filter_table_field' => 'user_id', 'validation_definition' => new ezcInputFormDefinitionElement( ezcInputFormDefinitionElement::OPTIONAL, 'int', array( 'min_range' => 1), FILTER_REQUIRE_ARRAY ) ); $fieldsSearch['subject_id'] = array ( 'type' => 'text', 'trans' => 'Department', 'required' => false, 'valid_if_filled' => false, 'filter_type' => 'none', 'filter_table_field' => 'subject_id', 'validation_definition' => new ezcInputFormDefinitionElement( ezcInputFormDefinitionElement::OPTIONAL, 'int', array( 'min_range' => 1), FILTER_REQUIRE_ARRAY ) ); $fieldsSearch['used_freq'] = array ( 'type' => 'text', 'trans' => 'Department', 'required' => false, 'valid_if_filled' => false, 'filter_type' => 'none', 'filter_table_field' => 'subject_id', 'validation_definition' => new ezcInputFormDefinitionElement( ezcInputFormDefinitionElement::OPTIONAL, 'int', array( 'min_range' => 0) ) ); $fieldsSearch['sortby'] = array ( 'type' => 'text', 'trans' => 'Sort by', 'required' => false, 'valid_if_filled' => false, 'filter_type' => false, 'filter_table_field' => 'user_id', 'validation_definition' => new ezcInputFormDefinitionElement( ezcInputFormDefinitionElement::OPTIONAL, 'string') ); $fieldSortAttr = array ( 'field' => 'sortby', 'default' => 'iddesc', 'serialised' => true, 'options' => array( 'iddesc' => array('sort_column' => '`lh_canned_msg`.`id` DESC'), 'idasc' => array('sort_column' => '`lh_canned_msg`.`id` ASC'), 'lastupdateasc' => array('sort_column' => '`updated_at` ASC'), 'lastupdatedesc' => array('sort_column' => '`updated_at` DESC'), ) ); return array( 'filterAttributes' => $fieldsSearch, 'sortAttributes' => $fieldSortAttr );
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�