Jump to content


Photo

rearrange info copied and change data pulled


Best Answer ginerjm, 12 October 2017 - 09:12 PM

Step 1 - change the line that has $emp['city_name'] to something that has your group price value :  $emp['group_price'] .  I used 'group_price' since I don't know what you actual "group price" field is called.

 

As for the rest of the code you posted - why?

 

As for the whole thing in general - I can understand why the author is un-reachable.  Hope you didn't pay too much.

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 jairogill

jairogill
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 12 October 2017 - 12:40 AM

Hi, first things first, i dont know nothing about coding... i can figure out how some stuff works and make changes but nothing more than that... that been said, i paid a guy to make a CRM, a webapp for a business to handle the clients.

 

the thing is that i cannot contact the guy anymore and i need a small change to be made in the system, i tried to do it mysell but no success! 

 

in the clients section i have a button that when you hit it opens up a window and shows client info to copy it and send it via a messaging app.. right now when you hit it it shows this info:

Client name
Phone number
ID

GROUP

City
Payment method

Payment Via

Payment Detail

Payment date

 

where it shows the city i want it to show the group price instead...

 

this is the code for that section of the system:

 

     <td>  

                                                    <div class="btn-group btn-group-sm" role="group" aria-label="Extra-small button group">
                                                    <a class="client_copy btn btn-gold" 

                                                       data-client-name="<?php echo $emp['client_name']; ?>" 
                                                       data-Client-email="<?php echo $emp['id_clients']; ?>" 
                                                       data-client-phone="<?php echo $emp['phone_no']; ?>"
                                                       data-client-id="<?php echo $emp['ID']; ?>"
                                                       data-client-group="<?php echo $emp['group_name']; ?>"
                                                       data-client-city="<?php echo $emp['city_name']; ?>"
                                                       data-client-paymentmethod="<?php echo $emp['payment_method_name']; ?>"
                                                       data-client-paymentvia="<?php echo $emp['payment_via_name']; ?>"
                                                       data-client-paymentdetail="<?php echo $emp['payment_detail']; ?>"
                                                       data-client-paymentdate="<?php echo $emp['payment_date']; ?>"
                                                       data-client-customprice="<?php echo $emp['custom_price']; ?>"

                                                       href="#modalCopyClient"><i class="fa  fa-files-o"></i></a>

and this part:

<div class="modal fade" id="modalCopyClient">
        <div class="modal-dialog">
            <div class="modal-content">
                <form id="formUpdateClient" action="<?php echo base_url(); ?>index.php/UpdateClients" method="post">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title">Copiar los datos del cliente</h4>
                    </div>

                    <div class="modal-body">
                        <div class="form-group">
                            <div class="row">
                                <div class="col-md-6 copydiv">
                                    <div><label id="txtCopyClientName" name="txtCopyClientName"></label></div>
                                    <div><label id="txtCopyPhone" name="txtCopyPhone"></label></div>
                                    <div><label id="txtCoyClientID" name="txtCoyClientID"></label></div> 
                                    <div><label id="txtCopyGroup" name="txtCopyGroup"></label></div>
                                    <div><label id="txtCopyCity" name="txtCopyCity"></label></div>
                                    <div><label id="txtCopyPaymentMethod" name="txtCopyPaymentMethod"></label></div>
                                    <div><label id="txtCopyClientPaymentVia" name="txtCopyClientPaymentVia"></label></div>
                                    <div><label id="txtCopyPaymentDetail" name="txtCopyPaymentDetail"></label></div>
                                    <div><label id="txtCopyClientPaymentDate" name="txtCopyClientPaymentDate"></label></div>

                                </div>
                            </div>
                            <div class="modal-footer">

                                <button type="button" id="myBtn" class="btn btn-success">Copiar</button>
                                <button type="button" class="btn btn-link"  data-dismiss="modal">Cerrar</button>
                            </div>
                        </div>

                </form>
            </div>
        </div>
    </div>

can you guys please help me to make this change?? 

 

also, the data shows in the window the way i want, but as soon as i hit the copy button and paste it where i want to send it, the data shows differently

 

i attached the hole file in the thread just in case

and also if you need access to the system let me know so i can give you the access.

 

THANKS!

 

Attached File  clients_view.php   52.02KB   1 downloads



#2 ginerjm

ginerjm
  • Members
  • PipPipPip
  • Handball player
  • 3,974 posts
  • LocationVoorheesville NY

Posted 12 October 2017 - 09:12 PM   Best Answer

Step 1 - change the line that has $emp['city_name'] to something that has your group price value :  $emp['group_price'] .  I used 'group_price' since I don't know what you actual "group price" field is called.

 

As for the rest of the code you posted - why?

 

As for the whole thing in general - I can understand why the author is un-reachable.  Hope you didn't pay too much.


JG
PS - If you're posting here you should be using:
        error_reporting(E_ALL);
        ini_set('display_errors', '1');

at the top of ALL php code while you develop it!

#3 jairogill

jairogill
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 13 October 2017 - 03:39 PM

Step 1 - change the line that has $emp['city_name'] to something that has your group price value :  $emp['group_price'] .  I used 'group_price' since I don't know what you actual "group price" field is called.

 

As for the rest of the code you posted - why?

 

As for the whole thing in general - I can understand why the author is un-reachable.  Hope you didn't pay too much.

Thanks so much! that worked, the filled was called myprice..

 

What do you mean about the rest of the code? is it that bad?

 

Thanks again



#4 ginerjm

ginerjm
  • Members
  • PipPipPip
  • Handball player
  • 3,974 posts
  • LocationVoorheesville NY

Posted 13 October 2017 - 03:45 PM

Don't know why you posted it.  Your question only pertained to the first block, at least the way I interpreted it.


JG
PS - If you're posting here you should be using:
        error_reporting(E_ALL);
        ini_set('display_errors', '1');

at the top of ALL php code while you develop it!

#5 jairogill

jairogill
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 13 October 2017 - 05:01 PM

Don't know why you posted it.  Your question only pertained to the first block, at least the way I interpreted it.

ohhh, i did it because i didnt know if what i was asking was inside those two blocks, thats why i put the file just in case it wasnt there!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users