function loadLoginIcons() { $data['sitesConfig'] = $this->sitesConfig; if (!empty($data['sitesConfig'])) { lv('lib/oauth/loginicon', $data); } }
function lfv($view, $vars = array(), $return = FALSE) { $CI =& get_instance(); ll('frontview'); $CI->frontview->header($view); lv($view, $vars, $return); $CI->frontview->footer($view); }
function failedjsonlist() { $iDisplayStart = $this->input->get('iDisplayStart'); $limit = $this->input->get('iDisplayLength'); $keywords = $this->input->get('sSearch'); lm('bid_report_model'); $data['reports'] = $this->bid_report_model->getBidReportDetailsQuery($keywords, DOMAIN_SELL_FAILED, DOMAIN_BID_REPORT_FAILREASON_RESERVEPRICE, $limit, $iDisplayStart)->result_array(); $data['reportcount'] = $this->bid_report_model->getBidReportDetailsQuery($keywords, DOMAIN_SELL_FAILED, DOMAIN_BID_REPORT_FAILREASON_RESERVEPRICE)->num_rows(); lv('admin/abidreport/abidreport_failedjsonlist', $data); }
function footer($view) { //view同级下是否存在对应的header $header = $view . '_footer'; $viewPath = APPPATH . 'views/'; if (file_exists($viewPath . $header . '.php')) { lv($header); } else { lv('footer'); } }
s_scripts.js", "<?php echo lib(); ?> validate/jquery.validate.min.js", function(){ $("#l_form").validate({ highlight: function(element) { $(element).closest('.elVal').addClass("form-field error"); }, unhighlight: function(element) { $(element).closest('.elVal').removeClass("form-field error"); }, rules: { username: "******", password: "******" }, messages: { username: "******", password: "******" }, errorPlacement: function(error, element) { error.appendTo( element.closest(".elVal") ); } }); }); </script> <?php lv('auth/auth_footer');
function breadcrumb() { lv('admin/breadcrumb'); }
<div class="container search_page"> <div class="row"> <?php lv('profile/profile_sidebar'); ?> <div class="nine columns"> <div class="box_c"> <div class="box_c_heading cf"> <p>帐号信息</p> </div> <div class="box_c_content"> <div class="formRow"> <label for="v_email">Email:</label> <?php echo element('email', $user); ?> </div> <div class="formRow elVal"> <label for="v_realname">真实姓名:</label> <?php echo element('realname', $user); ?> </div> <div class="formRow elVal"> <label for="v_username">用户名:</label> <?php echo element('username', $user); ?> </div> <div class="formRow elVal"> <label for="v_tel">联系电话:</label>
function showMarketingSpot($name) { $CI =& get_instance(); lm('marketing_model'); $query = $CI->marketing_model->getMarketingSpotByName($name); if (!empty($query)) { //echo $query->template; lv($query->template, array('query' => $query)); } else { //echo "false"; } }
<div class="container search_page"> <div class="row"> <?php lv('page/page_sidebar'); ?> <div class="nine columns"> <div class="box_c"> <div class="box_c_heading cf"> <p><?php echo element('title', $page); ?> </p> </div> <div class="box_c_content"> <?php echo element('content', $page); ?> </div> </div> </div> </div> </div>
function chargeJsonList() { $iDisplayStart = $this->input->get('iDisplayStart'); $limit = $this->input->get('iDisplayLength'); $keywords = $this->input->get('sSearch'); lm('user_withdraw_charge_model'); $data['userCharge'] = $this->user_withdraw_charge_model->getAllWithdrawChargeListQuery(USER_WITHDRAW_WCTYPE_CHARGE, $keywords, $limit, $iDisplayStart)->result_array(); $data['userChargecount'] = $this->user_withdraw_charge_model->getAllWithdrawChargeListQuery(USER_WITHDRAW_WCTYPE_CHARGE, $keywords)->num_rows(); lv('admin/auser/auser_chargejsonlist', $data); }
function domainavgpricedata() { lm('bid_report_model'); $data['bidReportDataReport'] = $this->bid_report_model->getDomainAvgPriceDataReport(); lv('admin/areport/areport_domainavgpricedata', $data); }
function json() { $offset = $this->CI->input->get('iDisplayStart'); $limit = $this->CI->input->get('iDisplayLength'); $keywords = $this->CI->input->get('sSearch'); //get count $likeCount = 0; foreach ($this->fields as $field) { if ($field->like && !empty($keywords)) { if ($likeCount > 0) { $this->CI->db->or_like($field->name, $keywords); } else { $this->CI->db->like($field->name, $keywords); } $likeCount++; } } if (!empty($this->where)) { $this->CI->db->where($this->where); } if (!empty($this->orderby)) { $this->CI->db->order_by($this->orderby); } $this->CI->db->from($this->current_table); $data['datacount'] = $this->CI->db->count_all_results(); $select_str = ''; $likeCount = 0; foreach ($this->fields as $field) { if ($field->isdisplay || $field->primary_key) { $select_str .= $field->name . ','; } if ($field->like && !empty($keywords)) { if ($likeCount > 0) { $this->CI->db->or_like($field->name, $keywords); } else { $this->CI->db->like($field->name, $keywords); } $likeCount++; } } $this->CI->db->select(substr($select_str, 0, -1)); if (!empty($this->where)) { $this->CI->db->where($this->where); } if (!empty($this->orderby)) { $this->CI->db->order_by($this->orderby); } if (!empty($limit)) { $this->CI->db->limit($limit, $offset); } $query = $this->CI->db->get($this->current_table); //取关联数据 foreach ($this->fields as $field) { if (isset($field->relDisplay) && !empty($field->relDisplay)) { $name = $field->name; $relName = 'r_' . $field->name; foreach ($query->result() as $item) { $item->{$relName} = $this->getRelData($field->relDisplay, $item->{$name}); } } } $data['data'] = $query->result(); // var_dump($data['data']); //var_dump($this->CI->db->last_query()); $data['fields'] = $this->fields; $data['primary'] = $this->key; $data['url'] = $this->url; $data['action'] = $this->action; lv('lib/dbshortcut/list', $data); }