?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Master/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Master/edit_mycompanypage.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewcompany();" alt="Back" align = "center" width="25" height="25" /></label> </div> <?php $result= $company->row(); $attributes = array('id' => 'customForm'); echo form_open_multipart('master/editmycompany',$attributes);?> <fieldset> <legend>Edit Company</legend> <table> <tr> <td> <label for="compname">Company Name</label> </td> <td height="55px"> <input type="text" name="companyname" id="companyname" value="<?=$result->company?>"/><br/> <span id="companynameInfo" class="red_bold">*</span> </td> </tr> <tr> <td> <label> Address</label> </td> <td> <textarea id="address" name="address" value=""><?=$result->address?></textarea> </td> </tr> <tr> <td> <label> Telephone No</label> </td> <td> <input type="text" id="phone" name="phone" value="<?=$result->phone?>"/> <input type="hidden" id="my_cid" name="my_cid" value="<?=$result->id?>"/> </td> </tr> <tr> <td> <label for="fax"> Fax</label> </td> <td> <input type="text" id="fax" name="fax" value="<?=$result->fax?>"/> </td> </tr> <tr> <td> <label for="email"> E-mail</label> </td> <td> <input type="text" id="email" name="email" value="<?=$result->email?>"/> </td> </tr> <tr> <td> <label for="website"> Website</label> <input type="hidden" id="oldlogo" name="oldlogo" value="<?=$result->filename?>"/> </td> <td> <input type="text" id="website" name="website" value="<?=$result->website?>"/> </td> </tr> <tr> <td> <label for="fisyear"> Fiscal Year</label> </td> <td> <select name="fyear" id="fyear"> <?php $fid=$result->fyear; $get_dat= $this->mastermodel->get_data_srow('fiscal_year',$fid,'id'); $begind=$get_dat->begin; $clos=$get_dat->closed; $endd=$get_dat->end; //$clos= $this->customermodel->getSingleFieldValue('fiscal_year','closed','id',$fid); if($clos==1) $act=' Closed'; else $act=' Active'; // $endd= $this->customermodel->getSingleFieldValue('fiscal_year','end','id',$fid); $begindat = $this->mastermodel->convdatformat($begind); $enddat = $this->mastermodel->convdatformat($endd); echo '<option value="'.$fid.'">'.$begindat.' to '.$enddat.'-'. $act.'</option>'; $fyear=$this->mastermodel->getdatas('fiscal_year'); if (count($fyear)) { foreach ($fyear as $key => $acc) { if($acc['closed']==1) $closed=' Closed'; else $closed=' Active'; $begin = $this->mastermodel->convdatformat($acc['begin']); $end = $this->mastermodel->convdatformat($acc['end']); if($fid!=$acc['id']) echo "<option value='".$acc['id']. "' >" .$begin.' to '. $end .'-'. $closed. "</option>"; } } ?> </select><span id="fyearInfo" class="red_bold">*</span> </td> </tr> <tr> <td> <label for="logoupload">Upload Logo</label> </td> <td> <input type="file" id="logoup" name="logoup" onchange="checkfile('mycompany')"/> </td> </tr> </table> <li></li> <fieldset> <legend>Contact Person Details</legend> <li> <input name="addRows" value="Add More" onclick="addRowToTable();" title="Add more contact person details." type="button"> <input name="deleteRows" value="Remove" onclick="removeRowFromTable();" title="Delete the last contact person details." type="button"> </li> <li></li> <table id="addrow" border="0" cellpadding="0" cellspacing="0" width="80%"> <tbody><tr class="red_bold" align="left" valign="top"> <td width="25%">Name</td> <td width="18%">Designation</td> <td width="18%">Direct Phone</td> <td width="24%">Mobile</td> <td width="15%">Email</td> </tr> <?php $id=1; foreach ($mycompany_contact as $contact) { ?> <tr class="bold_black" align="left" valign="top"> <td><input name="txt_conName_<?=$id?>" id="txt_conName_<?=$id?>" value="<?=$contact['name']?>" style="width: 150px;" type="text"> <input name="hid_conCnt" id="hid_conCnt" value="3" type="hidden"></td> <td><input name="txt_conDesig_<?=$id?>" id="txt_conDesig_<?=$id?>" style="width: 100px;" value="<?=$contact['designation']?>" type="text"></td> <td><input name="txt_conPho_<?=$id?>" id="txt_conPho_<?=$id?>" style="width: 100px;" value="<?=$contact['phone']?>" type="text"></td> <td><input name="txt_conMob_<?=$id?>" id="txt_conMob_<?=$id?>" style="width: 100px;" value="<?=$contact['mobile']?>" type="text"></td> <td><input name="txt_conEmail_<?=$id?>" id="txt_conEmail_<?=$id?>" style="width: 150px;" value="<?=$contact['email']?>" type="text"></td> </tr> <input name="hidc_<?=$id?>" id="hidc_<?=$id?>" value="<?=$contact['id']?>" type="hidden"> <?php $id++; } ?> </tbody></table> </fieldset> <table> <tr> <td></td> <td> <button type="submit" name="addmycomp" onclick="return validateform('companyname');" id="addmycomp"> Update </button> </td> </tr> </table> </fieldset> <?php echo form_close(); ?>