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


PHP grocery_CRUD::set_js方法代码示例

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


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

示例1: index

 public function index()
 {
     $crud = new grocery_CRUD();
     $crud->set_theme('flexigrid');
     $crud->set_table('bookings');
     $crud->set_subject('Bookings');
     //        $agents = $this->ion_auth->get_all_agents();
     //        $user = $this->ion_auth->user()->row();
     //        $agents += array($user->id => $user->first_name . " " . $user->last_name);
     //        $crud->field_type('hotel_agent_id', 'dropdown', $agents);
     $crud->set_relation('booking_agent', 'io_users', '{first_name} {last_name} [{email}]', array('active' => 1));
     $crud->set_relation('agent_id', 'io_users', '{first_name} {last_name} [{email}]', array('active' => 1));
     $crud->set_relation('booking_to', 'io_users', '{first_name} {last_name} [{email}]', array('active' => 1));
     $crud->display_as('agent_id', 'Agent of Hotel/Package');
     $crud->display_as('booking_company_commission', 'Company Commission');
     $crud->display_as('booking_status', 'Status (Change Status)');
     $crud->display_as('booking_agent', 'Booked By');
     //        $crud->display_as('hotel_name', 'Hotel Name');
     //        $crud->display_as('hotel_rooms', 'Rooms');
     //        $crud->display_as('hotel_tariffs', 'Tariffs');
     $crud->field_type('booking_ref_no', 'readonly');
     $crud->field_type('paypal_transaction_id', 'readonly');
     $crud->field_type('booking_agent_commission', 'readonly');
     $crud->field_type('booking_company_commission', 'readonly');
     $crud->field_type('booking_type', 'readonly');
     $crud->field_type('booking_item_title', 'readonly');
     $crud->field_type('booking_date', 'readonly');
     $crud->field_type('booking_payment_type', 'readonly');
     $crud->field_type('booking_total', 'readonly');
     $crud->field_type('booking_agent', 'readonly');
     $crud->field_type('agent_id', 'readonly');
     $crud->field_type('booking_to', 'readonly');
     $crud->unset_columns('booking_item', 'booking_subitem', 'booking_paymethod_tax', 'ip_address', 'booking_nights');
     $crud->unset_fields('booking_item', 'booking_subitem', 'booking_paymethod_tax', 'ip_address', 'booking_nights');
     $crud->where('agent_id', $this->ion_auth->get_user_id());
     //        $crud->columns('hotel_name', 'hotel_agent_id', 'hotel_phoneNumber', 'hotel_website', 'hotel_facebook' ,'hotel_googleMap', 'hotel_status');
     //        $state = $crud->getState();
     //
     //        if($state =='list' || $state =='ajax_list')
     //        {
     $crud->set_js("assets/frontend/js/custom_functions_sam.js");
     //        }
     $crud->add_action('Conversation', 'http://www.grocerycrud.com/assets/uploads/general/smiley.png', '', 'ui-icon-image', array($this, '_booking_conversation'));
     $crud->callback_column('booking_ref_no', array($this, '_show_invoice'));
     $crud->callback_edit_field('booking_status', array($this, '_edit_field_callback'));
     $crud->callback_column('booking_status', array($this, '_booking_status'));
     $crud->unset_add();
     $output = $crud->render();
     $data = array('main_content' => 'list', 'output' => $output, 'pagetitle' => 'Bookings', 'pagedesc' => 'Bookings', 'contenttitle' => 'Booking List Records', 'left_menu' => 'agents_menu');
     $this->load->view('gc_admin_wrapper', $data);
 }
开发者ID:beingjungshahi,项目名称:theexcursionnepal,代码行数:51,代码来源:bookings.php

示例2: exit

<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
grocery_CRUD::set_css('assets/grocery_crud/themes/datatables/css/demo_table_jui.css');
grocery_CRUD::set_css('assets/grocery_crud/themes/datatables/css/ui/simple/jquery-ui-1.8.10.custom.css');
grocery_CRUD::set_css('assets/grocery_crud/themes/datatables/css/datatables.css');
grocery_CRUD::set_js('assets/grocery_crud/themes/datatables/js/jquery-1.6.2.min.js');
grocery_CRUD::set_js('assets/grocery_crud/themes/datatables/js/jquery-ui-1.8.10.custom.min.js');
grocery_CRUD::set_js('assets/grocery_crud/themes/datatables/js/jquery.dataTables.min.js');
grocery_CRUD::set_js('assets/grocery_crud/themes/datatables/js/datatables.js');
?>
<script type='text/javascript'>
	var base_url = '<?php 
echo base_url();
?>
';
	var subject = '<?php 
echo $subject;
?>
';
</script>
<?php 
if (!empty($actions)) {
    ?>
	<style type="text/css">
		<?php 
    foreach ($actions as $action_unique_id => $action) {
        ?>
			<?php 
开发者ID:rheaa,项目名称:Neo-CMS,代码行数:31,代码来源:list_template.php

示例3: exit

<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
grocery_CRUD::set_css('assets/grocery_crud/themes/flexigrid/css/flexigrid.css');
grocery_CRUD::set_js('assets/grocery_crud/themes/flexigrid/js/jquery.form.js');
grocery_CRUD::set_js('assets/grocery_crud/themes/flexigrid/js/flexigrid-add.js');
?>
<script type='text/javascript'>
	var base_url = '<?php 
echo base_url();
?>
';
</script>
<div class="flexigrid" style='width: 100%;'>	
	<div class="mDiv">
		<div class="ftitle">
			<div class='ftitle-left'>
				Add <?php 
echo $subject;
?>
			</div>
			<div class='ftitle-right'>
				<a href='<?php 
echo $list_url;
?>
' onclick='javascript: return goToList()' >Back to list</a>
			</div>
			<div class='clear'></div>
		</div>
开发者ID:rheaa,项目名称:Neo-CMS,代码行数:31,代码来源:add.php

示例4: exit

<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
grocery_CRUD::set_css('assets/grocery_crud/themes/datatables/css/datatables.css');
grocery_CRUD::set_js('assets/grocery_crud/themes/flexigrid/js/jquery.form.js');
grocery_CRUD::set_js('assets/grocery_crud/themes/datatables/js/datatables-add.js');
grocery_CRUD::set_css('assets/grocery_crud/css/ui/simple/jquery-ui-1.8.10.custom.css');
grocery_CRUD::set_js('assets/grocery_crud/js/jquery_plugins/jquery-ui-1.8.10.custom.min.js');
?>
<script type='text/javascript'>
	var base_url = '<?php 
echo base_url();
?>
';
</script>
<div class='ui-widget-content ui-corner-all datatables'>
	<h3 class="ui-accordion-header ui-helper-reset ui-state-default form-title">
		<div class='floatL form-title-left'>
			<a href="#">Add <?php 
echo $subject;
?>
</a>
		</div> 
		<div class='floatR'>
			<a href='<?php 
echo $list_url;
?>
' onclick='javascript: return goToList()' class='gotoListButton' >
				Back to list
开发者ID:rheaa,项目名称:Neo-CMS,代码行数:31,代码来源:add.php

示例5: exit

<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
grocery_CRUD::set_css('assets/grocery_crud/themes/flexigrid/css/flexigrid.css');
grocery_CRUD::set_js('assets/grocery_crud/themes/datatables/js/jquery-1.6.2.min.js');
grocery_CRUD::set_js('assets/grocery_crud/themes/flexigrid/js/cookies.js');
grocery_CRUD::set_js('assets/grocery_crud/themes/flexigrid/js/flexigrid.js');
grocery_CRUD::set_js('assets/grocery_crud/themes/flexigrid/js/jquery.form.js');
grocery_CRUD::set_js('assets/grocery_crud/themes/flexigrid/js/jquery.numeric.js');
?>
<script type='text/javascript'>
	var base_url = '<?php 
echo base_url();
?>
';

	var subject = '<?php 
echo $subject;
?>
';
	var ajax_list_info_url = '<?php 
echo $ajax_list_info_url;
?>
';
	var unique_hash = '<?php 
echo $unique_hash;
?>
';
</script>
开发者ID:rheaa,项目名称:Neo-CMS,代码行数:31,代码来源:list_template.php

示例6: products_management

 public function products_management()
 {
     $crud = new grocery_CRUD();
     $crud->set_table('products');
     $crud->set_subject('Product');
     //$crud->unset_columns('productDescription');
     $crud->columns('productCode', 'productName', 'productLine', 'productScale', 'productVendor', 'quantityInStock', 'buyPrice', 'MSRP', 'move_up_down');
     $crud->callback_column('buyPrice', array($this, 'valueToEuro'));
     $crud->callback_column('move_up_down', array($this, 'populate_up_down'));
     $crud->order_by('priority');
     $this->session->set_userdata('callableAction', site_url() . '/examples/updatePosition/products');
     $this->session->set_userdata('primary_key', 'productCode');
     $crud->set_js("index.php/examples/dragdrop_js");
     $output = $crud->render();
     $this->_example_output($output);
 }
开发者ID:xemmex,项目名称:gc_with_drag_drop,代码行数:16,代码来源:examples.php


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