本文整理汇总了PHP中RGFormsModel::get_lead_notes方法的典型用法代码示例。如果您正苦于以下问题:PHP RGFormsModel::get_lead_notes方法的具体用法?PHP RGFormsModel::get_lead_notes怎么用?PHP RGFormsModel::get_lead_notes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RGFormsModel
的用法示例。
在下文中一共展示了RGFormsModel::get_lead_notes方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gform_default_entry_content
function gform_default_entry_content($form, $entry, $entry_ids)
{
$page_break = rgget('page_break') ? 'print-page-break' : false;
// Separate each entry inside a form element so radio buttons don't get treated as a single group across multiple entries.
echo '<form>';
GFEntryDetail::lead_detail_grid($form, $entry);
echo '</form>';
if (rgget('notes')) {
$notes = RGFormsModel::get_lead_notes($entry['id']);
if (!empty($notes)) {
GFEntryDetail::notes_grid($notes, false);
}
}
// output entry divider/page break
if (array_search($entry['id'], $entry_ids) < count($entry_ids) - 1) {
echo '<div class="print-hr ' . $page_break . '"></div>';
}
}
示例2: lead_detail_page
//.........这里部分代码省略.........
<!-- / end notifications -->
<?php
}
?>
<!-- begin print button -->
<div class="detail-view-print">
<a href="javascript:;" onclick="var notes_qs = jQuery('#gform_print_notes').is(':checked') ? '¬es=1' : ''; var url='<?php
echo trailingslashit(site_url());
?>
?gf_page=print-entry&fid=<?php
echo absint($form['id']);
?>
&lid=<?php
echo absint($lead['id']);
?>
' + notes_qs; window.open (url,'printwindow');" class="button"><?php
esc_html_e('Print', 'gravityforms');
?>
</a>
<?php
if (GFCommon::current_user_can_any('gravityforms_view_entry_notes')) {
?>
<input type="checkbox" name="print_notes" value="print_notes" checked="checked" id="gform_print_notes" />
<label for="print_notes"><?php
esc_html_e('include notes', 'gravityforms');
?>
</label>
<?php
}
?>
</div>
<!-- end print button -->
<?php
do_action('gform_entry_detail_sidebar_after', $form, $lead);
?>
</div>
<div id="post-body" class="has-sidebar">
<div id="post-body-content" class="has-sidebar-content">
<?php
do_action('gform_entry_detail_content_before', $form, $lead);
if ($mode == 'view') {
self::lead_detail_grid($form, $lead, true);
} else {
self::lead_detail_edit($form, $lead);
}
do_action('gform_entry_detail', $form, $lead);
if (GFCommon::current_user_can_any('gravityforms_view_entry_notes')) {
?>
<div class="postbox">
<h3>
<label for="name"><?php
esc_html_e('Notes', 'gravityforms');
?>
</label>
</h3>
<form method="post">
<?php
wp_nonce_field('gforms_update_note', 'gforms_update_note');
?>
<div class="inside">
<?php
$notes = RGFormsModel::get_lead_notes($lead['id']);
//getting email values
$email_fields = GFCommon::get_email_fields($form);
$emails = array();
foreach ($email_fields as $email_field) {
if (!empty($lead[$email_field->id])) {
$emails[] = $lead[$email_field->id];
}
}
//displaying notes grid
$subject = '';
self::notes_grid($notes, true, $emails, $subject);
?>
</div>
</form>
</div>
<?php
}
do_action('gform_entry_detail_content_after', $form, $lead);
?>
</div>
</div>
</div>
</div>
</form>
<?php
if (rgpost('action') == 'update') {
?>
<div class="updated fade" style="padding:6px;">
<?php
esc_html_e('Entry Updated.', 'gravityforms');
?>
</div>
<?php
}
}
示例3: _e
<div><span class="actionlinks"><a href="javascript:;" onclick="window.print();" class="header-print-link">print this page</a> | <a href="javascript:window.close()" class="close_window"><?php
_e("close window", "gravityforms");
?>
</a></span><?php
_e("Print Preview", "gravityforms");
?>
</div>
</div>
<div id="view-container">
<?php
require_once GFCommon::get_base_path() . "/entry_detail.php";
foreach ($lead_ids as $lead_id) {
$lead = RGFormsModel::get_lead($lead_id);
do_action("gform_print_entry_header", $form, $lead);
GFEntryDetail::lead_detail_grid($form, $lead);
if (rgget('notes')) {
$notes = RGFormsModel::get_lead_notes($lead["id"]);
if (!empty($notes)) {
GFEntryDetail::notes_grid($notes, false);
}
}
// output entry divider/page break
if (array_search($lead_id, $lead_ids) < count($lead_ids) - 1) {
echo '<div class="print-hr ' . $page_break . '"></div>';
}
do_action("gform_print_entry_footer", $form, $lead);
}
?>
</div>
</body>
</html>
示例4: lead_detail_page
//.........这里部分代码省略.........
<!-- / end notifications -->
<?php
}
?>
<!-- begin print button -->
<div class="detail-view-print">
<a href="javascript:;" onclick="var notes_qs = jQuery('#gform_print_notes').is(':checked') ? '¬es=1' : ''; var url='<?php
echo trailingslashit(site_url());
?>
?gf_page=print-entry&fid=<?php
echo $form['id'];
?>
&lid=<?php
echo $lead['id'];
?>
' + notes_qs; window.open (url,'printwindow');" class="button"><?php
_e("Print", "gravityforms");
?>
</a>
<?php
if (GFCommon::current_user_can_any("gravityforms_view_entry_notes")) {
?>
<input type="checkbox" name="print_notes" value="print_notes" checked="checked" id="gform_print_notes"/>
<label for="print_notes"><?php
_e("include notes", "gravityforms");
?>
</label>
<?php
}
?>
</div>
<!-- end print button -->
<?php
do_action("gform_entry_detail_sidebar_after", $form, $lead);
?>
</div>
<div id="post-body" class="has-sidebar">
<div id="post-body-content" class="has-sidebar-content">
<?php
do_action("gform_entry_detail_content_before", $form, $lead);
if ($mode == "view") {
self::lead_detail_grid($form, $lead, true);
} else {
self::lead_detail_edit($form, $lead);
}
do_action("gform_entry_detail", $form, $lead);
if (GFCommon::current_user_can_any("gravityforms_view_entry_notes")) {
?>
<div class="postbox">
<h3>
<label for="name"><?php
_e("Notes", "gravityforms");
?>
</label>
</h3>
<form method="post">
<?php
wp_nonce_field('gforms_update_note', 'gforms_update_note');
?>
<div class="inside">
<?php
$notes = RGFormsModel::get_lead_notes($lead["id"]);
//getting email values
$email_fields = GFCommon::get_email_fields($form);
$emails = array();
foreach ($email_fields as $email_field) {
if (!empty($lead[$email_field["id"]])) {
$emails[] = $lead[$email_field["id"]];
}
}
//displaying notes grid
$subject = !empty($form["autoResponder"]["subject"]) ? "RE: " . GFCommon::replace_variables($form["autoResponder"]["subject"], $form, $lead) : "";
self::notes_grid($notes, true, $emails, $subject);
?>
</div>
</form>
</div>
<?php
}
do_action("gform_entry_detail_content_after", $form, $lead);
?>
</div>
</div>
</div>
</div>
</form>
<?php
if (rgpost("action") == "update") {
?>
<div class="updated fade" style="padding:6px;">
<?php
_e("Entry Updated.", "gravityforms");
?>
</div>
<?php
}
}
示例5: add_sidebar_text_before
//.........这里部分代码省略.........
><i></i>
</span>
(Your Rating)<br/>
<span id="updateMSG" style="font-size:smaller">Average Rating: <?php
echo $ratingAvg;
?>
Stars from <?php
echo $ratingNum;
?>
users.</span>
<?php
if ($ratingResults != '') {
echo '<table cellspacing="0" style="padding:10px 0">' . ' <tr>' . ' <td class="entry-view-field-name">Rating</td>' . ' <td class="entry-view-field-name">User</td>' . ' <td class="entry-view-field-name">Date Rated</td>' . '</tr>' . $ratingResults . '</table>';
}
?>
</div>
</div>
<?php
/* Notes Sidebar Area */
?>
<div class="postbox" style="float:none;padding: 10px;">
<h3>
<label for="name"><?php
_e('Notes', 'gravityforms');
?>
</label>
</h3>
<?php
wp_nonce_field('gforms_update_note', 'gforms_update_note');
?>
<div class="inside">
<?php
$notes = RGFormsModel::get_lead_notes($lead['id']);
//getting email values
$email_fields = GFCommon::get_email_fields($form);
$emails = array();
foreach ($email_fields as $email_field) {
if (!empty($lead[$email_field->id])) {
$emails[] = $lead[$email_field->id];
}
}
//displaying notes grid
$subject = '';
notes_sidebar_grid($notes, true, $emails, $subject);
?>
</div>
</div>
<?php
/* Entry Management Sidebar Area */
if ($mode == 'view') {
?>
<div class='postbox' style="float:none;padding: 10px;">
<?php
// Load Entry Sidebar details
mf_sidebar_entry_info($form['id'], $lead);
?>
<?php
// Create Update button for sidebar entry management
$entry_sidebar_button = '<input type="submit" name="update_management" value="Update Management" class="button"
style="width:auto;padding-bottom:2px;"
onclick="jQuery(\'#action\').val(\'update_entry_management\');"/>';
echo $entry_sidebar_button;
?>
</div>
示例6: lead_detail_page
//.........这里部分代码省略.........
</div>
</div>
</div>
<!-- / end notifications -->
<?php
}
?>
<!-- begin print button -->
<div class="detail-view-print">
<a href="javascript:;" onclick="var notes_qs = jQuery('#gform_print_notes').is(':checked') ? '¬es=1' : ''; var url='<?php
echo site_url();
?>
/?gf_page=print-entry&fid=<?php
echo $form['id'];
?>
&lid=<?php
echo $lead['id'];
?>
' + notes_qs; window.open (url,'printwindow');" class="button"><?php
_e("Print", "gravityforms");
?>
</a>
<?php
if (GFCommon::current_user_can_any("gravityforms_view_entry_notes")) {
?>
<input type="checkbox" name="print_notes" value="print_notes" checked="checked" id="gform_print_notes"/>
<label for="print_notes"><?php
_e("include notes", "gravityforms");
?>
</label>
<?php
}
?>
</div>
<!-- end print button -->
</div>
<div id="post-body" class="has-sidebar">
<div id="post-body-content" class="has-sidebar-content">
<?php
if ($mode == "view") {
self::lead_detail_grid($form, $lead, true);
} else {
self::lead_detail_edit($form, $lead);
}
do_action("gform_entry_detail", $form, $lead);
if (GFCommon::current_user_can_any("gravityforms_view_entry_notes")) {
?>
<div id="namediv" class="stuffbox">
<h3>
<label for="name"><?php
_e("Notes", "gravityforms");
?>
</label>
</h3>
<form method="post">
<?php
wp_nonce_field('gforms_update_note', 'gforms_update_note');
?>
<div class="inside">
<?php
$notes = RGFormsModel::get_lead_notes($lead["id"]);
//getting email values
$email_fields = GFCommon::get_email_fields($form);
$emails = array();
foreach ($email_fields as $email_field) {
if (!empty($lead[$email_field["id"]])) {
$emails[] = $lead[$email_field["id"]];
}
}
//displaying notes grid
$subject = !empty($form["autoResponder"]["subject"]) ? "RE: " . GFCommon::replace_variables($form["autoResponder"]["subject"], $form, $lead) : "";
self::notes_grid($notes, true, $emails, $subject);
?>
</div>
</form>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
</form>
<?php
if (rgpost("action") == "update") {
?>
<div class="updated fade" style="padding:6px;">
<?php
_e("Entry Updated.", "gravityforms");
?>
</div>
<?php
}
}
示例7: _e
<span class="actionlinks"><a href="javascript:;" onclick="window.print();" class="header-print-link">print this page</a> | <a href="javascript:window.close()" class="close_window"><?php
_e('close window', 'gravityforms');
?>
</a></span><?php
_e('Print Preview', 'gravityforms');
?>
</div>
</div>
<div id="view-container">
<?php
require_once GFCommon::get_base_path() . '/entry_detail.php';
foreach ($lead_ids as $lead_id) {
$lead = RGFormsModel::get_lead($lead_id);
do_action('gform_print_entry_header', $form, $lead);
GFEntryDetail::lead_detail_grid($form, $lead);
if (rgget('notes')) {
$notes = RGFormsModel::get_lead_notes($lead['id']);
if (!empty($notes)) {
GFEntryDetail::notes_grid($notes, false);
}
}
// output entry divider/page break
if (array_search($lead_id, $lead_ids) < count($lead_ids) - 1) {
echo '<div class="print-hr ' . $page_break . '"></div>';
}
do_action('gform_print_entry_footer', $form, $lead);
}
?>
</div>
</body>
</html>
示例8: meta_box_notes
public static function meta_box_notes($args, $metabox)
{
$entry = $args['entry'];
$form = $args['form'];
?>
<form method="post">
<?php
wp_nonce_field('gforms_update_note', 'gforms_update_note');
?>
<div class="inside">
<?php
$notes = RGFormsModel::get_lead_notes($entry['id']);
//getting email values
$email_fields = GFCommon::get_email_fields($form);
$emails = array();
foreach ($email_fields as $email_field) {
if (!empty($entry[$email_field->id])) {
$emails[] = $entry[$email_field->id];
}
}
//displaying notes grid
$subject = '';
self::notes_grid($notes, true, $emails, $subject);
?>
</div>
</form>
<?php
}
示例9: lead_detail_page
//.........这里部分代码省略.........
_e("Add Note", "gravityforms");
?>
" class="button" style="width:60px;" onclick="jQuery('#action').val('add_quick_note');"/>
</span>
</div>
</div>
</div>
</div>
<!-- end side notes -->
<?php
}
?>
<!-- begin print button -->
<div class="detail-view-print">
<a href="javascript:;" onclick="var notes_qs = jQuery('#gform_print_notes').is(':checked') ? '¬es=1' : ''; var url='<?php
echo GFCommon::get_base_url();
?>
/print-entry.php?fid=<?php
echo $form['id'];
?>
&lid=<?php
echo $lead['id'];
?>
' + notes_qs; window.open (url,'printwindow');" class="button">Print</a>
<?php
if (GFCommon::current_user_can_any("gravityforms_view_entry_notes")) {
?>
<input type="checkbox" name="print_notes" value="print_notes" checked="checked" id="gform_print_notes"/>
<label for="print_notes">include notes</label>
<?php
}
?>
</div>
<!-- end print button -->
</div>
<div id="post-body" class="has-sidebar">
<div id="post-body-content" class="has-sidebar-content">
<?php
if ($mode == "view") {
self::lead_detail_grid($form, $lead, true);
} else {
self::lead_detail_edit($form, $lead);
}
?>
<?php
if (GFCommon::current_user_can_any("gravityforms_view_entry_notes")) {
?>
<div id="namediv" class="stuffbox">
<h3>
<label for="name"><?php
_e("Notes", "gravityforms");
?>
</label>
</h3>
<form method="post">
<?php
wp_nonce_field('gforms_update_note', 'gforms_update_note');
?>
<div class="inside">
<?php
$notes = RGFormsModel::get_lead_notes($lead["id"]);
//getting email values
$email_fields = GFCommon::get_email_fields($form);
$emails = array();
foreach ($email_fields as $email_field) {
if (!empty($lead[$email_field["id"]])) {
$emails[] = $lead[$email_field["id"]];
}
}
//displaying notes grid
$subject = !empty($form["autoResponder"]["subject"]) ? "RE: " . GFCommon::replace_variables($form["autoResponder"]["subject"], $form, $lead) : "";
self::notes_grid($notes, true, $emails, $subject);
?>
</div>
</form>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
</form>
<?php
if (rgpost("action") == "update") {
?>
<div class="updated fade" style="padding:6px;">
<?php
_e("Entry Updated.", "gravityforms");
?>
</div>
<?php
}
}
示例10: get_timeline_notes
public static function get_timeline_notes($entry)
{
$notes = RGFormsModel::get_lead_notes($entry['id']);
foreach ($notes as $key => $note) {
if ($note->note_type !== 'gravityflow') {
unset($notes[$key]);
}
}
reset($notes);
$initial_note = new stdClass();
$initial_note->id = 0;
$initial_note->date_created = $entry['date_created'];
$initial_note->value = esc_html__('Workflow Submitted', 'gravityflow');
$initial_note->user_id = $entry['created_by'];
$user = get_user_by('id', $entry['created_by']);
$initial_note->user_name = $user ? $user->display_name : $entry['ip'];
array_unshift($notes, $initial_note);
$notes = array_reverse($notes);
return $notes;
}