Jump to content

sarojthapa60

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About sarojthapa60

  • Rank
    Member
  1. Hi, I have an app that is in development phase created using php and javascript. I have a couple of plugins - dataTable and exportTable added in the web app. The app has multiple tabs. So far, I have a fairly simple login page that is not even connected to the database. I am thinking about using Laravel framework and build the app on top of it. Will I have to just configure the index.php file in Laravel's public directory and drop all the used files in public directory or I will have to work with each files in Views, Controller, and public? How hard or difficult would that be? Thanks
  2. I have 5 dropdowns on a tab of a website. I have a database table in MS SQL Server. The table has all the data of 5 dropdowns with one of the fieldNames called Region_Name, say the Region_Names are A, B, C, D, and E. I have written codes to display a table and enabled row editing for one of the RegionNames. Now, I am wondering if I could modify the same codes to display associated table with row editing enabled using different queries when a dropdown is clicked. That could reduce the code repetition and improve the performance. But I do not know how to achieve this. Could anyone please give me
  3. I have a Datatables using HTML (DOM) sourced data. I have 30 columns in my table. I have a print button, button when I print about 6 columns do not fit. Also, some cells have background colors. How can I customize this Print function so that I can print 11 by 17 preserving the background colors of the cells? My script for Datatables: <script> $(document).ready(function() { $('#myTable').DataTable( { "order": [[0, "asc"]], "paging": false, "scrollCollapse": true, "columnDefs": [{ "targets": [0], "visible": false, "searchable": false }], dom: 'Bfrtip', buttons: [ { extend: 'print
  4. My app has multiple navigation menus on the home page. The menus are created using <ul><li>. I want to open the tabs on the same parent page on the main section of the page. How can I use AJAX to do so?
  5. I have only four options in the dropdowns. I am trying to change the background color of the cell of the table, not the background color of the dropdown.
  6. Yes, $capacity indicates which color is selected. I was able to incorporate $capacity into the query and it matches the "colors" column in the matrix_dropdowns. I am trying a different approach now. In the form of edit.php, I created the dropdowns like: <tr> <td>Capacity</td> <td><label> <select name="txt_capacity" class="textfields" id="capacity"> <option id="0">Select One</option> <option id="1"> GREEN</option> <option id="2">AMBER</option> <option id="3">RED</option> <option id="4">BLACK&l
  7. Sorry about that. didn't know everyone could see that.
  8. I have dropdowns in my "Edit.php" file. When the edit option in index.php is clicked, it brings to the form. Some of the input for the forms have dropdowns queried from a table called matrix_dropdowns. What I am trying to achieve is: "Capacity" field has dropdowns namely GREEN, AMBER, RED, and BLACK. If an initial value is GREEN or the user chooses GREEN option, I want the background to be green, AMBER ->yellow color. The codes for edit.php is shown below: <?php require_once('include/database.php'); if (isset($_POST['btn_submit'])) { if (isset($_POST['txt_id'])) { $id =
  9. require_once('include/database.php'); ?> <!DOCTYPE html> <html> <head> </head> <body> <section> <table id="myTable" class="tablesorter"> <thead> <tr> <th>Capacity</th> <th>Ownership</th> <th>Action</th> </tr> </thead> <tbody> <?php $stmt = $conn->prepare("SELECT * FROM MATRIX ORDER BY OBJECTID ASC"); $stmt ->execute(); $result = $stmt->fetchAll(); foreach($result as $row) { ?> <tr> <td><?=$row['Ownership'];?></td> <td><?=$row['Capac
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.