本文整理汇总了PHP中format_notice函数的典型用法代码示例。如果您正苦于以下问题:PHP format_notice函数的具体用法?PHP format_notice怎么用?PHP format_notice使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了format_notice函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: send_cron_mail
function send_cron_mail()
{
# Get the passed details into the form data array if any
$urldata = $this->uri->uri_to_assoc(4, array('type'));
# Pick all assigned data
$data = assign_to_data($urldata);
if (isset($data['type'])) {
#The daily audit trail email
if ($data['type'] == 'help') {
$data['thedate'] = date('Y-m-d', strtotime('yesterday'));
$query = $this->Query_reader->get_query_by_code('search_help_table', array('searchfield' => 'content', 'phrase' => 'topic'));
$result = $this->db->query($query);
$data['searchdata'] = $result->result_array();
$data['section_name'] = 'search help';
if ($result) {
#Email specs
$data['subject'] = "Help for " . $data['thedate'];
$data['msg_header'] = "Below is the system help for " . $data['thedate'];
$data['send_from'] = '[email protected]';
$data['from_email_name'] = SITE_TITLE;
$data['send_to'] = SITE_ADMIN_MAILID;
$data['auto_gen'] = 'Y';
$data['area'] = 'searchhelp';
$data['send_action'] = 'searchhelp';
$this->load->view('incl/addons', $data);
}
}
#TODO: Add other email functions here
if (!$result) {
echo format_notice("ERROR: An error occured while sending the " . $data['section_name'] . " notifications.");
}
} else {
echo format_notice("ERROR: No email type was specified.");
}
}
开发者ID:Bakyenga,项目名称:kyengs,代码行数:35,代码来源:cronmail.php
示例2: changepassword
function changepassword()
{
$old_pw = $_POST["old_password"];
$new_pw = $_POST["new_password"];
$con_pw = $_POST["confirm_password"];
if ($old_pw == "") {
print "ERROR: " . format_error("Old password cannot be blank.");
return;
}
if ($new_pw == "") {
print "ERROR: " . format_error("New password cannot be blank.");
return;
}
if ($new_pw != $con_pw) {
print "ERROR: " . format_error("Entered passwords do not match.");
return;
}
$authenticator = PluginHost::getInstance()->get_plugin($_SESSION["auth_module"]);
if (method_exists($authenticator, "change_password")) {
print format_notice($authenticator->change_password($_SESSION["uid"], $old_pw, $new_pw));
} else {
print "ERROR: " . format_error("Function not supported by authentication module.");
}
}
开发者ID:XelaRellum,项目名称:tt-rss,代码行数:24,代码来源:prefs.php
示例3: foreach
//Format grading scale data
$grading_scale_info = '';
if (!empty($grading_scale_details)) {
$grading_scale_info = '<div><b>Grading scale details</b></div>' . '<table cellpadding="5" cellspacing="0">' . '<tr class="listheader">' . '<td>Range</td>' . '<td>Grade</td>' . '<td>Value</td>' . '</tr>';
$grade_counter = 0;
$js_grade_ranges = '';
foreach ($grading_scale_details as $grading_scale_detail) {
$grading_scale_info .= '<tr id="grade_scale_row_' . $grading_scale_detail['id'] . '" ' . ($grade_counter % 2 == 0 ? 'class="stripe grade_scale_row"' : 'class="grade_scale_row"') . '>' . '<td>' . $grading_scale_detail['mingrade'] . '-' . $grading_scale_detail['maxgrade'] . '</td>' . '<td>' . $grading_scale_detail['symbol'] . '</td>' . '<td>' . $grading_scale_detail['value'] . '</td>' . '</tr>';
$grade_counter++;
}
$grading_scale_info .= '</table>';
} else {
$grading_scale_info = '<div>' . format_notice('WARNING: No grading scale has been defined') . '</div>';
}
$average_mark = number_format($total_mark / $counter, 2);
echo '<tr>' . '<td colspan="4">' . '<input type="hidden" name="sm" value="' . encryptValue('true') . '" />' . '<input type="hidden" name="s" value="' . encryptValue($subject['id']) . '" />' . '<input type="hidden" name="c" value="' . encryptValue($class['id']) . '" />' . '<input type="hidden" name="e" value="' . (!empty($exam['id']) ? encryptValue($exam['id']) : '') . '" />' . '</td></tr>' . '<tr>' . '<td align="right"><b>Average Mark: </b></td>' . '<td colspan="3">' . '<input type="test" size="4" class="average_mark" readonly="readonly" value="' . $average_mark . '" id="average-mark" />' . '</td></tr>' . '<tr><td colspan="4"> </td></tr>' . '<tr><td colspan="4"><input type="button" value="Save" id="save-marks" class="button" /></td></tr>' . '<tr><td colspan="4"> </td></tr>' . '<tr><td colspan="4">' . $grading_scale_info . '</td></tr>';
} else {
$counter = 0;
foreach ($page_list as $row) {
echo '<tr class="mark_sheet_row" id="student_grades_' . $row['studentid'] . '" style="' . get_row_color($counter, 2) . '">
<td colspan="4"><div>' . $row['studentname'] . '</div></td>
</tr>';
$counter++;
}
}
} else {
echo '<tr><td colspan="3">' . format_notice('WARNING: No ' . $class['class'] . ' students have been registered for ' . $subject['subject'] . ' in ' . $term['term'] . ', ' . $term['year']) . '</td></tr>';
}
?>
</table>
开发者ID:nwtug,项目名称:academia,代码行数:31,代码来源:mark_sheet_view.php
示例4: get_required_field_wrap
}
?>
"/>
<?php
echo get_required_field_wrap($requiredfields, 'firstname', 'end');
}
?>
</td>
<td rowspan="9" nowrap class="field" valign="top">
<table>
<tr>
<td colspan="2" align="right">
<div id="image-upload-status">Uploading photo..</div>
<div id="image-upload-error"><?php
echo format_notice('ERROR: The file could not be uploaded.');
?>
</div>
<img id="profile-pic" src="<?php
echo base_url() . (empty($studentdetails['photo']) ? 'images/no-photo.jpg' : 'downloads/students/' . $studentdetails['photo']);
?>
" class="profile-pic" />
<?php
if (!empty($isview)) {
echo "<span class='viewtext'>" . $userdetails['telephone'] . "</span><input type='hidden' name='telephone' id='telephone' value='" . $userdetails['telephone'] . "' />";
} else {
?>
<div id="add-image" class="button" style="width:100px; margin-top:10px">
开发者ID:nwtug,项目名称:academia,代码行数:31,代码来源:student_form_view.php
示例5: array
<td> </td><td class='body-title' style='padding:15px;'>Register</td><td> </td>
</tr>
<?php
$this->load->view('addons/step_ribbon', array('step' => '2'));
?>
<tr>
<td> </td><td style='height:calc(85vh - 214px); vertical-align: top;'>
<table class='normal-table'><tr>
<td>
<table class='microform ignoreclear' style='width:100%;max-width:1000px;'>
<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) About Your Organization:</td></tr>
<tr><td class='two-fields'>
<div><input type='text' id='businessname' name='businessname' placeholder='Your Organization Name' value='<?php
echo $this->native_session->get('businessname');
?>
' /></div>
<div><select id='category__businesscategories' name='category__businesscategories' class='drop-down'>
<?php
echo get_option_list($this, 'businesscategories', 'select', '', array('selected' => $this->native_session->get('category__businesscategories') ? $this->native_session->get('category__businesscategories') : '', 'type' => $this->native_session->get('organizationtype')));
?>
</select>
<input type='hidden' id='organizationtype' name='organizationtype' value='<?php
开发者ID:nwtug,项目名称:pss-version-1.0,代码行数:31,代码来源:register_step_2.php
示例6: print_notice
function print_notice($msg)
{
return print format_notice($msg);
}
开发者ID:rclsilver,项目名称:openshift-tt-rss,代码行数:4,代码来源:functions.php
示例7: format_notice
<input type="text" name="select_book" id="select-book" class="textfield" autocomplete="off" size="30" />
<input name="select_book_searchby" type="hidden" id="select_book_searchby" value="borrower" />
<div id='select_book_results' style='max-height: 380px; overflow:hidden; position:absolute; border: 1px solid #98CBFF; background-color: #F7F7F7; display:none;'></div>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">
<div id="selected-books" style="width:100%">
<table id="selected-books-table" cellpadding="9" cellspacing="0">
<tr id="selected-books-header">
<td class="borrower_details_help">
<?php
print format_notice("HELP: Search and select available books to add");
?>
</td>
</tr>
<tbody>
</tbody>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="hidden" name="save" id="saveitem" value="Save" class="button"/>
<input type="submit" style="display:none" name="savebutton" id="save-borrow-transaction" value="Save" class="button"/>
</td>
开发者ID:nwtug,项目名称:academia,代码行数:31,代码来源:borrow_books_view.php
示例8: format_notice
<tr>
<td> </td>
<td class='one-column body-form-area microform ignoreclear'>
<?php
if (!empty($view)) {
?>
<table>
<?php
if ($msg) {
echo "<tr><td>" . format_notice($this, $msg) . "</td></tr>";
}
?>
<tr><td class='bold'>a) Your Account Details:</td></tr>
<tr><td class='two-fields'>
<div><?php
if (!empty($user['photo_url'])) {
echo "<div style='background: url(" . base_url() . 'assets/uploads/' . $user['photo_url'] . ") no-repeat center top;' class='large-user-photo'></div>";
} else {
echo "NO PHOTO";
}
?>
</div>
<div></div>
</td></tr>
开发者ID:nwtug,项目名称:pss-version-1.0,代码行数:30,代码来源:settings.php
示例9: format_notice
<div style="margin-top:5px">
<a href="" onclick="getForms('registration_form')" class="smallbrownlinks"><b>Register</b></a> | <a href="#" class="smallbrownlinks">Forgot Password</a> | <a href="#" class="smallbrownlinks">Help</a>
</div>
<?php
if ($error_msg != '') {
?>
<div style="font-size:12px; margin-top:10px" class="error">
<?php
echo $error_msg;
?>
</div>
<?php
}
if ($this->session->userdata('error_msg') && $this->session->userdata('error_msg') != '') {
?>
<div class="error"><?php
echo $this->session->userdata('error_msg');
?>
</div>
<?php
$this->session->unset_userdata(array('error_msg' => ''));
}
if (isset($msg)) {
echo "<div>" . format_notice($msg) . "</div>";
}
开发者ID:Bakyenga,项目名称:kyengs,代码行数:31,代码来源:login_form.php
示例10: format_notice
<td><table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td colspan="5" align="left" class="bottomtableborder_heading"><b>Step 3 - Company Trucks </b></td>
</tr>
<tr>
<td align="left"><b>Add New:</b> </td>
<td colspan="4" align="left"><input name="sub" type="submit" class="button" id="" value="General"/>
<input name="save2" type="submit" class="button" id="save2" value="Specifications"/>
<input name="save3" type="submit" class="button" id="save3" value="Purchase"/>
<input name="save4" type="submit" class="button" id="save4" value="Insurance"/>
<input name="save7" type="submit" class="button" id="save7" value="Expirations"/>
<input name="save5" type="submit" class="button" id="save5" value="Photo"/>
<input name="save6" type="submit" class="button" id="save6" value="Files"/></td>
</tr>
<?php
echo "<tr><td colspan='5'>" . format_notice($data['msg']) . "</td></tr>";
?>
<tr>
<td width="22%" align="left" nowrap="nowrap">Plate Number:</td>
<td width="31%" align="left"><?php
if (isset($action)) {
echo "<b>" . $companytruckdetails['regnumber'] . "</b>";
} else {
?>
<input name="companyid" type="hidden" value="<?php
if (isset($userdetails['companyid'])) {
echo $userdetails['companyid'];
}
?>
" /><input name="regnumber" type="text" class="textfield" id="regnumber" value="<?php
if (isset($companytruckdetails['regnumber'])) {
开发者ID:Bakyenga,项目名称:kyengs,代码行数:31,代码来源:general.php
示例11: foreach
$counter = 0;
foreach ($page_list as $row) {
#Show one row at a time
echo "<tr style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td valign='top' nowrap>";
if (1) {
echo "<a href='javascript:void(0)' onclick=\"confirmDeleteEntity('" . base_url() . "students/delete_transaction/i/" . encryptValue($row['transactionid']) . "', 'Are you sure you want to remove this transaction? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.');\" title=\"Click to remove this transaction.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
}
if (1) {
echo " <a href='" . base_url() . "students/load_transaction_form/i/" . encryptValue($row['transactionid']) . "/s/" . encryptValue($row['studentid']) . "' title=\"Click to edit this transaction.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
}
echo "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['datecreated'] . "</td>\t\t\r\r\n\t\t\r\r\n\t\t<td valign='top'><a href='" . base_url() . "inventory/load_item_form/i/" . encryptValue($row['itemid']) . "/a/" . encryptValue("view") . "' title=\"Click to view this item.\">" . $row['itemname'] . "</a></td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['quantity'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['amount'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'><a href='" . base_url() . "students/load_student_form/i/" . encryptValue($row['studentid']) . "/a/" . encryptValue("view") . "' title=\"Click to view this student.\">" . $row['firstname'] . " " . $row['lastname'] . "</a></td>\r\r\n\t\t\r\r\n\t\t</tr>";
$counter++;
}
echo "<tr>\r\r\n\t<td colspan='5' align='right' class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "deal/manage_deals/p/%d") . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
echo format_notice("There are no transactions at the moment.");
}
?>
</div>
</td>
</tr>
</table></td>
</tr>
</table>
</form>
</td>
</tr>
开发者ID:nwtug,项目名称:academia,代码行数:30,代码来源:manage_transactions_view.php
示例12: encryptValue
<table width="100" border="0" cellspacing="0" cellpadding="8">
<tr>
<td valign="top" nowrap="nowrap" class="label" style="padding-top:13px">Book title :<?php
echo $indicator;
?>
</td>
<td class="field" nowrap>
<input name="callbackElement" id="call-back-element" value="stock-title-form-wrap" type="hidden" />
<input name="listLinkToRefresh" id="list-link-to-refresh" value="manage-stock" type="hidden" />
<?php
if (!empty($title_info)) {
print $title_info['stocktitle'] . "<span class='viewtext'> <i>by</i> " . $title_info['author'] . "</span>";
print "<input type='hidden' name='bookid' value='" . encryptValue($title_info['stockid']) . "' id='bookid' />";
} else {
print format_notice("WARNING: Could not retrieve title information");
exit;
}
?>
</td>
</tr>
<tr>
<td valign="top" nowrap="nowrap" class="label" style="padding-top:13px">ISBN Number :<?php
echo $indicator;
?>
</td>
<td class="field" nowrap>
<?php
if (!empty($isview)) {
开发者ID:nwtug,项目名称:academia,代码行数:30,代码来源:stock_title_form_view.php
示例13: print_r
<span class="tools">
<a href="javascript:;" class="icon-chevron-down"></a>
<a href="javascript:;" class="icon-remove"></a>
</span>
</div>
<div class="widget-body" id="results">
<?php
#print_r($manage_bes);
if (!empty($manage_bes)) {
print '<table class="table table-striped table-hover">' . '<thead>' . '<tr>' . '<th width="5%"></th>' . '<th>Disposal Serial Number </th>' . '<th class="hidden-480">Name of Buyer</th>' . '<th class="hidden-480">Contract Amount</th>' . '<th class="hidden-480" colspan="3">Date Signed </th>' . '<th class="hidden-480">Date Added</th>' . '<th></th>' . '</tr>' . '</thead>' . '<tbody>';
# print_r($manage_bes['page_list']);
foreach ($manage_bes['page_list'] as $row) {
#print_r($row);
# print_r($row['bid_id']); exit();
print '<tr><td width="5%">';
print '</td>' . '<td>' . $row['disposal_serial_no'] . '</td>';
print '<td class="hidden-480">';
print $row['providernames'] . '</td>' . '<td class="hidden-480">' . number_format($row['contractamount']) . $row['currency'] . '</td>';
print '<td colspan="3">';
print date('Y-M-d', strtotime($row['datesigned']));
print '</td><td>' . date('Y-M-d', strtotime($row['dateadded'])) . '<td><td></td>';
'</tr>';
}
print '</tbody></table>';
print '<div class="pagination pagination-mini pagination-centered">' . pagination($this->session->userdata('search_total_results'), $manage_bes['rows_per_page'], $manage_bes['current_list_page'], base_url() . "receipts/manage_bebs/p/%d") . '</div>';
} else {
print format_notice('WARNING: No bid invitations have been added to the system');
}
?>
</div>
</div>
开发者ID:newwavetechug,项目名称:gpp,代码行数:31,代码来源:manage_contracts.php
示例14: cost
?>
" />
<span class="add-on"><i class="icon-calendar"></i></span>
</div>
</div>
</div>
<div class="form-actions">
<button type="submit" name="view" value="view-report" class="btn blue"><i class="icon-ok"></i> View report</button>
<button type="submit" name="view_pdf" value="view-pdf" class="btn"><i class="icon-file"></i> View PDF</button>
</div>
</form>
<!-- END FORM-->
<div id="report-results">
<?php
if (!empty($page_list)) {
print '<div class="row-fluid">' . '<div class="span" style="text-align:center"><h4>' . $report_heading . '</h4></div>' . '</div>' . (!empty($sub_heading) ? '<div class="row-fluid">' . '<div class="span" style="text-align:center"><h5><i>' . $sub_heading . '</i></h5></div>' . '</div>' : '') . '<div class="row-fluid">' . '<div class="span2 pull-left" style="text-align:right; font-weight:bold">Financial year:</div>' . '<div class="span6 pull-left" style="text-align:left">' . $financial_year . '</div>' . '</div>' . (!empty($report_period) ? '<div class="row-fluid">' . '<div class="span2 pull-left" style="text-align:right; font-weight:bold">Reporting period:</div>' . '<div class="span6 pull-left" style="text-align:left">' . $report_period . '</div>' . '</div>' : '');
print '<table class="table table-striped table-hover">' . '<thead>' . '<tr>' . '<th align="left">PDE name</th>' . '<th class="hidden-480">Procurement ref. no.</th>' . '<th class="hidden-480">Subject of procurement</th>' . ($formdata['ifb_report_type'] == 'BER' ? '<th>Procurement method <br /> (Threshhold)</th>' : '') . ($formdata['ifb_report_type'] == 'PIFB' ? '<th style="text-align:right">Estimated cost(UGX)</th>' : '') . ($formdata['ifb_report_type'] == 'PIFB' ? '<th>IFB Date</th>' : '') . '<th>Bid submission dead line</th>' . ($formdata['ifb_report_type'] == 'BER' ? '<th>Bid submission duration</th>' : '') . ($formdata['ifb_report_type'] == 'PIFB' ? '<th>No. of bids received</th>' : '') . '</tr>' . '</thead>' . '</tbody>';
foreach ($page_list as $row) {
print '<tr>' . '<td>' . $row['pdename'] . '</td>' . '<td>' . $row['procurement_ref_no'] . '</td>' . '<td>' . $row['subject_of_procurement'] . '</td>' . ($formdata['ifb_report_type'] == 'BER' ? '<td>' . $row['procurement_method_title'] . ' (' . $row['biddingperiod'] . ')</td>' : '') . ($formdata['ifb_report_type'] == 'PIFB' ? '<td style="text-align: right">' . (is_numeric($row['estimated_amount']) ? number_format($row['estimated_amount'] * $row['exchange_rate'], 0, '.', ',') : $row['estimated_amount']) . '</td>' : '') . ($formdata['ifb_report_type'] == 'PIFB' ? '<td style="white-space: nowrap">' . custom_date_format('d M, Y', $row['invitation_to_bid_date']) . '</td>' : '') . '<td>' . custom_date_format('d M, Y', $row['bid_submission_deadline']) . ' at ' . custom_date_format('h:i A', $row['bid_submission_deadline']) . '</td>' . ($formdata['ifb_report_type'] == 'BER' ? '<td>' . $row['proposal_submission_date_duration'] . '</td>' : '') . ($formdata['ifb_report_type'] == 'PIFB' ? '<td>' . $row['numOfBids'] . '</td>' : '') . '</tr>';
}
print '</tbody></table>';
print '<div class="pagination pagination-mini pagination-centered">' . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "admin/manage_users/p/%d") . '</div>';
} elseif (!empty($formdata)) {
print format_notice('WARNING: Your search criteria does not match any results');
}
?>
</div>
</div>
</div>
开发者ID:newwavetechug,项目名称:gpp,代码行数:31,代码来源:invitation_for_bids_reports.php
示例15: count
<table>
<?php
$stopHtml = "<input name='paginationdiv__bid_stop' id='paginationdiv__bid_stop' type='hidden' value='1' />";
if (!empty($list)) {
echo "<tr><th>Date Posted</th><th>Procuring/Disposing Entity</th><th>Procurement Reference Number</th><th>Subject</th>";
if (!$this->native_session->get('__view')) {
echo "<th>Selected Provider</th><th>Date BEB Expires</th><th>Status</th><th>BEB Price</th>";
}
echo "</tr>";
$listCount = count($list);
$i = 0;
foreach ($list as $row) {
$i++;
echo "<tr>\n\t\t\t\t<td>" . date(SHORT_DATE_FORMAT, strtotime($row['last_updated'])) . "</td>\n\t\t\t\t<td>" . $row['pde'] . "</td>\n\t\t\t\t<td>" . $row['reference_number'] . "</td>\n\t\t\t\t<td><a href='" . base_url() . 'bids/view_one/d/' . $row['bid_id'] . "' class='shadowbox closable blue-box'>" . $row['tender_notice'] . "</a>";
if (!$this->native_session->get('__view')) {
echo "</td>\n\t\t\t\t<td>" . $row['provider'] . "</td>\n\t\t\t\t<td>" . ($row['valid_end_date'] != '0000-00-00' ? date(SHORT_DATE_FORMAT, strtotime($row['valid_end_date'])) : 'NONE') . "</td>\n\t\t\t\t<td>" . strtoupper(str_replace('_', ' ', $row['status'])) . "</td>\n\t\t\t\t<td>" . $row['bid_currency'] . format_number($row['bid_amount'], 3, 0);
}
if ($i == $listCount && (!empty($n) && $listCount < $n || empty($n) && $listCount < NUM_OF_ROWS_PER_PAGE)) {
echo $stopHtml;
}
echo "</td>\n\t\t\t\t</tr>";
}
} else {
echo "<tr><td>" . format_notice($this, 'WARNING: There are no best evaluated bidders in this list.') . $stopHtml . "</td></tr>";
}
?>
</table>
开发者ID:nwtug,项目名称:pss-version-1.0,代码行数:27,代码来源:details_list.php
示例16: foreach
echo "<table>";
if (!empty($list)) {
echo "<tr><th style='width:1%;'> </th>" . ($this->native_session->get('__user_type') == 'pde' ? "" : "<th>PDE</th>") . "<th>Name</th><th>Amount</th><th>Progress</th><th>Date Started</th><th>Status</th><th>Last Updated</th><th>Last Updated By</th></tr>";
foreach ($list as $row) {
$i++;
echo "<tr> \n\t\t<td>";
if ($this->native_session->get('__user_type') != 'provider') {
echo "<input id='select_" . $row['contract_id'] . "' name='selectall[]' type='checkbox' value='" . $row['contract_id'] . "' class='bigcheckbox'><label for='select_" . $row['contract_id'] . "'></label>";
} else {
echo " ";
}
echo "</td>";
if ($this->native_session->get('__user_type') != 'pde') {
echo "<td><a href='" . base_url() . "accounts/view_pde/d/" . $row['pde_id'] . "' class='shadowbox closable'>" . html_entity_decode($row['pde'], ENT_QUOTES) . "</a></td>";
}
echo "<td><a href='" . base_url() . "tenders/view_one/d/" . $row['tender_id'] . "' class='shadowbox closable'>" . html_entity_decode($row['tender_notice'], ENT_QUOTES) . "</a></td>\n\t\t<td>" . $row['contract_currency'] . format_number($row['contract_amount'], 3) . "</td>\n\t\t<td><div style='white-space:nowrap;'>" . $row['progress_percent'] . '%' . ($row['has_notes'] == 'Y' ? " <a href='" . base_url() . "contracts/notes/d/" . $row['contract_id'] . "' class='shadowbox closable'>Notes</a>" : '') . "</div>";
# allow a provider to add a note only when the contract is active
if ($this->native_session->get('__user_type') != 'provider' || $row['status'] == 'active' && $this->native_session->get('__user_type') == 'provider') {
echo "<div class='green-box btn shadowbox' data-url='" . base_url() . "contracts/add_note/d/" . $row['contract_id'] . "'>Add Note</div>";
}
echo "</td>\n\t\t<td>" . date(SHORT_DATE_FORMAT, strtotime($row['date_started'])) . "</td>\n\t\t<td>" . strtoupper($row['status']) . "</td>\n\t\t<td>" . date(FULL_DATE_FORMAT, strtotime($row['last_updated'])) . "</td>\n\t\t<td>" . html_entity_decode($row['last_updated_by'], ENT_QUOTES);
# Check whether you need to stop the loading of the next pages
if ($i == $listCount && (!empty($n) && $listCount < $n || empty($n) && $listCount < NUM_OF_ROWS_PER_PAGE)) {
echo $stopHtml;
}
echo "</td>\n\t\t</tr>";
}
} else {
echo "<tr><td>" . format_notice($this, 'WARNING: There are no contracts in this list.') . $stopHtml . "</td></tr>";
}
echo "</table>";
开发者ID:nwtug,项目名称:pss-version-1.0,代码行数:31,代码来源:contract_list.php
示例17: add
function add()
{
$login = $this->dbh->escape_string(trim($_REQUEST["login"]));
$tmp_user_pwd = make_password(8);
$salt = substr(bin2hex(get_random_bytes(125)), 0, 250);
$pwd_hash = encrypt_password($tmp_user_pwd, $salt, true);
$result = $this->dbh->query("SELECT id FROM ttrss_users WHERE\n\t\t\t\tlogin = '{$login}'");
if ($this->dbh->num_rows($result) == 0) {
$this->dbh->query("INSERT INTO ttrss_users\n\t\t\t\t\t(login,pwd_hash,access_level,last_login,created, salt)\n\t\t\t\t\tVALUES ('{$login}', '{$pwd_hash}', 0, null, NOW(), '{$salt}')");
$result = $this->dbh->query("SELECT id FROM ttrss_users WHERE\n\t\t\t\t\tlogin = '{$login}' AND pwd_hash = '{$pwd_hash}'");
if ($this->dbh->num_rows($result) == 1) {
$new_uid = $this->dbh->fetch_result($result, 0, "id");
print format_notice(T_sprintf("Added user <b>%s</b> with password <b>%s</b>", $login, $tmp_user_pwd));
initialize_user($new_uid);
} else {
print format_warning(T_sprintf("Could not create user <b>%s</b>", $login));
}
} else {
print format_warning(T_sprintf("User <b>%s</b> already exists.", $login));
}
}
开发者ID:zamentur,项目名称:ttrss_ynh,代码行数:21,代码来源:users.php
示例18: foreach
$counter = 0;
foreach ($page_list as $row) {
#Show one row at a time
echo "<tr style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td valign='top' nowrap>";
if (1) {
echo "<a href='javascript:void(0)' onclick=\"confirmDeleteEntity('" . base_url() . "student/delete_miscelleneous/i/" . encryptValue($row['miscid']) . "', 'Are you sure you want to remove this item? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.');\" title=\"Click to remove this item.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
}
if (1) {
echo " <a href='" . base_url() . "students/load_miscelleneous_form/i/" . encryptValue($row['miscid']) . "/s/" . encryptValue($row['studentid']) . "' title=\"Click to edit this item.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
}
echo "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'><a href='" . base_url() . "students/load_miscelleneous_form/i/" . encryptValue($row['miscid']) . "/a/" . encryptValue("view") . "/s/" . encryptValue($row['studentid']) . "/u/" . encryptValue("update") . "' title=\"Click to edit this item.\">" . $row['subject'] . "</a></td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['firstname'] . " " . $row['lastname'] . "</td>\r\r\n\t\t\r\r\n\t\t</tr>";
$counter++;
}
echo "<tr>\r\r\n\t<td colspan='5' align='right' class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "students/manage_miscelleneous/p/%d") . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
echo format_notice("There is no at the moment.");
}
?>
</div>
</td>
</tr>
</table></td>
</tr>
</table>
</form>
</td>
</tr>
开发者ID:nwtug,项目名称:academia,代码行数:30,代码来源:manage_miscelleneous_view.php
示例19: format_notice
<td colspan="2" style="padding-top:0px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="pageheader" nowrap>My Settings</td>
<td align="right"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td colspan="2" nowrap>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php
if (isset($msg)) {
echo "<tr><td height='10'></td></tr>" . "<tr><td>" . format_notice($msg) . "</td></tr>";
}
?>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="8">
<tr>
<td colspan="3" style="padding:0px;"><table width=&
|
请发表评论