本文整理汇总了PHP中get_option_list函数的典型用法代码示例。如果您正苦于以下问题:PHP get_option_list函数的具体用法?PHP get_option_list怎么用?PHP get_option_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_option_list函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: base_url
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'));
示例2: list_actions
function list_actions()
{
$data = filter_forwarded_data($this);
echo get_option_list($this, 'permission_list_actions', 'div');
}
示例3: Telephone
<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';
示例4: get_option_list
" 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'));
示例5: format_notice
<?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>";
}
示例6: get_option_list
</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';
?>
' />
示例7: list_actions
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');
}
示例8: generate_report_html
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;
}
示例9: format_notice
<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>
示例10: 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" />
<?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="" />
示例11: group
<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>
示例12: Document
<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>
示例13: add_details
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;
}
示例14: array
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>
示例15: base_url
<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'));