echo base_url(); ?> assets/css/pss.datepicker.css" type="text/css" media="screen" /> <table class='normal-table filter-container'> <tr><td><select id='search__userstatus' name='search__userstatus' data-final='status' class='drop-down' style='width:100%;'> <?php echo get_option_list($this, 'userstatus', 'select', '', array('selected' => $this->native_session->get('user__status'))); ?> </select></td></tr> <tr><td><select id='search__permissiongroups' name='search__permissiongroups' data-final='group' class='drop-down' style='width:100%;'> <?php echo get_option_list($this, $this->native_session->get('__user_type') == 'admin' ? 'permissiongroups' : $this->native_session->get('__user_type') . 'groups', 'select', '', array('selected' => $this->native_session->get('user__group'))); ?> </select></td></tr> <tr><td><input type='text' id='phrase' name='phrase' placeholder='Name Search Phrase' data-final='phrase' value='<?php echo $this->native_session->get('user__phrase'); ?> ' style='width:100%;'/></td></tr> <tr><td><button type="button" id="applyfilterbtn" name="applyfilterbtn" class="btn blue" onClick="applyFilter('user')" style="width:100%;">Apply Filter</button> <input name="layerid" id="layerid" type="hidden" value="" /> </td></tr> </table> <?php echo minify_js('users__list_filter', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'jquery.datepick.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js', 'pss.datepicker.js', 'pss.pagination.js'));
function list_actions() { $data = filter_forwarded_data($this); echo get_option_list($this, 'permission_list_actions', 'div'); }
<div></div> </td></tr> <tr><td class='two-fields'> <div><input type='text' id='telephone' name='telephone' class='numbersonly telephone' placeholder='Your Telephone (Include country code e.g: 211 91 1234567)' value='<?php echo $this->native_session->get('telephone'); ?> ' /></div> <div><input type='text' id='otherphone' name='otherphone' class='numbersonly telephone optional' placeholder='OPTIONAL: Alternative Telephone (Include country code)' value='<?php echo $this->native_session->get('otherphone'); ?> ' /></div> </td></tr> <tr><td class='two-fields'> <div><select id='question__secretquestions' name='question__secretquestions' class='drop-down'> <?php echo get_option_list($this, 'secretquestions', 'select', '', array('selected' => $this->native_session->get('question__secretquestions'))); ?> </select></div> <div><input type='text' id='secretanswer' name='secretanswer' placeholder='Secret Answer' value='' /></div> </td></tr> <tr><td class='bold'>d) Confirm and Proceed:</td></tr> <tr><td class='two-fields' style='padding-top:0px;'> <div><table class='default-table'><tr> <td class='dark-grey'>Answer this problem to prove you are human:</td> <td id='imagearea'><img src='<?php if (file_exists(UPLOAD_DIRECTORY . session_id() . '.png')) { echo base_url() . 'assets/uploads/' . session_id() . '.png'; } else { echo base_url() . 'assets/uploads/placeholder_check.png';
" style='width:100%;'/> <input type='hidden' name='pde_id' id='pde_id' data-final='pde_id' value='<?php echo $this->native_session->get('contract__pde_id'); ?> ' /></td></tr> <tr><td><input type="text" id="search__tenders" name="search__tenders" placeholder="Search Tender Name" data-final='tender' class="drop-down searchable clear-on-empty" data-clearfield='tender_id' value="<?php echo $this->native_session->get('contract__tender'); ?> " style='width:100%;'/> <input type='hidden' name='tender_id' id='tender_id' data-final='tender_id' value='<?php echo $this->native_session->get('contract__tender_id'); ?> ' /></td></tr> <tr><td><input type='text' id='phrase' name='phrase' placeholder='Name Search Phrase' data-final='phrase' value='<?php echo $this->native_session->get('contract__phrase'); ?> ' style='width:100%;'/></td></tr> <tr><td><select id='search__contractstatus' name='search__contractstatus' data-final='status' class='drop-down' style='width:100%;'> <?php echo get_option_list($this, 'contractstatus', 'select', '', array('selected' => $this->native_session->get('contract__status'))); ?> </select></td></tr> <tr><td><button type="button" id="applyfilterbtn" name="applyfilterbtn" class="btn blue" onClick="applyFilter('contract')" style="width:100%;">Apply Filter</button> <input name="layerid" id="layerid" type="hidden" value="" /></td></tr> </table> <?php echo minify_js('apply_contract_filter', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'jquery.datepick.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js', 'pss.datepicker.js', 'pss.pagination.js'));
<tr><td> <input type='text' id='by_deadline' name='by_deadline' data-final='by_deadline' class='calendar clickactivated' onclick='setDatePicker(this)' placeholder='Deadline Before' value='<?php echo $this->native_session->get('tender__by_deadline'); ?> ' style='width:100%;'/> </td></tr> <tr><td><select id='search__procurementtypes' name='search__procurementtypes' data-final='procurement_type' class='drop-down' style='width:100%;'> <?php echo get_option_list($this, 'procurementtypes', 'select', '', array('selected' => $this->native_session->get('tender__procurement_type'))); ?> </select></td></tr> <tr><td><select id='search__procurementmethods' name='search__procurementmethods' data-final='procurement_method' class='drop-down' style='width:100%;'> <?php echo get_option_list($this, 'procurementmethods', 'select', '', array('type' => 'public', 'selected' => $this->native_session->get('tender__procurement_method'))); ?> </select></td></tr> <tr><td><input type="text" id="search__pdes" name="search__pdes" placeholder="Search PDE Name" data-final='pde' class="drop-down searchable clear-on-empty" data-clearfield='pde_id' value="<?php echo $this->native_session->get('tender__pde'); ?> " style='width:100%;'/> <input type='hidden' name='pde_id' id='pde_id' data-final='pde_id' value='<?php echo $this->native_session->get('tender__pde_id'); ?> ' /></td></tr> <tr><td><input type='text' id='phrase' name='phrase' placeholder='Subject Search Phrase' data-final='phrase' value='<?php echo $this->native_session->get('tender__phrase');
<?php if (!empty($msg)) { echo format_notice($this, $msg); } else { echo "<table class='cell-border'>\n\t<tr>\n\t<td style='background: url(" . base_url() . "assets/images/grey_closer.png) no-repeat center center; cursor:pointer;'\n\tonclick=\"hideLayerSet('plan_details_div');showLayerSet('plan_details_div_show')\"> </td>\n\t<td style='font-weight:bold;'>Brief Description</td>\n\t<td style='font-weight:bold;'>Procurement Method</td>\n\t<td style='font-weight:bold;'>Estimate in SSP</td>\n\t<td style='font-weight:bold;'>Tender Document/RFP</td>\n\t<td style='font-weight:bold;'>Bid/EOI Invitation & Open</td>\n\t<td style='font-weight:bold;'>Bid/EOI Evaluation/Short List</td>\n\t<td style='font-weight:bold;'>Issuance of RFP (Services)</td>\n\t<td style='font-weight:bold;'>Receipt of RFP (Service)</td>\n <td style='font-weight:bold;'>Evaluation /Negotiate</td>\n\t<td style='font-weight:bold;'>Contract Approval MoFEP</td>\n\t<td style='font-weight:bold;'>Contract Endorsement MoJ</td>\n\t<td style='font-weight:bold;'>Contract Award</td>\n\t<td style='font-weight:bold;'>Commencement of Contract</td>\n\t<td style='font-weight:bold;'>Contract Completion</td>\n\t</tr>"; foreach ($list as $i => $row) { $dataRow = array_slice($row, 2, -2, true); # extract data part while preserving the keys # print out the valid rows echo "<tr>"; # do not make the categories editable if (in_array(trim(strtolower($row['B'])), get_option_list($this, 'procurementcategories', 'array'))) { foreach ($dataRow as $key => $cell) { if ($key == 'A') { echo "<td style='background-color:#FF9;font-weight:bold;'>" . (!empty($cell) ? $cell : ' ') . "\n\t\t\t\t\t<BR><img src='" . IMAGE_URL . "add_icon.png' class='add-plan-item' data-id='" . $row['id'] . "'></td>"; } else { echo "<td style='background-color:#FF9;font-weight:bold;'>" . (!empty($cell) ? $cell : ' ') . "</td>"; } } } else { foreach ($dataRow as $key => $cell) { if ($key == 'A') { echo "<td>" . $cell . "\n\t\t\t\t\t<BR><img src='" . IMAGE_URL . "remove_icon.png' class='remove-plan-item' data-id='" . $row['id'] . "'></td>"; } else { echo "<td><input type='text' id='plan__" . $row['_plan_id'] . "_" . $row['id'] . "_" . $key . "' name='plan_" . $row['_plan_id'] . "[]' value='" . $cell . "' data-editurl='procurement_plans/edit_single_detail/d/" . $row['id'] . "/k/" . $key . "' class='editable-field' style='width:90px;' /></td>"; } } } echo "</tr>"; }
<?php } ?> <tr><td><select id='search__publicdocumenttypes' name='search__publicdocumenttypes' data-final='category' class='drop-down' style='width:100%;'> <?php echo get_option_list($this, 'publicdocumenttypes', 'select', '', array('selected' => $this->native_session->get('document__category'))); ?> </select></td></tr> <?php if ($this->native_session->get('__user_type') == 'admin') { ?> <tr><td><select id='search__documentstatus' name='search__documentstatus' data-final='status' class='drop-down' style='width:100%;'> <?php echo get_option_list($this, 'documentstatus', 'select', '', array('selected' => $this->native_session->get('document__status'))); ?> </select></td></tr> <?php } ?> <tr><td><input type='text' id='phrase' name='phrase' placeholder='Name Search Phrase' data-final='phrase' value='<?php echo $this->native_session->get('document__phrase'); ?> ' style='width:100%;'/></td></tr> <tr><td><button type="button" id="applyfilterbtn" name="applyfilterbtn" class="btn blue" onClick="applyFilter('document')" style="width:100%;">Apply Filter</button> <input name="layerid" id="layerid" type="hidden" value="" /> <input name="listtype" id="listtype" data-final='listtype' type="hidden" value="<?php
</td></tr> <tr><td class='two-fields'> <div><input type='text' id='region' name='region' placeholder='Region/State' value='<?php echo $organization['contact_region']; ?> ' /></div> <div><input type='text' id='zipcode' name='zipcode' placeholder='Zip Code' class='numbersonly' value='<?php echo $organization['contact_zipcode']; ?> ' /></div> </td></tr> <tr><td class='two-fields'> <div style='margin-left:0px;'><select id='contact__countries' name='contact__countries' class='drop-down'> <?php echo get_option_list($this, 'countries', 'select', '', array('selected' => $organization['contact_country_id'])); ?> </select></div> </td></tr> <tr><td style="padding-right:0px;padding-top:30px; padding-bottom:20px;"><button type="button" id="save" name="save" class="btn green submitmicrobtn" style='width: calc(100% - 47px);'>Save</button> <input type='hidden' id='action' name='action' value='<?php echo base_url() . 'organizations/settings'; ?> ' /> <input type='hidden' id='redirectaction' name='redirectaction' value='<?php echo base_url() . 'organizations/settings/view/Y'; ?> ' />
function list_actions() { $data = filter_forwarded_data($this); echo get_option_list($this, ($this->native_session->get('__user_type') == 'pde' ? 'provider_' : '') . 'users_list_actions', 'div'); }
<tr><td><input type="text" id="search__pdes" name="search__pdes" placeholder="Search PDE Name" data-final='pde' class="drop-down searchable clear-on-empty" data-clearfield='pde_id' value="<?php echo $this->native_session->get('procurement_plan__pde'); ?> " style='width:100%;'/> <input type='hidden' name='pde_id' id='pde_id' data-final='pde_id' value='<?php echo $this->native_session->get('procurement_plan__pde_id'); ?> ' /></td></tr> <?php if (empty($t)) { ?> <tr><td><select id='search__procurementplanstatus' name='search__procurementplanstatus' data-final='status' class='drop-down' style='width:100%;'> <?php echo get_option_list($this, 'procurementplanstatus', 'select', '', array('selected' => $this->native_session->get('tender__status'))); ?> </select></td></tr> <?php } ?> <tr><td><button type="button" id="applyfilterbtn" name="applyfilterbtn" class="btn blue" onClick="applyFilter('procurement_plan')" style="width:100%;">Apply Filter</button> <input name="layerid" id="layerid" type="hidden" value="" /> <?php if (!empty($t)) { echo "<input name='search__procurementplanstatus' id='search__procurementplanstatus' data-final='status' type='hidden' value='published' />\n\t<input name='area' id='area' data-final='area' type='hidden' value='" . $t . "' />"; } ?> </td></tr> </table>
function generate_report_html($list, $type, $obj = NULL) { # pick the right report and fill it up with the provided data #----------------------------------------------------------------------------------------------------------- # PROCUREMENT PLAN TRACKING #----------------------------------------------------------------------------------------------------------- if ($type == 'procurement_plan_tracking') { $html = "<table cellpadding='3' cellspacing='0' class='cell-border'>\n<tr><td colspan='8' style='background-color: #EDEDED;'><span style='font-weight:bold;'>Name of Spending Agency:</span> " . $list['pde'] . "</td>\n<td colspan='8' style='background-color: #EDEDED;'><span style='font-weight:bold;'>Quarter:</span> " . $list['quarter'] . "</td></tr>\n\n<tr><td> </td><td style='font-weight:bold;'>Brief Description</td><td style='font-weight:bold;'>Procurement Method</td><td style='font-weight:bold;'>Estimate in SSP</td><td style='font-weight:bold;'>Plan/Actual</td><td style='font-weight:bold;'>Tender Document/RFP</td><td style='font-weight:bold;'>Bid/EOI Invitation & Open</td><td style='font-weight:bold;'>Bid/EOI Evaluation/Short List</td><td style='font-weight:bold;'>Issuance of RFP (Services)</td><td style='font-weight:bold;'>Receipt of RFP (Service)</td>\n <td style='font-weight:bold;'>Evaluation /Negotiate</td><td style='font-weight:bold;'>Contract Approval MoFEP</td><td style='font-weight:bold;'>Contract Endorsement MoJ</td><td style='font-weight:bold;'>Contract Award</td><td style='font-weight:bold;'>Commencement of Contract</td><td style='font-weight:bold;'>Contract Completion</td>\n</tr>"; # first row is the name of the spending agency $catCount = 1; foreach ($list['tenders'] as $category => $subList) { # section heading $html .= "<tr>\n<td style='font-weight:bold;background-color:#FF9;'>" . $catCount . "</td><td colspan='15' style='font-weight:bold;background-color:#FF9;'>" . $category . "</td>\n</tr>"; $subCatCount = 1; foreach ($subList as $row) { $html .= "<tr>\n<td>" . (empty($prevId) || $prevId != $row['tender_id'] ? $catCount . "." . $subCatCount : ' ') . "</td><td>" . html_entity_decode($row['brief_description'], ENT_QUOTES) . "</td>\n<td>" . $row['procurement_method'] . "</td><td>SSP" . format_number($row['ssp_estimate'], 3) . "</td><td>" . $row['plan_or_actual'] . "</td><td>" . $row['rfp_status'] . "</td><td>" . $row['bid_open_status'] . "</td><td>" . $row['bid_short_list_status'] . "</td><td>" . $row['issuance_of_rfp_status'] . "</td><td>" . $row['receipt_of_rfp_status'] . "</td><td>" . $row['evaluation_status'] . "</td><td>" . $row['contract_approval_status'] . "</td><td>" . $row['contract_endorsement_status'] . "</td><td>" . $row['contract_award_status'] . "</td><td>" . $row['contract_commencement_status'] . "</td><td>" . $row['contract_completion_status'] . "</td>\n</tr>"; # increment only for a new tender if (empty($prevId) || $prevId != $row['tender_id']) { $subCatCount++; } $prevId = $row['tender_id']; } $catCount++; } $html .= "<tr>\n <td rowspan='2' style='background-color: #EDEDED;'> </td>\n <td colspan='3' rowspan='2' style='font-weight:bold;background-color: #EDEDED;'>Total Cost of Goods/Works/Services</td>\n <td style='background-color: #EDEDED;'>Plan</td>\n <td colspan='11' style='background-color: #EDEDED;'>SSP" . format_number($list['totals']['plan'], 3) . "</td>\n</tr>\n<tr>\n <td colspan='1' style='background-color: #EDEDED;'>Actual</td>\n <td colspan='11' style='background-color: #EDEDED;'>SSP" . format_number($list['totals']['actual'], 3) . "</td>\n</tr>\n<tr>\n <td> </td>\n <td colspan='15'> </td>\n</tr>\n<tr>\n <td> </td>\n <td colspan='15'><span style='font-weight:bold;'>Notes:</span>\n <br />RFQ - Request for Quotation\n <br />IC - Individual Consultancy\t\n <br />EOI - Expressions of Interest\n <br />RFP - Request for Proposal\n <br />LCS - Least Cost Selection\t\n <br />HPE - Head of Procuring Entity\n <br />MoFEP - Ministry of Finance and Economic Planning\n <br />MoJ - Ministry of Justice\t\n <br />ICT - International Competitive Tendering\t\n <br />PC - Procurement Committee\t\t\t\t\n <br />NCT - National Competitive Tendering\t\n <br />QCBS - Quality and Cost Based Selection\t\t\t\t\n</td>\n</tr>\n</table>"; } else { if ($type == 'procurements_in_progress') { $html = "<table cellpadding='3' cellspacing='0' class='cell-border'><tr><td colspan='7'><span style='font-weight:bold;'>SECTION A: PROCUREMENTS IN PROGRESS</span></td></tr>\n<tr><td colspan='4'><span style='font-weight:bold;'>Name of Spending Agency:</span>" . $list['pde'] . "</td>\n<td colspan='3'><span style='font-weight:bold;'>Quarter:</span> " . $list['quarter'] . "</td></tr>\n\n<tr><td style='font-weight:bold;'>Procurement Number</td><td style='font-weight:bold;'>Subject of Procurement</td><td style='font-weight:bold;'>Procurement Method</td><td style='font-weight:bold;'>Source of Funds</td><td style='font-weight:bold;'>Approval Given For</td><td style='font-weight:bold;'>Date of Approval</td><td style='font-weight:bold;'>Estimated Contract Value</td>\n</tr>"; foreach ($list['tenders'] as $row) { $html .= "<tr><td>" . $row['procurement_number'] . "</td><td>" . $row['subject_of_procurement'] . "</td><td>" . $row['procurement_method'] . "</td><td>" . $row['source_of_funds'] . "</td><td>" . $row['approval_given_for'] . "</td><td>" . $row['date_of_approval'] . "</td><td>SSP" . $row['estimated_contract_value'] . "</td></tr>"; } $html .= "</table>"; } else { if ($type == 'contracts_signed') { $html = "<table cellpadding='3' cellspacing='0' class='cell-border'><tr><td colspan='7'><span style='font-weight:bold;'>SECTION B: CONTRACTS SIGNED IN THE QUARTER</span></td></tr>\n<tr><td colspan='4'><span style='font-weight:bold;'>Name of Spending Agency:</span>" . $list['pde'] . "</td>\n<td colspan='3'><span style='font-weight:bold;'>Quarter:</span> " . $list['quarter'] . "</td></tr>\n\n<tr><td style='font-weight:bold;'>Procurement Number</td><td style='font-weight:bold;'>Subject of Procurement</td><td style='font-weight:bold;'>Successful Supplier or Contractor</td><td style='font-weight:bold;'>Source of Funds</td><td style='font-weight:bold;'>Date of Award</td><td style='font-weight:bold;'>Date Contract Signed</td><td style='font-weight:bold;'>Contract Value QP Form_1</td>\n</tr>"; foreach ($list['tenders'] as $row) { $html .= "<tr><td>" . $row['procurement_number'] . "</td><td>" . $row['subject_of_procurement'] . "</td><td>" . $row['successful_supplier_or_contractor'] . "</td><td>" . $row['source_of_funds'] . "</td><td>" . $row['date_of_award'] . "</td><td>" . $row['date_contract_signed'] . "</td><td>SSP" . $row['contract_value'] . "</td></tr>"; } $html .= "</table>"; } else { if ($type == 'procurements_completed') { $html = "<table cellpadding='3' cellspacing='0' class='cell-border'><tr><td colspan='7'><span style='font-weight:bold;'>SECTION C: PROCUREMENTS COMPLETED IN THE QUARTER</span></td></tr>\n<tr><td colspan='4'><span style='font-weight:bold;'>Name of Spending Agency:</span>" . $list['pde'] . "</td>\n<td colspan='3'><span style='font-weight:bold;'>Quarter:</span> " . $list['quarter'] . "</td></tr>\n\n<tr><td style='font-weight:bold;'>Procurement Number</td><td style='font-weight:bold;'>Subject of Procurement</td><td style='font-weight:bold;'>Supplier or Contractor</td><td style='font-weight:bold;'>Source of Funds</td><td style='font-weight:bold;'>Date of Completion</td><td style='font-weight:bold;'>Date of Final Payment</td><td style='font-weight:bold;'>Total Amount Paid (SSP)</td>\n</tr>"; foreach ($list['tenders'] as $row) { $html .= "<tr><td>" . $row['procurement_number'] . "</td><td>" . $row['subject_of_procurement'] . "</td><td>" . $row['supplier_or_contractor'] . "</td><td>" . $row['source_of_funds'] . "</td><td>" . $row['date_of_completion'] . "<br>" . $row['date_reason'] . "</td><td>" . $row['date_of_final_payment'] . "</td><td>SSP" . $row['total_amount_paid'] . "</td></tr>"; } $html .= "</table>"; } else { if ($type == 'low_value_procurements') { $html = "<table cellpadding='3' cellspacing='0' class='cell-border'>\n\t\t<tr><td colspan='6'><span style='font-weight:bold;'>SECTION D: LOW VALUE PROCUREMENTS</span></td></tr>\n\t\t<tr><td colspan='6'><span style='font-weight:bold;'>UNDER SSP 25,000 for GOODS; UNDER SSP 50,000 for WORKS; UNDER 10,000 for GENERAL SERVICES & CONSULTANCY SERVICES</span></td></tr>\n\t\t<tr><td colspan='6'> </td></tr>\n\t\t\n<tr><td colspan='3'><span style='font-weight:bold;'>Name of Spending Agency:</span>" . $list['pde'] . "</td>\n<td colspan='3'><span style='font-weight:bold;'>Quarter:</span> " . $list['quarter'] . "</td></tr>\n\n<tr><td style='font-weight:bold;'>Procurement Number</td><td style='font-weight:bold;'>Subject of Procurement</td><td style='font-weight:bold;'>Supplier or Contractor</td><td style='font-weight:bold;'>Procurement Method</td><td style='font-weight:bold;'>Date of Contract</td><td style='font-weight:bold;'>Contract Value (SSP)</td>\n</tr>"; foreach ($list['tenders'] as $row) { $html .= "<tr><td>" . $row['procurement_number'] . "</td><td>" . $row['subject_of_procurement'] . "</td><td>" . $row['supplier_or_contractor'] . "</td><td>" . $row['procurement_method'] . "</td><td>" . $row['date_of_contract'] . "</td><td>SSP" . $row['contract_value'] . "</td></tr>"; } $html .= "</table>"; } else { if ($type == 'procurement_plan') { $html = "<table cellpadding='3' cellspacing='0' class='cell-border'>\n\t\t<tr><td colspan='8'><span style='font-weight:bold;'>Name: " . html_entity_decode($list['name'], ENT_QUOTES) . "</span></td><td colspan='7'><span style='font-weight:bold;'>PDE: " . html_entity_decode($list['pde'], ENT_QUOTES) . "</span></td></tr>\n\t\t<tr>\n\t\t<td> </td>\n\t<td style='font-weight:bold;'>Brief Description</td>\n\t<td style='font-weight:bold;'>Procurement Method</td>\n\t<td style='font-weight:bold;'>Estimate in SSP</td>\n\t<td style='font-weight:bold;'>Tender Document/RFP</td>\n\t<td style='font-weight:bold;'>Bid/EOI Invitation & Open</td>\n\t<td style='font-weight:bold;'>Bid/EOI Evaluation/Short List</td>\n\t<td style='font-weight:bold;'>Issuance of RFP (Services)</td>\n\t<td style='font-weight:bold;'>Receipt of RFP (Service)</td>\n <td style='font-weight:bold;'>Evaluation /Negotiate</td>\n\t<td style='font-weight:bold;'>Contract Approval MoFEP</td>\n\t<td style='font-weight:bold;'>Contract Endorsement MoJ</td>\n\t<td style='font-weight:bold;'>Contract Award</td>\n\t<td style='font-weight:bold;'>Commencement of Contract</td>\n\t<td style='font-weight:bold;'>Contract Completion</td>\n\t</tr>"; foreach ($list['list'] as $i => $row) { $dataRow = array_slice($row, 2, -2, true); # extract data part while preserving the keys # print out the valid rows $html .= "<tr>"; # make the category row cells have a yellow background if (in_array(trim(strtolower($row['B'])), get_option_list($obj, 'procurementcategories', 'array'))) { foreach ($dataRow as $key => $cell) { $html .= "<td style='background-color:#FF9;font-weight:bold;'>" . (!empty($cell) ? $cell : ' ') . "</td>"; } } else { foreach ($dataRow as $key => $cell) { $html .= "<td>" . $cell . "</td>"; } } $html .= "</tr>"; } $html .= "</table>"; } } } } } } # Common report css $html .= "<style>\n.cell-border {\n\tborder: 1px solid #999;\n\tborder-collapse: collapse;\n}\n.cell-border td {\n\tfont-size:11px;\n\tfont-family: Arial, sans-serif;\n\tborder: 1px solid #999;\n\tvertical-align:top;\n}\n\n</style>"; return $html; }
} ?> </tr></table></td></tr> <tr><td><select id='provider__countries' name='provider__countries' data-final='registration_country' class='drop-down' style='width:100%;'><?php echo get_option_list($this, 'countries', 'select', '', array('selected' => $this->native_session->get('provider__registration_country'))); ?> </select></td></tr> <?php if (empty($t)) { ?> <tr><td><select id='search__providerstatus' name='search__providerstatus' data-final='status' class='drop-down' style='width:100%;'> <?php echo get_option_list($this, 'providerstatus', 'select', '', array('selected' => $this->native_session->get('provider__status'))); ?> </select></td></tr> <?php } ?> <tr><td><input type='text' id='phrase' name='phrase' placeholder='Name Search Phrase' data-final='phrase' value='<?php echo $this->native_session->get('provider__phrase'); ?> ' style='width:100%;'/></td></tr> <tr><td><button type="button" id="applyfilterbtn" name="applyfilterbtn" class="btn blue" onClick="applyFilter('provider')" style="width:100%;">Apply Filter</button> <input name="layerid" id="layerid" type="hidden" value="" /> <?php
<table class='microform' style='max-width:500px;'> <tr><td class='dark-grey'>To help us serve you better, fill out this form as completely as possible.</td></tr> <?php if (!empty($msg)) { echo "<tr><td style='text-align:left;'>" . format_notice($this, $msg) . "</td></tr>"; } ?> <tr><td class='bold'>a) What is your organization type?</td></tr> <tr><td><select id='organization__organizationtypes' name='organization__organizationtypes' class='drop-down' style='width:100%;'<?php if ($this->native_session->get('organizationtype')) { echo ' readonly'; } ?> > <?php echo get_option_list($this, 'organizationtypes', 'select', '', array('selected' => $this->native_session->get('organizationtype'))); ?> </select></td></tr> <tr><td><div id='type_explanation' class='dark-grey'>Use this account type if you wish to submit bids to organizations for work.</div></td></tr> <tr><td><div class='right-div'><button type="button" id="next" name="next" class="btn green submitmicrobtn" style="width:100%;max-width:300px;">Next</button></div> <input type='hidden' id='action' name='action' value='<?php echo base_url() . 'accounts/register'; ?> ' /> <input type='hidden' id='redirectaction' name='redirectaction' value='<?php echo base_url() . 'accounts/register/step/2'; ?> ' /> <input type='hidden' id='resultsdiv' name='resultsdiv' value='' /> </td></tr> </table>
echo base_url(); ?> assets/css/pss.css" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php echo base_url(); ?> assets/css/pss.shadowbox.css" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php echo base_url(); ?> assets/css/pss.datepicker.css" type="text/css" media="screen" /> <table class='normal-table filter-container'> <tr><td><input type='text' id='phrase' name='phrase' placeholder='Name Search Phrase' data-final='phrase' value='<?php echo $this->native_session->get('permission__phrase'); ?> ' style='width:100%;'/></td></tr> <tr><td><select id='search__grouptypes' name='search__grouptypes' data-final='type' class='drop-down' style='width:100%;'> <?php echo get_option_list($this, 'grouptypes', 'select', '', array('selected' => $this->native_session->get('permission__status'))); ?> </select></td></tr> <tr><td><button type="button" id="applyfilterbtn" name="applyfilterbtn" class="btn blue" onClick="applyFilter('permission')" style="width:100%;">Apply Filter</button> <input name="layerid" id="layerid" type="hidden" value="" /></td></tr> </table> <?php echo minify_js('permissions__list_filter', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'jquery.datepick.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js', 'pss.datepicker.js', 'pss.pagination.js'));
assets/css/pss.shadowbox.css" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php echo base_url(); ?> assets/css/pss.datepicker.css" type="text/css" media="screen" /> <?php if (!empty($msg)) { echo format_notice($this, $msg); } else { ?> <table class='normal-table microform ignoreclear'> <tr><td><select id='user__permissiongroups' name='user__permissiongroups' class='drop-down' style="width:100%;"> <?php echo get_option_list($this, 'permissiongroups'); ?> </select></td></tr> <tr><td><button type="button" id="applygroup" name="applygroup" class="btn blue submitmicrobtn" style="width:100%;">Apply Group</button> <input type='hidden' id='action' name='action' value='<?php echo base_url() . 'users/update_permissions'; ?> ' /> <input type='hidden' id='redirectaction' name='redirectaction' value='<?php echo base_url() . 'users/update_permissions/result/msg'; ?> ' /> <input type='hidden' id='resultsdiv' name='resultsdiv' value='' /> <input name="layerid" id="layerid" type="hidden" value="" />
<table> <tr><td class='label'>Name</td><td><input type='text' id='name' name='name' placeholder='Enter Name' value='<?php echo !empty($group['name']) ? $group['name'] : ''; ?> '/></td></tr> <tr><td class='label'>Description</td><td><textarea id='notes' name='notes' placeholder='Briefly describe the purpose of this permission group (Max 200 characters)' class='limit-chars' data-max='200' style='height: 90px;'><?php echo !empty($group['notes']) ? $group['notes'] : ''; ?> </textarea></td></tr> <tr><td class='label'>Type</td><td><select id='group__grouptypes' name='group__grouptypes' class='drop-down' style="width:calc(100% + 15px);"> <?php echo get_option_list($this, 'grouptypes', 'select', '', array('selected' => !empty($group['type']) ? $group['type'] : '')); ?> </select></td></tr> <tr><td class='label'>Permissions</td><td style='padding-right:0px;'> <div style='max-height:400px;overflow-x:hidden;overflow-y:auto;border: 1px solid #DDDDDD;width:calc(100% + 7px);'> <table class='list-table'> <tr><th style='width:1%;'> </th><th style='width:1%;'>Category</th><th>Name</th></tr> <?php foreach ($permissions as $row) { echo "<tr>\n\t<td><input id='select_" . $row['permission_id'] . "' name='permissions[]' type='checkbox' value='" . $row['permission_id'] . "' class='bigcheckbox' " . (!empty($group['permissions']) && in_array($row['permission_id'], $group['permissions']) ? ' checked' : '') . "><label for='select_" . $row['permission_id'] . "'></label></td>\n\t<td>" . ucwords(str_replace('_', ' ', $row['category'])) . "</td>\n\t<td>" . $row['name'] . "</td> \n\t</tr>"; } ?> </table> </div> </td></tr>
<input type='hidden' id='document_type' name='document_type' value='<?php echo $area; ?> ' /></td></tr> <tr><td class='label'>Document</td><td> <input type='text' id='document' name='document' class='filefield' data-val='pdf,doc,docx,zip,zipx,rar' data-size='5120000' placeholder='Select Document (PDF, Word, Zip, Rar. Max 500MB)' value=''/></td></tr> <tr><td class='label'>Comment</td><td><textarea id='description' name='description' placeholder='Briefly describe the document (OPTIONAL, Max 500 characters)' class='limit-chars optional' data-max='500' style='height:150px;width:calc(100% - 2px);'><?php echo !empty($document['description']) ? $document['description'] : ''; ?> </textarea></td></tr> <tr><td class='label'>Type</td><td><select id='document__publicdocumenttypes' name='document__publicdocumenttypes' class='drop-down' style="width:calc(100% + 15px);"> <?php echo get_option_list($this, 'publicdocumenttypes', 'select', '', array('selected' => !empty($document['type']) ? $document['type'] : '')); ?> </select></td></tr> <tr><td> </td><td style="text-align:right; padding-right:0px;padding-top:30px; padding-bottom:20px;"><button type="button" id="save" name="save" class="btn green submitmicrobtn" style='width: calc(100% + 10px);'>Save</button> <input type='hidden' id='action' name='action' value='<?php echo base_url() . 'documents/add/a/' . $area; ?> ' /> <input type='hidden' id='redirectaction' name='redirectaction' value='<?php echo base_url() . 'documents/manage/a/' . $area; ?> ' /> <input type='hidden' id='resultsdiv' name='resultsdiv' value='' /></td></tr> </table>
function add_details($data) { $reason = ''; $data['financialperiod'] = $data['fystart__financialperiods'] . '-all'; if (empty($data['plan_id'])) { $planCount = $this->_query_reader->get_count('get_procurement_plan_by_data', array('pde_id' => $data['pde_id'], 'financial_year_start' => get_quarter_date($data['financialperiod'], 'start'), 'financial_year_end' => get_quarter_date($data['financialperiod'], 'end'))); } # proceed with the addition if this is a unique plan if (!empty($data['plan_id']) || empty($data['plan_id']) && $planCount == 0) { $planId = $this->_query_reader->add_data((!empty($data['plan_id']) ? 'edit' : 'add') . '_procurement_plan', array('organization_id' => $data['pde_id'], 'financial_year_start' => get_quarter_date($data['financialperiod'], 'start'), 'financial_year_end' => get_quarter_date($data['financialperiod'], 'end'), 'title' => htmlentities($data['name'], ENT_QUOTES), 'details' => '', 'document_url' => '', 'status' => $data['status__procurementplanstatus'], 'user_id' => $this->native_session->get('__user_id'), 'plan_id' => !empty($data['plan_id']) ? $data['plan_id'] : '')); $planId = !empty($data['plan_id']) ? $data['plan_id'] : $planId; # proceed with processing the procurement plan details if (!empty($planId)) { $this->native_session->set('plan_id', $planId); require_once HOME_URL . 'external_libraries/phpexcel/PHPExcel.php'; $objPHPExcel = PHPExcel_IOFactory::load(UPLOAD_DIRECTORY . $data['document']); $sheetData = $objPHPExcel->getActiveSheet()->toArray('', true, true, true); $DATA_START = 9; $result = TRUE; $usefulData = array(); # extract the useful data foreach ($sheetData as $i => $row) { if ($i >= $DATA_START && !is_empty_row($row)) { # where they can not edit if (!empty($row['B']) && trim($row['B']) == 'DO NOT EDIT BELOW THIS LINE') { break; } # put only categories with data if (in_array(trim(strtolower($row['B'])), get_option_list($this, 'procurementcategories', 'array')) && !empty($sheetData[$i + 1]['D'])) { array_push($usefulData, $row); } else { if (!empty($row['D'])) { # convert back to UK format if excel importer converted the dates to US format $tempRow = $row; foreach ($tempRow as $key => $value) { if (strtolower($key) > 'd') { if (strpos($value, '/', 3) !== FALSE) { $value = date('m-d-y', strtotime(make_us_date($value))); } # correct dates in the format 12-31-15 as they can not be converted correctly if (strpos($value, '-', 3) !== FALSE && strlen($value) == 8) { $valueParts = explode('-', $value); if (count($valueParts) > 2) { $value = substr(@date('Y'), 0, 2) . $valueParts[2] . '-' . $valueParts[0] . '-' . $valueParts[1]; } } $row[$key] = !empty($value) ? date('d/m/Y', strtotime($value)) : ''; } } array_push($usefulData, $row); } } } } # remove the old sheet data if (!empty($usefulData) && !empty($data['plan_id'])) { $result = $this->_query_reader->run('remove_plan_detail_rows', array('plan_id' => $data['plan_id'])); } # add the new sheet data foreach ($usefulData as $row) { # save the rows with data $rowData = array_merge($row, array('plan_id' => $planId, 'user_id' => $this->native_session->get('__user_id'))); $result = $this->_query_reader->run('add_plan_detail_row', $rowData); } # return with the list of added items for immediate display if ($result) { return $this->_query_reader->get_list('get_procurement_plan_details', array('plan_id' => $planId)); } else { $reason = "The plan details could not be fully recorded."; } } else { $reason = "The plan headers could not be recorded."; } } else { $reason = "This PDE already has a plan for the same financial period. Please edit that instead."; } return $reason; }
assets/css/pss.shadowbox.css" type="text/css" media="screen" /> </head> <body> <table class='body-table water-mark-bg'> <?php $this->load->view('addons/secure_header', array('__page' => 'Dashboard')); $this->load->view('addons/pde_top_menu', array('__page' => 'my_dashboard')); ?> <tr> <td> </td> <td style='text-align: left; padding-top:25px;'> <select id='year__financialyears' name='year__financialyears' class='drop-down'> <?php echo get_option_list($this, 'financialyears', 'select', '', array('selected' => get_current_quarter('financial_year'))); ?> </select></td> <td> </td> </tr> <tr> <td> </td> <td class='fill-page' style="vertical-align:top;"><div class='three-columns' id='stat_container'> <?php $this->load->view('reports/pde_stats', array('list' => $list)); ?> </div> </td> <td> </td> </tr>
<link rel="stylesheet" href="<?php echo base_url(); ?> assets/css/jquery-ui.css"/> <link rel="stylesheet" href="<?php echo base_url(); ?> assets/css/external-fonts.css" type="text/css"> <link rel="stylesheet" href="<?php echo base_url(); ?> assets/css/pss.css" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php echo base_url(); ?> assets/css/pss.shadowbox.css" type="text/css" media="screen" /> <table class='normal-table'> <tr><td><select id='search__searchsystem' name='search__searchsystem' class='drop-down' style='width:100%;'> <?php echo get_option_list($this, 'search' . $t . $area); ?> </select></td></tr> <tr><td><button type="button" id="selectsearcharea" name="selectsearcharea" class="btn blue" onclick="applySearch()" style="width:100%;">Search</button> </td></tr> </table> <?php echo minify_js('pages__system_search', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'jquery.datepick.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js', 'pss.list.js'));
</td></tr> <tr><td class='two-fields'> <div><input type='text' id='region' name='region' placeholder='Region/State' value='<?php echo $this->native_session->get('region'); ?> ' /></div> <div><input type='text' id='zipcode' name='zipcode' placeholder='Zip Code' class='numbersonly' value='<?php echo $this->native_session->get('zipcode') ? $this->native_session->get('zipcode') : '81111'; ?> ' /></div> </td></tr> <tr><td class='two-fields'> <div style='margin-left:0px;'><select id='contact__countries' name='contact__countries' class='drop-down'> <?php echo get_option_list($this, 'countries', 'select', '', array('selected' => $this->native_session->get('contact__countries') ? $this->native_session->get('contact__countries') : ($this->native_session->get('registration__countries') ? $this->native_session->get('registration__countries') : ''))); ?> </select></div> </td></tr> <tr><td> </td></tr> <tr><td><div class='left-div'><button type="button" id="back" name="back" class="btn grey" data-rel='accounts/register/step/2' style="width:100%;max-width:300px;">Back</button></div> <div class='right-div' style='padding-right:40px;'><button type="button" id="next" name="next" class="btn green submitmicrobtn" style="width:100%;max-width:300px;">Next</button></div> <input type='hidden' id='action' name='action' value='<?php echo base_url() . 'accounts/register'; ?> ' /> <input type='hidden' id='redirectaction' name='redirectaction' value='<?php echo base_url() . 'accounts/login'; ?>
<input type='hidden' id='contract__contractstatus' name='contract__contractstatus' value='active' /> <?php } else { ?> <select id='contract__contractstatus' name='contract__contractstatus' class='drop-down' style="width:100%;"> <?php echo get_option_list($this, 'contractstatus'); ?> </select> <?php } ?> </td> <td style='padding-right:0px;width:50%;'><select id='contract__percentage' name='contract__percentage' class='drop-down' style="width:calc(100% - 5px);"> <?php echo get_option_list($this, 'percentage'); ?> </select><input type='hidden' name='contract_id' id='contract_id' value='<?php echo $d; ?> ' /></td> </tr></table></td></tr> <tr><td style='padding-right:0px;'><table class='default-table' style='width:100%;'><tr><td style='padding-left:0px;width:50%;'> <input type="text" id="amountspent" name="amountspent" class='numbersonly' placeholder='Amount Spent (in SSP)' value='' style='min-width:100%;'/></td> <td style='padding-right:0px;width:50%;'><input type="text" id="amountpaid" name="amountpaid" class='numbersonly' placeholder='Amount Paid (in SSP)' value='' style="width:calc(100% - 5px);"/></td> </tr></table></td></tr> <tr><td><input type="text" id="document" name="document" class='filefield optional' data-val='pdf,doc,docx,jpeg,jpg,tiff' data-size='5120000' placeholder='Document/Photo (OPTIONAL: PDF, Word, JPEG, JPG, TIFF. Max 500MB)' value='' style='min-width:100%;'/> </td></tr>
?> <tr><td><select id='search__forumaccess' name='search__forumaccess' data-final='is_public' class='drop-down' style='width:100%;'> <?php echo get_option_list($this, 'forumaccess', 'select', '', array('selected' => $this->native_session->get('forum__is_public'))); ?> </select></td></tr> <?php } ?> <?php if ($this->native_session->get('__user_type') == 'admin') { ?> <tr><td><select id='search__forumstatus' name='search__forumstatus' data-final='status' class='drop-down' style='width:100%;'> <?php echo get_option_list($this, 'forumstatus', 'select', '', array('selected' => $this->native_session->get('forum__status'))); ?> </select></td></tr> <?php } ?> <tr><td><input type='text' id='phrase' name='phrase' placeholder='Topic Search Phrase' data-final='phrase' value='<?php echo $this->native_session->get('forum__phrase'); ?> ' style='width:100%;'/></td></tr> <tr><td><button type="button" id="applyfilterbtn" name="applyfilterbtn" class="btn blue" onClick="applyFilter('forum')" style="width:100%;">Apply Filter</button> <input name="layerid" id="layerid" type="hidden" value="" /> <?php
<table> <tr><td class='label'>Name</td><td><input type='text' id='name' name='name' placeholder='Enter Name' value='<?php echo !empty($link['name']) ? $link['name'] : ''; ?> '/></td></tr> <tr><td class='label'>Link URL</td><td><input type='text' id='url' name='url' class='user-link' placeholder='Enter or Paste URL' value='<?php echo !empty($link['url']) ? $link['url'] : ''; ?> '/></td></tr> <tr><td class='label'>Open Type</td><td><select id='link__opentypes' name='link__opentypes' class='drop-down' style="width:calc(100% + 15px);"> <?php echo get_option_list($this, 'opentypes', 'select', '', array('selected' => !empty($link['opentype']) ? $link['opentype'] : '')); ?> </select></td></tr> <tr><td> </td><td style="text-align:right; padding-right:0px;padding-top:30px; padding-bottom:20px;"><button type="button" id="save" name="save" class="btn green submitmicrobtn" style='width: calc(100% + 10px);'>Save</button> <input type='hidden' id='action' name='action' value='<?php echo base_url() . 'links/add'; ?> ' /> <input type='hidden' id='redirectaction' name='redirectaction' value='<?php echo base_url() . 'links/manage'; ?> ' /> <input type='hidden' id='resultsdiv' name='resultsdiv' value='' /></td></tr> </table>
</td></tr> <tr><td class='two-fields'> <div><input type='text' id='region' name='region' placeholder='Region/State' value='<?php echo $user['state']; ?> ' /></div> <div><input type='text' id='zipcode' name='zipcode' placeholder='Zip Code' class='numbersonly' value='<?php echo $user['zipcode']; ?> ' /></div> </td></tr> <tr><td class='two-fields'> <div style='margin-left:0px;'><select id='contact__countries' name='contact__countries' class='drop-down'> <?php echo get_option_list($this, 'countries', 'select', '', array('selected' => $user['country_id'])); ?> </select></div> </td></tr> <tr><td style="padding-right:0px;padding-top:30px; padding-bottom:20px;"><button type="button" id="save" name="save" class="btn green submitmicrobtn" style='width: calc(100% - 47px);'>Save</button> <input type='hidden' id='action' name='action' value='<?php echo base_url() . 'users/settings'; ?> ' /> <input type='hidden' id='redirectaction' name='redirectaction' value='<?php echo base_url() . 'users/settings/view/Y'; ?> ' />
function list_actions() { $data = filter_forwarded_data($this); echo get_option_list($this, 'procurement_plan_list_actions', 'div'); }
function my_list_actions() { $data = filter_forwarded_data($this); echo get_option_list($this, 'my_bid_list_actions', 'div'); }
<tr><td class='label'>Permission Group</td><td><select id='user__<?php echo $groupList; ?> ' name='user__<?php echo $groupList; ?> ' class='drop-down' style="width:calc(100% + 17px);"> <?php echo get_option_list($this, $groupList, 'select', '', array('selected' => !empty($user['permission_group_id']) ? $user['permission_group_id'] : '')); ?> </select></td></tr> <tr><td class='label'>Status</td><td><select id='user__userstatus' name='user__userstatus' class='drop-down' style="width:calc(100% + 17px);"> <?php echo get_option_list($this, 'userstatus', 'select', '', array('selected' => !empty($user['status']) ? $user['status'] : '')); ?> </select></td></tr> <tr><td> </td><td style="text-align:right; padding-right:0px;padding-top:30px; padding-bottom:20px;"><button type="button" id="save" name="save" class="btn green submitmicrobtn" style='width: calc(100% + 10px);'>Save</button> <input type='hidden' id='action' name='action' value='<?php echo base_url() . 'users/add'; ?> ' /> <input type='hidden' id='redirectaction' name='redirectaction' value='<?php echo base_url() . 'users'; ?> ' /> <input type='hidden' id='resultsdiv' name='resultsdiv' value='' /> <?php if (!empty($user['user_id'])) {
<td style='padding-right:5px;width:1%;'> <select id='report__reporttypes' name='report__reporttypes' class='drop-down'> <?php echo get_option_list($this, 'reporttypes'); ?> </select></td> <td style='padding-right:5px;width:1%;'> <select id='report__financialperiods' name='report__financialperiods' class='drop-down'> <?php echo get_option_list($this, 'financialperiods', 'select', '', array('selected' => get_current_quarter('financial_year'))); ?> </select></td> <td style='padding-right:5px;width:1%;'> <select id='report__quarters' name='report__quarters' class='drop-down'> <?php echo get_option_list($this, 'quarters', 'select', '', array('selected' => get_current_quarter('quarter'))); ?> </select></td> <?php if ($this->native_session->get('__user_type') == 'admin') { ?> <td style='padding-right:5px;'> <input type="text" id="search__pdes" name="search__pdes" placeholder="Search PDE Name" data-final='pde' class="drop-down searchable clear-on-empty" data-clearfield='pde_id' value="" style="width:calc(100% - 30px);"/> <input type='hidden' name='pde_id' id='pde_id' value='' /></td> <td style='width:1%;'> <?php } else { echo "<td style='width:98%;'>\n\t<input type='hidden' name='pde_id' id='pde_id' value='" . $this->native_session->get('__organization_id') . "' />"; } ?>
?> ' placeholder='<?php echo $this->native_session->get('__user_type') != 'provider' ? 'OPTIONAL: ' : ''; ?> Amount (to nearest unit)' style="width:calc(100% - 5px);" value='<?php echo !empty($bid['bid_amount']) ? $bid['bid_amount'] : ''; ?> '/></td></tr></table> </td></tr> <tr><td class='label'>Status</td><td><select id='bid__bidstatus' name='bid__bidstatus' class='drop-down' style="width:calc(100% + 15px);"> <?php echo get_option_list($this, 'bidstatus', 'select', '', array('selected' => !empty($bid['status']) ? $bid['status'] : '')); ?> </select></td></tr> <tr><td> </td><td style="text-align:right; padding-right:0px;padding-top:30px; padding-bottom:20px;"><button type="button" id="save" name="save" class="btn green submitmicrobtn" style='width: calc(100% + 10px);'>Save</button> <input type='hidden' id='action' name='action' value='<?php echo base_url() . 'bids/add'; ?> ' /> <input type='hidden' id='redirectaction' name='redirectaction' value='<?php echo base_url() . 'bids/' . ($this->native_session->get('__user_type') != 'provider' ? 'manage' : 'my_list'); ?> ' /> <input type='hidden' id='resultsdiv' name='resultsdiv' value='' /> <?php if (!empty($bid['bid_id'])) {