function list_data_employer_action($class_postfix, $type) { global $label; $this->list_cell_open(null, 'list_data_cell' . $class_postfix); echo '<p style="text-align:center">'; echo $this->get_checkbox('posts', $this->get_data_value('post_id')); echo '</p>'; $this->list_cell_close(); $this->list_cell_open(null, 'list_data_cell' . $class_postfix); ?> <input class="post_edit_button" type="button" name="action" value="<?php echo $label['post_edit_button']; ?> " onClick="window.location='post.php?post_id=<?php echo $this->get_data_value('post_id'); ?> &type=<?php echo $type; ?> '"><br> <input class="post_delete_button" type="button" name="action" value="<?php echo $label['post_delete_button']; ?> " onClick="if (!confirmLink(this, '<?php echo JB_js_out_prep($label['post_delete_confirm']); ?> ')) {return};window.location='manager.php?action=delete&post_id=<?php echo $this->get_data_value('post_id'); ?> '"><br> <?php if ($this->show == 'OFFLINE') { ?> <input class="post_repost_button" type="button" name="action" value="<?php echo $label['post_repost_button']; ?> " onClick="window.location='post.php?repost=1&post_id=<?php echo $this->get_data_value('post_id'); ?> &type=<?php echo $type; ?> '"><br> <?php } if ($this->show == 'OFFLINE' && $this->get_data_value('expired') == 'Y') { if ($this->get_data_value('post_date') == 'premium') { $days = JB_P_POSTS_DISPLAY_DAYS; } else { $days = JB_POSTS_DISPLAY_DAYS; } JBPLUG_do_callback('post_manager_set_expire_days', $days, $this); // plugins could use $this->get_data_value('post_id') to get post_id, and other values $post_time = strtotime($this->get_data_value('post_date')); if ($post_time > time() - 60 * 60 * 24 * $days) { ?> <input class="post_repost_button" type="button" name="action" value="<?php echo $label['post_unexpire_button']; ?> " onClick="window.location='<?php echo htmlentities($_SERVER['PHP_SELF']); ?> ?undo_expire=1&post_id=<?php echo $this->get_data_value('post_id'); ?> &type=<?php echo $type; ?> '"> <?php } } $this->list_cell_close(); }
echo $row['invoice_id'] . $date_link; ?> ' "> / <input type="button" style="font-size: 9px;" value="Cancel" onclick="if (!confirmLink(this, 'Cancel this Order, are you sure?')) return false; window.location='<?php echo 'subscription_report.php'; ?> ?action=cancel&invoice_id=<?php echo $row['invoice_id'] . $date_link; ?> ' "> <?php } if (strtolower($row['status']) == 'confirmed' || strtolower($row['status']) == 'pending') { ?> <br> <input type="button" style="font-size: 9px;" value="Complete" onclick="if (!confirmLink(this, 'Payment from <?php echo JB_js_out_prep(JB_escape_html(jb_get_formatted_name($row2['FirstName'], $row2['LastName']))); ?> to be completed. Order for <?php echo @JB_convert_to_currency($row['amount'], $row['currency_code'], DEFAULT_CURR); //echo CURRENCY_SIGN.$row['amount']; ?> will be credited to their account.\n ** Are you sure? **')) return false; window.location='<?php echo htmlentities('subscription_report.php'); ?> ?action=complete&invoice_id=<?php echo $row['invoice_id'] . $date_link; ?> ' "> / <input type="button" style="font-size: 9px;" value="Cancel" onclick="if (!confirmLink(this, 'Cancel this Order, are you sure?')) return false; window.location='<?php echo htmlentities('subscription_report.php'); ?> ?action=cancel&invoice_id=<?php
function control_button($button_label, $confirm_str, $name = 'delete') { if (!$button_label) { return false; } // do not output the button if button_label is blank ?> <input type="submit" class="control_button" name="<?php echo $name; ?> " value="<?php echo $button_label; ?> " onClick="if (!confirmLink(this, '<?php echo JB_js_out_prep($confirm_str); ?> ')) {return false;} " > <?php }