</td> </tr> <tr><td>Tip korisnika: <?php if ($profile->user_type == 'admin') { echo 'Administrator'; } elseif ($profile->user_type == 'mech') { echo 'Serviser'; } elseif ($profile->user_type == 'client') { echo 'Klijent'; } ?> </td> </tr> <tr><td>Datum rođenja: <?php echo dateform($profile->datum_rodjenja); ?> </td> </tr> <tr><td>Adresa: <?php echo $profile->adresa; ?> </td> </tr> <tr><td>JMBG: <?php echo $profile->JMBG; ?> </td> </tr> <tr><td>Kontakt broj: <?php echo $profile->kontakt_broj; ?> </td> </tr>
<td><?php echo form_input(array('name' => 'ime', 'style' => 'width:100%'), set_value('ime', $user->ime)); ?> </td> </tr> <tr> <td>Prezime:</td> <!-- set_value() u svrhu ispisa već postojeće vrijednsti--> <td><?php echo form_input(array('name' => 'prezime', 'style' => 'width:100%'), set_value('prezime', $user->prezime)); ?> </td> </tr> <tr> <td>Datum rođenja:</td> <td><?php echo form_input(array('name' => 'datum_rodjenja', 'style' => 'width:100%'), set_value('datum_rodjenja', dateform($user->datum_rodjenja)), 'class="datepicker"'); ?> </td> </tr> <tr> <td>Adresa:</td> <td><?php echo form_input(array('name' => 'adresa', 'style' => 'width:100%'), set_value('adresa', $user->adresa)); ?> </td> </tr> <tr> <td>JMBG:</td> <td><?php echo form_input(array('name' => 'JMBG', 'style' => 'width:100%'), set_value('JMBG', $user->JMBG)); ?>
} else { echo " do danas"; } ?> <br><?php } ?> </td> <?php } ?> </tr> <tr><td>Datum rođenja: <?php echo dateform($user_profile->datum_rodjenja); ?> </td> </tr> <tr><td>Adresa: <?php echo $user_profile->adresa; ?> </td> </tr> <tr><td>JMBG: <?php echo $user_profile->JMBG; ?> </td> </tr> <tr><td>Kontakt broj: <?php echo $user_profile->kontakt_broj; ?> </td> </tr>
if ($klijent_row->preuzeto != TRUE) { ?> <tr><td> <?php if ($klijent_row->status == 'U TIJEKU') { ?> <p> Servisirano oružje: <?php echo $klijent_row->oruzije; ?> <br><br> Vaš servis je u tijeku i trajati će od <?php echo dateform($klijent_row->pocetak_servisa); ?> do <?php echo dateform($klijent_row->kraj_servisa); ?> . <br> NAPOMENA: krajnji datum servisa nije konačan i može se ažurirati. </p> <?php } elseif ($klijent_row->status == 'GOTOVO') { ?> <p> Servisirano oružje: <?php echo $klijent_row->oruzije; ?> <br><br>
<?php echo my_form_dropdown_2('name', 'serviser', $mechs_options, "", $css); //cms_helper ?> </td> </tr> <tr> <td>Početak servisa:</td> <td> <?php echo form_input(array('name' => 'pocetak_servisa', 'style' => 'width:100%'), set_value('pocetak_servisa', dateform($service->pocetak_servisa)), 'class="datepicker"'); ?> </td> </tr> <tr> <td></td> <td><?php echo form_submit('submit', 'Spremi', 'class="btn btn-inverse"'); ?> </td> </tr> </table>
<?php echo form_open(); ?> <table class="table"> <tr> <td>Kraj servisa:</td> <td> <?php // $date= 'kraj_servisa'; echo form_input($date); ?> <?php echo form_input('kraj_servisa', set_value('kraj_servisa', dateform($service_2->kraj_servisa)), 'class="datepicker" style="width:100%;"'); ?> </td> </tr> <tr> <td>Status:</td> <td> <?php echo my_form_dropdown('status', $options, "", 'style="width:100%;"'); ?> </td> </tr> <tr>