Spade

Mini Shell

Directory:~$ /home/lmsyaran/public_html/j3/components/com_moojla/views/course_search/tmpl/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/public_html/j3/components/com_moojla/views/course_search/tmpl/default.php

<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default.php
	@author			Lmskaran <http://Lmskaran.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.41.$$$$]-->
<section id="search" style="direction: rtl; text-align:
right">
    <div class="">
        <div class="row">
            <?php

            $coursesClass= $this->items['showsearchsidebar'] ?
'col-md-8' : 'col-md-12';
            
            ?>
            <?php if($this->items['showsearchsidebar']):
?>

                <div class="col-md-4">
                    <div class="card mb-3"
id="filterItems" style="display:none">
                        <div class="card-header"
style="display:flex; justify-content:
space-between;background:#dfcec6">
                            <span> فیلترهای اعمال
شده</span>
                            <span style="cursor:pointer"
class="deleteFilterItems">
                   حذف
                   <svg xmlns="http://www.w3.org/2000/svg"
width="16" height="16" fill="currentColor"
class="bi bi-x"
                        viewBox="0 0 16 16">
<path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0
0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646
2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1
0-.708z"/>
</svg>
               </span>
                        </div>
                        <div class="card-body">
                        </div>
                    </div>
                    <form action="">
                         <select name="jform[sort]"
id="sort"  class="form-control mb-3">
                            <option
value="remoteid__desc">جدید ترین</option>
                            <option
value="remoteid__asc">قدیمی ترین</option>
                            <option
value="hits__desc">بیشترین بازدید</option>
                            <option
value="hits__asc">کمترین بازدید</option>
                        </select>
                        <?php if(in_array('text',
$this->items['widget'])): ?>

                            <div class="card mb-3">
                                <div class="card-header">
                                    جستجو کنید ...
                                </div>
                                <div class="card-body"
style="display:flex">
                    <span class="searchIcon filter"
name="text">
                        <svg
xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor"
                             class="bi bi-search" viewBox="0
0 16 16">
  <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397
1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0
1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0
5.5 5.5 0 0 1 11 0z"/>
</svg>
                    </span>
                                    <input name="jform[text]"
data-id="textFilterItem" type="text"
class="form-control"
                                           placeholder="نام درس
خود را بنویسید ..." required>
                                </div>
                            </div>

                        <?php endif; ?>
                        <?php if(in_array('teacher',
$this->items['widget'])): ?>
                            <div class="card card-body
mb-3">

                                <p>
                                    <button class="btn
btn-primary" type="button" data-collapse="true"
data-target="#enrolment" data-dropdown="true">
                                        استاد مورد نظر
                                    </button>
                                </p>
                                <div id="enrolment"
style="display: none">
                                    <?php foreach
($this->items['teacher'] as $teacher): ?>

                                        <div class="form-check
mt-2">
                                            <input
name="jform[mid][]" data-id="mid-<?= $teacher->mid
?>"
                                                  
class="form-check-input filter" type="checkbox"
value="<?= $teacher->mid ?>"
                                                   id="mid-<?=
$teacher->mid ?>">
                                            <label
class="form-check-label mr-4"  for="mid-<?=
$teacher->mid ?>">
                                                <?= $teacher->name
?>
                                            </label>
                                        </div>

                                    <?php endforeach; ?>
                                </div>

                            </div>
                        <?php endif; ?>

                        <?php if(in_array('category',
$this->items['widget'])): ?>
                            <div class="card card-body
mb-3">

                                <p>
                                    <button class="btn
btn-primary" type="button" data-collapse="true"
data-target="#category" data-dropdown="true">
                                        مجموعه مورد نظر
                                    </button>
                                </p>
                                <div id="category"
style="display: none">
                                    <?php foreach
($this->items['category'] as $category): ?>

                                        <div class="form-check
mt-2">
                                            <input
name="jform[category][]" data-id="category-<?=
$category->catid; ?>"
                                                  
class="form-check-input filter" type="checkbox"
value="<?= $category->catid; ?>"
                                                   id="category-<?=
$category->catid; ?>">
                                            <label
class="form-check-label mr-4" for="category-<?=
$category->catid; ?>">
                                                <?= $category->title;
?>
                                            </label>
                                        </div>

                                    <?php endforeach; ?>
                                </div>

                            </div>
                        <?php endif; ?>

                        <?php if(in_array('tag',
$this->items['widget'])): ?>
                            <div class="card card-body
mb-3">

                                <p>
                                    <button class="btn
btn-primary" type="button" data-target="#tag"
data-collapse="true" data-dropdown="true">
                                        تگ مورد نظر
                                    </button>
                                </p>
                                <div style="display: none"
id="tag">

                                    <?php foreach
($this->items['tag'] as $tag): ?>

                                        <div class="form-check
mt-2">
                                            <input
name="jform[tag][]" data-id="tag-<?= $tag->tagid
?>"
                                                  
class="form-check-input filter" type="checkbox"
value="<?= $tag->tagid ?>"
                                                   id="tag-<?=
$tag->tagid ?>"
                                            >
                                            <label
class="form-check-label mr-4" for="tag-<?= $tag->tagid
?>">
                                                <?= $tag->tagname
?>
                                            </label>
                                        </div>

                                    <?php endforeach; ?>
                                </div>

                            </div>
                        <?php endif; ?>

                        <?php if(in_array('price',
$this->items['widget'])): ?>
                            <div class="card card-body
mb-3">
                                <p>
                                    <button class="btn
btn-primary" type="button" data-collapse="true"
data-target="#range" data-dropdown="true">
                                        محدوده قیمت مورد
نظر
                                    </button>
                                </p>
                                <div id="range"
style="display: none">
                                    <div class="rangeslider"
style="direction:ltr; text-align: left;">
                                        <input
name="jform[minRange]" class="min"
type="range" min="0"
                                               max="<?=
isset($this->items[0]->maxCost) ? $this->items[0]->maxCost :
100 ?>"
                                               value="0"/>
                                        <input
name="jform[maxRange]" class="max"
type="range" min="0"
                                               max="<?=
isset($this->items[0]->maxCost) ? $this->items[0]->maxCost :
100 ?>"
                                               value="<?=
isset($this->items[0]->maxCost) ? $this->items[0]->maxCost :
100 ?>"/>
                                        <span class="range_min
light left">0</span>
                                        <span class="range_max
light right"><?= isset($this->items[0]->maxCost) ?
$this->items[0]->maxCost : 100 ?></span>
                                    </div>
                                    <div>
                                        <input type="button"
class="btn btn-info filter" name="rangeBtn"
value="اعمال">
                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>

                        <?php
if($this->items['searchinmycourse']): ?>
                            <div class="card card-body
mb-3">
                                <div class="form-check">

                                    <input type="checkbox"
name="jform[searchinmycourse]" id="searchinmycourse"
class="form-check-input filter" value="1">
                                    <label class="form-check-label
mr-4" >
                                        جست و جو تنها در درس
های من
                                    </label>
                                </div>
                            </div>
                        <?php endif; ?>

                        <input type="hidden"
id="token" name="<?= JSession::getFormToken();
?>" value="1">
                    </form>
                </div>
             <?php else: ?>
                 <form action="">
                    <input type="hidden" id="token"
name="<?= JSession::getFormToken(); ?>"
value="1">
                </form>
            <?php endif; ?>
            <div class="<?= $coursesClass ?>"
id="courses">
                <div class="row">
                    <?php
                    $this->setLayout($this->tmpl);
                    echo $this->loadTemplate();
                    ?>
                </div>
                <div style="text-align: center">
                    <button class="btn btn-primary"
id="more">نمایش موارد بیشتر</button>
                </div>
            </div>
        </div>
    </div>
</section>

<?php 
// echo $this->loadTemplate('card');
// echo $this->loadTemplate('card_mahdi');
?><!--[/JCBGUI$$$$]-->