Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: codes.php
<?php $PCK_TITLE = 'PackageTitle'; $CATEGORY = 'Category'; $rmsLink = ""; $rmOrders = 0; if($rms == '3') { $rmOrders = 1; $rmsLink = "&rm=1&rms=3"; } ?> <style> .orders{ /*overflow: auto;*/ resize: both !important; } </style> <div class="page-header border-bottom-0 pt-4 content"> <div class="form-group row"> <div class="col-lg-12"> <?php $USER_ID_BTNS = $uId; if($USER_ID_BTNS){ include APPPATH.'scripts/userbtns.php'; }else { ?> <div class="btn-toolbar"> <div class="btn-group"> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary dropdown-toggle mr-1" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true"><?php echo $this->lang->line('BE_LBL_285'); ?></button> <ul class="dropdown-menu" role="menu" style="text-align:left;"> <li class="dropdown-item"><a href="<?php echo base_url($this->config->item('apanel_name')."/services/codes?codeStatusId=1&searchType=1$rmsLink");?>"><?php echo $this->lang->line('BE_LBL_286'); ?></a></li> <li class="dropdown-item"><a href="<?php echo base_url($this->config->item('apanel_name')."/services/newimeiorders?frmId=96&fTypeId=16$rmsLink") ?>"><?php echo $this->lang->line('BE_LBL_287'); ?></a></li> </ul> </div> <div class="btn-group"> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary dropdown-toggle mr-1" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true"><?php echo $this->lang->line('BE_LBL_288'); ?></button> <ul class="dropdown-menu" role="menu" style="text-align:left;"> <li class="dropdown-item"><a href="<?php echo base_url($this->config->item('apanel_name')."/services/codes?codeStatusId=4&searchType=3&uId=$uId$rmsLink");?>"><?php echo $this->lang->line('BE_LBL_289'); ?></a></li> <li class="dropdown-item"><a href="<?php echo base_url($this->config->item('apanel_name')."/services/multilinebulkreply?frmId=101&fTypeId=16$rmsLink");?>"><?php echo $this->lang->line('BE_LBL_290'); ?></a></li> </ul> </div> <div class="btn-group"> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary dropdown-toggle mr-1" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true"><?php echo $this->lang->line('BE_LBL_291'); ?></button> <ul class="dropdown-menu" role="menu" style="text-align:left;"> <li class="dropdown-item"><a href="<?php echo base_url($this->config->item('apanel_name')."/services/codes?uId=$uId$rmsLink") ?>"> <?php echo $this->lang->line('BE_LBL_291'); ?></a></li> </ul> </div> <div class="btn-group"> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary dropdown-toggle mr-1" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true"><?php echo $this->lang->line('BE_LBL_292'); ?></button> <ul class="dropdown-menu" role="menu" style="text-align:left;"> <li class="dropdown-item"><a href="<?php echo base_url($this->config->item('apanel_name')."/services/verifyorders?uId=$uId$rmsLink");?>"><?php echo $this->lang->line('BE_LBL_292'); ?></a></li> </ul> </div> <!-- /btn-group --> </div> <?php } ?> </div> </div> </div> <!-- /page header --> <div class="content pt-0"> <?php if($pageType != '1') { ?> <div class="card card-collapsed"> <div class="card-header header-elements-inline" style="height: 42px;"> <h5 class="card-title cardCollapse">Search Orders</h5> <div class="header-elements"> <div class="list-icons"> <a class="list-icons-item rotate-180" data-action="collapse"></a> </div> </div> </div> <div class="card-body CollapsedCardBody" style="display: none;"> <div class="row"> <div class="col-xl-12"> <?php echo form_open(base_url($this->config->item('apanel_name').'/services/codes') . get_query_string(), 'name="frm" id="frm" ');?> <input type="hidden" name="records" value="<?php echo $limit; ?>" /> <input type="hidden" name="bulk" value="<?php echo $bulk;?>" /> <input type="hidden" name="uId" value="<?php echo $uId;?>" /> <input type="hidden" name="pT" value="<?php echo $pageType;?>" /> <input type="hidden" name="planId" value="<?php echo $planId;?>" /> <input type="hidden" name="selectAll" id="selectAll" value="0" /> <input type="hidden" name="start" id="start" value="0" /> <input type="hidden" name="searchType" id="searchType" value="<?php echo $searchType; ?>" /> <input type="hidden" name="oB" id="oB" value="<?php echo $orderBy; ?>" /> <input type="hidden" name="applyAPI" value="<?php echo $applyAPI; ?>" /> <input type="hidden" name="packId" value="<?php echo $packId;?>" /> <input type="hidden" name="rm" value="<? echo $rmOrders;?>" /> <input type="hidden" name="rms" value="<? echo $rms;?>" /> <?php include APPPATH.'scripts/bulksearchsection.php'; ?> <?php echo form_close() ;?> </div> </div> </div> </div> <?php } ?> <!--/************************MODAL*************************************/--> <!-- Modal --> <div class="modal fade" id="GsmModal" tabindex="-1" role="dialog" aria-labelledby="GsmModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Modal title</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="row"> <div class="col-lg-12"> <div class="form-group"> <div class="border p-3 rounded"> <div class="form-check form-check-inline mt-0"> <label class="form-check-label"> <input type="checkbox" class="form-check-input" name="chkFields" id="chkFields" value="1"> Show Labels of Fields </label> </div> <div class="form-check form-check-inline mt-0"> <label class="form-check-label"> <input type="checkbox" class="form-check-input" name="chkLineBreak" id="chkLineBreak" value="1"> Add Line break between orders </label> </div> </div> </div> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary" onclick="SetOptions()" data-dismiss="modal"><span id="buttonLable"><?php echo $this->lang->line('BE_LBL_304'); ?></span></button> </div> </div> </div> </div> <!--/************************MODAL END*************************************/--> <div class="card"> <div class="form-group row"> <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12"> <div class="card-body"> <!-- Our Working Area Start --> <?php if ((isset($message) && $message != '') || ($message = $this->session->flashdata('message'))) { ?> <div class="form-group row"> <div class="col-lg-12"> <div class="alert alert-success"><?php echo $message; ?></div> </div> </div> <?php } ?> <?php if (isset($errorMsg) && $errorMsg != '') { ?> <div class="form-group row"> <div class="col-lg-12"> <div class="alert alert-success"><?php echo $errorMsg; ?></div> </div> </div> <?php } ?> <?php if(isset($_POST['hdsbmt']) && $cldFrm == '4') { //ahmed?> <div class="page-header border-bottom-0"> <div class="page-header-content header-elements-md-inline"> <div style="padding-top: 10px !important;" class="page-title d-flex"> <h4> <a href="javascript:void(0)" class="BackButton-Link" onclick="goBack()"><i class="icon-arrow-left52 mr-2"></i></a> <?php echo $rmOrders == '0' ? $this->lang->line('BE_LBL_712') : $this->lang->line('CUST_LBL_167'); ?> </h4> </div> <div align="right"> <a href="JavaScript:backToList();" class="btn btn-primary btn-default"><span class="fa fa-angle-double-left"></span> Back To List</a> </div> </div> </div> <div class="content pt-0"> <div class="from-group row"> <?php if($LINKED_IMEIS != '') echo '<div class="alert alert-danger">The following IMEIs already exist and marked as linked '.$LINKED_IMEIS.'</div>'; ?> </div> <div class="card"> <div class="card-body"> <div class="row mb-3"> <div class="col-lg-12"> <?php echo $strIMEIs;?> </div> </div> <div class="row mb-3"> <div class="col-lg-5 col-md-5 col-sm-5 col-xl-5"> <div class="btn-group"> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary" onclick="downloadOrders('<?php echo $ORDER_IDS;?>');"><i class="fa fa-download"></i> Download Orders</button> </div> </div> <div class="col-lg-7 col-md-7 col-sm-7 col-xl-7"> <div class="input-group"> <input type="text" class="form-control" id="txtEmlAddrss" name="txtEmlAddrss" placeholder="Email Address"> <input type="hidden" name="acceptedIds" id="acceptedIds" value="<?php echo $ORDER_IDS; ?>" /> <span class="input-group-btn"> <button class="btn dark ThemeColorButton" type="button" id="btnSendEmail" name="btnSendEmail"><i class="fa fa-envelope"></i> Send Email</button> <img style="display:none;" id="imgSendEmail" src="<?php echo base_url('assets/img/loading.gif');?>" border="0" alt="Please wait..." /> </span> </div> </div> </div> </div> </div> </div> <?php } ?> <div class="form-group row"> <div class="col-lg-12"> <!--form moved in above div--> <?php $js = 'onSubmit="return validate(-1);"'; ?> <?php echo form_open(base_url($this->config->item('apanel_name').'/services/codes') . get_query_string(), 'name="frmMain" id="frmMain" '. $js ); ?> <?php if($applyAPI == '1') { $row = fetch_api_srv_history_by_id($packId ,$sc); if(isset($row->APIId) && $row->APIId != '') { $lastAPIId = $row->APIId; $lastAPIServiceId = $row->APIServiceId; } ?> <div class="page-header border-bottom-0"> <div class="page-header-content header-elements-md-inline"> <div style="padding-top: 10px !important;" class="page-title d-flex"> <h4>Apply API</h4> </div> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <div class="form-group"> <label class="control-label">Choose API</label> <?php $api_data = get_api_data(); ?> <select name="apiId" id="apiId" class="form-control select2me" data-placeholder="<?php echo $this->lang->line('BE_LBL_278'); ?>"> <option value="0"><?php echo $this->lang->line('BE_LBL_278'); ?></option> <?php FillCombo($lastAPIId, $api_data); ?> </select> <input type="hidden" name="sc" value="<?php echo $sc; ?>"> </div> </div> <div class="col-lg-12"> <div class="form-group"> <label class="control-label">Choose Supplier Service</label> <select name="supplierPackId" id="supplierPackId" class="form-control select2me" data-placeholder="<?php echo $this->lang->line('BE_LBL_274'); ?>"> <option value="0"><?php echo $this->lang->line('BE_LBL_274'); ?></option> <?php if($lastAPIId > 0) { $rsSrvcs = fetch_supplier_services($lastAPIId ,$sc); foreach($rsSrvcs as $row) { $selected = ''; if($row->Id == $lastAPIServiceId) $selected = 'selected'; $optionVal = stripslashes($row->ServiceName); if($row->ServicePrice != '') $optionVal .= ' - '.stripslashes($row->ServicePrice).' Credits'; if($row->ServiceTime != '') $optionVal .= ' - '.stripslashes($row->ServiceTime); echo "<option value='".$row->Id."' $selected>".$optionVal."</option>"; } } ?> </select><img style="display:none;" id="imgSrvcLoader" src="<?php echo base_url('assets/img/loading.gif');?>" border="0" alt="Please wait..." /> </div> </div> </div> <?php } ?> <div class="page-header border-bottom-0"> <div class="page-header-content header-elements-md-inline"> <div style="padding-top: 10px !important;" class="page-title d-flex"> <h4> <a href="javascript:void(0)" class="BackButton-Link" onclick="goBack()"><i class="icon-arrow-left52 mr-2"></i></a> <?php echo $rmOrders == '0' ? $this->lang->line('CUST_LBL_164') : $this->lang->line('CUST_ORDERS_REMOTE'); ?> </h4> </div> </div> </div> <?php if($searchType == '3') { ?> <div class="form-group row"> <div class="col-lg-10"> <div class="form-group"> <label class="control-label"><strong>Enter code data to enter against all selected jobs</strong></label> <input type="text" class="form-control" placeholder="Enter code data to enter against all jobs" name="txtBulkCodeVal" /> </div> </div> <div class="col-lg-1" style="padding-top:26px;"> <input type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> value="<?php echo $this->lang->line('BE_LBL_194'); ?>" class="btn btn-primary GreenThemeButton" onClick="setValue('6');" /> </div> </div> <?php } ?> <div class="table-responsive"> <input type="hidden" name="hdsbmt" /> <table class="table table-striped table-bordered table-advance table-hover"> <thead> <tr class="bg-primary"> <th nowrap="nowrap">Sr.</th> <?php if($searchType == '3') { ?> <th width="5%"> <?php echo $this->lang->line('BE_LBL_194b'); ?><br /><input type="checkbox" id="chkSelect1" name="chkSelect1" onClick="selectAllChxBxs('chkSelect1', 'chkReply', <?php echo $count; ?>);" value="true"> </th> <?php } ?> <th nowrap="nowrap"><?php echo $this->lang->line('BE_LBL_589'); ?></th> <th><?php echo $this->lang->line('BE_PCK_HD_4'); ?></th> <th><?php echo $this->lang->line('BE_INDEX_USRNAME'); ?></th> <th><?php echo $this->lang->line('BE_CODE_1'); ?></th> <th>Date</th> <?php if($searchType == '3') echo '<th>'.$this->lang->line('BE_CODE_6').'</th>'; ?> <?php echo '<th style="text-align:center">'; if($searchType == '3') echo $this->lang->line('BE_LBL_308').' <br> Download'; ?> <br> <input type="checkbox" class="chkSelect" id="chkSelect" name="chkSelect" onClick="selectAllChxBxs('chkSelect', 'chkCodes', <?php echo $count; ?>);" value="true"> </th> </tr> </thead> <tbody> <?php if($count != 0) { $i = 0; foreach($rsCodes as $row) { $strAPI = ''; $apiError = ''; $strAPIError = 'Order Did not go through API - '; $strAPIError .= $row->MessageFromServer == '' ? 'No Error reported' : stripslashes($row->MessageFromServer); if($row->API != '-') $strAPI = '<br />Replied By: <font style="color:#ABABAB;">'.stripslashes($row->API).'</font>'; $imeiInChkBx = $row->IMEINo == '' ? stripslashes($row->SerialNo) : $row->IMEINo; if($row->OrderAPIId > 0 && $row->CodeStatusId =='1' && $row->CodeSentToOtherServer == '0' && $row->HiddenStatus == '1') $apiError = '<img src="'.base_url().'assets/images/red-flags-icon-png-7.png" width="20" height="20" title="'.$strAPIError.'" />'; $orderCode = stripslashes($row->Code); if(isset($IMEIS_ARR[$row->IMEINo]) && $cldFrmBulk == '1') $orderCode = stripslashes($IMEIS_ARR[$row->IMEINo]); $order_imei = stripslashes($row->IMEINo); $array = str_split($order_imei, 15); $order_imei= implode("<br>",$array); ?> <tr> <td><?php echo $i+1; ?>.</td> <?php if($searchType == '3') { ?> <td align="center"> <input type="checkbox" id="chkReply<?php echo $i; ?>" name="chkReply[]" value="<?php echo $row->CodeId.'|'.$row->UserId.'|'.$row->Credits.'|'.$imeiInChkBx.'|'.$i.'|'.$row->PackageId.'|'.$row->OrderType; ?>" <?php if($cldFrmBulk == '1') echo 'checked';?> /> </td> <?php } ?> <td><a class="ThemeBlackText" href="<?php base_url($this->config->item('apanel_name').'/services/');?>code?id=<?php echo($row->CodeId);?>">#<?php echo $row->CodeId;?></a> <?php echo $apiError;?></td> <td width="200px;"> <?php echo stripslashes($row->PackageTitle);?><br /> <b><?php echo roundMe($row->ServiceCredits) < 1 ? roundMe($row->Credits) : roundMe($row->ServiceCredits) .'</b> '.$defaultCurrency;?><br /> <?php if($row->OrderCostPrice > 0 || 1) { ?> <span id="spnPrft_<?php echo $row->CodeId;?>" class="badge badge-<?php echo $row->CodeStatusId == '3' ? 'danger' : 'info'; ?>"> <?php echo roundMe($row->Profit);?> </span> <br /> <?php } echo stripslashes($row->TimeTaken);?> </td> <td><a class="ThemeGreenText" href="<?php echo base_url($this->config->item('apanel_name').'/services/overview?id='.$row->UserId);?>"><?php echo $row->UserName;?></a><br /><?php echo $row->IP;?></td> <td><?php echo $order_imei; ?></td> <td> Ordered:<br /><font style="color:#ABABAB;"><?php echo $row->RequestedAt; ?></font><br /> Replied:<br /><font style="color:#ABABAB;"><?php echo $row->ReplyDtTm; ?></font> <?php if($row->CodeStatusId!=4){ echo $strAPI; } ?> </td> <?php if($searchType == '3') { ?> <td> <textarea class="form-control orders" placeholder="Enter Data" style="width:100%; font-size:11px; height:100px;" name="txtCode<?php echo $i; ?>"><?php echo strip_tags($orderCode); ?></textarea> </td> <?php } ?> <td align="center"> <input class="chkSelect" type="checkbox" id="chkCodes<?php echo $i; ?>" name="chkCodes[]" value="<?php echo $row->CodeId.'|'.$row->UserId.'|'.$row->Credits.'|'.$imeiInChkBx.'|'.$i.'|'.$row->PackageId.'|'.$row->OrderType; ?>" <?php if($cldFrmBulk == '1' && $blkReplyType == '1') echo 'checked';?> /> <br /> <font <?php echo getOrderBGColor($row->CodeStatusId); ?>> <?php echo stripslashes($row->CodeStatus); ?> </font> <? if($row->LinkedOrderId != 0 && $row->CodeStatusId != 3) echo '<span class="badge badge-warning">Linked To: '.$row->LinkedOrderId.'</span>'; ?> <?php if($row->Profit != 0) { ?> <br> <a title="Remove profit for this order" class="btn btn-xs RemoveBTN" style="background-color:RED; color:#FFFFFF;padding: 0 5px;" href="JavaScript:void(0);" onclick="removeProfit('<?php echo $row->CodeId?>', '0');"><i class="fa fa-minus"></i></a> <?php } ?> </td> </tr> <?php $i++; } } else echo '<tr><td colspan="10">'.$this->lang->line('BE_GNRL_9').'</td></tr>'; ?> </tbody> </table> </div> <div class="form-group row"> <div class="col-lg-12"> <?php if($searchType == '1' || $searchType == '2') { ?> <div class="btn-toolbar margin-bottom-10"> <div class="mt-2"> <button type="button" data-toggle="modal" data-target="#GsmModal" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary" onClick="setValue(100);setTitle('<?php echo $this->lang->line('BE_LBL_40'); ?>')"><i class="fa fa-download"></i> <?php echo $this->lang->line('BE_LBL_40'); ?></button> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-warning" onClick="exportOrders();"><i class="fa fa-share"></i> Export Orders</button> <button type="button" data-toggle="modal" data-target="#GsmModal" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary" onClick="setValue(4);setTitle('<?php echo $this->lang->line('BE_LBL_304'); ?>')"><i class="fa fa-check"></i> <?php echo $this->lang->line('BE_LBL_304'); ?></button> <button type="button" data-toggle="modal" data-target="#GsmModal" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary" onClick="setValue(4);document.getElementById('chkSelect').checked = true;selectAllChxBxs('chkSelect', 'chkCodes', <?php echo $count; ?>);setTitle('<?php echo $this->lang->line('BE_LBL_305'); ?>');"><i class="fa fa-check"></i> <?php echo $this->lang->line('BE_LBL_305'); ?></button> <button type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-danger" onClick="setValue('5');"><i class="fa fa-ban"></i> <?php echo $this->lang->line('BE_LBL_306'); ?></button> <?php if($applyAPI == '1') { ?> <input type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> value="Apply API" class="btn ThemeGreenBtn" onClick="setValue('7');" /> <?php } ?> </div> </div> <?php } else { ?> <div class="mt-2"> <button type="button" data-toggle="modal" data-target="#GsmModal" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary" onClick="setValue(100);setTitle('<?php echo $this->lang->line('BE_LBL_40'); ?>')"><i class="fa fa-download"></i> <?php echo $this->lang->line('BE_LBL_40'); ?></button> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-warning" onClick="exportOrders();"><i class="fa fa-share"></i> Export Orders</button> </div> <?php } ?> <input type="hidden" name="oB" id="oB" value="<?php echo $orderBy; ?>" /> <input type="hidden" name="applyAPI" value="<?php echo $applyAPI; ?>" /> <input type="hidden" value="0" name="cldFrm" id="cldFrm" /> <input type="hidden" name="uId" value="<?php echo $uId;?>" /> <input type="hidden" name="bulk" value="<?php echo $bulk;?>" /> <input type="hidden" name="searchType" id="searchType" value="<?php echo $searchType; ?>" /> <input type="hidden" name="codeStatusId" id="codeStatusId" value="<?php echo $codeStatusId; ?>" /> <input type="hidden" name="hdsbmt" /> <input type="hidden" name="printFields" id="printFields" value="0" /> <input type="hidden" name="addNL" id="addNL" value="0" /> <input type="hidden" name="packId" value="<?php echo $packId;?>" /> <input type="hidden" name="txtFromDt" id="txtFromDt" value="<?php echo $dtFrom; ?>" /> <!--============================= SEARCH FIELDS ==================================--> <input type="hidden" name="packageId" value="<?php echo $packageId; ?>" /> <input type="hidden" name="codeStatusId" value="<?php echo $codeStatusId; ?>" /> <input type="hidden" name="txtBulkIMEIs" value="<?php echo @$this->input->post('txtBulkIMEIs'); ?>" /> <input type="hidden" name="txtUName" value="<?php echo $uName; ?>" /> <input type="hidden" name="records" value="<?php echo $limit; ?>" /> <input type="hidden" name="start" value="<?php echo $start; ?>" /> <input type="hidden" name="sc" id="sc" value="<?php echo $sc; ?>" /> <input type="hidden" name="pT" value="<?php echo $pageType;?>" /> <input type="hidden" name="rm" value="<? echo $rmOrders;?>" /> <input type="hidden" name="rms" value="<? echo $rms;?>" /> <!--============================= SEARCH FIELDS ==================================--> </div> </div> <?php echo form_close(); ?> <?php echo form_open(base_url($this->config->item('apanel_name').'/services/codes').'?packId='.$packId.'&codeStatusId='.$codeStatusId.'&pT='.$pageType.'&searchType=3&txtFromDt=' , 'name="frmPaging" id="frmPaging"');?> <input type="hidden" name="uId" value="<?php echo $uId;?>" /> <input type="hidden" name="planId" value="<?php echo $planId;?>" /> <input type="hidden" name="selectAll" id="selectAll" value="0" /> <input type="hidden" name="start" id="start" value="0" /> <input type="hidden" name="searchType" id="searchType" value="<?php echo $searchType; ?>" /> <input type="hidden" name="oB" id="oB" value="<?php echo $orderBy; ?>" /> <input type="hidden" name="applyAPI" value="<?php echo $applyAPI; ?>" /> <input type="hidden" name="packId" value="<?php echo $packId;?>" /> <input type="hidden" name="pT" value="<?php echo $pageType;?>" /> <input type="hidden" name="packageId" value="<?php echo $packageId; ?>" /> <input type="hidden" name="page_name" value="<?php echo base_url($this->config->item('apanel_name').'/services/codes').'?packId='.$packId.'&codeStatusId='.$codeStatusId.'&pT='.$pageType.'&searchType=3&txtFromDt='; ?>" /> <input type="hidden" name="codeStatusId" value="<?php echo $codeStatusId; ?>" /> <input type="hidden" name="txtFromDt" value="<?php echo $dtFrom; ?>" /> <input type="hidden" name="txtToDt" value="<?php echo $dtTo; ?>" /> <input type="hidden" name="txtOrderNo" value="<?php echo $orderNo; ?>" /> <input type="hidden" name="txtUName" value="<?php echo $uName; ?>" /> <input type="hidden" name="txtBulkIMEIs" value="<?php echo @$this->input->post_get('txtBulkIMEIs'); ?>" /> <input type="hidden" name="rm" value="<? echo $rmOrders;?>" /> <input type="hidden" name="rms" value="<? echo $rms;?>" /> <div class="form-group row"> <div class="col-lg-10"> <div class="form-group"> <label class="control-label"><strong><?php echo $this->lang->line('recordsPerPage'); ?></strong></label> <div class="table-responsive"> <table> <tr> <td> <input type="text" class="form-control" placeholder="Enter Custom Page Size" style="width:180px;" name="records" value="<?php echo $limit?>" /> </td> <td> <button type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary" onClick="setValue('5');"><i class="fa fa-check"></i> Set</button> </td> </tr> </table> </div> </div> </div> <div class="col-lg-2"> <?php if($count != 0) { $row=get_codes_users_data($strWhere); $totalRows = $row->TotalRecs; if($totalRows > $limit) { $whichFrm = $pageType != '1' ? 'frm' : 'frmPaging'; doPages_DropDown($page_name, $back, $start, $txtlqry, $totalRows, $limit, $eu, $pLast, $thisp, $next, $whichFrm); } } ?> </div> </div> <?php echo form_close();?> <?php echo form_open(base_url($this->config->item('apanel_name').'/services/codes?bulk=1&searchType=3&frmId=99&fTypeId=16'),'name="frmIds" id="frmIds"');?> <input type="hidden" name="hdnOrdrIds" id="hdnOrdrIds" value="<?php echo $arcIds;?>" /> <input type="hidden" name="pT" value="<?php echo $pageType;?>" /> <input type="hidden" name="rm" value="<? echo $rmOrders;?>" /> <input type="hidden" name="rms" value="<? echo $rms;?>" /> <?php echo form_close();?> </div> </div> </div> </div> </div> </div> </div> <script> function downloadIMEIs() { var strIds = validate('0'); if(strIds != false) { var url = '<?php echo base_url() . $this->config->item('apanel_name'); ?>/services/downloadIMEIs?ids=' + strIds; if(document.getElementById("chkFields").checked) { url = url+ '&printFields=1'; } else { url = url+ '&printFields=0'; } if(document.getElementById("chkLineBreak").checked) { url = url+ '&addNL=1'; } else { url = url+ '&addNL=0'; } url=url.replace(/\=0,/g, '='); window.location.href = url; } } function downloadOrders(ids) { window.location.href = '<?php echo base_url() . $this->config->item('apanel_name'); ?>/services/downloadIMEIs?ids=' + ids + '&printFields=' + <?php echo "$printFields"; ?> + '&addNL=' + <?php echo "$addNL"; ?>; } function exportOrders() { var strIds = validate('0'); if(strIds != false) window.location.href ='<?php echo base_url() . $this->config->item('apanel_name'); ?>/services/exportorders?ids=' + strIds; } function validate(cldFrm) { var totalCodes = <?php echo $count; ?>; var searchType = <?php echo $searchType; ?>; var strIds = '0'; var ctrlName = 'chkCodes'; if(document.getElementById('cldFrm').value == '6') ctrlName = 'chkReply'; for(var i=0; i<totalCodes; i++) { if(document.getElementById(ctrlName+i).checked) { arr = document.getElementById(ctrlName+i).value.split('|'); strIds += ',' + arr[0]; } } if(strIds == '0') { alert('<?php echo $this->lang->line('BE_LBL_53'); ?>'); return false; } if(cldFrm == '-1' && document.getElementById('cldFrm').value == '3') { if(document.getElementById('blkCodeStatusId').value == '0') { alert('<?php echo $this->lang->line('BE_LBL_69'); ?>'); document.getElementById('blkCodeStatusId').focus(); return false; } } if(cldFrm == 0) return strIds; else return true; } function setValue(i) { document.getElementById('cldFrm').value = i; } function backToList() { document.getElementById('frmIds').submit(); } function SetOptions() { if(document.getElementById('cldFrm').value == 100) { downloadIMEIs(); } else { setValue('4'); if(document.getElementById("chkFields").checked) { document.getElementById('printFields').value = 1; } if(document.getElementById("chkLineBreak").checked) { document.getElementById('addNL').value = 1; } document.getElementById('frmMain').submit(); } } function setTitle(i) { document.getElementById('exampleModalLabel').innerHTML = i; document.getElementById('buttonLable').innerHTML = i; } $(document).ready(function(){ $(".cardCollapse").click(function(){ if($(this).parents('.card').hasClass('card-collapsed')){ $(this).parents('.card').removeClass('card-collapsed'); $('.CollapsedCardBody').show(); }else{ $(this).parents('.card').addClass('card-collapsed'); $('.CollapsedCardBody').hide(); } }); }); </script> <script language="javascript" src="<?php echo base_url('assets/js/functions.js?v='.$this->config->item('assets_version')); ?>"></script> <script language="javascript" src="<?php echo base_url('assets/js/package.js'); ?>?v=<?php echo $this->config->item('assets_version'); ?>"></script> <script language="javascript" src="<?php echo base_url('assets/js/pendingorders.js');?>?v=<?php echo $this->config->item('assets_version'); ?>"></script>