Файловый менеджер - Редактировать - /home/lmsyaran/public_html/j3/components/com_reservation/views/consultant_plan/tmpl/default.php
Назад
<?php /*----------------------------------------------------------------------------------| www.vdm.io |----/ fdsh /-------------------------------------------------------------------------------------------------------/ @version 1.0.39 @build 4th April, 2023 @created 17th December, 2020 @package Reservation @subpackage default.php @author farhad shahbazi <http://farhad.com> @copyright Copyright (C) 2015. All Rights Reserved @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) .-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( \____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) /------------------------------------------------------------------------------------------------------*/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); ?> <?php echo $this->toolbar->render(); ?> <!--[JCBGUI.site_view.default.37.$$$$]--> <form id='listviewform' method="post"> <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalCenter"> اضافه کردن پلن </button> <button type="button" class="btn btn-danger" > حذف کردن </button> <section> <div class="container"> <div class="row"> <table class="table table-lmsyaran"> <thead> <tr> <td> <input type='checkbox' id='plan-all?>'> </td> <th scope="col"> <div class="mb-2"> # </div> </th> <th scope="col">planType</th> <th scope="col"> <div class="mb-2"> <svg style="width:20px;" aria-hidden="true" focusable="false" data-prefix="fad" data-icon="clock" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-clock fa-w-16 fa-3x"><g class="fa-group"><path fill="#aec7ff" d="M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z" class="fa-secondary"></path><path fill="#4e7ea8" d="M348.49,321h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z" class="fa-primary"></path></g></svg> </div> زمان </th> <th scope="col"> <div class="mb-2"> <svg style="width:20px;" aria-hidden="true" focusable="false" data-prefix="fad" data-icon="coin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-coin fa-w-16 fa-3x"><g class="fa-group"><path fill="#e0a500" d="M0 208C0 128.44 114.67 64 256 64s256 64.44 256 144-114.67 144-256 144S0 287.56 0 208z" class="fa-secondary"></path><path fill="#e2a600" d="M0 320c0 27.77 18 53.37 48 74.33V330c-18.85-12-35.4-25.36-48-40.38zm80 92.51c27.09 12.89 59.66 22.81 96 28.8V377c-35.39-6-67.81-15.88-96-29zM464 330v64.32c30.05-21 48-46.56 48-74.33v-30.36C499.4 304.65 482.85 318 464 330zM336 441.31c36.34-6 68.91-15.91 96-28.8V348c-28.19 13.12-60.61 23-96 29zM208 381.2v64.09c15.62 1.51 31.49 2.71 48 2.71s32.38-1.2 48-2.71V381.2a477.2 477.2 0 0 1-48 2.8 477.2 477.2 0 0 1-48-2.8z" class="fa-primary"></path></g></svg> </div> قیمت </th> <th scope="col"> <div class="mb-2"> <svg style="width:16px;" aria-hidden="true" focusable="false" data-prefix="fad" data-icon="hourglass-half" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-hourglass-half fa-w-12 fa-3x"><g class="fa-group"><path fill="#a2cffd" d="M284.92 384H99.06A187.69 187.69 0 0 0 88 448h208a187.6 187.6 0 0 0-11.08-64zM192 208c40.83 0 75.86-33.2 92.92-80H99.08c17.06 46.8 52.1 80 92.92 80z" class="fa-secondary"></path><path fill="#61aefd" d="M360 64a24 24 0 0 0 24-24V24a24 24 0 0 0-24-24H24A24 24 0 0 0 0 24v16a24 24 0 0 0 24 24c0 91 51 167.73 120.84 192C75 280.27 24 357 24 448a24 24 0 0 0-24 24v16a24 24 0 0 0 24 24h336a24 24 0 0 0 24-24v-16a24 24 0 0 0-24-24c0-91-51-167.73-120.84-192C309 231.73 360 155 360 64zm-64 384H88c0-77.46 46.2-144 104-144s104 66.52 104 144zM192 208c-57.79 0-104-66.52-104-144h208c0 77.46-46.2 144-104 144z" class="fa-primary"></path></g></svg> </div> زمان انتظار </th> <th scope="col"> <div class="mb-2"> <svg style="width:20px;" aria-hidden="true" focusable="false" data-prefix="fad" data-icon="edit" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="svg-inline--fa fa-edit fa-w-18 fa-3x"><g class="fa-group"><path fill="#52b714" d="M564.6 60.2l-48.8-48.8a39.11 39.11 0 0 0-55.2 0l-35.4 35.4a9.78 9.78 0 0 0 0 13.8l90.2 90.2a9.78 9.78 0 0 0 13.8 0l35.4-35.4a39.11 39.11 0 0 0 0-55.2zM427.5 297.6l-40 40a12.3 12.3 0 0 0-3.5 8.5v101.8H64v-320h229.8a12.3 12.3 0 0 0 8.5-3.5l40-40a12 12 0 0 0-8.5-20.5H48a48 48 0 0 0-48 48v352a48 48 0 0 0 48 48h352a48 48 0 0 0 48-48V306.1a12 12 0 0 0-20.5-8.5z" class="fa-secondary"></path><path fill="#a6cda6" d="M492.8 173.3a9.78 9.78 0 0 1 0 13.8L274.4 405.5l-92.8 10.3a19.45 19.45 0 0 1-21.5-21.5l10.3-92.8L388.8 83.1a9.78 9.78 0 0 1 13.8 0z" class="fa-primary"></path></g></svg> </div> ویرایش </th> <th scope="col"> <div class="mb-2"> <svg style="width:20px;" aria-hidden="true" focusable="false" data-prefix="fad" data-icon="trash-alt" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="svg-inline--fa fa-trash-alt fa-w-14 fa-3x"><g class="fa-group"><path fill="#ffada9" d="M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V96H32zm272-288a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0z" class="fa-secondary"></path><path fill="red" d="M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM128 160a16 16 0 0 0-16 16v224a16 16 0 0 0 32 0V176a16 16 0 0 0-16-16zm96 0a16 16 0 0 0-16 16v224a16 16 0 0 0 32 0V176a16 16 0 0 0-16-16zm96 0a16 16 0 0 0-16 16v224a16 16 0 0 0 32 0V176a16 16 0 0 0-16-16z" class="fa-primary"></path></g></svg> </div> حذف </th> </tr> </thead> <tbody> <?php foreach($this->userplans as $row => $userplan):?> <tr id='row-<?php echo $userplan->id;?>'> <td> <input type='checkbox' id='plan-<?php echo $userplan->id;?>' name='jform[plans][plan-<?php echo $userplan->id;?>]' value=1> </td> <?php switch($userplan->plantype) { case 1: $consultanttype = JText::_('COM_RESERVATION_PLAN_TEL'); break; case 2: $consultanttype = JText::_('COM_RESERVATION_PLAN_CHAT'); break; } ?> <td scope="row"><?php echo $userplan->id;?></td> <td data-field="jform[plantypetext]" data-identifier="name"><?php echo $consultanttype;?></td> <td data-field="jform[time]" data-identifier="name"><?php echo $userplan->time;?></td> <td data-field="jform[price]" data-identifier="name"><?php echo $userplan->price;?> تومان</td> <td data-field="jform[waitingtime]" data-identifier="name"><?php echo $userplan->waitingtime;?></td> <td class="p-0"> <button type="button" class="btn-success border-radius-lmsyaran button-modal-lmsyaran edit" id='edit-<?php echo $userplan->id;?>'> ویرایش </button> </td> <td class="p-0"> <button type="submit" class="btn-danger border-radius-lmsyaran delete border-radius-lmsyaran button-modal-lmsyaran edit" data-toggle="modal" data-target="#confirm-submit" name='jform[del-<?php echo $userplan->id;?>]' value=1 id='del-<?php echo $userplan->id;?>'> حذف </button> </td> <td data-field="jform[plantype]" data-identifier="name" style="display: none;"><?php echo $userplan->plantype?></td> </tr> <?php endforeach;?> </tbody> </table> </div> </div> </section> <input type="hidden" name="task" value="consultant_plan.delete"> <input type="hidden" name="jform[consultantid]" value="<?= $this->item->coid;?>"> </form> <!-- Modal <div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle">Modal title</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div id="modal-content-edit"></div> </div> <div class="modal-footer"> <button type="button" class="btn btn-warning text-white" data-dismiss="modal">بستن</button> <button type="button" class="btn btn-success">ذخیره</button> </div> </div> </div> </div> --> <div class="modal fade" id="confirm-submit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="height: auto;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> حذف پلن </div> <div class="modal-body"> آیا برای حذف این پلن مطمئن هستید؟ </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">لغو</button> <a href="#" id="submit" class="btn btn-success success">تایید</a> </div> </div> </div> </div> <section> <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <form id="adminForm" method="post"> <div class="form-group"> <label> <?= JText::_('COM_RESERVATION_PLAN_TYPE'); // Plan type?> </label> <?= $this->form->getInput('plantype');?> </div> <div class="form-group"> <label> <?= JText::_('COM_RESERVATION_TIME'); // Time?> </label> <?= $this->form->getInput('time');?> </div> <div class="form-group"> <label> <?= JText::_('COM_RESERVATION_WAITING_TIME'); // Waiting time?> </label> <?= $this->form->getInput('waitingtime');?> </div> <div class="form-group"> <label> <?= JText::_('COM_RESERVATION_PRICE'); // Price?> </label> <?= $this->form->getInput('price');?> </div> <button type="submit" id="submitdata" class="btn btn-primary" onclick="Joomla.submitbutton('consultant_plan.save')">افزودن</button> <?= JHtml::_('form.token');?> <!-- <input type="hidden" name="task" value=""> --> <input type="hidden" name="task" value="consultant_plan.save"> <input type="hidden" name="jform[planid]" value="" id="planid"> <input type="hidden" name="jform[consultantid]" value="<?= $this->item->coid;?>"> </form> </div> </div> </div> </section> <!--COM_RESERVATION_CONSULTANT_PLAN_PLANTYPE_LABEL SITE--> <!--COM_RESERVATION_CONSULTANT_PLAN_TIME_LABEL SITE--> <!--COM_RESERVATION_CONSULTANT_PLAN_WAITINGTIME_LABEL SITE--> <!--COM_RESERVATION_CONSULTANT_PLAN_PRICE_LABEL SITE--><!--[/JCBGUI$$$$]-->
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка