123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- {% autoescape false %}
- <div id="buy-courses-tabs">
- {% if sessions_are_included %}
- <ul class="nav nav-tabs buy-courses-tabs" role="tablist">
- <li id="buy-courses-tab" class="{{ showing_courses ? 'active' : '' }}" role="presentation">
- <a href="{{ url('legacy_plugin', {'name' :'buycourses/src/course_catalog.php'} ) }}" aria-controls="buy-courses" role="tab">
- {{ 'Courses'|get_lang }}
- </a>
- </li>
- <li id="buy-sessions-tab" class="{{ showing_sessions ? 'active' : '' }}" role="presentation">
- <a href="{{ url('legacy_plugin', {'name' :'buycourses/src/session_catalog.php'} ) }}" aria-controls="buy-sessions" role="tab">
- {{ 'Sessions'|get_lang }}
- </a>
- </li>
- {% if services_are_included %}
- <li id="buy-services-tab" class="{{ showing_services ? 'active' : '' }}" role="presentation">
- <a href="{{ url('legacy_plugin', {'name' :'buycourses/src/service_catalog.php'} ) }}" aria-controls="buy-services" role="tab">
- {{ 'Services'|get_plugin_lang('BuyCoursesPlugin') }}
- </a>
- </li>
- {% endif %}
- </ul>
- {% endif %}
- <div class="tab-content">
- <div class="tab-pane active" aria-labelledby="buy-sessions-tab" role="tabpanel">
- <div class="row">
- <div class="col-md-3">
- {{ search_filter_form }}
- </div>
- <div class="col-md-9">
- <div class="row">
- {% if showing_courses %}
- {% for course in courses %}
- <div class="col-md-4 col-sm-6">
- <article class="thumbnail">
- <img alt="{{ course.title }}" class="img-responsive" src="{{ course.course_img ? course.course_img : 'session_default.png'|icon() }}">
- <div class="caption">
- {% set course_description_url = _p.web_ajax ~ 'course_home.ajax.php?' ~ {'code': course.code, 'a': 'show_course_information'}|url_encode() %}
- <h3>
- <a class="ajax" href="{{ course_description_url }}" data-title="{{ course.title }}">{{ course.title }}</a>
- </h3>
- <ul class="list-unstyled">
- {% for teacher in course.teachers %}
- <li><em class="fa fa-user"></em> {{ teacher }}</li>
- {% endfor %}
- </ul>
- <p class="lead text-right">{{ course.currency }} {{ course.price }}</p>
- {% if course.enrolled == "YES" %}
- <div class="alert alert-success">
- <em class="fa fa-check-square-o fa-fw"></em> {{ 'TheUserIsAlreadyRegisteredInTheCourse'|get_plugin_lang('BuyCoursesPlugin') }}
- </div>
- {% elseif course.enrolled == "NO" %}
- <div class="text-center">
- <a class="ajax btn btn-primary" title="" href="{{ course_description_url }}" data-title="{{ course.title }}">
- <em class="fa fa-file-text"></em> {{ 'SeeDescription'|get_plugin_lang('BuyCoursesPlugin') }}
- </a>
- <a class="btn btn-success" title="" href="{{ url('legacy_plugin', {'name' :'buycourses/src/process.php', 'i': course.id, 't': 1 }) }}">
- <em class="fa fa-shopping-cart"></em> {{ 'Buy'|get_plugin_lang('BuyCoursesPlugin') }}
- </a>
- </div>
- {% elseif course.enrolled == "TMP" %}
- <div class="alert alert-info">{{ 'WaitingToReceiveThePayment'|get_plugin_lang('BuyCoursesPlugin') }}</div>
- {% endif %}
- </div>
- </article>
- </div>
- {% endfor %}
- {% endif %}
- {% if showing_sessions %}
- {% for session in sessions %}
- <div class="col-md-4 col-sm-6">
- <article class="thumbnail">
- <img alt="{{ session.name }}" class="img-responsive" src="{{ session.image ? session.image : 'session_default.png'|icon() }}">
- <div class="caption">
- <h3>
- <a href="{{ _p.web ~ 'session/' ~ session.id ~ '/about/' }}">{{ session.name }}</a>
- </h3>
- {% if 'show_session_coach'|get_setting == 'true' %}
- <p><em class="fa fa-user fa-fw"></em> {{ session.coach }}</p>
- {% endif %}
- <p><em class="fa fa-calendar fa-fw"></em> {{ session.dates.display }}</p>
- <p class="lead text-right">{{ session.currency }} {{ session.price }}</p>
- <ul class="list-unstyled">
- {% for course in session.courses %}
- <li>
- <em class="fa fa-book fa-fw"></em> {{ course.title }}
- {% if course.coaches|length %}
- <ul>
- {% for coach in course.coaches %}
- <li>{{ coach }}</li>
- {% endfor %}
- </ul>
- {% endif %}
- </li>
- {% endfor %}
- </ul>
- {% if session.enrolled == "YES" %}
- <div class="alert alert-success">
- <em class="fa fa-check-square-o fa-fw"></em> {{ 'TheUserIsAlreadyRegisteredInTheSession'|get_plugin_lang('BuyCoursesPlugin') }}
- </div>
- {% elseif session.enrolled == "NO" %}
- <div class="text-center">
- <a class="btn btn-success" href="{{ url('legacy_plugin', {'name' :'buycourses/src/process.php', 'i': session.id, 't': 2 }) }}">
- <em class="fa fa-shopping-cart"></em> {{ 'Buy'|get_plugin_lang('BuyCoursesPlugin') }}
- </a>
- </div>
- {% elseif session.enrolled == "TMP" %}
- <div class="alert alert-info">{{ 'WaitingToReceiveThePayment'|get_plugin_lang('BuyCoursesPlugin') }}</div>
- {% endif %}
- </div>
- </article>
- </div>
- {% endfor %}
- {% endif %}
- {% if showing_services %}
- {% for service in services %}
- <div class="col-md-4 col-sm-6">
- <div class="items-course">
- <div class="items-course-image">
- <a href="{{ _p.web }}service/{{ service.id }}">
- <img alt="{{ service.name }}" class="img-responsive" src="{{ service.image }}">
- </a>
- </div>
- <div class="items-course-info">
- <h4 class="title">
- <a title="{{ service.name }}" href="{{ _p.web }}service/{{ service.id }}" >
- {{ service.name }}
- </a>
- </h4>
- <ul class="list-unstyled">
- <li><em class="fa fa-clock-o"></em> {{ 'Duration'|get_plugin_lang('BuyCoursesPlugin') }} : {{ service.duration_days == 0 ? 'NoLimit' | get_lang : service.duration_days ~ ' ' ~ 'Days' | get_lang }}</li>
- {% if service.applies_to == 0 %}
- <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'None' | get_lang }}</li>
- {% elseif service.applies_to == 1 %}
- <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'User' | get_lang }}</li>
- {% elseif service.applies_to == 2 %}
- <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'Course' | get_lang }}</li>
- {% elseif service.applies_to == 3 %}
- <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'Session' | get_lang }}</li>
- {% elseif service.applies_to == 4 %}
- <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'SubscriptionPackage' | get_plugin_lang('BuyCoursesPlugin') }}</li>
- {% endif %}
- <li><em class="fa fa-user"></em> {{ service.owner_name }}</li>
- </ul>
- <p class="text-right">
- <span class="label label-primary">
- {{ service.currency == 'BRL' ? 'R$' : service.currency }} {{ service.price }}
- </span>
- </p>
- <div class="toolbar">
- <a class="btn btn-info btn-block btn-sm" title="" href="{{ _p.web }}service/{{ service.id }}">
- <em class="fa fa-info-circle"></em> {{ 'ServiceInformation'|get_plugin_lang('BuyCoursesPlugin') }}
- </a>
- <a class="btn btn-success btn-block btn-sm" title="" href="{{ _p.web_plugin ~ 'buycourses/src/service_process.php?' ~ {'i': service.id, 't': service.applies_to}|url_encode() }}">
- <em class="fa fa-shopping-cart"></em> {{ 'Buy'|get_plugin_lang('BuyCoursesPlugin') }}
- </a>
- </div>
- </div>
- </div>
- </div>
- {% endfor %}
- {% endif %}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- {% endautoescape %}
|