| Server IP : 13.126.101.145 / Your IP : 216.73.216.131 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ip-11-115-0-196 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/rentals_updated/wp-content/plugins/operators/ |
Upload File : |
<?php
// Ensure the file is not accessed directly
if (!defined('ABSPATH')) {
exit;
}
// Add admin menu
add_action('admin_menu', 'termscondition_admin_menu');
function termscondition_admin_menu() {
add_menu_page(
'Terms & Conditions', // Page title
'Terms & Conditions', // Menu title
'manage_options', // Capability
'termscondition-dashboard', // Menu slug
'termscondition_list',// Callback function
'dashicons-media-document', // Icon URL
6 // Position
);
// Add a submenu page
add_submenu_page(
'termscondition-dashboard', // The slug name for the parent menu
'Create Terms & Conditions', // The text to be displayed in the title tags of the page when the submenu is selected
'Create Terms & Conditions', // The text to be used for the submenu
'manage_options', // The capability required for this menu to be displayed to the user
'create_termscondition', // The slug name to refer to this submenu
'create_termscondition' // The function to be called to output the content for this page
);
add_submenu_page(null, //parent slug
'Edit Terms & Conditions', //page title
'Edit', //menu title
'manage_options', //capability
'edit-termscondition', //menu slug
'termscondition_edit'); //function
add_submenu_page(null, //parent slug
'Delete Terms & Conditions', //page title
'Delete', //menu title
'manage_options', //capability
'delete-termscondition', //menu slug
'termscondition_delete'); //function
}
function termscondition_enqueue_custom_styles_and_scripts($hook) {
// Load only on the logsheet dashboard page
if ($hook !== 'toplevel_page_termscondition-dashboard' && $hook !== 'terms-conditions_page_create_termscondition' && $hook!=='admin_page_edit-termscondition') {
return;
}
// Enqueue Bootstrap CSS
wp_enqueue_style('bootstrap-css', 'https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css');
// Enqueue DataTables CSS
wp_enqueue_style('datatables-css', 'https://cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css');
// Enqueue Font Awesome CSS
wp_enqueue_style('fontawesome-css', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');
// Enqueue your custom CSS
wp_enqueue_style('rfq-custom-styles', plugin_dir_url(__FILE__) . 'css/custom-style.css');
// Enqueue your custom CSS
wp_enqueue_style('tnc-rtx-styles', plugin_dir_url(__FILE__) . 'css/richtext.min.css');
// Enqueue jQuery and DataTables JS
wp_enqueue_script('jquery');
wp_enqueue_script('datatables-js', 'https://cdn.datatables.net/1.10.24/js/jquery.dataTables.min.js', array('jquery'), '1.10.24', true);
// Enqueue Bootstrap JS and your custom JS
wp_enqueue_script('bootstrap-js', 'https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js', array('jquery'), '4.5.2', true);
wp_enqueue_script('rfq-custom-scripts', plugin_dir_url(__FILE__) . 'js/custom-script.js', array('jquery'), '1.0', true);
wp_enqueue_script('tnc-rtx-scripts', plugin_dir_url(__FILE__) . 'js/jquery.richtext.min.js', array('jquery'), '1.0', true);
}
add_action('admin_enqueue_scripts', 'termscondition_enqueue_custom_styles_and_scripts');
// Display the data
function termscondition_list() {
global $wpdb;
$results = $wpdb->get_results("SELECT * FROM wp_termscondition order by id desc");
?>
<div class="wrap rfq-wrap">
<h1 class="wp-heading-inline mb-2 font-weight-bold">Term & Condition</h1>
<div class="table-responsive">
<table id="termscondition-table" class="table mb-4 display pb-30 dataTable table-data">
<thead style="background-color:#FFBD2B;">
<tr>
<th scope="row" class="manage-column">Sr. No</th>
<!-- <th scope="col" class="manage-column">Quotation ID</th> -->
<th scope="col" class="manage-column">Terms Name</th>
<th scope="col" class="manage-column">Terms Condition</th>
<th scope="col" class="manage-column">Created On</th>
<th scope="col" class="manage-column">Action</th>
</tr>
</thead>
<tbody>
<?php
$i = 1;
foreach($results as $result){
?>
<tr>
<td><?php echo $i;?></td>
<!-- <td><?php echo $result->quotation_id;?></td> -->
<td><?php echo $result->terms_name;?></td>
<td>
<?php
echo stripcslashes($result->termscondition);
?>
</td>
<td><?php echo $result->created_on;?></td>
<td>
<a href="javascript:void(0);" data-toggle="modal" data-target="#termsconditionModal<?php echo $result->id;?>">View</a>
<?php
if($result->id != '1'){
?>
|
<a href="<?php echo admin_url('admin.php?page=edit-termscondition&id=' . $result->id); ?>">Edit</a>
| <a href="<?php echo admin_url('admin.php?page=delete-termscondition&id=' . $result->id); ?>">Delete</a>
<?php
}
?>
</td>
</tr>
<div class="modal fade" id="termsconditionModal<?php echo $result->id;?>" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"
id="exampleModalLabel">
Terms & condition Details
</h5>
<button type="button"
class="close"
data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">
×
</span>
</button>
</div>
<div class="modal-body">
<!-- Data passed is displayed
in this part of the
modal body -->
<h6 id="modal_body">Terms & Condition Details</h6>
<div class="row">
<div class="col-md-12">
<div class="col-md-12">
<label>Terms & Condition</label>
<p><?php echo stripslashes($result->termscondition);?></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
$i++;
}
?>
</tbody>
</table>
</div>
</div>
<script>
// Initialize DataTable
jQuery(document).ready(function($) {
$('#termscondition-table').DataTable();
});
/* function updateStatus(id){
alert(id);
} */
</script>
<?php
}
function create_termscondition() {
global $wpdb;
if (isset($_POST['createtermscondition'])) {
$table_name = $wpdb->prefix . "termscondition";
// Sanitize inputs
$terms_name = sanitize_text_field($_POST['terms_name'] ?? '');
$termsncondition = wp_kses_post($_POST['termsncondition'] ?? '');
// Validate inputs
if (empty($terms_name)) {
echo '<div class="notice notice-error is-dismissible"><p>Terms Name is required.</p></div>';
} elseif (empty($termsncondition)) {
echo '<div class="notice notice-error is-dismissible"><p>Terms & Condition content is required.</p></div>';
} else {
$result_check = $wpdb->insert($table_name, [
'terms_name' => $terms_name,
'termscondition' => $termsncondition,
'created_on' => current_time('mysql'),
'updated_on' => current_time('mysql'),
]);
if ($result_check) {
echo '<div class="notice notice-success is-dismissible"><p>Terms & Condition Created Successfully</p></div>';
// Redirect to dashboard after success
echo '<script>setTimeout(function(){ window.location.href = "' . admin_url('admin.php?page=termscondition-dashboard') . '"; }, 2000);</script>';
} else {
echo '<div class="notice notice-error is-dismissible"><p>Error Occurred: ' . $wpdb->last_error . '</p></div>';
}
}
}
?>
<div class="wrap">
<form method="post" name="createtermscondition" id="createuser" class="form" enctype="multipart/form-data">
<div class="">
<div class="">
<h3>Create Terms & Condition</h3>
<table class="form-table" role="presentation">
<tbody>
<tr class="">
<th scope="row"><label for="terms_name">Enter Terms Name <span class="description">(required)</span></label></th>
<td>
<label>
<input type="text" name="terms_name" class="form-control" value="">
</label>
<span class="error-message wc_probtype"></span>
</td>
</tr>
<tr class="form-field new_equipment">
<th scope="row"><label for="equipment_id">Enter Terms & Condition<span class="description"></label></th>
<td><textarea class="termsncondition" name="termsncondition"><div><span id="docs-internal-guid-41437ac3-7fff-2f16-3dea-919a465f8a94"><div style="text-align: center;"><span style="font-size: 11.0367pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-weight: 700; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Terms and conditions </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-weight: 700; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Hire Charges </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">1)The hire charges for the above mentioned equipment will be minimum billing of 180 hours for working days per . </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">2)Billing cycle will be a calendar month. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">3)Four Days in a month are allocated for carrying out Periodical repairs and maintenance for which deductions are not allowed. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">4)The hirer will pay extra charges @Rs1111.11 per hour for every additional hour used beyond 180 hours. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-weight: 700; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Validity of Quotation </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">1)Our offer is valid for a period of 15 days from the date of quotation. Please ensure to have the latest quotation at the time of placing the order. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-weight: 700; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Taxes & Duties </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">1)GST as applicable will be charged separately on invoice value and will be payable by the hirer extra at actual. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">2)Any other taxes, duties or levies as applicable will be borne by the hirer at actual. 3)The hirer will issue TDS Certificate at the end of each quarter and immediately on closure of the agreement. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">4)Hirer will furnish TAN/GST Number. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-weight: 700; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Security Deposit </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">1)The Hirer shall pay an amount equal to Rental Charges as security deposit along with the Order. 2)Gmmco will despatch & commission the equipment to the hirer only on receipt of the security deposit above. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">3)The Security Deposit shall not carry any interest and will be refunded at the time of dehiring of the Equipment after adjusting pending hire charges if any or any other dues payable by the Hirer to Gmmco . </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-weight: 700; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Transportation </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">1)To & Fro Transportation will be Borne by Hirer Scope (Contact Period below 6 months Mob & De-mob Hirer scope / If above 6 months Mob (Hirer) & De-Mob (Gmmco)). </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">2)Transit insurance will be Gmmco's responsibility. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-weight: 700; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Delivery & Commissioning </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">1)Gmmco will despatch the equipment after getting confirmed order with security advance. 2)Gmmco will arrange for commissioning of the Equipment free of cost. The Hirer will provide the necessary semi skilled labour and the cranage for loading and unloading the equipment at the site. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-weight: 700; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Operators </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">1)Each Equipment will be supported by One Operator for Day Operation & Operator charges will be borne by Gmmco. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">2)For extra Operator requirement charges will be as applicable. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">3)Food and accommodation and Transportation for the Operators to site will be borne by the hirer. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-weight: 700; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Fuel </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">1)Uncontaminated High Speed Diesel required for the operation of the equipment shall be provided by the hirer at the site at his costs. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-weight: 700; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Maintenance and Repairs. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">1)The routine maintenance and repairs of the equipment will be carried out by Gmmco personnel by providing the necessary parts or lubricating oil as may be required. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">2)The Hirer shall spare the equipment for carrying out routine maintenance without delay. 3)Gmmco will arrange for the necessary spare parts as may be required for carrying out the repairs and maintenance subject to proper operation of the equipment. </span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">4)The Hirer agrees to provide unskilled labour as and when required for maintenance of the equipment at their own costs.</span></div><div><span style="font-size: 8.99742pt; font-family: Courier, monospace; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"><span id="docs-internal-guid-5f78e29b-7fff-a5cd-6a05-0f32b4c37b95"><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">5)Any repairs on account of use of contaminated fuel or misuse / abuse of the equipment will be borne by the hirer.The decision of Gmmco on whether the repairs are on account of fuel contamination or misuse / abuse will be final and binding on the hirer. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-weight: 700; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">Invoicing </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">1) The hire charges is payable from the date of commissioning of the equipment at the Hirer’s site/works or three days from the date of delivery of the Equipment at site whichever is earlier. The billing cycle will be the Calendar Month. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">2)Final billable hours for invoicing during the month will be the minimum billable hours or actual working hours whichever is higher. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">3) In case the deployment is for partial month then invoicing will be done on prorata basis of minimum billable hours or actual worked days whichever is higher. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">4) Both the parties will sign the Log sheets on daily basis certifying the working hours of the equipment and break down hours if any. The mutually agreed breakdown hours for deductions will be reduced from the final billable hours. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">5) The Hirer shall be entitled to make deductions in Log Sheet on number of hours utilized for Equipment Breakdown beyond one hour at a stretch. However Hirer will cooperate to make up for the break down hours by working extra hours. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">6)The log sheet shall be reconciled and signed by both parties on fortnightly basis and shall be binding on both parties. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">7)The Hirer and Gmmco will nominate their respective authorised representative to sign Log Sheet which shall be binding on both parties. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">8)If the total number of hours utilized during a month exceeds minimum billable Hours then no deduction towards breakdown shall be made. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">9)Gmmco will raise invoices for utilization of the Equipment for each calendar Month and submit the same to the Hirer based on Log sheets. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-weight: 700; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">Payment Terms </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">1)The hire charges shall be paid by the Hirer within Payment in one day from the date of invoice submission, by way of RTGS in favour of Gmmco Limited. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">2)The Hirer shall be liable to pay interest @ 24% p.a for any delay in payment of hire charges beyond the stipulated period. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">3)Gmmco will dehire Equipment in case of payment is Not received within Fifteen Days from the date of Invoice. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-weight: 700; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">Other Terms </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">1)Hirer will use the equipment only for the purpose it is hired and shall not misuse or abuse the equipment or use the Equipment for any unlawful or illegal purposes. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">2)Hirer will ensure the safe custody of the equipment by providing necessary security, parking bay, etc.,and will be liable for any loss ordamage or destruction to the Equipment at prevailing prices,taxes freight etc. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">3)Both the parties will enter into 100 Rupees Register Stamp Paper Agreement for Hire on acceptance of the Offer. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">We look forward to your confirmation. </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">Thanks & best regards, </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">For Gmmco Limited </span></div><div><span style="font-size: 8.99742pt; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;">Vinayak Kumar Tilekar ..</span></div></span></span></div></span></div></textarea>
<span class="error-message wc_ticketequipmentid"></span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p class="submit"><input type="submit" name="createtermscondition" id="createtermscondition" class="button button-primary" value="Add Terms & Condition"></p>
</form>
</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
jQuery('.termsncondition').richText();
});
</script>
<?php
}
function termscondition_edit() {
global $wpdb;
$id = isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0;
$table_name = $wpdb->prefix . 'termscondition';
// Fetch existing data
$result = $wpdb->get_row($wpdb->prepare("SELECT * FROM $table_name WHERE id = %d", $id));
if (!$result) {
echo '<div class="notice notice-error is-dismissible"><p>Invalid Terms & Condition ID.</p></div>';
return;
}
if (isset($_POST['edittmscondition'])) {
// Sanitize inputs
$terms_name = sanitize_text_field($_POST['terms_name'] ?? '');
$termsncondition = wp_kses_post($_POST['termsncondition'] ?? '');
// Validate inputs
if (empty($terms_name)) {
echo '<div class="notice notice-error is-dismissible"><p>Terms Name is required.</p></div>';
} elseif (empty($termsncondition)) {
echo '<div class="notice notice-error is-dismissible"><p>Terms & Condition content is required.</p></div>';
} else {
$result_check = $wpdb->update(
$table_name,
[
'terms_name' => $terms_name,
'termscondition' => $termsncondition,
'updated_on' => current_time('mysql'),
],
['id' => $id],
['%s', '%s', '%s'],
['%d']
);
if ($result_check !== false) {
echo '<div class="notice notice-success is-dismissible"><p>Terms & Condition Updated Successfully</p></div>';
// Redirect to dashboard after success
echo '<script>setTimeout(function(){ window.location.href = "' . admin_url('admin.php?page=termscondition-dashboard') . '"; }, 2000);</script>';
} else {
echo '<div class="notice notice-error is-dismissible"><p>Error Occurred: ' . $wpdb->last_error . '</p></div>';
}
}
}
?>
<div class="wrap">
<form method="post" name="createtermscondition" id="createuser" class="form" enctype="multipart/form-data">
<div class="">
<div class="">
<h3>Edit Terms & Condition</h3>
<table class="form-table" role="presentation">
<tbody>
<tr class="">
<th scope="row"><label for="terms_id">Terms & Conditions ID</label></th>
<td>
<label><?php echo esc_html($result->id); ?></label>
</td>
</tr>
<tr class="">
<th scope="row"><label for="terms_name">Terms Name <span class="description">(required)</span></label></th>
<td>
<label>
<input type="text" name="terms_name" class="form-control" value="<?php echo esc_attr($result->terms_name); ?>">
</label>
<span class="error-message wc_probtype"></span>
</td>
</tr>
<tr class="form-field new_equipment">
<th scope="row"><label for="termsncondition">Enter Terms & Condition <span class="description">(required)</span></label></th>
<td>
<textarea class="edittermsncondition" name="termsncondition"><?php echo esc_textarea(stripslashes($result->termscondition)); ?></textarea>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p class="submit"><input type="submit" name="edittmscondition" id="edittmscondition" class="button button-primary" value="Update Terms & Condition"></p>
</form>
</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
jQuery('.edittermsncondition').richText();
});
</script>
<?php
}
function termscondition_delete(){
global $wpdb;
$id = $_REQUEST['id'];
// Delete User metadata
$table = 'wp_termscondition';
$wpdb->delete( $table, array( 'id' => $id ) );
wp_redirect(admin_url('admin.php?page=termscondition-dashboard'));
exit;
}
?>