本文整理汇总了PHP中form::db_data_search方法的典型用法代码示例。如果您正苦于以下问题:PHP form::db_data_search方法的具体用法?PHP form::db_data_search怎么用?PHP form::db_data_search使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类form
的用法示例。
在下文中一共展示了form::db_data_search方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: form
function form_search_dns()
{
$form_search_dns = new form(array('FORM_NAME' => 'form_search_dns'));
$form_search_dns->db_data('dns_zones.type, dns_zones.name, dns_zones.status');
$form_search_dns->db_data_search();
return $form_search_dns;
}
示例2: form
function form_search_users()
{
global $db;
$form_search_nodes = new form(array('FORM_NAME' => 'form_search_users'));
$form_search_nodes->db_data('users.username');
$form_search_nodes->db_data_search();
return $form_search_nodes;
}
示例3: form
function form_search_ranges()
{
global $construct, $db;
$form_search_ranges = new form(array('FORM_NAME' => 'form_search_ranges'));
$form_search_ranges->data = array("0" => array("Field" => "ip", "fullField" => "ip"));
$form_search_ranges->db_data('areas.status, ip_ranges.delete_req');
$form_search_ranges->db_data_search();
return $form_search_ranges;
}
示例4: form
function form_search_services_edit()
{
global $db;
$form_search_services_edit = new form(array('FORM_NAME' => 'form_search_services_edit'));
$form_search_services_edit->db_data('nodes_services.service_id, nodes.id, nodes.name');
$form_search_services_edit->db_data_enum('nodes_services.service_id', $db->get("id AS value, title AS output", "services", "", "", "title ASC"));
$form_search_services_edit->db_data_search();
return $form_search_services_edit;
}
示例5: form
function form_search_nameservers()
{
global $db;
$form_search_nameservers = new form(array('FORM_NAME' => 'form_search_nameservers'));
$form_search_nameservers->data = array("0" => array("Field" => "ip", "fullField" => "dns_nameservers__ip"));
$form_search_nameservers->db_data('dns_nameservers.status, nodes.id, nodes.name');
$form_search_nameservers->db_data_search();
return $form_search_nameservers;
}
示例6: form
function form_search_links_ap()
{
global $db;
$form_search_links_ap = new form(array('FORM_NAME' => 'form_search_links_ap'));
$form_search_links_ap->db_data('links.ssid, nodes.id, nodes.name, areas.id, regions.id');
$form_search_links_ap->db_data_enum('areas.id', $db->get("id AS value, name AS output", "areas"));
$form_search_links_ap->db_data_enum('regions.id', $db->get("id AS value, name AS output", "regions"));
$form_search_links_ap->db_data_search();
return $form_search_links_ap;
}
示例7: form
function form_search_nameservers()
{
global $db;
$form_search_nameservers = new form(array('FORM_NAME' => 'form_search_nameservers'));
$form_search_nameservers->db_data('nodes.id, nodes.name, areas.id, regions.id');
$form_search_nameservers->db_data_enum('areas.id', $db->get("id AS value, name AS output", "areas"));
$form_search_nameservers->db_data_enum('regions.id', $db->get("id AS value, name AS output", "regions"));
$form_search_nameservers->db_data_search();
return $form_search_nameservers;
}
示例8: form
function form_search_ranges()
{
global $construct, $db;
$form_search_ranges = new form(array('FORM_NAME' => 'form_search_ranges'));
$form_search_ranges->data = array("0" => array("Field" => "ip", "fullField" => "ip"));
$form_search_ranges->db_data('ip_ranges.status, ip_ranges.delete_req, nodes.id, nodes.name');
array_push($form_search_ranges->data, array('Compare' => 'numeric', 'Field' => 'total_active_p2p', 'fullField' => 'total_active_p2p'));
array_push($form_search_ranges->data, array('Compare' => 'numeric', 'Field' => 'total_active_aps', 'fullField' => 'total_active_aps'));
$form_search_ranges->db_data_search();
return $form_search_ranges;
}
示例9: form
function form_search_ranges()
{
global $construct, $db;
$form_search_ranges = new form(array('FORM_NAME' => 'form_search_ranges'));
$form_search_ranges->data = array("0" => array("Field" => "ip", "fullField" => "ip"));
$form_search_ranges->db_data('ip_ranges.status, ip_ranges.delete_req, nodes.id, nodes.name, communities.name');
#@#
$form_search_ranges->db_data_enum('communities.name', $db->get("name AS value, fullname AS output", "communities"));
#@#
$form_search_ranges->db_data_search();
return $form_search_ranges;
}
示例10: form
function form_search_nameservers()
{
global $db;
$form_search_nameservers = new form(array('FORM_NAME' => 'form_search_nameservers'));
$form_search_nameservers->data = array("0" => array("Field" => "ip", "fullField" => "dns_nameservers__ip"));
$form_search_nameservers->db_data('dns_nameservers.status, dns_nameservers.delete_req, nodes.id, nodes.name, communities.name');
#@#
$form_search_nameservers->db_data_enum('communities.name', $db->get("name AS value, fullname AS output", "communities"));
#@#
$form_search_nameservers->db_data_search();
return $form_search_nameservers;
}
示例11: form
function form_search_nodes()
{
global $db;
$form_search_nodes = new form(array('FORM_NAME' => 'form_search_nodes'));
$form_search_nodes->db_data('nodes.id, nodes.name, areas.id, regions.id, communities.name');
$form_search_nodes->db_data_enum('areas.id', $db->get("id AS value, name AS output", "areas"));
$form_search_nodes->db_data_enum('regions.id', $db->get("id AS value, name AS output", "regions"));
$form_search_nodes->db_data_enum('communities.name', $db->get("name AS value, fullname AS output", "communities"));
#@#
$form_search_nodes->db_data_search();
return $form_search_nodes;
}
示例12: form
function form_search_nodes()
{
global $db, $lang;
$form_search_nodes = new form(array('FORM_NAME' => 'form_search_nodes'));
$form_search_nodes->db_data('nodes.id, nodes.name, areas.id, regions.id');
$form_search_nodes->db_data_enum('areas.id', $db->get("id AS value, name AS output", "areas"));
$form_search_nodes->db_data_enum('regions.id', $db->get("id AS value, name AS output", "regions"));
array_push($form_search_nodes->data, array('Compare' => 'numeric', 'Field' => 'total_active_peers', 'fullField' => 'total_active_peers'));
array_push($form_search_nodes->data, array('Compare' => 'numeric', 'Field' => 'total_active_clients', 'fullField' => 'total_active_clients'));
array_push($form_search_nodes->data, array('Field' => 'has_ap', 'fullField' => 'has_ap', 'Type' => 'enum', 'Type_Enums' => array(array('value' => 'Y', 'output' => $lang['yes']), array('value' => 'N', 'output' => $lang['no']))));
$form_search_nodes->db_data_search();
return $form_search_nodes;
}