form.php 2.0 KB

12345678910111213141516171819202122
  1. <?php
  2. $config->entry->form = new stdClass();
  3. $config->entry->form->create = array();
  4. $config->entry->form->edit = array();
  5. $config->entry->form->create['name'] = array('type' => 'string', 'required' => true, 'filter' => 'trim');
  6. $config->entry->form->create['code'] = array('type' => 'string', 'required' => true, 'filter' => 'trim');
  7. $config->entry->form->create['account'] = array('type' => 'string', 'required' => true, 'filter' => 'trim', 'default' => '');
  8. $config->entry->form->create['ip'] = array('type' => 'string', 'required' => false, 'filter' => 'trim');
  9. $config->entry->form->create['key'] = array('type' => 'string', 'required' => true, 'filter' => 'trim', 'default' => '');
  10. $config->entry->form->create['allIP'] = array('type' => 'string', 'required' => true, 'filter' => 'trim', 'default' => 'off');
  11. $config->entry->form->create['freePasswd'] = array('type' => 'int', 'required' => false);
  12. $config->entry->form->create['desc'] = array('type' => 'string', 'required' => false, 'default' => '', 'control' => 'editor');
  13. $config->entry->form->edit['name'] = array('type' => 'string', 'required' => true, 'filter' => 'trim');
  14. $config->entry->form->edit['code'] = array('type' => 'string', 'required' => true, 'filter' => 'trim');
  15. $config->entry->form->edit['account'] = array('type' => 'string', 'required' => true, 'filter' => 'trim', 'default' => '');
  16. $config->entry->form->edit['ip'] = array('type' => 'string', 'required' => false, 'filter' => 'trim');
  17. $config->entry->form->edit['key'] = array('type' => 'string', 'required' => true, 'filter' => 'trim', 'default' => '');
  18. $config->entry->form->edit['allIP'] = array('type' => 'string', 'required' => true, 'filter' => 'trim', 'default' => 'off');
  19. $config->entry->form->edit['freePasswd'] = array('type' => 'int', 'required' => false);
  20. $config->entry->form->edit['desc'] = array('type' => 'string', 'required' => false, 'default' => '', 'control' => 'editor');