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


PHP get_currcontroller函数代码示例

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


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

示例1: get_tool

function get_tool($tool, $id, $mode = 0)
{
    $ci =& get_instance();
    switch ($tool) {
        case 'edit_allow':
            return $mode == '1' ? anchor(get_currcontroller() . '/vedit/' . $id, img('public/img/icons/edit_inline.gif'), 'title="' . lang('EDIT_TOOL') . '"') : anchor(get_currcontroller() . '/edit/' . $id, img('public/img/icons/edit_inline.gif'), 'title="' . lang('EDIT_TOOL') . '"');
            break;
        case 'details_allow':
            return $mode == '1' ? anchor(get_currcontroller() . '/vdetails/' . $id, img('public/img/icons/view_inline.gif'), 'title="' . lang('DETAILS_TOOL') . '"') : anchor(get_currcontroller() . '/details/' . $id, img('public/img/icons/view_inline.gif'), 'title="' . lang('DETAILS_TOOL') . '"');
            break;
        case 'move_allow':
            return $mode == '1' ? anchor(get_currcontroller() . '/vmove/' . $id, img('public/img/icons/move_inline.gif'), 'title="' . lang('MOVE_TOOL') . '"') : anchor(get_currcontroller() . '/move/' . $id, img('public/img/icons/move_inline.gif'), 'title="' . lang('MOVE_TOOL') . '"');
            break;
    }
    return null;
}
开发者ID:vsanth,项目名称:travelcrm,代码行数:16,代码来源:tools_helper.php

示例2: create

 private function create()
 {
     $data = array();
     $this->set_validation();
     $data['title'] = lang('CONSTANTS_TITLE_CREATE');
     $data['orid'] = $this->get_orid();
     $data['success'] = null;
     if ($this->form_validation->run() === True) {
         if ($rid = $this->constants_model->create_record()) {
             $this->session->set_flashdata('success', True);
             redirect(get_currcontroller() . "/edit/{$rid}", 'refresh');
             return;
         } else {
             $data['success'] = false;
         }
     }
     $data['content'] = $this->load->view('constants/create', $data, True);
     return $this->load->view('layouts/main_layout', $data);
 }
开发者ID:vsanth,项目名称:travelcrm,代码行数:19,代码来源:constants.php

示例3: create

 private function create()
 {
     $data = array();
     $this->form_validation->set_rules('name', lang('NAME'), 'required|trim|callback_check_unique_name');
     $this->form_validation->set_rules('descr', lang('DESCR'), 'trim|max_length[512]');
     $this->form_validation->set_rules('archive', lang('ARCHIVE'), 'trim');
     $data['title'] = lang('POSITIONS_TITLE_CREATE');
     $data['orid'] = $this->get_orid();
     $data['success'] = null;
     if ($this->form_validation->run() === True) {
         if ($rid = $this->positions_model->create_record()) {
             $this->session->set_flashdata('success', True);
             redirect(get_currcontroller() . "/edit/{$rid}", 'refresh');
             return;
         } else {
             $data['success'] = false;
         }
     }
     $data['content'] = $this->load->view('positions/create', $data, True);
     return $this->load->view('layouts/main_layout', $data);
 }
开发者ID:vsanth,项目名称:travelcrm,代码行数:21,代码来源:positions.php

示例4: vcreate

             $data['success'] = false;
         }
         $data['ds'] = $this->touroperators_model->get_edit($rid);
     }
     $data['content'] = $this->load->view('standart/move', $data, True);
     return $this->load->view('layouts/main_layout', $data);
 }
 /* Операции для Value Picker */
 private function vcreate()
 {
     $data = array();
     $this->set_validation();
     $this->form_validation->set_rules('descr', lang('DESCR'), 'trim|max_length[512]');
     $this->form_validation->set_rules('archive', lang('ARCHIVE'), 'trim');
     $data['title'] = lang('TOUROPERATORS_TITLE_CREATE');
     $data['orid'] = $this->get_orid();
     $data['success'] = null;
     if ($this->form_validation->run() === True) {
         if ($rid = $this->touroperators_model->create_record()) {
             $this->session->set_flashdata('success', True);
             redirect(get_currcontroller() . "/vedit/{$rid}", 'refresh');
开发者ID:vsanth,项目名称:travelcrm,代码行数:21,代码来源:touroperators.php

示例5: form_open

<div class="container findform">
<?php 
echo form_open(get_currcontroller() . "/find/go", array('id' => 'find_' . $orid, 'autocomplete' => 'off'));
echo form_hidden('obj_rid', $orid);
?>
<div class="column span-3">
	<h6><?php 
echo lang('SEARCH_TITLE');
?>
</h6>
</div>
<div class="column span-10">
	<?php 
echo form_label(lang('NAME'), 'interests_name');
?>
	<br>
	<?php 
echo form_input('interests_name', element('_interests.interests_name', $search, ''), 'id="interests_name" class="text part-5"');
?>
</div>
<div class="column span-11 last">
	<?php 
echo form_label(lang('HIDE_ARCHIVE'), 'archive');
?>
	<br>
	<?php 
echo form_dropdown('archive', array(1 => lang('NO'), 0 => lang('YES')), element('_interests.archive', $search, ''), 'id="archive" class="text"');
?>
</div>
<?php 
echo form_close();
开发者ID:vsanth,项目名称:travelcrm,代码行数:31,代码来源:find.php

示例6: vcreate

             $data['success'] = false;
         }
         $data['ds'] = $this->advertisescompanies_model->get_edit($rid);
     }
     $data['content'] = $this->load->view('standart/move', $data, True);
     return $this->load->view('layouts/main_layout', $data);
 }
 /* Операции для Value Picker */
 private function vcreate()
 {
     $data = array();
     $this->set_validation();
     $data['title'] = lang('ADVERTISESCOMPANIES_TITLE_CREATE');
     $data['orid'] = $this->get_orid();
     $data['success'] = null;
     if ($this->form_validation->run() === True) {
         if ($rid = $this->advertisescompanies_model->create_record()) {
             $this->session->set_flashdata('success', True);
             redirect(get_currcontroller() . "/vedit/{$rid}", 'refresh');
开发者ID:vsanth,项目名称:travelcrm,代码行数:19,代码来源:advertisescompanies.php

示例7: site_url

					type: 'POST',
					url: "<?php 
echo site_url(get_currcontroller() . "/gccontr/go");
?>
",
					data: query_string,
					success: function(html){
						$('#credit_contragent').html(html);
						return;
					} 
				});
			});
			$('#c_type_debet').change(function(){
				var query_string = 'c_type_debet='+$('#c_type_debet').val();
				$.ajax({
					type: 'POST',
					url: "<?php 
echo site_url(get_currcontroller() . "/gdcontr/go");
?>
",
					data: query_string,
					success: function(html){
						$('#debet_contragent').html(html);
						return;
					} 
				});
			});
		}
)	
</script>
开发者ID:vsanth,项目名称:travelcrm,代码行数:30,代码来源:create.php

示例8: lang

<span style="font-weight: normal;"><?php 
echo $p_descr;
?>
</span>
&nbsp;&nbsp;&nbsp;<span style="font-weight: normal;"><?php 
echo lang('PAGER_SHOW');
echo form_dropdown('p_limit', array_combine(explode('|', $this->config->item('crm_grid_limits')), explode('|', $this->config->item('crm_grid_limits'))), $this->config->item('crm_grid_limit'), 'onchange="javascript: window.location.replace(\'' . site_url(get_currcontroller()) . '/limit/\'+$(this).val()+\'' . ($vp ? '/' . $this->uri->assoc_to_uri($this->a_uri_assoc) : '') . '\');"');
?>
</span>
&nbsp;&nbsp;&nbsp;
<?if(!empty($pagination)) { ?>
|&nbsp;&nbsp;&nbsp;
<?php 
echo $pagination;
?>
<? } ?>
开发者ID:vsanth,项目名称:travelcrm,代码行数:16,代码来源:paging.php

示例9: sort

 protected function sort()
 {
     if (!($rid = element('doc_rid', $this->a_uri_assoc, null))) {
         show_404();
     }
     if (!$this->finjournal_model->check_document($rid)) {
         show_404();
     }
     $field = element('sort', $this->a_uri_assoc, null);
     if ($field) {
         $sort = array('c' => $field, 'r' => 'ASC');
         if ($oldSort = $this->get_session('sort')) {
             if ($oldSort['c'] == $field) {
                 $sort['r'] = $oldSort['r'] == 'ASC' ? 'DESC' : 'ASC';
             }
         }
         $this->set_session('sort', $sort);
     }
     redirect(get_currcontroller() . "/journal/{$rid}", 'refresh');
     return;
 }
开发者ID:vsanth,项目名称:travelcrm,代码行数:21,代码来源:finjournal.php

示例10: count

			<? } ?>
		</td>
		<?}?>
		<td class="gridHeader">
			&nbsp;
		</td>
	</tr>
	<?$num_records = count($ds); $counter = 0; foreach($ds as $record) { $counter++;?>
	<tr class="dataRow<?php 
echo $counter == $num_records ? ' last_row' : '';
?>
" ondblclick="javascript:window.location = '<?if(element('edit_allow', $tools, null)) { ?><?php 
echo site_url(get_currcontroller() . '/edit/' . $record->rid);
?>
<?}else{?><?php 
echo site_url(get_currcontroller() . '/details/' . $record->rid);
?>
<?}?>';">
		<?if(element('delete_allow', $tools, null)) { ?>
		<td>
			<input type="checkbox" name="row[]" value="<?php 
echo $record->rid;
?>
" id="crow_<?php 
echo $record->rid;
?>
">
		</td>
		<? } ?>
		<?foreach($fields as $key=>$field) {?>
		<td style="<?php 
开发者ID:vsanth,项目名称:travelcrm,代码行数:31,代码来源:grid.php

示例11: site_url

					type: 'POST',
					url: "<?php 
echo site_url(get_currcontroller() . "/recalc/go");
?>
",
					data: query_string,
					success: function(val){
						$('#sum').val(val);
						return;
					} 
				});
			});
			/* -- } Value picker --*/
			new AjaxUpload('upload_btn', {
				action: '<?php 
echo site_url(get_currcontroller() . "/addattach/go");
?>
',
				onSubmit: function() {
					this.setData({_documents_rid : "<?php 
echo $ds->rid;
?>
", upload_descr:$('#upload_descr').val()});
				},
				onComplete: function(file, response) {
					$('#attaches').html(response);
					return;
				}
			});
		}
)	
开发者ID:vsanth,项目名称:travelcrm,代码行数:31,代码来源:edit.php

示例12: lang

<h3><?php 
echo lang('NEW_TASK');
?>
</h3>
<?if(validation_errors()){?>
<div class="error">
	<?php 
echo validation_errors('<div>', '</div>');
?>
</div>	
<?}?>
<?php 
echo form_open(get_currcontroller() . "/tasks/add", array('id' => 'create_' . $objrid, 'autocomplete' => 'off'));
echo form_hidden('objrid', $objrid);
?>
<div class="column span-3">
<?php 
echo form_label(lang('DATE_TASK'), 'edate');
?>
 <font color="red">*</font>
</div>
<div class="column span-9">
<?php 
echo form_input('edate', set_value('edate', ''), 'id="edate_obj" class="text" readonly="readonly" style="width:90px;"');
?>
<script type="text/javascript">
	$('#edate_obj').datepick({showOn: 'button', yearRange: '-60:+0',
    buttonImageOnly: true, buttonImage: '<?php 
echo base_url();
?>
public/js/jquery.datapick.package-3.6.1/calendar.gif'});
开发者ID:vsanth,项目名称:travelcrm,代码行数:31,代码来源:tasks_add.php

示例13: array

     $data['jtp'] = $this->jtp;
     $data['tools'] = $this->get_tools();
     $data['ds'] = $this->filials_model->get_ds();
     $data['paging'] = $this->get_paging($this->filials_model->get_calc_rows(), True);
     $content = $this->load->view('standart/vgrid', $data, True);
     $this->load->view('layouts/valuepicker_layout', array('content' => $content));
     return;
 }
 private function vcreate()
 {
     $data = array();
     $this->form_validation->set_rules('code', lang('CODE'), 'required|trim|callback_check_unique_code');
     $this->form_validation->set_rules('name', lang('NAME'), 'required|trim|callback_check_unique_name');
     $this->form_validation->set_rules('adress', lang('ADRESS'), 'required|trim|min_length[5]');
     $this->form_validation->set_rules('phones', lang('PHONES'), 'required|trim|min_length[5]');
     $this->form_validation->set_rules('fax', lang('FAX'), 'trim');
     $this->form_validation->set_rules('email', lang('EMAIL'), 'required|trim|valid_email');
     $this->form_validation->set_rules('mobile_phones', lang('MPHONES'), 'trim');
     $this->form_validation->set_rules('_cities_rid', lang('CITY'), 'required|trim');
     $this->form_validation->set_rules('descr', lang('DESCR'), 'trim|max_length[512]');
     $this->form_validation->set_rules('archive', lang('ARCHIVE'), 'trim');
     $data['title'] = lang('FILIALS_TITLE_CREATE');
     $data['orid'] = $this->get_orid();
     $data['success'] = null;
     if ($this->form_validation->run() === True) {
         if ($rid = $this->filials_model->create_record()) {
             $this->session->set_flashdata('success', True);
             redirect(get_currcontroller() . "/vedit/{$rid}", 'refresh');
开发者ID:vsanth,项目名称:travelcrm,代码行数:28,代码来源:filials.php

示例14: element

		</td>
	</tr>
	<tr>
		<td class="gridHeader" style="padding-left: 2px; white-space: nowrap;">
			<?if(element('delete_allow', $tools, null)) { ?>
				<input type="checkbox" name="all" id="call" value="1">
			<? } ?> 
		</td>
		<?foreach($fields as $key=>$field) { ?>
		<td class="gridHeader" width="<?php 
echo element('colwidth', $field, '');
?>
" style="white-space: nowrap;">
			<? if($field['sort']) { ?>
			<?php 
echo anchor(get_currcontroller() . '/sort/' . $key . '/doc_rid/' . $doc_rid, $field['label'], "title=\"" . $field['label'] . "\"");
?>
			&nbsp;&nbsp;&nbsp;
			<? if(element('c', $sort, null)==$key) { ?>
				<? if(element('r', $sort, null)=='ASC') { ?>
					<?php 
echo img('public/css/images/icons/arrow_down.gif');
?>
				<? } else {?>
					<?php 
echo img('public/css/images/icons/arrow_up.gif');
?>
				<? } ?>
			<? } else {?>
				<?php 
echo img('public/css/images/icons/arrow.gif');
开发者ID:vsanth,项目名称:travelcrm,代码行数:31,代码来源:grid.php

示例15: prop

				});
				return true;
				}
				return false;
			}
			
			function prop(){
				var dataStr = 'rows_action=prop&sum='+$('#sum').val()+'&'+$("input[name='f_sum']").serialize()+'&'+$("input[name='_filials_rid']").serialize()+'&'+$("input[name='f_rid[]']").serialize()+'&'+$("input[name='row_sum[]']").serialize();
				if(confirm('<?php 
echo lang('CONFIRM_PROP');
?>
')){
				$.ajax({
					type: "POST",
					url: "<?php 
echo site_url(get_currcontroller() . "/prop/go");
?>
",
					data: dataStr,
					success: function(msg){
						$('#rows_body').html(msg);
					}
				});
				return true;
				}
				return false;
			}

			$('#add_row').click(function(){ 
				addrow(); 
			});
开发者ID:vsanth,项目名称:travelcrm,代码行数:31,代码来源:rows.php


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