?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Sales/ |
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/public_html/savoyglobal.net/drafthr/system/application/views/Sales/addsalesleads.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript"> jQuery(document).ready(function () { $('.one').datepick({dateFormat: 'dd-mm-yyyy'}); $('.two').datepick({dateFormat: 'dd-mm-yyyy'}); suggestemployee(); suggestcustomer('customer'); suggestcovercode('cover_id_direct'); }); </script> <script type="text/javascript"> function loadForm(val) { if(document.getElementById('cust_types').value!='Potential Customer') { document.getElementById('pot_Cust').style.display="block"; } else { document.getElementById('pot_Cust').style.display="none"; } } function searchCust(serctext,seloption,page) { $("#custlist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#custlist').load("<?php echo site_url('documents/listSearchcustomer/'); ?>/"+ seloption + "/" +page+ "/" +serctext ); } function usecust() { $("input#leadname").val($("input#customer").val()); } function showColorbox() { $("#PickCustomer").load("<?= site_url('documents/ajaxload/searchcustomer/customers/') ?>"); $("#pickCust123").colorbox({width:"50%",height:"70%", inline:true, href:"#PickCustomer"}); } function showcoverinsales() { var sgn=document.getElementById('segment_id').value; $("#coverlist").html("<img src='<?=base_url()?>/assets/images/loading.gif'/>"); $("#coverlist").load("<?= site_url('master/ajaxloadcovertype/viewcoversales/') ?>" +"/" +sgn); } </script> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" class="clickimage" title="Back" onclick="loadsalesleads('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25"/></label> </div> <?php $attributes = array('id' => 'customForm'); echo form_open_multipart('sales/addsalesleads',$attributes);?> <div id="select_cust_type" style="text-align:center" > <?php $options = array('Active Customer'=> 'Active Customer','Potential Customer'=> 'Potential Customer'); $fun = 'id="cust_types" onChange="loadForm(this);"'; ?> <label for="Name">Customer Status</label> <?php echo form_dropdown('status',$options,'Potential Customer',$fun);?> </div> <fieldset> <legend>Add Sales-Leads</legend> <ul> <li> <fieldset class ="leftone"style="float:left;width:40%;"> <legend>Lead Details</legend> <ul> <li> <label>Date</label> <input class="one" value="<?php echo date("d-m-Y"); ?>" id="date" name="date" readonly="true" type="text" style="background-image: url(../../../../assets/images/datefocus.gif);"> <span id="dateInfo" class="red_bold">*</span> </li> <li> <li id="pot_Cust" style="display:none"> <label for="Name">Select Customer</label> <input type="text" id="customer" size="35" style="width:170px;"> <span id="customeridInfo" class="red_bold">*</span> <img src="<?=base_url()?>/assets/images/use.png" class="clickimage" onclick="usecust()" alt="" width="20" height="20" /> </li> <li> <?php $data = array('name' => 'leadname','id'=> 'leadname');?> <label for="Name">Lead Name</label> <?php echo form_input($data).form_error($data); ?><span id="leadnameInfo" class="red_bold">*</span> </li> <li> <?php $data3 = array('name'=> 'business','id'=> 'business');?> <label for="Name">Business</label> <?php echo form_input($data3).form_error($data3); ?> </li> <li> <?php $data2 = array('name'=> 'contactperson','id'=> 'contactperson',);?> <label for="Name">Contact Person</label> <?php echo form_input($data2).form_error($data2); ?> </li> <li> <label for="Name">Designation</label> <?php echo form_input(array('name'=>'designation','id'=>'designation')); ?> </li> <li> <label for="Name">Office No</label> <?php echo form_input(array('name'=>'officeno','id'=>'officeno')); ?> </li> <li> <label for="Name">Mobile</label> <?php echo form_input(array('name'=>'mobile','id'=>'mobile')); ?> </li> <li> <label for="Name">Fax</label> <?php echo form_input(array('name'=>'fax','id'=>'fax')); ?> </li> <li> <label for="Name">Email</label> <?php echo form_input(array('name'=>'email','id'=>'email')); ?> </li> <li></li> </ul> </fieldset> </li> <li> <fieldset class="rightone" style="float:right;width:49%;"> <legend>Insurance Details</legend> <ul> <li> <label>Renewal Date</label> <input class="two" name="rendate" id="rendate" readonly="true" type="text" style="background-image: url(../../../../assets/images/datefocus.gif);"> </li> <li> <?php echo '<label for="Segment">Insurance Classification</label>'; echo "<select name='segment_id' id='segment_id' style='width:170px;' onchange=\"showcoverinsales();\">"; echo "<option value='0'>Select Insurance Classification</option>"; if (count($segment)) { foreach ($segment as $key => $list) { echo "<option value='". $list['id'] . "'>" . $list['segment'] . "</option>"; } echo "</select>"; } ?> <span id="segment_idInfo" class="red_bold">*</span> </li> <li id="coverlist"> <label for="country">Type Of Cover</label> <?php echo "<select name='cover_id_temp' id='cover_id' style='width:150px;' onchange='makereadonly()' >"; echo "<option value='0'>Select Type Of Cover</option></select>"; ?> <span id="cover_idInfo" class="red_bold">*</span> </li> <li >OR</li> <li> <label>Cover Code</label><input type="text" name="cover_id" id="cover_id_direct" onchange="makefalsevalue()" /> <input type="hidden" id="cover_st" value="false" /> <img src="<?=base_url()?>/assets/images/use.png" class="clickimage" onclick="findcovercode($('input#cover_id_direct').val())" alt="" width="20" height="20" /> </li> <li id="coverdisp"></li> <li> <label for="Name">Remarks</label> <?php echo form_textarea('remarks'); ?> </li> <li> <label>Employee Name:</label> <input type="text" id="employee" size="35" style="width:170px;"> <input type="hidden" name="employee_id" id="employee_id"><span id="employeeInfo" class="red_bold">*</span> </li> <li></li> </ul> </fieldset> </li> <li> <label for="submit"> </label> <button type="submit" class="clickimage" id="submit" onclick="return doallthethree();">Save</button> </li> </ul> </fieldset> <?php echo form_close();?> <div style='display:none'> <div id='PickCustomer' style='padding:10px; background:#fff;'> </div> </div>