jairogill Posted October 12, 2017 Share Posted October 12, 2017 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 namePhone numberID GROUP CityPayment 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">×</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 caseand also if you need access to the system let me know so i can give you the access. THANKS! clients_view.php Quote Link to comment https://forums.phpfreaks.com/topic/305342-rearrange-info-copied-and-change-data-pulled/ Share on other sites More sharing options...
Solution ginerjm Posted October 12, 2017 Solution Share Posted October 12, 2017 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. 1 Quote Link to comment https://forums.phpfreaks.com/topic/305342-rearrange-info-copied-and-change-data-pulled/#findComment-1552674 Share on other sites More sharing options...
jairogill Posted October 13, 2017 Author Share Posted October 13, 2017 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 Quote Link to comment https://forums.phpfreaks.com/topic/305342-rearrange-info-copied-and-change-data-pulled/#findComment-1552684 Share on other sites More sharing options...
ginerjm Posted October 13, 2017 Share Posted October 13, 2017 Don't know why you posted it. Your question only pertained to the first block, at least the way I interpreted it. Quote Link to comment https://forums.phpfreaks.com/topic/305342-rearrange-info-copied-and-change-data-pulled/#findComment-1552685 Share on other sites More sharing options...
jairogill Posted October 13, 2017 Author Share Posted October 13, 2017 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! Quote Link to comment https://forums.phpfreaks.com/topic/305342-rearrange-info-copied-and-change-data-pulled/#findComment-1552690 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.