本文整理汇总了PHP中grocery_CRUD::unset_texteditor方法的典型用法代码示例。如果您正苦于以下问题:PHP grocery_CRUD::unset_texteditor方法的具体用法?PHP grocery_CRUD::unset_texteditor怎么用?PHP grocery_CRUD::unset_texteditor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类grocery_CRUD
的用法示例。
在下文中一共展示了grocery_CRUD::unset_texteditor方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: clinics
public function clinics()
{
if ($this->session->userdata('is_admin_logged_in')) {
$crud = new grocery_CRUD();
$crud->set_table('clinics');
//$crud->columns('name','address','lat','lng','phone', 'description', 'review', 'birthRateLess35', 'birthRate35To40', 'birthRateMore40', 'services');
$crud->set_subject('clinics');
$crud->unset_texteditor('description', 'full_text');
$crud->unset_texteditor('speciality', 'full_text');
$output = $crud->render();
$this->_example_output($output);
} else {
redirect('Admin/admin_restricted');
}
}
示例2: get_crud
private function get_crud()
{
$this->data['message'] = $this->session->flashdata('message');
$crud = new grocery_CRUD();
$crud->set_theme(GROCERY_CRUD_THEME);
$crud->set_table('usuario');
$crud->set_subject('Usuário');
$crud->unset_columns('id', 'senha', 'senha_anterior1', 'senha_anterior2', 'senha_anterior3', 'ultima_troca', 'cadastro');
$crud->fields('id', 'nome', 'login', 'email', 'grupos', 'tipo_usuario_id', 'situacao_usuario_id', 'senha', 'senha_anterior1', 'senha_anterior2', 'senha_anterior3');
$crud->unset_texteditor('id', 'senha', 'senha_anterior1', 'senha_anterior2', 'senha_anterior3', 'ultima_troca', 'cadastro');
$crud->change_field_type('id', 'invisible');
$crud->change_field_type('senha', 'invisible');
$crud->change_field_type('senha_anterior1', 'invisible');
$crud->change_field_type('senha_anterior2', 'invisible');
$crud->change_field_type('senha_anterior3', 'invisible');
$crud->set_relation('situacao_usuario_id', 'situacao_usuario', 'descricao');
$crud->display_as('situacao_usuario_id', 'Situacao');
$crud->set_relation('tipo_usuario_id', 'tipo_usuario', 'descricao');
$crud->display_as('tipo_usuario_id', 'Tipo de Usuário');
$crud->set_relation_n_n('grupos', 'grupo_usuario_x_usuario', 'grupo_usuario', 'usuario_id', 'grupo_usuario_id', 'descricao');
/* regras e campos obrigatórios */
$crud->required_fields('login', 'grupos', 'tipo_usuario_id', 'situacao_usuario_id');
$crud->set_rules('login', 'Login', 'required|min_length[2]');
$crud->set_rules('grupos', 'Grupos', 'required');
$crud->set_rules('tipo_usuario_id', 'Tipo de Usuário', 'required');
$crud->set_rules('situacao_usuario_id', 'Situação do Usuário', 'required');
$crud->callback_before_insert(array($this, 'checking_new_user'));
return $crud->render();
}
示例3: questions
public function questions()
{
$this->data['page_title'] = 'Questions';
$crud = new grocery_CRUD();
$crud->set_table('questions');
$crud->set_subject('Questions');
$crud->fields('question_name', 'metadescription', 'created_at', 'updated_at', 'scale_id', 'group', 'questionnaire_id');
$crud->set_relation('scale_id', 'scales', 'name');
$crud->set_relation('questionnaire_id', 'questionnaireone', 'questionnaire_name');
//for foreign key
$crud->unset_edit()->unset_delete()->unset_read();
$crud->field_type('created_at', 'hidden');
$crud->field_type('updated_at', 'hidden');
$crud->unset_texteditor('question_name', 'full_text');
$crud->unset_texteditor('metadescription', 'full_text');
$this->data['output'] = $crud->render();
$this->render('admin/crud_view');
}
示例4: index
public function index()
{
$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_table('categoria')->set_subject('categoria')->columns('nombre');
$crud->required_fields('nombre');
$crud->unique_fields('nombre');
$crud->unset_texteditor('descripcion', 'full_text');
$crud->unset_fields('fecharegistro');
$crud->unset_print();
$output = $crud->render();
$this->_example_output($output);
}
示例5: index
public function index()
{
$crud = new grocery_CRUD();
$crud->set_table('pengumuman');
$crud->columns('isi', 'created_at', 'updated_at', 'status');
$crud->unset_export();
$crud->unset_print();
$crud->unset_texteditor('isi');
$crud->change_field_type('created_at', 'invisible');
$crud->change_field_type('updated_at', 'invisible');
$crud->callback_before_insert(array($this, "_timestamp"));
$output = $crud->render();
$output->title = 'Kelola Pengumuman';
$this->template->load('template/template_main', 'admin/pengumuman', $output);
}
示例6: index
public function index()
{
$this->authlibrary->hasPrivilege("announcement");
$crud = new grocery_CRUD();
$crud->set_table('announcement');
$crud->columns('isi', 'created_at', 'updated_at', 'status');
$crud->unset_export();
$crud->unset_print();
$crud->unset_texteditor('isi');
$crud->change_field_type('created_at', 'invisible');
$crud->change_field_type('updated_at', 'invisible');
$crud->callback_before_insert(array($this, "_timestamp"));
$output = $crud->render();
$output->menu = "announcement";
$output->title = 'Announcement';
$this->template->load('backend/template', 'backend/grocery_crud_view', $output);
}
示例7: index
public function index()
{
$crud = new grocery_CRUD();
$crud->set_table('web_identitas');
$crud->columns('nama_website', 'meta_deskripsi', 'meta_keyword', 'favicon', 'theme', 'logo');
$crud->required_fields('nama_website', 'meta_deskripsi', 'meta_keyword');
$crud->set_subject('Identitas Website');
$crud->fields('nama_website', 'meta_deskripsi', 'meta_keyword', 'copyright', 'favicon', 'theme', 'logo', 'google_analytics', 'profil');
$crud->set_field_upload('favicon', 'assets/uploads/identitas');
$crud->set_field_upload('logo', 'assets/uploads/identitas');
$crud->unset_texteditor('google_analytics', 'full_text');
$crud->unset_add();
$crud->unset_delete();
$output = $crud->render();
$data['subject'] = 'Identitas Website';
$data['content'] = $this->load->view('crud.php', $output, true);
$this->load->view('base_theme', $data);
}
示例8: index
public function index()
{
$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_table('pedidos')->set_subject('Pedidos')->columns('fecharegistro', 'idcliente', 'formadepago', 'montototal');
//$crud -> required_fields('titulo', 'fechainicio', 'habilitado');
//$crud -> unique_fields('nombre','categoria');
//$crud -> set_field_upload('imagen', 'assets/uploads/files');
$crud->unset_texteditor('descripcion', 'full_text');
$crud->set_relation_n_n('productos', 'items', 'producto', 'idpedido', 'idproducto', 'nombre', 'priority');
$crud->display_as('montototal', 'Monto');
$crud->display_as('nombrecliente', 'Nombre cliente');
$crud->display_as('apellido', 'Apellido cliente');
$crud->display_as('formadepago', 'Forma de pago');
$crud->display_as('idcliente', 'Cliente');
$crud->unset_fields('fecharegistro');
$crud->unset_print();
$output = $crud->render();
$this->_example_output($output);
}
示例9: cadastro
public function cadastro()
{
try {
$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_table('pessoa');
$crud->set_subject('Cadastro de Cidadão');
$crud->required_fields('nome');
$crud->columns('foto_frente', 'nome', 'artigos', 'id', 'naturalidade', 'telefone_1', 'obs');
$crud->set_relation_n_n('artigos', 'artigo_has_pessoa', 'artigo', 'pessoa_id', 'artigo_id', 'artigo_penal');
$crud->set_field_upload('foto_frente', 'assets/uploads/files');
$crud->set_field_upload('foto_lado_esquerdo', 'assets/uploads/files');
$crud->set_field_upload('foto_lado_direito', 'assets/uploads/files');
$crud->set_field_upload('foto_costas', 'assets/uploads/files');
$crud->set_relation('cor_pele_id', 'cor_pele', '{nome_cor}');
$crud->unset_texteditor('tatuagens');
$crud->unset_edit_fields('cadastrado_em');
$crud->add_action('Fotos Extras', '', '', 'ui-icon-image', array($this, 'pessoa_fotos_call'));
$output = $crud->render();
$this->_example_output($output);
} catch (Exception $e) {
show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
}
}
示例10: get_crud
private function get_crud()
{
$this->data['message'] = $this->session->flashdata('message');
$crud = new grocery_CRUD();
$crud->set_theme(GROCERY_CRUD_THEME);
$crud->set_table('fornecedor');
$crud->set_subject('Fornecedor');
$crud->unset_columns('id');
$crud->fields('id', 'codigo', 'nome', 'cnpj', 'inscricao_estadual', 'tipo_fornecedor_id');
$crud->unset_texteditor('id');
$crud->change_field_type('id', 'invisible');
/* relacionamentos */
$crud->set_relation('tipo_fornecedor_id', 'tipo_fornecedor', 'descricao');
/* descrição dos campos de relacionamento */
$crud->display_as('tipo_fornecedor_id', 'Tipo de Fornecedor');
/* regras e campos obrigatórios */
$crud->required_fields('nome');
$crud->required_fields('codigo');
$crud->required_fields('tipo_fornecedor_id');
$crud->set_rules('nome', 'Nome', 'required|min_length[3]');
$crud->set_rules('codigo', 'Código', 'required|min_length[3]');
$crud->set_rules('tipo_fornecedor_id', 'Tipo de Fornecedor', 'required');
return $crud->render();
}
示例11: config
public function config()
{
$crud = new grocery_CRUD();
$crud->set_table('cms_config');
$crud->set_subject('Configuration');
$crud->columns('config_name', 'value', 'description');
$crud->edit_fields('config_name', 'value', 'description');
$crud->add_fields('config_name', 'value', 'description');
$crud->display_as('config_name', 'Configuration Key')->display_as('value', 'Configuration Value')->display_as('description', 'Description');
$crud->unset_texteditor('description');
$crud->unset_texteditor('value');
if ($crud->getState() == 'edit') {
$crud->callback_edit_field('config_name', array($this, 'read_only_config_name'));
$crud->callback_edit_field('description', array($this, 'read_only_config_description'));
}
$output = $crud->render();
$this->view('main/config', $output, 'main_config_management');
}
示例12: category
public function category()
{
$crud = new grocery_CRUD();
$crud->set_table('blog_category');
$crud->columns('category_name', 'description');
$crud->edit_fields('category_name', 'description');
$crud->add_fields('category_name', 'description');
$crud->display_as('category_name', 'Category')->display_as('description', 'Description');
$crud->set_subject('Category');
$crud->set_relation_n_n('Articles', 'blog_category_article', 'blog_article', 'category_id', 'article_id', 'article_title');
$crud->unset_texteditor('description');
$output = $crud->render();
$this->view('grocery_CRUD', $output, 'blog_category');
}
示例13: question
function question($mode = 0, $expert = 0)
{
$crud = new grocery_CRUD();
$crud->set_table('question');
$crud->columns('qid', 'question_text', 'review_comments', 'motive', 'question_status', 'created_by', 'time');
$crud->set_relation('created_by', 'users', '{id}-{username}', null, 'id asc');
$crud->set_relation('tid', 'topics', '{tid}-{topic_name}');
//$crud->set_relation('type','type','marks');
$crud->set_relation('difficulty', 'difficulty', '{difficulty_id}- {difficulty_name}');
$crud->set_relation('nature', 'nature', '{nature_id}-{nature_name}');
$crud->set_relation('approachability', 'approachability', '{approachability_id}-{approachability_name}');
$crud->set_relation('created_by', 'users', '{id}-{username}');
$crud->unset_texteditor('question_text');
if ($expert != 0) {
$crud->where('question.created_by', $expert);
}
$crud->unset_print();
$crud->unset_export();
//$crud->unset_add();
// $crud->unset_edit();
$crud->unset_delete();
$output = $crud->render();
$this->_example_output($output);
}
示例14: array
function branch_management()
{
$merchant_id = $this->ion_auth->user()->row()->id;
//for supervisor view the branch of merchant
if (check_correct_login_type($this->group_id_supervisor)) {
$merchant_id = $this->ion_auth->user()->row()->su_merchant_id;
}
$this->load->library('grocery_CRUD');
try {
$crud = new grocery_CRUD();
$this->load->library('user_agent');
if ($this->agent->is_mobile() && $this->agent->is_tablet() === FALSE) {
$crud->set_theme('bootstrap');
$crud->unset_search();
} else {
$crud->set_theme('datatables');
//datatables, flexigrid, bootstrap
//$crud->add_action('Add Supervisor', '', 'merchant/supervisor/add','ui-icon-pencil'); //No use this because cannot open new tab
}
//($this->agent->is_tablet() === TRUE) ? $is_tablet = "Yes" : $is_tablet = "No"; echo "Using tablet: $is_tablet";
$crud->set_table('merchant_branch');
$crud->set_subject('Branch');
$crud->columns('name', 'address', 'phone', 'state_id', 'supervisor');
$crud->required_fields('name', 'address', 'state_id');
$crud->fields('name', 'address', 'phone', 'state_id', 'google_map_url');
$crud->display_as('state_id', 'State');
$crud->display_as('google_map_url', 'Google Map Coordinate');
$crud->unset_fields('merchant_id');
$crud->unset_texteditor('address', 'google_map_url');
$crud->field_type('state_id', 'dropdown', $this->ion_auth->get_static_option_list('state'));
$crud->callback_insert(array($this, 'branch_insert_callback'));
$crud->callback_add_field('phone', array($this, 'add_field_for_phone'));
$crud->callback_column('name', array($this, '_branch_map'));
$crud->callback_column('address', array($this, '_full_text'));
$crud->callback_column('supervisor', array($this, '_branch_supervisor'));
$controller = 'merchant';
$function = 'profile';
$crud->set_lang_string('insert_success_message', 'Your data has been successfully stored into the database.
<script type="text/javascript">
var originallocation = window.location.pathname;
if(originallocation.indexOf("/branch/add") > -1)
{
window.location = "' . site_url($controller . '/' . $function) . '";
}
</script>
<div style="display:none">
');
$crud->set_lang_string('update_success_message', 'Your data has been successfully stored into the database.
<script type="text/javascript">
var originallocation = window.location.pathname;
if(originallocation.indexOf("/branch/edit") > -1)
{
window.location = "' . site_url($controller . '/' . $function) . '";
}
</script>
<div style="display:none">
');
$crud->set_lang_string('form_save_and_go_back', 'Save and View Branch');
$crud->set_lang_string('form_update_and_go_back', 'Update and View Branch');
$crud->unset_export();
$crud->unset_print();
$state = $crud->getState();
//Temporary use this to skip the bootstrap top right search not working bug after got $crud->where() function
// if ($state == 'ajax_list') {
// if (!empty($crud->getStateInfo())) {
// $state_info = $crud->getStateInfo();
// if (!empty($state_info->search->text)) {
//
// } else {
// $crud->where('merchant_id', $id);
// }
// }
// } else {
$crud->where('merchant_id', $merchant_id);
// }
if ($state == 'read') {
$crud->set_relation('state_id', 'static_option', '{option_text}');
}
$output = $crud->render();
return $output;
} catch (Exception $e) {
show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
}
}
示例15: gis_layer
public function gis_layer()
{
$crud = new grocery_CRUD();
$crud->unset_jquery();
$crud->set_table("gis_layer");
$crud->columns('map_id', 'layer_name', 'layer_desc', 'shown');
$crud->display_as('map_id', 'Map Name')->display_as('layer_name', 'Layer Name')->display_as('layer_desc', 'Description')->display_as('z_index', 'Z Index')->display_as('shown', 'Shown On Startup')->display_as('radius', 'Style\'s Radius')->display_as('fill_color', 'Style\'s Fill Color')->display_as('color', 'Style\'s Color')->display_as('weight', 'Style\'s Weight (Boldness)')->display_as('opacity', 'Style\'s Opacity')->display_as('fill_opacity', 'Style\'s Fill Opacity')->display_as('image_url', 'Style\'s Icon')->display_as('json_sql', 'Spatial SQL')->display_as('json_shape_column', 'Spatial Column')->display_as('json_popup_content', 'Popup Content')->display_as('json_label', 'Label')->display_as('use_json_url', 'Use GeoJSON url')->display_as('json_url', 'GeoJSON url')->display_as('search_url', 'Search url')->display_as('search_result_content', 'Search Result Content')->display_as('search_result_x_column', 'Search Longitude/x Column')->display_as('search_result_y_column', 'Search Latitude/y Column')->display_as('use_search_url', 'Use Search url')->display_as('searchable', 'Searchable')->display_as('search_sql', 'Search SQL');
$crud->set_relation('map_id', 'gis_map', 'map_name');
$crud->change_field_type('use_json_url', 'true_false');
$crud->change_field_type('use_search_url', 'true_false');
$crud->change_field_type('shown', 'true_false');
$crud->change_field_type('searchable', 'true_false');
$crud->unset_texteditor('json_sql');
$crud->unset_texteditor('json_popup_content');
$crud->unset_texteditor('json_label');
$crud->unset_texteditor('search_sql');
$crud->unset_texteditor('search_result_content');
$output = $crud->render();
$this->view("grocery_CRUD", $output, "gis_layer");
}