当前位置: 首页>>代码示例>>PHP>>正文


PHP Location::getSearchOptionsToAdd方法代码示例

本文整理汇总了PHP中Location::getSearchOptionsToAdd方法的典型用法代码示例。如果您正苦于以下问题:PHP Location::getSearchOptionsToAdd方法的具体用法?PHP Location::getSearchOptionsToAdd怎么用?PHP Location::getSearchOptionsToAdd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Location的用法示例。


在下文中一共展示了Location::getSearchOptionsToAdd方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getSearchOptions

 /**
  * Get search function for the class
  *
  * @return array of search option
  **/
 function getSearchOptions()
 {
     $tab = parent::getSearchOptions();
     $tab += Location::getSearchOptionsToAdd();
     $tab[3]['datatype'] = 'itemlink';
     return $tab;
 }
开发者ID:jose-martins,项目名称:glpi,代码行数:12,代码来源:netpoint.class.php

示例2: getSearchOptions

 /**
  * Get search function for the class
  *
  * @return array of search option
  */
 function getSearchOptions()
 {
     global $LANG;
     $tab = parent::getSearchOptions();
     $tab += Location::getSearchOptionsToAdd();
     $tab[3]['datatype'] = 'itemlink';
     $tab[3]['itemlink_type'] = 'Location';
     return $tab;
 }
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:14,代码来源:netpoint.class.php

示例3: getSearchOptions

 function getSearchOptions()
 {
     $tab = array();
     $tab['common'] = __('Characteristics');
     $tab[1]['table'] = $this->getTable();
     $tab[1]['field'] = 'name';
     $tab[1]['name'] = __('Name');
     $tab[1]['datatype'] = 'itemlink';
     $tab[1]['massiveaction'] = false;
     $tab[2]['table'] = $this->getTable();
     $tab[2]['field'] = 'id';
     $tab[2]['name'] = __('ID');
     $tab[2]['datatype'] = 'number';
     $tab[2]['massiveaction'] = false;
     $tab[34]['table'] = $this->getTable();
     $tab[34]['field'] = 'ref';
     $tab[34]['name'] = __('Reference');
     $tab[34]['datatype'] = 'string';
     $tab[4]['table'] = 'glpi_consumableitemtypes';
     $tab[4]['field'] = 'name';
     $tab[4]['name'] = __('Type');
     $tab[4]['datatype'] = 'dropdown';
     $tab[23]['table'] = 'glpi_manufacturers';
     $tab[23]['field'] = 'name';
     $tab[23]['name'] = __('Manufacturer');
     $tab[23]['datatype'] = 'dropdown';
     $tab += Location::getSearchOptionsToAdd();
     $tab[24]['table'] = 'glpi_users';
     $tab[24]['field'] = 'name';
     $tab[24]['linkfield'] = 'users_id_tech';
     $tab[24]['name'] = __('Technician in charge of the hardware');
     $tab[24]['datatype'] = 'dropdown';
     $tab[24]['right'] = 'own_ticket';
     $tab[49]['table'] = 'glpi_groups';
     $tab[49]['field'] = 'completename';
     $tab[49]['linkfield'] = 'groups_id_tech';
     $tab[49]['name'] = __('Group in charge of the hardware');
     $tab[49]['condition'] = '`is_assign`';
     $tab[49]['datatype'] = 'dropdown';
     $tab[8]['table'] = $this->getTable();
     $tab[8]['field'] = 'alarm_threshold';
     $tab[8]['name'] = __('Alert threshold');
     $tab[8]['datatype'] = 'number';
     $tab[8]['toadd'] = array('-1' => __('Never'));
     $tab[16]['table'] = $this->getTable();
     $tab[16]['field'] = 'comment';
     $tab[16]['name'] = __('Comments');
     $tab[16]['datatype'] = 'text';
     $tab[90]['table'] = $this->getTable();
     $tab[90]['field'] = 'notepad';
     $tab[90]['name'] = __('Notes');
     $tab[90]['massiveaction'] = false;
     $tab[90]['datatype'] = 'text';
     $tab[80]['table'] = 'glpi_entities';
     $tab[80]['field'] = 'completename';
     $tab[80]['name'] = __('Entity');
     $tab[80]['massiveaction'] = false;
     $tab[80]['datatype'] = 'dropdown';
     return $tab;
 }
开发者ID:geldarr,项目名称:hack-space,代码行数:60,代码来源:consumableitem.class.php

示例4: getSearchOptions

 function getSearchOptions()
 {
     global $LANG;
     $tab = array();
     $tab['common'] = $LANG['common'][32];
     $tab[1]['table'] = $this->getTable();
     $tab[1]['field'] = 'name';
     $tab[1]['name'] = $LANG['common'][16];
     $tab[1]['datatype'] = 'itemlink';
     $tab[1]['itemlink_type'] = $this->getType();
     $tab[1]['massiveaction'] = false;
     $tab[2]['table'] = $this->getTable();
     $tab[2]['field'] = 'id';
     $tab[2]['name'] = $LANG['common'][2];
     $tab[2]['massiveaction'] = false;
     $tab += Location::getSearchOptionsToAdd();
     $tab[4]['table'] = 'glpi_monitortypes';
     $tab[4]['field'] = 'name';
     $tab[4]['name'] = $LANG['common'][17];
     $tab[40]['table'] = 'glpi_monitormodels';
     $tab[40]['field'] = 'name';
     $tab[40]['name'] = $LANG['common'][22];
     $tab[31]['table'] = 'glpi_states';
     $tab[31]['field'] = 'name';
     $tab[31]['name'] = $LANG['state'][0];
     $tab[5]['table'] = $this->getTable();
     $tab[5]['field'] = 'serial';
     $tab[5]['name'] = $LANG['common'][19];
     $tab[5]['datatype'] = 'string';
     $tab[6]['table'] = $this->getTable();
     $tab[6]['field'] = 'otherserial';
     $tab[6]['name'] = $LANG['common'][20];
     $tab[6]['datatype'] = 'string';
     $tab[7]['table'] = $this->getTable();
     $tab[7]['field'] = 'contact';
     $tab[7]['name'] = $LANG['common'][18];
     $tab[7]['datatype'] = 'string';
     $tab[8]['table'] = $this->getTable();
     $tab[8]['field'] = 'contact_num';
     $tab[8]['name'] = $LANG['common'][21];
     $tab[8]['datatype'] = 'string';
     $tab[70]['table'] = 'glpi_users';
     $tab[70]['field'] = 'name';
     $tab[70]['name'] = $LANG['common'][34];
     $tab[71]['table'] = 'glpi_groups';
     $tab[71]['field'] = 'name';
     $tab[71]['name'] = $LANG['common'][35];
     $tab[19]['table'] = $this->getTable();
     $tab[19]['field'] = 'date_mod';
     $tab[19]['name'] = $LANG['common'][26];
     $tab[19]['datatype'] = 'datetime';
     $tab[19]['massiveaction'] = false;
     $tab[16]['table'] = $this->getTable();
     $tab[16]['field'] = 'comment';
     $tab[16]['name'] = $LANG['common'][25];
     $tab[16]['datatype'] = 'text';
     $tab[90]['table'] = $this->getTable();
     $tab[90]['field'] = 'notepad';
     $tab[90]['name'] = $LANG['title'][37];
     $tab[90]['massiveaction'] = false;
     $tab[11]['table'] = $this->getTable();
     $tab[11]['field'] = 'size';
     $tab[11]['name'] = $LANG['monitors'][21];
     $tab[11]['datatype'] = 'number';
     $tab[41]['table'] = $this->getTable();
     $tab[41]['field'] = 'have_micro';
     $tab[41]['name'] = $LANG['monitors'][14];
     $tab[41]['datatype'] = 'bool';
     $tab[42]['table'] = $this->getTable();
     $tab[42]['field'] = 'have_speaker';
     $tab[42]['name'] = $LANG['monitors'][15];
     $tab[42]['datatype'] = 'bool';
     $tab[43]['table'] = $this->getTable();
     $tab[43]['field'] = 'have_subd';
     $tab[43]['name'] = $LANG['monitors'][19];
     $tab[43]['datatype'] = 'bool';
     $tab[44]['table'] = $this->getTable();
     $tab[44]['field'] = 'have_bnc';
     $tab[44]['name'] = $LANG['monitors'][20];
     $tab[44]['datatype'] = 'bool';
     $tab[45]['table'] = $this->getTable();
     $tab[45]['field'] = 'have_dvi';
     $tab[45]['name'] = $LANG['monitors'][32];
     $tab[45]['datatype'] = 'bool';
     $tab[46]['table'] = $this->getTable();
     $tab[46]['field'] = 'have_pivot';
     $tab[46]['name'] = $LANG['monitors'][33];
     $tab[46]['datatype'] = 'bool';
     $tab[47]['table'] = $this->getTable();
     $tab[47]['field'] = 'have_hdmi';
     $tab[47]['name'] = $LANG['monitors'][34];
     $tab[47]['datatype'] = 'bool';
     $tab[48]['table'] = $this->getTable();
     $tab[48]['field'] = 'have_displayport';
     $tab[48]['name'] = $LANG['monitors'][31];
     $tab[48]['datatype'] = 'bool';
     $tab[23]['table'] = 'glpi_manufacturers';
     $tab[23]['field'] = 'name';
     $tab[23]['name'] = $LANG['common'][5];
     $tab[24]['table'] = 'glpi_users';
//.........这里部分代码省略.........
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:101,代码来源:monitor.class.php

示例5: getSearchOptions

 function getSearchOptions()
 {
     $tab = array();
     $tab['common'] = __('Characteristics');
     $tab[1]['table'] = $this->getTable();
     $tab[1]['field'] = 'name';
     $tab[1]['name'] = __('Name');
     $tab[1]['datatype'] = 'itemlink';
     $tab[1]['massiveaction'] = false;
     $tab[2]['table'] = $this->getTable();
     $tab[2]['field'] = 'id';
     $tab[2]['name'] = __('ID');
     $tab[2]['datatype'] = 'number';
     $tab[2]['massiveaction'] = false;
     $tab[34]['table'] = $this->getTable();
     $tab[34]['field'] = 'ref';
     $tab[34]['name'] = __('Reference');
     $tab[34]['datatype'] = 'string';
     $tab[4]['table'] = 'glpi_consumableitemtypes';
     $tab[4]['field'] = 'name';
     $tab[4]['name'] = __('Type');
     $tab[4]['datatype'] = 'dropdown';
     $tab[23]['table'] = 'glpi_manufacturers';
     $tab[23]['field'] = 'name';
     $tab[23]['name'] = __('Manufacturer');
     $tab[23]['datatype'] = 'dropdown';
     $tab[9]['table'] = 'glpi_consumableitems';
     $tab[9]['field'] = '_virtual';
     $tab[9]['linkfield'] = '_virtual';
     $tab[9]['name'] = _n('Consumable', 'Consumables', Session::getPluralNumber());
     $tab[9]['datatype'] = 'specific';
     $tab[9]['massiveaction'] = false;
     $tab[9]['nosearch'] = true;
     $tab[9]['nosort'] = true;
     $tab[9]['additionalfields'] = array('alarm_threshold');
     $tab[17]['table'] = 'glpi_consumables';
     $tab[17]['field'] = 'id';
     $tab[17]['name'] = __('Number of used consumables');
     $tab[17]['datatype'] = 'count';
     $tab[17]['forcegroupby'] = true;
     $tab[17]['usehaving'] = true;
     $tab[17]['massiveaction'] = false;
     $tab[17]['joinparams'] = array('jointype' => 'child', 'condition' => "AND NEWTABLE.`date_out` IS NOT NULL");
     $tab[19]['table'] = 'glpi_consumables';
     $tab[19]['field'] = 'id';
     $tab[19]['name'] = __('Number of new consumables');
     $tab[19]['datatype'] = 'count';
     $tab[19]['forcegroupby'] = true;
     $tab[19]['usehaving'] = true;
     $tab[19]['massiveaction'] = false;
     $tab[19]['joinparams'] = array('jointype' => 'child', 'condition' => "AND NEWTABLE.`date_out` IS NULL");
     $tab += Location::getSearchOptionsToAdd();
     $tab[24]['table'] = 'glpi_users';
     $tab[24]['field'] = 'name';
     $tab[24]['linkfield'] = 'users_id_tech';
     $tab[24]['name'] = __('Technician in charge of the hardware');
     $tab[24]['datatype'] = 'dropdown';
     $tab[24]['right'] = 'own_ticket';
     $tab[49]['table'] = 'glpi_groups';
     $tab[49]['field'] = 'completename';
     $tab[49]['linkfield'] = 'groups_id_tech';
     $tab[49]['name'] = __('Group in charge of the hardware');
     $tab[49]['condition'] = '`is_assign`';
     $tab[49]['datatype'] = 'dropdown';
     $tab[8]['table'] = $this->getTable();
     $tab[8]['field'] = 'alarm_threshold';
     $tab[8]['name'] = __('Alert threshold');
     $tab[8]['datatype'] = 'number';
     $tab[8]['toadd'] = array('-1' => __('Never'));
     $tab[16]['table'] = $this->getTable();
     $tab[16]['field'] = 'comment';
     $tab[16]['name'] = __('Comments');
     $tab[16]['datatype'] = 'text';
     $tab[80]['table'] = 'glpi_entities';
     $tab[80]['field'] = 'completename';
     $tab[80]['name'] = __('Entity');
     $tab[80]['massiveaction'] = false;
     $tab[80]['datatype'] = 'dropdown';
     // add objectlock search options
     $tab += ObjectLock::getSearchOptionsToAdd(get_class($this));
     $tab += Notepad::getSearchOptionsToAdd();
     return $tab;
 }
开发者ID:stweil,项目名称:glpi,代码行数:83,代码来源:consumableitem.class.php

示例6: getSearchOptions

 function getSearchOptions()
 {
     // Only use for History (not by search Engine)
     $tab = array();
     $tab['common'] = __('Characteristics');
     $tab[1]['table'] = $this->getTable();
     $tab[1]['field'] = 'name';
     $tab[1]['name'] = __('Name');
     $tab[1]['datatype'] = 'itemlink';
     $tab[1]['massiveaction'] = false;
     $tab[1]['forcegroupby'] = true;
     $tab[1]['massiveaction'] = false;
     $tab[2]['table'] = $this->getTable();
     $tab[2]['field'] = 'id';
     $tab[2]['name'] = __('ID');
     $tab[2]['massiveaction'] = false;
     $tab[2]['datatype'] = 'number';
     $tab[2]['forcegroupby'] = true;
     $tab[2]['massiveaction'] = false;
     $tab += Location::getSearchOptionsToAdd();
     $tab[3]['table'] = $this->getTable();
     $tab[3]['field'] = 'serial';
     $tab[3]['name'] = __('Serial number');
     $tab[3]['datatype'] = 'string';
     $tab[4]['table'] = $this->getTable();
     $tab[4]['field'] = 'number';
     $tab[4]['name'] = _x('quantity', 'Number');
     $tab[4]['datatype'] = 'number';
     $tab[4]['max'] = 100;
     $tab[4]['toadd'] = array(-1 => __('Unlimited'));
     $tab[5]['table'] = 'glpi_softwarelicensetypes';
     $tab[5]['field'] = 'name';
     $tab[5]['name'] = __('Type');
     $tab[5]['datatype'] = 'dropdown';
     $tab[6]['table'] = 'glpi_softwareversions';
     $tab[6]['field'] = 'name';
     $tab[6]['linkfield'] = 'softwareversions_id_buy';
     $tab[6]['name'] = __('Purchase version');
     $tab[6]['datatype'] = 'dropdown';
     $tab[6]['displaywith'] = array('states_id');
     $tab[7]['table'] = 'glpi_softwareversions';
     $tab[7]['field'] = 'name';
     $tab[7]['linkfield'] = 'softwareversions_id_use';
     $tab[7]['name'] = __('Version in use');
     $tab[7]['datatype'] = 'dropdown';
     $tab[7]['displaywith'] = array('states_id');
     $tab[8]['table'] = $this->getTable();
     $tab[8]['field'] = 'expire';
     $tab[8]['name'] = __('Expiration');
     $tab[8]['datatype'] = 'date';
     $tab[9]['table'] = $this->getTable();
     $tab[9]['field'] = 'is_valid';
     $tab[9]['name'] = __('Valid');
     $tab[9]['datatype'] = 'bool';
     $tab[10]['table'] = 'glpi_softwares';
     $tab[10]['field'] = 'name';
     $tab[10]['name'] = __('Software');
     $tab[10]['datatype'] = 'itemlink';
     $tab[16]['table'] = $this->getTable();
     $tab[16]['field'] = 'comment';
     $tab[16]['name'] = __('Comments');
     $tab[16]['datatype'] = 'text';
     $tab[24]['table'] = 'glpi_users';
     $tab[24]['field'] = 'name';
     $tab[24]['linkfield'] = 'users_id_tech';
     $tab[24]['name'] = __('Technician in charge of the hardware');
     $tab[24]['datatype'] = 'dropdown';
     $tab[24]['right'] = 'own_ticket';
     $tab[31]['table'] = 'glpi_states';
     $tab[31]['field'] = 'completename';
     $tab[31]['name'] = __('Status');
     $tab[31]['datatype'] = 'dropdown';
     $tab[31]['condition'] = "`is_visible_softwarelicense`";
     $tab[49]['table'] = 'glpi_groups';
     $tab[49]['field'] = 'completename';
     $tab[49]['linkfield'] = 'groups_id_tech';
     $tab[49]['name'] = __('Group in charge of the hardware');
     $tab[49]['condition'] = '`is_assign`';
     $tab[49]['datatype'] = 'dropdown';
     $tab[70]['table'] = 'glpi_users';
     $tab[70]['field'] = 'name';
     $tab[70]['name'] = __('User');
     $tab[70]['datatype'] = 'dropdown';
     $tab[70]['right'] = 'all';
     $tab[71]['table'] = 'glpi_groups';
     $tab[71]['field'] = 'completename';
     $tab[71]['name'] = __('Group');
     $tab[71]['condition'] = '`is_itemgroup`';
     $tab[71]['datatype'] = 'dropdown';
     $tab[80]['table'] = 'glpi_entities';
     $tab[80]['field'] = 'completename';
     $tab[80]['name'] = __('Entity');
     $tab[80]['datatype'] = 'dropdown';
     $tab[86]['table'] = $this->getTable();
     $tab[86]['field'] = 'is_recursive';
     $tab[86]['name'] = __('Child entities');
     $tab[86]['datatype'] = 'bool';
     $tab[162]['table'] = $this->getTable();
     $tab[162]['field'] = 'otherserial';
     $tab[162]['name'] = __('Inventory number');
//.........这里部分代码省略.........
开发者ID:glpi-project,项目名称:glpi,代码行数:101,代码来源:softwarelicense.class.php

示例7: getSearchOptions

 function getSearchOptions()
 {
     // forcegroup by on name set force group by for all items
     $tab = array();
     $tab['common'] = __('Characteristics');
     $tab[1]['table'] = $this->getTable();
     $tab[1]['field'] = 'name';
     $tab[1]['name'] = __('Login');
     $tab[1]['datatype'] = 'itemlink';
     $tab[1]['forcegroupby'] = true;
     $tab[1]['massiveaction'] = false;
     $tab[2]['table'] = $this->getTable();
     $tab[2]['field'] = 'id';
     $tab[2]['name'] = __('ID');
     $tab[2]['massiveaction'] = false;
     $tab[2]['datatype'] = 'number';
     $tab[34]['table'] = $this->getTable();
     $tab[34]['field'] = 'realname';
     $tab[34]['name'] = __('Surname');
     $tab[34]['datatype'] = 'string';
     $tab[9]['table'] = $this->getTable();
     $tab[9]['field'] = 'firstname';
     $tab[9]['name'] = __('First name');
     $tab[9]['datatype'] = 'string';
     $tab[5]['table'] = 'glpi_useremails';
     $tab[5]['field'] = 'email';
     $tab[5]['name'] = _n('Email', 'Emails', 2);
     $tab[5]['datatype'] = 'email';
     $tab[5]['joinparams'] = array('jointype' => 'child');
     $tab[5]['forcegroupby'] = true;
     $tab[5]['massiveaction'] = false;
     $tab += Location::getSearchOptionsToAdd();
     $tab[8]['table'] = $this->getTable();
     $tab[8]['field'] = 'is_active';
     $tab[8]['name'] = __('Active');
     $tab[8]['datatype'] = 'bool';
     $tab[6]['table'] = $this->getTable();
     $tab[6]['field'] = 'phone';
     $tab[6]['name'] = __('Phone');
     $tab[6]['datatype'] = 'string';
     $tab[10]['table'] = $this->getTable();
     $tab[10]['field'] = 'phone2';
     $tab[10]['name'] = __('Phone 2');
     $tab[10]['datatype'] = 'string';
     $tab[11]['table'] = $this->getTable();
     $tab[11]['field'] = 'mobile';
     $tab[11]['name'] = __('Mobile phone');
     $tab[11]['datatype'] = 'string';
     $tab[13]['table'] = 'glpi_groups';
     $tab[13]['field'] = 'completename';
     $tab[13]['name'] = _n('Group', 'Groups', 2);
     $tab[13]['forcegroupby'] = true;
     $tab[13]['datatype'] = 'itemlink';
     $tab[13]['massiveaction'] = false;
     $tab[13]['joinparams'] = array('beforejoin' => array('table' => 'glpi_groups_users', 'joinparams' => array('jointype' => 'child')));
     $tab[14]['table'] = $this->getTable();
     $tab[14]['field'] = 'last_login';
     $tab[14]['name'] = __('Last login');
     $tab[14]['datatype'] = 'datetime';
     $tab[14]['massiveaction'] = false;
     $tab[15]['table'] = 'glpi_users';
     $tab[15]['field'] = 'authtype';
     $tab[15]['name'] = __('Authentication');
     $tab[15]['massiveaction'] = false;
     $tab[15]['datatype'] = 'specific';
     $tab[15]['searchtype'] = 'equals';
     $tab[15]['additionalfields'] = array('auths_id');
     $tab[30]['table'] = 'glpi_authldaps';
     $tab[30]['field'] = 'name';
     $tab[30]['linkfield'] = 'auths_id';
     $tab[30]['name'] = __('LDAP directory for authentication');
     $tab[30]['massiveaction'] = false;
     $tab[30]['joinparams'] = array('condition' => "AND REFTABLE.`authtype` = " . Auth::LDAP);
     $tab[30]['datatype'] = 'dropdown';
     $tab[31]['table'] = 'glpi_authmails';
     $tab[31]['field'] = 'name';
     $tab[31]['linkfield'] = 'auths_id';
     $tab[31]['name'] = __('Email server for authentication');
     $tab[31]['massiveaction'] = false;
     $tab[31]['joinparams'] = array('condition' => "AND REFTABLE.`authtype` = " . Auth::MAIL);
     $tab[31]['datatype'] = 'dropdown';
     $tab[16]['table'] = $this->getTable();
     $tab[16]['field'] = 'comment';
     $tab[16]['name'] = __('Comments');
     $tab[16]['datatype'] = 'text';
     $tab[17]['table'] = $this->getTable();
     $tab[17]['field'] = 'language';
     $tab[17]['name'] = __('Language');
     $tab[17]['datatype'] = 'language';
     $tab[17]['display_emptychoice'] = true;
     $tab[17]['emptylabel'] = __('Default value');
     $tab[19]['table'] = $this->getTable();
     $tab[19]['field'] = 'date_mod';
     $tab[19]['name'] = __('Last update');
     $tab[19]['datatype'] = 'datetime';
     $tab[19]['massiveaction'] = false;
     $tab[20]['table'] = 'glpi_profiles';
     $tab[20]['field'] = 'name';
     $tab[20]['name'] = sprintf(__('%1$s (%2$s)'), _n('Profile', 'Profiles', 2), _n('Entity', 'Entities', 1));
     $tab[20]['forcegroupby'] = true;
//.........这里部分代码省略.........
开发者ID:geldarr,项目名称:hack-space,代码行数:101,代码来源:user.class.php

示例8: getSearchOptions

 function getSearchOptions()
 {
     $tab = array();
     $tab['common'] = _n('Appliance', 'Appliances', 2, 'appliances');
     $tab[1]['table'] = 'glpi_plugin_appliances_appliances';
     $tab[1]['field'] = 'name';
     $tab[1]['name'] = __('Name');
     $tab[1]['datatype'] = 'itemlink';
     $tab[1]['itemlink_type'] = $this->getType();
     $tab[2]['table'] = 'glpi_plugin_appliances_appliancetypes';
     $tab[2]['field'] = 'name';
     $tab[2]['name'] = __('Type');
     $tab[32]['table'] = 'glpi_states';
     $tab[32]['field'] = 'completename';
     $tab[32]['name'] = _n('Status', 'Statuses', 1);
     $tab[32]['displaytype'] = 'dropdown';
     $tab[32]['checktype'] = 'text';
     $tab[32]['injectable'] = true;
     $tab += Location::getSearchOptionsToAdd();
     $tab[4]['table'] = 'glpi_plugin_appliances_appliances';
     $tab[4]['field'] = 'comment';
     $tab[4]['name'] = __('Comments');
     $tab[4]['datatype'] = 'text';
     $tab[5]['table'] = 'glpi_plugin_appliances_appliances_items';
     $tab[5]['field'] = 'items_id';
     $tab[5]['name'] = __('Associated items', 'appliances');
     $tab[5]['massiveaction'] = false;
     $tab[5]['forcegroupby'] = true;
     $tab[5]['joinparams'] = array('jointype' => 'child');
     $tab[6]['table'] = 'glpi_users';
     $tab[6]['field'] = 'name';
     $tab[6]['name'] = __('User');
     $tab[8]['table'] = 'glpi_groups';
     $tab[8]['field'] = 'completename';
     $tab[8]['name'] = __('Group');
     $tab[8]['condition'] = '`is_itemgroup`';
     $tab[24]['table'] = 'glpi_users';
     $tab[24]['field'] = 'name';
     $tab[24]['linkfield'] = 'users_id_tech';
     $tab[24]['name'] = __('Technician in charge of the hardware');
     $tab[49]['table'] = 'glpi_groups';
     $tab[49]['field'] = 'completename';
     $tab[49]['linkfield'] = 'groups_id_tech';
     $tab[49]['name'] = __('Group in charge of the hardware');
     $tab[49]['condition'] = '`is_assign`';
     $tab[9]['table'] = 'glpi_plugin_appliances_appliances';
     $tab[9]['field'] = 'date_mod';
     $tab[9]['name'] = __('Last update');
     $tab[9]['massiveaction'] = false;
     $tab[9]['datatype'] = 'datetime';
     $tab[10]['table'] = 'glpi_plugin_appliances_environments';
     $tab[10]['field'] = 'name';
     $tab[10]['name'] = __('Environment', 'appliances');
     $tab[11]['table'] = 'glpi_plugin_appliances_appliances';
     $tab[11]['field'] = 'is_helpdesk_visible';
     $tab[11]['name'] = __('Associable to a ticket');
     $tab[11]['datatype'] = 'bool';
     $tab[12]['table'] = 'glpi_plugin_appliances_appliances';
     $tab[12]['field'] = 'serial';
     $tab[12]['name'] = __('Serial number');
     $tab[13]['table'] = 'glpi_plugin_appliances_appliances';
     $tab[13]['field'] = 'otherserial';
     $tab[13]['name'] = __('Inventory number');
     $tab[31]['table'] = 'glpi_plugin_appliances_appliances';
     $tab[31]['field'] = 'id';
     $tab[31]['name'] = __('ID');
     $tab[31]['massiveaction'] = false;
     $tab[80]['table'] = 'glpi_entities';
     $tab[80]['field'] = 'completename';
     $tab[80]['name'] = __('Entity');
     $tab[7]['table'] = 'glpi_plugin_appliances_appliances';
     $tab[7]['field'] = 'is_recursive';
     $tab[7]['name'] = __('Child entities');
     $tab[7]['massiveaction'] = false;
     $tab[7]['datatype'] = 'bool';
     return $tab;
 }
开发者ID:geldarr,项目名称:hack-space,代码行数:77,代码来源:appliance.class.php

示例9: getSearchOptions

 function getSearchOptions()
 {
     global $LANG;
     $tab = array();
     $tab['common'] = $LANG['common'][32];
     $tab[1]['table'] = $this->getTable();
     $tab[1]['field'] = 'name';
     $tab[1]['name'] = $LANG['common'][16];
     $tab[1]['datatype'] = 'itemlink';
     $tab[1]['itemlink_type'] = $this->getType();
     $tab[1]['massiveaction'] = false;
     $tab[2]['table'] = $this->getTable();
     $tab[2]['field'] = 'id';
     $tab[2]['name'] = $LANG['common'][2];
     $tab[2]['massiveaction'] = false;
     $tab += Location::getSearchOptionsToAdd();
     $tab[4]['table'] = 'glpi_printertypes';
     $tab[4]['field'] = 'name';
     $tab[4]['name'] = $LANG['common'][17];
     $tab[40]['table'] = 'glpi_printermodels';
     $tab[40]['field'] = 'name';
     $tab[40]['name'] = $LANG['common'][22];
     $tab[31]['table'] = 'glpi_states';
     $tab[31]['field'] = 'name';
     $tab[31]['name'] = $LANG['state'][0];
     $tab[5]['table'] = $this->getTable();
     $tab[5]['field'] = 'serial';
     $tab[5]['name'] = $LANG['common'][19];
     $tab[5]['datatype'] = 'string';
     $tab[6]['table'] = $this->getTable();
     $tab[6]['field'] = 'otherserial';
     $tab[6]['name'] = $LANG['common'][20];
     $tab[6]['datatype'] = 'string';
     $tab[7]['table'] = $this->getTable();
     $tab[7]['field'] = 'contact';
     $tab[7]['name'] = $LANG['common'][18];
     $tab[7]['datatype'] = 'string';
     $tab[8]['table'] = $this->getTable();
     $tab[8]['field'] = 'contact_num';
     $tab[8]['name'] = $LANG['common'][21];
     $tab[8]['datatype'] = 'string';
     $tab[70]['table'] = 'glpi_users';
     $tab[70]['field'] = 'name';
     $tab[70]['name'] = $LANG['common'][34];
     $tab[71]['table'] = 'glpi_groups';
     $tab[71]['field'] = 'name';
     $tab[71]['name'] = $LANG['common'][35];
     $tab[19]['table'] = $this->getTable();
     $tab[19]['field'] = 'date_mod';
     $tab[19]['name'] = $LANG['common'][26];
     $tab[19]['datatype'] = 'datetime';
     $tab[19]['massiveaction'] = false;
     $tab[16]['table'] = $this->getTable();
     $tab[16]['field'] = 'comment';
     $tab[16]['name'] = $LANG['common'][25];
     $tab[16]['datatype'] = 'text';
     $tab[42]['table'] = $this->getTable();
     $tab[42]['field'] = 'have_serial';
     $tab[42]['name'] = $LANG['printers'][14];
     $tab[42]['datatype'] = 'bool';
     $tab[43]['table'] = $this->getTable();
     $tab[43]['field'] = 'have_parallel';
     $tab[43]['name'] = $LANG['printers'][15];
     $tab[43]['datatype'] = 'bool';
     $tab[44]['table'] = $this->getTable();
     $tab[44]['field'] = 'have_usb';
     $tab[44]['name'] = $LANG['printers'][27];
     $tab[44]['datatype'] = 'bool';
     $tab[45]['table'] = $this->getTable();
     $tab[45]['field'] = 'have_ethernet';
     $tab[45]['name'] = $LANG['printers'][28];
     $tab[45]['datatype'] = 'bool';
     $tab[46]['table'] = $this->getTable();
     $tab[46]['field'] = 'have_wifi';
     $tab[46]['name'] = $LANG['printers'][29];
     $tab[46]['datatype'] = 'bool';
     $tab[90]['table'] = $this->getTable();
     $tab[90]['field'] = 'notepad';
     $tab[90]['name'] = $LANG['title'][37];
     $tab[90]['massiveaction'] = false;
     $tab[32]['table'] = 'glpi_networks';
     $tab[32]['field'] = 'name';
     $tab[32]['name'] = $LANG['setup'][88];
     $tab[33]['table'] = 'glpi_domains';
     $tab[33]['field'] = 'name';
     $tab[33]['name'] = $LANG['setup'][89];
     $tab[23]['table'] = 'glpi_manufacturers';
     $tab[23]['field'] = 'name';
     $tab[23]['name'] = $LANG['common'][5];
     $tab[24]['table'] = 'glpi_users';
     $tab[24]['field'] = 'name';
     $tab[24]['linkfield'] = 'users_id_tech';
     $tab[24]['name'] = $LANG['common'][10];
     $tab[80]['table'] = 'glpi_entities';
     $tab[80]['field'] = 'completename';
     $tab[80]['name'] = $LANG['entity'][0];
     $tab[80]['massiveaction'] = false;
     $tab[82]['table'] = $this->getTable();
     $tab[82]['field'] = 'is_global';
     $tab[82]['name'] = $LANG['peripherals'][31];
//.........这里部分代码省略.........
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:101,代码来源:printer.class.php

示例10: getSearchOptions

 function getSearchOptions()
 {
     global $LANG;
     $tab = array();
     $tab['common'] = $LANG['common'][32];
     $tab[1]['table'] = $this->getTable();
     $tab[1]['field'] = 'name';
     $tab[1]['name'] = $LANG['common'][16];
     $tab[1]['datatype'] = 'itemlink';
     $tab[1]['itemlink_type'] = $this->getType();
     $tab[1]['massiveaction'] = false;
     // implicit key==1
     $tab[2]['table'] = $this->getTable();
     $tab[2]['field'] = 'id';
     $tab[2]['name'] = $LANG['common'][2];
     $tab[2]['massiveaction'] = false;
     // implicit field is id
     $tab += Location::getSearchOptionsToAdd();
     $tab[4]['table'] = 'glpi_computertypes';
     $tab[4]['field'] = 'name';
     $tab[4]['name'] = $LANG['common'][17];
     $tab[40]['table'] = 'glpi_computermodels';
     $tab[40]['field'] = 'name';
     $tab[40]['name'] = $LANG['common'][22];
     $tab[31]['table'] = 'glpi_states';
     $tab[31]['field'] = 'name';
     $tab[31]['name'] = $LANG['state'][0];
     $tab[45]['table'] = 'glpi_operatingsystems';
     $tab[45]['field'] = 'name';
     $tab[45]['name'] = $LANG['computers'][9];
     $tab[46]['table'] = 'glpi_operatingsystemversions';
     $tab[46]['field'] = 'name';
     $tab[46]['name'] = $LANG['computers'][52];
     $tab[41]['table'] = 'glpi_operatingsystemservicepacks';
     $tab[41]['field'] = 'name';
     $tab[41]['name'] = $LANG['computers'][53];
     $tab[42]['table'] = 'glpi_autoupdatesystems';
     $tab[42]['field'] = 'name';
     $tab[42]['name'] = $LANG['computers'][51];
     $tab[43]['table'] = $this->getTable();
     $tab[43]['field'] = 'os_license_number';
     $tab[43]['name'] = $LANG['computers'][10];
     $tab[44]['table'] = $this->getTable();
     $tab[44]['field'] = 'os_licenseid';
     $tab[44]['name'] = $LANG['computers'][11];
     $tab[47]['table'] = $this->getTable();
     $tab[47]['field'] = 'uuid';
     $tab[47]['name'] = $LANG['computers'][58];
     $tab[5]['table'] = $this->getTable();
     $tab[5]['field'] = 'serial';
     $tab[5]['name'] = $LANG['common'][19];
     $tab[5]['datatype'] = 'string';
     $tab[6]['table'] = $this->getTable();
     $tab[6]['field'] = 'otherserial';
     $tab[6]['name'] = $LANG['common'][20];
     $tab[6]['datatype'] = 'string';
     $tab[16]['table'] = $this->getTable();
     $tab[16]['field'] = 'comment';
     $tab[16]['name'] = $LANG['common'][25];
     $tab[16]['datatype'] = 'text';
     $tab[90]['table'] = $this->getTable();
     $tab[90]['field'] = 'notepad';
     $tab[90]['name'] = $LANG['title'][37];
     $tab[90]['massiveaction'] = false;
     $tab[17]['table'] = $this->getTable();
     $tab[17]['field'] = 'contact';
     $tab[17]['name'] = $LANG['common'][18];
     $tab[17]['datatype'] = 'string';
     $tab[18]['table'] = $this->getTable();
     $tab[18]['field'] = 'contact_num';
     $tab[18]['name'] = $LANG['common'][21];
     $tab[18]['datatype'] = 'string';
     $tab[70]['table'] = 'glpi_users';
     $tab[70]['field'] = 'name';
     $tab[70]['name'] = $LANG['common'][34];
     $tab[71]['table'] = 'glpi_groups';
     $tab[71]['field'] = 'name';
     $tab[71]['name'] = $LANG['common'][35];
     $tab[19]['table'] = $this->getTable();
     $tab[19]['field'] = 'date_mod';
     $tab[19]['name'] = $LANG['common'][26];
     $tab[19]['datatype'] = 'datetime';
     $tab[19]['massiveaction'] = false;
     $tab[32]['table'] = 'glpi_networks';
     $tab[32]['field'] = 'name';
     $tab[32]['name'] = $LANG['setup'][88];
     $tab[33]['table'] = 'glpi_domains';
     $tab[33]['field'] = 'name';
     $tab[33]['name'] = $LANG['setup'][89];
     $tab[23]['table'] = 'glpi_manufacturers';
     $tab[23]['field'] = 'name';
     $tab[23]['name'] = $LANG['common'][5];
     $tab[24]['table'] = 'glpi_users';
     $tab[24]['field'] = 'name';
     $tab[24]['linkfield'] = 'users_id_tech';
     $tab[24]['name'] = $LANG['common'][10];
     $tab[80]['table'] = 'glpi_entities';
     $tab[80]['field'] = 'completename';
     $tab[80]['name'] = $LANG['entity'][0];
     $tab['periph'] = $LANG['title'][30];
//.........这里部分代码省略.........
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:101,代码来源:computer.class.php

示例11: getSearchOptions

 function getSearchOptions()
 {
     $tab = array();
     $tab['common'] = __('Characteristics');
     $tab[1]['table'] = $this->getTable();
     $tab[1]['field'] = 'name';
     $tab[1]['name'] = __('Name');
     $tab[1]['datatype'] = 'itemlink';
     $tab[1]['massiveaction'] = false;
     $tab[2]['table'] = $this->getTable();
     $tab[2]['field'] = 'id';
     $tab[2]['name'] = __('ID');
     $tab[2]['massiveaction'] = false;
     $tab[2]['datatype'] = 'number';
     $tab += Location::getSearchOptionsToAdd();
     $tab[4]['table'] = 'glpi_networkequipmenttypes';
     $tab[4]['field'] = 'name';
     $tab[4]['name'] = __('Type');
     $tab[4]['datatype'] = 'dropdown';
     $tab[40]['table'] = 'glpi_networkequipmentmodels';
     $tab[40]['field'] = 'name';
     $tab[40]['name'] = __('Model');
     $tab[40]['datatype'] = 'dropdown';
     $tab[31]['table'] = 'glpi_states';
     $tab[31]['field'] = 'completename';
     $tab[31]['name'] = __('Status');
     $tab[31]['datatype'] = 'dropdown';
     $tab[31]['condition'] = "`is_visible_networkequipment`";
     $tab[5]['table'] = $this->getTable();
     $tab[5]['field'] = 'serial';
     $tab[5]['name'] = __('Serial number');
     $tab[5]['datatype'] = 'string';
     $tab[6]['table'] = $this->getTable();
     $tab[6]['field'] = 'otherserial';
     $tab[6]['name'] = __('Inventory number');
     $tab[6]['datatype'] = 'string';
     $tab[7]['table'] = $this->getTable();
     $tab[7]['field'] = 'contact';
     $tab[7]['name'] = __('Alternate username');
     $tab[7]['datatype'] = 'string';
     $tab[8]['table'] = $this->getTable();
     $tab[8]['field'] = 'contact_num';
     $tab[8]['name'] = __('Alternate username number');
     $tab[8]['datatype'] = 'string';
     $tab[70]['table'] = 'glpi_users';
     $tab[70]['field'] = 'name';
     $tab[70]['name'] = __('User');
     $tab[70]['datatype'] = 'dropdown';
     $tab[70]['right'] = 'all';
     $tab[71]['table'] = 'glpi_groups';
     $tab[71]['field'] = 'completename';
     $tab[71]['name'] = __('Group');
     $tab[71]['datatype'] = 'dropdown';
     $tab[71]['condition'] = '`is_itemgroup`';
     $tab[19]['table'] = $this->getTable();
     $tab[19]['field'] = 'date_mod';
     $tab[19]['name'] = __('Last update');
     $tab[19]['datatype'] = 'datetime';
     $tab[19]['massiveaction'] = false;
     $tab[121]['table'] = $this->getTable();
     $tab[121]['field'] = 'date_creation';
     $tab[121]['name'] = __('Creation date');
     $tab[121]['datatype'] = 'datetime';
     $tab[121]['massiveaction'] = false;
     $tab[16]['table'] = $this->getTable();
     $tab[16]['field'] = 'comment';
     $tab[16]['name'] = __('Comments');
     $tab[16]['datatype'] = 'text';
     $tab[11]['table'] = 'glpi_networkequipmentfirmwares';
     $tab[11]['field'] = 'name';
     $tab[11]['name'] = _n('Firmware', 'Firmwares', 1);
     $tab[11]['datatype'] = 'dropdown';
     $tab[14]['table'] = $this->getTable();
     $tab[14]['field'] = 'ram';
     $tab[14]['name'] = sprintf(__('%1$s (%2$s)'), __('Memory'), __('Mio'));
     $tab[14]['datatype'] = 'number';
     $tab[32]['table'] = 'glpi_networks';
     $tab[32]['field'] = 'name';
     $tab[32]['name'] = __('Network');
     $tab[32]['datatype'] = 'dropdown';
     $tab[33]['table'] = 'glpi_domains';
     $tab[33]['field'] = 'name';
     $tab[33]['name'] = __('Domain');
     $tab[33]['datatype'] = 'dropdown';
     $tab[23]['table'] = 'glpi_manufacturers';
     $tab[23]['field'] = 'name';
     $tab[23]['name'] = __('Manufacturer');
     $tab[23]['datatype'] = 'dropdown';
     $tab[24]['table'] = 'glpi_users';
     $tab[24]['field'] = 'name';
     $tab[24]['linkfield'] = 'users_id_tech';
     $tab[24]['name'] = __('Technician in charge of the hardware');
     $tab[24]['datatype'] = 'dropdown';
     $tab[24]['right'] = 'own_ticket';
     $tab[49]['table'] = 'glpi_groups';
     $tab[49]['field'] = 'completename';
     $tab[49]['linkfield'] = 'groups_id_tech';
     $tab[49]['name'] = __('Group in charge of the hardware');
     $tab[49]['condition'] = '`is_assign`';
     $tab[49]['datatype'] = 'dropdown';
//.........这里部分代码省略.........
开发者ID:glpi-project,项目名称:glpi,代码行数:101,代码来源:networkequipment.class.php

示例12: getSearchOptions

 function getSearchOptions()
 {
     $tab = array();
     $tab[1]['table'] = $this->getTable();
     $tab[1]['field'] = 'name';
     $tab[1]['name'] = __('Name');
     $tab[1]['datatype'] = 'itemlink';
     $tab[1]['massiveaction'] = false;
     $tab[2]['table'] = $this->getTable();
     $tab[2]['field'] = 'id';
     $tab[2]['name'] = __('ID');
     $tab[2]['massiveaction'] = false;
     $tab[2]['datatype'] = 'number';
     $tab[19]['table'] = $this->getTable();
     $tab[19]['field'] = 'date_mod';
     $tab[19]['name'] = __('Last update');
     $tab[19]['datatype'] = 'datetime';
     $tab[19]['massiveaction'] = false;
     $tab[121]['table'] = $this->getTable();
     $tab[121]['field'] = 'date_creation';
     $tab[121]['name'] = __('Creation date');
     $tab[121]['datatype'] = 'datetime';
     $tab[121]['massiveaction'] = false;
     $tab[4]['table'] = 'glpi_budgettypes';
     $tab[4]['field'] = 'name';
     $tab[4]['name'] = __('Type');
     $tab[4]['datatype'] = 'dropdown';
     $tab[5]['table'] = $this->getTable();
     $tab[5]['field'] = 'begin_date';
     $tab[5]['name'] = __('Start date');
     $tab[5]['datatype'] = 'date';
     $tab[6]['table'] = $this->getTable();
     $tab[6]['field'] = 'end_date';
     $tab[6]['name'] = __('End date');
     $tab[6]['datatype'] = 'date';
     $tab[7]['table'] = $this->getTable();
     $tab[7]['field'] = 'value';
     $tab[7]['name'] = _x('price', 'Value');
     $tab[7]['datatype'] = 'decimal';
     $tab[16]['table'] = $this->getTable();
     $tab[16]['field'] = 'comment';
     $tab[16]['name'] = __('Comments');
     $tab[16]['datatype'] = 'text';
     $tab[80]['table'] = 'glpi_entities';
     $tab[80]['field'] = 'completename';
     $tab[80]['name'] = __('Entity');
     $tab[80]['massiveaction'] = false;
     $tab[80]['datatype'] = 'dropdown';
     $tab[86]['table'] = $this->getTable();
     $tab[86]['field'] = 'is_recursive';
     $tab[86]['name'] = __('Child entities');
     $tab[86]['datatype'] = 'bool';
     // add objectlock search options
     $tab += ObjectLock::getSearchOptionsToAdd(get_class($this));
     $tab += Location::getSearchOptionsToAdd();
     $tab += Notepad::getSearchOptionsToAdd();
     return $tab;
 }
开发者ID:btry,项目名称:glpi,代码行数:58,代码来源:budget.class.php

示例13: getSearchOptions

 function getSearchOptions()
 {
     global $CFG_GLPI, $LANG;
     $tab = array();
     $tab['common'] = __s('SIM card', 'simcard');
     $tab[1]['table'] = $this->getTable();
     $tab[1]['field'] = 'name';
     $tab[1]['name'] = __('Name');
     $tab[1]['datatype'] = 'itemlink';
     $tab[1]['itemlink_type'] = $this->getType();
     $tab[1]['massiveaction'] = false;
     // implicit key==1
     $tab[1]['injectable'] = true;
     $tab[1]['checktype'] = 'text';
     $tab[1]['displaytype'] = 'text';
     $tab[2]['table'] = $this->getTable();
     $tab[2]['field'] = 'id';
     $tab[2]['name'] = __('ID');
     $tab[2]['massiveaction'] = false;
     // implicit field is id
     $tab[2]['injectable'] = false;
     $tab[4]['table'] = 'glpi_plugin_simcard_simcardtypes';
     $tab[4]['field'] = 'name';
     $tab[4]['name'] = __('Type');
     $tab[4]['datatype'] = 'dropdown';
     $tab[4]['massiveaction'] = true;
     $tab[4]['checktype'] = 'text';
     $tab[4]['displaytype'] = 'dropdown';
     $tab[4]['injectable'] = true;
     $tab[5]['table'] = $this->getTable();
     $tab[5]['field'] = 'serial';
     $tab[5]['name'] = __('IMSI', 'simcard');
     $tab[5]['datatype'] = 'string';
     $tab[5]['checktype'] = 'text';
     $tab[5]['displaytype'] = 'text';
     $tab[5]['injectable'] = true;
     $tab[6]['table'] = $this->getTable();
     $tab[6]['field'] = 'otherserial';
     $tab[6]['name'] = __('Inventory number');
     $tab[6]['datatype'] = 'string';
     $tab[6]['checktype'] = 'text';
     $tab[6]['displaytype'] = 'text';
     $tab[6]['injectable'] = true;
     $tab[16]['table'] = $this->getTable();
     $tab[16]['field'] = 'comment';
     $tab[16]['name'] = __('Comments');
     $tab[16]['datatype'] = 'text';
     $tab[16]['linkfield'] = 'comment';
     $tab[16]['checktype'] = 'text';
     $tab[16]['displaytype'] = 'multiline_text';
     $tab[16]['injectable'] = true;
     $tab += Location::getSearchOptionsToAdd();
     $tab[3]['checktype'] = 'text';
     $tab[3]['displaytype'] = 'dropdown';
     $tab[3]['injectable'] = true;
     $tab[91]['injectable'] = false;
     $tab[93]['injectable'] = false;
     $tab[19]['table'] = $this->getTable();
     $tab[19]['field'] = 'date_mod';
     $tab[19]['name'] = __('Last update');
     $tab[19]['datatype'] = 'datetime';
     $tab[19]['massiveaction'] = false;
     $tab[19]['injectable'] = false;
     // TODO : This index has not any similar in GLPI, should find an other index
     $tab[23]['table'] = 'glpi_plugin_simcard_simcardvoltages';
     $tab[23]['field'] = 'name';
     $tab[23]['name'] = __('Voltage', 'simcard');
     $tab[23]['datatype'] = 'dropdown';
     $tab[23]['checktype'] = 'text';
     $tab[23]['displaytype'] = 'dropdown';
     $tab[23]['injectable'] = true;
     $tab[24]['table'] = 'glpi_users';
     $tab[24]['field'] = 'name';
     $tab[24]['linkfield'] = 'users_id_tech';
     $tab[24]['name'] = __('Technician in charge of the hardware');
     $tab[24]['datatype'] = 'dropdown';
     $tab[24]['right'] = 'own_ticket';
     $tab[24]['checktype'] = 'text';
     $tab[24]['displaytype'] = 'dropdown';
     $tab[24]['injectable'] = true;
     $tab[25]['table'] = 'glpi_plugin_simcard_simcardsizes';
     $tab[25]['field'] = 'name';
     $tab[25]['name'] = __('Size', 'simcard');
     $tab[25]['datatype'] = 'dropdown';
     $tab[25]['checktype'] = 'text';
     $tab[25]['displaytype'] = 'dropdown';
     $tab[25]['injectable'] = true;
     $tab[26]['table'] = 'glpi_plugin_simcard_phoneoperators';
     $tab[26]['field'] = 'name';
     $tab[26]['name'] = __('Provider', 'simcard');
     $tab[26]['datatype'] = 'dropdown';
     $tab[26]['checktype'] = 'text';
     $tab[26]['displaytype'] = 'dropdown';
     $tab[26]['injectable'] = true;
     $tab[27]['table'] = $this->getTable();
     $tab[27]['field'] = 'phonenumber';
     $tab[27]['name'] = __('Phone number', 'simcard');
     $tab[27]['datatype'] = 'string';
     $tab[27]['checktype'] = 'text';
     $tab[27]['displaytype'] = 'text';
//.........这里部分代码省略.........
开发者ID:NandyJoshu,项目名称:simcard,代码行数:101,代码来源:simcard.class.php

示例14: getSearchOptions

 function getSearchOptions()
 {
     global $LANG;
     $tab = array();
     $tab[4]['table'] = $this->getTable();
     $tab[4]['field'] = 'comment';
     $tab[4]['name'] = $LANG['common'][25];
     $tab[4]['datatype'] = 'text';
     $tab['common'] = $LANG['common'][32];
     $tab[1]['table'] = 'reservation_types';
     $tab[1]['field'] = 'name';
     $tab[1]['name'] = $LANG['common'][16];
     $tab[1]['datatype'] = 'itemlink';
     $tab[1]['massiveaction'] = false;
     $tab[2]['table'] = 'reservation_types';
     $tab[2]['field'] = 'id';
     $tab[2]['name'] = $LANG['common'][2];
     $tab[2]['massiveaction'] = false;
     $tab += Location::getSearchOptionsToAdd();
     $tab[16]['table'] = 'reservation_types';
     $tab[16]['field'] = 'comment';
     $tab[16]['name'] = $LANG['common'][25];
     $tab[16]['datatype'] = 'text';
     $tab[70]['table'] = 'glpi_users';
     $tab[70]['field'] = 'name';
     $tab[70]['name'] = $LANG['common'][34];
     $tab[71]['table'] = 'glpi_groups';
     $tab[71]['field'] = 'name';
     $tab[71]['name'] = $LANG['common'][35];
     $tab[19]['table'] = 'reservation_types';
     $tab[19]['field'] = 'date_mod';
     $tab[19]['name'] = $LANG['common'][26];
     $tab[19]['datatype'] = 'datetime';
     $tab[19]['massiveaction'] = false;
     $tab[23]['table'] = 'glpi_manufacturers';
     $tab[23]['field'] = 'name';
     $tab[23]['name'] = $LANG['common'][5];
     $tab[24]['table'] = 'glpi_users';
     $tab[24]['field'] = 'name';
     $tab[24]['linkfield'] = 'users_id_tech';
     $tab[24]['name'] = $LANG['common'][10];
     $tab[80]['table'] = 'glpi_entities';
     $tab[80]['field'] = 'completename';
     $tab[80]['name'] = $LANG['entity'][0];
     $tab[80]['massiveaction'] = false;
     return $tab;
 }
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:47,代码来源:reservationitem.class.php

示例15: getSearchOptions

 function getSearchOptions()
 {
     global $LANG;
     // Only use for History (not by search Engine)
     $tab = array();
     $tab[1]['table'] = $this->getTable();
     $tab[1]['field'] = 'name';
     $tab[1]['name'] = $LANG['common'][16];
     $tab[1]['datatype'] = 'itemlink';
     $tab[1]['itemlink_type'] = $this->getType();
     $tab[1]['massiveaction'] = false;
     $tab[2]['table'] = $this->getTable();
     $tab[2]['field'] = 'id';
     $tab[2]['name'] = $LANG['common'][2];
     $tab[2]['massiveaction'] = false;
     $tab += Location::getSearchOptionsToAdd();
     $tab[7]['table'] = 'glpi_softwarelicenses';
     $tab[7]['field'] = 'name';
     $tab[7]['name'] = $LANG['common'][19];
     $tab[7]['massiveaction'] = false;
     $tab[7]['joinparams'] = array('jointype' => 'child');
     $tab[16]['table'] = $this->getTable();
     $tab[16]['field'] = 'comment';
     $tab[16]['name'] = $LANG['common'][25];
     $tab[16]['datatype'] = 'text';
     $tab[90]['table'] = $this->getTable();
     $tab[90]['field'] = 'notepad';
     $tab[90]['name'] = $LANG['title'][37];
     $tab[90]['massiveaction'] = false;
     $tab[62]['table'] = 'glpi_softwarecategories';
     $tab[62]['field'] = 'name';
     $tab[62]['name'] = $LANG['common'][36];
     $tab[19]['table'] = $this->getTable();
     $tab[19]['field'] = 'date_mod';
     $tab[19]['name'] = $LANG['common'][26];
     $tab[19]['datatype'] = 'datetime';
     $tab[19]['massiveaction'] = false;
     $tab[23]['table'] = 'glpi_manufacturers';
     $tab[23]['field'] = 'name';
     $tab[23]['name'] = $LANG['common'][5];
     $tab[24]['table'] = 'glpi_users';
     $tab[24]['field'] = 'name';
     $tab[24]['linkfield'] = 'users_id_tech';
     $tab[24]['name'] = $LANG['common'][10];
     $tab[70]['table'] = 'glpi_users';
     $tab[70]['field'] = 'name';
     $tab[70]['name'] = $LANG['common'][34];
     $tab[71]['table'] = 'glpi_groups';
     $tab[71]['field'] = 'name';
     $tab[71]['name'] = $LANG['common'][35];
     $tab[61]['table'] = $this->getTable();
     $tab[61]['field'] = 'is_helpdesk_visible';
     $tab[61]['name'] = $LANG['software'][46];
     $tab[61]['datatype'] = 'bool';
     $tab[80]['table'] = 'glpi_entities';
     $tab[80]['field'] = 'completename';
     $tab[80]['name'] = $LANG['entity'][0];
     $tab[80]['massiveaction'] = false;
     $tab[72]['table'] = 'glpi_computers_softwareversions';
     $tab[72]['field'] = 'count';
     $tab[72]['name'] = $LANG['tracking'][29] . " - " . $LANG['software'][19];
     $tab[72]['forcegroupby'] = true;
     $tab[72]['usehaving'] = true;
     $tab[72]['datatype'] = 'number';
     $tab[72]['nometa'] = true;
     $tab[72]['massiveaction'] = false;
     $tab[72]['joinparams'] = array('jointype' => 'child', 'condition' => "AND NEWTABLE.`is_deleted` = '0'\n                                                         AND NEWTABLE.`is_template` = '0'", 'beforejoin' => array('table' => 'glpi_softwareversions', 'joinparams' => array('jointype' => 'child')));
     $tab[86]['table'] = $this->getTable();
     $tab[86]['field'] = 'is_recursive';
     $tab[86]['name'] = $LANG['entity'][9];
     $tab[86]['datatype'] = 'bool';
     $tab[86]['massiveaction'] = false;
     $tab['versions'] = $LANG['software'][5];
     $tab[5]['table'] = 'glpi_softwareversions';
     $tab[5]['field'] = 'name';
     $tab[5]['name'] = $LANG['common'][16] . " - " . $LANG['software'][5];
     $tab[5]['forcegroupby'] = true;
     $tab[5]['massiveaction'] = false;
     $tab[5]['joinparams'] = array('jointype' => 'child');
     $tab[31]['table'] = 'glpi_states';
     $tab[31]['field'] = 'name';
     $tab[31]['name'] = $LANG['state'][0];
     $tab[31]['forcegroupby'] = true;
     $tab[31]['massiveaction'] = false;
     $tab[31]['joinparams'] = array('beforejoin' => array('table' => 'glpi_softwareversions', 'joinparams' => array('jointype' => 'child')));
     $tab[170]['table'] = 'glpi_softwareversions';
     $tab[170]['field'] = 'comment';
     $tab[170]['name'] = $LANG['common'][25] . " - " . $LANG['software'][5];
     $tab[170]['forcegroupby'] = true;
     $tab[170]['datatype'] = 'text';
     $tab[170]['massiveaction'] = false;
     $tab[170]['joinparams'] = array('jointype' => 'child');
     $tab[4]['table'] = 'glpi_operatingsystems';
     $tab[4]['field'] = 'name';
     $tab[4]['name'] = $LANG['setup'][5] . " - " . $LANG['software'][5];
     $tab[4]['forcegroupby'] = true;
     $tab[4]['joinparams'] = array('beforejoin' => array('table' => 'glpi_softwareversions', 'joinparams' => array('jointype' => 'child')));
     $tab['license'] = $LANG['software'][11];
     $tab[160]['table'] = 'glpi_softwarelicenses';
     $tab[160]['field'] = 'name';
//.........这里部分代码省略.........
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:101,代码来源:software.class.php


注:本文中的Location::getSearchOptionsToAdd方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。