Jump to content
php.lv forumi

Search the Community

Showing results for tags 'ci compatibility'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • PHP
    • Interesanti palasīties
    • Iesācējiem
    • Vispārēji
    • Gatavi skripti
    • Freimworki, CMS
    • Datubāzes
  • Infrastruktūra, serveri, serveru programmatūra
    • Instalācija un konfigurācija
    • Hostinga piedāvājumi
    • Hostinga novērtējumi un atsauksmes
  • Pārlūkprogrammas daļa
    • HTML, XHTML
    • CSS
    • Javascript
    • Citas pārlūku vides un pārlūku valodas
    • Pārlūkprogrammas
  • Citas lietas
    • Darbs
    • Drošība
    • Manas lapu/darba novērtēšana
    • Saites uz noderīgiem resursiem
    • eKomercija un ePakalpojumi
  • php.lv
    • Netēma
    • Atsauksmes, ierosinājumi, lamu vārdi
    • Draza
  • Arhīvs
    • PHP
    • (X)HTML, CSS
    • php.lv

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. kontrolierim neizvada parastu dropdown, tas ir tukšs, man uz 5.2.x klons visu izvada, 5,3.x,, atgriež tukšu $sortiment_data function add($msg='') { $query = $this->membership_model->get_data(); //var_dump($query)); exit(); $this->data['header'] = $this->load->view('includes/header', array('data' => $query[0]), true); $this->data['footer'] = $this->load->view('includes/footer', array(), true); $add_last = $this->session->userdata('add_last'); if(isset($add_last) and is_array($add_last) and (int)$add_last['flip_flap_nr'] < 4){ $data = $add_last; $data['flip_flap_nr'] = $data['flip_flap_nr'] + 1; } else { $data = array( 'contract_nr' => '', 'DU_nr' => '', 'delivery_place' => '', 'auto_nr' => '', 'flip_flap_nr' => 1, 'sortiment' => '' ); } switch($query[0]->group_id) { case 1: $sortiment_data = $this->sortiment_model->get_sortiment_all(); break; case 2: $sortiment_data = $this->sortiment_model->get_sortiment_manager($query[0]->id); break; case 3: $sortiment_data = $this->sortiment_model->get_sortiment_manager($query[0]->parent_id); break; default: break; } $sortiment = $this->_sortiment($sortiment_data); $this->data['content'] = $this->load->view('add', array('sortiment' => $sortiment, 'data' => $data, 'message' => $msg), true); $this->load->view('includes/template', $this->data); } view <div id="add-measure-form"> <?php echo form_open('truckmeasure/add_measure'); echo form_fieldset(); echo validation_errors('<p class="error">'); echo $message; echo form_label('Līguma Nr:', 'contract_nr'); echo form_input('contract_nr', set_value('contract_nr', $data['contract_nr']), 'maxlenght="9"'); echo form_label('Darba uzdevuma Nr:', 'DU_nr'); echo form_input('DU_nr', set_value('DU_nr', $data['DU_nr']), 'maxlenght="7"'); echo form_label('Piegādes vieta:', 'delivery_place'); echo form_input('delivery_place', set_value('delivery_place', $data['delivery_place']), 'maxlenght="50"'); echo form_label('Automašīnas Nr:', 'auto_nr'); echo form_input('auto_nr', set_value('auto_nr', $data['auto_nr']), 'maxlenght="10"'); echo form_label('Kūleņa Nr:', 'flip_flap_nr'); echo form_dropdown('flip_flap_nr', array(1 => 'Nr. 1', 2 => 'Nr. 2', 3 => 'Nr. 3', 4 => 'Nr. 4'), (int) $data['flip_flap_nr']); echo form_label('Sortiments:', 'sortiment'); echo form_dropdown('sortiment', $sortiment, (int)$data['sortiment']); echo form_label('Platums:', 'width'); echo form_input('width', set_value('width', ''), 'maxlenght="3"'); echo form_label('Augstums:', 'height'); echo form_input('height', set_value('height', ''), 'maxlenght="3"'); echo form_label('Garums:', 'lenght'); echo form_input('lenght', set_value('lenght', ''), 'maxlenght="4"'); echo form_label('Koeficients:', 'coefficient'); echo form_input('coefficient', set_value('coefficient', ''), 'maxlenght="2"'); echo form_submit('submit', 'Pievienot'); echo form_fieldset_close(); echo form_close(); ?> </div> aha un iebrauc uz sitiena, kkur ir nekomblitāte ar 3.5.x :uz 5.2.x strādā private function _sortiment($data){ $retval = array(); foreach($data as $value){ $retval[(int)$value['ptl']] = $value['ptl'] . ' ' . $value['abbreviation']; } return $retval;
×
×
  • Create New...