?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/application/views/Software/ |
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/sgms/application/views/Software/view_software_proposal.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar"> <label> <img src="<?=base_url()?>assets/images/add-icon.png" title="Add New" class="clickimage" onclick="addformdisplay('add_software_proposal','Software')" alt="Add New" align = "center" width="25" height="25" /> </label> </div> <div id="searchdiv"> <?php $attributes=array('id'=>'searchvalidateform','class'=>'customForm'); echo form_open('software/viewinsoftwaresearch/search_software_proposal/view_software_proposal/1',$attributes); if(isset($_SESSION['searchdata'])) { $searchdata=$_SESSION['searchdata']; if(!empty($searchdata)) { $searchtext=$searchdata['searchtext']; $searchfield=$searchdata['searchopt']; } else { $searchtext = ""; $searchfield = ""; } } else { $searchtext = ""; $searchfield = ""; } ?> Search For <input type="text" name="searchtext" id="searchtext" value="<?=$searchtext;?>"> In <select name="searchopt" id="searchopt"> <option value="customer_name">Select</option> <option <?php if ($searchfield == "customer_name") echo "selected"; ?> value="customer_name">Customer Name</option> <option <?php if ($searchfield == "software_proposal_date") echo "selected"; ?> value="software_proposal_date">Date</option> <option <?php if ($searchfield == "activity_name") echo "selected"; ?> value="activity_name">Project</option> <option <?php if ($searchfield == "proposal_code") echo "selected"; ?> value="proposal_code">Quotation Code</option> <option <?php if ($searchfield == "software_proposal_title") echo "selected"; ?> value="software_proposal_title">Title</option> </select> <input type="submit" id="button1" onclick="addformdata('searchvalidateform')" class="clickimage" value="Search"/> <?php echo form_close(); ?> </div> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Proposals</caption> <thead> <tr> <th>Sl No</th> <th>Date</th> <th>Title</th> <th>Customer Name</th> <th>Quotation Code</th> <th>Project</th> <th>Status</th> <th width="10%">Action</th> </tr> </thead> <tbody> <?php if ($viewinfo->num_rows() > 0) { $table="software_placement"; $field="software_proposal_id"; $z=1; $i=($pagenum-1)*10; foreach ($viewinfo->result() as $row) { if($z%2==0) $alt="alt"; else $alt="alt1"; $status=$this->mastermodel->number_rows('software_placement','software_proposal_id',$row->software_proposal_id) ?> <tr class="<?=$alt;?>"> <td><?=++$i;?></td> <td><?=$this->mastermodel->convertdatenormalformat($row->software_proposal_date);?></td> <td><a href="#" onclick="displayformdata('software','single_page','<?=$row->software_proposal_id;?>','software_proposal','software_proposal_id','single_software_proposal')" ><?=$row->software_proposal_title;?></a></td> <td><?=$row->customer_name;?></td> <td><?=$row->proposal_code;?></td> <td><?=$row->activity_name;?></td> <td> <?=$status>0 ?'Approved':'Not Approved';?></td> <td> <div id="console_fronticons"> <div class="fronticons"> <a class="inliexample2" href="#" onclick="showcommonuploaddiv('<?=$row->software_proposal_id;?>','software~viewinsoftwaresearch~search_software_proposal~view_software_proposal~1')" ><img src="<?=base_url()?>assets/images/upload.png" title="Upload File" width="20" height="20" alt="Upload" align = "center" class="clickimage" /></a> </div> <div class="fronticons"> <img src="<?=base_url()?>assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('software','edit_page','<?=$row->software_proposal_id;?>','software_proposal','software_proposal_id','edit_software_proposal')" alt="" /> </div> <div class="fronticons"> <img src="<?=base_url()?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="deletedata('software_proposal',<?=$row->software_proposal_id;?>,'software_proposal_id','software','viewinsoftwaresearch','search_software_proposal','view_software_proposal','<?=$table?>','<?=$field?>')" alt="Delete" align = "center"/> </div> </div> </td> <?php $z++; } ?> </tr> <?php } ?> </tbody> </table> <div style='display:none'> <div id="uploaddiv"></div> </div> <div id="pager"> <ul id="pagination-digg"> <li <?php if($pagenum>1){ ?>class="previous" <?php } else { ?> class="previous-off" <?php } ?> > <?php if($pagenum>1){ ?><a href="#" onclick="viewdata('software','viewinsoftwaresearch','search_software_proposal','view_software_proposal',<?=$pagenum-1?>);" > <?php } ?> «Previous </a> </li> <?php //Pagination Numbers for($i=$startpage; $i<=$endpage; $i++) { if($pagenum==$i ) { ?> <li class="active" ><?=$i?></li> <?php } else { ?> <li><a href="#" onclick="viewdata('software','viewinsoftwaresearch','search_software_proposal','view_software_proposal',<?=$i?>);"><?=$i?></a></li> <?php } } ?> <li <?php if($pagenum<$endpage){ ?> class="next" <?php } else { ?> class="next-off" <?php } ?>> <?php if($pagenum<$endpage){ ?><a href="#" onclick="viewdata('software','viewinsoftwaresearch','search_software_proposal','view_software_proposal',<?=$pagenum+1?>);"> <?php } ?> Next » </a> </li> </ul> </div>