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


PHP uri_assoc函数代码示例

本文整理汇总了PHP中uri_assoc函数的典型用法代码示例。如果您正苦于以下问题:PHP uri_assoc函数的具体用法?PHP uri_assoc怎么用?PHP uri_assoc使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: delete

 function delete()
 {
     if (uri_assoc('payment_method_id', 4)) {
         $this->mdl_payment_methods->delete(array('payment_method_id' => uri_assoc('payment_method_id', 4)));
     }
     $this->redir->redirect('payments/payment_methods');
 }
开发者ID:roxio,项目名称:MyClientBase-SB,代码行数:7,代码来源:payment_methods.php

示例2: delete

 function delete()
 {
     if (uri_assoc('field_id')) {
         $this->mdl_fields->delete(uri_assoc('field_id'));
     }
     $this->redir->redirect('fields');
 }
开发者ID:roxio,项目名称:MyClientBase-SB,代码行数:7,代码来源:fields.php

示例3: get_table_headers

 public function get_table_headers()
 {
     $order_by = uri_assoc('order_by');
     $order = uri_assoc('order') == 'asc' ? 'desc' : 'asc';
     $headers = array('client_id' => anchor('clients/index/order_by/client_id/order/' . $order, $this->lang->line('id')), 'client_name' => anchor('clients/index/order_by/client_name/order/' . $order, $this->lang->line('client')), 'client_email' => anchor('clients/index/order_by/client_email/order/' . $order, $this->lang->line('email_address')), 'client_phone' => anchor('clients/index/order_by/client_phone/order/' . $order, $this->lang->line('phone_number')), 'credit_amount' => anchor('clients/index/order_by/credit_amount/order/' . $order, $this->lang->line('credit_amount')), 'balance' => anchor('clients/index/order_by/balance/order/' . $order, $this->lang->line('balance')), 'user' => anchor('clients/index/order_by/user/order/' . $order, $this->lang->line('user')), 'client_active' => anchor('clients/index/order_by/client_active/order/' . $order, $this->lang->line('active')));
     return $headers;
 }
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:7,代码来源:mdl_client_table.php

示例4: get_table_headers

 public function get_table_headers()
 {
     $order_by = uri_assoc('order_by');
     $order = uri_assoc('order') == 'asc' ? 'desc' : 'asc';
     $headers = array('inventory_id' => anchor('inventory/index/order_by/inventory_id/order/' . $order, $this->lang->line('id')), 'inventory_type' => anchor('inventory/index/order_by/inventory_type/order/' . $order, $this->lang->line('type')), 'inventory_item' => anchor('inventory/index/order_by/inventory_item/order/' . $order, $this->lang->line('item')), 'inventory_stock' => anchor('inventory/index/order_by/inventory_stock/order/' . $order, $this->lang->line('stock')), 'inventory_price' => anchor('inventory/index/order_by/inventory_price/order/' . $order, $this->lang->line('price')));
     return $headers;
 }
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:7,代码来源:mdl_inventory_table.php

示例5: delete

 function delete()
 {
     if (uri_assoc('client_credit_id', 4)) {
         $this->mdl_client_credits->delete(array('client_credit_id' => uri_assoc('client_credit_id', 4)));
     }
     $this->redir->redirect('payments/client_credits');
 }
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:7,代码来源:client_credits.php

示例6: _get_results

 function _get_results($params = array())
 {
     $search_hash = $this->session->userdata('search_hash');
     $params = array_merge($params, $search_hash[uri_assoc('search_hash', 4)]);
     $params['set_client'] = TRUE;
     return $this->mdl_invoices->get($params);
 }
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:7,代码来源:search_results.php

示例7: delete

 public function delete()
 {
     if (uri_assoc('expense_payment_type_id')) {
         $this->mdl_expense_payment_type->delete(array('expense_payment_type_id' => uri_assoc('expense_payment_type_id')));
     }
     $this->redir->redirect('expenses/expense_payment_type');
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:7,代码来源:expense_payment_type.php

示例8: delete

 function delete()
 {
     if (uri_assoc('tax_rate_id')) {
         $this->mdl_tax_rates->delete(uri_assoc('tax_rate_id'));
     }
     $this->redir->redirect('tax_rates');
 }
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:7,代码来源:tax_rates.php

示例9: delete

 public function delete()
 {
     if (uri_assoc('expense_category_id')) {
         $this->mdl_expense_category->delete(array('expense_category_id' => uri_assoc('expense_category_id')));
     }
     $this->redir->redirect('expenses/category');
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:7,代码来源:category.php

示例10: delete

 public function delete()
 {
     if (uri_assoc('bank_id')) {
         $this->mdl_bank->delete(array('bank_id' => uri_assoc('bank_id')));
     }
     $this->redir->redirect('expenses/bank');
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:7,代码来源:bank.php

示例11: delete

 function delete()
 {
     if (uri_assoc('invoice_status_id')) {
         $this->mdl_invoice_statuses->delete(array('invoice_status_id' => uri_assoc('invoice_status_id')));
     }
     $this->redir->redirect('invoice_statuses');
 }
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:7,代码来源:invoice_statuses.php

示例12: delete

 function delete()
 {
     if (uri_assoc('task_id', 3)) {
         $this->mdl_tasks->delete(array('task_id' => uri_assoc('task_id', 3)));
     }
     $this->redir->redirect('tasks');
 }
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:7,代码来源:tasks.php

示例13: retrieve_uid_oid

/**
 * Transforms and returs the given string. Spaces are replaced with underscores and only characters and numbers are left
 * 
 * @access		public
 * @param		$string		string	The given string	
 * @return		string | false
 * @example
 * @see
 * 
 * @author 		Damiano Venturin
 * @copyright 	2V S.r.l.
 * @license		GPL
 * @link		http://www.squadrainformatica.com/en/development#mcbsb  MCB-SB official page
 * @since		Feb 5, 2012
 * 
 */
function retrieve_uid_oid()
{
    $CI =& get_instance();
    $uid = uri_assoc('uid');
    $oid = uri_assoc('oid');
    if (empty($uid) && empty($oid)) {
        if (uri_assoc('client_id')) {
            $client_id = uri_assoc('client_id');
            //retrieving client_id from GET
        } else {
            if ($CI->input->get_post('client_id')) {
                $client_id = $this->input->post('client_id');
            }
            //retrieving client_id from POST
        }
    }
    if ($uid) {
        $params = array('uid' => $uid, 'client_id' => $uid, 'client_id_key' => 'uid');
    }
    if ($oid) {
        $params = array('oid' => $oid, 'client_id' => $oid, 'client_id_key' => 'oid');
    }
    if (isset($client_id) && $client_id) {
        $params = array('client_id' => $client_id);
    }
    return isset($params) ? $params : null;
}
开发者ID:roxio,项目名称:MyClientBase-SB,代码行数:43,代码来源:mcbsb_helper.php

示例14: delete

 public function delete()
 {
     if (uri_assoc('inventory_id')) {
         $this->mdl_inventory->delete(array('inventory_id' => uri_assoc('inventory_id')));
     }
     $this->redir->redirect('inventory');
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:7,代码来源:inventory.php

示例15: delete

 public function delete()
 {
     if (uri_assoc('expense_provider_id')) {
         $this->mdl_provider->delete(array('expense_provider_id' => uri_assoc('expense_provider_id')));
     }
     $this->redir->redirect('expenses/provider');
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:7,代码来源:payment_type.php


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