bill 1 -- towhid indivisal service taka 10k vCISO rnd bank account bill 2 -- marzia indivual service taka 5k vCISO rnd one year internaation warenty price alada officall apple warenty cash e pay korbo there are some serious logic problems ... listen to me again ---- Hridoy mustofa created a reaport and submitted to marzia (right now marzia is the supervisor). marzia has not logged in that time. so in Hridoy mustofa's activity report page, he will see his sumbitted report in pending status. aftersomtime marzia logs into the system and sees that Hridoy mustofa has sent her an activity report. now being the supervisor Marzia can now either reject or approve the report. if she rejects the report, automatically in the database the status of the report will change from "pending" to "rejected", and page reloads and we no longer see the report in the Marzia's end. her work here is done. Now, in Hridoy Mustofa's end, he will reload the activity page, and he will no longer see his report as pending, he will see the status has been changed to "rejected" . That's it! same thing goes for approval, if Marzia have approved the report intead of reject, automatically in the database the pending status will change to approved. and Hridoy mustofa will see his submitted report list having his report send to Marzia is approved, after page reloading the page. he will no longer see his pending report in the list, it will be either rejected or apporved . Now did you understood my words ? or not? connect_error) {     // If connection fails, display error and stop execution.     $status_message = "
Database connection error. Please check db_config.php.
";     exit($status_message);  } // --- 1. Fetch Users for Supervisor Dropdown (Excludes the current user from being their own supervisor) --- $users = []; $sql_users = "SELECT user_id, username FROM users WHERE user_id != ? ORDER BY username ASC"; if ($stmt_users = $conn->prepare($sql_users)) {     $stmt_users->bind_param("i", $user_id);     $stmt_users->execute();     $result_users = $stmt_users->get_result();     while ($row = $result_users->fetch_assoc()) {         $users[] = $row;     }     $stmt_users->close(); } // --- 2. Handle Form Submission (Save Draft or Submit Pending) --- if ($_SERVER["REQUEST_METHOD"] == "POST") {     $report_month = $_POST['report_month'] ?? null;     $supervisor_id = (int)($_POST['supervisor_id'] ?? 0);     // Use real_escape_string or prepared statements for safety     $title = $conn->real_escape_string($_POST['title'] ?? '');     $description = $conn->real_escape_string($_POST['description'] ?? '');          // Determine the status based on which button was clicked     $status = isset($_POST['submit_report']) ? 'Pending' : 'Draft';     $success_msg = ($status === 'Pending')          ? "Activity Report submitted successfully for review."         : "Activity Report saved as draft.";     // Input Validation     if (!$report_month || $supervisor_id <= 0 || empty($title) || empty($description)) {         $status_message = "
Please fill in all required fields.
";     } else {                  // Correct SQL: status_date and supervisor_feedback columns can be NULL on insertion         $sql_insert = "INSERT INTO monthly_activities (submitted_by_user_id, supervisor_user_id, report_month, title, description, status, submission_date)                         VALUES (?, ?, ?, ?, ?, ?, NOW())";                  if ($stmt = $conn->prepare($sql_insert)) {             // Binding types: (Integer, Integer, String, String, String, String) -> iissis             $stmt->bind_param("iissis", $user_id, $supervisor_id, $report_month, $title, $description, $status);                          if ($stmt->execute()) {                 $status_message = "
{$success_msg}
";                 // Optionally redirect the user after successful submission             } else {                 $status_message = "
Database error: " . $stmt->error . "
";             }             $stmt->close();         } else {             $status_message = "
Database preparation error: " . $conn->error . "
";         }     } } $default_month = date('Y-m');  // Do NOT close connection here if other parts of admin_dashboard.php rely on it. // If this file is standalone, it's safe to close: $conn->close(); ?>             Create Activity Report            
   

Create Monthly Activity Report (Employee ID: )

           
                
           
                                           
           
                                           
       
                                       
                                                                                  
   
please read the code and make the following changes keeping the rest of the code almost the same: 1. add date in the calender 2. show the list of submitted report send to the chosen supervisor 3. show the status of the submitted report 4. have option to view submitted report 5. show the list of draft reports, 6. have option to delete and edit draft report 7. make all button color have nice light color I'm making custom templates of different office files. I was thinking if some part of the template remain fix (company logo, company address, email, phone, header design, footer design, titles for invoice number and date, expense table , header of the expense table, words such as, subtotal, vat, tax, total and finally in the end signature of founder & CEO with company name) and some remain editable such as invoice date, invoice number, list of expenses, cost amount, total payment. I want the templete to be in my website. when I click a button it will redircet me to a page where I can edit and save to database and a reset button and obiously cancle button. can you wirte me php code for this? Hello, I'm Saiyeda Marzia, SOC Engineer from Cyberlog. I'm looking for an SEO Expert for an urgent project. If you are interested and want to know more about the project details, please DM me at the earliest possible. Thank you. make e a php page for the payslip follwing the given structure in the image. have company logo, company address, email, website fixed as given inside the green box. have the 'date' word fix but option given to chose a date. have the "payslip" fix in the middle. have the text given after it, let it be fix for all. have the table and table header row title fixed. but let user chose which months he/she wants to see the payslip, user should be given option to chose multiple/single month. each month will be added as a new row, no matter how many months user choses, each months salary will be combined for the total amount. and the salary amount should be in words in the last row of the table. below the table have the text to be fixed for all and username in the middle. and at the bottom of this template have the second text also be fixed. each months salary will be pulled from the salary database. now writme the code for both php and database back to work... I need a salary certificate. see the picture. I want the header to be fixed with the company logo, address, email, website exactly the way it is . I want the "date" word to remain fix but date will show today's date (the day certificate is generated) . next I want the title "to whom it may concern" to remain always fix. and the text below the title will also be fix. In the fixed text update username and role accordingly to the user session. next comes the fixed table with fixed title row. Add salary starting from current month to 12 months back , add 12 rows and show salary for each month, if there is no salary in any month keep it blank or say "no salary generated this month". write the total salary in words. have the fixed two texts accordingly. write me code to generate salary certificate that will have structure exactly like the picture given. pull salary from emploee_salary table in the database. no need to create any database table, exployee_salary table exists already. I want a template for leave application . the header will be always fixed having company logo, name, address, email, website. the user will have the option to chose date. the recipient section will always be fix. the subject is fix. the "Dear Sir, " is fix. Now the body is where user write his input and description of the reason of his/her leave. next in the bottom "sincerely" is fixed. based on the user his/her digital signature will be uploaded (the way we load company logo), username, role will be different for each user and but company name is fixed . now write me code for this leave application. when submit button is clicked the leave_application is send to admin and status is pending. when admin views the leave application from his account he will have option to approve or reject the leave application. if admin approves the application automatically the status of in the database changes from pending to approved, if admin rejects the application automatically the status of in the database changes from pending to rejected.